eco-vue-js 0.10.4 → 0.10.6

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.
Files changed (100) hide show
  1. package/dist/components/Button/WButtonDropdown.vue.d.ts +1 -1
  2. package/dist/components/Button/WButtonDropdown.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonDropdown.vue.js +1 -12
  4. package/dist/components/Button/WButtonSelection.vue.d.ts +6 -5
  5. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonSelection.vue.js +10 -24
  7. package/dist/components/Checkbox/WCheckbox.vue.d.ts +0 -2
  8. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  9. package/dist/components/Checkbox/WCheckbox.vue.js +2 -8
  10. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +1 -14
  11. package/dist/components/Form/WForm.vue.d.ts +2 -2
  12. package/dist/components/Form/WFormValidator.vue.d.ts +2 -2
  13. package/dist/components/Form/WFormValidator.vue.js +1 -14
  14. package/dist/components/Form/models/utils.js +0 -14
  15. package/dist/components/FormAsync/use/useFormAsync.d.ts.map +1 -1
  16. package/dist/components/FormAsync/use/useFormAsync.js +2 -14
  17. package/dist/components/HeaderBar/WHeaderBar.vue.js +2 -2
  18. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +3 -18
  19. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  20. package/dist/components/InfiniteList/WInfiniteList.vue.js +25 -83
  21. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +1 -1
  22. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -5
  23. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  24. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +8 -27
  25. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts +1 -8
  26. package/dist/components/InfiniteList/components/InfiniteListPages.vue.d.ts.map +1 -1
  27. package/dist/components/InfiniteList/components/InfiniteListPages.vue.js +10 -21
  28. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +0 -13
  29. package/dist/components/Input/WInputSuggest.vue.js +3 -3
  30. package/dist/components/List/WList.vue.d.ts +3 -0
  31. package/dist/components/List/WList.vue.d.ts.map +1 -1
  32. package/dist/components/List/WList.vue.js +230 -245
  33. package/dist/components/List/WListCard.vue.d.ts +15 -9
  34. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  35. package/dist/components/List/WListCard.vue.js +79 -84
  36. package/dist/components/List/WListHeaderItem.vue.d.ts.map +1 -1
  37. package/dist/components/List/WListHeaderItem.vue.js +1 -1
  38. package/dist/components/List/components/HeaderSettings.vue.d.ts +3 -2
  39. package/dist/components/List/components/HeaderSettings.vue.d.ts.map +1 -1
  40. package/dist/components/List/components/HeaderSettings.vue.js +21 -25
  41. package/dist/components/List/components/HeaderSort.vue.d.ts +1 -1
  42. package/dist/components/List/components/HeaderSort.vue.d.ts.map +1 -1
  43. package/dist/components/List/components/HeaderSort.vue.js +0 -13
  44. package/dist/components/List/components/ListCardAction.vue.d.ts +23 -0
  45. package/dist/components/List/components/ListCardAction.vue.d.ts.map +1 -0
  46. package/dist/components/List/components/ListCardAction.vue.js +23 -0
  47. package/dist/components/List/components/ListCardAction.vue2.js +5 -0
  48. package/dist/components/List/components/ListCardFieldNested.vue.d.ts +2 -0
  49. package/dist/components/List/components/ListCardFieldNested.vue.d.ts.map +1 -1
  50. package/dist/components/List/components/ListCardFieldNested.vue.js +2 -1
  51. package/dist/components/List/types.d.ts +5 -0
  52. package/dist/components/List/types.d.ts.map +1 -1
  53. package/dist/components/List/use/useListConfig.d.ts +3 -10
  54. package/dist/components/List/use/useListConfig.d.ts.map +1 -1
  55. package/dist/components/List/use/useListConfig.js +20 -16
  56. package/dist/components/List/use/useOrdering.js +3 -3
  57. package/dist/components/Modal/WModalStepper.vue.d.ts +26 -26
  58. package/dist/components/Nav/WNavItemExpand.vue.js +0 -13
  59. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  60. package/dist/components/Select/WSelect.vue.js +2 -2
  61. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  62. package/dist/components/Select/WSelectAsync.vue.js +2 -2
  63. package/dist/components/Select/WSelectAsyncList.vue.d.ts +1 -1
  64. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  65. package/dist/components/Select/WSelectAsyncList.vue.js +0 -1
  66. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  67. package/dist/components/Select/components/SelectAsyncList.vue.js +15 -11
  68. package/dist/components/Tabs/WTabs.vue.d.ts +24 -24
  69. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  70. package/dist/components/Tabs/WTabs.vue.js +4 -17
  71. package/dist/components/Tabs/WTabsColumns.vue.js +2 -2
  72. package/dist/components/Tabs/components/TabItem.vue.d.ts +12 -12
  73. package/dist/main.js +2 -2
  74. package/dist/types/global.d.ts +0 -11
  75. package/dist/utils/mobile.d.ts +3 -0
  76. package/dist/utils/mobile.d.ts.map +1 -1
  77. package/dist/utils/mobile.js +15 -2
  78. package/dist/utils/useSelected.d.ts +22 -10
  79. package/dist/utils/useSelected.d.ts.map +1 -1
  80. package/dist/utils/useSelected.js +172 -45
  81. package/dist/utils/utils.d.ts +5 -0
  82. package/dist/utils/utils.d.ts.map +1 -1
  83. package/dist/utils/utils.js +9 -1
  84. package/eslint/plugin.js +4 -0
  85. package/package.json +1 -1
  86. package/tailwind-base/plugins/default.ts +5 -2
  87. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +0 -31
  88. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +0 -1
  89. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +0 -30
  90. package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +0 -5
  91. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +0 -27
  92. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +0 -1
  93. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +0 -66
  94. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue2.js +0 -5
  95. package/dist/components/InfiniteList/models/injection.d.ts +0 -16
  96. package/dist/components/InfiniteList/models/injection.d.ts.map +0 -1
  97. package/dist/components/InfiniteList/models/injection.js +0 -4
  98. package/dist/components/InfiniteList/use/useSelected.d.ts +0 -14
  99. package/dist/components/InfiniteList/use/useSelected.d.ts.map +0 -1
  100. package/dist/components/InfiniteList/use/useSelected.js +0 -151
@@ -1,18 +1,11 @@
1
- import { FieldConfig, FieldConfigMap, ListField, ListFields } from '../types';
2
1
  import { MaybeRef } from 'vue';
3
- export declare enum ListMode {
4
- TABLE = "table",
5
- GRID = "grid"
6
- }
2
+ import { ListMode } from '../../../utils/utils';
3
+ import { FieldConfig, FieldConfigMap, ListConfig, ListField, ListFields } from '../types';
7
4
  export declare const listModeList: ListMode[];
8
5
  export declare const listModeIconMap: Record<ListMode, SVGComponent>;
9
- export type ListConfig<Fields extends ListFields<unknown>> = {
10
- fields: FieldConfigMap<Fields>;
11
- mode: ListMode;
12
- };
13
6
  export declare const filterFields: <F extends ListFields<any, any>>(fields: F, method: (field: ListField<unknown>) => boolean) => F;
14
7
  export declare const getFirstFieldLabel: <F extends ListFields<any, any>[number]>(field: F) => string;
15
- export declare const useListConfig: <Fields extends ListFields<any, any>>(key: MaybeRef<string>, fields: MaybeRef<Fields>, defaultConfigMap: MaybeRef<FieldConfigMap<Fields>>) => {
8
+ export declare const useListConfig: <Fields extends ListFields<any, any>>(key: MaybeRef<string>, fields: MaybeRef<Fields>, defaultConfigMap: MaybeRef<FieldConfigMap<Fields>>, defailtMode: MaybeRef<ListMode>) => {
16
9
  listConfig: import('vue').ComputedRef<ListConfig<Fields>>;
17
10
  fieldConfigMap: import('vue').WritableComputedRef<Record<string, FieldConfig>, Record<string, FieldConfig>>;
18
11
  isGrid: import('vue').ComputedRef<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"useListConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useListConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,UAAU,CAAA;AAEhF,OAAO,EAAC,KAAK,QAAQ,EAA8C,MAAM,KAAK,CAAA;AAK9E,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,YAGxB,CAAA;AAUD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAG1D,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,OAAO,CAAC,IAAI;IAC3D,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC9B,IAAI,EAAE,QAAQ,CAAA;CACf,CAAA;AAoED,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,OAAO,KAAG,CAUxH,CAAA;AAGD,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAG,MAErF,CAAA;AAGD,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAU,QAAQ,CAAC,MAAM,CAAC,oBAAoB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;;;;uBAiC1I,QAAQ;CA2BnC,CAAA"}
1
+ {"version":3,"file":"useListConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/List/use/useListConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,QAAQ,EAA8C,MAAM,KAAK,CAAA;AAM9E,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AAEtC,OAAO,EAAC,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAC,MAAM,UAAU,CAAA;AAEhH,eAAO,MAAM,YAAY,YAGxB,CAAA;AAUD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAG1D,CAAA;AAoED,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,OAAO,KAAG,CAUxH,CAAA;AAGD,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAG,MAErF,CAAA;AAGD,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAU,QAAQ,CAAC,MAAM,CAAC,oBAAoB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,eAAe,QAAQ,CAAC,QAAQ,CAAC;;;;;;;uBAoC3K,QAAQ;CA2BnC,CAAA"}
@@ -1,26 +1,28 @@
1
1
  import { markRaw, ref, unref, computed, isRef, watch } from 'vue';
2
2
  import IconGrid from '../../../assets/icons/sax/IconGrid.svg.js';
3
3
  import IconTable from '../../../assets/icons/sax/IconTable.svg.js';
4
+ import { useIsMobile } from '../../../utils/mobile.js';
5
+ import { ListMode } from '../../../utils/utils.js';
4
6
 
5
7
  const listModeList = [
6
- "table" /* TABLE */,
7
- "grid" /* GRID */
8
+ ListMode.TABLE,
9
+ ListMode.GRID
8
10
  ];
9
11
  const isListMode = (value) => {
10
12
  return typeof value === "string" && listModeList.includes(value);
11
13
  };
12
14
  const parseListMode = (value) => {
13
- return isListMode(value) ? value : "table" /* TABLE */;
15
+ return isListMode(value) ? value : void 0;
14
16
  };
15
17
  const listModeIconMap = {
16
- ["table" /* TABLE */]: markRaw(IconTable),
17
- ["grid" /* GRID */]: markRaw(IconGrid)
18
+ [ListMode.TABLE]: markRaw(IconTable),
19
+ [ListMode.GRID]: markRaw(IconGrid)
18
20
  };
19
21
  const fieldConfigKeyLength = 3;
20
22
  const isFieldConfig = (value) => {
21
23
  return value instanceof Object && Object.keys(value).length <= fieldConfigKeyLength && (!("width" in value) || value.width === null || typeof value.width === "number") && (!("visible" in value) || typeof value.visible === "boolean") && (!("order" in value) || typeof value.order === "number");
22
24
  };
23
- const parseFieldConfigMap = (value, fields, defaultConfigMap) => {
25
+ const parseFieldConfigMap = (value, fields, fieldConfigMap) => {
24
26
  const configMap = {};
25
27
  const processFields = (fieldList) => {
26
28
  fieldList.forEach((field) => {
@@ -29,7 +31,7 @@ const parseFieldConfigMap = (value, fields, defaultConfigMap) => {
29
31
  return;
30
32
  }
31
33
  const config = value instanceof Object && field.label in value ? value[field.label] : void 0;
32
- const defaultConfig = defaultConfigMap[field.label];
34
+ const defaultConfig = fieldConfigMap[field.label];
33
35
  if (!isFieldConfig(config)) {
34
36
  configMap[field.label] = { ...defaultConfig };
35
37
  } else {
@@ -47,10 +49,10 @@ const parseFieldConfigMap = (value, fields, defaultConfigMap) => {
47
49
  });
48
50
  return configMap;
49
51
  };
50
- const parseListConfig = (value, fields, defaultConfigMap) => {
52
+ const parseListConfig = (value, fields, fieldConfigMap, mode = ListMode.TABLE) => {
51
53
  return {
52
- fields: parseFieldConfigMap(value instanceof Object && "fields" in value ? value.fields : void 0, fields, defaultConfigMap),
53
- mode: parseListMode(value instanceof Object && "mode" in value ? value.mode : void 0)
54
+ fields: parseFieldConfigMap(value instanceof Object && "fields" in value ? value.fields : void 0, fields, fieldConfigMap),
55
+ mode: value instanceof Object && "mode" in value ? parseListMode(value.mode) ?? mode : mode
54
56
  };
55
57
  };
56
58
  const getListConfig = (key) => {
@@ -74,12 +76,14 @@ const filterFields = (fields, method) => {
74
76
  const getFirstFieldLabel = (field) => {
75
77
  return "label" in field ? field.label : getFirstFieldLabel(field.fields[0]);
76
78
  };
77
- const useListConfig = (key, fields, defaultConfigMap) => {
79
+ const useListConfig = (key, fields, defaultConfigMap, defailtMode) => {
80
+ const { isMobile } = useIsMobile();
78
81
  const value = ref(
79
82
  parseListConfig(
80
83
  getListConfig(unref(key)),
81
84
  unref(fields),
82
- unref(defaultConfigMap)
85
+ unref(defaultConfigMap),
86
+ unref(defailtMode)
83
87
  )
84
88
  );
85
89
  const hasSaved = ref(localStorage.getItem(unref(key)) !== null);
@@ -91,9 +95,9 @@ const useListConfig = (key, fields, defaultConfigMap) => {
91
95
  save();
92
96
  }
93
97
  });
94
- const isGrid = computed(() => value.value.mode === "grid" /* GRID */);
98
+ const isGrid = computed(() => isMobile.value || value.value.mode === ListMode.GRID);
95
99
  const reset = () => {
96
- value.value = parseListConfig(void 0, unref(fields), unref(defaultConfigMap));
100
+ value.value = parseListConfig(void 0, unref(fields), unref(defaultConfigMap), unref(defailtMode));
97
101
  hasSaved.value = false;
98
102
  localStorage.removeItem(unref(key));
99
103
  };
@@ -107,12 +111,12 @@ const useListConfig = (key, fields, defaultConfigMap) => {
107
111
  };
108
112
  if (isRef(key)) {
109
113
  watch(key, (newKey) => {
110
- value.value = parseListConfig(getListConfig(unref(newKey)), unref(fields), unref(defaultConfigMap));
114
+ value.value = parseListConfig(getListConfig(unref(newKey)), unref(fields), unref(defaultConfigMap), unref(defailtMode));
111
115
  hasSaved.value = localStorage.getItem(unref(key)) !== null;
112
116
  });
113
117
  }
114
118
  if (isRef(defaultConfigMap)) watch(defaultConfigMap, (newValue) => {
115
- value.value = parseListConfig(getListConfig(unref(key)), unref(fields), newValue);
119
+ value.value = parseListConfig(getListConfig(unref(key)), unref(fields), newValue, unref(defailtMode));
116
120
  hasSaved.value = localStorage.getItem(unref(key)) !== null;
117
121
  });
118
122
  return {
@@ -19,9 +19,9 @@ const useOrdering = (ordering, field) => {
19
19
  const setOrdering = () => {
20
20
  const newOrdering = ordering.value.slice();
21
21
  if (index.value === -1) {
22
- newOrdering.push({ field: field.value, order: Order.ASC });
23
- } else if (newOrdering[index.value].order === Order.ASC) {
24
- newOrdering[index.value].order = Order.DESC;
22
+ newOrdering.push({ field: field.value, order: Order.DESC });
23
+ } else if (newOrdering[index.value].order === Order.DESC) {
24
+ newOrdering[index.value].order = Order.ASC;
25
25
  } else {
26
26
  newOrdering.splice(index.value, 1);
27
27
  }
@@ -42,8 +42,8 @@ declare function __VLS_template(): {
42
42
  readonly name?: string | undefined;
43
43
  readonly title?: string | undefined;
44
44
  readonly noTag?: boolean | undefined;
45
- readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
46
45
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
46
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
47
47
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
48
48
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
49
49
  $attrs: {
@@ -58,15 +58,15 @@ declare function __VLS_template(): {
58
58
  $root: import('vue').ComponentPublicInstance | null;
59
59
  $parent: import('vue').ComponentPublicInstance | null;
60
60
  $host: Element | null;
61
- $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-value", value: boolean | null) => void);
61
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
62
62
  $el: any;
63
63
  $options: import('vue').ComponentOptionsBase<Readonly<{
64
64
  name?: string;
65
65
  title?: string;
66
66
  noTag?: boolean;
67
67
  }> & Readonly<{
68
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
69
68
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
69
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
70
70
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
71
71
  }>, {
72
72
  isValid: import('vue').ComputedRef<boolean>;
@@ -83,8 +83,8 @@ declare function __VLS_template(): {
83
83
  errorMessage: import('vue').Ref<string | undefined, string | undefined>;
84
84
  errorMessageMap: import('vue').Ref<Record<string, string | undefined>, Record<string, string | undefined>>;
85
85
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
86
- "update:has-changes": (value: boolean) => any;
87
86
  "update:is-valid": (value: boolean | undefined) => any;
87
+ "update:has-changes": (value: boolean) => any;
88
88
  "update:has-value": (value: boolean | null) => any;
89
89
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
90
90
  beforeCreate?: (() => void) | (() => void)[];
@@ -111,10 +111,10 @@ declare function __VLS_template(): {
111
111
  title?: string;
112
112
  noTag?: boolean;
113
113
  }> & Readonly<{
114
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
115
114
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
115
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
116
116
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
117
- }>, "errorMessage" | "hasChanges" | "hasChangesMap" | "isValid" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
117
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
118
118
  isValid: import('vue').ComputedRef<boolean>;
119
119
  hasChanges: import('vue').Ref<boolean, boolean>;
120
120
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
@@ -299,8 +299,8 @@ declare function __VLS_template(): {
299
299
  readonly name?: string | undefined;
300
300
  readonly title?: string | undefined;
301
301
  readonly noTag?: boolean | undefined;
302
- readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
303
302
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
303
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
304
304
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
305
305
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
306
306
  $attrs: {
@@ -315,15 +315,15 @@ declare function __VLS_template(): {
315
315
  $root: import('vue').ComponentPublicInstance | null;
316
316
  $parent: import('vue').ComponentPublicInstance | null;
317
317
  $host: Element | null;
318
- $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-value", value: boolean | null) => void);
318
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
319
319
  $el: any;
320
320
  $options: import('vue').ComponentOptionsBase<Readonly<{
321
321
  name?: string;
322
322
  title?: string;
323
323
  noTag?: boolean;
324
324
  }> & Readonly<{
325
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
326
325
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
326
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
327
327
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
328
328
  }>, {
329
329
  isValid: import('vue').ComputedRef<boolean>;
@@ -340,8 +340,8 @@ declare function __VLS_template(): {
340
340
  errorMessage: import('vue').Ref<string | undefined, string | undefined>;
341
341
  errorMessageMap: import('vue').Ref<Record<string, string | undefined>, Record<string, string | undefined>>;
342
342
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
343
- "update:has-changes": (value: boolean) => any;
344
343
  "update:is-valid": (value: boolean | undefined) => any;
344
+ "update:has-changes": (value: boolean) => any;
345
345
  "update:has-value": (value: boolean | null) => any;
346
346
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
347
347
  beforeCreate?: (() => void) | (() => void)[];
@@ -368,10 +368,10 @@ declare function __VLS_template(): {
368
368
  title?: string;
369
369
  noTag?: boolean;
370
370
  }> & Readonly<{
371
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
372
371
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
372
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
373
373
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
374
- }>, "errorMessage" | "hasChanges" | "hasChangesMap" | "isValid" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
374
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
375
375
  isValid: import('vue').ComputedRef<boolean>;
376
376
  hasChanges: import('vue').Ref<boolean, boolean>;
377
377
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
@@ -548,16 +548,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
548
548
  previous: () => void;
549
549
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
550
550
  submit: () => any;
551
- "close:modal": () => any;
552
551
  "update:has-changes": (value: boolean) => any;
552
+ "close:modal": () => any;
553
553
  }, string, import('vue').PublicProps, Readonly<{
554
554
  loading?: boolean;
555
555
  disabled?: boolean;
556
556
  disabledNext?: boolean;
557
557
  }> & Readonly<{
558
558
  onSubmit?: (() => any) | undefined;
559
- "onClose:modal"?: (() => any) | undefined;
560
559
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
560
+ "onClose:modal"?: (() => any) | undefined;
561
561
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
562
562
  tabsStepper: ({
563
563
  $: import('vue').ComponentInternalInstance;
@@ -597,8 +597,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
597
597
  readonly name?: string | undefined;
598
598
  readonly title?: string | undefined;
599
599
  readonly noTag?: boolean | undefined;
600
- readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
601
600
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
601
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
602
602
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
603
603
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
604
604
  $attrs: {
@@ -613,15 +613,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
613
613
  $root: import('vue').ComponentPublicInstance | null;
614
614
  $parent: import('vue').ComponentPublicInstance | null;
615
615
  $host: Element | null;
616
- $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-value", value: boolean | null) => void);
616
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
617
617
  $el: any;
618
618
  $options: import('vue').ComponentOptionsBase<Readonly<{
619
619
  name?: string;
620
620
  title?: string;
621
621
  noTag?: boolean;
622
622
  }> & Readonly<{
623
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
624
623
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
624
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
625
625
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
626
626
  }>, {
627
627
  isValid: import('vue').ComputedRef<boolean>;
@@ -638,8 +638,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
638
638
  errorMessage: import('vue').Ref<string | undefined, string | undefined>;
639
639
  errorMessageMap: import('vue').Ref<Record<string, string | undefined>, Record<string, string | undefined>>;
640
640
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
641
- "update:has-changes": (value: boolean) => any;
642
641
  "update:is-valid": (value: boolean | undefined) => any;
642
+ "update:has-changes": (value: boolean) => any;
643
643
  "update:has-value": (value: boolean | null) => any;
644
644
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
645
645
  beforeCreate?: (() => void) | (() => void)[];
@@ -666,10 +666,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
666
666
  title?: string;
667
667
  noTag?: boolean;
668
668
  }> & Readonly<{
669
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
670
669
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
670
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
671
671
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
672
- }>, "errorMessage" | "hasChanges" | "hasChangesMap" | "isValid" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
672
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
673
673
  isValid: import('vue').ComputedRef<boolean>;
674
674
  hasChanges: import('vue').Ref<boolean, boolean>;
675
675
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
@@ -854,8 +854,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
854
854
  readonly name?: string | undefined;
855
855
  readonly title?: string | undefined;
856
856
  readonly noTag?: boolean | undefined;
857
- readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
858
857
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
858
+ readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
859
859
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
860
860
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
861
861
  $attrs: {
@@ -870,15 +870,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
870
870
  $root: import('vue').ComponentPublicInstance | null;
871
871
  $parent: import('vue').ComponentPublicInstance | null;
872
872
  $host: Element | null;
873
- $emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-value", value: boolean | null) => void);
873
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
874
874
  $el: any;
875
875
  $options: import('vue').ComponentOptionsBase<Readonly<{
876
876
  name?: string;
877
877
  title?: string;
878
878
  noTag?: boolean;
879
879
  }> & Readonly<{
880
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
881
880
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
881
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
882
882
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
883
883
  }>, {
884
884
  isValid: import('vue').ComputedRef<boolean>;
@@ -895,8 +895,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
895
895
  errorMessage: import('vue').Ref<string | undefined, string | undefined>;
896
896
  errorMessageMap: import('vue').Ref<Record<string, string | undefined>, Record<string, string | undefined>>;
897
897
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
898
- "update:has-changes": (value: boolean) => any;
899
898
  "update:is-valid": (value: boolean | undefined) => any;
899
+ "update:has-changes": (value: boolean) => any;
900
900
  "update:has-value": (value: boolean | null) => any;
901
901
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
902
902
  beforeCreate?: (() => void) | (() => void)[];
@@ -923,10 +923,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
923
923
  title?: string;
924
924
  noTag?: boolean;
925
925
  }> & Readonly<{
926
- "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
927
926
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
927
+ "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
928
928
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
929
- }>, "errorMessage" | "hasChanges" | "hasChangesMap" | "isValid" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
929
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
930
930
  isValid: import('vue').ComputedRef<boolean>;
931
931
  hasChanges: import('vue').Ref<boolean, boolean>;
932
932
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
@@ -1,20 +1,7 @@
1
1
  import { defineComponent, useSlots, computed, ref, reactive, watch, onBeforeUnmount, createElementBlock, openBlock, createVNode, withCtx, unref, normalizeClass, renderSlot, Fragment, renderList, createBlock, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$2 from '../Expansion/WExpansion.vue.js';
3
3
  import IconArrow from '../../assets/icons/default/IconArrow.svg.js';
4
- import '../Button/WButtonAction.vue.js';
5
- import '../Button/WButton.vue.js';
6
4
  import { debounce } from '../../utils/utils.js';
7
- import '../Button/WButtonDropdown.vue.js';
8
- import '../../utils/supportsPassive.js';
9
- import '../Dropdown/utils/DropdownStyle.js';
10
- import 'vue-router';
11
- import '../../utils/Modal.js';
12
- import '../Input/WInputSuggest.vue.js';
13
- import '../HeaderBar/use/useHeaderPadding.js';
14
- import '../Input/WInputDate.vue.js';
15
- import '../Link/WLink.vue.js';
16
- import '@tanstack/vue-query';
17
- import '../List/use/useListConfig.js';
18
5
  import _sfc_main$1 from './WNavItem.vue.js';
19
6
  import WNavItemTransition from './WNavItemTransition.vue.js';
20
7
 
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAmaA,OAAO,KAAK,EAAC,qBAAqB,EAA8B,WAAW,EAAC,MAAM,SAAS,CAAA;yBAc1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eACnI,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAgrBxD,mBAAmB,CAAC;;;;;;;wRAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;2BAvevB,MAAM,KAAG,IAAI;MAuegC,GAAG,IAAI;WACpE,GAAG;;gBA3bH,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,C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AAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, useTemplateRef, computed, toRef, watch, nextTick, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, createCommentVNode, createElementVNode, toDisplayString, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
3
3
  import { ApiError } from '../../utils/api.js';
4
- import { getIsMobile } from '../../utils/mobile.js';
4
+ import { useIsMobile } from '../../utils/mobile.js';
5
5
  import { debounce } from '../../utils/utils.js';
6
6
  import _sfc_main$2 from './components/SelectOption.vue.js';
7
7
  import _sfc_main$3 from './components/SelectOptionPrefix.vue.js';
@@ -82,6 +82,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
82
  setup(__props, { expose: __expose, emit: __emit }) {
83
83
  const props = __props;
84
84
  const emit = __emit;
85
+ const { isMobile } = useIsMobile();
85
86
  const isOpen = ref(false);
86
87
  const inputRef = useTemplateRef("input");
87
88
  const cursor = ref(0);
@@ -112,7 +113,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
113
  });
113
114
  const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsWithCreated.value : optionsWithCreated.value.filter((option) => props.searchFn(option, searchPrepared.value)));
114
115
  const lastIndex = computed(() => props.createOption ? optionsFiltered.value.length : optionsFiltered.value.length - 1);
115
- const isMobile = getIsMobile();
116
116
  const focused = ref(false);
117
117
  const loadingOptionIndex = ref(null);
118
118
  const loadingCreate = ref(false);
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAY/E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EA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EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;gBAH9H,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YA1IlI,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,YAAY,GAAG,IAAI;YACnB,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;;;;;YAiiBM,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzjBvE,wBAyjB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, useTemplateRef, computed, watch, createBlock, openBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createVNode, renderSlot, resolveDynamicComponent, createCommentVNode, nextTick } from 'vue';
2
2
  import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
3
- import { getIsMobile } from '../../utils/mobile.js';
3
+ import { useIsMobile } from '../../utils/mobile.js';
4
4
  import _sfc_main$2 from './components/SelectAsyncList.vue.js';
5
5
  import _sfc_main$3 from './components/SelectAsyncPrefix.vue.js';
6
6
 
@@ -76,10 +76,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  setup(__props, { expose: __expose, emit: __emit }) {
77
77
  const props = __props;
78
78
  const emit = __emit;
79
+ const { isMobile } = useIsMobile();
79
80
  const isOpen = ref(false);
80
81
  const inputRef = useTemplateRef("input");
81
82
  const listRef = useTemplateRef("list");
82
- const isMobile = getIsMobile();
83
83
  const focused = ref(false);
84
84
  const isFetchingPrefix = ref(false);
85
85
  const search = ref("");
@@ -4,7 +4,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
4
4
  readonly "onUpdate:count"?: ((value: number) => any) | undefined;
5
5
  readonly "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
6
6
  readonly onUnselect?: ((value: Model) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:model-value" | "onUnselect"> & {
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUnselect" | "onUpdate:model-value"> & {
8
8
  title?: string;
9
9
  emptyStub?: string;
10
10
  modelValue: Model[];
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"yBA+GiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO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OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;;YA8ME,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -53,7 +53,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  "hide-option-icon": _ctx.hideOptionIcon,
54
54
  "value-getter": _ctx.valueGetter,
55
55
  "query-options": _ctx.queryOptions,
56
- "allow-update-selected": "",
57
56
  transition: "",
58
57
  "no-padding": "",
59
58
  onSelect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBAgOiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAigBxD,mBAAmB,CAAC;;;;;;;oBA7fhB,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;2BACL,OA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c,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;YA6fgB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7hBvE,wBA6hB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -79,6 +79,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
79
  else emit("select", cursor.value);
80
80
  }
81
81
  };
82
+ const emitSelect = (value) => {
83
+ if (props.disabled || props.loading) return;
84
+ if (props.unselectOnly) return;
85
+ emit("select", value);
86
+ setLoadingOption(value);
87
+ };
88
+ const emitUnselect = (value) => {
89
+ if (props.disabled || props.loading) return;
90
+ if (props.selectOnly) return;
91
+ emit("unselect", value);
92
+ setLoadingOption(value);
93
+ };
82
94
  __expose({
83
95
  cursorUp,
84
96
  cursorDown,
@@ -94,8 +106,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
106
  "exclude-params": _ctx.excludeParams,
95
107
  selected: _ctx.modelValue,
96
108
  "empty-stub": _ctx.emptyStub,
97
- "select-only": _ctx.selectOnly,
98
- "unselect-only": _ctx.unselectOnly,
99
109
  "value-getter": _ctx.valueGetter,
100
110
  "query-options": _ctx.queryOptions,
101
111
  "skeleton-length": count.value || 1,
@@ -128,14 +138,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
138
  "pt-4": !_ctx.noPadding && first,
129
139
  "pb-4": !_ctx.noPadding && last && !_ctx.allowCreate
130
140
  }),
131
- onSelect: ($event) => {
132
- _ctx.$emit("select", _ctx.valueGetter(item));
133
- setLoadingOption(_ctx.valueGetter(item));
134
- },
135
- onUnselect: ($event) => {
136
- _ctx.$emit("unselect", _ctx.valueGetter(item));
137
- setLoadingOption(_ctx.valueGetter(item));
138
- },
141
+ onSelect: ($event) => emitSelect(_ctx.valueGetter(item)),
142
+ onUnselect: ($event) => emitUnselect(_ctx.valueGetter(item)),
139
143
  onMouseenter: ($event) => !skeleton && setCursor(_ctx.valueGetter(item)),
140
144
  "onUpdate:cursor": ($event) => setCursor(_ctx.valueGetter(item)),
141
145
  "onUpdate:isCursor": updateCursors,
@@ -156,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
160
  }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUpdate:first", "onUpdate:last"])
157
161
  ]),
158
162
  _: 3
159
- }, 8, ["use-query-fn", "query-params", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
163
+ }, 8, ["use-query-fn", "query-params", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "value-getter", "query-options", "skeleton-length", "last-child"]),
160
164
  _ctx.allowCreate ? (openBlock(), createBlock(_sfc_main$2, {
161
165
  key: 0,
162
166
  "is-selected": false,