fds-vue-core 4.12.1 → 4.12.2
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/dist/fds-vue-core.cjs.js +7 -2
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +7 -2
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FdsSearchSelectPro/FdsSearchSelectPro.vue +7 -2
- package/src/components/FdsSearchSelectPro/types.ts +2 -0
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -10791,6 +10791,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
10791
10791
|
searchContext: { default: () => ({ context: "", linkWord: "" }) },
|
|
10792
10792
|
valid: { type: [Boolean, null], default: void 0 },
|
|
10793
10793
|
validIconOnSelected: { type: Boolean, default: false },
|
|
10794
|
+
invalidOnEmptySelection: { type: Boolean, default: true },
|
|
10794
10795
|
invalidMessage: { default: "" },
|
|
10795
10796
|
noResultPrompt: { default: "" },
|
|
10796
10797
|
maxListHeight: { default: void 0 },
|
|
@@ -11015,7 +11016,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
11015
11016
|
if (isMultiple.value) {
|
|
11016
11017
|
if (selectedItems.value.length > 0) {
|
|
11017
11018
|
setValidSelectedState();
|
|
11018
|
-
} else if (searchTerm.value.length > 0) {
|
|
11019
|
+
} else if (props.invalidOnEmptySelection && searchTerm.value.length > 0) {
|
|
11019
11020
|
valid.value = false;
|
|
11020
11021
|
} else {
|
|
11021
11022
|
valid.value = null;
|
|
@@ -11169,7 +11170,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
11169
11170
|
}
|
|
11170
11171
|
});
|
|
11171
11172
|
}
|
|
11172
|
-
|
|
11173
|
+
if (selectedItems.value.length > 0) {
|
|
11174
|
+
valid.value = props.validIconOnSelected ? true : null;
|
|
11175
|
+
} else {
|
|
11176
|
+
valid.value = props.invalidOnEmptySelection ? false : null;
|
|
11177
|
+
}
|
|
11173
11178
|
emit("searchSelected", [...selectedItems.value]);
|
|
11174
11179
|
};
|
|
11175
11180
|
const handleMultipleSelectionChange = (item) => {
|