@ramathibodi/nuxt-commons 4.0.1 → 4.0.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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.3.1"
6
6
  },
7
- "version": "4.0.1",
7
+ "version": "4.0.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -25,8 +25,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
25
25
  size: "large" | "medium";
26
26
  label: string;
27
27
  horizontal: boolean;
28
- truncate: boolean;
29
28
  notFoundText: string;
29
+ truncate: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -25,8 +25,8 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
25
25
  size: "large" | "medium";
26
26
  label: string;
27
27
  horizontal: boolean;
28
- truncate: boolean;
29
28
  notFoundText: string;
29
+ truncate: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -2,9 +2,9 @@
2
2
  * MasterSelect renders master-data driven option controls and synchronizes selected values with form models.
3
3
  * This doc block is consumed by vue-docgen for generated API documentation.
4
4
  */
5
- import { VCombobox } from 'vuetify/components/VCombobox';
5
+ import { VSelect } from 'vuetify/components/VSelect';
6
6
  import { type StaticMasterLikeProps } from '../../composables/lookupListMaster.js';
7
- interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
7
+ interface Props extends /* @vue-ignore */ InstanceType<typeof VSelect['$props']> {
8
8
  }
9
9
  /**
10
10
  * Public props accepted by MasterSelect.
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VCombobox } from "vuetify/components/VCombobox";
2
+ import { VSelect } from "vuetify/components/VSelect";
3
3
  import { useLookupListMaster } from "../../composables/lookupListMaster";
4
4
  const props = defineProps({
5
5
  sortBy: { type: String, required: false, default: "itemValue" },
@@ -30,7 +30,7 @@ const {
30
30
  </script>
31
31
 
32
32
  <template>
33
- <model-combobox
33
+ <model-select
34
34
  :model-name="computedModelName"
35
35
  :model-by="computedModelBy"
36
36
  :fields="computedFields"
@@ -58,5 +58,5 @@ const {
58
58
  <template v-if="!$slots.selection && props.showCode" #selection="{ item }">
59
59
  {{ formatItemTitle(item) }}
60
60
  </template>
61
- </model-combobox>
61
+ </model-select>
62
62
  </template>
@@ -2,9 +2,9 @@
2
2
  * MasterSelect renders master-data driven option controls and synchronizes selected values with form models.
3
3
  * This doc block is consumed by vue-docgen for generated API documentation.
4
4
  */
5
- import { VCombobox } from 'vuetify/components/VCombobox';
5
+ import { VSelect } from 'vuetify/components/VSelect';
6
6
  import { type StaticMasterLikeProps } from '../../composables/lookupListMaster.js';
7
- interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
7
+ interface Props extends /* @vue-ignore */ InstanceType<typeof VSelect['$props']> {
8
8
  }
9
9
  /**
10
10
  * Public props accepted by MasterSelect.
@@ -2,10 +2,10 @@
2
2
  * ModelSelect connects model metadata to reusable selection, labeling, iterator, or table UI patterns.
3
3
  * This doc block is consumed by vue-docgen for generated API documentation.
4
4
  */
5
- import { VCombobox } from 'vuetify/components/VCombobox';
5
+ import { VSelect } from 'vuetify/components/VSelect';
6
6
  import { type StaticLookupProps } from '../../composables/lookupList.js';
7
7
  import { type PersistSlimProps } from '../../composables/localStorageModel.js';
8
- interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
8
+ interface Props extends /* @vue-ignore */ InstanceType<typeof VSelect['$props']> {
9
9
  }
10
10
  /**
11
11
  * Public props accepted by ModelSelect.
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { VCombobox } from "vuetify/components/VCombobox";
2
+ import { VSelect } from "vuetify/components/VSelect";
3
3
  import { useLookupList } from "../../composables/lookupList";
4
4
  import { useLocalStorageModel } from "../../composables/localStorageModel";
5
5
  const props = defineProps({
@@ -35,29 +35,22 @@ const selectedItems = defineModel({ type: null });
35
35
  useLocalStorageModel(selectedItems, props);
36
36
  const {
37
37
  computedItems,
38
- computedFilterKeys,
39
- computedPlaceholder,
40
38
  computedNoDataText,
41
39
  isLoading,
42
40
  isErrorLoading,
43
- searchData,
44
41
  onUpdateModelValue
45
- // ✅ from composable
46
42
  } = useLookupList(props, emit, selectedItems);
47
43
  </script>
48
44
 
49
45
  <template>
50
- <v-combobox
46
+ <v-select
51
47
  :model-value="selectedItems"
52
48
  @update:model-value="onUpdateModelValue"
53
- v-model:search="searchData"
54
49
  v-bind="$attrs"
55
50
  :items="computedItems"
56
- :filter-keys="computedFilterKeys"
57
51
  :item-title="props.itemTitle"
58
52
  :item-value="props.itemValue"
59
53
  :loading="isLoading"
60
- :placeholder="computedPlaceholder"
61
54
  :no-data-text="computedNoDataText"
62
55
  :multiple="props.multiple"
63
56
  :return-object="false"
@@ -79,5 +72,5 @@ const {
79
72
  <template v-if="isErrorLoading" #append>
80
73
  <v-icon color="error">mdi mdi-alert</v-icon>
81
74
  </template>
82
- </v-combobox>
75
+ </v-select>
83
76
  </template>
@@ -2,10 +2,10 @@
2
2
  * ModelSelect connects model metadata to reusable selection, labeling, iterator, or table UI patterns.
3
3
  * This doc block is consumed by vue-docgen for generated API documentation.
4
4
  */
5
- import { VCombobox } from 'vuetify/components/VCombobox';
5
+ import { VSelect } from 'vuetify/components/VSelect';
6
6
  import { type StaticLookupProps } from '../../composables/lookupList.js';
7
7
  import { type PersistSlimProps } from '../../composables/localStorageModel.js';
8
- interface Props extends /* @vue-ignore */ InstanceType<typeof VCombobox['$props']> {
8
+ interface Props extends /* @vue-ignore */ InstanceType<typeof VSelect['$props']> {
9
9
  }
10
10
  /**
11
11
  * Public props accepted by ModelSelect.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramathibodi/nuxt-commons",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Ramathibodi Nuxt modules for common components",
5
5
  "repository": {
6
6
  "type": "git",