bt-core-app 2.2.5 → 2.2.7

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 (181) hide show
  1. package/dist/_virtual/VCheckbox.sass.mjs +1 -0
  2. package/dist/_virtual/VChip.sass.mjs +1 -0
  3. package/dist/_virtual/VChipGroup.sass.mjs +1 -0
  4. package/dist/_virtual/VColorPicker.sass.mjs +1 -0
  5. package/dist/_virtual/VColorPickerCanvas.sass.mjs +1 -0
  6. package/dist/_virtual/VColorPickerEdit.sass.mjs +1 -0
  7. package/dist/_virtual/VColorPickerPreview.sass.mjs +1 -0
  8. package/dist/_virtual/VColorPickerSwatches.sass.mjs +1 -0
  9. package/dist/_virtual/VCombobox.sass.mjs +1 -0
  10. package/dist/_virtual/VContainer.sass.mjs +1 -0
  11. package/dist/_virtual/VCounter.sass.mjs +1 -0
  12. package/dist/_virtual/VDialog.sass.mjs +1 -0
  13. package/dist/_virtual/VField.sass.mjs +1 -0
  14. package/dist/_virtual/VGrid.sass.mjs +1 -0
  15. package/dist/_virtual/VInput.sass.mjs +1 -0
  16. package/dist/_virtual/VLabel.sass.mjs +1 -0
  17. package/dist/_virtual/VMessages.sass.mjs +1 -0
  18. package/dist/_virtual/VNavigationDrawer.sass.mjs +1 -0
  19. package/dist/_virtual/VPagination.sass.mjs +1 -0
  20. package/dist/_virtual/VPicker.sass.mjs +1 -0
  21. package/dist/_virtual/VRating.sass.mjs +1 -0
  22. package/dist/_virtual/VSelect.sass.mjs +1 -0
  23. package/dist/_virtual/VSelectionControl.sass.mjs +1 -0
  24. package/dist/_virtual/VSelectionControlGroup.sass.mjs +1 -0
  25. package/dist/_virtual/VSheet.sass.mjs +1 -0
  26. package/dist/_virtual/VSlideGroup.sass.mjs +1 -0
  27. package/dist/_virtual/VSlider.sass.mjs +1 -0
  28. package/dist/_virtual/VSliderThumb.sass.mjs +1 -0
  29. package/dist/_virtual/VSliderTrack.sass.mjs +1 -0
  30. package/dist/_virtual/VSpacer.sass.mjs +1 -0
  31. package/dist/_virtual/VSwitch.sass.mjs +1 -0
  32. package/dist/_virtual/VTab.sass.mjs +1 -0
  33. package/dist/_virtual/VTable.sass.mjs +1 -0
  34. package/dist/_virtual/VTabs.sass.mjs +1 -0
  35. package/dist/_virtual/VTextField.sass.mjs +1 -0
  36. package/dist/_virtual/VTextarea.sass.mjs +1 -0
  37. package/dist/_virtual/VVirtualScroll.sass.mjs +1 -0
  38. package/dist/_virtual/VWindow.sass.mjs +1 -0
  39. package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.mjs +14 -14
  40. package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.mjs +74 -0
  41. package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckboxBtn.mjs +53 -0
  42. package/dist/bt-core/core/node_modules/vuetify/lib/components/VChip/VChip.mjs +263 -0
  43. package/dist/bt-core/core/node_modules/vuetify/lib/components/VChipGroup/VChipGroup.mjs +87 -0
  44. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs +161 -0
  45. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerCanvas.mjs +166 -0
  46. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerEdit.mjs +97 -0
  47. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerPreview.mjs +123 -0
  48. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerSwatches.mjs +72 -0
  49. package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/util/index.mjs +193 -0
  50. package/dist/bt-core/core/node_modules/vuetify/lib/components/VCombobox/VCombobox.mjs +501 -0
  51. package/dist/bt-core/core/node_modules/vuetify/lib/components/VCounter/VCounter.mjs +51 -0
  52. package/dist/bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs +103 -0
  53. package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VField.mjs +295 -0
  54. package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VFieldLabel.mjs +28 -0
  55. package/dist/bt-core/core/node_modules/vuetify/lib/components/VForm/VForm.mjs +53 -0
  56. package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs +98 -0
  57. package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs +41 -0
  58. package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs +104 -0
  59. package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs +6 -0
  60. package/dist/bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs +41 -0
  61. package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/InputIcon.mjs +40 -0
  62. package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/VInput.mjs +154 -0
  63. package/dist/bt-core/core/node_modules/vuetify/lib/components/VLabel/VLabel.mjs +36 -0
  64. package/dist/bt-core/core/node_modules/vuetify/lib/components/VMessages/VMessages.mjs +55 -0
  65. package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +247 -0
  66. package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/sticky.mjs +44 -0
  67. package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/touch.mjs +100 -0
  68. package/dist/bt-core/core/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +315 -0
  69. package/dist/bt-core/core/node_modules/vuetify/lib/components/VRating/VRating.mjs +217 -0
  70. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs +475 -0
  71. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/useScrolling.mjs +57 -0
  72. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControl/VSelectionControl.mjs +183 -0
  73. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +106 -0
  74. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSheet/VSheet.mjs +61 -0
  75. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/VSlideGroup.mjs +287 -0
  76. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/helpers.mjs +54 -0
  77. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSlider.mjs +159 -0
  78. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderThumb.mjs +176 -0
  79. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderTrack.mjs +109 -0
  80. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/slider.mjs +242 -0
  81. package/dist/bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs +172 -0
  82. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTable/VTable.mjs +66 -0
  83. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTab.mjs +126 -0
  84. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabs.mjs +153 -0
  85. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindow.mjs +48 -0
  86. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindowItem.mjs +29 -0
  87. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/shared.mjs +4 -0
  88. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +204 -0
  89. package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +258 -0
  90. package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs +38 -0
  91. package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs +106 -0
  92. package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +47 -0
  93. package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs +211 -0
  94. package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs +93 -0
  95. package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +20 -19
  96. package/dist/bt-core/core/node_modules/vuetify/lib/composables/autocomplete.mjs +21 -0
  97. package/dist/bt-core/core/node_modules/vuetify/lib/composables/autofocus.mjs +14 -0
  98. package/dist/bt-core/core/node_modules/vuetify/lib/composables/display.mjs +21 -12
  99. package/dist/bt-core/core/node_modules/vuetify/lib/composables/filter.mjs +125 -0
  100. package/dist/bt-core/core/node_modules/vuetify/lib/composables/focus.mjs +31 -0
  101. package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusGroups.mjs +54 -0
  102. package/dist/bt-core/core/node_modules/vuetify/lib/composables/form.mjs +112 -0
  103. package/dist/bt-core/core/node_modules/vuetify/lib/composables/goto.mjs +86 -0
  104. package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +4 -4
  105. package/dist/bt-core/core/node_modules/vuetify/lib/composables/layout.mjs +43 -0
  106. package/dist/bt-core/core/node_modules/vuetify/lib/composables/list-items.mjs +92 -5
  107. package/dist/bt-core/core/node_modules/vuetify/lib/composables/menuActivator.mjs +24 -0
  108. package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/nested.mjs +1 -1
  109. package/dist/bt-core/core/node_modules/vuetify/lib/composables/refs.mjs +15 -0
  110. package/dist/bt-core/core/node_modules/vuetify/lib/composables/touch.mjs +73 -0
  111. package/dist/bt-core/core/node_modules/vuetify/lib/composables/validation.mjs +139 -0
  112. package/dist/bt-core/core/node_modules/vuetify/lib/composables/virtual.mjs +164 -0
  113. package/dist/bt-core/core/node_modules/vuetify/lib/directives/touch/index.mjs +89 -0
  114. package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPicker.mjs +77 -0
  115. package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPickerTitle.mjs +5 -0
  116. package/dist/bt-core/core/node_modules/vuetify/lib/labs/rules/rules.mjs +15 -0
  117. package/dist/bt-core/core/node_modules/vuetify/lib/util/color/transformSRGB.mjs +16 -0
  118. package/dist/bt-core/core/node_modules/vuetify/lib/util/colorUtils.mjs +133 -50
  119. package/dist/bt-core/core/node_modules/vuetify/lib/util/easing.mjs +20 -4
  120. package/dist/bt-core/core/node_modules/vuetify/lib/util/globals.mjs +2 -1
  121. package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +248 -141
  122. package/dist/components/BT-Assistant-Menu.vue.mjs +226 -211
  123. package/dist/components/BT-Avatar.vue.mjs +31 -31
  124. package/dist/components/BT-Background-Task.vue.mjs +52 -52
  125. package/dist/components/BT-Blade-Item.vue.mjs +110 -100
  126. package/dist/components/BT-Blade-Items.vue.mjs +2 -2
  127. package/dist/components/BT-Blade-Items.vue2.mjs +411 -399
  128. package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
  129. package/dist/components/BT-Blade-Steps.vue2.mjs +641 -626
  130. package/dist/components/BT-Blade.vue.mjs +190 -192
  131. package/dist/components/BT-Btn.vue.mjs +23 -25
  132. package/dist/components/BT-Camera-Overlay.vue.mjs +144 -142
  133. package/dist/components/BT-Col.vue.mjs +17 -19
  134. package/dist/components/BT-Color-Picker-Menu.vue.mjs +51 -49
  135. package/dist/components/BT-Cosmetics-Menu.vue.mjs +180 -173
  136. package/dist/components/BT-Cron.vue.mjs +264 -249
  137. package/dist/components/BT-Date-Select.vue.mjs +46 -47
  138. package/dist/components/BT-Demo-Profile-Select.vue.mjs +40 -40
  139. package/dist/components/BT-Dialog-Confirm.vue.mjs +39 -39
  140. package/dist/components/BT-Dialog-Date.vue.mjs +22 -19
  141. package/dist/components/BT-Dialog-Number.vue.mjs +125 -121
  142. package/dist/components/BT-Dialog-Select.vue.mjs +96 -85
  143. package/dist/components/BT-Divider.vue.mjs +20 -21
  144. package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
  145. package/dist/components/BT-Drag-Counter.vue2.mjs +89 -89
  146. package/dist/components/BT-Entity.vue.mjs +82 -82
  147. package/dist/components/BT-Error.vue.mjs +26 -27
  148. package/dist/components/BT-Field-Checkbox.vue.mjs +30 -31
  149. package/dist/components/BT-Field-Date.vue.mjs +87 -84
  150. package/dist/components/BT-Field-Entity.vue.mjs +20 -16
  151. package/dist/components/BT-Field-Select-Simple.vue.mjs +24 -26
  152. package/dist/components/BT-Field-Select.vue.mjs +32 -34
  153. package/dist/components/BT-Field-String.vue.mjs +54 -52
  154. package/dist/components/BT-Field-Switch.vue.mjs +44 -43
  155. package/dist/components/BT-Field-Tags.vue.mjs +57 -55
  156. package/dist/components/BT-Field-Textarea.vue.mjs +44 -43
  157. package/dist/components/BT-Field-Trigger.vue.mjs +276 -270
  158. package/dist/components/BT-Field.vue.mjs +39 -38
  159. package/dist/components/BT-Form-Builder.vue.mjs +346 -325
  160. package/dist/components/BT-Form-Field.vue.mjs +88 -81
  161. package/dist/components/BT-Form.vue.mjs +280 -269
  162. package/dist/components/BT-Header-Option.vue.mjs +21 -19
  163. package/dist/components/BT-Image-Select.vue.mjs +186 -177
  164. package/dist/components/BT-Json.vue.mjs +29 -30
  165. package/dist/components/BT-Loader.vue.mjs +32 -31
  166. package/dist/components/BT-Nav-Sidebar.vue.mjs +130 -124
  167. package/dist/components/BT-Number.vue.mjs +2 -2
  168. package/dist/components/BT-Number.vue2.mjs +17 -19
  169. package/dist/components/BT-Numpad.vue.mjs +147 -144
  170. package/dist/components/BT-Select-List-Box.vue.mjs +287 -276
  171. package/dist/components/BT-Select-Simple.vue.mjs +21 -23
  172. package/dist/components/BT-Select.vue.mjs +36 -37
  173. package/dist/components/BT-Signature-Overlay.vue.mjs +113 -112
  174. package/dist/components/BT-Signature.vue.mjs +96 -96
  175. package/dist/components/BT-Slider.vue.mjs +109 -103
  176. package/dist/components/BT-Square-Check.vue.mjs +65 -65
  177. package/dist/components/BT-Status-Item.vue.mjs +18 -16
  178. package/dist/components/BT-Tags.vue.mjs +21 -22
  179. package/dist/components/BT-Tour.vue.mjs +69 -65
  180. package/dist/style.css +1 -1
  181. package/package.json +1 -1
@@ -0,0 +1,475 @@
1
+ import { ref as D, computed as R, shallowRef as Be, toRef as Te, watch as te, createVNode as s, mergeProps as V, createElementVNode as h, Fragment as K, createTextVNode as Ee, nextTick as Fe } from "vue";
2
+ import "../../../../../../../_virtual/VSelect.sass.mjs";
3
+ import { useInputIcon as Me } from "../VInput/InputIcon.mjs";
4
+ import { makeVTextFieldProps as Oe, VTextField as le } from "../VTextField/VTextField.mjs";
5
+ import { useScrolling as Ne } from "./useScrolling.mjs";
6
+ import { useFocusGroups as _e } from "../../composables/focusGroups.mjs";
7
+ import { useAutocomplete as Ke } from "../../composables/autocomplete.mjs";
8
+ import { makeFilterProps as $e, useFilter as Ue, highlightResult as ze } from "../../composables/filter.mjs";
9
+ import { useForm as He } from "../../composables/form.mjs";
10
+ import { forwardRefs as je } from "../../composables/forwardRefs.mjs";
11
+ import { IconValue as qe } from "../../composables/icons.mjs";
12
+ import { makeItemsProps as We, useItems as Ge } from "../../composables/list-items.mjs";
13
+ import { useLocale as Ye } from "../../composables/locale.mjs";
14
+ import { makeMenuActivatorProps as Je, useMenuActivator as Qe } from "../../composables/menuActivator.mjs";
15
+ import { useProxiedModel as $ } from "../../composables/proxiedModel.mjs";
16
+ import { makeTransitionProps as Xe } from "../../composables/transition.mjs";
17
+ import { VDialogTransition as Ze } from "../transitions/dialog-transition.mjs";
18
+ import { VMenu as et } from "../VMenu/VMenu.mjs";
19
+ import { VSheet as tt } from "../VSheet/VSheet.mjs";
20
+ import { VList as lt } from "../VList/VList.mjs";
21
+ import { VListItem as ne } from "../VList/VListItem.mjs";
22
+ import { VVirtualScroll as nt } from "../VVirtualScroll/VVirtualScroll.mjs";
23
+ import { omit as at, camelizeProps as ot, ensureValidVNode as ut, wrapInArray as rt, checkPrintable as ae, matchesSelector as oe } from "../../util/helpers.mjs";
24
+ import { VDivider as it } from "../VDivider/VDivider.mjs";
25
+ import { VListSubheader as st } from "../VList/VListSubheader.mjs";
26
+ import { VCheckboxBtn as ct } from "../VCheckbox/VCheckboxBtn.mjs";
27
+ import { VAvatar as dt } from "../VAvatar/VAvatar.mjs";
28
+ import { VIcon as ue } from "../VIcon/VIcon.mjs";
29
+ import { VChip as re } from "../VChip/VChip.mjs";
30
+ import { VDefaultsProvider as ft } from "../VDefaultsProvider/VDefaultsProvider.mjs";
31
+ import { propsFactory as ie } from "../../util/propsFactory.mjs";
32
+ import { genericComponent as mt } from "../../util/defineComponent.mjs";
33
+ import { deepEqual as U } from "../../util/deepEqual.mjs";
34
+ import { IN_BROWSER as vt } from "../../util/globals.mjs";
35
+ import { useRender as pt } from "../../util/useRender.mjs";
36
+ const ht = ie({
37
+ chips: Boolean,
38
+ closableChips: Boolean,
39
+ eager: Boolean,
40
+ hideNoData: Boolean,
41
+ hideSelected: Boolean,
42
+ listProps: {
43
+ type: Object
44
+ },
45
+ menu: Boolean,
46
+ menuIcon: {
47
+ type: qe,
48
+ default: "$dropdown"
49
+ },
50
+ menuProps: {
51
+ type: Object
52
+ },
53
+ multiple: Boolean,
54
+ noDataText: {
55
+ type: String,
56
+ default: "$vuetify.noDataText"
57
+ },
58
+ openOnClear: Boolean,
59
+ itemColor: String,
60
+ noAutoScroll: Boolean,
61
+ ...Je(),
62
+ ...We({
63
+ itemChildren: !1
64
+ })
65
+ }, "Select"), yt = ie({
66
+ search: String,
67
+ ...$e({
68
+ filterKeys: ["title"]
69
+ }),
70
+ ...ht(),
71
+ ...at(Oe({
72
+ modelValue: null,
73
+ role: "combobox"
74
+ }), ["validationValue", "dirty"]),
75
+ ...Xe({
76
+ transition: {
77
+ component: Ze
78
+ }
79
+ })
80
+ }, "VSelect"), Zt = mt()({
81
+ name: "VSelect",
82
+ props: yt(),
83
+ emits: {
84
+ "update:focused": (t) => !0,
85
+ "update:modelValue": (t) => !0,
86
+ "update:menu": (t) => !0,
87
+ "update:search": (t) => !0
88
+ },
89
+ setup(t, se) {
90
+ let {
91
+ slots: l
92
+ } = se;
93
+ const {
94
+ t: ce
95
+ } = Ye(), m = D(), z = D(), H = D(), j = D(), M = D(), {
96
+ items: A,
97
+ transformIn: de,
98
+ transformOut: fe
99
+ } = Ge(t), S = $(t, "search", ""), {
100
+ filteredItems: O,
101
+ getMatches: me
102
+ } = Ue(t, A, () => S.value), u = $(t, "modelValue", [], (e) => de(e === null ? [null] : rt(e)), (e) => {
103
+ const a = fe(e);
104
+ return t.multiple ? a : a[0] ?? null;
105
+ }), ve = R(() => typeof t.counterValue == "function" ? t.counterValue(u.value) : typeof t.counterValue == "number" ? t.counterValue : u.value.length), L = He(t), pe = Ke(t), q = R(() => u.value.map((e) => e.value)), b = Be(!1), W = Te(() => t.closableChips && !L.isReadonly.value && !L.isDisabled.value), {
106
+ InputIcon: he
107
+ } = Me(t);
108
+ let g = "", B = 0, G;
109
+ const y = R(() => {
110
+ const e = S.value ? O.value : A.value;
111
+ return t.hideSelected ? e.filter((a) => !u.value.some((r) => (t.valueComparator || U)(r, a))) : e;
112
+ }), N = R(() => t.hideNoData && !y.value.length || L.isReadonly.value || L.isDisabled.value), _ = $(t, "menu"), i = R({
113
+ get: () => _.value,
114
+ set: (e) => {
115
+ var a;
116
+ _.value && !e && ((a = z.value) != null && a.ΨopenChildren.size) || e && N.value || (_.value = e);
117
+ }
118
+ }), {
119
+ menuId: ye,
120
+ ariaExpanded: Ve,
121
+ ariaControls: ge
122
+ } = Qe(t, i), ke = R(() => {
123
+ var e;
124
+ return {
125
+ ...t.menuProps,
126
+ activatorProps: {
127
+ ...((e = t.menuProps) == null ? void 0 : e.activatorProps) || {},
128
+ "aria-haspopup": "listbox"
129
+ // Set aria-haspopup to 'listbox'
130
+ }
131
+ };
132
+ }), C = D(), be = Ne(C, m), {
133
+ onTabKeydown: Ce
134
+ } = _e({
135
+ groups: [{
136
+ type: "element",
137
+ contentRef: H
138
+ }, {
139
+ type: "list",
140
+ contentRef: C,
141
+ displayItemsCount: () => y.value.length
142
+ }, {
143
+ type: "element",
144
+ contentRef: j
145
+ }],
146
+ onLeave: () => {
147
+ var e;
148
+ i.value = !1, (e = m.value) == null || e.focus();
149
+ }
150
+ });
151
+ function Y(e) {
152
+ t.openOnClear && (i.value = !0);
153
+ }
154
+ function Ie() {
155
+ N.value || (i.value = !i.value);
156
+ }
157
+ function Pe(e) {
158
+ var a;
159
+ e.key === "Tab" && Ce(e), (a = C.value) != null && a.$el.contains(e.target) && ae(e) && J(e);
160
+ }
161
+ function J(e) {
162
+ var f, p, x;
163
+ if (!e.key || L.isReadonly.value)
164
+ return;
165
+ if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && e.preventDefault(), ["Enter", "ArrowDown", " "].includes(e.key) && (i.value = !0), ["Escape", "Tab"].includes(e.key) && (i.value = !1), t.clearable && e.key === "Backspace") {
166
+ e.preventDefault(), u.value = [], Y();
167
+ return;
168
+ }
169
+ e.key === "Home" ? (f = C.value) == null || f.focus("first") : e.key === "End" && ((p = C.value) == null || p.focus("last"));
170
+ const a = 1e3;
171
+ if (!ae(e))
172
+ return;
173
+ const r = performance.now();
174
+ r - G > a && (g = "", B = 0), g += e.key.toLowerCase(), G = r;
175
+ const I = y.value;
176
+ function k() {
177
+ let n = P();
178
+ return n || g.at(-1) === g.at(-2) && (g = g.slice(0, -1), B++, n = P(), n) || (B = 0, n = P(), n) ? n : (g = e.key.toLowerCase(), P());
179
+ }
180
+ function P() {
181
+ for (let n = B; n < I.length; n++) {
182
+ const c = I[n];
183
+ if (c.title.toLowerCase().startsWith(g))
184
+ return [c, n];
185
+ }
186
+ }
187
+ const v = k();
188
+ if (!v)
189
+ return;
190
+ const [w, o] = v;
191
+ B = o, (x = C.value) == null || x.focus(o), t.multiple || (u.value = [w]);
192
+ }
193
+ function T(e) {
194
+ let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
195
+ if (!e.props.disabled)
196
+ if (t.multiple) {
197
+ const r = u.value.findIndex((k) => (t.valueComparator || U)(k.value, e.value)), I = a ?? !~r;
198
+ if (~r) {
199
+ const k = I ? [...u.value, e] : [...u.value];
200
+ k.splice(r, 1), u.value = k;
201
+ } else
202
+ I && (u.value = [...u.value, e]);
203
+ } else {
204
+ const r = a !== !1;
205
+ u.value = r ? [e] : [], Fe(() => {
206
+ i.value = !1;
207
+ });
208
+ }
209
+ }
210
+ function we(e) {
211
+ var r;
212
+ const a = e.target;
213
+ (r = m.value) != null && r.$el.contains(a) || (i.value = !1);
214
+ }
215
+ function xe() {
216
+ var e;
217
+ t.eager && ((e = M.value) == null || e.calculateVisibleItems());
218
+ }
219
+ function Se() {
220
+ var e;
221
+ S.value = "", b.value && ((e = m.value) == null || e.focus());
222
+ }
223
+ function De(e) {
224
+ b.value = !0;
225
+ }
226
+ function Re(e) {
227
+ if (e == null)
228
+ u.value = [];
229
+ else if (oe(m.value, ":autofill") || oe(m.value, ":-webkit-autofill")) {
230
+ const a = A.value.find((r) => r.title === e);
231
+ a && T(a);
232
+ } else
233
+ m.value && (m.value.value = "");
234
+ }
235
+ return te(i, () => {
236
+ if (!t.hideSelected && i.value && u.value.length) {
237
+ const e = y.value.findIndex((a) => u.value.some((r) => (t.valueComparator || U)(r.value, a.value)));
238
+ vt && !t.noAutoScroll && window.requestAnimationFrame(() => {
239
+ var a;
240
+ e >= 0 && ((a = M.value) == null || a.scrollToIndex(e));
241
+ });
242
+ }
243
+ }), te(A, (e, a) => {
244
+ i.value || b.value && t.hideNoData && !a.length && e.length && (i.value = !0);
245
+ }), pt(() => {
246
+ const e = !!(t.chips || l.chip), a = !!(!t.hideNoData || y.value.length || l["prepend-item"] || l["append-item"] || l["no-data"]), r = u.value.length > 0, I = le.filterProps(t), k = r || !b.value && t.label && !t.persistentPlaceholder ? void 0 : t.placeholder, P = {
247
+ search: S,
248
+ filteredItems: O.value
249
+ };
250
+ return s(le, V({
251
+ ref: m
252
+ }, I, {
253
+ modelValue: u.value.map((v) => v.props.title).join(", "),
254
+ name: void 0,
255
+ "onUpdate:modelValue": Re,
256
+ focused: b.value,
257
+ "onUpdate:focused": (v) => b.value = v,
258
+ validationValue: u.externalValue,
259
+ counterValue: ve.value,
260
+ dirty: r,
261
+ class: ["v-select", {
262
+ "v-select--active-menu": i.value,
263
+ "v-select--chips": !!t.chips,
264
+ [`v-select--${t.multiple ? "multiple" : "single"}`]: !0,
265
+ "v-select--selected": u.value.length,
266
+ "v-select--selection-slot": !!l.selection
267
+ }, t.class],
268
+ style: t.style,
269
+ inputmode: "none",
270
+ placeholder: k,
271
+ "onClick:clear": Y,
272
+ "onMousedown:control": Ie,
273
+ onBlur: we,
274
+ onKeydown: J,
275
+ "aria-expanded": Ve.value,
276
+ "aria-controls": ge.value
277
+ }), {
278
+ ...l,
279
+ default: (v) => {
280
+ let {
281
+ id: w
282
+ } = v;
283
+ return h(K, null, [h("select", {
284
+ hidden: !0,
285
+ multiple: t.multiple,
286
+ name: pe.fieldName.value
287
+ }, [A.value.map((o) => h("option", {
288
+ key: o.value,
289
+ value: o.value,
290
+ selected: q.value.includes(o.value)
291
+ }, null))]), s(et, V({
292
+ id: ye.value,
293
+ ref: z,
294
+ modelValue: i.value,
295
+ "onUpdate:modelValue": (o) => i.value = o,
296
+ activator: "parent",
297
+ contentClass: "v-select__content",
298
+ disabled: N.value,
299
+ eager: t.eager,
300
+ maxHeight: 310,
301
+ openOnClick: !1,
302
+ closeOnContentClick: !1,
303
+ transition: t.transition,
304
+ onAfterEnter: xe,
305
+ onAfterLeave: Se
306
+ }, ke.value), {
307
+ default: () => [s(tt, {
308
+ onFocusin: De,
309
+ onKeydown: Pe
310
+ }, {
311
+ default: () => [l["menu-header"] && h("header", {
312
+ ref: H
313
+ }, [l["menu-header"](P)]), a && s(lt, V({
314
+ key: "select-list",
315
+ ref: C,
316
+ selected: q.value,
317
+ selectStrategy: t.multiple ? "independent" : "single-independent",
318
+ tabindex: "-1",
319
+ selectable: !!y.value.length,
320
+ "aria-live": "polite",
321
+ "aria-labelledby": `${w.value}-label`,
322
+ "aria-multiselectable": t.multiple,
323
+ color: t.itemColor ?? t.color
324
+ }, be, t.listProps), {
325
+ default: () => {
326
+ var o, f, p;
327
+ return [(o = l["prepend-item"]) == null ? void 0 : o.call(l), !y.value.length && !t.hideNoData && (((f = l["no-data"]) == null ? void 0 : f.call(l)) ?? s(ne, {
328
+ key: "no-data",
329
+ title: ce(t.noDataText)
330
+ }, null)), s(nt, {
331
+ ref: M,
332
+ renderless: !0,
333
+ items: y.value,
334
+ itemKey: "value"
335
+ }, {
336
+ default: (x) => {
337
+ var X, Z, ee;
338
+ let {
339
+ item: n,
340
+ index: c,
341
+ itemRef: d
342
+ } = x;
343
+ const E = ot(n.props), Q = V(n.props, {
344
+ ref: d,
345
+ key: n.value,
346
+ onClick: () => T(n, null),
347
+ "aria-posinset": c + 1,
348
+ "aria-setsize": y.value.length
349
+ });
350
+ return n.type === "divider" ? ((X = l.divider) == null ? void 0 : X.call(l, {
351
+ props: n.raw,
352
+ index: c
353
+ })) ?? s(it, V(n.props, {
354
+ key: `divider-${c}`
355
+ }), null) : n.type === "subheader" ? ((Z = l.subheader) == null ? void 0 : Z.call(l, {
356
+ props: n.raw,
357
+ index: c
358
+ })) ?? s(st, V(n.props, {
359
+ key: `subheader-${c}`
360
+ }), null) : ((ee = l.item) == null ? void 0 : ee.call(l, {
361
+ item: n,
362
+ index: c,
363
+ props: Q
364
+ })) ?? s(ne, V(Q, {
365
+ role: "option"
366
+ }), {
367
+ prepend: (F) => {
368
+ let {
369
+ isSelected: Ae
370
+ } = F;
371
+ return h(K, null, [t.multiple && !t.hideSelected ? s(ct, {
372
+ key: n.value,
373
+ modelValue: Ae,
374
+ ripple: !1,
375
+ tabindex: "-1",
376
+ "aria-hidden": !0,
377
+ onClick: (Le) => Le.preventDefault()
378
+ }, null) : void 0, E.prependAvatar && s(dt, {
379
+ image: E.prependAvatar
380
+ }, null), E.prependIcon && s(ue, {
381
+ icon: E.prependIcon
382
+ }, null)]);
383
+ },
384
+ title: () => {
385
+ var F;
386
+ return S.value ? ze("v-select", n.title, (F = me(n)) == null ? void 0 : F.title) : n.title;
387
+ }
388
+ });
389
+ }
390
+ }), (p = l["append-item"]) == null ? void 0 : p.call(l)];
391
+ }
392
+ }), l["menu-footer"] && h("footer", {
393
+ ref: j
394
+ }, [l["menu-footer"](P)])]
395
+ })]
396
+ }), u.value.map((o, f) => {
397
+ function p(d) {
398
+ d.stopPropagation(), d.preventDefault(), T(o, !1);
399
+ }
400
+ const x = V(re.filterProps(o.props), {
401
+ "onClick:close": p,
402
+ onKeydown(d) {
403
+ d.key !== "Enter" && d.key !== " " || (d.preventDefault(), d.stopPropagation(), p(d));
404
+ },
405
+ onMousedown(d) {
406
+ d.preventDefault(), d.stopPropagation();
407
+ },
408
+ modelValue: !0,
409
+ "onUpdate:modelValue": void 0
410
+ }), n = e ? !!l.chip : !!l.selection, c = n ? ut(e ? l.chip({
411
+ item: o,
412
+ index: f,
413
+ props: x
414
+ }) : l.selection({
415
+ item: o,
416
+ index: f
417
+ })) : void 0;
418
+ if (!(n && !c))
419
+ return h("div", {
420
+ key: o.value,
421
+ class: "v-select__selection"
422
+ }, [e ? l.chip ? s(ft, {
423
+ key: "chip-defaults",
424
+ defaults: {
425
+ VChip: {
426
+ closable: W.value,
427
+ size: "small",
428
+ text: o.title
429
+ }
430
+ }
431
+ }, {
432
+ default: () => [c]
433
+ }) : s(re, V({
434
+ key: "chip",
435
+ closable: W.value,
436
+ size: "small",
437
+ text: o.title,
438
+ disabled: o.props.disabled
439
+ }, x), null) : c ?? h("span", {
440
+ class: "v-select__selection-text"
441
+ }, [o.title, t.multiple && f < u.value.length - 1 && h("span", {
442
+ class: "v-select__selection-comma"
443
+ }, [Ee(",")])])]);
444
+ })]);
445
+ },
446
+ "append-inner": function() {
447
+ var f, p;
448
+ for (var v = arguments.length, w = new Array(v), o = 0; o < v; o++)
449
+ w[o] = arguments[o];
450
+ return h(K, null, [(f = l["append-inner"]) == null ? void 0 : f.call(l, ...w), t.menuIcon ? s(ue, {
451
+ class: "v-select__menu-icon",
452
+ color: (p = m.value) == null ? void 0 : p.fieldIconColor,
453
+ icon: t.menuIcon,
454
+ "aria-hidden": !0
455
+ }, null) : void 0, t.appendInnerIcon && s(he, {
456
+ key: "append-icon",
457
+ name: "appendInner",
458
+ color: w[0].iconColor.value
459
+ }, null)]);
460
+ }
461
+ });
462
+ }), je({
463
+ isFocused: b,
464
+ menu: i,
465
+ search: S,
466
+ filteredItems: O,
467
+ select: T
468
+ }, m);
469
+ }
470
+ });
471
+ export {
472
+ Zt as VSelect,
473
+ ht as makeSelectProps,
474
+ yt as makeVSelectProps
475
+ };
@@ -0,0 +1,57 @@
1
+ import { shallowRef as w, watch as d } from "vue";
2
+ function p(c, u) {
3
+ const t = w(!1);
4
+ let i;
5
+ function m(e) {
6
+ cancelAnimationFrame(i), t.value = !0, i = requestAnimationFrame(() => {
7
+ i = requestAnimationFrame(() => {
8
+ t.value = !1;
9
+ });
10
+ });
11
+ }
12
+ async function f() {
13
+ await new Promise((e) => requestAnimationFrame(e)), await new Promise((e) => requestAnimationFrame(e)), await new Promise((e) => requestAnimationFrame(e)), await new Promise((e) => {
14
+ if (t.value) {
15
+ const o = d(t, () => {
16
+ o(), e();
17
+ });
18
+ } else
19
+ e();
20
+ });
21
+ }
22
+ async function g(e) {
23
+ var l, s;
24
+ if (e.key === "Tab" && ((l = u.value) == null || l.focus()), !["PageDown", "PageUp", "Home", "End"].includes(e.key))
25
+ return;
26
+ const o = (s = c.value) == null ? void 0 : s.$el;
27
+ if (!o)
28
+ return;
29
+ (e.key === "Home" || e.key === "End") && o.scrollTo({
30
+ top: e.key === "Home" ? 0 : o.scrollHeight,
31
+ behavior: "smooth"
32
+ }), await f();
33
+ const a = o.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
34
+ if (e.key === "PageDown" || e.key === "Home") {
35
+ const r = o.getBoundingClientRect().top;
36
+ for (const n of a)
37
+ if (n.getBoundingClientRect().top >= r) {
38
+ n.focus();
39
+ break;
40
+ }
41
+ } else {
42
+ const r = o.getBoundingClientRect().bottom;
43
+ for (const n of [...a].reverse())
44
+ if (n.getBoundingClientRect().bottom <= r) {
45
+ n.focus();
46
+ break;
47
+ }
48
+ }
49
+ }
50
+ return {
51
+ onScrollPassive: m,
52
+ onKeydown: g
53
+ };
54
+ }
55
+ export {
56
+ p as useScrolling
57
+ };