Skip to content

Commit 206906d

Browse files
committed
FORMS-16858: Support for custom XFA styles
1 parent c7a55a5 commit 206906d

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

it/config/src/main/content/jcr_root/apps/system/config/com.adobe.granite.toggle.impl.dev.DynamicToggleProviderImpl.cfg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"FT_SITES-19631",
2222
"FT_FORMS-14255",
2323
"FT_FORMS-14068",
24-
"FT_FORMS-16351"
24+
"FT_FORMS-16351",
25+
"FT_FORMS-2447"
2526
]
2627
}

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/base/v1/base/_cq_dialog/.content.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,25 @@
783783
ignoreData="{Boolean}true"
784784
name="dorExclusion@TypeHint"
785785
value="Boolean"/>
786+
<dorFieldStyling
787+
jcr:primaryType="nt:unstructured"
788+
sling:resourceType="granite/ui/components/coral/foundation/form/select"
789+
emptyText="Select styling option"
790+
fieldLabel="Component Style"
791+
fieldDescription="These styles are derived from the Document of Record template (XDP) associated with this adaptive form."
792+
forceSelection="{Boolean}true"
793+
name="./dorFieldStyling">
794+
<granite:rendercondition
795+
jcr:primaryType="nt:unstructured"
796+
sling:resourceType="granite/ui/components/renderconditions/featuretoggle"
797+
toggleName="FT_FORMS-2447"/>
798+
<datasource
799+
jcr:primaryType="nt:unstructured"
800+
sling:resourceType="fd/af/dor/datasource/fieldstyling"/>
801+
<granite:data
802+
jcr:primaryType="nt:unstructured"
803+
af.listeners.onload="guidelib.touchlib.editLayer.dialogUtils.selectDefaultDoRFieldStyling()"/>
804+
</dorFieldStyling>
786805
<dorColspan
787806
jcr:primaryType="nt:unstructured"
788807
sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/panelcontainer/v1/panelcontainer/_cq_dialog/.content.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,25 @@
370370
</table>
371371
</items>
372372
</dorLayoutType>
373+
<dorFieldStyling
374+
jcr:primaryType="nt:unstructured"
375+
sling:resourceType="granite/ui/components/coral/foundation/form/select"
376+
emptyText="Select styling option"
377+
fieldLabel="Component Style"
378+
fieldDescription="These styles are derived from the Document of Record template (XDP) associated with this adaptive form."
379+
forceSelection="{Boolean}true"
380+
name="./dorFieldStyling">
381+
<granite:rendercondition
382+
jcr:primaryType="nt:unstructured"
383+
sling:resourceType="granite/ui/components/renderconditions/featuretoggle"
384+
toggleName="FT_FORMS-2447"/>
385+
<datasource
386+
jcr:primaryType="nt:unstructured"
387+
sling:resourceType="fd/af/dor/datasource/fieldstyling"/>
388+
<granite:data
389+
jcr:primaryType="nt:unstructured"
390+
af.listeners.onload="guidelib.touchlib.editLayer.dialogUtils.selectDefaultDoRFieldStyling()"/>
391+
</dorFieldStyling>
373392
<dorNumCols
374393
jcr:primaryType="nt:unstructured"
375394
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete"

0 commit comments

Comments
 (0)