bt-core-app 2.2.5 → 2.2.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 (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 +21 -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 +30 -28
  125. package/dist/components/BT-Blade-Item.vue.mjs +111 -102
  126. package/dist/components/BT-Blade-Items.vue.mjs +2 -2
  127. package/dist/components/BT-Blade-Items.vue2.mjs +413 -402
  128. package/dist/components/BT-Blade-Steps.vue.mjs +1 -1
  129. package/dist/components/BT-Blade-Steps.vue2.mjs +597 -583
  130. package/dist/components/BT-Blade.vue.mjs +19 -19
  131. package/dist/components/BT-Btn.vue.mjs +23 -25
  132. package/dist/components/BT-Camera-Overlay.vue.mjs +72 -68
  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 +249 -235
  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 +107 -97
  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 +58 -56
  146. package/dist/components/BT-Entity.vue.mjs +50 -48
  147. package/dist/components/BT-Error.vue.mjs +16 -15
  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 +342 -322
  160. package/dist/components/BT-Form-Field.vue.mjs +81 -75
  161. package/dist/components/BT-Form.vue.mjs +263 -253
  162. package/dist/components/BT-Header-Option.vue.mjs +10 -9
  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 +71 -66
  170. package/dist/components/BT-Select-List-Box.vue.mjs +157 -144
  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 +63 -60
  174. package/dist/components/BT-Signature.vue.mjs +66 -64
  175. package/dist/components/BT-Slider.vue.mjs +69 -61
  176. package/dist/components/BT-Square-Check.vue.mjs +24 -22
  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,112 @@
1
+ import { useProxiedModel as M } from "./proxiedModel.mjs";
2
+ import { toRef as d, shallowRef as R, ref as c, watch as w, provide as B, markRaw as D, inject as k, computed as m } from "vue";
3
+ import { propsFactory as E } from "../util/propsFactory.mjs";
4
+ import { consoleWarn as O } from "../util/console.mjs";
5
+ const y = Symbol.for("vuetify:form"), K = E({
6
+ disabled: Boolean,
7
+ fastFail: Boolean,
8
+ readonly: Boolean,
9
+ modelValue: {
10
+ type: Boolean,
11
+ default: null
12
+ },
13
+ validateOn: {
14
+ type: String,
15
+ default: "input"
16
+ }
17
+ }, "form");
18
+ function W(i) {
19
+ const s = M(i, "modelValue"), f = d(() => i.disabled), v = d(() => i.readonly), n = R(!1), l = c([]), o = c([]);
20
+ async function g() {
21
+ const e = [];
22
+ let a = !0;
23
+ o.value = [], n.value = !0;
24
+ for (const r of l.value) {
25
+ const t = await r.validate();
26
+ if (t.length > 0 && (a = !1, e.push({
27
+ id: r.id,
28
+ errorMessages: t
29
+ })), !a && i.fastFail)
30
+ break;
31
+ }
32
+ return o.value = e, n.value = !1, {
33
+ valid: a,
34
+ errors: o.value
35
+ };
36
+ }
37
+ function V() {
38
+ l.value.forEach((e) => e.reset());
39
+ }
40
+ function h() {
41
+ l.value.forEach((e) => e.resetValidation());
42
+ }
43
+ return w(l, () => {
44
+ let e = 0, a = 0;
45
+ const r = [];
46
+ for (const t of l.value)
47
+ t.isValid === !1 ? (a++, r.push({
48
+ id: t.id,
49
+ errorMessages: t.errorMessages
50
+ })) : t.isValid === !0 && e++;
51
+ o.value = r, s.value = a > 0 ? !1 : e === l.value.length ? !0 : null;
52
+ }, {
53
+ deep: !0,
54
+ flush: "post"
55
+ }), B(y, {
56
+ register: (e) => {
57
+ let {
58
+ id: a,
59
+ vm: r,
60
+ validate: t,
61
+ reset: u,
62
+ resetValidation: b
63
+ } = e;
64
+ l.value.some((F) => F.id === a) && O(`Duplicate input name "${a}"`), l.value.push({
65
+ id: a,
66
+ validate: t,
67
+ reset: u,
68
+ resetValidation: b,
69
+ vm: D(r),
70
+ isValid: null,
71
+ errorMessages: []
72
+ });
73
+ },
74
+ unregister: (e) => {
75
+ l.value = l.value.filter((a) => a.id !== e);
76
+ },
77
+ update: (e, a, r) => {
78
+ const t = l.value.find((u) => u.id === e);
79
+ t && (t.isValid = a, t.errorMessages = r);
80
+ },
81
+ isDisabled: f,
82
+ isReadonly: v,
83
+ isValidating: n,
84
+ isValid: s,
85
+ items: l,
86
+ validateOn: d(() => i.validateOn)
87
+ }), {
88
+ errors: o,
89
+ isDisabled: f,
90
+ isReadonly: v,
91
+ isValidating: n,
92
+ isValid: s,
93
+ items: l,
94
+ validate: g,
95
+ reset: V,
96
+ resetValidation: h
97
+ };
98
+ }
99
+ function $(i) {
100
+ const s = k(y, null);
101
+ return {
102
+ ...s,
103
+ isReadonly: m(() => !!((i == null ? void 0 : i.readonly) ?? (s == null ? void 0 : s.isReadonly.value))),
104
+ isDisabled: m(() => !!((i == null ? void 0 : i.disabled) ?? (s == null ? void 0 : s.isDisabled.value)))
105
+ };
106
+ }
107
+ export {
108
+ y as FormKey,
109
+ W as createForm,
110
+ K as makeFormProps,
111
+ $ as useForm
112
+ };
@@ -0,0 +1,86 @@
1
+ import { inject as R, toRef as S } from "vue";
2
+ import { useRtl as v } from "./locale.mjs";
3
+ import { easingPatterns as C } from "../util/easing.mjs";
4
+ import { mergeDeep as g, clamp as b, refElement as H } from "../util/helpers.mjs";
5
+ import { PREFERS_REDUCED_MOTION as L } from "../util/globals.mjs";
6
+ import { consoleWarn as W } from "../util/console.mjs";
7
+ const D = Symbol.for("vuetify:goto");
8
+ function I() {
9
+ return {
10
+ container: void 0,
11
+ duration: 300,
12
+ layout: !1,
13
+ offset: 0,
14
+ easing: "easeInOutCubic",
15
+ patterns: C
16
+ };
17
+ }
18
+ function M(t) {
19
+ return E(t) ?? (document.scrollingElement || document.body);
20
+ }
21
+ function E(t) {
22
+ return typeof t == "string" ? document.querySelector(t) : H(t);
23
+ }
24
+ function y(t, f, r) {
25
+ if (typeof t == "number")
26
+ return f && r ? -t : t;
27
+ let e = E(t), o = 0;
28
+ for (; e; )
29
+ o += f ? e.offsetLeft : e.offsetTop, e = e.offsetParent;
30
+ return o;
31
+ }
32
+ async function h(t, f, r, e) {
33
+ const o = r ? "scrollLeft" : "scrollTop", n = g((e == null ? void 0 : e.options) ?? I(), f), s = e == null ? void 0 : e.rtl.value, a = (typeof t == "number" ? t : E(t)) ?? 0, i = n.container === "parent" && a instanceof HTMLElement ? a.parentElement : M(n.container), l = L() ? n.patterns.instant : typeof n.easing == "function" ? n.easing : n.patterns[n.easing];
34
+ if (!l)
35
+ throw new TypeError(`Easing function "${n.easing}" not found.`);
36
+ let c;
37
+ if (typeof a == "number")
38
+ c = y(a, r, s);
39
+ else if (c = y(a, r, s) - y(i, r, s), n.layout) {
40
+ const u = window.getComputedStyle(a).getPropertyValue("--v-layout-top");
41
+ u && (c -= parseInt(u, 10));
42
+ }
43
+ c += n.offset, c = T(i, c, !!s, !!r);
44
+ const m = i[o] ?? 0;
45
+ if (c === m)
46
+ return Promise.resolve(c);
47
+ const O = performance.now();
48
+ return new Promise((p) => requestAnimationFrame(function u(P) {
49
+ const d = (P - O) / n.duration, w = Math.floor(m + (c - m) * l(b(d, 0, 1)));
50
+ if (i[o] = w, d >= 1 && Math.abs(w - i[o]) < 10)
51
+ return p(c);
52
+ if (d > 2)
53
+ return W("Scroll target is not reachable"), p(i[o]);
54
+ requestAnimationFrame(u);
55
+ }));
56
+ }
57
+ function N() {
58
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
59
+ const f = R(D), {
60
+ isRtl: r
61
+ } = v();
62
+ if (!f)
63
+ throw new Error("[Vuetify] Could not find injected goto instance");
64
+ const e = {
65
+ ...f,
66
+ // can be set via VLocaleProvider
67
+ rtl: S(() => f.rtl.value || r.value)
68
+ };
69
+ async function o(n, s) {
70
+ return h(n, g(t, s), !1, e);
71
+ }
72
+ return o.horizontal = async (n, s) => h(n, g(t, s), !0, e), o;
73
+ }
74
+ function T(t, f, r, e) {
75
+ const {
76
+ scrollWidth: o,
77
+ scrollHeight: n
78
+ } = t, [s, a] = t === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [t.offsetWidth, t.offsetHeight];
79
+ let i, l;
80
+ return e ? r ? (i = -(o - s), l = 0) : (i = 0, l = o - s) : (i = 0, l = n + -a), b(f, i, l);
81
+ }
82
+ export {
83
+ D as GoToSymbol,
84
+ h as scrollTo,
85
+ N as useGoTo
86
+ };
@@ -1,8 +1,8 @@
1
1
  import { createVNode as i, mergeProps as g, createElementVNode as c, normalizeClass as d, inject as y, computed as I, toValue as V } from "vue";
2
2
  import { genericComponent as S, defineComponent as l } from "../util/defineComponent.mjs";
3
- import { propsFactory as v } from "../util/propsFactory.mjs";
4
- import { consoleWarn as A } from "../util/console.mjs";
5
- const h = [String, Function, Object, Array], w = Symbol.for("vuetify:icons"), s = v({
3
+ import { consoleWarn as v } from "../util/console.mjs";
4
+ import { propsFactory as A } from "../util/propsFactory.mjs";
5
+ const h = [String, Function, Object, Array], w = Symbol.for("vuetify:icons"), s = A({
6
6
  icon: {
7
7
  type: h
8
8
  },
@@ -87,7 +87,7 @@ const O = (t) => {
87
87
  component: m
88
88
  };
89
89
  let n = e;
90
- if (typeof n == "string" && (n = n.trim(), n.startsWith("$") && (n = (u = o.aliases) == null ? void 0 : u[n.slice(1)])), n || A(`Could not find aliased icon "${e}"`), Array.isArray(n))
90
+ if (typeof n == "string" && (n = n.trim(), n.startsWith("$") && (n = (u = o.aliases) == null ? void 0 : u[n.slice(1)])), n || v(`Could not find aliased icon "${e}"`), Array.isArray(n))
91
91
  return {
92
92
  component: C,
93
93
  icon: n
@@ -0,0 +1,43 @@
1
+ import { inject as i, useId as l, provide as n, shallowRef as m, onDeactivated as s, onActivated as c, computed as f, onBeforeUnmount as v } from "vue";
2
+ import { getCurrentInstance as d } from "../util/getCurrentInstance.mjs";
3
+ import { propsFactory as p } from "../util/propsFactory.mjs";
4
+ const I = Symbol.for("vuetify:layout"), S = Symbol.for("vuetify:layout-item"), w = p({
5
+ name: {
6
+ type: String
7
+ },
8
+ order: {
9
+ type: [Number, String],
10
+ default: 0
11
+ },
12
+ absolute: Boolean
13
+ }, "layout-item");
14
+ function K(e) {
15
+ const t = i(I);
16
+ if (!t)
17
+ throw new Error("[Vuetify] Could not find injected layout");
18
+ const o = e.id ?? `layout-item-${l()}`, a = d("useLayoutItem");
19
+ n(S, {
20
+ id: o
21
+ });
22
+ const u = m(!1);
23
+ s(() => u.value = !0), c(() => u.value = !1);
24
+ const {
25
+ layoutItemStyles: r,
26
+ layoutItemScrimStyles: y
27
+ } = t.register(a, {
28
+ ...e,
29
+ active: f(() => u.value ? !1 : e.active.value),
30
+ id: o
31
+ });
32
+ return v(() => t.unregister(o)), {
33
+ layoutItemStyles: r,
34
+ layoutRect: t.layoutRect,
35
+ layoutItemScrimStyles: y
36
+ };
37
+ }
38
+ export {
39
+ S as VuetifyLayoutItemKey,
40
+ I as VuetifyLayoutKey,
41
+ w as makeLayoutItemProps,
42
+ K as useLayoutItem
43
+ };
@@ -1,6 +1,8 @@
1
- import "vue";
2
- import { propsFactory as t } from "../util/propsFactory.mjs";
3
- const o = t({
1
+ import { computed as A, shallowRef as _, watchEffect as S } from "vue";
2
+ import { isPrimitive as T, getPropertyFromItem as d, omit as b, pick as C } from "../util/helpers.mjs";
3
+ import { propsFactory as j } from "../util/propsFactory.mjs";
4
+ import { deepEqual as k } from "../util/deepEqual.mjs";
5
+ const N = j({
4
6
  items: {
5
7
  type: Array,
6
8
  default: () => []
@@ -27,7 +29,92 @@ const o = t({
27
29
  },
28
30
  returnObject: Boolean,
29
31
  valueComparator: Function
30
- }, "list-items");
32
+ }, "list-items"), O = /* @__PURE__ */ new Set(["item", "divider", "subheader"]);
33
+ function f(t, e) {
34
+ const u = d(e, t.itemTitle, e), i = d(e, t.itemValue, u), s = d(e, t.itemChildren), v = t.itemProps === !0 ? typeof e == "object" && e != null && !Array.isArray(e) ? "children" in e ? b(e, ["children"]) : e : void 0 : d(e, t.itemProps);
35
+ let l = d(e, t.itemType, "item");
36
+ O.has(l) || (l = "item");
37
+ const n = {
38
+ title: u,
39
+ value: i,
40
+ ...v
41
+ };
42
+ return {
43
+ type: l,
44
+ title: String(n.title ?? ""),
45
+ value: n.value,
46
+ props: n,
47
+ children: l === "item" && Array.isArray(s) ? F(t, s) : void 0,
48
+ raw: e
49
+ };
50
+ }
51
+ f.neededProps = ["itemTitle", "itemValue", "itemChildren", "itemProps", "itemType"];
52
+ function F(t, e) {
53
+ const u = C(t, f.neededProps), i = [];
54
+ for (const s of e)
55
+ i.push(f(u, s));
56
+ return i;
57
+ }
58
+ function q(t) {
59
+ const e = A(() => F(t, t.items)), u = A(() => e.value.some((n) => n.value === null)), i = _(/* @__PURE__ */ new Map()), s = _([]);
60
+ S(() => {
61
+ const n = e.value, r = /* @__PURE__ */ new Map(), o = [];
62
+ for (let p = 0; p < n.length; p++) {
63
+ const a = n[p];
64
+ if (T(a.value) || a.value === null) {
65
+ let c = r.get(a.value);
66
+ c || (c = [], r.set(a.value, c)), c.push(a);
67
+ } else
68
+ o.push(a);
69
+ }
70
+ i.value = r, s.value = o;
71
+ });
72
+ function v(n) {
73
+ const r = i.value, o = e.value, p = s.value, a = u.value, c = t.returnObject, h = !!t.valueComparator, w = t.valueComparator || k, I = C(t, f.neededProps), y = [];
74
+ e:
75
+ for (const m of n) {
76
+ if (!a && m === null)
77
+ continue;
78
+ if (c && typeof m == "string") {
79
+ y.push(f(I, m));
80
+ continue;
81
+ }
82
+ const g = r.get(m);
83
+ if (h || !g) {
84
+ for (const P of h ? o : p)
85
+ if (w(m, P.value)) {
86
+ y.push(P);
87
+ continue e;
88
+ }
89
+ y.push(f(I, m));
90
+ continue;
91
+ }
92
+ y.push(...g);
93
+ }
94
+ return y;
95
+ }
96
+ function l(n) {
97
+ return t.returnObject ? n.map((r) => {
98
+ let {
99
+ raw: o
100
+ } = r;
101
+ return o;
102
+ }) : n.map((r) => {
103
+ let {
104
+ value: o
105
+ } = r;
106
+ return o;
107
+ });
108
+ }
109
+ return {
110
+ items: e,
111
+ transformIn: v,
112
+ transformOut: l
113
+ };
114
+ }
31
115
  export {
32
- o as makeItemsProps
116
+ N as makeItemsProps,
117
+ f as transformItem,
118
+ F as transformItems,
119
+ q as useItems
33
120
  };
@@ -0,0 +1,24 @@
1
+ import { useId as p, computed as a, toRef as e, toValue as c } from "vue";
2
+ import { propsFactory as s } from "../util/propsFactory.mjs";
3
+ const f = s({
4
+ closeText: {
5
+ type: String,
6
+ default: "$vuetify.close"
7
+ },
8
+ openText: {
9
+ type: String,
10
+ default: "$vuetify.open"
11
+ }
12
+ }, "autocomplete");
13
+ function l(i, o) {
14
+ const n = p(), t = a(() => `menu-${n}`), r = e(() => c(o)), u = e(() => t.value);
15
+ return {
16
+ menuId: t,
17
+ ariaExpanded: r,
18
+ ariaControls: u
19
+ };
20
+ }
21
+ export {
22
+ f as makeMenuActivatorProps,
23
+ l as useMenuActivator
24
+ };
@@ -1,5 +1,5 @@
1
1
  import { useProxiedModel as G } from "../proxiedModel.mjs";
2
- import { shallowRef as b, ref as s, computed as v, onBeforeUnmount as E, watch as x, toValue as m, toRaw as j, toRef as R, provide as U, nextTick as F, inject as I, onBeforeMount as H } from "vue";
2
+ import { shallowRef as b, ref as s, computed as v, onBeforeUnmount as E, watch as x, toValue as m, toRaw as j, toRef as R, provide as U, inject as I, onBeforeMount as H, nextTick as F } from "vue";
3
3
  import { independentSingleActiveStrategy as J, independentActiveStrategy as K, leafSingleActiveStrategy as Q, leafActiveStrategy as W } from "./activeStrategies.mjs";
4
4
  import { multipleOpenStrategy as X, singleOpenStrategy as Y, listOpenStrategy as Z } from "./openStrategies.mjs";
5
5
  import { classicSelectStrategy as ee, branchSelectStrategy as te, trunkSelectStrategy as ae, independentSingleSelectStrategy as ne, independentSelectStrategy as le, leafSelectStrategy as re, leafSingleSelectStrategy as oe } from "./selectStrategies.mjs";
@@ -0,0 +1,15 @@
1
+ import { ref as t, onBeforeUpdate as n } from "vue";
2
+ function a() {
3
+ const e = t([]);
4
+ n(() => e.value = []);
5
+ function f(o, r) {
6
+ e.value[r] = o;
7
+ }
8
+ return {
9
+ refs: e,
10
+ updateRef: f
11
+ };
12
+ }
13
+ export {
14
+ a as useRefs
15
+ };
@@ -0,0 +1,73 @@
1
+ import { CircularBuffer as b } from "../util/helpers.mjs";
2
+ const v = 100, w = 20;
3
+ function y(t) {
4
+ return (t < 0 ? -1 : 1) * Math.sqrt(Math.abs(t)) * 1.41421356237;
5
+ }
6
+ function l(t) {
7
+ if (t.length < 2)
8
+ return 0;
9
+ if (t.length === 2)
10
+ return t[1].t === t[0].t ? 0 : (t[1].d - t[0].d) / (t[1].t - t[0].t);
11
+ let c = 0;
12
+ for (let n = t.length - 1; n > 0; n--) {
13
+ if (t[n].t === t[n - 1].t)
14
+ continue;
15
+ const f = y(c), r = (t[n].d - t[n - 1].d) / (t[n].t - t[n - 1].t);
16
+ c += (r - f) * Math.abs(r), n === t.length - 1 && (c *= 0.5);
17
+ }
18
+ return y(c) * 1e3;
19
+ }
20
+ function T() {
21
+ const t = {};
22
+ function c(r) {
23
+ Array.from(r.changedTouches).forEach((o) => {
24
+ (t[o.identifier] ?? (t[o.identifier] = new b(w))).push([r.timeStamp, o]);
25
+ });
26
+ }
27
+ function n(r) {
28
+ Array.from(r.changedTouches).forEach((o) => {
29
+ delete t[o.identifier];
30
+ });
31
+ }
32
+ function f(r) {
33
+ var g;
34
+ const o = (g = t[r]) == null ? void 0 : g.values().reverse();
35
+ if (!o)
36
+ throw new Error(`No samples for touch id ${r}`);
37
+ const d = o[0], a = [], s = [];
38
+ for (const e of o) {
39
+ if (d[0] - e[0] > v)
40
+ break;
41
+ a.push({
42
+ t: e[0],
43
+ d: e[1].clientX
44
+ }), s.push({
45
+ t: e[0],
46
+ d: e[1].clientY
47
+ });
48
+ }
49
+ return {
50
+ x: l(a),
51
+ y: l(s),
52
+ get direction() {
53
+ const {
54
+ x: e,
55
+ y: h
56
+ } = this, [i, u] = [Math.abs(e), Math.abs(h)];
57
+ return i > u && e >= 0 ? "right" : i > u && e <= 0 ? "left" : u > i && h >= 0 ? "down" : u > i && h <= 0 ? "up" : M();
58
+ }
59
+ };
60
+ }
61
+ return {
62
+ addMovement: c,
63
+ endTouch: n,
64
+ getVelocity: f
65
+ };
66
+ }
67
+ function M() {
68
+ throw new Error();
69
+ }
70
+ export {
71
+ l as calculateImpulseVelocity,
72
+ T as useVelocity
73
+ };
@@ -0,0 +1,139 @@
1
+ import { makeFocusProps as $ } from "./focus.mjs";
2
+ import { useForm as k } from "./form.mjs";
3
+ import { useProxiedModel as D } from "./proxiedModel.mjs";
4
+ import { useToggleScope as x } from "./toggleScope.mjs";
5
+ import { useId as E, computed as i, ref as N, shallowRef as z, unref as O, onBeforeMount as P, onBeforeUnmount as A, onMounted as C, watch as h, nextTick as F } from "vue";
6
+ import { useRules as T } from "../labs/rules/rules.mjs";
7
+ import { propsFactory as U } from "../util/propsFactory.mjs";
8
+ import { getCurrentInstanceName as j, getCurrentInstance as q } from "../util/getCurrentInstance.mjs";
9
+ import { wrapInArray as M } from "../util/helpers.mjs";
10
+ const _ = U({
11
+ disabled: {
12
+ type: Boolean,
13
+ default: null
14
+ },
15
+ error: Boolean,
16
+ errorMessages: {
17
+ type: [Array, String],
18
+ default: () => []
19
+ },
20
+ maxErrors: {
21
+ type: [Number, String],
22
+ default: 1
23
+ },
24
+ name: String,
25
+ label: String,
26
+ readonly: {
27
+ type: Boolean,
28
+ default: null
29
+ },
30
+ rules: {
31
+ type: Array,
32
+ default: () => []
33
+ },
34
+ modelValue: null,
35
+ validateOn: String,
36
+ validationValue: null,
37
+ ...$()
38
+ }, "validation");
39
+ function ee(a) {
40
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : j(), S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : E();
41
+ const c = D(a, "modelValue"), d = i(() => a.validationValue === void 0 ? c.value : a.validationValue), l = k(a), I = T(() => a.rules), u = N([]), g = z(!0), V = i(() => !!(M(c.value === "" ? null : c.value).length || M(d.value === "" ? null : d.value).length)), m = i(() => {
42
+ var e;
43
+ return (e = a.errorMessages) != null && e.length ? M(a.errorMessages).concat(u.value).slice(0, Math.max(0, Number(a.maxErrors))) : u.value;
44
+ }), t = i(() => {
45
+ var o;
46
+ let e = (a.validateOn ?? ((o = l.validateOn) == null ? void 0 : o.value)) || "input";
47
+ e === "lazy" && (e = "input lazy"), e === "eager" && (e = "input eager");
48
+ const n = new Set((e == null ? void 0 : e.split(" ")) ?? []);
49
+ return {
50
+ input: n.has("input"),
51
+ blur: n.has("blur") || n.has("input") || n.has("invalid-input"),
52
+ invalidInput: n.has("invalid-input"),
53
+ lazy: n.has("lazy"),
54
+ eager: n.has("eager")
55
+ };
56
+ }), s = i(() => {
57
+ var e;
58
+ return a.error || (e = a.errorMessages) != null && e.length ? !1 : a.rules.length ? g.value ? u.value.length || t.value.lazy ? null : !0 : !u.value.length : !0;
59
+ }), b = z(!1), R = i(() => ({
60
+ [`${f}--error`]: s.value === !1,
61
+ [`${f}--dirty`]: V.value,
62
+ [`${f}--disabled`]: l.isDisabled.value,
63
+ [`${f}--readonly`]: l.isReadonly.value
64
+ })), B = q("validation"), y = i(() => a.name ?? O(S));
65
+ P(() => {
66
+ var e;
67
+ (e = l.register) == null || e.call(l, {
68
+ id: y.value,
69
+ vm: B,
70
+ validate: r,
71
+ reset: p,
72
+ resetValidation: w
73
+ });
74
+ }), A(() => {
75
+ var e;
76
+ (e = l.unregister) == null || e.call(l, y.value);
77
+ }), C(async () => {
78
+ var e;
79
+ t.value.lazy || await r(!t.value.eager), (e = l.update) == null || e.call(l, y.value, s.value, m.value);
80
+ }), x(() => t.value.input || t.value.invalidInput && s.value === !1, () => {
81
+ h(d, () => {
82
+ if (d.value != null)
83
+ r();
84
+ else if (a.focused) {
85
+ const e = h(() => a.focused, (n) => {
86
+ n || r(), e();
87
+ });
88
+ }
89
+ });
90
+ }), x(() => t.value.blur, () => {
91
+ h(() => a.focused, (e) => {
92
+ e || r();
93
+ });
94
+ }), h([s, m], () => {
95
+ var e;
96
+ (e = l.update) == null || e.call(l, y.value, s.value, m.value);
97
+ });
98
+ async function p() {
99
+ c.value = null, await F(), await w();
100
+ }
101
+ async function w() {
102
+ g.value = !0, t.value.lazy ? u.value = [] : await r(!t.value.eager);
103
+ }
104
+ async function r() {
105
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
106
+ const n = [];
107
+ b.value = !0;
108
+ for (const o of I.value) {
109
+ if (n.length >= Number(a.maxErrors ?? 1))
110
+ break;
111
+ const v = await (typeof o == "function" ? o : () => o)(d.value);
112
+ if (v !== !0) {
113
+ if (v !== !1 && typeof v != "string") {
114
+ console.warn(`${v} is not a valid value. Rule functions must return boolean true or a string.`);
115
+ continue;
116
+ }
117
+ n.push(v || "");
118
+ }
119
+ }
120
+ return u.value = n, b.value = !1, g.value = e, u.value;
121
+ }
122
+ return {
123
+ errorMessages: m,
124
+ isDirty: V,
125
+ isDisabled: l.isDisabled,
126
+ isReadonly: l.isReadonly,
127
+ isPristine: g,
128
+ isValid: s,
129
+ isValidating: b,
130
+ reset: p,
131
+ resetValidation: w,
132
+ validate: r,
133
+ validationClasses: R
134
+ };
135
+ }
136
+ export {
137
+ _ as makeValidationProps,
138
+ ee as useValidation
139
+ };