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
@@ -1,8 +1,21 @@
1
- import { defineComponent as ne, ref as k, inject as I, computed as v, resolveComponent as a, openBlock as s, createBlock as r, normalizeClass as oe, withCtx as o, createElementVNode as T, renderSlot as d, createVNode as u, createTextVNode as m, mergeProps as E, unref as i, createCommentVNode as p, toDisplayString as g, createElementBlock as L, Fragment as O, renderList as se } from "vue";
2
- import { useList as ie } from "../composables/list.mjs";
3
- import { useFilters as ae } from "../composables/filters.mjs";
4
- import { nestedValue as H, isLengthyArray as re } from "../composables/helpers.mjs";
5
- const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center" }, ge = /* @__PURE__ */ ne({
1
+ import { defineComponent as Y, ref as V, inject as C, computed as m, resolveComponent as z, openBlock as s, createBlock as a, unref as t, normalizeClass as Z, withCtx as i, createElementVNode as $, renderSlot as u, createVNode as r, createTextVNode as c, mergeProps as P, createCommentVNode as p, toDisplayString as f, createElementBlock as O, Fragment as R, renderList as _ } from "vue";
2
+ import { useList as ee } from "../composables/list.mjs";
3
+ import { useFilters as te } from "../composables/filters.mjs";
4
+ import { nestedValue as E, isLengthyArray as le } from "../composables/helpers.mjs";
5
+ import { VVirtualScroll as ne } from "../bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs";
6
+ import { VCol as oe } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
7
+ import { VListItem as S } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
8
+ import { VIcon as H } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
9
+ import { VMenu as G } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
10
+ import { VBtn as A } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
11
+ import { VList as I } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
12
+ import { VTextField as ie } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
13
+ import { VListItemTitle as w } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
14
+ import { VListItemSubtitle as T } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs";
15
+ import { VDivider as se } from "../bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs";
16
+ import { VOverlay as ae } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
17
+ import { VProgressCircular as re } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
18
+ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center" }, we = /* @__PURE__ */ Y({
6
19
  inheritAttrs: !1,
7
20
  __name: "BT-Select-List-Box",
8
21
  props: {
@@ -118,72 +131,72 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
118
131
  variant: {}
119
132
  },
120
133
  emits: ["update:modelValue", "change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
121
- setup(G, { emit: U }) {
122
- const F = U, l = G, y = k((l.alwaysOpen || l.isSelecting) ?? !1), f = I("size", () => k("small"), !0), j = I("isEditing", () => k(!1), !0), K = v(() => l.isEditing ?? j.value), c = ie(l, F, {
134
+ setup(U, { emit: j }) {
135
+ const b = j, n = U, y = V((n.alwaysOpen || n.isSelecting) ?? !1), v = C("size", () => V("small"), !0), K = C("isEditing", () => V(!1), !0), q = m(() => n.isEditing ?? K.value), d = ee(n, b, {
123
136
  // useBladeSrc: false,
124
137
  // useRouteSrc: false
125
- }), D = ae(), M = v(() => (e) => {
126
- let t = l.subtextFunction != null ? l.subtextFunction(e) : e;
127
- return t = l.itemSubtext != null ? H(t, l.itemSubtext) : t, l.subtextFilter != null ? D.findFilter(l.subtextFilter)(t) : t;
128
- }), C = v(() => (e) => {
129
- let t = l.textFunction != null ? l.textFunction(e) : e;
130
- return t = l.itemText != null ? H(t, l.itemText) : t, l.textFilter != null ? D.findFilter(l.textFilter)(t) : t;
131
- }), B = v(() => (e) => (l.itemValue ? e[l.itemValue] : e) == l.modelValue);
132
- function N() {
133
- K.value && (y.value = !0);
138
+ }), D = te(), L = m(() => (e) => {
139
+ let l = n.subtextFunction != null ? n.subtextFunction(e) : e;
140
+ return l = n.itemSubtext != null ? E(l, n.itemSubtext) : l, n.subtextFilter != null ? D.findFilter(n.subtextFilter)(l) : l;
141
+ }), k = m(() => (e) => {
142
+ let l = n.textFunction != null ? n.textFunction(e) : e;
143
+ return l = n.itemText != null ? E(l, n.itemText) : l, n.textFilter != null ? D.findFilter(n.textFilter)(l) : l;
144
+ }), h = m(() => (e) => (n.itemValue ? e[n.itemValue] : e) == n.modelValue);
145
+ function M() {
146
+ q.value && (y.value = !0);
134
147
  }
135
- function S(e) {
136
- if (y.value = !1, e != null || l.canSelectNone) {
137
- let t = e;
138
- e != null && l.itemValue != null && (t = e[l.itemValue]), F("update:modelValue", t), F("change", t);
148
+ function g(e) {
149
+ if (y.value = !1, e != null || n.canSelectNone) {
150
+ let l = e;
151
+ e != null && n.itemValue != null && (l = e[n.itemValue]), b("update:modelValue", l), b("change", l);
139
152
  }
140
153
  }
141
- const z = v(() => {
142
- const e = l.itemValue ?? "id";
143
- return l.modelValue != null && c.asyncItems.value != null ? c.asyncItems.value.find((t) => t[e] == l.modelValue) : null;
144
- }), V = I("isMobile", () => k(!1), !0), q = v(() => l.isMobile ?? V.value ? !1 : l.lg), x = v(() => l.isMobile ?? V.value ? !1 : l.md), Q = v(() => l.isMobile ?? V.value ? !1 : l.sm);
145
- return (e, t) => {
146
- const P = a("v-icon"), $ = a("v-btn"), A = a("v-list"), R = a("v-menu"), h = a("v-list-item"), J = a("v-text-field"), _ = a("v-list-item-title"), w = a("v-list-item-subtitle"), W = a("v-virtual-scroll"), X = a("v-divider"), Y = a("v-slide-x-transition"), Z = a("v-slide-y-transition"), ee = a("v-progress-circular"), te = a("v-overlay"), le = a("v-col");
147
- return s(), r(le, {
148
- class: oe(e.colClass),
149
- lg: q.value,
154
+ const N = m(() => {
155
+ const e = n.itemValue ?? "id";
156
+ return n.modelValue != null && d.asyncItems.value != null ? d.asyncItems.value.find((l) => l[e] == n.modelValue) : null;
157
+ }), F = C("isMobile", () => V(!1), !0), Q = m(() => n.isMobile ?? F.value ? !1 : n.lg), x = m(() => n.isMobile ?? F.value ? !1 : n.md), J = m(() => n.isMobile ?? F.value ? !1 : n.sm);
158
+ return (e, l) => {
159
+ const W = z("v-slide-x-transition"), X = z("v-slide-y-transition");
160
+ return s(), a(t(oe), {
161
+ class: Z(e.colClass),
162
+ lg: Q.value,
150
163
  md: x.value,
151
- sm: Q.value,
164
+ sm: J.value,
152
165
  cols: e.cols
153
166
  }, {
154
- default: o(() => [
155
- !e.alwaysOpen && y.value ? (s(), r(h, {
167
+ default: i(() => [
168
+ !e.alwaysOpen && y.value ? (s(), a(t(S), {
156
169
  key: 0,
157
- onClick: t[0] || (t[0] = (n) => y.value = !1),
170
+ onClick: l[0] || (l[0] = (o) => y.value = !1),
158
171
  density: e.density,
159
172
  subtitle: e.label
160
173
  }, {
161
- append: o(() => [
162
- T("div", ue, [
163
- d(e.$slots, "actions"),
164
- u(P, null, {
165
- default: o(() => t[6] || (t[6] = [
166
- m("$chevron-up")
174
+ append: i(() => [
175
+ $("div", ue, [
176
+ u(e.$slots, "actions"),
177
+ r(t(H), null, {
178
+ default: i(() => l[6] || (l[6] = [
179
+ c("$chevron-up")
167
180
  ])),
168
181
  _: 1
169
182
  }),
170
- d(e.$slots, "actionsRight"),
171
- e.showSettings ? (s(), r(R, {
183
+ u(e.$slots, "actionsRight"),
184
+ e.showSettings ? (s(), a(t(G), {
172
185
  key: 0,
173
186
  "offset-y": "",
174
187
  "close-on-content-click": !1
175
188
  }, {
176
- activator: o(({ props: n }) => [
177
- u($, E({
189
+ activator: i(({ props: o }) => [
190
+ r(t(A), P({
178
191
  icon: "$cog",
179
- size: i(f),
192
+ size: t(v),
180
193
  title: "Settings"
181
- }, n), null, 16, ["size"])
194
+ }, o), null, 16, ["size"])
182
195
  ]),
183
- default: o(() => [
184
- u(A, null, {
185
- default: o(() => [
186
- d(e.$slots, "settings")
196
+ default: i(() => [
197
+ r(t(I), null, {
198
+ default: i(() => [
199
+ u(e.$slots, "settings")
187
200
  ]),
188
201
  _: 3
189
202
  })
@@ -194,61 +207,61 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
194
207
  ]),
195
208
  _: 3
196
209
  }, 8, ["density", "subtitle"])) : p("", !0),
197
- u(Z, {
210
+ r(X, {
198
211
  "hide-on-leave": "",
199
212
  group: ""
200
213
  }, {
201
- default: o(() => [
202
- (e.alwaysOpen || y.value) && i(re)(e.searchProps) ? (s(), r(J, {
203
- "onClick:prependInner": t[2] || (t[2] = (n) => i(c).searchString.value = void 0),
214
+ default: i(() => [
215
+ (e.alwaysOpen || y.value) && t(le)(e.searchProps) ? (s(), a(t(ie), {
216
+ "onClick:prependInner": l[2] || (l[2] = (o) => t(d).searchString.value = void 0),
204
217
  "hide-details": "",
205
218
  key: "1",
206
219
  placeholder: "Search",
207
- "prepend-inner-icon": i(c).searchString.value != null ? "$close" : void 0,
208
- modelValue: i(c).searchString.value,
209
- "onUpdate:modelValue": t[3] || (t[3] = (n) => i(c).searchString.value = n)
220
+ "prepend-inner-icon": t(d).searchString.value != null ? "$close" : void 0,
221
+ modelValue: t(d).searchString.value,
222
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => t(d).searchString.value = o)
210
223
  }, {
211
- "append-inner": o(() => [
212
- e.canRefresh ? (s(), r($, {
224
+ "append-inner": i(() => [
225
+ e.canRefresh ? (s(), a(t(A), {
213
226
  key: 0,
214
- onClick: t[1] || (t[1] = (n) => i(c).refresh({ deepRefresh: !0 })),
227
+ onClick: l[1] || (l[1] = (o) => t(d).refresh({ deepRefresh: !0 })),
215
228
  icon: "$refresh",
216
- size: i(f),
229
+ size: t(v),
217
230
  variant: "text"
218
231
  }, null, 8, ["size"])) : p("", !0)
219
232
  ]),
220
233
  _: 1
221
234
  }, 8, ["prepend-inner-icon", "modelValue"])) : p("", !0),
222
- (e.alwaysOpen || y.value) && e.useVirtualScroller ? (s(), r(W, {
235
+ (e.alwaysOpen || y.value) && e.useVirtualScroller ? (s(), a(t(ne), {
223
236
  height: e.height,
224
237
  "item-height": "50",
225
- items: i(c).filteredItems.value,
238
+ items: t(d).filteredItems.value,
226
239
  key: "2",
227
240
  maxHeight: e.maxHeight
228
241
  }, {
229
- default: o(({ item: n }) => [
230
- d(e.$slots, "item", {
231
- item: n,
232
- selectItem: S(n),
233
- active: B.value(n)
242
+ default: i(({ item: o }) => [
243
+ u(e.$slots, "item", {
244
+ item: o,
245
+ selectItem: g(o),
246
+ active: h.value(o)
234
247
  }, () => [
235
- u(h, {
236
- onClick: (b) => S(n),
237
- active: B.value(n),
248
+ r(t(S), {
249
+ onClick: (B) => g(o),
250
+ active: h.value(o),
238
251
  color: "primary",
239
252
  density: e.density
240
253
  }, {
241
- default: o(() => [
242
- d(e.$slots, "default", { item: n }, () => [
243
- e.itemText != null || e.textFilter != null || e.textFunction != null ? (s(), r(_, { key: 0 }, {
244
- default: o(() => [
245
- m(g(C.value(n)), 1)
254
+ default: i(() => [
255
+ u(e.$slots, "default", { item: o }, () => [
256
+ e.itemText != null || e.textFilter != null || e.textFunction != null ? (s(), a(t(w), { key: 0 }, {
257
+ default: i(() => [
258
+ c(f(k.value(o)), 1)
246
259
  ]),
247
260
  _: 2
248
261
  }, 1024)) : p("", !0),
249
- e.itemSubtext != null || e.subtextFilter != null || e.subtextFunction != null ? (s(), r(w, { key: 1 }, {
250
- default: o(() => [
251
- m(g(M.value(n)), 1)
262
+ e.itemSubtext != null || e.subtextFilter != null || e.subtextFunction != null ? (s(), a(t(T), { key: 1 }, {
263
+ default: i(() => [
264
+ c(f(L.value(o)), 1)
252
265
  ]),
253
266
  _: 2
254
267
  }, 1024)) : p("", !0)
@@ -259,58 +272,58 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
259
272
  ])
260
273
  ]),
261
274
  _: 3
262
- }, 8, ["height", "items", "maxHeight"])) : e.alwaysOpen || y.value ? (s(), r(A, {
275
+ }, 8, ["height", "items", "maxHeight"])) : e.alwaysOpen || y.value ? (s(), a(t(I), {
263
276
  "bg-color": e.transparent ? "transparent" : void 0,
264
277
  height: e.height,
265
278
  maxHeight: e.maxHeight,
266
279
  key: "3",
267
280
  width: "100%"
268
281
  }, {
269
- default: o(() => [
270
- d(e.$slots, "topItem"),
271
- e.canSelectNone ? (s(), r(h, {
282
+ default: i(() => [
283
+ u(e.$slots, "topItem"),
284
+ e.canSelectNone ? (s(), a(t(S), {
272
285
  key: "-1",
273
286
  density: e.density,
274
- onClick: t[4] || (t[4] = (n) => S(null)),
287
+ onClick: l[4] || (l[4] = (o) => g(null)),
275
288
  subtitle: "(Select None)"
276
289
  }, null, 8, ["density"])) : p("", !0),
277
- u(Y, {
290
+ r(W, {
278
291
  group: "",
279
292
  "hide-on-leave": ""
280
293
  }, {
281
- default: o(() => [
282
- (s(!0), L(O, null, se(i(c).filteredItems.value, (n, b) => (s(), L(O, {
283
- key: `${n.id ?? b}-list-item`
294
+ default: i(() => [
295
+ (s(!0), O(R, null, _(t(d).filteredItems.value, (o, B) => (s(), O(R, {
296
+ key: `${o.id ?? B}-list-item`
284
297
  }, [
285
- d(e.$slots, "item", {
286
- item: n,
287
- index: b,
288
- size: i(f),
289
- isActive: B.value(n),
290
- selectItem: S
298
+ u(e.$slots, "item", {
299
+ item: o,
300
+ index: B,
301
+ size: t(v),
302
+ isActive: h.value(o),
303
+ selectItem: g
291
304
  }, () => [
292
- u(h, {
293
- active: B.value(n),
305
+ r(t(S), {
306
+ active: h.value(o),
294
307
  density: e.density,
295
308
  "prepend-icon": e.prependIcon,
296
- value: n,
297
- onClick: (ce) => S(n)
309
+ value: o,
310
+ onClick: (pe) => g(o)
298
311
  }, {
299
- default: o(() => [
300
- d(e.$slots, "default", {
301
- item: n,
302
- index: b,
303
- size: i(f)
312
+ default: i(() => [
313
+ u(e.$slots, "default", {
314
+ item: o,
315
+ index: B,
316
+ size: t(v)
304
317
  }, () => [
305
- e.itemText != null || e.textFilter != null || e.textFunction != null ? (s(), r(_, { key: 0 }, {
306
- default: o(() => [
307
- m(g(C.value(n)), 1)
318
+ e.itemText != null || e.textFilter != null || e.textFunction != null ? (s(), a(t(w), { key: 0 }, {
319
+ default: i(() => [
320
+ c(f(k.value(o)), 1)
308
321
  ]),
309
322
  _: 2
310
323
  }, 1024)) : p("", !0),
311
- e.itemSubtext != null || e.subtextFilter != null || e.subtextFunction != null ? (s(), r(w, { key: 1 }, {
312
- default: o(() => [
313
- m(g(M.value(n)), 1)
324
+ e.itemSubtext != null || e.subtextFilter != null || e.subtextFunction != null ? (s(), a(t(T), { key: 1 }, {
325
+ default: i(() => [
326
+ c(f(L.value(o)), 1)
314
327
  ]),
315
328
  _: 2
316
329
  }, 1024)) : p("", !0)
@@ -319,63 +332,63 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
319
332
  _: 2
320
333
  }, 1032, ["active", "density", "prepend-icon", "value", "onClick"])
321
334
  ]),
322
- e.hideDividers !== !0 ? (s(), r(X, { key: 0 })) : p("", !0)
335
+ e.hideDividers !== !0 ? (s(), a(t(se), { key: 0 })) : p("", !0)
323
336
  ], 64))), 128))
324
337
  ]),
325
338
  _: 3
326
339
  }),
327
- d(e.$slots, "bottomItem")
340
+ u(e.$slots, "bottomItem")
328
341
  ]),
329
342
  _: 3
330
- }, 8, ["bg-color", "height", "maxHeight"])) : d(e.$slots, "selected", {
343
+ }, 8, ["bg-color", "height", "maxHeight"])) : u(e.$slots, "selected", {
331
344
  key: 3,
332
- item: z.value,
333
- open: N
345
+ item: N.value,
346
+ open: M
334
347
  }, () => [
335
- u(h, {
336
- onClick: N,
348
+ r(t(S), {
349
+ onClick: M,
337
350
  density: e.density,
338
351
  key: "4"
339
352
  }, {
340
- default: o(() => [
341
- e.label != null ? (s(), r(w, { key: 0 }, {
342
- default: o(() => [
343
- m(g(e.label), 1)
353
+ default: i(() => [
354
+ e.label != null ? (s(), a(t(T), { key: 0 }, {
355
+ default: i(() => [
356
+ c(f(e.label), 1)
344
357
  ]),
345
358
  _: 1
346
359
  })) : p("", !0),
347
- u(_, null, {
348
- default: o(() => [
349
- m(g(C.value(z.value) ?? e.placeholder), 1)
360
+ r(t(w), null, {
361
+ default: i(() => [
362
+ c(f(k.value(N.value) ?? e.placeholder), 1)
350
363
  ]),
351
364
  _: 1
352
365
  })
353
366
  ]),
354
- append: o(() => [
355
- T("div", de, [
356
- d(e.$slots, "actions"),
357
- u(P, null, {
358
- default: o(() => t[7] || (t[7] = [
359
- m("$chevron-down")
367
+ append: i(() => [
368
+ $("div", de, [
369
+ u(e.$slots, "actions"),
370
+ r(t(H), null, {
371
+ default: i(() => l[7] || (l[7] = [
372
+ c("$chevron-down")
360
373
  ])),
361
374
  _: 1
362
375
  }),
363
- d(e.$slots, "actionsRight"),
364
- e.showSettings ? (s(), r(R, {
376
+ u(e.$slots, "actionsRight"),
377
+ e.showSettings ? (s(), a(t(G), {
365
378
  key: 0,
366
379
  "offset-y": "",
367
380
  "close-on-content-click": !1
368
381
  }, {
369
- activator: o(({ props: n }) => [
370
- u($, E({ icon: "" }, n, {
371
- size: i(f),
382
+ activator: i(({ props: o }) => [
383
+ r(t(A), P({ icon: "" }, o, {
384
+ size: t(v),
372
385
  title: "Settings"
373
386
  }), null, 16, ["size"])
374
387
  ]),
375
- default: o(() => [
376
- u(A, null, {
377
- default: o(() => [
378
- d(e.$slots, "settings")
388
+ default: i(() => [
389
+ r(t(I), null, {
390
+ default: i(() => [
391
+ u(e.$slots, "settings")
379
392
  ]),
380
393
  _: 3
381
394
  })
@@ -390,16 +403,16 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
390
403
  ]),
391
404
  _: 3
392
405
  }),
393
- u(te, {
394
- modelValue: i(c).isLoading.value,
395
- "onUpdate:modelValue": t[5] || (t[5] = (n) => i(c).isLoading.value = n),
406
+ r(t(ae), {
407
+ modelValue: t(d).isLoading.value,
408
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => t(d).isLoading.value = o),
396
409
  class: "align-center justify-center text-center",
397
410
  contained: "",
398
411
  persistent: ""
399
412
  }, {
400
- default: o(() => [
401
- u(ee, { indeterminate: "" }),
402
- T("p", null, g(i(c).loadingMsg.value), 1)
413
+ default: i(() => [
414
+ r(t(re), { indeterminate: "" }),
415
+ $("p", null, f(t(d).loadingMsg.value), 1)
403
416
  ]),
404
417
  _: 1
405
418
  }, 8, ["modelValue"])
@@ -410,5 +423,5 @@ const ue = { class: "d-flex align-center" }, de = { class: "d-flex align-center"
410
423
  }
411
424
  });
412
425
  export {
413
- ge as default
426
+ we as default
414
427
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as d, computed as u, resolveComponent as y, openBlock as v, createBlock as S, mergeProps as g, unref as o } from "vue";
2
- import { useList as B } from "../composables/list.mjs";
3
- import { useNavigation as f } from "../composables/navigation.mjs";
4
- import { TestRequired as h } from "../composables/rules.mjs";
5
- const D = /* @__PURE__ */ d({
1
+ import { defineComponent as m, computed as d, openBlock as u, createBlock as y, unref as o, mergeProps as S } from "vue";
2
+ import { useList as g } from "../composables/list.mjs";
3
+ import { useNavigation as B } from "../composables/navigation.mjs";
4
+ import { TestRequired as v } from "../composables/rules.mjs";
5
+ import { VSelect as f } from "../bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs";
6
+ const D = /* @__PURE__ */ m({
6
7
  __name: "BT-Select-Simple",
7
8
  props: {
8
9
  additionalUrl: {},
@@ -97,28 +98,25 @@ const D = /* @__PURE__ */ d({
97
98
  },
98
99
  emits: ["change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
99
100
  setup(r, { emit: s }) {
100
- const i = s, c = f(), t = r, p = t.itemText ?? (t.nav != null ? c.findItemText(t.nav) : void 0) ?? void 0, n = B(t, i), a = u(() => {
101
+ const i = s, c = B(), t = r, p = t.itemText ?? (t.nav != null ? c.findItemText(t.nav) : void 0) ?? void 0, n = g(t, i), a = d(() => {
101
102
  var e = [
102
103
  ...t.rules ?? []
103
104
  ];
104
- return t.required && e.push(h), e.length > 0 ? e : void 0;
105
+ return t.required && e.push(v), e.length > 0 ? e : void 0;
105
106
  });
106
- return (e, l) => {
107
- const m = y("v-select");
108
- return v(), S(m, g({
109
- "append-icon": e.canRefresh ? "$refresh" : void 0,
110
- clearable: e.canSelectNone,
111
- "onClick:appendIcon": l[0] || (l[0] = (A) => o(n).refresh({ deepRefresh: !0 })),
112
- "hide-details": a.value == null,
113
- items: o(n).filteredItems.value,
114
- "item-title": o(p),
115
- "item-value": e.itemValue,
116
- loading: o(n).isLoading.value,
117
- multiple: e.multiple,
118
- rules: a.value,
119
- variant: e.fieldVariant
120
- }, e.$attrs), null, 16, ["append-icon", "clearable", "hide-details", "items", "item-title", "item-value", "loading", "multiple", "rules", "variant"]);
121
- };
107
+ return (e, l) => (u(), y(o(f), S({
108
+ "append-icon": e.canRefresh ? "$refresh" : void 0,
109
+ clearable: e.canSelectNone,
110
+ "onClick:appendIcon": l[0] || (l[0] = (h) => o(n).refresh({ deepRefresh: !0 })),
111
+ "hide-details": a.value == null,
112
+ items: o(n).filteredItems.value,
113
+ "item-title": o(p),
114
+ "item-value": e.itemValue,
115
+ loading: o(n).isLoading.value,
116
+ multiple: e.multiple,
117
+ rules: a.value,
118
+ variant: e.fieldVariant
119
+ }, e.$attrs), null, 16, ["append-icon", "clearable", "hide-details", "items", "item-title", "item-value", "loading", "multiple", "rules", "variant"]));
122
120
  }
123
121
  });
124
122
  export {
@@ -1,8 +1,10 @@
1
- import { defineComponent as h, computed as A, resolveComponent as p, openBlock as C, createBlock as I, mergeProps as R, unref as n, withCtx as m, renderSlot as u, normalizeProps as a, guardReactiveProps as l, createVNode as d } from "vue";
2
- import { useList as T } from "../composables/list.mjs";
3
- import { useNavigation as P } from "../composables/navigation.mjs";
4
- import { TestRequired as D } from "../composables/rules.mjs";
5
- const k = /* @__PURE__ */ h({
1
+ import { defineComponent as B, computed as f, openBlock as h, createBlock as A, unref as t, mergeProps as I, withCtx as c, renderSlot as p, normalizeProps as a, guardReactiveProps as r, createVNode as m } from "vue";
2
+ import { useList as C } from "../composables/list.mjs";
3
+ import { useNavigation as R } from "../composables/navigation.mjs";
4
+ import { TestRequired as T } from "../composables/rules.mjs";
5
+ import { VSelect as P } from "../bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs";
6
+ import { VListItem as u } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
7
+ const k = /* @__PURE__ */ B({
6
8
  __name: "BT-Select",
7
9
  props: {
8
10
  additionalUrl: {},
@@ -96,41 +98,38 @@ const k = /* @__PURE__ */ h({
96
98
  variant: {}
97
99
  },
98
100
  emits: ["change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
99
- setup(y, { emit: v }) {
100
- const g = v, S = P(), t = y, B = t.itemText ?? (t.nav != null ? S.findItemText(t.nav) : void 0) ?? void 0, r = T(t, g), s = A(() => {
101
+ setup(d, { emit: y }) {
102
+ const S = y, g = R(), o = d, v = o.itemText ?? (o.nav != null ? g.findItemText(o.nav) : void 0) ?? void 0, l = C(o, S), s = f(() => {
101
103
  var e = [
102
- ...t.rules ?? []
104
+ ...o.rules ?? []
103
105
  ];
104
- return t.required && e.push(D), e.length > 0 ? e : void 0;
106
+ return o.required && e.push(T), e.length > 0 ? e : void 0;
105
107
  });
106
- return (e, i) => {
107
- const c = p("v-list-item"), f = p("v-select");
108
- return C(), I(f, R({
109
- "append-icon": e.canRefresh ? "$refresh" : void 0,
110
- clearable: e.canSelectNone,
111
- "onClick:appendIcon": i[0] || (i[0] = (o) => n(r).refresh({ deepRefresh: !0 })),
112
- "hide-details": s.value == null,
113
- items: n(r).filteredItems.value,
114
- "item-title": n(B),
115
- "item-value": e.itemValue,
116
- loading: n(r).isLoading.value,
117
- multiple: e.multiple,
118
- rules: s.value,
119
- variant: e.fieldVariant
120
- }, e.$attrs), {
121
- item: m((o) => [
122
- u(e.$slots, "item", a(l(o)), () => [
123
- d(c, a(l(o.props)), null, 16)
124
- ])
125
- ]),
126
- selection: m((o) => [
127
- u(e.$slots, "selection", a(l(o)), () => [
128
- d(c, a(l(o.item.props)), null, 16)
129
- ])
130
- ]),
131
- _: 3
132
- }, 16, ["append-icon", "clearable", "hide-details", "items", "item-title", "item-value", "loading", "multiple", "rules", "variant"]);
133
- };
108
+ return (e, i) => (h(), A(t(P), I({
109
+ "append-icon": e.canRefresh ? "$refresh" : void 0,
110
+ clearable: e.canSelectNone,
111
+ "onClick:appendIcon": i[0] || (i[0] = (n) => t(l).refresh({ deepRefresh: !0 })),
112
+ "hide-details": s.value == null,
113
+ items: t(l).filteredItems.value,
114
+ "item-title": t(v),
115
+ "item-value": e.itemValue,
116
+ loading: t(l).isLoading.value,
117
+ multiple: e.multiple,
118
+ rules: s.value,
119
+ variant: e.fieldVariant
120
+ }, e.$attrs), {
121
+ item: c((n) => [
122
+ p(e.$slots, "item", a(r(n)), () => [
123
+ m(t(u), a(r(n.props)), null, 16)
124
+ ])
125
+ ]),
126
+ selection: c((n) => [
127
+ p(e.$slots, "selection", a(r(n)), () => [
128
+ m(t(u), a(r(n.item.props)), null, 16)
129
+ ])
130
+ ]),
131
+ _: 3
132
+ }, 16, ["append-icon", "clearable", "hide-details", "items", "item-title", "item-value", "loading", "multiple", "rules", "variant"]));
134
133
  }
135
134
  });
136
135
  export {