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.
- package/dist/_virtual/VCheckbox.sass.mjs +1 -0
- package/dist/_virtual/VChip.sass.mjs +1 -0
- package/dist/_virtual/VChipGroup.sass.mjs +1 -0
- package/dist/_virtual/VColorPicker.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerCanvas.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerEdit.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerPreview.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerSwatches.sass.mjs +1 -0
- package/dist/_virtual/VCombobox.sass.mjs +1 -0
- package/dist/_virtual/VContainer.sass.mjs +1 -0
- package/dist/_virtual/VCounter.sass.mjs +1 -0
- package/dist/_virtual/VDialog.sass.mjs +1 -0
- package/dist/_virtual/VField.sass.mjs +1 -0
- package/dist/_virtual/VGrid.sass.mjs +1 -0
- package/dist/_virtual/VInput.sass.mjs +1 -0
- package/dist/_virtual/VLabel.sass.mjs +1 -0
- package/dist/_virtual/VMessages.sass.mjs +1 -0
- package/dist/_virtual/VNavigationDrawer.sass.mjs +1 -0
- package/dist/_virtual/VPagination.sass.mjs +1 -0
- package/dist/_virtual/VPicker.sass.mjs +1 -0
- package/dist/_virtual/VRating.sass.mjs +1 -0
- package/dist/_virtual/VSelect.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControl.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControlGroup.sass.mjs +1 -0
- package/dist/_virtual/VSheet.sass.mjs +1 -0
- package/dist/_virtual/VSlideGroup.sass.mjs +1 -0
- package/dist/_virtual/VSlider.sass.mjs +1 -0
- package/dist/_virtual/VSliderThumb.sass.mjs +1 -0
- package/dist/_virtual/VSliderTrack.sass.mjs +1 -0
- package/dist/_virtual/VSpacer.sass.mjs +1 -0
- package/dist/_virtual/VSwitch.sass.mjs +1 -0
- package/dist/_virtual/VTab.sass.mjs +1 -0
- package/dist/_virtual/VTable.sass.mjs +1 -0
- package/dist/_virtual/VTabs.sass.mjs +1 -0
- package/dist/_virtual/VTextField.sass.mjs +1 -0
- package/dist/_virtual/VTextarea.sass.mjs +1 -0
- package/dist/_virtual/VVirtualScroll.sass.mjs +1 -0
- package/dist/_virtual/VWindow.sass.mjs +1 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.mjs +14 -14
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckboxBtn.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChip/VChip.mjs +263 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChipGroup/VChipGroup.mjs +87 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs +161 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerCanvas.mjs +166 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerEdit.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerPreview.mjs +123 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerSwatches.mjs +72 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/util/index.mjs +193 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCombobox/VCombobox.mjs +501 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCounter/VCounter.mjs +51 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs +103 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VField.mjs +295 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VFieldLabel.mjs +28 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VForm/VForm.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs +98 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs +104 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs +6 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/InputIcon.mjs +40 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/VInput.mjs +154 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VLabel/VLabel.mjs +36 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMessages/VMessages.mjs +55 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +247 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/sticky.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/touch.mjs +100 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +315 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VRating/VRating.mjs +217 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs +475 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/useScrolling.mjs +57 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControl/VSelectionControl.mjs +183 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSheet/VSheet.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/VSlideGroup.mjs +287 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/helpers.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSlider.mjs +159 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderThumb.mjs +176 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderTrack.mjs +109 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/slider.mjs +242 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs +172 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTable/VTable.mjs +66 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTab.mjs +126 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabs.mjs +153 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindow.mjs +48 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindowItem.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/shared.mjs +4 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +258 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +47 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs +211 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs +93 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +21 -19
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autocomplete.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autofocus.mjs +14 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/display.mjs +21 -12
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/filter.mjs +125 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focus.mjs +31 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusGroups.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/form.mjs +112 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/goto.mjs +86 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +4 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/layout.mjs +43 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/list-items.mjs +92 -5
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/menuActivator.mjs +24 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/nested.mjs +1 -1
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/refs.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/touch.mjs +73 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/validation.mjs +139 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/virtual.mjs +164 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/touch/index.mjs +89 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPicker.mjs +77 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPickerTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/rules/rules.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/color/transformSRGB.mjs +16 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colorUtils.mjs +133 -50
- package/dist/bt-core/core/node_modules/vuetify/lib/util/easing.mjs +20 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/util/globals.mjs +2 -1
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +248 -141
- package/dist/components/BT-Assistant-Menu.vue.mjs +226 -211
- package/dist/components/BT-Avatar.vue.mjs +31 -31
- package/dist/components/BT-Background-Task.vue.mjs +30 -28
- package/dist/components/BT-Blade-Item.vue.mjs +111 -102
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +413 -402
- package/dist/components/BT-Blade-Steps.vue.mjs +1 -1
- package/dist/components/BT-Blade-Steps.vue2.mjs +597 -583
- package/dist/components/BT-Blade.vue.mjs +19 -19
- package/dist/components/BT-Btn.vue.mjs +23 -25
- package/dist/components/BT-Camera-Overlay.vue.mjs +72 -68
- package/dist/components/BT-Col.vue.mjs +17 -19
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +51 -49
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +180 -173
- package/dist/components/BT-Cron.vue.mjs +249 -235
- package/dist/components/BT-Date-Select.vue.mjs +46 -47
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +40 -40
- package/dist/components/BT-Dialog-Confirm.vue.mjs +39 -39
- package/dist/components/BT-Dialog-Date.vue.mjs +22 -19
- package/dist/components/BT-Dialog-Number.vue.mjs +125 -121
- package/dist/components/BT-Dialog-Select.vue.mjs +107 -97
- package/dist/components/BT-Divider.vue.mjs +20 -21
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +58 -56
- package/dist/components/BT-Entity.vue.mjs +50 -48
- package/dist/components/BT-Error.vue.mjs +16 -15
- package/dist/components/BT-Field-Checkbox.vue.mjs +30 -31
- package/dist/components/BT-Field-Date.vue.mjs +87 -84
- package/dist/components/BT-Field-Entity.vue.mjs +20 -16
- package/dist/components/BT-Field-Select-Simple.vue.mjs +24 -26
- package/dist/components/BT-Field-Select.vue.mjs +32 -34
- package/dist/components/BT-Field-String.vue.mjs +54 -52
- package/dist/components/BT-Field-Switch.vue.mjs +44 -43
- package/dist/components/BT-Field-Tags.vue.mjs +57 -55
- package/dist/components/BT-Field-Textarea.vue.mjs +44 -43
- package/dist/components/BT-Field-Trigger.vue.mjs +276 -270
- package/dist/components/BT-Field.vue.mjs +39 -38
- package/dist/components/BT-Form-Builder.vue.mjs +342 -322
- package/dist/components/BT-Form-Field.vue.mjs +81 -75
- package/dist/components/BT-Form.vue.mjs +263 -253
- package/dist/components/BT-Header-Option.vue.mjs +10 -9
- package/dist/components/BT-Image-Select.vue.mjs +186 -177
- package/dist/components/BT-Json.vue.mjs +29 -30
- package/dist/components/BT-Loader.vue.mjs +32 -31
- package/dist/components/BT-Nav-Sidebar.vue.mjs +130 -124
- package/dist/components/BT-Number.vue.mjs +2 -2
- package/dist/components/BT-Number.vue2.mjs +17 -19
- package/dist/components/BT-Numpad.vue.mjs +71 -66
- package/dist/components/BT-Select-List-Box.vue.mjs +157 -144
- package/dist/components/BT-Select-Simple.vue.mjs +21 -23
- package/dist/components/BT-Select.vue.mjs +36 -37
- package/dist/components/BT-Signature-Overlay.vue.mjs +63 -60
- package/dist/components/BT-Signature.vue.mjs +66 -64
- package/dist/components/BT-Slider.vue.mjs +69 -61
- package/dist/components/BT-Square-Check.vue.mjs +24 -22
- package/dist/components/BT-Status-Item.vue.mjs +18 -16
- package/dist/components/BT-Tags.vue.mjs +21 -22
- package/dist/components/BT-Tour.vue.mjs +69 -65
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useList as
|
|
3
|
-
import { useFilters as
|
|
4
|
-
import { nestedValue as
|
|
5
|
-
|
|
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(
|
|
122
|
-
const
|
|
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 =
|
|
126
|
-
let
|
|
127
|
-
return
|
|
128
|
-
}),
|
|
129
|
-
let
|
|
130
|
-
return
|
|
131
|
-
}),
|
|
132
|
-
function
|
|
133
|
-
|
|
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
|
|
136
|
-
if (y.value = !1, e != null ||
|
|
137
|
-
let
|
|
138
|
-
e != null &&
|
|
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
|
|
142
|
-
const e =
|
|
143
|
-
return
|
|
144
|
-
}),
|
|
145
|
-
return (e,
|
|
146
|
-
const
|
|
147
|
-
return s(),
|
|
148
|
-
class:
|
|
149
|
-
lg:
|
|
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:
|
|
164
|
+
sm: J.value,
|
|
152
165
|
cols: e.cols
|
|
153
166
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
!e.alwaysOpen && y.value ? (s(),
|
|
167
|
+
default: i(() => [
|
|
168
|
+
!e.alwaysOpen && y.value ? (s(), a(t(S), {
|
|
156
169
|
key: 0,
|
|
157
|
-
onClick:
|
|
170
|
+
onClick: l[0] || (l[0] = (o) => y.value = !1),
|
|
158
171
|
density: e.density,
|
|
159
172
|
subtitle: e.label
|
|
160
173
|
}, {
|
|
161
|
-
append:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
|
|
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
|
-
|
|
171
|
-
e.showSettings ? (s(),
|
|
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:
|
|
177
|
-
|
|
189
|
+
activator: i(({ props: o }) => [
|
|
190
|
+
r(t(A), P({
|
|
178
191
|
icon: "$cog",
|
|
179
|
-
size:
|
|
192
|
+
size: t(v),
|
|
180
193
|
title: "Settings"
|
|
181
|
-
},
|
|
194
|
+
}, o), null, 16, ["size"])
|
|
182
195
|
]),
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
default:
|
|
186
|
-
|
|
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
|
-
|
|
210
|
+
r(X, {
|
|
198
211
|
"hide-on-leave": "",
|
|
199
212
|
group: ""
|
|
200
213
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
(e.alwaysOpen || y.value) &&
|
|
203
|
-
"onClick:prependInner":
|
|
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":
|
|
208
|
-
modelValue:
|
|
209
|
-
"onUpdate:modelValue":
|
|
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":
|
|
212
|
-
e.canRefresh ? (s(),
|
|
224
|
+
"append-inner": i(() => [
|
|
225
|
+
e.canRefresh ? (s(), a(t(A), {
|
|
213
226
|
key: 0,
|
|
214
|
-
onClick:
|
|
227
|
+
onClick: l[1] || (l[1] = (o) => t(d).refresh({ deepRefresh: !0 })),
|
|
215
228
|
icon: "$refresh",
|
|
216
|
-
size:
|
|
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(),
|
|
235
|
+
(e.alwaysOpen || y.value) && e.useVirtualScroller ? (s(), a(t(ne), {
|
|
223
236
|
height: e.height,
|
|
224
237
|
"item-height": "50",
|
|
225
|
-
items:
|
|
238
|
+
items: t(d).filteredItems.value,
|
|
226
239
|
key: "2",
|
|
227
240
|
maxHeight: e.maxHeight
|
|
228
241
|
}, {
|
|
229
|
-
default:
|
|
230
|
-
|
|
231
|
-
item:
|
|
232
|
-
selectItem:
|
|
233
|
-
active:
|
|
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
|
-
|
|
236
|
-
onClick: (
|
|
237
|
-
active:
|
|
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:
|
|
242
|
-
|
|
243
|
-
e.itemText != null || e.textFilter != null || e.textFunction != null ? (s(),
|
|
244
|
-
default:
|
|
245
|
-
|
|
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(),
|
|
250
|
-
default:
|
|
251
|
-
|
|
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(),
|
|
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:
|
|
270
|
-
|
|
271
|
-
e.canSelectNone ? (s(),
|
|
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:
|
|
287
|
+
onClick: l[4] || (l[4] = (o) => g(null)),
|
|
275
288
|
subtitle: "(Select None)"
|
|
276
289
|
}, null, 8, ["density"])) : p("", !0),
|
|
277
|
-
|
|
290
|
+
r(W, {
|
|
278
291
|
group: "",
|
|
279
292
|
"hide-on-leave": ""
|
|
280
293
|
}, {
|
|
281
|
-
default:
|
|
282
|
-
(s(!0),
|
|
283
|
-
key: `${
|
|
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
|
-
|
|
286
|
-
item:
|
|
287
|
-
index:
|
|
288
|
-
size:
|
|
289
|
-
isActive:
|
|
290
|
-
selectItem:
|
|
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
|
-
|
|
293
|
-
active:
|
|
305
|
+
r(t(S), {
|
|
306
|
+
active: h.value(o),
|
|
294
307
|
density: e.density,
|
|
295
308
|
"prepend-icon": e.prependIcon,
|
|
296
|
-
value:
|
|
297
|
-
onClick: (
|
|
309
|
+
value: o,
|
|
310
|
+
onClick: (pe) => g(o)
|
|
298
311
|
}, {
|
|
299
|
-
default:
|
|
300
|
-
|
|
301
|
-
item:
|
|
302
|
-
index:
|
|
303
|
-
size:
|
|
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(),
|
|
306
|
-
default:
|
|
307
|
-
|
|
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(),
|
|
312
|
-
default:
|
|
313
|
-
|
|
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(),
|
|
335
|
+
e.hideDividers !== !0 ? (s(), a(t(se), { key: 0 })) : p("", !0)
|
|
323
336
|
], 64))), 128))
|
|
324
337
|
]),
|
|
325
338
|
_: 3
|
|
326
339
|
}),
|
|
327
|
-
|
|
340
|
+
u(e.$slots, "bottomItem")
|
|
328
341
|
]),
|
|
329
342
|
_: 3
|
|
330
|
-
}, 8, ["bg-color", "height", "maxHeight"])) :
|
|
343
|
+
}, 8, ["bg-color", "height", "maxHeight"])) : u(e.$slots, "selected", {
|
|
331
344
|
key: 3,
|
|
332
|
-
item:
|
|
333
|
-
open:
|
|
345
|
+
item: N.value,
|
|
346
|
+
open: M
|
|
334
347
|
}, () => [
|
|
335
|
-
|
|
336
|
-
onClick:
|
|
348
|
+
r(t(S), {
|
|
349
|
+
onClick: M,
|
|
337
350
|
density: e.density,
|
|
338
351
|
key: "4"
|
|
339
352
|
}, {
|
|
340
|
-
default:
|
|
341
|
-
e.label != null ? (s(),
|
|
342
|
-
default:
|
|
343
|
-
|
|
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
|
-
|
|
348
|
-
default:
|
|
349
|
-
|
|
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:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
default:
|
|
359
|
-
|
|
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
|
-
|
|
364
|
-
e.showSettings ? (s(),
|
|
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:
|
|
370
|
-
|
|
371
|
-
size:
|
|
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:
|
|
376
|
-
|
|
377
|
-
default:
|
|
378
|
-
|
|
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
|
-
|
|
394
|
-
modelValue:
|
|
395
|
-
"onUpdate:modelValue":
|
|
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:
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
426
|
+
we as default
|
|
414
427
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useList as
|
|
3
|
-
import { useNavigation as
|
|
4
|
-
import { TestRequired as
|
|
5
|
-
|
|
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 =
|
|
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(
|
|
105
|
+
return t.required && e.push(v), e.length > 0 ? e : void 0;
|
|
105
106
|
});
|
|
106
|
-
return (e, l) => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
|
2
|
-
import { useList as
|
|
3
|
-
import { useNavigation as
|
|
4
|
-
import { TestRequired as
|
|
5
|
-
|
|
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(
|
|
100
|
-
const
|
|
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
|
-
...
|
|
104
|
+
...o.rules ?? []
|
|
103
105
|
];
|
|
104
|
-
return
|
|
106
|
+
return o.required && e.push(T), e.length > 0 ? e : void 0;
|
|
105
107
|
});
|
|
106
|
-
return (e, i) => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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 {
|