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,183 @@
1
+ import { useId as T, shallowRef as w, ref as U, toRef as R, createElementVNode as d, mergeProps as _, normalizeClass as B, normalizeStyle as j, withDirectives as E, Fragment as $, createVNode as N, inject as q, computed as v, nextTick as H } from "vue";
2
+ import "../../../../../../../_virtual/VSelectionControl.sass.mjs";
3
+ import { makeSelectionControlGroupProps as J, VSelectionControlGroupSymbol as K } from "../VSelectionControlGroup/VSelectionControlGroup.mjs";
4
+ import { useTextColor as O, useBackgroundColor as Q } from "../../composables/color.mjs";
5
+ import { makeComponentProps as W } from "../../composables/component.mjs";
6
+ import { useDensity as X } from "../../composables/density.mjs";
7
+ import { useProxiedModel as Y } from "../../composables/proxiedModel.mjs";
8
+ import z from "../../directives/ripple/index.mjs";
9
+ import { filterInputAttrs as Z, wrapInArray as g, matchesSelector as p } from "../../util/helpers.mjs";
10
+ import { VIcon as ee } from "../VIcon/VIcon.mjs";
11
+ import { VLabel as le } from "../VLabel/VLabel.mjs";
12
+ import { propsFactory as te } from "../../util/propsFactory.mjs";
13
+ import { genericComponent as oe } from "../../util/defineComponent.mjs";
14
+ import { useRender as ae } from "../../util/useRender.mjs";
15
+ const ne = te({
16
+ label: String,
17
+ baseColor: String,
18
+ trueValue: null,
19
+ falseValue: null,
20
+ value: null,
21
+ ...W(),
22
+ ...J()
23
+ }, "VSelectionControl");
24
+ function ue(e) {
25
+ const r = q(K, void 0), {
26
+ densityClasses: k
27
+ } = X(e), l = Y(e, "modelValue"), o = v(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), f = v(() => e.falseValue !== void 0 ? e.falseValue : !1), s = v(() => !!e.multiple || e.multiple == null && Array.isArray(l.value)), t = v({
28
+ get() {
29
+ const i = r ? r.modelValue.value : l.value;
30
+ return s.value ? g(i).some((a) => e.valueComparator(a, o.value)) : e.valueComparator(i, o.value);
31
+ },
32
+ set(i) {
33
+ if (e.readonly)
34
+ return;
35
+ const a = i ? o.value : f.value;
36
+ let c = a;
37
+ s.value && (c = i ? [...g(l.value), a] : g(l.value).filter((n) => !e.valueComparator(n, o.value))), r ? r.modelValue.value = c : l.value = c;
38
+ }
39
+ }), {
40
+ textColorClasses: m,
41
+ textColorStyles: C
42
+ } = O(() => {
43
+ if (!(e.error || e.disabled))
44
+ return t.value ? e.color : e.baseColor;
45
+ }), {
46
+ backgroundColorClasses: b,
47
+ backgroundColorStyles: V
48
+ } = Q(() => t.value && !e.error && !e.disabled ? e.color : e.baseColor), S = v(() => t.value ? e.trueIcon : e.falseIcon);
49
+ return {
50
+ group: r,
51
+ densityClasses: k,
52
+ trueValue: o,
53
+ falseValue: f,
54
+ model: t,
55
+ textColorClasses: m,
56
+ textColorStyles: C,
57
+ backgroundColorClasses: b,
58
+ backgroundColorStyles: V,
59
+ icon: S
60
+ };
61
+ }
62
+ const ge = oe()({
63
+ name: "VSelectionControl",
64
+ directives: {
65
+ vRipple: z
66
+ },
67
+ inheritAttrs: !1,
68
+ props: ne(),
69
+ emits: {
70
+ "update:modelValue": (e) => !0
71
+ },
72
+ setup(e, r) {
73
+ let {
74
+ attrs: k,
75
+ slots: l
76
+ } = r;
77
+ const {
78
+ group: o,
79
+ densityClasses: f,
80
+ icon: s,
81
+ model: t,
82
+ textColorClasses: m,
83
+ textColorStyles: C,
84
+ backgroundColorClasses: b,
85
+ backgroundColorStyles: V,
86
+ trueValue: S
87
+ } = ue(e), i = T(), a = w(!1), c = w(!1), n = U(), y = R(() => e.id || `input-${i}`), h = R(() => !e.disabled && !e.readonly);
88
+ o == null || o.onForceUpdate(() => {
89
+ n.value && (n.value.checked = t.value);
90
+ });
91
+ function x(u) {
92
+ h.value && (a.value = !0, p(u.target, ":focus-visible") !== !1 && (c.value = !0));
93
+ }
94
+ function I() {
95
+ a.value = !1, c.value = !1;
96
+ }
97
+ function D(u) {
98
+ u.stopPropagation();
99
+ }
100
+ function G(u) {
101
+ if (!h.value) {
102
+ n.value && (n.value.checked = t.value);
103
+ return;
104
+ }
105
+ e.readonly && o && H(() => o.forceUpdate()), t.value = u.target.checked;
106
+ }
107
+ return ae(() => {
108
+ var F, P;
109
+ const u = l.label ? l.label({
110
+ label: e.label,
111
+ props: {
112
+ for: y.value
113
+ }
114
+ }) : e.label, [L, M] = Z(k), A = d("input", _({
115
+ ref: n,
116
+ checked: t.value,
117
+ disabled: !!e.disabled,
118
+ id: y.value,
119
+ onBlur: I,
120
+ onFocus: x,
121
+ onInput: G,
122
+ "aria-disabled": !!e.disabled,
123
+ "aria-label": e.label,
124
+ type: e.type,
125
+ value: S.value,
126
+ name: e.name,
127
+ "aria-checked": e.type === "checkbox" ? t.value : void 0
128
+ }, M), null);
129
+ return d("div", _({
130
+ class: ["v-selection-control", {
131
+ "v-selection-control--dirty": t.value,
132
+ "v-selection-control--disabled": e.disabled,
133
+ "v-selection-control--error": e.error,
134
+ "v-selection-control--focused": a.value,
135
+ "v-selection-control--focus-visible": c.value,
136
+ "v-selection-control--inline": e.inline
137
+ }, f.value, e.class]
138
+ }, L, {
139
+ style: e.style
140
+ }), [d("div", {
141
+ class: B(["v-selection-control__wrapper", m.value]),
142
+ style: j(C.value)
143
+ }, [(F = l.default) == null ? void 0 : F.call(l, {
144
+ backgroundColorClasses: b,
145
+ backgroundColorStyles: V
146
+ }), E(d("div", {
147
+ class: B(["v-selection-control__input"])
148
+ }, [((P = l.input) == null ? void 0 : P.call(l, {
149
+ model: t,
150
+ textColorClasses: m,
151
+ textColorStyles: C,
152
+ backgroundColorClasses: b,
153
+ backgroundColorStyles: V,
154
+ inputNode: A,
155
+ icon: s.value,
156
+ props: {
157
+ onFocus: x,
158
+ onBlur: I,
159
+ id: y.value
160
+ }
161
+ })) ?? d($, null, [s.value && N(ee, {
162
+ key: "icon",
163
+ icon: s.value
164
+ }, null), A])]), [[z, !e.disabled && !e.readonly && e.ripple, null, {
165
+ center: !0,
166
+ circle: !0
167
+ }]])]), u && N(le, {
168
+ for: y.value,
169
+ onClick: D
170
+ }, {
171
+ default: () => [u]
172
+ })]);
173
+ }), {
174
+ isFocused: a,
175
+ input: n
176
+ };
177
+ }
178
+ });
179
+ export {
180
+ ge as VSelectionControl,
181
+ ne as makeVSelectionControlProps,
182
+ ue as useSelectionControl
183
+ };
@@ -0,0 +1,106 @@
1
+ import { useId as f, toRef as o, provide as p, onScopeDispose as s, createElementVNode as y, normalizeClass as S, normalizeStyle as g } from "vue";
2
+ import "../../../../../../../_virtual/VSelectionControlGroup.sass.mjs";
3
+ import { makeComponentProps as v } from "../../composables/component.mjs";
4
+ import { provideDefaults as C } from "../../composables/defaults.mjs";
5
+ import { makeDensityProps as V } from "../../composables/density.mjs";
6
+ import { IconValue as a } from "../../composables/icons.mjs";
7
+ import { useProxiedModel as I } from "../../composables/proxiedModel.mjs";
8
+ import { makeThemeProps as B } from "../../composables/theme.mjs";
9
+ import { propsFactory as i } from "../../util/propsFactory.mjs";
10
+ import { deepEqual as G } from "../../util/deepEqual.mjs";
11
+ import { genericComponent as P } from "../../util/defineComponent.mjs";
12
+ import { useRender as b } from "../../util/useRender.mjs";
13
+ const k = Symbol.for("vuetify:selection-control-group"), T = i({
14
+ color: String,
15
+ disabled: {
16
+ type: Boolean,
17
+ default: null
18
+ },
19
+ defaultsTarget: String,
20
+ error: Boolean,
21
+ id: String,
22
+ inline: Boolean,
23
+ falseIcon: a,
24
+ trueIcon: a,
25
+ ripple: {
26
+ type: [Boolean, Object],
27
+ default: !0
28
+ },
29
+ multiple: {
30
+ type: Boolean,
31
+ default: null
32
+ },
33
+ name: String,
34
+ readonly: {
35
+ type: Boolean,
36
+ default: null
37
+ },
38
+ modelValue: null,
39
+ type: String,
40
+ valueComparator: {
41
+ type: Function,
42
+ default: G
43
+ },
44
+ ...v(),
45
+ ...V(),
46
+ ...B()
47
+ }, "SelectionControlGroup"), D = i({
48
+ ...T({
49
+ defaultsTarget: "VSelectionControl"
50
+ })
51
+ }, "VSelectionControlGroup");
52
+ P()({
53
+ name: "VSelectionControlGroup",
54
+ props: D(),
55
+ emits: {
56
+ "update:modelValue": (e) => !0
57
+ },
58
+ setup(e, u) {
59
+ let {
60
+ slots: t
61
+ } = u;
62
+ const r = I(e, "modelValue"), m = f(), d = o(() => e.id || `v-selection-control-group-${m}`), c = o(() => e.name || d.value), n = /* @__PURE__ */ new Set();
63
+ return p(k, {
64
+ modelValue: r,
65
+ forceUpdate: () => {
66
+ n.forEach((l) => l());
67
+ },
68
+ onForceUpdate: (l) => {
69
+ n.add(l), s(() => {
70
+ n.delete(l);
71
+ });
72
+ }
73
+ }), C({
74
+ [e.defaultsTarget]: {
75
+ color: o(() => e.color),
76
+ disabled: o(() => e.disabled),
77
+ density: o(() => e.density),
78
+ error: o(() => e.error),
79
+ inline: o(() => e.inline),
80
+ modelValue: r,
81
+ multiple: o(() => !!e.multiple || e.multiple == null && Array.isArray(r.value)),
82
+ name: c,
83
+ falseIcon: o(() => e.falseIcon),
84
+ trueIcon: o(() => e.trueIcon),
85
+ readonly: o(() => e.readonly),
86
+ ripple: o(() => e.ripple),
87
+ type: o(() => e.type),
88
+ valueComparator: o(() => e.valueComparator)
89
+ }
90
+ }), b(() => {
91
+ var l;
92
+ return y("div", {
93
+ class: S(["v-selection-control-group", {
94
+ "v-selection-control-group--inline": e.inline
95
+ }, e.class]),
96
+ style: g(e.style),
97
+ role: e.type === "radio" ? "radiogroup" : void 0
98
+ }, [(l = t.default) == null ? void 0 : l.call(t)]);
99
+ }), {};
100
+ }
101
+ });
102
+ export {
103
+ k as VSelectionControlGroupSymbol,
104
+ T as makeSelectionControlGroupProps,
105
+ D as makeVSelectionControlGroupProps
106
+ };
@@ -0,0 +1,61 @@
1
+ import { createVNode as d, normalizeClass as p, normalizeStyle as f } from "vue";
2
+ import "../../../../../../../_virtual/VSheet.sass.mjs";
3
+ import { makeBorderProps as v, useBorder as k } from "../../composables/border.mjs";
4
+ import { useBackgroundColor as C } from "../../composables/color.mjs";
5
+ import { makeComponentProps as P } from "../../composables/component.mjs";
6
+ import { makeDimensionProps as S, useDimension as h } from "../../composables/dimensions.mjs";
7
+ import { makeElevationProps as g, useElevation as y } from "../../composables/elevation.mjs";
8
+ import { makeLocationProps as V, useLocation as b } from "../../composables/location.mjs";
9
+ import { makePositionProps as B, usePosition as R } from "../../composables/position.mjs";
10
+ import { makeRoundedProps as T, useRounded as z } from "../../composables/rounded.mjs";
11
+ import { makeTagProps as D } from "../../composables/tag.mjs";
12
+ import { makeThemeProps as E, provideTheme as L } from "../../composables/theme.mjs";
13
+ import { propsFactory as x } from "../../util/propsFactory.mjs";
14
+ import { genericComponent as F } from "../../util/defineComponent.mjs";
15
+ import { useRender as N } from "../../util/useRender.mjs";
16
+ const j = x({
17
+ color: String,
18
+ ...v(),
19
+ ...P(),
20
+ ...S(),
21
+ ...g(),
22
+ ...V(),
23
+ ...B(),
24
+ ...T(),
25
+ ...D(),
26
+ ...E()
27
+ }, "VSheet"), Z = F()({
28
+ name: "VSheet",
29
+ props: j(),
30
+ setup(o, e) {
31
+ let {
32
+ slots: s
33
+ } = e;
34
+ const {
35
+ themeClasses: r
36
+ } = L(o), {
37
+ backgroundColorClasses: t,
38
+ backgroundColorStyles: m
39
+ } = C(() => o.color), {
40
+ borderClasses: a
41
+ } = k(o), {
42
+ dimensionStyles: n
43
+ } = h(o), {
44
+ elevationClasses: i
45
+ } = y(o), {
46
+ locationStyles: l
47
+ } = b(o), {
48
+ positionClasses: u
49
+ } = R(o), {
50
+ roundedClasses: c
51
+ } = z(o);
52
+ return N(() => d(o.tag, {
53
+ class: p(["v-sheet", r.value, t.value, a.value, i.value, u.value, c.value, o.class]),
54
+ style: f([m.value, n.value, l.value, o.style])
55
+ }, s)), {};
56
+ }
57
+ });
58
+ export {
59
+ Z as VSheet,
60
+ j as makeVSheetProps
61
+ };
@@ -0,0 +1,287 @@
1
+ import { shallowRef as d, computed as c, watch as te, createVNode as m, normalizeClass as y, normalizeStyle as le, createElementVNode as x } from "vue";
2
+ import "../../../../../../../_virtual/VSlideGroup.sass.mjs";
3
+ import { VFadeTransition as D } from "../transitions/index.mjs";
4
+ import { makeComponentProps as oe } from "../../composables/component.mjs";
5
+ import { makeDisplayProps as ne, useDisplay as re } from "../../composables/display.mjs";
6
+ import { useGoTo as ae } from "../../composables/goto.mjs";
7
+ import { makeGroupProps as se, useGroup as ie } from "../../composables/group.mjs";
8
+ import { IconValue as H } from "../../composables/icons.mjs";
9
+ import { useRtl as ue } from "../../composables/locale.mjs";
10
+ import { useResizeObserver as N } from "../../composables/resizeObserver.mjs";
11
+ import { makeTagProps as ce } from "../../composables/tag.mjs";
12
+ import { calculateCenteredTarget as fe, calculateUpdatedTarget as ve, getOffsetSize as de, getScrollPosition as me, getScrollSize as q, getClientSize as pe } from "./helpers.mjs";
13
+ import { VIcon as K } from "../VIcon/VIcon.mjs";
14
+ import { focusableChildren as ge } from "../../util/helpers.mjs";
15
+ import { propsFactory as he } from "../../util/propsFactory.mjs";
16
+ import { genericComponent as Se } from "../../util/defineComponent.mjs";
17
+ import { IN_BROWSER as L } from "../../util/globals.mjs";
18
+ import { useRender as ye } from "../../util/useRender.mjs";
19
+ const xe = Symbol.for("vuetify:v-slide-group"), be = he({
20
+ centerActive: Boolean,
21
+ scrollToActive: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ contentClass: null,
26
+ direction: {
27
+ type: String,
28
+ default: "horizontal"
29
+ },
30
+ symbol: {
31
+ type: null,
32
+ default: xe
33
+ },
34
+ nextIcon: {
35
+ type: H,
36
+ default: "$next"
37
+ },
38
+ prevIcon: {
39
+ type: H,
40
+ default: "$prev"
41
+ },
42
+ showArrows: {
43
+ type: [Boolean, String],
44
+ validator: (o) => typeof o == "boolean" || ["always", "desktop", "mobile", "never"].includes(o)
45
+ },
46
+ ...oe(),
47
+ ...ne({
48
+ mobile: null
49
+ }),
50
+ ...ce(),
51
+ ...se({
52
+ selectedClass: "v-slide-group-item--active"
53
+ })
54
+ }, "VSlideGroup"), De = Se()({
55
+ name: "VSlideGroup",
56
+ props: be(),
57
+ emits: {
58
+ "update:modelValue": (o) => !0
59
+ },
60
+ setup(o, U) {
61
+ let {
62
+ slots: i
63
+ } = U;
64
+ const {
65
+ isRtl: u
66
+ } = ue(), {
67
+ displayClasses: $,
68
+ mobile: b
69
+ } = re(o), a = ie(o, o.symbol), p = d(!1), f = d(0), z = d(0), O = d(0), n = c(() => o.direction === "horizontal"), {
70
+ resizeRef: r,
71
+ contentRect: w
72
+ } = N(), {
73
+ resizeRef: s,
74
+ contentRect: k
75
+ } = N(), P = ae(), G = c(() => ({
76
+ container: r.el,
77
+ duration: 200,
78
+ easing: "easeOutQuart"
79
+ })), Q = c(() => a.selected.value.length ? a.items.value.findIndex((t) => t.id === a.selected.value[0]) : -1), j = c(() => a.selected.value.length ? a.items.value.findIndex((t) => t.id === a.selected.value[a.selected.value.length - 1]) : -1);
80
+ if (L) {
81
+ let t = -1;
82
+ te(() => [a.selected.value, w.value, k.value, n.value], () => {
83
+ cancelAnimationFrame(t), t = requestAnimationFrame(() => {
84
+ if (w.value && k.value) {
85
+ const e = n.value ? "width" : "height";
86
+ z.value = w.value[e], O.value = k.value[e], p.value = z.value + 1 < O.value;
87
+ }
88
+ if (o.scrollToActive && Q.value >= 0 && s.el) {
89
+ const e = s.el.children[j.value];
90
+ M(e, o.centerActive);
91
+ }
92
+ });
93
+ });
94
+ }
95
+ const g = d(!1);
96
+ function M(t, e) {
97
+ let l = 0;
98
+ e ? l = fe({
99
+ containerElement: r.el,
100
+ isHorizontal: n.value,
101
+ selectedElement: t
102
+ }) : l = ve({
103
+ containerElement: r.el,
104
+ isHorizontal: n.value,
105
+ isRtl: u.value,
106
+ selectedElement: t
107
+ }), W(l);
108
+ }
109
+ function W(t) {
110
+ if (!L || !r.el)
111
+ return;
112
+ const e = de(n.value, r.el), l = me(n.value, u.value, r.el);
113
+ if (!(q(n.value, r.el) <= e || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
114
+ Math.abs(t - l) < 16)) {
115
+ if (n.value && u.value && r.el) {
116
+ const {
117
+ scrollWidth: _,
118
+ offsetWidth: V
119
+ } = r.el;
120
+ t = _ - V - t;
121
+ }
122
+ n.value ? P.horizontal(t, G.value) : P(t, G.value);
123
+ }
124
+ }
125
+ function J(t) {
126
+ const {
127
+ scrollTop: e,
128
+ scrollLeft: l
129
+ } = t.target;
130
+ f.value = n.value ? l : e;
131
+ }
132
+ function X(t) {
133
+ if (g.value = !0, !(!p.value || !s.el)) {
134
+ for (const e of t.composedPath())
135
+ for (const l of s.el.children)
136
+ if (l === e) {
137
+ M(l);
138
+ return;
139
+ }
140
+ }
141
+ }
142
+ function Y(t) {
143
+ g.value = !1;
144
+ }
145
+ let A = !1;
146
+ function Z(t) {
147
+ var e;
148
+ !A && !g.value && !(t.relatedTarget && ((e = s.el) != null && e.contains(t.relatedTarget))) && v(), A = !1;
149
+ }
150
+ function B() {
151
+ A = !0;
152
+ }
153
+ function ee(t) {
154
+ if (!s.el)
155
+ return;
156
+ function e(l) {
157
+ t.preventDefault(), v(l);
158
+ }
159
+ n.value ? t.key === "ArrowRight" ? e(u.value ? "prev" : "next") : t.key === "ArrowLeft" && e(u.value ? "next" : "prev") : t.key === "ArrowDown" ? e("next") : t.key === "ArrowUp" && e("prev"), t.key === "Home" ? e("first") : t.key === "End" && e("last");
160
+ }
161
+ function h(t, e) {
162
+ if (!t)
163
+ return;
164
+ let l = t;
165
+ do
166
+ l = l == null ? void 0 : l[e === "next" ? "nextElementSibling" : "previousElementSibling"];
167
+ while (l != null && l.hasAttribute("disabled"));
168
+ return l;
169
+ }
170
+ function v(t) {
171
+ if (!s.el)
172
+ return;
173
+ let e;
174
+ if (!t)
175
+ e = ge(s.el)[0];
176
+ else if (t === "next") {
177
+ if (e = h(s.el.querySelector(":focus"), t), !e)
178
+ return v("first");
179
+ } else if (t === "prev") {
180
+ if (e = h(s.el.querySelector(":focus"), t), !e)
181
+ return v("last");
182
+ } else
183
+ t === "first" ? (e = s.el.firstElementChild, e != null && e.hasAttribute("disabled") && (e = h(e, "next"))) : t === "last" && (e = s.el.lastElementChild, e != null && e.hasAttribute("disabled") && (e = h(e, "prev")));
184
+ e && e.focus({
185
+ preventScroll: !0
186
+ });
187
+ }
188
+ function R(t) {
189
+ const e = n.value && u.value ? -1 : 1, l = (t === "prev" ? -e : e) * z.value;
190
+ let I = f.value + l;
191
+ if (n.value && u.value && r.el) {
192
+ const {
193
+ scrollWidth: _,
194
+ offsetWidth: V
195
+ } = r.el;
196
+ I += _ - V;
197
+ }
198
+ W(I);
199
+ }
200
+ const C = c(() => ({
201
+ next: a.next,
202
+ prev: a.prev,
203
+ select: a.select,
204
+ isSelected: a.isSelected
205
+ })), S = c(() => p.value || Math.abs(f.value) > 0), T = c(() => {
206
+ switch (o.showArrows) {
207
+ case "never":
208
+ return !1;
209
+ case "always":
210
+ return !0;
211
+ case "desktop":
212
+ return !b.value;
213
+ case !0:
214
+ return S.value;
215
+ case "mobile":
216
+ return b.value || S.value;
217
+ default:
218
+ return !b.value && S.value;
219
+ }
220
+ }), E = c(() => Math.abs(f.value) > 1), F = c(() => {
221
+ if (!r.value || !S.value)
222
+ return !1;
223
+ const t = q(n.value, r.el), e = pe(n.value, r.el);
224
+ return t - e - Math.abs(f.value) > 1;
225
+ });
226
+ return ye(() => m(o.tag, {
227
+ class: y(["v-slide-group", {
228
+ "v-slide-group--vertical": !n.value,
229
+ "v-slide-group--has-affixes": T.value,
230
+ "v-slide-group--is-overflowing": p.value
231
+ }, $.value, o.class]),
232
+ style: le(o.style),
233
+ tabindex: g.value || a.selected.value.length ? -1 : 0,
234
+ onFocus: Z
235
+ }, {
236
+ default: () => {
237
+ var t, e, l;
238
+ return [T.value && x("div", {
239
+ key: "prev",
240
+ class: y(["v-slide-group__prev", {
241
+ "v-slide-group__prev--disabled": !E.value
242
+ }]),
243
+ onMousedown: B,
244
+ onClick: () => E.value && R("prev")
245
+ }, [((t = i.prev) == null ? void 0 : t.call(i, C.value)) ?? m(D, null, {
246
+ default: () => [m(K, {
247
+ icon: u.value ? o.nextIcon : o.prevIcon
248
+ }, null)]
249
+ })]), x("div", {
250
+ key: "container",
251
+ ref: r,
252
+ class: y(["v-slide-group__container", o.contentClass]),
253
+ onScroll: J
254
+ }, [x("div", {
255
+ ref: s,
256
+ class: "v-slide-group__content",
257
+ onFocusin: X,
258
+ onFocusout: Y,
259
+ onKeydown: ee
260
+ }, [(e = i.default) == null ? void 0 : e.call(i, C.value)])]), T.value && x("div", {
261
+ key: "next",
262
+ class: y(["v-slide-group__next", {
263
+ "v-slide-group__next--disabled": !F.value
264
+ }]),
265
+ onMousedown: B,
266
+ onClick: () => F.value && R("next")
267
+ }, [((l = i.next) == null ? void 0 : l.call(i, C.value)) ?? m(D, null, {
268
+ default: () => [m(K, {
269
+ icon: u.value ? o.prevIcon : o.nextIcon
270
+ }, null)]
271
+ })])];
272
+ }
273
+ })), {
274
+ selected: a.selected,
275
+ scrollTo: R,
276
+ scrollOffset: f,
277
+ focus: v,
278
+ hasPrev: E,
279
+ hasNext: F
280
+ };
281
+ }
282
+ });
283
+ export {
284
+ De as VSlideGroup,
285
+ xe as VSlideGroupSymbol,
286
+ be as makeVSlideGroupProps
287
+ };
@@ -0,0 +1,54 @@
1
+ function h(i) {
2
+ let {
3
+ selectedElement: t,
4
+ containerElement: o,
5
+ isRtl: n,
6
+ isHorizontal: r
7
+ } = i;
8
+ const c = e(r, o), s = d(r, n, o), l = e(r, t), f = a(r, t), u = l * 0.4;
9
+ return s > f ? f - u : s + c < f + l ? f - c + l + u : s;
10
+ }
11
+ function g(i) {
12
+ let {
13
+ selectedElement: t,
14
+ containerElement: o,
15
+ isHorizontal: n
16
+ } = i;
17
+ const r = e(n, o), c = a(n, t), s = e(n, t);
18
+ return c - r / 2 + s / 2;
19
+ }
20
+ function S(i, t) {
21
+ const o = i ? "scrollWidth" : "scrollHeight";
22
+ return (t == null ? void 0 : t[o]) || 0;
23
+ }
24
+ function z(i, t) {
25
+ const o = i ? "clientWidth" : "clientHeight";
26
+ return (t == null ? void 0 : t[o]) || 0;
27
+ }
28
+ function d(i, t, o) {
29
+ if (!o)
30
+ return 0;
31
+ const {
32
+ scrollLeft: n,
33
+ offsetWidth: r,
34
+ scrollWidth: c
35
+ } = o;
36
+ return i ? t ? c - r + n : n : o.scrollTop;
37
+ }
38
+ function e(i, t) {
39
+ const o = i ? "offsetWidth" : "offsetHeight";
40
+ return (t == null ? void 0 : t[o]) || 0;
41
+ }
42
+ function a(i, t) {
43
+ const o = i ? "offsetLeft" : "offsetTop";
44
+ return (t == null ? void 0 : t[o]) || 0;
45
+ }
46
+ export {
47
+ g as calculateCenteredTarget,
48
+ h as calculateUpdatedTarget,
49
+ z as getClientSize,
50
+ a as getOffsetPosition,
51
+ e as getOffsetSize,
52
+ d as getScrollPosition,
53
+ S as getScrollSize
54
+ };