|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 3 | + ~ Copyright 2022 Adobe |
| 4 | + ~ |
| 5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + ~ you may not use this file except in compliance with the License. |
| 7 | + ~ You may obtain a copy of the License at |
| 8 | + ~ |
| 9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + ~ |
| 11 | + ~ Unless required by applicable law or agreed to in writing, software |
| 12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + ~ See the License for the specific language governing permissions and |
| 15 | + ~ limitations under the License. |
| 16 | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--> |
| 17 | +<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" |
| 18 | + xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" |
| 19 | + xmlns:granite="http://www.adobe.com/jcr/granite/1.0" |
| 20 | + jcr:primaryType="nt:unstructured" |
| 21 | + jcr:title="Adaptive Form Field" |
| 22 | + sling:resourceType="cq/gui/components/authoring/dialog" |
| 23 | + trackingFeature="core-components:design-dialog:adaptiveform-datepicker:v1"> |
| 24 | + <content |
| 25 | + jcr:primaryType="nt:unstructured" |
| 26 | + sling:resourceType="granite/ui/components/coral/foundation/container"> |
| 27 | + <items jcr:primaryType="nt:unstructured"> |
| 28 | + <tabs |
| 29 | + jcr:primaryType="nt:unstructured" |
| 30 | + sling:resourceType="granite/ui/components/coral/foundation/tabs" |
| 31 | + maximized="{Boolean}true"> |
| 32 | + <items jcr:primaryType="nt:unstructured"> |
| 33 | + <formats |
| 34 | + jcr:primaryType="nt:unstructured" |
| 35 | + jcr:title="Formats" |
| 36 | + sling:resourceType="granite/ui/components/coral/foundation/container" |
| 37 | + margin="{Boolean}true"> |
| 38 | + <items jcr:primaryType="nt:unstructured"> |
| 39 | + <column |
| 40 | + jcr:primaryType="nt:unstructured" |
| 41 | + sling:resourceType="granite/ui/components/coral/foundation/container"> |
| 42 | + <items jcr:primaryType="nt:unstructured"> |
| 43 | + <allowedFormats |
| 44 | + jcr:primaryType="nt:unstructured" |
| 45 | + sling:resourceType="granite/ui/components/coral/foundation/form/fieldset" |
| 46 | + fieldDescription="The date picker formats that are allowed to be selected by an author." |
| 47 | + fieldLabel="Allowed Formats" |
| 48 | + name="./allowedFormats"> |
| 49 | + <items jcr:primaryType="nt:unstructured"> |
| 50 | + <pattern1 |
| 51 | + jcr:primaryType="nt:unstructured" |
| 52 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 53 | + checked="true" |
| 54 | + name="./allowedFormat1" |
| 55 | + text="01 April, 2007" |
| 56 | + value="01 April, 2007=d MMMM, y"/> |
| 57 | + <pattern2 |
| 58 | + jcr:primaryType="nt:unstructured" |
| 59 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 60 | + checked="true" |
| 61 | + name="./allowedFormat2" |
| 62 | + text="April 01, 2007" |
| 63 | + value="April 01, 2007=MMMM d, y"/> |
| 64 | + <pattern3 |
| 65 | + jcr:primaryType="nt:unstructured" |
| 66 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 67 | + checked="true" |
| 68 | + name="./allowedFormat3" |
| 69 | + text="Sunday, 01 April, 2007" |
| 70 | + value="Sunday, 01 April, 2007=EEEE, d MMMM, y"/> |
| 71 | + <pattern4 |
| 72 | + jcr:primaryType="nt:unstructured" |
| 73 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 74 | + checked="true" |
| 75 | + name="./allowedFormat4" |
| 76 | + text="Sunday, April 01, 2007" |
| 77 | + value="Sunday, April 01, 2007=EEEE, MMMM d, y"/> |
| 78 | + <pattern5 |
| 79 | + jcr:primaryType="nt:unstructured" |
| 80 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 81 | + checked="true" |
| 82 | + name="./allowedFormat5" |
| 83 | + text="1/4/2007" |
| 84 | + value="1/4/2007=d/M/y"/> |
| 85 | + <pattern6 |
| 86 | + jcr:primaryType="nt:unstructured" |
| 87 | + sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" |
| 88 | + checked="true" |
| 89 | + name="./allowedFormat6" |
| 90 | + text="4/1/2007" |
| 91 | + value="4/1/2007=M/d/y"/> |
| 92 | + </items> |
| 93 | + </allowedFormats> |
| 94 | + <customFormats |
| 95 | + jcr:primaryType="nt:unstructured" |
| 96 | + sling:resourceType="granite/ui/components/coral/foundation/form/multifield" |
| 97 | + fieldDescription="The date picker formats that are allowed to be selected by an author." |
| 98 | + fieldLabel="Custom Formats" |
| 99 | + composite="true" |
| 100 | + name="./allowedCustomFormats"> |
| 101 | + <field |
| 102 | + jcr:primaryType="nt:unstructured" |
| 103 | + sling:resourceType = "granite/ui/components/coral/foundation/container" |
| 104 | + name = "./allowedCustomFormats"> |
| 105 | + <items jcr:primaryType="nt:unstructured"> |
| 106 | + <customFormatKey |
| 107 | + jcr:primaryType="nt:unstructured" |
| 108 | + fieldDescription="The date picker format that will be displayed in formatter dropdown in dialog." |
| 109 | + fieldLabel="Custom Format Key" |
| 110 | + sling:resourceType = "granite/ui/components/coral/foundation/form/textfield" |
| 111 | + name = "customFormatKey"/> |
| 112 | + <customFormatExpression |
| 113 | + jcr:primaryType="nt:unstructured" |
| 114 | + fieldDescription="The date picker format in unicode which will be used in runtime." |
| 115 | + fieldLabel="Custom Format Expression" |
| 116 | + sling:resourceType = "granite/ui/components/coral/foundation/form/textfield" |
| 117 | + name = "customFormatValue"/> |
| 118 | + </items> |
| 119 | + </field> |
| 120 | + </customFormats> |
| 121 | + </items> |
| 122 | + </column> |
| 123 | + </items> |
| 124 | + </formats> |
| 125 | + </items> |
| 126 | + </tabs> |
| 127 | + </items> |
| 128 | + </content> |
| 129 | +</jcr:root> |
0 commit comments