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,204 @@
1
+ import { computed as x, ref as h, createVNode as p, mergeProps as b, createElementVNode as o, Fragment as C, withDirectives as te, normalizeClass as le, cloneVNode as ne, nextTick as P } from "vue";
2
+ import "../../../../../../../_virtual/VTextField.sass.mjs";
3
+ import { VCounter as oe } from "../VCounter/VCounter.mjs";
4
+ import { makeVFieldProps as ue, VField as T } from "../VField/VField.mjs";
5
+ import { makeVInputProps as ie, VInput as B } from "../VInput/VInput.mjs";
6
+ import { makeAutocompleteProps as ae, useAutocomplete as re } from "../../composables/autocomplete.mjs";
7
+ import { useAutofocus as ce } from "../../composables/autofocus.mjs";
8
+ import { useFocus as se } from "../../composables/focus.mjs";
9
+ import { forwardRefs as de } from "../../composables/forwardRefs.mjs";
10
+ import { useProxiedModel as fe } from "../../composables/proxiedModel.mjs";
11
+ import E from "../../directives/intersect/index.mjs";
12
+ import { propsFactory as me } from "../../util/propsFactory.mjs";
13
+ import { omit as M, filterInputAttrs as ve, callEvent as xe } from "../../util/helpers.mjs";
14
+ import { genericComponent as Ve } from "../../util/defineComponent.mjs";
15
+ import { useRender as ge } from "../../util/useRender.mjs";
16
+ const ye = ["color", "file", "time", "date", "datetime-local", "week", "month"], he = me({
17
+ autofocus: Boolean,
18
+ counter: [Boolean, Number, String],
19
+ counterValue: [Number, Function],
20
+ prefix: String,
21
+ placeholder: String,
22
+ persistentPlaceholder: Boolean,
23
+ persistentCounter: Boolean,
24
+ suffix: String,
25
+ role: String,
26
+ type: {
27
+ type: String,
28
+ default: "text"
29
+ },
30
+ modelModifiers: Object,
31
+ ...ae(),
32
+ ...M(ie(), ["direction"]),
33
+ ...ue()
34
+ }, "VTextField"), Be = Ve()({
35
+ name: "VTextField",
36
+ directives: {
37
+ vIntersect: E
38
+ },
39
+ inheritAttrs: !1,
40
+ props: he(),
41
+ emits: {
42
+ "click:control": (e) => !0,
43
+ "mousedown:control": (e) => !0,
44
+ "update:focused": (e) => !0,
45
+ "update:modelValue": (e) => !0
46
+ },
47
+ setup(e, O) {
48
+ let {
49
+ attrs: V,
50
+ emit: F,
51
+ slots: n
52
+ } = O;
53
+ const u = fe(e, "modelValue", void 0, (t) => Object.is(t, -0) ? "-0" : t), {
54
+ isFocused: a,
55
+ focus: k,
56
+ blur: j
57
+ } = se(e), {
58
+ onIntersect: z
59
+ } = ce(e), U = x(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : (u.value ?? "").toString().length), $ = x(() => {
60
+ if (V.maxlength)
61
+ return V.maxlength;
62
+ if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
63
+ return e.counter;
64
+ }), _ = x(() => ["plain", "underlined"].includes(e.variant)), S = h(), A = h(), r = h(), f = re(e), q = x(() => ye.includes(e.type) || e.persistentPlaceholder || a.value || e.active);
65
+ function I() {
66
+ f.isSuppressing.value && f.update(), a.value || k(), P(() => {
67
+ var t;
68
+ r.value !== document.activeElement && ((t = r.value) == null || t.focus());
69
+ });
70
+ }
71
+ function G(t) {
72
+ F("mousedown:control", t), t.target !== r.value && (I(), t.preventDefault());
73
+ }
74
+ function H(t) {
75
+ F("click:control", t);
76
+ }
77
+ function J(t, l) {
78
+ t.stopPropagation(), I(), P(() => {
79
+ l(), xe(e["onClick:clear"], t);
80
+ });
81
+ }
82
+ function K(t) {
83
+ var v;
84
+ const l = t.target;
85
+ if (!((v = e.modelModifiers) != null && v.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
86
+ u.value = l.value;
87
+ return;
88
+ }
89
+ const c = l.value, m = l.selectionStart, g = l.selectionEnd;
90
+ u.value = c, P(() => {
91
+ let s = 0;
92
+ c.trimStart().length === l.value.length && (s = c.length - l.value.length), m != null && (l.selectionStart = m - s), g != null && (l.selectionEnd = g - s);
93
+ });
94
+ }
95
+ return ge(() => {
96
+ const t = !!(n.counter || e.counter !== !1 && e.counter != null), l = !!(t || n.details), [c, m] = ve(V), {
97
+ modelValue: g,
98
+ ...v
99
+ } = B.filterProps(e), s = T.filterProps(e);
100
+ return p(B, b({
101
+ ref: S,
102
+ modelValue: u.value,
103
+ "onUpdate:modelValue": (d) => u.value = d,
104
+ class: ["v-text-field", {
105
+ "v-text-field--prefixed": e.prefix,
106
+ "v-text-field--suffixed": e.suffix,
107
+ "v-input--plain-underlined": _.value
108
+ }, e.class],
109
+ style: e.style
110
+ }, c, v, {
111
+ centerAffix: !_.value,
112
+ focused: a.value
113
+ }), {
114
+ ...n,
115
+ default: (d) => {
116
+ let {
117
+ id: i,
118
+ isDisabled: w,
119
+ isDirty: N,
120
+ isReadonly: L,
121
+ isValid: Q,
122
+ hasDetails: W,
123
+ reset: X
124
+ } = d;
125
+ return p(T, b({
126
+ ref: A,
127
+ onMousedown: G,
128
+ onClick: H,
129
+ "onClick:clear": (y) => J(y, X),
130
+ role: e.role
131
+ }, M(s, ["onClick:clear"]), {
132
+ id: i.value,
133
+ labelId: `${i.value}-label`,
134
+ active: q.value || N.value,
135
+ dirty: N.value || e.dirty,
136
+ disabled: w.value,
137
+ focused: a.value,
138
+ details: W.value,
139
+ error: Q.value === !1
140
+ }), {
141
+ ...n,
142
+ default: (y) => {
143
+ let {
144
+ props: {
145
+ class: R,
146
+ ...Y
147
+ },
148
+ controlRef: Z
149
+ } = y;
150
+ const D = o("input", b({
151
+ ref: (ee) => r.value = Z.value = ee,
152
+ value: u.value,
153
+ onInput: K,
154
+ autofocus: e.autofocus,
155
+ readonly: L.value,
156
+ disabled: w.value,
157
+ name: f.fieldName.value,
158
+ autocomplete: f.fieldAutocomplete.value,
159
+ placeholder: e.placeholder,
160
+ size: 1,
161
+ role: e.role,
162
+ type: e.type,
163
+ onFocus: k,
164
+ onBlur: j,
165
+ "aria-labelledby": `${i.value}-label`
166
+ }, Y, m), null);
167
+ return o(C, null, [e.prefix && o("span", {
168
+ class: "v-text-field__prefix"
169
+ }, [o("span", {
170
+ class: "v-text-field__prefix__text"
171
+ }, [e.prefix])]), te(n.default ? o("div", {
172
+ class: le(R),
173
+ "data-no-activator": ""
174
+ }, [n.default({
175
+ id: i
176
+ }), D]) : ne(D, {
177
+ class: R
178
+ }), [[E, z, null, {
179
+ once: !0
180
+ }]]), e.suffix && o("span", {
181
+ class: "v-text-field__suffix"
182
+ }, [o("span", {
183
+ class: "v-text-field__suffix__text"
184
+ }, [e.suffix])])]);
185
+ }
186
+ });
187
+ },
188
+ details: l ? (d) => {
189
+ var i;
190
+ return o(C, null, [(i = n.details) == null ? void 0 : i.call(n, d), t && o(C, null, [o("span", null, null), p(oe, {
191
+ active: e.persistentCounter || a.value,
192
+ value: U.value,
193
+ max: $.value,
194
+ disabled: e.disabled
195
+ }, n.counter)])]);
196
+ } : void 0
197
+ });
198
+ }), de({}, S, A, r);
199
+ }
200
+ });
201
+ export {
202
+ Be as VTextField,
203
+ he as makeVTextFieldProps
204
+ };
@@ -0,0 +1,258 @@
1
+ import { computed as C, ref as w, shallowRef as re, watchEffect as ce, onMounted as se, watch as f, onBeforeUnmount as de, nextTick as P, createVNode as H, mergeProps as A, createElementVNode as r, Fragment as M, withDirectives as U, normalizeClass as fe, vModelText as me } from "vue";
2
+ import "../../../../../../../_virtual/VTextarea.sass.mjs";
3
+ import "../../../../../../../_virtual/VTextField.sass.mjs";
4
+ import { VCounter as ve } from "../VCounter/VCounter.mjs";
5
+ import { makeVFieldProps as xe, VField as $ } from "../VField/VField.mjs";
6
+ import { makeVInputProps as ge, VInput as O } from "../VInput/VInput.mjs";
7
+ import { makeAutocompleteProps as he, useAutocomplete as we } from "../../composables/autocomplete.mjs";
8
+ import { useAutofocus as ye } from "../../composables/autofocus.mjs";
9
+ import { useFocus as Ve } from "../../composables/focus.mjs";
10
+ import { forwardRefs as be } from "../../composables/forwardRefs.mjs";
11
+ import { useProxiedModel as Fe } from "../../composables/proxiedModel.mjs";
12
+ import W from "../../directives/intersect/index.mjs";
13
+ import { useDisplay as Ce } from "../../composables/display.mjs";
14
+ import { propsFactory as Pe } from "../../util/propsFactory.mjs";
15
+ import { omit as pe, convertToUnit as z, filterInputAttrs as ke, callEvent as Ie, clamp as Ne } from "../../util/helpers.mjs";
16
+ import { genericComponent as Re } from "../../util/defineComponent.mjs";
17
+ import { useRender as Se } from "../../util/useRender.mjs";
18
+ const He = Pe({
19
+ autoGrow: Boolean,
20
+ autofocus: Boolean,
21
+ counter: [Boolean, Number, String],
22
+ counterValue: Function,
23
+ prefix: String,
24
+ placeholder: String,
25
+ persistentPlaceholder: Boolean,
26
+ persistentCounter: Boolean,
27
+ noResize: Boolean,
28
+ rows: {
29
+ type: [Number, String],
30
+ default: 5,
31
+ validator: (e) => !isNaN(parseFloat(e))
32
+ },
33
+ maxHeight: {
34
+ type: [Number, String],
35
+ validator: (e) => !isNaN(parseFloat(e))
36
+ },
37
+ maxRows: {
38
+ type: [Number, String],
39
+ validator: (e) => !isNaN(parseFloat(e))
40
+ },
41
+ suffix: String,
42
+ modelModifiers: Object,
43
+ ...he(),
44
+ ...pe(ge(), ["direction"]),
45
+ ...xe()
46
+ }, "VTextarea"), Le = Re()({
47
+ name: "VTextarea",
48
+ directives: {
49
+ vIntersect: W
50
+ },
51
+ inheritAttrs: !1,
52
+ props: He(),
53
+ emits: {
54
+ "click:control": (e) => !0,
55
+ "mousedown:control": (e) => !0,
56
+ "update:focused": (e) => !0,
57
+ "update:modelValue": (e) => !0,
58
+ "update:rows": (e) => !0
59
+ },
60
+ setup(e, j) {
61
+ let {
62
+ attrs: p,
63
+ emit: k,
64
+ slots: n
65
+ } = j;
66
+ const l = Fe(e, "modelValue"), {
67
+ isFocused: y,
68
+ focus: q,
69
+ blur: J
70
+ } = Ve(e), {
71
+ onIntersect: K
72
+ } = ye(e), L = C(() => typeof e.counterValue == "function" ? e.counterValue(l.value) : (l.value || "").toString().length), Q = C(() => {
73
+ if (p.maxlength)
74
+ return p.maxlength;
75
+ if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
76
+ return e.counter;
77
+ }), B = w(), b = w(), T = re(""), m = w(), I = w(0), {
78
+ platform: X
79
+ } = Ce(), F = we(e), Y = C(() => e.persistentPlaceholder || y.value || e.active);
80
+ function N() {
81
+ var t;
82
+ F.isSuppressing.value && F.update(), m.value !== document.activeElement && ((t = m.value) == null || t.focus()), y.value || q();
83
+ }
84
+ function Z(t) {
85
+ N(), k("click:control", t);
86
+ }
87
+ function ee(t) {
88
+ k("mousedown:control", t);
89
+ }
90
+ function te(t) {
91
+ t.stopPropagation(), N(), P(() => {
92
+ l.value = "", Ie(e["onClick:clear"], t);
93
+ });
94
+ }
95
+ function ae(t) {
96
+ var g;
97
+ const a = t.target;
98
+ if (!((g = e.modelModifiers) != null && g.trim)) {
99
+ l.value = a.value;
100
+ return;
101
+ }
102
+ const o = a.value, x = a.selectionStart, s = a.selectionEnd;
103
+ l.value = o, P(() => {
104
+ let d = 0;
105
+ o.trimStart().length === a.value.length && (d = o.length - a.value.length), x != null && (a.selectionStart = x - d), s != null && (a.selectionEnd = s - d);
106
+ });
107
+ }
108
+ const v = w(), V = w(Number(e.rows)), R = C(() => ["plain", "underlined"].includes(e.variant));
109
+ ce(() => {
110
+ e.autoGrow || (V.value = Number(e.rows));
111
+ });
112
+ function c() {
113
+ P(() => {
114
+ if (!m.value)
115
+ return;
116
+ if (X.value.firefox) {
117
+ I.value = 12;
118
+ return;
119
+ }
120
+ const {
121
+ offsetWidth: t,
122
+ clientWidth: a
123
+ } = m.value;
124
+ I.value = Math.max(0, t - a);
125
+ }), e.autoGrow && P(() => {
126
+ if (!v.value || !b.value)
127
+ return;
128
+ const t = getComputedStyle(v.value), a = getComputedStyle(b.value.$el), o = parseFloat(t.getPropertyValue("--v-field-padding-top")) + parseFloat(t.getPropertyValue("--v-input-padding-top")) + parseFloat(t.getPropertyValue("--v-field-padding-bottom")), x = v.value.scrollHeight, s = parseFloat(t.lineHeight), g = Math.max(parseFloat(e.rows) * s + o, parseFloat(a.getPropertyValue("--v-input-control-height"))), d = e.maxHeight ? parseFloat(e.maxHeight) : parseFloat(e.maxRows) * s + o || 1 / 0, u = Ne(x ?? 0, g, d);
129
+ V.value = Math.floor((u - o) / s), T.value = z(u);
130
+ });
131
+ }
132
+ se(c), f(l, c), f(() => e.rows, c), f(() => e.maxHeight, c), f(() => e.maxRows, c), f(() => e.density, c), f(V, (t) => {
133
+ k("update:rows", t);
134
+ });
135
+ let i;
136
+ return f(v, (t) => {
137
+ t ? (i = new ResizeObserver(c), i.observe(v.value)) : i == null || i.disconnect();
138
+ }), de(() => {
139
+ i == null || i.disconnect();
140
+ }), Se(() => {
141
+ const t = !!(n.counter || e.counter || e.counterValue), a = !!(t || n.details), [o, x] = ke(p), {
142
+ modelValue: s,
143
+ ...g
144
+ } = O.filterProps(e), d = {
145
+ ...$.filterProps(e),
146
+ "onClick:clear": te
147
+ };
148
+ return H(O, A({
149
+ ref: B,
150
+ modelValue: l.value,
151
+ "onUpdate:modelValue": (u) => l.value = u,
152
+ class: ["v-textarea v-text-field", {
153
+ "v-textarea--prefixed": e.prefix,
154
+ "v-textarea--suffixed": e.suffix,
155
+ "v-text-field--prefixed": e.prefix,
156
+ "v-text-field--suffixed": e.suffix,
157
+ "v-textarea--auto-grow": e.autoGrow,
158
+ "v-textarea--no-resize": e.noResize || e.autoGrow,
159
+ "v-input--plain-underlined": R.value
160
+ }, e.class],
161
+ style: [{
162
+ "--v-textarea-max-height": e.maxHeight ? z(e.maxHeight) : void 0,
163
+ "--v-textarea-scroll-bar-width": z(I.value)
164
+ }, e.style]
165
+ }, o, g, {
166
+ centerAffix: V.value === 1 && !R.value,
167
+ focused: y.value
168
+ }), {
169
+ ...n,
170
+ default: (u) => {
171
+ let {
172
+ id: h,
173
+ isDisabled: _,
174
+ isDirty: D,
175
+ isReadonly: le,
176
+ isValid: oe,
177
+ hasDetails: ne
178
+ } = u;
179
+ return H($, A({
180
+ ref: b,
181
+ style: {
182
+ "--v-textarea-control-height": T.value
183
+ },
184
+ onClick: Z,
185
+ onMousedown: ee,
186
+ "onClick:prependInner": e["onClick:prependInner"],
187
+ "onClick:appendInner": e["onClick:appendInner"]
188
+ }, d, {
189
+ id: h.value,
190
+ active: Y.value || D.value,
191
+ labelId: `${h.value}-label`,
192
+ centerAffix: V.value === 1 && !R.value,
193
+ dirty: D.value || e.dirty,
194
+ disabled: _.value,
195
+ focused: y.value,
196
+ details: ne.value,
197
+ error: oe.value === !1
198
+ }), {
199
+ ...n,
200
+ default: (ie) => {
201
+ let {
202
+ props: {
203
+ class: E,
204
+ ...G
205
+ },
206
+ controlRef: ue
207
+ } = ie;
208
+ return r(M, null, [e.prefix && r("span", {
209
+ class: "v-text-field__prefix"
210
+ }, [e.prefix]), U(r("textarea", A({
211
+ ref: (S) => m.value = ue.value = S,
212
+ class: E,
213
+ value: l.value,
214
+ onInput: ae,
215
+ autofocus: e.autofocus,
216
+ readonly: le.value,
217
+ disabled: _.value,
218
+ placeholder: e.placeholder,
219
+ rows: e.rows,
220
+ name: F.fieldName.value,
221
+ autocomplete: F.fieldAutocomplete.value,
222
+ onFocus: N,
223
+ onBlur: J,
224
+ "aria-labelledby": `${h.value}-label`
225
+ }, G, x), null), [[W, {
226
+ handler: K
227
+ }, null, {
228
+ once: !0
229
+ }]]), e.autoGrow && U(r("textarea", {
230
+ class: fe([E, "v-textarea__sizer"]),
231
+ id: `${G.id}-sizer`,
232
+ "onUpdate:modelValue": (S) => l.value = S,
233
+ ref: v,
234
+ readonly: !0,
235
+ "aria-hidden": "true"
236
+ }, null), [[me, l.value]]), e.suffix && r("span", {
237
+ class: "v-text-field__suffix"
238
+ }, [e.suffix])]);
239
+ }
240
+ });
241
+ },
242
+ details: a ? (u) => {
243
+ var h;
244
+ return r(M, null, [(h = n.details) == null ? void 0 : h.call(n, u), t && r(M, null, [r("span", null, null), H(ve, {
245
+ active: e.persistentCounter || y.value,
246
+ value: L.value,
247
+ max: Q.value,
248
+ disabled: e.disabled
249
+ }, n.counter)])]);
250
+ } : void 0
251
+ });
252
+ }), be({}, B, b, m);
253
+ }
254
+ });
255
+ export {
256
+ Le as VTextarea,
257
+ He as makeVTextareaProps
258
+ };
@@ -0,0 +1,38 @@
1
+ import { toRef as e, createElementVNode as a, normalizeClass as i, normalizeStyle as n } from "vue";
2
+ import { makeComponentProps as l } from "../../composables/component.mjs";
3
+ import { provideDefaults as s } from "../../composables/defaults.mjs";
4
+ import { makeVariantProps as p } from "../../composables/variant.mjs";
5
+ import { propsFactory as f } from "../../util/propsFactory.mjs";
6
+ import { genericComponent as c } from "../../util/defineComponent.mjs";
7
+ import { useRender as V } from "../../util/useRender.mjs";
8
+ const v = f({
9
+ ...l(),
10
+ ...p({
11
+ variant: "text"
12
+ })
13
+ }, "VToolbarItems"), k = c()({
14
+ name: "VToolbarItems",
15
+ props: v(),
16
+ setup(o, m) {
17
+ let {
18
+ slots: r
19
+ } = m;
20
+ return s({
21
+ VBtn: {
22
+ color: e(() => o.color),
23
+ height: "inherit",
24
+ variant: e(() => o.variant)
25
+ }
26
+ }), V(() => {
27
+ var t;
28
+ return a("div", {
29
+ class: i(["v-toolbar-items", o.class]),
30
+ style: n(o.style)
31
+ }, [(t = r.default) == null ? void 0 : t.call(r)]);
32
+ }), {};
33
+ }
34
+ });
35
+ export {
36
+ k as VToolbarItems,
37
+ v as makeVToolbarItemsProps
38
+ };
@@ -0,0 +1,106 @@
1
+ import { toRef as I, createVNode as P, createElementVNode as a, Fragment as T, normalizeClass as _, normalizeStyle as x, onMounted as R, onScopeDispose as B } from "vue";
2
+ import "../../../../../../../_virtual/VVirtualScroll.sass.mjs";
3
+ import { VVirtualScrollItem as C } from "./VVirtualScrollItem.mjs";
4
+ import { makeComponentProps as E } from "../../composables/component.mjs";
5
+ import { makeDimensionProps as z, useDimension as D } from "../../composables/dimensions.mjs";
6
+ import { useToggleScope as L } from "../../composables/toggleScope.mjs";
7
+ import { makeVirtualProps as F, useVirtual as N } from "../../composables/virtual.mjs";
8
+ import { propsFactory as U } from "../../util/propsFactory.mjs";
9
+ import { genericComponent as b } from "../../util/defineComponent.mjs";
10
+ import { getCurrentInstance as w } from "../../util/getCurrentInstance.mjs";
11
+ import { useRender as A } from "../../util/useRender.mjs";
12
+ import { convertToUnit as s } from "../../util/helpers.mjs";
13
+ import { getScrollParent as M } from "../../util/getScrollParent.mjs";
14
+ const j = U({
15
+ items: {
16
+ type: Array,
17
+ default: () => []
18
+ },
19
+ renderless: Boolean,
20
+ ...F(),
21
+ ...E(),
22
+ ...z()
23
+ }, "VVirtualScroll"), le = b()({
24
+ name: "VVirtualScroll",
25
+ props: j(),
26
+ setup(e, f) {
27
+ let {
28
+ slots: i
29
+ } = f;
30
+ const g = w("VVirtualScroll"), {
31
+ dimensionStyles: V
32
+ } = D(e), {
33
+ calculateVisibleItems: S,
34
+ containerRef: r,
35
+ markerRef: c,
36
+ handleScroll: m,
37
+ handleScrollend: d,
38
+ handleItemResize: y,
39
+ scrollToIndex: h,
40
+ paddingTop: u,
41
+ paddingBottom: p,
42
+ computedItems: k
43
+ } = N(e, I(() => e.items));
44
+ return L(() => e.renderless, () => {
45
+ function t() {
46
+ var n, v;
47
+ const l = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
48
+ r.value === document.documentElement ? (document[l]("scroll", m, {
49
+ passive: !0
50
+ }), document[l]("scrollend", d)) : ((n = r.value) == null || n[l]("scroll", m, {
51
+ passive: !0
52
+ }), (v = r.value) == null || v[l]("scrollend", d));
53
+ }
54
+ R(() => {
55
+ r.value = M(g.vnode.el, !0), t(!0);
56
+ }), B(t);
57
+ }), A(() => {
58
+ const t = k.value.map((o) => P(C, {
59
+ key: o.key,
60
+ renderless: e.renderless,
61
+ "onUpdate:height": (l) => y(o.index, l)
62
+ }, {
63
+ default: (l) => {
64
+ var n;
65
+ return (n = i.default) == null ? void 0 : n.call(i, {
66
+ item: o.raw,
67
+ index: o.index,
68
+ ...l
69
+ });
70
+ }
71
+ }));
72
+ return e.renderless ? a(T, null, [a("div", {
73
+ ref: c,
74
+ class: "v-virtual-scroll__spacer",
75
+ style: {
76
+ paddingTop: s(u.value)
77
+ }
78
+ }, null), t, a("div", {
79
+ class: "v-virtual-scroll__spacer",
80
+ style: {
81
+ paddingBottom: s(p.value)
82
+ }
83
+ }, null)]) : a("div", {
84
+ ref: r,
85
+ class: _(["v-virtual-scroll", e.class]),
86
+ onScrollPassive: m,
87
+ onScrollend: d,
88
+ style: x([V.value, e.style])
89
+ }, [a("div", {
90
+ ref: c,
91
+ class: "v-virtual-scroll__container",
92
+ style: {
93
+ paddingTop: s(u.value),
94
+ paddingBottom: s(p.value)
95
+ }
96
+ }, [t])]);
97
+ }), {
98
+ calculateVisibleItems: S,
99
+ scrollToIndex: h
100
+ };
101
+ }
102
+ });
103
+ export {
104
+ le as VVirtualScroll,
105
+ j as makeVVirtualScrollProps
106
+ };
@@ -0,0 +1,47 @@
1
+ import { watch as u, createElementVNode as m, Fragment as c, mergeProps as p } from "vue";
2
+ import { makeComponentProps as f } from "../../composables/component.mjs";
3
+ import { useResizeObserver as d } from "../../composables/resizeObserver.mjs";
4
+ import { propsFactory as V } from "../../util/propsFactory.mjs";
5
+ import { genericComponent as h } from "../../util/defineComponent.mjs";
6
+ import { useRender as g } from "../../util/useRender.mjs";
7
+ const v = V({
8
+ renderless: Boolean,
9
+ ...f()
10
+ }, "VVirtualScrollItem"), k = h()({
11
+ name: "VVirtualScrollItem",
12
+ inheritAttrs: !1,
13
+ props: v(),
14
+ emits: {
15
+ "update:height": (r) => !0
16
+ },
17
+ setup(r, i) {
18
+ let {
19
+ attrs: a,
20
+ emit: n,
21
+ slots: t
22
+ } = i;
23
+ const {
24
+ resizeRef: o,
25
+ contentRect: s
26
+ } = d(void 0, "border");
27
+ u(() => {
28
+ var e;
29
+ return (e = s.value) == null ? void 0 : e.height;
30
+ }, (e) => {
31
+ e != null && n("update:height", e);
32
+ }), g(() => {
33
+ var e, l;
34
+ return r.renderless ? m(c, null, [(e = t.default) == null ? void 0 : e.call(t, {
35
+ itemRef: o
36
+ })]) : m("div", p({
37
+ ref: o,
38
+ class: ["v-virtual-scroll__item", r.class],
39
+ style: r.style
40
+ }, a), [(l = t.default) == null ? void 0 : l.call(t)]);
41
+ });
42
+ }
43
+ });
44
+ export {
45
+ k as VVirtualScrollItem,
46
+ v as makeVVirtualScrollItemProps
47
+ };