vectis-ui 0.15.0 → 0.17.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.
Files changed (216) hide show
  1. package/dist/components/VAccordion/VAccordion.css +1 -1
  2. package/dist/components/VAccordion/VAccordion.d.ts +0 -6
  3. package/dist/components/VAccordion/VAccordion.js.map +1 -1
  4. package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js +3 -8
  5. package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  6. package/dist/components/VAccordion/context.js.map +1 -1
  7. package/dist/components/VAvatar/VAvatar.d.ts +0 -3
  8. package/dist/components/VAvatar/VAvatar.js.map +1 -1
  9. package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js +21 -27
  10. package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  11. package/dist/components/VAvatar/VAvatarGroup.d.ts +0 -6
  12. package/dist/components/VAvatar/VAvatarGroup.js.map +1 -1
  13. package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js +5 -19
  14. package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  15. package/dist/components/VAvatar/context.d.ts +0 -1
  16. package/dist/components/VAvatar/context.js.map +1 -1
  17. package/dist/components/VButton/VButton.d.ts +0 -6
  18. package/dist/components/VButton/VButton.js.map +1 -1
  19. package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js +11 -17
  20. package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/components/VButton/VButtonGroup.d.ts +0 -6
  22. package/dist/components/VButton/VButtonGroup.js.map +1 -1
  23. package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -7
  24. package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  25. package/dist/components/VButton/context.d.ts +0 -2
  26. package/dist/components/VButton/context.js.map +1 -1
  27. package/dist/components/VChip/VChip.d.ts +0 -3
  28. package/dist/components/VChip/VChip.js.map +1 -1
  29. package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js +0 -6
  30. package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  31. package/dist/components/VColorInput/VColorInput.d.ts +0 -3
  32. package/dist/components/VColorInput/VColorInput.js.map +1 -1
  33. package/dist/components/VColorInput/VColorInput.vue_vue_type_script_setup_true_lang.js +60 -66
  34. package/dist/components/VColorInput/VColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  35. package/dist/components/VColorPicker/color.js +2 -2
  36. package/dist/components/VColorPicker/color.js.map +1 -1
  37. package/dist/components/VCombobox/VCombobox.d.ts +10 -3
  38. package/dist/components/VCombobox/VCombobox.js.map +1 -1
  39. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +170 -163
  40. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  41. package/dist/components/VContextMenu/VContextMenu.d.ts +0 -3
  42. package/dist/components/VContextMenu/VContextMenu.js.map +1 -1
  43. package/dist/components/VContextMenu/VContextMenu.vue_vue_type_script_setup_true_lang.js +0 -6
  44. package/dist/components/VContextMenu/VContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/components/VDataTable/VDataTable.css +1 -1
  46. package/dist/components/VDataTable/VDataTable.d.ts +0 -2
  47. package/dist/components/VDataTable/VDataTable.js.map +1 -1
  48. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +69 -84
  49. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  50. package/dist/components/VDateInput/VDateInput.d.ts +0 -3
  51. package/dist/components/VDateInput/VDateInput.js.map +1 -1
  52. package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js +32 -37
  53. package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/components/VDatePicker/VDatePicker.css +1 -1
  55. package/dist/components/VDatePicker/VDatePicker.js.map +1 -1
  56. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js +3 -2
  57. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  58. package/dist/components/VDialog/VDialog.css +1 -1
  59. package/dist/components/VDialog/VDialog.js.map +1 -1
  60. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js +4 -2
  61. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  62. package/dist/components/VDrawer/VDrawer.css +1 -1
  63. package/dist/components/VDrawer/VDrawer.js.map +1 -1
  64. package/dist/components/VDrawer/VDrawer.vue_vue_type_script_setup_true_lang.js +4 -2
  65. package/dist/components/VDrawer/VDrawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  66. package/dist/components/VFileInput/VFileInput.d.ts +0 -5
  67. package/dist/components/VFileInput/VFileInput.js.map +1 -1
  68. package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js +75 -86
  69. package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  70. package/dist/components/VHotkeys/VHotkeys.d.ts +0 -3
  71. package/dist/components/VHotkeys/VHotkeys.js.map +1 -1
  72. package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js +0 -6
  73. package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
  74. package/dist/components/VIconButton/VIconButton.d.ts +0 -3
  75. package/dist/components/VIconButton/VIconButton.js.map +1 -1
  76. package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js +0 -6
  77. package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  78. package/dist/components/VInput/VInput.css +1 -1
  79. package/dist/components/VInput/VInput.d.ts +0 -3
  80. package/dist/components/VInput/VInput.js.map +1 -1
  81. package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js +18 -24
  82. package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  83. package/dist/components/VInput/VInputGroup.d.ts +0 -3
  84. package/dist/components/VInput/VInputGroup.js.map +1 -1
  85. package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js +0 -7
  86. package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  87. package/dist/components/VInput/context.d.ts +0 -2
  88. package/dist/components/VInput/context.js.map +1 -1
  89. package/dist/components/VInputOTP/VInputOTP.d.ts +0 -3
  90. package/dist/components/VInputOTP/VInputOTP.js.map +1 -1
  91. package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js +0 -6
  92. package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js.map +1 -1
  93. package/dist/components/VListbox/VListboxPanel.d.ts +0 -3
  94. package/dist/components/VListbox/VListboxPanel.js.map +1 -1
  95. package/dist/components/VListbox/VListboxPanel.vue_vue_type_script_setup_true_lang.js +0 -6
  96. package/dist/components/VListbox/VListboxPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  97. package/dist/components/VListbox/VListboxValues.js.map +1 -1
  98. package/dist/components/VListbox/VListboxValues.vue_vue_type_script_setup_true_lang.js +4 -14
  99. package/dist/components/VListbox/VListboxValues.vue_vue_type_script_setup_true_lang.js.map +1 -1
  100. package/dist/components/VMenu/VMenu.d.ts +0 -3
  101. package/dist/components/VMenu/VMenu.js.map +1 -1
  102. package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js +0 -6
  103. package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  104. package/dist/components/VMenu/VMenuPanel.d.ts +0 -3
  105. package/dist/components/VMenu/VMenuPanel.js.map +1 -1
  106. package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js +0 -6
  107. package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  108. package/dist/components/VMeter/VMeter.css +1 -1
  109. package/dist/components/VMeter/VMeter.d.ts +24 -8
  110. package/dist/components/VMeter/VMeter.js.map +1 -1
  111. package/dist/components/VMeter/VMeter.vue_vue_type_script_setup_true_lang.js +65 -48
  112. package/dist/components/VMeter/VMeter.vue_vue_type_script_setup_true_lang.js.map +1 -1
  113. package/dist/components/VMeterGroup/VMeterGroup.css +2 -0
  114. package/dist/components/VMeterGroup/VMeterGroup.d.ts +101 -0
  115. package/dist/components/VMeterGroup/VMeterGroup.js +9 -0
  116. package/dist/components/VMeterGroup/VMeterGroup.js.map +1 -0
  117. package/dist/components/VMeterGroup/VMeterGroup.vue_vue_type_script_setup_true_lang.js +117 -0
  118. package/dist/components/VMeterGroup/VMeterGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
  119. package/dist/components/VNumberInput/VNumberInput.d.ts +0 -3
  120. package/dist/components/VNumberInput/VNumberInput.js.map +1 -1
  121. package/dist/components/VNumberInput/VNumberInput.vue_vue_type_script_setup_true_lang.js +0 -6
  122. package/dist/components/VNumberInput/VNumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  123. package/dist/components/VNumberInput/number.js +2 -2
  124. package/dist/components/VNumberInput/number.js.map +1 -1
  125. package/dist/components/VPagination/VPagination.d.ts +0 -3
  126. package/dist/components/VPagination/VPagination.js.map +1 -1
  127. package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +0 -6
  128. package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  129. package/dist/components/VProgressCircular/VProgressCircular.d.ts +1 -1
  130. package/dist/components/VProgressLinear/VProgressLinear.css +1 -1
  131. package/dist/components/VProgressLinear/VProgressLinear.d.ts +12 -13
  132. package/dist/components/VProgressLinear/VProgressLinear.js.map +1 -1
  133. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js +65 -48
  134. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js.map +1 -1
  135. package/dist/components/VSelect/VSelect.d.ts +0 -3
  136. package/dist/components/VSelect/VSelect.js.map +1 -1
  137. package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js +114 -123
  138. package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
  139. package/dist/components/VSeparator/VSeparator.css +1 -1
  140. package/dist/components/VSeparator/VSeparator.d.ts +42 -2
  141. package/dist/components/VSeparator/VSeparator.js.map +1 -1
  142. package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js +50 -9
  143. package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  144. package/dist/components/VSideNavigation/VSideNavigation.d.ts +6 -6
  145. package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
  146. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js +7 -7
  147. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
  148. package/dist/components/VSideNavigation/VSideNavigationItem.css +1 -1
  149. package/dist/components/VSideNavigation/VSideNavigationItem.js.map +1 -1
  150. package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  151. package/dist/components/VSideNavigation/context.js.map +1 -1
  152. package/dist/components/VSkeletonLoader/VSkeletonLoader.d.ts +0 -3
  153. package/dist/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  154. package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js +0 -6
  155. package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  156. package/dist/components/VSlider/VSlider.js.map +1 -1
  157. package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js +115 -120
  158. package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js.map +1 -1
  159. package/dist/components/VSnackbar/state.js +2 -3
  160. package/dist/components/VSnackbar/state.js.map +1 -1
  161. package/dist/components/VSplitButton/VSplitButton.d.ts +0 -3
  162. package/dist/components/VSplitButton/VSplitButton.js.map +1 -1
  163. package/dist/components/VSplitButton/VSplitButton.vue_vue_type_script_setup_true_lang.js +0 -6
  164. package/dist/components/VSplitButton/VSplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  165. package/dist/components/VTabs/VTab.js.map +1 -1
  166. package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js +0 -2
  167. package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
  168. package/dist/components/VTabs/VTabs.css +1 -1
  169. package/dist/components/VTabs/VTabs.d.ts +0 -3
  170. package/dist/components/VTabs/VTabs.js.map +1 -1
  171. package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js +2 -15
  172. package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  173. package/dist/components/VTabs/context.d.ts +0 -2
  174. package/dist/components/VTabs/context.js.map +1 -1
  175. package/dist/components/VTextarea/VTextarea.d.ts +0 -6
  176. package/dist/components/VTextarea/VTextarea.js.map +1 -1
  177. package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js +0 -6
  178. package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
  179. package/dist/components/VTimeInput/VTimeInput.d.ts +0 -3
  180. package/dist/components/VTimeInput/VTimeInput.js.map +1 -1
  181. package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js +211 -218
  182. package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  183. package/dist/components/VToast/state.js +2 -3
  184. package/dist/components/VToast/state.js.map +1 -1
  185. package/dist/components/VToggle/VToggle.d.ts +0 -3
  186. package/dist/components/VToggle/VToggle.js.map +1 -1
  187. package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js +0 -6
  188. package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
  189. package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  190. package/dist/composables/useAriaLabel.d.ts +5 -0
  191. package/dist/composables/useAriaLabel.js +5 -1
  192. package/dist/composables/useAriaLabel.js.map +1 -1
  193. package/dist/composables/useControlShape.d.ts +1 -5
  194. package/dist/composables/useControlShape.js +0 -1
  195. package/dist/composables/useControlShape.js.map +1 -1
  196. package/dist/composables/useListbox.d.ts +2 -1
  197. package/dist/composables/useListbox.js +72 -69
  198. package/dist/composables/useListbox.js.map +1 -1
  199. package/dist/i18n/en.js +3 -1
  200. package/dist/i18n/en.js.map +1 -1
  201. package/dist/i18n/fr.js +3 -1
  202. package/dist/i18n/fr.js.map +1 -1
  203. package/dist/i18n/types.d.ts +6 -0
  204. package/dist/index.d.ts +5 -3
  205. package/dist/index.js +21 -20
  206. package/dist/styles.css +1 -1
  207. package/dist/tokens/index.d.ts +13 -5
  208. package/dist/tokens/semantic.d.ts +13 -5
  209. package/dist/tokens/semantic.js +16 -10
  210. package/dist/tokens/semantic.js.map +1 -1
  211. package/dist/tokens.json +51 -19
  212. package/dist/types.d.ts +0 -2
  213. package/dist/utils/chip.d.ts +4 -6
  214. package/dist/utils/chip.js +8 -5
  215. package/dist/utils/chip.js.map +1 -1
  216. package/package.json +3 -3
@@ -3,46 +3,45 @@ import { useControlShape as t } from "../../composables/useControlShape.js";
3
3
  import n from "../VSpinner/VSpinner.js";
4
4
  import { useRootAttrs as r } from "../../composables/useRootAttrs.js";
5
5
  import { expand_more as i } from "../VIcon/icons/expand_more.js";
6
- import { createNormalizedCache as ee, normalizeText as te } from "../../utils/text.js";
7
- import { toggleValue as ne } from "../../utils/array.js";
8
- import { iconStartListener as re } from "../../composables/useIconClickHandlers.js";
9
- import { canClear as ie } from "../../composables/useClearable.js";
10
- import { inputGroupKey as ae } from "../VInput/context.js";
11
- import oe from "../VInput/VInput.js";
12
- import se from "../VEmptyState/VEmptyState.js";
13
- import { inbox as ce } from "../VIcon/icons/inbox.js";
14
- import { search_off as le } from "../VIcon/icons/search_off.js";
15
- import ue from "../VListbox/VListboxChevron.js";
16
- import de from "../VListbox/VListboxPanel.js";
17
- import fe from "../VListbox/VListboxValues.js";
18
- import { chipScaleFor as pe } from "../../utils/chip.js";
19
- import { useFocusoutDismiss as me } from "../../composables/useFocusoutDismiss.js";
20
- import { useInfiniteScroll as he } from "../../composables/useInfiniteScroll.js";
21
- import { selectionOf as ge, useListbox as _e } from "../../composables/useListbox.js";
6
+ import { createNormalizedCache as ee, normalizeText as a } from "../../utils/text.js";
7
+ import { toggleValue as te } from "../../utils/array.js";
8
+ import { iconStartListener as ne } from "../../composables/useIconClickHandlers.js";
9
+ import { canClear as re } from "../../composables/useClearable.js";
10
+ import { inputGroupKey as ie } from "../VInput/context.js";
11
+ import ae from "../VInput/VInput.js";
12
+ import oe from "../VEmptyState/VEmptyState.js";
13
+ import { inbox as se } from "../VIcon/icons/inbox.js";
14
+ import { search_off as ce } from "../VIcon/icons/search_off.js";
15
+ import le from "../VListbox/VListboxChevron.js";
16
+ import ue from "../VListbox/VListboxPanel.js";
17
+ import de from "../VListbox/VListboxValues.js";
18
+ import { chipScaleFor as fe } from "../../utils/chip.js";
19
+ import { useFocusoutDismiss as pe } from "../../composables/useFocusoutDismiss.js";
20
+ import { useInfiniteScroll as me } from "../../composables/useInfiniteScroll.js";
21
+ import { optionsOf as he, selectionOf as ge, useListbox as _e } from "../../composables/useListbox.js";
22
22
  import { useDebouncedSearch as ve } from "../../composables/useDebouncedSearch.js";
23
- import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as ye, mergeModels as m, mergeProps as be, normalizeClass as xe, normalizeProps as h, normalizeStyle as Se, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, unref as b, useId as Ce, useModel as we, watch as x, withCtx as S } from "vue";
23
+ import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, guardReactiveProps as m, inject as ye, mergeModels as h, mergeProps as be, normalizeClass as xe, normalizeProps as g, normalizeStyle as Se, openBlock as _, ref as v, renderSlot as y, toDisplayString as Ce, unref as b, useId as we, useModel as Te, watch as x, withCtx as S } from "vue";
24
24
  //#region src/components/VCombobox/VCombobox.vue?vue&type=script&setup=true&lang.ts
25
- var Te = [
25
+ var Ee = [
26
26
  "data-size",
27
- "data-compact",
28
27
  "data-multiple",
29
28
  "data-collapsed",
30
29
  "data-open"
31
- ], Ee = {
30
+ ], De = {
32
31
  key: 0,
33
32
  class: "v-combobox-state",
34
33
  "aria-hidden": "true"
35
- }, De = {
34
+ }, Oe = {
36
35
  key: 1,
37
36
  class: "v-combobox-state",
38
37
  "aria-hidden": "true"
39
- }, Oe = {
38
+ }, ke = {
40
39
  class: "v-visually-hidden",
41
40
  role: "status"
42
- }, C = /*@__PURE__*/ f({
41
+ }, C = /*@__PURE__*/ p({
43
42
  inheritAttrs: !1,
44
43
  __name: "VCombobox",
45
- props: /*@__PURE__*/ m({
44
+ props: /*@__PURE__*/ h({
46
45
  options: {},
47
46
  multiple: {
48
47
  type: Boolean,
@@ -67,10 +66,6 @@ var Te = [
67
66
  },
68
67
  labelPosition: { default: "top" },
69
68
  size: { default: "md" },
70
- compact: {
71
- type: Boolean,
72
- default: !1
73
- },
74
69
  placeholder: { default: void 0 },
75
70
  disabled: {
76
71
  type: Boolean,
@@ -97,6 +92,10 @@ var Te = [
97
92
  type: [Boolean, Function],
98
93
  default: !0
99
94
  },
95
+ creatable: {
96
+ type: Boolean,
97
+ default: !1
98
+ },
100
99
  searchDebounce: { default: 250 },
101
100
  loading: {
102
101
  type: Boolean,
@@ -116,152 +115,165 @@ var Te = [
116
115
  modelValue: { default: "" },
117
116
  modelModifiers: {}
118
117
  }),
119
- emits: /*@__PURE__*/ m([
118
+ emits: /*@__PURE__*/ h([
120
119
  "search",
121
120
  "load-more",
122
121
  "clear",
122
+ "create",
123
123
  "click:icon-start"
124
124
  ], ["update:modelValue"]),
125
- setup(i, { expose: f, emit: m }) {
126
- let C = i, w = e(), T = a(() => C.emptyText ?? w.value.combobox.empty), ke = a(() => C.clearLabel ?? w.value.combobox.clear), E = a(() => C.loadingText ?? w.value.common.loading), D = m, Ae = ye(ae, null), { size: O, compact: k, disabled: A } = t(C, Ae), j = a(() => pe(O.value, k.value)), M = we(i, "modelValue"), { rootClass: je, rootStyle: Me, forwardedAttrs: Ne } = r(), Pe = re((e) => D("click:icon-start", e)), Fe = a(() => ({
127
- ...Ne.value,
128
- ...Pe
129
- })), N = _(null), P = _(null), F = Ce(), I = _(!1), L = _(""), R = _(!1), z = _(!1), B = a(() => ge(M.value, C.multiple)), Ie = ee(), Le = (e) => Ie(e, e.label), V = a(() => z.value ? L.value.trim() : ""), H = _(null), U = _(null), { allOptions: W, visible: G, optionOf: Re, labelOf: K, remember: ze, activeIndex: q, optionId: Be, highlightFirst: J, highlightSelected: Ve, move: Y, hover: He, blocks: Ue, measureRow: We } = _e({
130
- items: () => C.options,
125
+ setup(i, { expose: p, emit: h }) {
126
+ let C = i, w = e(), T = o(() => C.emptyText ?? w.value.combobox.empty), Ae = o(() => C.clearLabel ?? w.value.combobox.clear), E = o(() => C.loadingText ?? w.value.common.loading), D = h, je = ye(ie, null), { size: O, disabled: k } = t(C, je), A = o(() => fe(O.value)), j = Te(i, "modelValue"), { rootClass: Me, rootStyle: Ne, forwardedAttrs: Pe } = r(), Fe = ne((e) => D("click:icon-start", e)), Ie = o(() => ({
127
+ ...Pe.value,
128
+ ...Fe
129
+ })), M = v(null), N = v(null), P = we(), F = v(!1), I = v(""), L = v(!1), R = v(!1), z = o(() => ge(j.value, C.multiple)), Le = ee(), B = (e) => Le(e, e.label), V = o(() => R.value ? I.value.trim() : ""), H = v(null), U = v(null), W = o(() => he(C.options)), Re = `${P}-create`, G = o(() => {
130
+ let e = H.value ?? V.value;
131
+ if (!C.creatable || !e) return null;
132
+ let t = a(e);
133
+ return W.value.some((e) => B(e) === t) || z.value.some((e) => typeof e == "string" && a(e) === t) ? null : {
134
+ value: Re,
135
+ label: w.value.combobox.create(e)
136
+ };
137
+ }), { allOptions: ze, visible: K, optionOf: Be, labelOf: Ve, remember: He, activeIndex: q, optionId: Ue, highlightFirst: We, highlightSelected: Ge, move: Ke, hover: qe, blocks: Je, measureRow: Ye } = _e({
138
+ items: () => G.value ? [...C.options, G.value] : C.options,
131
139
  filter: (e) => {
132
140
  let t = C.filter;
133
141
  if (t === !1) return e;
134
142
  let n = H.value ?? V.value;
135
143
  if (!n) return e;
136
- if (typeof t == "function") return e.filter((e) => t(e, n));
137
- let r = te(n);
138
- return e.filter((e) => Le(e).includes(r));
144
+ let r = a(n), i = typeof t == "function" ? (e) => t(e, n) : (e) => B(e).includes(r);
145
+ return e.filter((e) => e === G.value || i(e));
139
146
  },
140
- selected: () => B.value,
141
- open: () => I.value,
142
- id: F,
147
+ selected: () => z.value,
148
+ open: () => F.value,
149
+ id: P,
143
150
  panelEl: () => U.value?.el ?? null,
144
151
  virtual: () => C.virtual,
145
152
  hasMore: () => C.hasMore,
146
- size: () => O.value,
147
- compact: () => k.value
148
- }), Ge = a(() => !I.value || G.value.length > 0 ? "" : C.loading ? E.value : T.value), { request: X, cancel: Ke } = ve({
153
+ size: () => O.value
154
+ }), J = o(() => F.value && (!C.creatable || K.value.length > 0 || C.loading)), Xe = o(() => !J.value || K.value.length > 0 ? "" : C.loading ? E.value : T.value), { request: Ze, cancel: Qe } = ve({
149
155
  delay: () => C.searchDebounce,
150
- active: () => I.value,
156
+ active: () => F.value,
151
157
  report: (e) => D("search", e)
152
158
  });
153
159
  x(V, (e) => {
154
- I.value && (J(), Ze.restart(), X(e));
160
+ F.value && (We(), rt.restart(), Ze(e));
155
161
  });
156
- function Z() {
157
- let e = C.multiple ? void 0 : B.value[0];
158
- return e === void 0 ? "" : K(e);
162
+ function Y() {
163
+ let e = C.multiple ? void 0 : z.value[0];
164
+ return e === void 0 ? "" : Ve(e);
159
165
  }
160
- L.value = Z(), x([W, B], () => {
161
- C.multiple || I.value || z.value || (L.value = Z());
166
+ I.value = Y(), x([ze, z], () => {
167
+ C.multiple || F.value || R.value || (I.value = Y());
162
168
  }, { flush: "post" });
163
- let qe = a(() => C.multiple && C.display === "text"), Je = a(() => C.multiple && B.value.length > 0 && (!R.value || qe.value && C.readonly)), Ye = a(() => ie(C, A.value, B.value.length > 0 || L.value.length > 0));
164
- function Q() {
165
- A.value || C.readonly || I.value || (H.value = null, I.value = !0, Ve(), X(V.value, !0));
169
+ let $e = o(() => C.multiple && C.display === "text"), et = o(() => C.multiple && z.value.length > 0 && (!L.value || $e.value && C.readonly)), tt = o(() => re(C, k.value, z.value.length > 0 || I.value.length > 0));
170
+ function X() {
171
+ k.value || C.readonly || F.value || (H.value = null, F.value = !0, Ge(), Ze(V.value, !0));
166
172
  }
167
- let Xe = _(null), Ze = he({
168
- sentinelEl: Xe,
173
+ let nt = v(null), rt = me({
174
+ sentinelEl: nt,
169
175
  root: (e) => e.closest("[role=\"listbox\"]"),
170
- canLoad: () => I.value && C.hasMore && !C.loading,
176
+ canLoad: () => F.value && C.hasMore && !C.loading,
171
177
  loaded: () => W.value,
172
178
  onLoadMore: () => D("load-more")
173
179
  });
174
- function $(e = Z()) {
175
- I.value && (Ke(), Ze.reset(), H.value = V.value, I.value = !1, q.value = -1, z.value = !1, L.value = e);
180
+ function Z(e = Y()) {
181
+ F.value && (Qe(), rt.reset(), H.value = V.value, F.value = !1, q.value = -1, R.value = !1, I.value = e);
176
182
  }
177
- x(() => C.readonly || A.value, (e) => {
178
- e && $();
183
+ x(() => C.readonly || k.value, (e) => {
184
+ e && Z();
179
185
  });
180
- let Qe = me(N, () => $());
181
- function $e() {
182
- z.value = !0, Q();
186
+ let it = pe(M, () => Z());
187
+ function at() {
188
+ R.value = !0, X();
189
+ }
190
+ function Q() {
191
+ !C.multiple && I.value && N.value?.select();
183
192
  }
184
- function et() {
185
- !C.multiple && L.value && P.value?.select();
193
+ function ot() {
194
+ L.value = !0, Q();
186
195
  }
187
- function tt() {
188
- R.value = !0, et();
196
+ let st = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
197
+ function ct(e) {
198
+ st(e) && e.preventDefault();
189
199
  }
190
- let nt = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
191
- function rt(e) {
192
- nt(e) && e.preventDefault();
200
+ function lt(e) {
201
+ k.value || (N.value?.focus(), F.value && st(e) ? Z() : (X(), Q()));
193
202
  }
194
- function it(e) {
195
- A.value || (P.value?.focus(), I.value && nt(e) ? $() : (Q(), et()));
203
+ function ut(e) {
204
+ e.disabled || C.readonly || k.value || (e.value === Re ? dt() : (He(e), C.multiple ? (R.value = !1, j.value = te(z.value, e.value), I.value = "", N.value?.focus()) : (j.value = e.value, Z(e.label))));
196
205
  }
197
- function at(e) {
198
- e.disabled || C.readonly || A.value || (ze(e), C.multiple ? (z.value = !1, M.value = ne(B.value, e.value), L.value = "", P.value?.focus()) : (M.value = e.value, $(e.label)));
206
+ function dt() {
207
+ let e = V.value;
208
+ He({
209
+ value: e,
210
+ label: e
211
+ }), C.multiple ? (R.value = !1, j.value = [...z.value, e], I.value = "", N.value?.focus()) : (j.value = e, Z(e)), D("create", e);
199
212
  }
200
- function ot(e) {
201
- !C.multiple || C.readonly || A.value || (M.value = B.value.filter((t) => t !== e), P.value?.focus());
213
+ function $(e) {
214
+ !C.multiple || C.readonly || k.value || (j.value = z.value.filter((t) => t !== e), N.value?.focus());
202
215
  }
203
- function st() {
204
- M.value = C.multiple ? [] : "", z.value = !1, I.value ? J() : q.value = -1, D("clear");
216
+ function ft() {
217
+ j.value = C.multiple ? [] : "", R.value = !1, F.value ? We() : q.value = -1, D("clear");
205
218
  }
206
- function ct(e) {
219
+ function pt(e) {
207
220
  switch (e.key) {
208
221
  case "ArrowDown":
209
- e.preventDefault(), I.value ? Y(1) : Q();
222
+ e.preventDefault(), F.value ? Ke(1) : X();
210
223
  break;
211
224
  case "ArrowUp":
212
- e.preventDefault(), I.value ? Y(-1) : Q();
225
+ e.preventDefault(), F.value ? Ke(-1) : X();
213
226
  break;
214
227
  case "Enter":
215
- if (I.value && q.value >= 0) {
228
+ if (F.value && q.value >= 0) {
216
229
  e.preventDefault();
217
- let t = G.value[q.value];
218
- t && at(t);
230
+ let t = K.value[q.value];
231
+ t && ut(t);
219
232
  }
220
233
  break;
221
234
  case "Escape":
222
- I.value && (e.preventDefault(), $());
235
+ J.value && e.preventDefault(), Z();
223
236
  break;
224
237
  case "Tab":
225
- $();
238
+ Z();
226
239
  break;
227
- case "Backspace": if (C.multiple && !L.value) {
228
- let e = B.value.at(-1);
229
- e !== void 0 && ot(e);
240
+ case "Backspace": if (C.multiple && !I.value) {
241
+ let e = z.value.at(-1);
242
+ e !== void 0 && $(e);
230
243
  }
231
244
  }
232
245
  }
233
- return f({
234
- focus: (e) => P.value?.focus(e),
235
- select: () => P.value?.select(),
236
- el: a(() => P.value?.el ?? null)
237
- }), (e, t) => (g(), c("div", {
246
+ return p({
247
+ focus: (e) => N.value?.focus(e),
248
+ select: () => N.value?.select(),
249
+ el: o(() => N.value?.el ?? null)
250
+ }), (e, t) => (_(), l("div", {
238
251
  ref_key: "rootEl",
239
- ref: N,
240
- class: xe(["v-combobox", b(je)]),
241
- style: Se([{ "--chip-height": j.value.height }, b(Me)]),
252
+ ref: M,
253
+ class: xe(["v-combobox", b(Me)]),
254
+ style: Se([{ "--chip-height": A.value.height }, b(Ne)]),
242
255
  "data-size": b(O),
243
- "data-compact": b(k) ? "" : void 0,
244
256
  "data-multiple": i.multiple ? "" : void 0,
245
- "data-collapsed": Je.value ? "" : void 0,
246
- "data-open": I.value ? "" : void 0,
247
- onFocusout: t[3] ||= (...e) => b(Qe) && b(Qe)(...e)
257
+ "data-collapsed": et.value ? "" : void 0,
258
+ "data-open": F.value ? "" : void 0,
259
+ onFocusout: t[2] ||= (...e) => b(it) && b(it)(...e)
248
260
  }, [
249
- l("div", {
261
+ u("div", {
250
262
  class: "v-combobox-control",
251
- onMousedown: rt,
252
- onClick: it
253
- }, [d(oe, be({
263
+ onMousedown: ct,
264
+ onClick: lt
265
+ }, [f(ae, be({
254
266
  ref_key: "inputRef",
255
- ref: P,
256
- modelValue: L.value,
257
- "onUpdate:modelValue": t[0] ||= (e) => L.value = e,
258
- class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !qe.value }],
267
+ ref: N,
268
+ modelValue: I.value,
269
+ "onUpdate:modelValue": t[0] ||= (e) => I.value = e,
270
+ class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !$e.value }],
259
271
  role: "combobox",
260
272
  "aria-haspopup": "listbox",
261
273
  "aria-autocomplete": "list",
262
- "aria-expanded": I.value,
263
- "aria-controls": b(F)
264
- }, Fe.value, {
274
+ "aria-expanded": J.value,
275
+ "aria-controls": b(P)
276
+ }, Ie.value, {
265
277
  label: i.label,
266
278
  hint: i.hint,
267
279
  error: i.error,
@@ -269,56 +281,55 @@ var Te = [
269
281
  "hide-label": i.hideLabel,
270
282
  "label-position": i.labelPosition,
271
283
  size: b(O),
272
- compact: b(k),
273
284
  invalid: i.invalid,
274
- disabled: b(A),
285
+ disabled: b(k),
275
286
  readonly: i.readonly,
276
287
  "icon-start": i.iconStart,
277
288
  "icon-start-label": i.iconStartLabel,
278
289
  clearable: i.clearable,
279
- "clear-visible": Ye.value,
280
- "clear-label": ke.value,
281
- placeholder: B.value.length === 0 ? i.placeholder : void 0,
282
- "aria-activedescendant": I.value && b(q) >= 0 ? b(Be)(b(q)) : void 0,
283
- onInput: $e,
284
- onKeydown: ct,
285
- onFocus: tt,
286
- onBlur: t[1] ||= (e) => R.value = !1,
287
- onClear: st
288
- }), u({
289
- end: S(() => [i.loading ? (g(), o(n, {
290
+ "clear-visible": tt.value,
291
+ "clear-label": Ae.value,
292
+ placeholder: z.value.length === 0 ? i.placeholder : void 0,
293
+ "aria-activedescendant": J.value && b(q) >= 0 ? b(Ue)(b(q)) : void 0,
294
+ onInput: at,
295
+ onKeydown: pt,
296
+ onFocus: ot,
297
+ onBlur: t[1] ||= (e) => L.value = !1,
298
+ onClear: ft
299
+ }), d({
300
+ end: S(() => [i.loading ? (_(), s(n, {
290
301
  key: 0,
291
302
  class: "v-combobox-spinner v-input-icon-end",
292
303
  "aria-hidden": "true"
293
- })) : (g(), o(ue, {
304
+ })) : !i.creatable || W.value.length > 0 ? (_(), s(le, {
294
305
  key: 1,
295
306
  class: "v-combobox-chevron",
296
307
  icon: i.expandIcon,
297
- open: I.value
298
- }, null, 8, ["icon", "open"]))]),
308
+ open: J.value
309
+ }, null, 8, ["icon", "open"])) : c("", !0)]),
299
310
  _: 2
300
311
  }, [i.multiple || e.$slots.start ? {
301
312
  name: "start",
302
- fn: S(() => [i.multiple ? (g(), o(fe, {
313
+ fn: S(() => [i.multiple ? (_(), s(de, {
303
314
  key: 0,
304
- values: B.value,
315
+ values: z.value,
305
316
  display: i.display,
306
317
  max: i.max,
307
- collapsed: Je.value,
318
+ collapsed: et.value,
308
319
  "overflow-text": i.overflowText,
309
- scale: j.value,
320
+ scale: A.value,
310
321
  removable: !i.readonly,
311
- disabled: b(A),
312
- "label-of": b(K),
313
- "option-of": b(Re),
314
- onRemove: ot
315
- }, u({ _: 2 }, [e.$slots.chip ? {
322
+ disabled: b(k),
323
+ "label-of": b(Ve),
324
+ "option-of": b(Be),
325
+ onRemove: $
326
+ }, d({ _: 2 }, [e.$slots.chip ? {
316
327
  name: "chip",
317
- fn: S((t) => [v(e.$slots, "chip", h(p(t)))]),
328
+ fn: S((t) => [y(e.$slots, "chip", g(m(t)))]),
318
329
  key: "0"
319
330
  } : void 0, e.$slots.overflow ? {
320
331
  name: "overflow",
321
- fn: S((t) => [v(e.$slots, "overflow", h(p(t)))]),
332
+ fn: S((t) => [y(e.$slots, "overflow", g(m(t)))]),
322
333
  key: "1"
323
334
  } : void 0]), 1032, [
324
335
  "values",
@@ -331,11 +342,11 @@ var Te = [
331
342
  "disabled",
332
343
  "label-of",
333
344
  "option-of"
334
- ])) : s("", !0), v(e.$slots, "start")]),
345
+ ])) : c("", !0), y(e.$slots, "start")]),
335
346
  key: "0"
336
347
  } : void 0, e.$slots["value-end"] ? {
337
348
  name: "value-end",
338
- fn: S(() => [v(e.$slots, "value-end")]),
349
+ fn: S(() => [y(e.$slots, "value-end")]),
339
350
  key: "1"
340
351
  } : void 0]), 1040, [
341
352
  "modelValue",
@@ -349,7 +360,6 @@ var Te = [
349
360
  "hide-label",
350
361
  "label-position",
351
362
  "size",
352
- "compact",
353
363
  "invalid",
354
364
  "disabled",
355
365
  "readonly",
@@ -361,58 +371,55 @@ var Te = [
361
371
  "placeholder",
362
372
  "aria-activedescendant"
363
373
  ])], 32),
364
- d(de, {
365
- id: b(F),
374
+ f(ue, {
375
+ id: b(P),
366
376
  ref_key: "panelRef",
367
377
  ref: U,
368
- open: I.value,
369
- "onUpdate:open": t[2] ||= (e) => I.value = e,
378
+ open: J.value,
370
379
  anchor: "--combobox-anchor",
371
380
  placement: i.placement,
372
381
  class: "v-combobox-panel",
373
382
  size: b(O),
374
- compact: b(k),
375
383
  multiple: i.multiple,
376
384
  virtual: i.virtual,
377
- blocks: b(Ue),
378
- measure: b(We),
379
- onSelect: at,
380
- onHighlight: b(He)
381
- }, u({
382
- default: S(() => [i.loading && b(G).length === 0 ? (g(), c("div", Ee, [v(e.$slots, "loading", {}, () => [d(n, { label: E.value }, null, 8, ["label"]), l("span", null, y(E.value), 1)])])) : b(G).length === 0 ? (g(), c("div", De, [v(e.$slots, "empty", { query: V.value }, () => [d(se, {
385
+ blocks: b(Je),
386
+ measure: b(Ye),
387
+ onSelect: ut,
388
+ onHighlight: b(qe)
389
+ }, d({
390
+ default: S(() => [i.loading && b(K).length === 0 ? (_(), l("div", De, [y(e.$slots, "loading", {}, () => [f(n, { label: E.value }, null, 8, ["label"]), u("span", null, Ce(E.value), 1)])])) : b(K).length === 0 && !i.creatable ? (_(), l("div", Oe, [y(e.$slots, "empty", { query: V.value }, () => [f(oe, {
383
391
  size: "sm",
384
392
  class: "v-combobox-empty",
385
- icon: V.value ? b(le) : b(ce),
393
+ icon: V.value ? b(ce) : b(se),
386
394
  title: T.value
387
- }, null, 8, ["icon", "title"])])])) : s("", !0), i.hasMore ? (g(), c("div", {
395
+ }, null, 8, ["icon", "title"])])])) : c("", !0), i.hasMore ? (_(), l("div", {
388
396
  key: 2,
389
397
  ref_key: "sentinelEl",
390
- ref: Xe,
398
+ ref: nt,
391
399
  class: "v-combobox-more",
392
400
  "aria-hidden": "true"
393
- }, [i.loading ? (g(), o(n, {
401
+ }, [i.loading ? (_(), s(n, {
394
402
  key: 0,
395
403
  label: E.value
396
- }, null, 8, ["label"])) : s("", !0)], 512)) : s("", !0)]),
404
+ }, null, 8, ["label"])) : c("", !0)], 512)) : c("", !0)]),
397
405
  _: 2
398
406
  }, [e.$slots.option ? {
399
407
  name: "option",
400
- fn: S((t) => [v(e.$slots, "option", h(p(t)))]),
408
+ fn: S((t) => [y(e.$slots, "option", g(m(t)))]),
401
409
  key: "0"
402
410
  } : void 0]), 1032, [
403
411
  "id",
404
412
  "open",
405
413
  "placement",
406
414
  "size",
407
- "compact",
408
415
  "multiple",
409
416
  "virtual",
410
417
  "blocks",
411
418
  "measure",
412
419
  "onHighlight"
413
420
  ]),
414
- l("span", Oe, y(Ge.value), 1)
415
- ], 46, Te));
421
+ u("span", ke, Ce(Xe.value), 1)
422
+ ], 46, Ee));
416
423
  }
417
424
  });
418
425
  //#endregion