@nys-cui/cui-formpill 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cui-formpill.js +11 -1
package/package.json
CHANGED
package/src/cui-formpill.js
CHANGED
@@ -412,7 +412,7 @@ class CUI_FORMPILL extends HTMLElement {
|
|
412
412
|
this.addPillfromJSON();
|
413
413
|
|
414
414
|
} else if (reset === true) {
|
415
|
-
if(this._state.configData?.filterCriteria?.loadedPills){
|
415
|
+
if (this._state.configData?.filterCriteria?.loadedPills) {
|
416
416
|
|
417
417
|
this._state.configData.filterCriteria.loadedPills = []
|
418
418
|
}
|
@@ -892,6 +892,9 @@ class CUI_FORMPILL extends HTMLElement {
|
|
892
892
|
this.dValueField.setAttribute('componentKey', 'contextHeaderValue');
|
893
893
|
dPopoverBody.insertBefore(this.dValueField, dPopoverFooter);
|
894
894
|
}
|
895
|
+
if (controls.value.validation) {
|
896
|
+
this.dValueField.setAttribute('validation', controls.value.validation);
|
897
|
+
}
|
895
898
|
|
896
899
|
} else if (controls.value && controls.value.options) {
|
897
900
|
this.dValueField = document.createElement('cui-listbox');
|
@@ -901,6 +904,9 @@ class CUI_FORMPILL extends HTMLElement {
|
|
901
904
|
if (controls.value.multiple) {
|
902
905
|
this.dValueField.setAttribute('multiple', true)
|
903
906
|
}
|
907
|
+
if (controls.value.codedesc) {
|
908
|
+
this.dValueField.setAttribute('codedesc', true)
|
909
|
+
}
|
904
910
|
if (controls.value.search) {
|
905
911
|
this.dValueField.setAttribute('search', true)
|
906
912
|
}
|
@@ -915,6 +921,10 @@ class CUI_FORMPILL extends HTMLElement {
|
|
915
921
|
this.field = document.createElement('cui-date');
|
916
922
|
}
|
917
923
|
|
924
|
+
if(controls.value.control[i].validation){
|
925
|
+
this.field.setAttribute('validation', controls.value.control[i].validation)
|
926
|
+
}
|
927
|
+
|
918
928
|
this.field.setState({ 'label': controls.value.control[i].label })
|
919
929
|
if (controls.value.control[i].required) {
|
920
930
|
this.field.setAttribute('required', '');
|