pukaad-ui-lib 1.9.0 → 1.10.0
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/module.json +1 -1
- package/dist/runtime/components/input/input-list-tree.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-list-tree.vue +4 -0
- package/dist/runtime/components/input/input-list-tree.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-select-province.vue +6 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
</div>
|
|
70
70
|
<ShadCommandGroup>
|
|
71
71
|
<ShadCommandItem
|
|
72
|
-
v-for="province in
|
|
72
|
+
v-for="province in filteredProvinces"
|
|
73
73
|
:key="province.value"
|
|
74
74
|
:value="province.label"
|
|
75
75
|
@select="selectProvince(province.value)"
|
|
@@ -125,6 +125,11 @@ const selectedLabel = computed(() => {
|
|
|
125
125
|
const found = provinces.value.find((p) => p.value === modelValue.value);
|
|
126
126
|
return found?.label || "";
|
|
127
127
|
});
|
|
128
|
+
const filteredProvinces = computed(() => {
|
|
129
|
+
if (!search.value) return provinces.value;
|
|
130
|
+
const query = search.value.toLowerCase();
|
|
131
|
+
return provinces.value.filter((p) => p.label.toLowerCase().includes(query));
|
|
132
|
+
});
|
|
128
133
|
const selectProvince = (value) => {
|
|
129
134
|
modelValue.value = value;
|
|
130
135
|
open.value = false;
|