-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DataRef in Image Component (#1512)
Co-authored-by: Pavitra Khatri <[email protected]>
- Loading branch information
Showing
10 changed files
with
115 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bundles/af-core/src/test/resources/form/image/exporter-image-customized.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 81 additions & 43 deletions
124
...ain/content/jcr_root/content/forms/af/core-components-it/samples/image/basic/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" | ||
xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
xmlns:nt="http://www.jcp.org/jcr/nt/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:deviceGroups="[mobile/groups/responsive]" | ||
cq:lastModified="{Date}2021-12-02T15:12:59.900+05:30" | ||
cq:lastModifiedBy="admin" | ||
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2" | ||
jcr:language="en" | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="Adaptive Form V2 (IT)" | ||
sling:resourceType="forms-components-examples/components/page"> | ||
<guideContainer | ||
fd:version="2.1" | ||
fieldType="form" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="forms-components-examples/components/form/container"> | ||
<textinput | ||
fieldType="text-input" | ||
jcr:primaryType="nt:unstructured" | ||
name="textinput1" | ||
jcr:title="Text Input 1" | ||
sling:resourceType="forms-components-examples/components/form/textinput"/> | ||
<image | ||
jcr:created="{Date}2022-10-13T14:31:23.772+05:30" | ||
jcr:createdBy="admin" | ||
jcr:lastModified="{Date}2022-10-13T14:31:23.772+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Image" | ||
sling:resourceType="forms-components-examples/components/form/image" | ||
fieldType="image" | ||
name="image1665651689720"> | ||
<fd:rules | ||
jcr:primaryType="nt:unstructured" | ||
visible="!(textinput1 == 'Hide me') || textinput1 == 'Show me'"/> | ||
<fd:events jcr:primaryType="nt:unstructured"/> | ||
</image> | ||
|
||
</guideContainer> | ||
</jcr:content> | ||
</jcr:root> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:deviceGroups="[mobile/groups/responsive]" | ||
cq:lastModified="{Date}2025-01-23T19:42:45.919+05:30" | ||
cq:lastModifiedBy="admin" | ||
cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2" | ||
fd:ignoreTranslationInvalidation="{Boolean}true" | ||
jcr:language="en" | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="Adaptive Form V2 (IT)" | ||
sling:resourceType="forms-components-examples/components/page"> | ||
<guideContainer | ||
fd:version="2.1" | ||
jcr:lastModified="{Date}2025-01-23T19:40:52.901+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="forms-components-examples/components/form/container" | ||
clientLibRef="corecomponent.it.customfunction" | ||
fieldType="form" | ||
schemaType="none" | ||
specVersion="0.14.2" | ||
textIsRich="true" | ||
thankYouMessage="<p>Thank you for submitting the form.</p>
" | ||
thankYouOption="page"> | ||
<textinput | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Text Input 1" | ||
sling:resourceType="forms-components-examples/components/form/textinput" | ||
fieldType="text-input" | ||
name="textinput1"/> | ||
<image | ||
jcr:created="{Date}2022-10-13T14:31:23.772+05:30" | ||
jcr:createdBy="admin" | ||
jcr:lastModified="{Date}2022-10-13T14:31:23.772+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Image" | ||
sling:resourceType="forms-components-examples/components/form/image" | ||
fieldType="image" | ||
name="image1665651689720"> | ||
<fd:rules | ||
jcr:primaryType="nt:unstructured" | ||
visible="!(textinput1 == 'Hide me') || textinput1 == 'Show me'"/> | ||
<fd:events jcr:primaryType="nt:unstructured"/> | ||
</image> | ||
<image_1118656190 | ||
jcr:created="{Date}2025-01-23T19:41:02.563+05:30" | ||
jcr:createdBy="admin" | ||
jcr:lastModified="{Date}2025-01-23T19:42:29.946+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Image" | ||
sling:resourceType="forms-components-examples/components/form/image" | ||
dataRef="$.a.b" | ||
fieldType="image" | ||
fileReference="/content/dam/reference-fragments/[email protected]" | ||
name="image_11186561901737641462594" | ||
visible="{Boolean}true"/> | ||
<button | ||
jcr:created="{Date}2025-01-23T19:41:38.650+05:30" | ||
jcr:createdBy="admin" | ||
jcr:lastModified="{Date}2025-01-23T19:41:38.650+05:30" | ||
jcr:lastModifiedBy="admin" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Button" | ||
sling:resourceType="forms-components-examples/components/form/button" | ||
dorExclusion="true" | ||
fieldType="button" | ||
name="button1737641498676"> | ||
<fd:rules | ||
fd:click="[{"nodeName":"ROOT"\,"items":[{"nodeName":"STATEMENT"\,"choice":{"nodeName":"EVENT_SCRIPTS"\,"items":[{"nodeName":"EVENT_CONDITION"\,"choice":{"nodeName":"EVENT_AND_COMPARISON"\,"items":[{"nodeName":"COMPONENT"\,"value":{"id":"$form.button1737641498676"\,"type":"BUTTON"\,"name":"button1737641498676"}}\,{"nodeName":"EVENT_AND_COMPARISON_OPERATOR"\,"choice":{"nodeName":"is clicked"\,"value":null}}\,{"nodeName":"PRIMITIVE_EXPRESSION"\,"choice":null}]}\,"nested":false}\,{"nodeName":"Then"\,"value":null}\,{"nodeName":"BLOCK_STATEMENTS"\,"items":[{"nodeName":"BLOCK_STATEMENT"\,"choice":{"nodeName":"FUNCTION_CALL"\,"parentNodeName":"BLOCK_STATEMENT"\,"functionName":{"id":"testImageImportData"\,"displayName":"testImageImportData"\,"type":"STRING|NUMBER|BOOLEAN|DATE|ARRAY|OBJECT"\,"isDuplicate":false\,"displayPath":""\,"args":[]\,"impl":"$0()"}\,"params":[]}}]}]}}]\,"isValid":true\,"enabled":true\,"version":1\,"script":["testImageImportData()"]\,"eventName":"Click"\,"ruleType":""\,"description":""}]" | ||
jcr:primaryType="nt:unstructured" | ||
validationStatus="valid"/> | ||
<fd:events | ||
jcr:primaryType="nt:unstructured" | ||
click="[testImageImportData()]"/> | ||
</button> | ||
</guideContainer> | ||
</jcr:content> | ||
</jcr:root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters