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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.9.0",
4
+ "version": "1.10.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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,4 @@
1
+ <template>
2
+ <div></div>
3
+ </template>
4
+ <script setup lang="ts"></script>
@@ -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 provinces"
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",