From 835447263e10da9bc043bea03e9a438f0713abc1 Mon Sep 17 00:00:00 2001 From: Armaan Gupta Date: Fri, 7 Nov 2025 21:49:14 +0530 Subject: [PATCH 01/17] made new version of the checkboxgroup component --- .../form/checkboxgroup/v2/.content.xml | 4 ++ .../v2/checkboxgroup/.content.xml | 8 +++ .../v2/checkboxgroup/checkboxgroup.html | 52 +++++++++++++++++++ .../v2/checkboxgroup/checkboxgroup.js | 35 +++++++++++++ .../v2/checkboxgroup/widget.html | 35 +++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/.content.xml create mode 100644 ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/.content.xml create mode 100644 ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.html create mode 100644 ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.js create mode 100644 ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/widget.html diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/.content.xml b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/.content.xml new file mode 100644 index 0000000000..5e25fbe65e --- /dev/null +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/.content.xml @@ -0,0 +1,4 @@ + + + diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/.content.xml b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/.content.xml new file mode 100644 index 0000000000..a52f6f2f99 --- /dev/null +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/.content.xml @@ -0,0 +1,8 @@ + + diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.html new file mode 100644 index 0000000000..d4c690a2fc --- /dev/null +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.html @@ -0,0 +1,52 @@ + + + + +
+ + + + + + + + +
+ +
+ +
+
\ No newline at end of file diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.js b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.js new file mode 100644 index 0000000000..659d1e2d96 --- /dev/null +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/checkboxgroup.js @@ -0,0 +1,35 @@ +/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~ Copyright 2025 Adobe + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ + + use(function () { + + var clientlibsArr = ['core.forms.components.base.v1.editor']; + var labelPath = 'core/fd/components/af-commons/v1/fieldTemplates/label.html'; + var shortDescriptionPath = "core/fd/components/af-commons/v1/fieldTemplates/shortDescription.html"; + var longDescriptionPath = "core/fd/components/af-commons/v1/fieldTemplates/longDescription.html"; + var questionMarkPath = "core/fd/components/af-commons/v1/fieldTemplates/questionMark.html" + var errorMessagePath = "core/fd/components/af-commons/v1/fieldTemplates/errorMessage.html"; + var legendPath = "core/fd/components/af-commons/v1/fieldTemplates/legend.html" + return { + labelPath: labelPath, + shortDescriptionPath: shortDescriptionPath, + longDescriptionPath: longDescriptionPath, + questionMarkPath: questionMarkPath, + errorMessagePath: errorMessagePath, + legendPath: legendPath, + clientlibs: clientlibsArr + } + }); \ No newline at end of file diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/widget.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/widget.html new file mode 100644 index 0000000000..9192f84216 --- /dev/null +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/checkboxgroup/v2/checkboxgroup/widget.html @@ -0,0 +1,35 @@ + + + + \ No newline at end of file From 3691f7b5192c7333f5be15fb3f5e5f1789a44fab Mon Sep 17 00:00:00 2001 From: Armaan Gupta Date: Fri, 7 Nov 2025 18:43:37 +0530 Subject: [PATCH 02/17] added and modified the samples for the checkboxgroup and translation --- .../samples/af2-form-translation/.content.xml | 4 +- .../checkboxgroupv1/.content.xml | 5 + .../{ => checkboxgroupv1}/basic/.content.xml | 8 +- .../checkboxgroupv1/focustest/.content.xml | 57 +++++ .../checkboxgroupv2/.content.xml | 5 + .../checkboxgroupv2/basic/.content.xml | 196 ++++++++++++++++++ .../focustest/.content.xml | 0 7 files changed, 269 insertions(+), 6 deletions(-) create mode 100755 it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv1/.content.xml rename it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/{ => checkboxgroupv1}/basic/.content.xml (98%) create mode 100644 it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv1/focustest/.content.xml create mode 100755 it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv2/.content.xml create mode 100755 it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv2/basic/.content.xml rename it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/{ => checkboxgroupv2}/focustest/.content.xml (100%) diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/af2-form-translation/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/af2-form-translation/.content.xml index e4df0943fb..dab11d370f 100755 --- a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/af2-form-translation/.content.xml +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/af2-form-translation/.content.xml @@ -44,7 +44,7 @@ jcr:lastModifiedBy="admin" jcr:primaryType="nt:unstructured" jcr:title="Check Box Group" - sling:resourceType="forms-components-examples/components/form/checkboxgroup" + sling:resourceType="core/fd/components/form/checkboxgroup/v1/checkboxgroup" enum="[0,1]" enumNames="[Item 1, Item 2]" fieldType="checkbox-group" @@ -224,7 +224,7 @@ jcr:lastModifiedBy="admin" jcr:primaryType="nt:unstructured" jcr:title="<p><b>Select Animal</b></p>" - sling:resourceType="forms-components-examples/components/form/checkboxgroup" + sling:resourceType="core/fd/components/form/checkboxgroup/v1/checkboxgroup" areOptionsRichText="true" enabled="{Boolean}true" enum="[0,1]" diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv1/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv1/.content.xml new file mode 100755 index 0000000000..8f415a05ec --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/checkboxgroup/checkboxgroupv1/.content.xml @@ -0,0 +1,5 @@ + +