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,11 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as $, computed as o, ref as p, inject as r, openBlock as f, createBlock as c, unref as t, normalizeClass as q, withCtx as i, createVNode as s, createTextVNode as k, toDisplayString as S, mergeProps as M } from "vue";
|
|
2
|
+
import A from "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs";
|
|
3
3
|
import "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs";
|
|
4
|
-
import { useAuth as
|
|
5
|
-
import { useDates as
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import { TestRequired as
|
|
8
|
-
|
|
4
|
+
import { useAuth as R } from "../composables/auth.mjs";
|
|
5
|
+
import { useDates as U } from "../composables/dates.mjs";
|
|
6
|
+
import { useTheme as Z } from "vuetify";
|
|
7
|
+
import { TestRequired as j } from "../composables/rules.mjs";
|
|
8
|
+
import { VCol as P } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
9
|
+
import { VListItem as Q } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
10
|
+
import { VListItemSubtitle as G } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs";
|
|
11
|
+
import { VListItemTitle as H } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
|
|
12
|
+
import { VMenu as J } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
13
|
+
import { VTextField as K } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
14
|
+
const re = /* @__PURE__ */ $({
|
|
9
15
|
inheritAttrs: !1,
|
|
10
16
|
__name: "BT-Field-Date",
|
|
11
17
|
props: {
|
|
@@ -30,91 +36,88 @@ const te = /* @__PURE__ */ j({
|
|
|
30
36
|
useTime: { type: Boolean }
|
|
31
37
|
},
|
|
32
38
|
emits: ["update:modelValue"],
|
|
33
|
-
setup(T, { emit:
|
|
34
|
-
const
|
|
39
|
+
setup(T, { emit: I }) {
|
|
40
|
+
const h = Z(), e = T, C = I, { btString: D, tzString: v } = U(), L = R(), n = o({
|
|
35
41
|
get() {
|
|
36
|
-
return e.modelValue == "0001-01-01T00:00:00" && e.ignoreMinDate ?
|
|
42
|
+
return e.modelValue == "0001-01-01T00:00:00" && e.ignoreMinDate ? D() : e.modelValue;
|
|
37
43
|
},
|
|
38
44
|
set(l) {
|
|
39
|
-
|
|
45
|
+
C("update:modelValue", l == null ? l : `${l.split(".")[0]}Z`);
|
|
40
46
|
}
|
|
41
|
-
}),
|
|
47
|
+
}), u = o(() => e.modelValue ? v(e.modelValue, e.format) : void 0), V = p(), N = r("isEditing", () => p(!1), !0), g = o(() => e.isEditing ?? N.value), m = r("isMobile", () => p(!1), !0), y = r("viewVariant", "list-item"), w = r("editVariant", "outlined"), b = o(() => {
|
|
42
48
|
var l = [
|
|
43
49
|
...e.rules ?? []
|
|
44
50
|
];
|
|
45
|
-
return e.required && l.push(
|
|
46
|
-
}),
|
|
47
|
-
return e.dateFrom != null ?
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["class", "lg", "md", "sm", "cols"]);
|
|
115
|
-
};
|
|
51
|
+
return e.required && l.push(j), l.length > 0 ? l : void 0;
|
|
52
|
+
}), z = o(() => e.isMobile ?? m.value ? !1 : e.lg), E = o(() => e.isMobile ?? m.value ? !1 : e.md), F = o(() => e.isMobile ?? m.value ? !1 : e.sm);
|
|
53
|
+
return e.dateFrom != null ? V.value = e.dateFrom : e.fromNow && (V.value = v()), (l, a) => (f(), c(t(P), {
|
|
54
|
+
class: q(l.colClass),
|
|
55
|
+
lg: z.value,
|
|
56
|
+
md: E.value,
|
|
57
|
+
sm: F.value,
|
|
58
|
+
cols: l.cols
|
|
59
|
+
}, {
|
|
60
|
+
default: i(() => [
|
|
61
|
+
!g.value && t(y) == "list-item" ? (f(), c(t(Q), {
|
|
62
|
+
key: 0,
|
|
63
|
+
density: "compact",
|
|
64
|
+
"prepend-icon": l.prependIcon
|
|
65
|
+
}, {
|
|
66
|
+
default: i(() => [
|
|
67
|
+
s(t(G), null, {
|
|
68
|
+
default: i(() => [
|
|
69
|
+
k(S(l.label), 1)
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}),
|
|
73
|
+
s(t(H), null, {
|
|
74
|
+
default: i(() => [
|
|
75
|
+
k(S(u.value), 1)
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["prepend-icon"])) : (f(), c(t(J), {
|
|
82
|
+
key: 1,
|
|
83
|
+
"open-delay": "5"
|
|
84
|
+
}, {
|
|
85
|
+
activator: i(({ props: d }) => [
|
|
86
|
+
s(t(K), M({
|
|
87
|
+
"append-inner-icon": l.canSelectNone && n.value != null && n.value.length > 0 ? "$close" : void 0,
|
|
88
|
+
"onClick:appendInner": a[0] || (a[0] = (B) => n.value = void 0)
|
|
89
|
+
}, d, {
|
|
90
|
+
"hide-details": b.value == null,
|
|
91
|
+
label: l.label,
|
|
92
|
+
readonly: "",
|
|
93
|
+
rules: b.value,
|
|
94
|
+
variant: g.value ? t(w) : t(y),
|
|
95
|
+
modelValue: u.value,
|
|
96
|
+
"onUpdate:modelValue": a[1] || (a[1] = (B) => u.value = B)
|
|
97
|
+
}), null, 16, ["append-inner-icon", "hide-details", "label", "rules", "variant", "modelValue"])
|
|
98
|
+
]),
|
|
99
|
+
default: i(() => [
|
|
100
|
+
s(t(A), M({
|
|
101
|
+
"auto-apply": "",
|
|
102
|
+
dark: t(h).global.current.value.dark,
|
|
103
|
+
"enable-time-picker": l.useTime,
|
|
104
|
+
inline: "",
|
|
105
|
+
"is-24": !1,
|
|
106
|
+
"time-picker-inline": l.useTime,
|
|
107
|
+
timezone: t(L).timeZone.value,
|
|
108
|
+
utc: ""
|
|
109
|
+
}, l.$attrs, {
|
|
110
|
+
modelValue: n.value,
|
|
111
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => n.value = d)
|
|
112
|
+
}), null, 16, ["dark", "enable-time-picker", "time-picker-inline", "timezone", "modelValue"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}))
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["class", "lg", "md", "sm", "cols"]));
|
|
116
119
|
}
|
|
117
120
|
});
|
|
118
121
|
export {
|
|
119
|
-
|
|
122
|
+
re as default
|
|
120
123
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as f, inject as b, ref as g, computed as i, resolveComponent as y, openBlock as a, createBlock as r, unref as l, withCtx as o, createVNode as s, createTextVNode as _, toDisplayString as S, createCommentVNode as B, mergeProps as V } from "vue";
|
|
2
|
+
import { VCol as v } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
3
|
+
import { VListItem as M } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
4
|
+
import { VListItemSubtitle as I } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs";
|
|
5
|
+
import { VListItemTitle as C } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
|
|
6
|
+
const A = /* @__PURE__ */ f({
|
|
3
7
|
inheritAttrs: !1,
|
|
4
8
|
__name: "BT-Field-Entity",
|
|
5
9
|
props: {
|
|
@@ -13,31 +17,31 @@ const N = /* @__PURE__ */ g({
|
|
|
13
17
|
sm: { type: [String, Boolean], default: "6" }
|
|
14
18
|
},
|
|
15
19
|
emits: ["update:modelValue"],
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
18
|
-
return (t,
|
|
19
|
-
const
|
|
20
|
-
return a(),
|
|
20
|
+
setup(m, { emit: L }) {
|
|
21
|
+
const e = m, n = b("isMobile", () => g(!1), !0), p = i(() => e.isMobile ?? n.value ? !1 : e.lg), u = i(() => e.isMobile ?? n.value ? !1 : e.md), d = i(() => e.isMobile ?? n.value ? !1 : e.sm);
|
|
22
|
+
return (t, h) => {
|
|
23
|
+
const c = y("bt-entity");
|
|
24
|
+
return a(), r(l(v), {
|
|
21
25
|
lg: p.value,
|
|
22
|
-
md:
|
|
23
|
-
sm:
|
|
26
|
+
md: u.value,
|
|
27
|
+
sm: d.value,
|
|
24
28
|
cols: t.cols
|
|
25
29
|
}, {
|
|
26
30
|
default: o(() => [
|
|
27
|
-
|
|
31
|
+
s(l(M), {
|
|
28
32
|
density: "compact",
|
|
29
33
|
"prepend-icon": t.prependIcon
|
|
30
34
|
}, {
|
|
31
35
|
default: o(() => [
|
|
32
|
-
t.label != null ? (a(),
|
|
36
|
+
t.label != null ? (a(), r(l(I), { key: 0 }, {
|
|
33
37
|
default: o(() => [
|
|
34
|
-
S(
|
|
38
|
+
_(S(t.label), 1)
|
|
35
39
|
]),
|
|
36
40
|
_: 1
|
|
37
|
-
})) :
|
|
38
|
-
|
|
41
|
+
})) : B("", !0),
|
|
42
|
+
s(l(C), null, {
|
|
39
43
|
default: o(() => [
|
|
40
|
-
|
|
44
|
+
s(c, V(t.$attrs, { isSingle: !0 }), null, 16)
|
|
41
45
|
]),
|
|
42
46
|
_: 1
|
|
43
47
|
})
|
|
@@ -51,5 +55,5 @@ const N = /* @__PURE__ */ g({
|
|
|
51
55
|
}
|
|
52
56
|
});
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
A as default
|
|
55
59
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent as M, computed as t, inject as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as M, computed as t, inject as a, ref as u, openBlock as S, createBlock as E, unref as m, withCtx as w, createVNode as _, mergeProps as C } from "vue";
|
|
2
|
+
import I from "./BT-Select-Simple.vue.mjs";
|
|
3
|
+
import { VCol as h } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
3
4
|
const z = /* @__PURE__ */ M({
|
|
4
5
|
inheritAttrs: !1,
|
|
5
6
|
__name: "BT-Field-Select-Simple",
|
|
@@ -16,35 +17,32 @@ const z = /* @__PURE__ */ M({
|
|
|
16
17
|
sm: { type: [String, Boolean], default: "6" }
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:modelValue", "select"],
|
|
19
|
-
setup(
|
|
20
|
-
const e =
|
|
20
|
+
setup(c, { emit: f }) {
|
|
21
|
+
const e = c, i = f, n = t({
|
|
21
22
|
get() {
|
|
22
23
|
return e.modelValue;
|
|
23
24
|
},
|
|
24
25
|
set(l) {
|
|
25
|
-
|
|
26
|
+
i("update:modelValue", l), i("select", l);
|
|
26
27
|
}
|
|
27
|
-
}),
|
|
28
|
-
return (l, d) => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["lg", "md", "sm", "cols"]);
|
|
47
|
-
};
|
|
28
|
+
}), p = a("isEditing", () => u(!1), !0), s = t(() => e.isEditing ?? p.value), o = a("isMobile", () => u(!1), !0), r = a("viewVariant", "underlined"), V = t(() => r == "list-item" ? "underlined" : r), g = a("editVariant", "outlined"), v = t(() => e.isMobile ?? o.value ? !1 : e.lg), b = t(() => e.isMobile ?? o.value ? !1 : e.md), B = t(() => e.isMobile ?? o.value ? !1 : e.sm);
|
|
29
|
+
return (l, d) => (S(), E(m(h), {
|
|
30
|
+
lg: v.value,
|
|
31
|
+
md: b.value,
|
|
32
|
+
sm: B.value,
|
|
33
|
+
cols: l.cols
|
|
34
|
+
}, {
|
|
35
|
+
default: w(() => [
|
|
36
|
+
_(I, C(l.$attrs, {
|
|
37
|
+
label: l.label,
|
|
38
|
+
readonly: !s.value,
|
|
39
|
+
fieldVariant: s.value ? m(g) : V.value,
|
|
40
|
+
modelValue: n.value,
|
|
41
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => n.value = y)
|
|
42
|
+
}), null, 16, ["label", "readonly", "fieldVariant", "modelValue"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["lg", "md", "sm", "cols"]));
|
|
48
46
|
}
|
|
49
47
|
});
|
|
50
48
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as $, computed as t, inject as a, ref as c, openBlock as C, createBlock as I, unref as f, withCtx as n, createVNode as P, mergeProps as _, renderSlot as p, normalizeProps as g, guardReactiveProps as V } from "vue";
|
|
2
|
+
import h from "./BT-Select.vue.mjs";
|
|
3
|
+
import { VCol as k } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
4
|
+
const F = /* @__PURE__ */ $({
|
|
4
5
|
inheritAttrs: !1,
|
|
5
6
|
__name: "BT-Field-Select",
|
|
6
7
|
props: {
|
|
@@ -16,43 +17,40 @@ const F = /* @__PURE__ */ w({
|
|
|
16
17
|
sm: { type: [String, Boolean], default: "6" }
|
|
17
18
|
},
|
|
18
19
|
emits: ["update:modelValue", "select"],
|
|
19
|
-
setup(
|
|
20
|
-
const e =
|
|
20
|
+
setup(v, { emit: b }) {
|
|
21
|
+
const e = v, s = b, r = t({
|
|
21
22
|
get() {
|
|
22
23
|
return e.modelValue;
|
|
23
24
|
},
|
|
24
25
|
set(l) {
|
|
25
26
|
s("update:modelValue", l), s("select", l);
|
|
26
27
|
}
|
|
27
|
-
}),
|
|
28
|
-
return (l, m) => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_: 3
|
|
54
|
-
}, 8, ["lg", "md", "sm", "cols"]);
|
|
55
|
-
};
|
|
28
|
+
}), B = a("isEditing", () => c(!1), !0), d = t(() => e.isEditing ?? B.value), i = a("isMobile", () => c(!1), !0), u = a("viewVariant", "underlined"), y = t(() => u == "list-item" ? "underlined" : u), M = a("editVariant", "outlined"), S = t(() => e.isMobile ?? i.value ? !1 : e.lg), E = t(() => e.isMobile ?? i.value ? !1 : e.md), w = t(() => e.isMobile ?? i.value ? !1 : e.sm);
|
|
29
|
+
return (l, m) => (C(), I(f(k), {
|
|
30
|
+
lg: S.value,
|
|
31
|
+
md: E.value,
|
|
32
|
+
sm: w.value,
|
|
33
|
+
cols: l.cols
|
|
34
|
+
}, {
|
|
35
|
+
default: n(() => [
|
|
36
|
+
P(h, _(l.$attrs, {
|
|
37
|
+
label: l.label,
|
|
38
|
+
readonly: !d.value,
|
|
39
|
+
fieldVariant: d.value ? f(M) : y.value,
|
|
40
|
+
modelValue: r.value,
|
|
41
|
+
"onUpdate:modelValue": m[0] || (m[0] = (o) => r.value = o)
|
|
42
|
+
}), {
|
|
43
|
+
item: n((o) => [
|
|
44
|
+
p(l.$slots, "item", g(V(o)))
|
|
45
|
+
]),
|
|
46
|
+
selection: n((o) => [
|
|
47
|
+
p(l.$slots, "selection", g(V(o)))
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
}, 16, ["label", "readonly", "fieldVariant", "modelValue"])
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 8, ["lg", "md", "sm", "cols"]));
|
|
56
54
|
}
|
|
57
55
|
});
|
|
58
56
|
export {
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TestEmailValid as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as T, computed as i, inject as a, ref as v, openBlock as o, createBlock as m, unref as t, withCtx as r, mergeProps as y, createVNode as V, createTextVNode as g, toDisplayString as d, createElementBlock as L, createCommentVNode as $ } from "vue";
|
|
2
|
+
import { TestEmailValid as q, TestRequired as w } from "../composables/rules.mjs";
|
|
3
|
+
import { VCol as N } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
4
|
+
import { VListItem as F } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
5
|
+
import { VListItemSubtitle as R } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs";
|
|
6
|
+
import { VListItemTitle as j } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
|
|
7
|
+
import { VTextField as x } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
8
|
+
const z = {
|
|
4
9
|
key: 0,
|
|
5
10
|
class: "mr-1"
|
|
6
|
-
},
|
|
11
|
+
}, K = /* @__PURE__ */ T({
|
|
7
12
|
inheritAttrs: !1,
|
|
8
13
|
__name: "BT-Field-String",
|
|
9
14
|
props: {
|
|
@@ -24,64 +29,61 @@ const D = {
|
|
|
24
29
|
},
|
|
25
30
|
emits: ["update:modelValue"],
|
|
26
31
|
setup(B, { emit: b }) {
|
|
27
|
-
const l = B, E = b,
|
|
32
|
+
const l = B, E = b, s = i({
|
|
28
33
|
get() {
|
|
29
34
|
return l.modelValue;
|
|
30
35
|
},
|
|
31
36
|
set(e) {
|
|
32
37
|
E("update:modelValue", e);
|
|
33
38
|
}
|
|
34
|
-
}), h =
|
|
39
|
+
}), h = a("isEditing", () => v(!1), !0), n = i(() => l.isEditing ?? h.value), u = a("isMobile", () => v(!1), !0), p = a("viewVariant", "list-item"), S = a("editVariant", "outlined"), f = i(() => {
|
|
35
40
|
var e = [
|
|
36
41
|
...l.rules ?? []
|
|
37
42
|
];
|
|
38
|
-
return l.isEmail !== !1 && e.push(
|
|
39
|
-
}),
|
|
40
|
-
return (e,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["lg", "md", "sm", "cols"]);
|
|
82
|
-
};
|
|
43
|
+
return l.isEmail !== !1 && e.push(q), l.required && e.push(w), e.length > 0 ? e : void 0;
|
|
44
|
+
}), C = i(() => l.isMobile ?? u.value ? !1 : l.lg), M = i(() => l.isMobile ?? u.value ? !1 : l.md), k = i(() => l.isMobile ?? u.value ? !1 : l.sm);
|
|
45
|
+
return (e, c) => (o(), m(t(N), {
|
|
46
|
+
lg: C.value,
|
|
47
|
+
md: M.value,
|
|
48
|
+
sm: k.value,
|
|
49
|
+
cols: e.cols
|
|
50
|
+
}, {
|
|
51
|
+
default: r(() => [
|
|
52
|
+
!n.value && t(p) == "list-item" ? (o(), m(t(F), y({
|
|
53
|
+
key: 0,
|
|
54
|
+
density: "compact"
|
|
55
|
+
}, e.$attrs), {
|
|
56
|
+
default: r(() => [
|
|
57
|
+
V(t(R), null, {
|
|
58
|
+
default: r(() => [
|
|
59
|
+
g(d(e.label), 1)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
V(t(j), null, {
|
|
64
|
+
default: r(() => [
|
|
65
|
+
e.prefix != null || e.useCurrency ? (o(), L("span", z, d(e.prefix ?? "$"), 1)) : $("", !0),
|
|
66
|
+
g(" " + d(s.value), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 16)) : (o(), m(t(x), y({ key: 1 }, e.$attrs, {
|
|
73
|
+
"hide-details": f.value == null,
|
|
74
|
+
label: e.label,
|
|
75
|
+
prefix: e.prefix ?? (e.useCurrency ? "$" : void 0),
|
|
76
|
+
readonly: !n.value,
|
|
77
|
+
rules: f.value,
|
|
78
|
+
variant: n.value ? t(S) : t(p),
|
|
79
|
+
modelValue: s.value,
|
|
80
|
+
"onUpdate:modelValue": c[0] || (c[0] = (I) => s.value = I)
|
|
81
|
+
}), null, 16, ["hide-details", "label", "prefix", "readonly", "rules", "variant", "modelValue"]))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["lg", "md", "sm", "cols"]));
|
|
83
85
|
}
|
|
84
86
|
});
|
|
85
87
|
export {
|
|
86
|
-
|
|
88
|
+
K as default
|
|
87
89
|
};
|