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,164 @@
1
+ import { useDisplay as Y } from "./display.mjs";
2
+ import { useResizeObserver as Z } from "./resizeObserver.mjs";
3
+ import { shallowRef as g, watchEffect as _, ref as q, computed as x, watch as H, onScopeDispose as $, nextTick as ee } from "vue";
4
+ import { clamp as P, getPropertyFromItem as te, debounce as le } from "../util/helpers.mjs";
5
+ import { propsFactory as ne } from "../util/propsFactory.mjs";
6
+ import { IN_BROWSER as oe } from "../util/globals.mjs";
7
+ const ae = -1, re = 1, k = 100, pe = ne({
8
+ itemHeight: {
9
+ type: [Number, String],
10
+ default: null
11
+ },
12
+ itemKey: {
13
+ type: [String, Array, Function],
14
+ default: null
15
+ },
16
+ height: [Number, String]
17
+ }, "virtual");
18
+ function ge(i, l) {
19
+ const s = Y(), o = g(0);
20
+ _(() => {
21
+ o.value = parseFloat(i.itemHeight || 0);
22
+ });
23
+ const a = g(0), r = g(Math.ceil(
24
+ // Assume 16px items filling the entire screen height if
25
+ // not provided. This is probably incorrect but it minimises
26
+ // the chance of ending up with empty space at the bottom.
27
+ // The default value is set here to avoid poisoning getSize()
28
+ (parseInt(i.height) || s.height.value) / (o.value || 16)
29
+ ) || 1), d = g(0), z = g(0), c = q(), p = q();
30
+ let b = 0;
31
+ const {
32
+ resizeRef: B,
33
+ contentRect: K
34
+ } = Z();
35
+ _(() => {
36
+ B.value = c.value;
37
+ });
38
+ const y = x(() => {
39
+ var e;
40
+ return c.value === document.documentElement ? s.height.value : ((e = K.value) == null ? void 0 : e.height) || parseInt(i.height) || 0;
41
+ }), U = x(() => !!(c.value && p.value && y.value && o.value));
42
+ let I = Array.from({
43
+ length: l.value.length
44
+ }), v = Array.from({
45
+ length: l.value.length
46
+ });
47
+ const F = g(0);
48
+ let O = -1;
49
+ function W(e) {
50
+ return I[e] || o.value;
51
+ }
52
+ const R = le(() => {
53
+ const e = performance.now();
54
+ v[0] = 0;
55
+ const t = l.value.length;
56
+ for (let n = 1; n <= t; n++)
57
+ v[n] = (v[n - 1] || 0) + W(n - 1);
58
+ F.value = Math.max(F.value, performance.now() - e);
59
+ }, F), C = H(U, (e) => {
60
+ e && (C(), b = p.value.offsetTop, R.immediate(), m(), ~O && ee(() => {
61
+ oe && window.requestAnimationFrame(() => {
62
+ N(O), O = -1;
63
+ });
64
+ }));
65
+ });
66
+ $(() => {
67
+ R.clear();
68
+ });
69
+ function X(e, t) {
70
+ const n = I[e], u = o.value;
71
+ o.value = u ? Math.min(o.value, t) : t, (n !== t || u !== o.value) && (I[e] = t, R());
72
+ }
73
+ function f(e) {
74
+ e = P(e, 0, l.value.length);
75
+ const t = Math.floor(e), n = e % 1, u = t + 1, T = v[t] || 0, h = v[u] || T;
76
+ return T + (h - T) * n;
77
+ }
78
+ function D(e) {
79
+ return ue(v, e);
80
+ }
81
+ let S = 0, w = 0, A = 0;
82
+ H(y, (e, t) => {
83
+ m(), e < t && requestAnimationFrame(() => {
84
+ w = 0, m();
85
+ });
86
+ });
87
+ let M = -1;
88
+ function j() {
89
+ if (!c.value || !p.value)
90
+ return;
91
+ const e = c.value.scrollTop, t = performance.now();
92
+ t - A > 500 ? (w = Math.sign(e - S), b = p.value.offsetTop) : w = e - S, S = e, A = t, window.clearTimeout(M), M = window.setTimeout(V, 500), m();
93
+ }
94
+ function V() {
95
+ !c.value || !p.value || (w = 0, A = 0, window.clearTimeout(M), m());
96
+ }
97
+ let E = -1;
98
+ function m() {
99
+ cancelAnimationFrame(E), E = requestAnimationFrame(G);
100
+ }
101
+ function G() {
102
+ if (!c.value || !y.value || !o.value)
103
+ return;
104
+ const e = S - b, t = Math.sign(w), n = Math.max(0, e - k), u = P(D(n), 0, l.value.length), T = e + y.value + k, h = P(D(T) + 1, u + 1, l.value.length);
105
+ if (
106
+ // Only update the side we're scrolling towards,
107
+ // the other side will be updated incidentally
108
+ (t !== ae || u < a.value) && (t !== re || h > r.value)
109
+ ) {
110
+ const L = f(a.value) - f(u), Q = f(h) - f(r.value);
111
+ Math.max(L, Q) > k ? (a.value = u, r.value = h) : (u <= 0 && (a.value = u), h >= l.value.length && (r.value = h));
112
+ }
113
+ d.value = f(a.value), z.value = f(l.value.length) - f(r.value);
114
+ }
115
+ function N(e) {
116
+ const t = f(e);
117
+ !c.value || e && !t ? O = e : c.value.scrollTop = t;
118
+ }
119
+ const J = x(() => l.value.slice(a.value, r.value).map((e, t) => {
120
+ const n = t + a.value;
121
+ return {
122
+ raw: e,
123
+ index: n,
124
+ key: te(e, i.itemKey, n)
125
+ };
126
+ }));
127
+ return H(l, () => {
128
+ I = Array.from({
129
+ length: l.value.length
130
+ }), v = Array.from({
131
+ length: l.value.length
132
+ }), R.immediate(), m();
133
+ }, {
134
+ deep: 1
135
+ }), {
136
+ calculateVisibleItems: m,
137
+ containerRef: c,
138
+ markerRef: p,
139
+ computedItems: J,
140
+ paddingTop: d,
141
+ paddingBottom: z,
142
+ scrollToIndex: N,
143
+ handleScroll: j,
144
+ handleScrollend: V,
145
+ handleItemResize: X
146
+ };
147
+ }
148
+ function ue(i, l) {
149
+ let s = i.length - 1, o = 0, a = 0, r = null, d = -1;
150
+ if (i[s] < l)
151
+ return s;
152
+ for (; o <= s; )
153
+ if (a = o + s >> 1, r = i[a], r > l)
154
+ s = a - 1;
155
+ else if (r < l)
156
+ d = a, o = a + 1;
157
+ else
158
+ return r === l ? a : o;
159
+ return d;
160
+ }
161
+ export {
162
+ pe as makeVirtualProps,
163
+ ge as useVirtual
164
+ };
@@ -0,0 +1,89 @@
1
+ import { keys as i } from "../../util/helpers.mjs";
2
+ const f = (t) => {
3
+ const {
4
+ touchstartX: o,
5
+ touchendX: n,
6
+ touchstartY: c,
7
+ touchendY: u
8
+ } = t, e = 0.5, s = 16;
9
+ t.offsetX = n - o, t.offsetY = u - c, Math.abs(t.offsetY) < e * Math.abs(t.offsetX) && (t.left && n < o - s && t.left(t), t.right && n > o + s && t.right(t)), Math.abs(t.offsetX) < e * Math.abs(t.offsetY) && (t.up && u < c - s && t.up(t), t.down && u > c + s && t.down(t));
10
+ };
11
+ function l(t, o) {
12
+ var c;
13
+ const n = t.changedTouches[0];
14
+ o.touchstartX = n.clientX, o.touchstartY = n.clientY, (c = o.start) == null || c.call(o, {
15
+ originalEvent: t,
16
+ ...o
17
+ });
18
+ }
19
+ function m(t, o) {
20
+ var c;
21
+ const n = t.changedTouches[0];
22
+ o.touchendX = n.clientX, o.touchendY = n.clientY, (c = o.end) == null || c.call(o, {
23
+ originalEvent: t,
24
+ ...o
25
+ }), f(o);
26
+ }
27
+ function X(t, o) {
28
+ var c;
29
+ const n = t.changedTouches[0];
30
+ o.touchmoveX = n.clientX, o.touchmoveY = n.clientY, (c = o.move) == null || c.call(o, {
31
+ originalEvent: t,
32
+ ...o
33
+ });
34
+ }
35
+ function Y() {
36
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
37
+ const o = {
38
+ touchstartX: 0,
39
+ touchstartY: 0,
40
+ touchendX: 0,
41
+ touchendY: 0,
42
+ touchmoveX: 0,
43
+ touchmoveY: 0,
44
+ offsetX: 0,
45
+ offsetY: 0,
46
+ left: t.left,
47
+ right: t.right,
48
+ up: t.up,
49
+ down: t.down,
50
+ start: t.start,
51
+ move: t.move,
52
+ end: t.end
53
+ };
54
+ return {
55
+ touchstart: (n) => l(n, o),
56
+ touchend: (n) => m(n, o),
57
+ touchmove: (n) => X(n, o)
58
+ };
59
+ }
60
+ function a(t, o) {
61
+ var h;
62
+ const n = o.value, c = n != null && n.parent ? t.parentElement : t, u = (n == null ? void 0 : n.options) ?? {
63
+ passive: !0
64
+ }, e = (h = o.instance) == null ? void 0 : h.$.uid;
65
+ if (!c || e === void 0)
66
+ return;
67
+ const s = Y(o.value);
68
+ c._touchHandlers = c._touchHandlers ?? /* @__PURE__ */ Object.create(null), c._touchHandlers[e] = s, i(s).forEach((d) => {
69
+ c.addEventListener(d, s[d], u);
70
+ });
71
+ }
72
+ function v(t, o) {
73
+ var e, s;
74
+ const n = (e = o.value) != null && e.parent ? t.parentElement : t, c = (s = o.instance) == null ? void 0 : s.$.uid;
75
+ if (!(n != null && n._touchHandlers) || c === void 0)
76
+ return;
77
+ const u = n._touchHandlers[c];
78
+ i(u).forEach((h) => {
79
+ n.removeEventListener(h, u[h]);
80
+ }), delete n._touchHandlers[c];
81
+ }
82
+ const g = {
83
+ mounted: a,
84
+ unmounted: v
85
+ }, H = g;
86
+ export {
87
+ g as Touch,
88
+ H as default
89
+ };
@@ -0,0 +1,77 @@
1
+ import { createVNode as i, mergeProps as k, createElementVNode as t, normalizeClass as v, normalizeStyle as u } from "vue";
2
+ import "../../../../../../../_virtual/VPicker.sass.mjs";
3
+ import { VPickerTitle as f } from "./VPickerTitle.mjs";
4
+ import { VDefaultsProvider as p } from "../../components/VDefaultsProvider/VDefaultsProvider.mjs";
5
+ import { makeVSheetProps as h, VSheet as l } from "../../components/VSheet/VSheet.mjs";
6
+ import { useBackgroundColor as P } from "../../composables/color.mjs";
7
+ import { propsFactory as V } from "../../util/propsFactory.mjs";
8
+ import { genericComponent as g } from "../../util/defineComponent.mjs";
9
+ import { useRender as y } from "../../util/useRender.mjs";
10
+ const C = V({
11
+ bgColor: String,
12
+ divided: Boolean,
13
+ landscape: Boolean,
14
+ title: String,
15
+ hideHeader: Boolean,
16
+ hideTitle: Boolean,
17
+ ...h()
18
+ }, "VPicker"), N = g()({
19
+ name: "VPicker",
20
+ props: C(),
21
+ setup(r, c) {
22
+ let {
23
+ slots: e
24
+ } = c;
25
+ const {
26
+ backgroundColorClasses: d,
27
+ backgroundColorStyles: n
28
+ } = P(() => r.color);
29
+ return y(() => {
30
+ const s = l.filterProps(r), m = !r.hideTitle && !!(r.title || e.title);
31
+ return i(l, k(s, {
32
+ color: r.bgColor,
33
+ class: ["v-picker", {
34
+ "v-picker--divided": r.divided,
35
+ "v-picker--landscape": r.landscape,
36
+ "v-picker--with-actions": !!e.actions
37
+ }, r.class],
38
+ style: r.style
39
+ }), {
40
+ default: () => {
41
+ var o;
42
+ return [!r.hideHeader && t("div", {
43
+ key: "header",
44
+ class: v(["v-picker__header-wrapper", d.value]),
45
+ style: u([n.value])
46
+ }, [m && i(f, {
47
+ key: "picker-title"
48
+ }, {
49
+ default: () => {
50
+ var a;
51
+ return [((a = e.title) == null ? void 0 : a.call(e)) ?? r.title];
52
+ }
53
+ }), e.header && t("div", {
54
+ class: "v-picker__header"
55
+ }, [e.header()])]), t("div", {
56
+ class: "v-picker__body"
57
+ }, [(o = e.default) == null ? void 0 : o.call(e)]), e.actions && i(p, {
58
+ defaults: {
59
+ VBtn: {
60
+ slim: !0,
61
+ variant: "text"
62
+ }
63
+ }
64
+ }, {
65
+ default: () => [t("div", {
66
+ class: "v-picker__actions"
67
+ }, [e.actions()])]
68
+ })];
69
+ }
70
+ });
71
+ }), {};
72
+ }
73
+ });
74
+ export {
75
+ N as VPicker,
76
+ C as makeVPickerProps
77
+ };
@@ -0,0 +1,5 @@
1
+ import { createSimpleFunctional as e } from "../../util/createSimpleFunctional.mjs";
2
+ const i = e("v-picker-title");
3
+ export {
4
+ i as VPickerTitle
5
+ };
@@ -0,0 +1,15 @@
1
+ import { inject as r, toRef as t } from "vue";
2
+ const i = Symbol.for("vuetify:rules");
3
+ function u(o) {
4
+ const e = r(i, null);
5
+ if (!o) {
6
+ if (!e)
7
+ throw new Error("Could not find Vuetify rules injection");
8
+ return e.aliases;
9
+ }
10
+ return (e == null ? void 0 : e.resolve(o)) ?? t(o);
11
+ }
12
+ export {
13
+ i as RulesSymbol,
14
+ u as useRules
15
+ };
@@ -0,0 +1,16 @@
1
+ const f = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]], i = (t) => t <= 0.04045 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
2
+ function x(t) {
3
+ let {
4
+ r: o,
5
+ g: s,
6
+ b: e
7
+ } = t;
8
+ const a = [0, 0, 0], n = i, c = f;
9
+ o = n(o / 255), s = n(s / 255), e = n(e / 255);
10
+ for (let r = 0; r < 3; ++r)
11
+ a[r] = c[r][0] * o + c[r][1] * s + c[r][2] * e;
12
+ return a;
13
+ }
14
+ export {
15
+ x as toXYZ
16
+ };
@@ -1,13 +1,14 @@
1
1
  import { APCAcontrast as g } from "./color/APCA.mjs";
2
- import { consoleWarn as h } from "./console.mjs";
3
- import { has as l, chunk as c, padEnd as m } from "./helpers.mjs";
4
- function v(t) {
2
+ import { consoleWarn as l } from "./console.mjs";
3
+ import { has as p, chunk as S, padEnd as m } from "./helpers.mjs";
4
+ import { toXYZ as M } from "./color/transformSRGB.mjs";
5
+ function C(t) {
5
6
  return !!t && /^(#|var\(--|(rgb|hsl)a?\()/.test(t);
6
7
  }
7
8
  function w(t) {
8
- return v(t) && !/^((rgb|hsl)a?\()?var\(--/.test(t);
9
+ return C(t) && !/^((rgb|hsl)a?\()?var\(--/.test(t);
9
10
  }
10
- const b = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, C = {
11
+ const b = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, $ = {
11
12
  rgb: (t, n, e, s) => ({
12
13
  r: t,
13
14
  g: n,
@@ -20,34 +21,34 @@ const b = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, C = {
20
21
  b: e,
21
22
  a: s
22
23
  }),
23
- hsl: (t, n, e, s) => o({
24
+ hsl: (t, n, e, s) => F({
24
25
  h: t,
25
26
  s: n,
26
27
  l: e,
27
28
  a: s
28
29
  }),
29
- hsla: (t, n, e, s) => o({
30
+ hsla: (t, n, e, s) => F({
30
31
  h: t,
31
32
  s: n,
32
33
  l: e,
33
34
  a: s
34
35
  }),
35
- hsv: (t, n, e, s) => f({
36
+ hsv: (t, n, e, s) => u({
36
37
  h: t,
37
38
  s: n,
38
39
  v: e,
39
40
  a: s
40
41
  }),
41
- hsva: (t, n, e, s) => f({
42
+ hsva: (t, n, e, s) => u({
42
43
  h: t,
43
44
  s: n,
44
45
  v: e,
45
46
  a: s
46
47
  })
47
48
  };
48
- function u(t) {
49
+ function h(t) {
49
50
  if (typeof t == "number")
50
- return (isNaN(t) || t < 0 || t > 16777215) && h(`'${t}' is not a valid hex color`), {
51
+ return (isNaN(t) || t < 0 || t > 16777215) && l(`'${t}' is not a valid hex color`), {
51
52
  r: (t & 16711680) >> 16,
52
53
  g: (t & 65280) >> 8,
53
54
  b: t & 255
@@ -58,62 +59,120 @@ function u(t) {
58
59
  } = t.match(b), {
59
60
  fn: e,
60
61
  values: s
61
- } = n, r = s.split(/,\s*|\s*\/\s*|\s+/).map((a, i) => a.endsWith("%") || // unitless slv are %
62
- i > 0 && i < 3 && ["hsl", "hsla", "hsv", "hsva"].includes(e) ? parseFloat(a) / 100 : parseFloat(a));
63
- return C[e](...r);
62
+ } = n, r = s.split(/,\s*|\s*\/\s*|\s+/).map((i, a) => i.endsWith("%") || // unitless slv are %
63
+ a > 0 && a < 3 && ["hsl", "hsla", "hsv", "hsva"].includes(e) ? parseFloat(i) / 100 : parseFloat(i));
64
+ return $[e](...r);
64
65
  } else if (typeof t == "string") {
65
66
  let n = t.startsWith("#") ? t.slice(1) : t;
66
- [3, 4].includes(n.length) ? n = n.split("").map((s) => s + s).join("") : [6, 8].includes(n.length) || h(`'${t}' is not a valid hex(a) color`);
67
+ [3, 4].includes(n.length) ? n = n.split("").map((s) => s + s).join("") : [6, 8].includes(n.length) || l(`'${t}' is not a valid hex(a) color`);
67
68
  const e = parseInt(n, 16);
68
- return (isNaN(e) || e < 0 || e > 4294967295) && h(`'${t}' is not a valid hex(a) color`), M(n);
69
+ return (isNaN(e) || e < 0 || e > 4294967295) && l(`'${t}' is not a valid hex(a) color`), H(n);
69
70
  } else if (typeof t == "object") {
70
- if (l(t, ["r", "g", "b"]))
71
+ if (p(t, ["r", "g", "b"]))
71
72
  return t;
72
- if (l(t, ["h", "s", "l"]))
73
- return f(d(t));
74
- if (l(t, ["h", "s", "v"]))
75
- return f(t);
73
+ if (p(t, ["h", "s", "l"]))
74
+ return u(v(t));
75
+ if (p(t, ["h", "s", "v"]))
76
+ return u(t);
76
77
  }
77
78
  throw new TypeError(`Invalid color: ${t == null ? t : String(t) || t.constructor.name}
78
79
  Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
79
80
  }
80
- function f(t) {
81
+ function u(t) {
81
82
  const {
82
83
  h: n,
83
84
  s: e,
84
85
  v: s,
85
86
  a: r
86
- } = t, a = (p) => {
87
- const F = (p + n / 60) % 6;
88
- return s - s * e * Math.max(Math.min(F, 4 - F, 1), 0);
89
- }, i = [a(5), a(3), a(1)].map((p) => Math.round(p * 255));
87
+ } = t, i = (o) => {
88
+ const f = (o + n / 60) % 6;
89
+ return s - s * e * Math.max(Math.min(f, 4 - f, 1), 0);
90
+ }, a = [i(5), i(3), i(1)].map((o) => Math.round(o * 255));
90
91
  return {
91
- r: i[0],
92
- g: i[1],
93
- b: i[2],
92
+ r: a[0],
93
+ g: a[1],
94
+ b: a[2],
94
95
  a: r
95
96
  };
96
97
  }
97
- function o(t) {
98
- return f(d(t));
98
+ function F(t) {
99
+ return u(v(t));
99
100
  }
100
- function d(t) {
101
+ function x(t) {
102
+ if (!t)
103
+ return {
104
+ h: 0,
105
+ s: 1,
106
+ v: 1,
107
+ a: 1
108
+ };
109
+ const n = t.r / 255, e = t.g / 255, s = t.b / 255, r = Math.max(n, e, s), i = Math.min(n, e, s);
110
+ let a = 0;
111
+ r !== i && (r === n ? a = 60 * (0 + (e - s) / (r - i)) : r === e ? a = 60 * (2 + (s - n) / (r - i)) : r === s && (a = 60 * (4 + (n - e) / (r - i)))), a < 0 && (a = a + 360);
112
+ const o = r === 0 ? 0 : (r - i) / r, f = [a, o, r];
113
+ return {
114
+ h: f[0],
115
+ s: f[1],
116
+ v: f[2],
117
+ a: t.a
118
+ };
119
+ }
120
+ function L(t) {
121
+ const {
122
+ h: n,
123
+ s: e,
124
+ v: s,
125
+ a: r
126
+ } = t, i = s - s * e / 2, a = i === 1 || i === 0 ? 0 : (s - i) / Math.min(i, 1 - i);
127
+ return {
128
+ h: n,
129
+ s: a,
130
+ l: i,
131
+ a: r
132
+ };
133
+ }
134
+ function v(t) {
101
135
  const {
102
136
  h: n,
103
137
  s: e,
104
138
  l: s,
105
139
  a: r
106
- } = t, a = s + e * Math.min(s, 1 - s), i = a === 0 ? 0 : 2 - 2 * s / a;
140
+ } = t, i = s + e * Math.min(s, 1 - s), a = i === 0 ? 0 : 2 - 2 * s / i;
107
141
  return {
108
142
  h: n,
109
- s: i,
110
- v: a,
143
+ s: a,
144
+ v: i,
111
145
  a: r
112
146
  };
113
147
  }
114
- function M(t) {
115
- t = H(t);
116
- let [n, e, s, r] = c(t, 2).map((a) => parseInt(a, 16));
148
+ function V(t) {
149
+ let {
150
+ r: n,
151
+ g: e,
152
+ b: s,
153
+ a: r
154
+ } = t;
155
+ return r === void 0 ? `rgb(${n}, ${e}, ${s})` : `rgba(${n}, ${e}, ${s}, ${r})`;
156
+ }
157
+ function N(t) {
158
+ return V(u(t));
159
+ }
160
+ function c(t) {
161
+ const n = Math.round(t).toString(16);
162
+ return ("00".substr(0, 2 - n.length) + n).toUpperCase();
163
+ }
164
+ function R(t) {
165
+ let {
166
+ r: n,
167
+ g: e,
168
+ b: s,
169
+ a: r
170
+ } = t;
171
+ return `#${[c(n), c(e), c(s), r !== void 0 ? c(Math.round(r * 255)) : ""].join("")}`;
172
+ }
173
+ function H(t) {
174
+ t = B(t);
175
+ let [n, e, s, r] = S(t, 2).map((i) => parseInt(i, 16));
117
176
  return r = r === void 0 ? r : r / 255, {
118
177
  r: n,
119
178
  g: e,
@@ -121,21 +180,45 @@ function M(t) {
121
180
  a: r
122
181
  };
123
182
  }
124
- function H(t) {
183
+ function W(t) {
184
+ const n = H(t);
185
+ return x(n);
186
+ }
187
+ function E(t) {
188
+ return R(u(t));
189
+ }
190
+ function B(t) {
125
191
  return t.startsWith("#") && (t = t.slice(1)), t = t.replace(/([^0-9a-f])/gi, "F"), (t.length === 3 || t.length === 4) && (t = t.split("").map((n) => n + n).join("")), t.length !== 6 && (t = m(m(t, 6), 8, "F")), t;
126
192
  }
127
- function N(t) {
128
- const n = Math.abs(g(u(0), u(t)));
129
- return Math.abs(g(u(16777215), u(t))) > Math.min(n, 50) ? "#fff" : "#000";
193
+ function d(t) {
194
+ const n = h(t);
195
+ return M(n)[1];
196
+ }
197
+ function I(t, n) {
198
+ const e = d(t), s = d(n), r = Math.max(e, s), i = Math.min(e, s);
199
+ return (r + 0.05) / (i + 0.05);
200
+ }
201
+ function T(t) {
202
+ const n = Math.abs(g(h(0), h(t)));
203
+ return Math.abs(g(h(16777215), h(t))) > Math.min(n, 50) ? "#fff" : "#000";
130
204
  }
131
205
  export {
132
- d as HSLtoHSV,
133
- o as HSLtoRGB,
134
- f as HSVtoRGB,
135
- M as HexToRGB,
136
- N as getForeground,
137
- v as isCssColor,
206
+ v as HSLtoHSV,
207
+ F as HSLtoRGB,
208
+ N as HSVtoCSS,
209
+ L as HSVtoHSL,
210
+ E as HSVtoHex,
211
+ u as HSVtoRGB,
212
+ W as HexToHSV,
213
+ H as HexToRGB,
214
+ V as RGBtoCSS,
215
+ x as RGBtoHSV,
216
+ R as RGBtoHex,
217
+ I as getContrast,
218
+ T as getForeground,
219
+ d as getLuma,
220
+ C as isCssColor,
138
221
  w as isParsableColor,
139
- u as parseColor,
140
- H as parseHex
222
+ h as parseColor,
223
+ B as parseHex
141
224
  };
@@ -1,7 +1,23 @@
1
1
  import "vue";
2
- const c = "cubic-bezier(0.4, 0, 0.2, 1)", i = "cubic-bezier(0.0, 0, 0.2, 1)", a = "cubic-bezier(0.4, 0, 1, 1)";
2
+ const n = "cubic-bezier(0.4, 0, 0.2, 1)", s = "cubic-bezier(0.0, 0, 0.2, 1)", u = "cubic-bezier(0.4, 0, 1, 1)", i = {
3
+ linear: (e) => e,
4
+ easeInQuad: (e) => e ** 2,
5
+ easeOutQuad: (e) => e * (2 - e),
6
+ easeInOutQuad: (e) => e < 0.5 ? 2 * e ** 2 : -1 + (4 - 2 * e) * e,
7
+ easeInCubic: (e) => e ** 3,
8
+ easeOutCubic: (e) => --e ** 3 + 1,
9
+ easeInOutCubic: (e) => e < 0.5 ? 4 * e ** 3 : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1,
10
+ easeInQuart: (e) => e ** 4,
11
+ easeOutQuart: (e) => 1 - --e ** 4,
12
+ easeInOutQuart: (e) => e < 0.5 ? 8 * e ** 4 : 1 - 8 * --e ** 4,
13
+ easeInQuint: (e) => e ** 5,
14
+ easeOutQuint: (e) => 1 + --e ** 5,
15
+ easeInOutQuint: (e) => e < 0.5 ? 16 * e ** 5 : 1 + 16 * --e ** 5,
16
+ instant: (e) => 1
17
+ };
3
18
  export {
4
- a as acceleratedEasing,
5
- i as deceleratedEasing,
6
- c as standardEasing
19
+ u as acceleratedEasing,
20
+ s as deceleratedEasing,
21
+ i as easingPatterns,
22
+ n as standardEasing
7
23
  };
@@ -1,7 +1,8 @@
1
- const e = typeof window < "u", o = e && "IntersectionObserver" in window, n = e && "matchMedia" in window && typeof window.matchMedia == "function", t = () => n && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1
+ const e = typeof window < "u", o = e && "IntersectionObserver" in window, i = e && "EyeDropper" in window, n = e && "matchMedia" in window && typeof window.matchMedia == "function", t = () => n && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2
2
  export {
3
3
  e as IN_BROWSER,
4
4
  t as PREFERS_REDUCED_MOTION,
5
+ i as SUPPORTS_EYE_DROPPER,
5
6
  o as SUPPORTS_INTERSECTION,
6
7
  n as SUPPORTS_MATCH_MEDIA
7
8
  };