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,51 @@
1
+ import { toRef as r, createVNode as n, withDirectives as i, createElementVNode as m, normalizeClass as l, normalizeStyle as u, vShow as s } from "vue";
2
+ import "../../../../../../../_virtual/VCounter.sass.mjs";
3
+ import { VSlideYTransition as c } from "../transitions/index.mjs";
4
+ import { makeComponentProps as v } from "../../composables/component.mjs";
5
+ import { makeTransitionProps as d, MaybeTransition as f } from "../../composables/transition.mjs";
6
+ import { propsFactory as x } from "../../util/propsFactory.mjs";
7
+ import { genericComponent as C } from "../../util/defineComponent.mjs";
8
+ import { useRender as V } from "../../util/useRender.mjs";
9
+ const y = x({
10
+ active: Boolean,
11
+ disabled: Boolean,
12
+ max: [Number, String],
13
+ value: {
14
+ type: [Number, String],
15
+ default: 0
16
+ },
17
+ ...v(),
18
+ ...d({
19
+ transition: {
20
+ component: c
21
+ }
22
+ })
23
+ }, "VCounter"), h = C()({
24
+ name: "VCounter",
25
+ functional: !0,
26
+ props: y(),
27
+ setup(e, o) {
28
+ let {
29
+ slots: t
30
+ } = o;
31
+ const a = r(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
32
+ return V(() => n(f, {
33
+ transition: e.transition
34
+ }, {
35
+ default: () => [i(m("div", {
36
+ class: l(["v-counter", {
37
+ "text-error": e.max && !e.disabled && parseFloat(e.value) > parseFloat(e.max)
38
+ }, e.class]),
39
+ style: u(e.style)
40
+ }, [t.default ? t.default({
41
+ counter: a.value,
42
+ max: e.max,
43
+ value: e.value
44
+ }) : a.value]), [[s, e.active]])]
45
+ })), {};
46
+ }
47
+ });
48
+ export {
49
+ h as VCounter,
50
+ y as makeVCounterProps
51
+ };
@@ -0,0 +1,103 @@
1
+ import { ref as x, watch as E, nextTick as p, mergeProps as c, createVNode as s } from "vue";
2
+ import "../../../../../../../_virtual/VDialog.sass.mjs";
3
+ import { makeVOverlayProps as y, VOverlay as d } from "../VOverlay/VOverlay.mjs";
4
+ import { forwardRefs as D } from "../../composables/forwardRefs.mjs";
5
+ import { useProxiedModel as b } from "../../composables/proxiedModel.mjs";
6
+ import { useScopeId as w } from "../../composables/scopeId.mjs";
7
+ import { VDialogTransition as A } from "../transitions/dialog-transition.mjs";
8
+ import { VDefaultsProvider as F } from "../VDefaultsProvider/VDefaultsProvider.mjs";
9
+ import { propsFactory as I } from "../../util/propsFactory.mjs";
10
+ import { omit as L } from "../../util/helpers.mjs";
11
+ import { genericComponent as S } from "../../util/defineComponent.mjs";
12
+ import { useRender as B } from "../../util/useRender.mjs";
13
+ const H = I({
14
+ fullscreen: Boolean,
15
+ scrollable: Boolean,
16
+ ...L(y({
17
+ captureFocus: !0,
18
+ origin: "center center",
19
+ scrollStrategy: "block",
20
+ transition: {
21
+ component: A
22
+ },
23
+ zIndex: 2400,
24
+ retainFocus: !0
25
+ }), ["disableInitialFocus"])
26
+ }, "VDialog"), G = S()({
27
+ name: "VDialog",
28
+ props: H(),
29
+ emits: {
30
+ "update:modelValue": (e) => !0,
31
+ afterEnter: () => !0,
32
+ afterLeave: () => !0
33
+ },
34
+ setup(e, v) {
35
+ let {
36
+ emit: u,
37
+ slots: r
38
+ } = v;
39
+ const i = b(e, "modelValue"), {
40
+ scopeId: g
41
+ } = w(), t = x();
42
+ function V() {
43
+ var o;
44
+ u("afterEnter"), (e.scrim || e.retainFocus) && ((o = t.value) != null && o.contentEl) && !t.value.contentEl.contains(document.activeElement) && t.value.contentEl.focus({
45
+ preventScroll: !0
46
+ });
47
+ }
48
+ function h() {
49
+ u("afterLeave");
50
+ }
51
+ return E(i, async (o) => {
52
+ var a;
53
+ o || (await p(), (a = t.value.activatorEl) == null || a.focus({
54
+ preventScroll: !0
55
+ }));
56
+ }), B(() => {
57
+ const o = d.filterProps(e), a = c({
58
+ "aria-haspopup": "dialog"
59
+ }, e.activatorProps), P = c({
60
+ tabindex: -1
61
+ }, e.contentProps);
62
+ return s(d, c({
63
+ ref: t,
64
+ class: ["v-dialog", {
65
+ "v-dialog--fullscreen": e.fullscreen,
66
+ "v-dialog--scrollable": e.scrollable
67
+ }, e.class],
68
+ style: e.style
69
+ }, o, {
70
+ modelValue: i.value,
71
+ "onUpdate:modelValue": (n) => i.value = n,
72
+ "aria-modal": "true",
73
+ activatorProps: a,
74
+ contentProps: P,
75
+ height: e.fullscreen ? void 0 : e.height,
76
+ width: e.fullscreen ? void 0 : e.width,
77
+ maxHeight: e.fullscreen ? void 0 : e.maxHeight,
78
+ maxWidth: e.fullscreen ? void 0 : e.maxWidth,
79
+ role: "dialog",
80
+ onAfterEnter: V,
81
+ onAfterLeave: h
82
+ }, g), {
83
+ activator: r.activator,
84
+ default: function() {
85
+ for (var n = arguments.length, f = new Array(n), l = 0; l < n; l++)
86
+ f[l] = arguments[l];
87
+ return s(F, {
88
+ root: "VDialog"
89
+ }, {
90
+ default: () => {
91
+ var m;
92
+ return [(m = r.default) == null ? void 0 : m.call(r, ...f)];
93
+ }
94
+ });
95
+ }
96
+ });
97
+ }), D({}, t);
98
+ }
99
+ });
100
+ export {
101
+ G as VDialog,
102
+ H as makeVDialogProps
103
+ };
@@ -0,0 +1,295 @@
1
+ import { toRef as c, useId as ne, computed as m, ref as F, watch as ae, createElementVNode as a, mergeProps as g, createVNode as o, withDirectives as te, vShow as oe, normalizeClass as ie, normalizeStyle as re, Fragment as de } from "vue";
2
+ import "../../../../../../../_virtual/VField.sass.mjs";
3
+ import { VFieldLabel as p } from "./VFieldLabel.mjs";
4
+ import { VExpandXTransition as se } from "../transitions/index.mjs";
5
+ import { useInputIcon as ue } from "../VInput/InputIcon.mjs";
6
+ import { useBackgroundColor as ce, useTextColor as ve } from "../../composables/color.mjs";
7
+ import { makeComponentProps as fe } from "../../composables/component.mjs";
8
+ import { makeFocusProps as me, useFocus as ge } from "../../composables/focus.mjs";
9
+ import { IconValue as S } from "../../composables/icons.mjs";
10
+ import { makeLoaderProps as be, useLoader as ye, LoaderSlot as Ce } from "../../composables/loader.mjs";
11
+ import { useRtl as he } from "../../composables/locale.mjs";
12
+ import { makeRoundedProps as Ie, useRounded as _e } from "../../composables/rounded.mjs";
13
+ import { makeThemeProps as pe, provideTheme as ke } from "../../composables/theme.mjs";
14
+ import { VDefaultsProvider as Pe } from "../VDefaultsProvider/VDefaultsProvider.mjs";
15
+ import { propsFactory as Be } from "../../util/propsFactory.mjs";
16
+ import { EventProp as x, convertToUnit as Fe } from "../../util/helpers.mjs";
17
+ import { genericComponent as Se } from "../../util/defineComponent.mjs";
18
+ import { PREFERS_REDUCED_MOTION as xe } from "../../util/globals.mjs";
19
+ import { nullifyTransforms as Ve, animate as Re } from "../../util/animation.mjs";
20
+ import { standardEasing as we } from "../../util/easing.mjs";
21
+ import { useRender as Le } from "../../util/useRender.mjs";
22
+ const Ee = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], $e = Be({
23
+ appendInnerIcon: S,
24
+ bgColor: String,
25
+ clearable: Boolean,
26
+ clearIcon: {
27
+ type: S,
28
+ default: "$clear"
29
+ },
30
+ active: Boolean,
31
+ centerAffix: {
32
+ type: Boolean,
33
+ default: void 0
34
+ },
35
+ color: String,
36
+ baseColor: String,
37
+ dirty: Boolean,
38
+ disabled: {
39
+ type: Boolean,
40
+ default: null
41
+ },
42
+ glow: Boolean,
43
+ error: Boolean,
44
+ flat: Boolean,
45
+ iconColor: [Boolean, String],
46
+ label: String,
47
+ persistentClear: Boolean,
48
+ prependInnerIcon: S,
49
+ reverse: Boolean,
50
+ singleLine: Boolean,
51
+ variant: {
52
+ type: String,
53
+ default: "filled",
54
+ validator: (e) => Ee.includes(e)
55
+ },
56
+ "onClick:clear": x(),
57
+ "onClick:appendInner": x(),
58
+ "onClick:prependInner": x(),
59
+ ...fe(),
60
+ ...be(),
61
+ ...Ie(),
62
+ ...pe()
63
+ }, "VField"), al = Se()({
64
+ name: "VField",
65
+ inheritAttrs: !1,
66
+ props: {
67
+ id: String,
68
+ details: Boolean,
69
+ labelId: String,
70
+ ...me(),
71
+ ...$e()
72
+ },
73
+ emits: {
74
+ "update:focused": (e) => !0,
75
+ "update:modelValue": (e) => !0
76
+ },
77
+ setup(e, M) {
78
+ let {
79
+ attrs: N,
80
+ emit: De,
81
+ slots: l
82
+ } = M;
83
+ const {
84
+ themeClasses: U
85
+ } = ke(e), {
86
+ loaderClasses: z
87
+ } = ye(e), {
88
+ focusClasses: H,
89
+ isFocused: k,
90
+ focus: b,
91
+ blur: y
92
+ } = ge(e), {
93
+ InputIcon: P
94
+ } = ue(e), {
95
+ roundedClasses: W
96
+ } = _e(e), {
97
+ rtlClasses: q
98
+ } = he(), s = c(() => e.dirty || e.active), V = c(() => !!(e.label || l.label)), v = c(() => !e.singleLine && V.value), X = ne(), u = m(() => e.id || `input-${X}`), R = c(() => e.details ? `${u.value}-messages` : void 0), w = F(), C = F(), L = F(), E = m(() => ["plain", "underlined"].includes(e.variant)), $ = m(() => e.error || e.disabled ? void 0 : s.value && k.value ? e.color : e.baseColor), h = m(() => {
99
+ if (!(!e.iconColor || e.glow && !k.value))
100
+ return e.iconColor === !0 ? $.value : e.iconColor;
101
+ }), {
102
+ backgroundColorClasses: j,
103
+ backgroundColorStyles: G
104
+ } = ce(() => e.bgColor), {
105
+ textColorClasses: D,
106
+ textColorStyles: T
107
+ } = ve($);
108
+ ae(s, (n) => {
109
+ if (v.value && !xe()) {
110
+ const i = w.value.$el, r = C.value.$el;
111
+ requestAnimationFrame(() => {
112
+ const d = Ve(i), t = r.getBoundingClientRect(), I = t.x - d.x, _ = t.y - d.y - (d.height / 2 - t.height / 2), A = t.width / 0.75, Q = Math.abs(A - d.width) > 1 ? {
113
+ maxWidth: Fe(A)
114
+ } : void 0, Y = getComputedStyle(i), O = getComputedStyle(r), Z = parseFloat(Y.transitionDuration) * 1e3 || 150, ee = parseFloat(O.getPropertyValue("--v-field-label-scale")), le = O.getPropertyValue("color");
115
+ i.style.visibility = "visible", r.style.visibility = "hidden", Re(i, {
116
+ transform: `translate(${I}px, ${_}px) scale(${ee})`,
117
+ color: le,
118
+ ...Q
119
+ }, {
120
+ duration: Z,
121
+ easing: we,
122
+ direction: n ? "normal" : "reverse"
123
+ }).finished.then(() => {
124
+ i.style.removeProperty("visibility"), r.style.removeProperty("visibility");
125
+ });
126
+ });
127
+ }
128
+ }, {
129
+ flush: "post"
130
+ });
131
+ const f = m(() => ({
132
+ isActive: s,
133
+ isFocused: k,
134
+ controlRef: L,
135
+ iconColor: h,
136
+ blur: y,
137
+ focus: b
138
+ })), B = c(() => {
139
+ const n = !s.value;
140
+ return {
141
+ "aria-hidden": n,
142
+ for: n ? void 0 : u.value
143
+ };
144
+ }), J = c(() => {
145
+ const n = v.value && s.value;
146
+ return {
147
+ "aria-hidden": n,
148
+ for: n ? void 0 : u.value
149
+ };
150
+ });
151
+ function K(n) {
152
+ n.target !== document.activeElement && n.preventDefault();
153
+ }
154
+ return Le(() => {
155
+ var I;
156
+ const n = e.variant === "outlined", i = !!(l["prepend-inner"] || e.prependInnerIcon), r = !!(e.clearable || l.clear) && !e.disabled, d = !!(l["append-inner"] || e.appendInnerIcon || r), t = () => l.label ? l.label({
157
+ ...f.value,
158
+ label: e.label,
159
+ props: {
160
+ for: u.value
161
+ }
162
+ }) : e.label;
163
+ return a("div", g({
164
+ class: ["v-field", {
165
+ "v-field--active": s.value,
166
+ "v-field--appended": d,
167
+ "v-field--center-affix": e.centerAffix ?? !E.value,
168
+ "v-field--disabled": e.disabled,
169
+ "v-field--dirty": e.dirty,
170
+ "v-field--error": e.error,
171
+ "v-field--glow": e.glow,
172
+ "v-field--flat": e.flat,
173
+ "v-field--has-background": !!e.bgColor,
174
+ "v-field--persistent-clear": e.persistentClear,
175
+ "v-field--prepended": i,
176
+ "v-field--reverse": e.reverse,
177
+ "v-field--single-line": e.singleLine,
178
+ "v-field--no-label": !t(),
179
+ [`v-field--variant-${e.variant}`]: !0
180
+ }, U.value, j.value, H.value, z.value, W.value, q.value, e.class],
181
+ style: [G.value, e.style],
182
+ onClick: K
183
+ }, N), [a("div", {
184
+ class: "v-field__overlay"
185
+ }, null), o(Ce, {
186
+ name: "v-field",
187
+ active: !!e.loading,
188
+ color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
189
+ }, {
190
+ default: l.loader
191
+ }), i && a("div", {
192
+ key: "prepend",
193
+ class: "v-field__prepend-inner"
194
+ }, [l["prepend-inner"] ? l["prepend-inner"](f.value) : e.prependInnerIcon && o(P, {
195
+ key: "prepend-icon",
196
+ name: "prependInner",
197
+ color: h.value
198
+ }, null)]), a("div", {
199
+ class: "v-field__field",
200
+ "data-no-activator": ""
201
+ }, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && v.value && o(p, g({
202
+ key: "floating-label",
203
+ ref: C,
204
+ class: [D.value],
205
+ floating: !0
206
+ }, B.value, {
207
+ style: T.value
208
+ }), {
209
+ default: () => [t()]
210
+ }), V.value && o(p, g({
211
+ key: "label",
212
+ ref: w,
213
+ id: e.labelId
214
+ }, J.value), {
215
+ default: () => [t()]
216
+ }), ((I = l.default) == null ? void 0 : I.call(l, {
217
+ ...f.value,
218
+ props: {
219
+ id: u.value,
220
+ class: "v-field__input",
221
+ "aria-describedby": R.value
222
+ },
223
+ focus: b,
224
+ blur: y
225
+ })) ?? a("div", {
226
+ id: u.value,
227
+ class: "v-field__input",
228
+ "aria-describedby": R.value
229
+ }, null)]), r && o(se, {
230
+ key: "clear"
231
+ }, {
232
+ default: () => [te(a("div", {
233
+ class: "v-field__clearable",
234
+ onMousedown: (_) => {
235
+ _.preventDefault(), _.stopPropagation();
236
+ }
237
+ }, [o(Pe, {
238
+ defaults: {
239
+ VIcon: {
240
+ icon: e.clearIcon
241
+ }
242
+ }
243
+ }, {
244
+ default: () => [l.clear ? l.clear({
245
+ ...f.value,
246
+ props: {
247
+ onFocus: b,
248
+ onBlur: y,
249
+ onClick: e["onClick:clear"],
250
+ tabindex: -1
251
+ }
252
+ }) : o(P, {
253
+ name: "clear",
254
+ onFocus: b,
255
+ onBlur: y,
256
+ tabindex: -1
257
+ }, null)]
258
+ })]), [[oe, e.dirty]])]
259
+ }), d && a("div", {
260
+ key: "append",
261
+ class: "v-field__append-inner"
262
+ }, [l["append-inner"] ? l["append-inner"](f.value) : e.appendInnerIcon && o(P, {
263
+ key: "append-icon",
264
+ name: "appendInner",
265
+ color: h.value
266
+ }, null)]), a("div", {
267
+ class: ie(["v-field__outline", D.value]),
268
+ style: re(T.value)
269
+ }, [n && a(de, null, [a("div", {
270
+ class: "v-field__outline__start"
271
+ }, null), v.value && a("div", {
272
+ class: "v-field__outline__notch"
273
+ }, [o(p, g({
274
+ ref: C,
275
+ floating: !0
276
+ }, B.value), {
277
+ default: () => [t()]
278
+ })]), a("div", {
279
+ class: "v-field__outline__end"
280
+ }, null)]), E.value && v.value && o(p, g({
281
+ ref: C,
282
+ floating: !0
283
+ }, B.value), {
284
+ default: () => [t()]
285
+ })])]);
286
+ }), {
287
+ controlRef: L,
288
+ fieldIconColor: h
289
+ };
290
+ }
291
+ });
292
+ export {
293
+ al as VField,
294
+ $e as makeVFieldProps
295
+ };
@@ -0,0 +1,28 @@
1
+ import { createVNode as r, normalizeClass as t, normalizeStyle as a } from "vue";
2
+ import { makeComponentProps as m } from "../../composables/component.mjs";
3
+ import { VLabel as i } from "../VLabel/VLabel.mjs";
4
+ import { propsFactory as n } from "../../util/propsFactory.mjs";
5
+ import { genericComponent as s } from "../../util/defineComponent.mjs";
6
+ import { useRender as p } from "../../util/useRender.mjs";
7
+ const f = n({
8
+ floating: Boolean,
9
+ ...m()
10
+ }, "VFieldLabel"), g = s()({
11
+ name: "VFieldLabel",
12
+ props: f(),
13
+ setup(e, o) {
14
+ let {
15
+ slots: l
16
+ } = o;
17
+ return p(() => r(i, {
18
+ class: t(["v-field-label", {
19
+ "v-field-label--floating": e.floating
20
+ }, e.class]),
21
+ style: a(e.style)
22
+ }, l)), {};
23
+ }
24
+ });
25
+ export {
26
+ g as VFieldLabel,
27
+ f as makeVFieldLabelProps
28
+ };
@@ -0,0 +1,53 @@
1
+ import { ref as d, createElementVNode as v, normalizeClass as b, normalizeStyle as y } from "vue";
2
+ import { makeComponentProps as F } from "../../composables/component.mjs";
3
+ import { makeFormProps as V, createForm as h } from "../../composables/form.mjs";
4
+ import { forwardRefs as R } from "../../composables/forwardRefs.mjs";
5
+ import { propsFactory as P } from "../../util/propsFactory.mjs";
6
+ import { genericComponent as k } from "../../util/defineComponent.mjs";
7
+ import { useRender as C } from "../../util/useRender.mjs";
8
+ const S = P({
9
+ ...F(),
10
+ ...V()
11
+ }, "VForm"), j = k()({
12
+ name: "VForm",
13
+ props: S(),
14
+ emits: {
15
+ "update:modelValue": (r) => !0,
16
+ submit: (r) => !0
17
+ },
18
+ setup(r, f) {
19
+ let {
20
+ slots: n,
21
+ emit: l
22
+ } = f;
23
+ const m = h(r), a = d();
24
+ function s(t) {
25
+ t.preventDefault(), m.reset();
26
+ }
27
+ function u(t) {
28
+ const o = t, e = m.validate();
29
+ o.then = e.then.bind(e), o.catch = e.catch.bind(e), o.finally = e.finally.bind(e), l("submit", o), o.defaultPrevented || e.then((c) => {
30
+ var i;
31
+ let {
32
+ valid: p
33
+ } = c;
34
+ p && ((i = a.value) == null || i.submit());
35
+ }), o.preventDefault();
36
+ }
37
+ return C(() => {
38
+ var t;
39
+ return v("form", {
40
+ ref: a,
41
+ class: b(["v-form", r.class]),
42
+ style: y(r.style),
43
+ novalidate: !0,
44
+ onReset: s,
45
+ onSubmit: u
46
+ }, [(t = n.default) == null ? void 0 : t.call(n, m)]);
47
+ }), R(m, a);
48
+ }
49
+ });
50
+ export {
51
+ j as VForm,
52
+ S as makeVFormProps
53
+ };
@@ -0,0 +1,98 @@
1
+ import "../../../../../../../_virtual/VGrid.sass.mjs";
2
+ import { makeComponentProps as y } from "../../composables/component.mjs";
3
+ import { breakpoints as a } from "../../composables/display.mjs";
4
+ import { makeTagProps as S } from "../../composables/tag.mjs";
5
+ import { capitalize as u, computed as C, h as k } from "vue";
6
+ import { propsFactory as N } from "../../util/propsFactory.mjs";
7
+ import { genericComponent as h } from "../../util/defineComponent.mjs";
8
+ const i = a.reduce((e, r) => (e[r] = {
9
+ type: [Boolean, String, Number],
10
+ default: !1
11
+ }, e), {}), m = a.reduce((e, r) => {
12
+ const t = "offset" + u(r);
13
+ return e[t] = {
14
+ type: [String, Number],
15
+ default: null
16
+ }, e;
17
+ }, {}), d = a.reduce((e, r) => {
18
+ const t = "order" + u(r);
19
+ return e[t] = {
20
+ type: [String, Number],
21
+ default: null
22
+ }, e;
23
+ }, {}), f = {
24
+ col: Object.keys(i),
25
+ offset: Object.keys(m),
26
+ order: Object.keys(d)
27
+ };
28
+ function L(e, r, t) {
29
+ let n = e;
30
+ if (!(t == null || t === !1)) {
31
+ if (r) {
32
+ const o = r.replace(e, "");
33
+ n += `-${o}`;
34
+ }
35
+ return e === "col" && (n = "v-" + n), e === "col" && (t === "" || t === !0) || (n += `-${t}`), n.toLowerCase();
36
+ }
37
+ }
38
+ const P = ["auto", "start", "end", "center", "baseline", "stretch"], $ = N({
39
+ cols: {
40
+ type: [Boolean, String, Number],
41
+ default: !1
42
+ },
43
+ ...i,
44
+ offset: {
45
+ type: [String, Number],
46
+ default: null
47
+ },
48
+ ...m,
49
+ order: {
50
+ type: [String, Number],
51
+ default: null
52
+ },
53
+ ...d,
54
+ alignSelf: {
55
+ type: String,
56
+ default: null,
57
+ validator: (e) => P.includes(e)
58
+ },
59
+ ...y(),
60
+ ...S()
61
+ }, "VCol"), A = h()({
62
+ name: "VCol",
63
+ props: $(),
64
+ setup(e, r) {
65
+ let {
66
+ slots: t
67
+ } = r;
68
+ const n = C(() => {
69
+ const o = [];
70
+ let s;
71
+ for (s in f)
72
+ f[s].forEach((l) => {
73
+ const g = e[l], c = L(s, l, g);
74
+ c && o.push(c);
75
+ });
76
+ const b = o.some((l) => l.startsWith("v-col-"));
77
+ return o.push({
78
+ // Default to .v-col if no other col-{bp}-* classes generated nor `cols` specified.
79
+ "v-col": !b || !e.cols,
80
+ [`v-col-${e.cols}`]: e.cols,
81
+ [`offset-${e.offset}`]: e.offset,
82
+ [`order-${e.order}`]: e.order,
83
+ [`align-self-${e.alignSelf}`]: e.alignSelf
84
+ }), o;
85
+ });
86
+ return () => {
87
+ var o;
88
+ return k(e.tag, {
89
+ class: [n.value, e.class],
90
+ style: e.style
91
+ }, (o = t.default) == null ? void 0 : o.call(t));
92
+ };
93
+ }
94
+ });
95
+ export {
96
+ A as VCol,
97
+ $ as makeVColProps
98
+ };
@@ -0,0 +1,41 @@
1
+ import { createVNode as m, normalizeClass as s, normalizeStyle as i } from "vue";
2
+ import "../../../../../../../_virtual/VContainer.sass.mjs";
3
+ import { makeComponentProps as a } from "../../composables/component.mjs";
4
+ import { makeDimensionProps as l, useDimension as p } from "../../composables/dimensions.mjs";
5
+ import { useRtl as f } from "../../composables/locale.mjs";
6
+ import { makeTagProps as c } from "../../composables/tag.mjs";
7
+ import { propsFactory as u } from "../../util/propsFactory.mjs";
8
+ import { genericComponent as C } from "../../util/defineComponent.mjs";
9
+ import { useRender as d } from "../../util/useRender.mjs";
10
+ const y = u({
11
+ fluid: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ ...a(),
16
+ ...l(),
17
+ ...c()
18
+ }, "VContainer"), x = C()({
19
+ name: "VContainer",
20
+ props: y(),
21
+ setup(o, e) {
22
+ let {
23
+ slots: t
24
+ } = e;
25
+ const {
26
+ rtlClasses: r
27
+ } = f(), {
28
+ dimensionStyles: n
29
+ } = p(o);
30
+ return d(() => m(o.tag, {
31
+ class: s(["v-container", {
32
+ "v-container--fluid": o.fluid
33
+ }, r.value, o.class]),
34
+ style: i([n.value, o.style])
35
+ }, t)), {};
36
+ }
37
+ });
38
+ export {
39
+ x as VContainer,
40
+ y as makeVContainerProps
41
+ };