|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" |
| 3 | + jcr:primaryType="cq:Page"> |
| 4 | + <jcr:content |
| 5 | + cq:deviceGroups="[/etc/mobile/groups/responsive]" |
| 6 | + cq:lastModified="{Date}2024-09-12T05:06:37.741Z" |
| 7 | + cq:lastModifiedBy="admin" |
| 8 | + cq:template="/conf/core-components-examples/settings/wcm/templates/af-blank-v2" |
| 9 | + fd:ignoreTranslationInvalidation="{Boolean}true" |
| 10 | + jcr:language="en" |
| 11 | + jcr:primaryType="cq:PageContent" |
| 12 | + jcr:title="RepeatedPanelCount" |
| 13 | + sling:configRef="/conf/forms/core-components-it/samples/panelcontainer/repeatability-tests/basic/" |
| 14 | + sling:resourceType="forms-components-examples/components/page"> |
| 15 | + <guideContainer |
| 16 | + fd:version="2.1" |
| 17 | + jcr:lastModified="{Date}2024-09-10T23:31:27.238Z" |
| 18 | + jcr:lastModifiedBy="admin" |
| 19 | + jcr:primaryType="nt:unstructured" |
| 20 | + sling:resourceType="forms-components-examples/components/form/container" |
| 21 | + clientLibRef="corecomponent.it.customfunction" |
| 22 | + dorType="none" |
| 23 | + fieldType="form" |
| 24 | + schemaType="none" |
| 25 | + specVersion="0.14.0" |
| 26 | + textIsRich="true" |
| 27 | + thankYouMessage="Thank you for submitting the form." |
| 28 | + thankYouOption="page" |
| 29 | + themeRef="/libs/fd/af/themes/canvas" |
| 30 | + title="RepeatedPanelCount"> |
| 31 | + <panelcontainer |
| 32 | + jcr:created="{Date}2024-09-10T23:13:17.911Z" |
| 33 | + jcr:createdBy="admin" |
| 34 | + jcr:lastModified="{Date}2024-09-10T23:25:26.487Z" |
| 35 | + jcr:lastModifiedBy="admin" |
| 36 | + jcr:primaryType="nt:unstructured" |
| 37 | + jcr:title="Panel" |
| 38 | + sling:resourceType="forms-components-examples/components/form/panelcontainer" |
| 39 | + enabled="{Boolean}true" |
| 40 | + fieldType="panel" |
| 41 | + hideTitle="false" |
| 42 | + maxOccur="5" |
| 43 | + minOccur="1" |
| 44 | + name="repeat_panel" |
| 45 | + readOnly="{Boolean}false" |
| 46 | + repeatable="true" |
| 47 | + textIsRich="[true,true,true]" |
| 48 | + visible="{Boolean}true" |
| 49 | + wrapData="{Boolean}false"> |
| 50 | + <textinput |
| 51 | + jcr:created="{Date}2024-09-10T23:26:44.690Z" |
| 52 | + jcr:createdBy="admin" |
| 53 | + jcr:lastModified="{Date}2024-09-10T23:29:40.354Z" |
| 54 | + jcr:lastModifiedBy="admin" |
| 55 | + jcr:primaryType="nt:unstructured" |
| 56 | + jcr:title="Text Input" |
| 57 | + sling:resourceType="forms-components-examples/components/form/textinput" |
| 58 | + enabled="{Boolean}true" |
| 59 | + fieldType="text-input" |
| 60 | + hideTitle="false" |
| 61 | + name="who_lives_name" |
| 62 | + readOnly="{Boolean}false" |
| 63 | + textIsRich="[true,true,true]" |
| 64 | + unboundFormElement="{Boolean}false" |
| 65 | + visible="{Boolean}true"/> |
| 66 | + <button |
| 67 | + jcr:created="{Date}2024-09-10T23:26:56.233Z" |
| 68 | + jcr:createdBy="admin" |
| 69 | + jcr:lastModified="{Date}2024-09-10T23:26:56.233Z" |
| 70 | + jcr:lastModifiedBy="admin" |
| 71 | + jcr:primaryType="nt:unstructured" |
| 72 | + jcr:title="Button" |
| 73 | + sling:resourceType="forms-components-examples/components/form/button" |
| 74 | + fieldType="button" |
| 75 | + name="button1726010816552"> |
| 76 | + <fd:rules |
| 77 | + 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.repeat_panel[length($form.repeat_panel) - 1].button1726010816552"\,"type":"BUTTON"\,"name":"button1726010816552"}}\,{"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":"addPanelInstance"\,"displayName":"addPanelInstance"\,"type":"STRING|NUMBER|BOOLEAN|DATE|ARRAY|OBJECT"\,"isDuplicate":false\,"displayPath":""\,"args":[{"type":"OBJECT|AFCOMPONENT"\,"name":"panel"\,"description":"panel"\,"isMandatory":true}]\,"impl":"$0($1)"}\,"params":[{"nodeName":"EXPRESSION"\,"choice":{"nodeName":"COMPONENT"\,"value":{"id":"$form.repeat_panel"\,"displayName":"Panel"\,"type":"AFCOMPONENT"\,"displayPath":"FORM/Panel/"\,"name":"repeat_panel"\,"parent":"$form"\,"metadata":{"isAncestorRepeatable":false}}}}]}}]}]}}]\,"isValid":true\,"enabled":true\,"version":1\,"script":["addPanelInstance($form.repeat_panel)"]\,"eventName":"Click"\,"ruleType":""\,"description":""}]" |
| 78 | + jcr:primaryType="nt:unstructured" |
| 79 | + validationStatus="valid"/> |
| 80 | + <fd:events |
| 81 | + jcr:primaryType="nt:unstructured" |
| 82 | + click="[addPanelInstance($form.repeat_panel)]"/> |
| 83 | + </button> |
| 84 | + <fd:rules |
| 85 | + fd:init="[{"nodeName":"ROOT"\,"items":[{"nodeName":"STATEMENT"\,"choice":{"nodeName":"EVENT_SCRIPTS"\,"items":[{"nodeName":"EVENT_CONDITION"\,"choice":{"nodeName":"EVENT_AND_COMPARISON"\,"items":[{"nodeName":"COMPONENT"\,"value":{"id":"$form.repeat_panel"\,"type":"AFCOMPONENT|PANEL"\,"name":"repeat_panel"}}\,{"nodeName":"EVENT_AND_COMPARISON_OPERATOR"\,"choice":{"nodeName":"is initialized"\,"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":"updatePanelLabel"\,"displayName":"updatePanelLabel"\,"type":"STRING|NUMBER|BOOLEAN|DATE|ARRAY|OBJECT"\,"isDuplicate":false\,"displayPath":""\,"args":[{"type":"OBJECT|AFCOMPONENT"\,"name":"repeatablePanel"\,"description":"repeatablePanel"\,"isMandatory":true}]\,"impl":"$0($1)"}\,"params":[{"nodeName":"EXPRESSION"\,"choice":{"nodeName":"COMPONENT"\,"value":{"id":"$form.repeat_panel"\,"displayName":"Panel"\,"type":"AFCOMPONENT"\,"displayPath":"FORM/Panel/"\,"name":"repeat_panel"\,"parent":"$form"\,"metadata":{"isAncestorRepeatable":false}}}}]}}]}]}}]\,"isValid":true\,"enabled":true\,"version":1\,"script":["updatePanelLabel($field)"]\,"eventName":"Initialize"\,"ruleType":""\,"description":""}]" |
| 86 | + jcr:primaryType="nt:unstructured" |
| 87 | + validationStatus="valid"/> |
| 88 | + <fd:events |
| 89 | + jcr:primaryType="nt:unstructured" |
| 90 | + initialize="[updatePanelLabel($field)]"/> |
| 91 | + </panelcontainer> |
| 92 | + </guideContainer> |
| 93 | + </jcr:content> |
| 94 | +</jcr:root> |
0 commit comments