diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/clientlib-it-ruleeditor/js/functions.js b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/clientlib-it-ruleeditor/js/functions.js index b2c619ede1..1dffd392bd 100644 --- a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/clientlib-it-ruleeditor/js/functions.js +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/clientlib-it-ruleeditor/js/functions.js @@ -24,10 +24,18 @@ */ function testSetProperty(input1, normalField, globals) { - globals.functions.setProperty(normalField, {label : {value : 'Changed Label'}}); } +/** + * enableValidationMessageOnlyOnSubmit + * @name enableValidationMessageOnlyOnSubmit + * @param {scope} globals + */ +function enableValidationMessageOnlyOnSubmit(globals) { + globals.functions.setProperty(globals.form, {'properties' : {'enableValidationMessageOnlyOnSubmit' : true}}) +} + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/.content.xml new file mode 100644 index 0000000000..47d7031007 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/.content.xml @@ -0,0 +1,8 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/css.txt b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/css.txt new file mode 100644 index 0000000000..e4a9cd93e9 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/css.txt @@ -0,0 +1,15 @@ +############################################################################### +# Copyright 2023 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. +############################################################################### \ No newline at end of file diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/js.txt b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/js.txt new file mode 100644 index 0000000000..00b68a1429 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/clientlibs/custom-forms-components-runtime-all/js.txt @@ -0,0 +1,15 @@ +############################################################################### +# Copyright 2023 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. +############################################################################### diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/.content.xml new file mode 100644 index 0000000000..0dcbeccf8c --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/.content.xml @@ -0,0 +1,7 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/customfooterlibs.html b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/customfooterlibs.html new file mode 100644 index 0000000000..4f321ee2f6 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/page/customfooterlibs.html @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/.content.xml new file mode 100644 index 0000000000..491392d539 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/.content.xml @@ -0,0 +1,3 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/.content.xml new file mode 100644 index 0000000000..ca19007290 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/.content.xml @@ -0,0 +1,5 @@ + + + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/.content.xml new file mode 100644 index 0000000000..a92272e8f7 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/.content.xml @@ -0,0 +1,8 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/_cq_template.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/_cq_template.xml new file mode 100644 index 0000000000..870afe559e --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/_cq_template.xml @@ -0,0 +1,5 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/.content.xml new file mode 100644 index 0000000000..491392d539 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/.content.xml @@ -0,0 +1,3 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/.content.xml b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/.content.xml new file mode 100644 index 0000000000..ad64efd81c --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/.content.xml @@ -0,0 +1,6 @@ + + diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css.txt b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css.txt new file mode 100644 index 0000000000..4f99e2584d --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css.txt @@ -0,0 +1,18 @@ +############################################################################### +# Copyright 2022 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. +############################################################################### + +#base=css +textinputview.css diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css/textinputview.css b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css/textinputview.css new file mode 100644 index 0000000000..cf79ed50f0 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/css/textinputview.css @@ -0,0 +1,43 @@ +/******************************************************************************* + * Copyright 2022 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. + ******************************************************************************/ + +.cmp-adaptiveform-textinput { + +} + +.cmp-adaptiveform-textinput__widget { + +} +textarea.cmp-adaptiveform-textinput__widget{ + +} + +.cmp-adaptiveform-textinput__label { + +} +.cmp-adaptiveform-textinput__label-container{ + +} + +.cmp-adaptiveform-textinput__longdescription { +} + +.cmp-adaptiveform-textinput__shortdescription { +} + +.cmp-adaptiveform-textinput__questionmark { + +} diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js.txt b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js.txt new file mode 100644 index 0000000000..2177c3690c --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js.txt @@ -0,0 +1,18 @@ +############################################################################### +# Copyright 2022 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. +############################################################################### + +#base=js +textinputview.js diff --git a/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js/textinputview.js b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js/textinputview.js new file mode 100644 index 0000000000..6d7bb57503 --- /dev/null +++ b/it/apps/src/main/content/jcr_root/apps/forms-core-components-it/components/textinput/v1/textinput/clientlibs/site/js/textinputview.js @@ -0,0 +1,42 @@ +/******************************************************************************* + * Copyright 2022 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. + ******************************************************************************/ +(function() { + + "use strict"; + class CustomTextInput extends FormView.v1.TextInput { + + static NS = FormView.Constants.NS; + static IS = FormView.v1.TextInput.IS; + static bemBlock = FormView.v1.TextInput.bemBlock; + static selectors = FormView.v1.TextInput.selectors; + + constructor(params) { + super(params); + } + + updateValidationMessage(validationMessage, state) { + if (this.formContainer.getModel()?.properties?.enableValidationMessageOnlyOnSubmit === true) { + super.updateValidationMessage(validationMessage, state); + } + } + } + + + FormView.Utils.setupField(({element, formContainer}) => { + return new CustomTextInput({element, formContainer}) + }, CustomTextInput.selectors.self); + +})(); diff --git a/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml new file mode 100755 index 0000000000..6a0d44ace4 --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/custom/.content.xml b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/custom/.content.xml new file mode 100644 index 0000000000..2af0295a17 --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/dam/formsanddocuments/core-components-it/samples/textinput/custom/.content.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml new file mode 100755 index 0000000000..ad9e48b099 --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/datepicker/datepickerlayoutissue/.content.xml @@ -0,0 +1,58 @@ + + + + + + + + diff --git a/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/custom/.content.xml b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/custom/.content.xml new file mode 100644 index 0000000000..a1edf4650d --- /dev/null +++ b/it/content/src/main/content/jcr_root/content/forms/af/core-components-it/samples/textinput/custom/.content.xml @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/errorMessage.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/errorMessage.html index bee81870e0..92aa7d845f 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/errorMessage.html +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/errorMessage.html @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/longDescription.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/longDescription.html index dfd09a48f7..43a947c65a 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/longDescription.html +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/af-commons/v1/fieldTemplates/longDescription.html @@ -1,6 +1,6 @@