bt-core-app 2.2.12 → 2.2.14
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/components/BT-Background-Task.vue.d.ts +1 -1
- package/dist/components/BT-Banner.vue.d.ts +35 -0
- package/dist/components/BT-Banner.vue.mjs +115 -0
- package/dist/components/BT-Banner.vue2.mjs +4 -0
- package/dist/components/BT-Blade-Item.vue.d.ts +2 -2
- package/dist/components/BT-Blade-Items.vue.d.ts +5 -5
- package/dist/components/BT-Blade-Steps.vue.d.ts +5 -5
- package/dist/components/BT-Blade.vue.d.ts +2 -2
- package/dist/components/BT-Btn.vue.d.ts +1 -1
- package/dist/components/BT-Col.vue.d.ts +2 -2
- package/dist/components/BT-Cron.vue.mjs +19 -18
- package/dist/components/BT-Field-Checkbox.vue.d.ts +3 -3
- package/dist/components/BT-Field-Date.vue.d.ts +3 -3
- package/dist/components/BT-Field-Entity.vue.d.ts +2 -2
- package/dist/components/BT-Field-Select-Simple.vue.d.ts +3 -3
- package/dist/components/BT-Field-Select.vue.d.ts +3 -3
- package/dist/components/BT-Field-String.vue.d.ts +3 -3
- package/dist/components/BT-Field-Switch.vue.d.ts +3 -3
- package/dist/components/BT-Field-Tags.vue.d.ts +3 -3
- package/dist/components/BT-Field-Textarea.vue.d.ts +3 -3
- package/dist/components/BT-Field-Trigger.vue.d.ts +3 -3
- package/dist/components/BT-Field.vue.d.ts +2 -2
- package/dist/components/BT-Form-Field.vue.d.ts +2 -2
- package/dist/components/BT-Form.vue.mjs +2 -2
- package/dist/components/BT-Numpad.vue.d.ts +2 -2
- package/dist/components/BT-Select-Inline.vue.d.ts +7 -20
- package/dist/components/BT-Select-Inline.vue.mjs +99 -72
- package/dist/components/BT-Select-Inline.vue2.mjs +1 -24
- package/dist/components/BT-Select-Inline.vue3.mjs +5 -1
- package/dist/components/BT-Select-List-Box.vue.d.ts +5 -5
- package/dist/components/BT-Select-List-Box.vue.mjs +9 -9
- package/dist/components/BT-Select-Simple.vue.d.ts +1 -1
- package/dist/components/BT-Select.vue.d.ts +1 -1
- package/dist/components/BT-Signature-Overlay.vue.d.ts +1 -1
- package/dist/components/BT-Square-Check.vue.d.ts +1 -1
- package/dist/composables/banners.d.ts +40 -0
- package/dist/composables/banners.mjs +43 -0
- package/dist/composables/blade.mjs +7 -7
- package/dist/composables/forms.mjs +17 -18
- package/dist/composables/graph-pro.mjs +14 -15
- package/dist/composables/list.mjs +9 -10
- package/dist/core2.mjs +63 -62
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +261 -257
- package/dist/node_modules/bt-core-app/dist/bt-core-app.mjs +1617 -1638
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<import("vue").ExtractPropT
|
|
|
7
7
|
};
|
|
8
8
|
chipProps: {
|
|
9
9
|
type: ObjectConstructor;
|
|
10
|
-
default: () =>
|
|
10
|
+
default: () => {};
|
|
11
11
|
};
|
|
12
12
|
modelValue: {
|
|
13
13
|
type: import("vue").PropType<any>;
|
|
@@ -43,23 +43,10 @@ declare const _default: import('vue').DefineComponent<import("vue").ExtractPropT
|
|
|
43
43
|
type: BooleanConstructor;
|
|
44
44
|
default: boolean;
|
|
45
45
|
};
|
|
46
|
-
}>, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
itemRows: any[][];
|
|
51
|
-
setItems: (items: any[]) => void;
|
|
52
|
-
setValues: (values: any) => void;
|
|
53
|
-
isEmpty: import("vue").ComputedRef<boolean>;
|
|
54
|
-
has: (item: any) => boolean;
|
|
55
|
-
values: Set<any>;
|
|
56
|
-
add: (item: any) => void;
|
|
57
|
-
toggle: (item: any) => void;
|
|
58
|
-
remove: (item: any) => void;
|
|
59
|
-
clear: () => void;
|
|
60
|
-
updated: import("vue").Ref<number, number>;
|
|
61
|
-
equals: (items: any[]) => boolean;
|
|
62
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:model-value")[], "change" | "update:model-value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
+
change: (...args: any[]) => void;
|
|
48
|
+
"update:model-value": (...args: any[]) => void;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
50
|
menuProps: {
|
|
64
51
|
type: ObjectConstructor;
|
|
65
52
|
default: () => {
|
|
@@ -68,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import("vue").ExtractPropT
|
|
|
68
55
|
};
|
|
69
56
|
chipProps: {
|
|
70
57
|
type: ObjectConstructor;
|
|
71
|
-
default: () =>
|
|
58
|
+
default: () => {};
|
|
72
59
|
};
|
|
73
60
|
modelValue: {
|
|
74
61
|
type: import("vue").PropType<any>;
|
|
@@ -110,8 +97,8 @@ declare const _default: import('vue').DefineComponent<import("vue").ExtractPropT
|
|
|
110
97
|
}>, {
|
|
111
98
|
items: any[];
|
|
112
99
|
multiple: boolean;
|
|
113
|
-
itemText: string | ((item: any) => string);
|
|
114
100
|
itemValue: string | ((item: any) => any);
|
|
101
|
+
itemText: string | ((item: any) => string);
|
|
115
102
|
disabled: boolean;
|
|
116
103
|
clearable: boolean;
|
|
117
104
|
cols: number;
|
|
@@ -1,74 +1,101 @@
|
|
|
1
|
-
import b from "
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
import { defineComponent as y, openBlock as r, createBlock as l, unref as e, mergeProps as u, withCtx as t, withModifiers as g, createCommentVNode as d, createVNode as a, createTextVNode as f, toDisplayString as V, createElementBlock as S, Fragment as b, renderList as P } from "vue";
|
|
2
|
+
import { selectProps as w, setupSelect as B } from "../composables/select.mjs";
|
|
3
|
+
import { VChip as $ } from "../bt-core/core/node_modules/vuetify/lib/components/VChip/VChip.mjs";
|
|
4
|
+
import { VVirtualScroll as x } from "../bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs";
|
|
5
|
+
import { VIcon as k } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
6
|
+
import { VMenu as N } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
7
|
+
import { VCard as _ } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
8
|
+
import { VRow as j } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs";
|
|
9
|
+
import { VCol as z } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
10
|
+
import { VListItem as E } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
11
|
+
const J = /* @__PURE__ */ y({
|
|
12
|
+
name: "CustomSelect",
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
__name: "BT-Select-Inline",
|
|
15
|
+
props: {
|
|
16
|
+
...w(),
|
|
17
|
+
menuProps: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({ maxHeight: "300px" })
|
|
20
|
+
},
|
|
21
|
+
chipProps: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:model-value", "change"],
|
|
27
|
+
setup(s, { emit: h }) {
|
|
28
|
+
const m = s, o = B(
|
|
29
|
+
m,
|
|
30
|
+
() => m.modelValue,
|
|
31
|
+
{ emit: h }
|
|
32
|
+
// Type assertion used as per your existing signature
|
|
33
|
+
);
|
|
34
|
+
return (i, c) => (r(), l(e($), u(s.chipProps, { disabled: i.disabled }), {
|
|
35
|
+
append: t(() => [
|
|
36
|
+
i.clearable && !e(o).isEmpty.value ? (r(), l(e(k), {
|
|
37
|
+
key: 0,
|
|
38
|
+
size: "small",
|
|
39
|
+
icon: "$close",
|
|
40
|
+
onClick: c[0] || (c[0] = g((p) => e(o).clear(), ["stop"]))
|
|
41
|
+
})) : d("", !0),
|
|
42
|
+
a(e(k), {
|
|
43
|
+
size: "small",
|
|
44
|
+
icon: "$chevron-down"
|
|
45
|
+
})
|
|
46
|
+
]),
|
|
47
|
+
default: t(() => [
|
|
48
|
+
f(" " + V(i.selection ?? e(o).selectedStr) + " ", 1),
|
|
49
|
+
a(e(N), u({ activator: "parent" }, s.menuProps, {
|
|
50
|
+
"close-on-content-click": !i.multiple
|
|
51
|
+
}), {
|
|
52
|
+
default: t(() => [
|
|
53
|
+
a(e(_), null, {
|
|
54
|
+
default: t(() => [
|
|
55
|
+
a(e(x), {
|
|
56
|
+
class: "pa-0 ma-0",
|
|
57
|
+
height: 170,
|
|
58
|
+
items: e(o).itemRows
|
|
59
|
+
}, {
|
|
60
|
+
default: t(({ index: p, item: v }) => [
|
|
61
|
+
(r(), l(e(j), {
|
|
62
|
+
key: p,
|
|
63
|
+
"no-gutters": ""
|
|
64
|
+
}, {
|
|
65
|
+
default: t(() => [
|
|
66
|
+
(r(!0), S(b, null, P(v, (n, C) => (r(), l(e(z), { key: C }, {
|
|
67
|
+
default: t(() => [
|
|
68
|
+
n ? (r(), l(e(E), {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "vcron-v-item",
|
|
71
|
+
onClick: (M) => e(o).select(n),
|
|
72
|
+
active: e(o).has(n)
|
|
73
|
+
}, {
|
|
74
|
+
default: t(() => [
|
|
75
|
+
f(V(n.text), 1)
|
|
76
|
+
]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1032, ["onClick", "active"])) : d("", !0)
|
|
79
|
+
]),
|
|
80
|
+
_: 2
|
|
81
|
+
}, 1024))), 128))
|
|
82
|
+
]),
|
|
83
|
+
_: 2
|
|
84
|
+
}, 1024))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["items"])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 16, ["close-on-content-click"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 16, ["disabled"]));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
72
99
|
export {
|
|
73
|
-
|
|
100
|
+
J as default
|
|
74
101
|
};
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const r = {
|
|
3
|
-
inheritAttrs: !1,
|
|
4
|
-
name: "CustomSelect",
|
|
5
|
-
props: {
|
|
6
|
-
...s(),
|
|
7
|
-
menuProps: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default: () => ({ maxHeight: "300px" })
|
|
10
|
-
},
|
|
11
|
-
chipProps: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => {
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:model-value", "change"],
|
|
18
|
-
setup(e, t) {
|
|
19
|
-
return a(e, () => e.modelValue, t);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
r as default
|
|
24
|
-
};
|
|
1
|
+
|
|
@@ -73,21 +73,21 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
73
73
|
onInput?: ((item: any) => any) | undefined;
|
|
74
74
|
onSelect?: ((item: any) => any) | undefined;
|
|
75
75
|
onChange?: ((item: any) => any) | undefined;
|
|
76
|
+
onConfirm?: ((item: any) => any) | undefined;
|
|
76
77
|
onDeleted?: ((item: any) => any) | undefined;
|
|
77
78
|
onFetched?: ((item: any) => any) | undefined;
|
|
78
|
-
onConfirm?: ((item: any) => any) | undefined;
|
|
79
79
|
"onMouse-over-item"?: ((item: any) => any) | undefined;
|
|
80
80
|
"onUpdate:modelValue"?: ((item: any) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
82
|
height: string;
|
|
83
83
|
eager: boolean;
|
|
84
|
-
density: "default" | "comfortable" | "compact";
|
|
85
84
|
maxHeight: string | number;
|
|
86
|
-
|
|
85
|
+
density: "default" | "comfortable" | "compact";
|
|
87
86
|
sm: string | boolean;
|
|
88
|
-
cols: string | boolean;
|
|
89
|
-
lg: string | boolean;
|
|
90
87
|
md: string | boolean;
|
|
88
|
+
lg: string | boolean;
|
|
89
|
+
cols: string | boolean;
|
|
90
|
+
isEditing: boolean;
|
|
91
91
|
canRefresh: boolean;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
93
93
|
actions?(_: {}): any;
|
|
@@ -2,15 +2,15 @@ import { defineComponent as Y, ref as V, inject as C, computed as m, openBlock a
|
|
|
2
2
|
import { useList as Z } from "../composables/list.mjs";
|
|
3
3
|
import { useFilters as x } from "../composables/filters.mjs";
|
|
4
4
|
import { nestedValue as R, isLengthyArray as _ } from "../composables/helpers.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { VCol as te } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
5
|
+
import { VCol as ee } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
7
6
|
import { VListItem as S } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
8
7
|
import { VIcon as E } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
9
8
|
import { VMenu as H } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
10
9
|
import { VBtn as A } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
11
10
|
import { VList as I } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
|
|
12
|
-
import { VSlideYTransition as
|
|
13
|
-
import { VTextField as
|
|
11
|
+
import { VSlideYTransition as te, VSlideXTransition as le } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
|
|
12
|
+
import { VTextField as ne } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
13
|
+
import { VVirtualScroll as oe } from "../bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs";
|
|
14
14
|
import { VListItemTitle as T } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
|
|
15
15
|
import { VListItemSubtitle as w } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs";
|
|
16
16
|
import { VDivider as ie } from "../bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs";
|
|
@@ -156,7 +156,7 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
156
156
|
const e = n.itemValue ?? "id";
|
|
157
157
|
return n.modelValue != null && d.asyncItems.value != null ? d.asyncItems.value.find((l) => l[e] == n.modelValue) : null;
|
|
158
158
|
}), F = C("isMobile", () => V(!1), !0), q = m(() => n.isMobile ?? F.value ? !1 : n.lg), Q = m(() => n.isMobile ?? F.value ? !1 : n.md), X = m(() => n.isMobile ?? F.value ? !1 : n.sm);
|
|
159
|
-
return (e, l) => (a(), s(t(
|
|
159
|
+
return (e, l) => (a(), s(t(ee), {
|
|
160
160
|
class: J(e.colClass),
|
|
161
161
|
lg: q.value,
|
|
162
162
|
md: Q.value,
|
|
@@ -206,12 +206,12 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
206
206
|
]),
|
|
207
207
|
_: 3
|
|
208
208
|
}, 8, ["density", "subtitle"])) : p("", !0),
|
|
209
|
-
r(t(
|
|
209
|
+
r(t(te), {
|
|
210
210
|
"hide-on-leave": "",
|
|
211
211
|
group: ""
|
|
212
212
|
}, {
|
|
213
213
|
default: i(() => [
|
|
214
|
-
(e.alwaysOpen || y.value) && t(_)(e.searchProps) ? (a(), s(t(
|
|
214
|
+
(e.alwaysOpen || y.value) && t(_)(e.searchProps) ? (a(), s(t(ne), {
|
|
215
215
|
"onClick:prependInner": l[2] || (l[2] = (o) => t(d).searchString.value = void 0),
|
|
216
216
|
"hide-details": "",
|
|
217
217
|
key: "1",
|
|
@@ -231,7 +231,7 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
231
231
|
]),
|
|
232
232
|
_: 1
|
|
233
233
|
}, 8, ["prepend-inner-icon", "modelValue"])) : p("", !0),
|
|
234
|
-
(e.alwaysOpen || y.value) && e.useVirtualScroller ? (a(), s(t(
|
|
234
|
+
(e.alwaysOpen || y.value) && e.useVirtualScroller ? (a(), s(t(oe), {
|
|
235
235
|
height: e.height,
|
|
236
236
|
"item-height": "50",
|
|
237
237
|
items: t(d).filteredItems.value,
|
|
@@ -286,7 +286,7 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
286
286
|
onClick: l[4] || (l[4] = (o) => v(null)),
|
|
287
287
|
subtitle: "(Select None)"
|
|
288
288
|
}, null, 8, ["density"])) : p("", !0),
|
|
289
|
-
r(t(
|
|
289
|
+
r(t(le), {
|
|
290
290
|
group: "",
|
|
291
291
|
"hide-on-leave": ""
|
|
292
292
|
}, {
|
|
@@ -31,9 +31,9 @@ declare const _default: import('vue').DefineComponent<import("vue").ExtractPropT
|
|
|
31
31
|
onInput?: ((item: any) => any) | undefined;
|
|
32
32
|
onSelect?: ((item: any) => any) | undefined;
|
|
33
33
|
onChange?: ((item: any) => any) | undefined;
|
|
34
|
+
onConfirm?: ((item: any) => any) | undefined;
|
|
34
35
|
onDeleted?: ((item: any) => any) | undefined;
|
|
35
36
|
onFetched?: ((item: any) => any) | undefined;
|
|
36
|
-
onConfirm?: ((item: any) => any) | undefined;
|
|
37
37
|
"onMouse-over-item"?: ((item: any) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
39
|
eager: boolean;
|
|
@@ -31,9 +31,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
31
31
|
onInput?: ((item: any) => any) | undefined;
|
|
32
32
|
onSelect?: ((item: any) => any) | undefined;
|
|
33
33
|
onChange?: ((item: any) => any) | undefined;
|
|
34
|
+
onConfirm?: ((item: any) => any) | undefined;
|
|
34
35
|
onDeleted?: ((item: any) => any) | undefined;
|
|
35
36
|
onFetched?: ((item: any) => any) | undefined;
|
|
36
|
-
onConfirm?: ((item: any) => any) | undefined;
|
|
37
37
|
"onMouse-over-item"?: ((item: any) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
39
|
eager: boolean;
|
|
@@ -33,8 +33,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
33
33
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
|
-
transparent: boolean;
|
|
37
36
|
fullscreen: boolean;
|
|
37
|
+
transparent: boolean;
|
|
38
38
|
hideButton: boolean;
|
|
39
39
|
usedHeight: number;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
@@ -63,8 +63,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
63
63
|
}>, {
|
|
64
64
|
width: string;
|
|
65
65
|
height: string;
|
|
66
|
-
iconSize: string;
|
|
67
66
|
ripple: boolean;
|
|
67
|
+
iconSize: string;
|
|
68
68
|
falseIcon: string;
|
|
69
69
|
trueIcon: string;
|
|
70
70
|
trueValue: string | boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface UseBannersOptions {
|
|
2
|
+
getBanners?: (sets: BannerOption[]) => Promise<BannerOption[]>;
|
|
3
|
+
banners?: BannerOption[];
|
|
4
|
+
}
|
|
5
|
+
export interface BannerOption {
|
|
6
|
+
bannerName: string;
|
|
7
|
+
canIgnore?: boolean;
|
|
8
|
+
noText?: string;
|
|
9
|
+
onRespond?: (confirm?: boolean) => Promise<void>;
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
yesText?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BannerData extends BannerOption {
|
|
16
|
+
doShow: boolean;
|
|
17
|
+
isComplete: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface NextStageOptions {
|
|
20
|
+
neverAgain?: boolean;
|
|
21
|
+
respond?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function useBanners(name: string, opt: UseBannersOptions): {
|
|
24
|
+
currentBannerInd: import('vue').Ref<number, number>;
|
|
25
|
+
displayBanners: import('vue').ComputedRef<{
|
|
26
|
+
doShow: boolean;
|
|
27
|
+
isComplete: boolean;
|
|
28
|
+
bannerName: string;
|
|
29
|
+
canIgnore?: boolean | undefined;
|
|
30
|
+
noText?: string | undefined;
|
|
31
|
+
onRespond?: ((confirm?: boolean | undefined) => Promise<void>) | undefined;
|
|
32
|
+
subtitle?: string | undefined;
|
|
33
|
+
text?: string | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
35
|
+
yesText?: string | undefined;
|
|
36
|
+
}[]>;
|
|
37
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
38
|
+
nextStage: (opt: NextStageOptions) => Promise<void>;
|
|
39
|
+
previousStage: () => void;
|
|
40
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useStorage as N } from "@vueuse/core";
|
|
2
|
+
import { ref as i, computed as c } from "vue";
|
|
3
|
+
function w(g, o) {
|
|
4
|
+
const a = N(`${g}-ls`, {
|
|
5
|
+
bannersToIgnore: []
|
|
6
|
+
}), f = i([]), r = c(() => f.value.filter((e) => e.doShow)), n = i(-1), v = c(() => {
|
|
7
|
+
if (n.value >= 0 && r.value.length > n.value)
|
|
8
|
+
return r.value[n.value];
|
|
9
|
+
}), l = c(() => {
|
|
10
|
+
var e;
|
|
11
|
+
return (e = v.value) == null ? void 0 : e.bannerName;
|
|
12
|
+
}), t = i(!1);
|
|
13
|
+
async function m(e) {
|
|
14
|
+
var d;
|
|
15
|
+
t.value = !0;
|
|
16
|
+
var u = !!e.neverAgain || e.respond === !0 || e.respond === !1;
|
|
17
|
+
u && l.value != null && !a.value.bannersToIgnore.some((p) => p == l.value) && a.value.bannersToIgnore.push(l.value), ((d = v.value) == null ? void 0 : d.onRespond) != null && (e.respond === !0 || e.respond === !1) && (await v.value.onRespond(e.respond), v.value.isComplete = !0);
|
|
18
|
+
var s = n.value + 1;
|
|
19
|
+
console.log(s), console.log(r.value), s < r.value.length ? n.value = s : n.value = -1, a.value.currentBannerName = l.value, t.value = !1;
|
|
20
|
+
}
|
|
21
|
+
function b() {
|
|
22
|
+
n.value >= 0 && n.value--, a.value.currentBannerName = l.value;
|
|
23
|
+
}
|
|
24
|
+
async function B() {
|
|
25
|
+
var e = [];
|
|
26
|
+
o.getBanners != null ? e = await o.getBanners(o.banners ?? []) : e = o.banners ?? [], f.value = e.map((u) => ({
|
|
27
|
+
...u,
|
|
28
|
+
bannerName: u.bannerName,
|
|
29
|
+
doShow: !a.value.bannersToIgnore.some((s) => u.bannerName == s),
|
|
30
|
+
isComplete: !1
|
|
31
|
+
})), m({});
|
|
32
|
+
}
|
|
33
|
+
return B(), {
|
|
34
|
+
currentBannerInd: n,
|
|
35
|
+
displayBanners: r,
|
|
36
|
+
isLoading: t,
|
|
37
|
+
nextStage: m,
|
|
38
|
+
previousStage: b
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
w as useBanners
|
|
43
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as g, computed as n, onMounted as z } from "vue";
|
|
2
2
|
import { useResizeObserver as S } from "@vueuse/core";
|
|
3
3
|
import { useDraggable as k } from "./draggable.mjs";
|
|
4
|
-
import { useResizable as
|
|
5
|
-
import { twiddleThumbs as G } from "
|
|
4
|
+
import { useResizable as C } from "./resizable.mjs";
|
|
5
|
+
import { twiddleThumbs as G } from "./helpers.mjs";
|
|
6
6
|
const r = g([]);
|
|
7
|
-
function
|
|
7
|
+
function q(e) {
|
|
8
8
|
const x = (e == null ? void 0 : e.bladeGroup) ?? "default";
|
|
9
9
|
function A(l) {
|
|
10
10
|
return r.value.findIndex((u) => u.bladeGroup == x && u.bladeName == l);
|
|
@@ -65,8 +65,8 @@ function $(e) {
|
|
|
65
65
|
updateBlade: y
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const x = (e == null ? void 0 : e.blade) ?? g(null), A = (e == null ? void 0 : e.bladeBasic) == !0, c = g(), y = e == null ? void 0 : e.bladeName, l = (e == null ? void 0 : e.mobileBreakpoint) ?? 600, u = (e == null ? void 0 : e.bladeGroup) ?? "default", b = (e == null ? void 0 : e.handle) ?? g(null), d = g(!1), m = g((e == null ? void 0 : e.variant) ?? "page"), { turnResizingOn: v } =
|
|
68
|
+
function H(e) {
|
|
69
|
+
const x = (e == null ? void 0 : e.blade) ?? g(null), A = (e == null ? void 0 : e.bladeBasic) == !0, c = g(), y = e == null ? void 0 : e.bladeName, l = (e == null ? void 0 : e.mobileBreakpoint) ?? 600, u = (e == null ? void 0 : e.bladeGroup) ?? "default", b = (e == null ? void 0 : e.handle) ?? g(null), d = g(!1), m = g((e == null ? void 0 : e.variant) ?? "page"), { turnResizingOn: v } = C(x), { turnDraggableOn: E } = k(x, b);
|
|
70
70
|
function F(a) {
|
|
71
71
|
if (a != null && a.all) {
|
|
72
72
|
const N = (a == null ? void 0 : a.mode) ?? "remove";
|
|
@@ -151,6 +151,6 @@ function j(e) {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
export {
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
H as useBlade,
|
|
155
|
+
q as useGlobalBlades
|
|
156
156
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ref as h, computed as c } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
function E(r) {
|
|
2
|
+
import { copyDeep as x, moveInArray as F, distinct as R } from "./helpers.mjs";
|
|
3
|
+
function D(r) {
|
|
5
4
|
const i = h(), o = h(), a = c(() => {
|
|
6
5
|
var e;
|
|
7
6
|
return (e = o.value) == null ? void 0 : e.type;
|
|
8
7
|
}), n = h();
|
|
9
8
|
function m(e) {
|
|
10
|
-
var l =
|
|
9
|
+
var l = x(e);
|
|
11
10
|
return l.prop = s(e.type) ? p(e.type) : void 0, l;
|
|
12
11
|
}
|
|
13
12
|
function v(e) {
|
|
14
|
-
var l =
|
|
13
|
+
var l = x(e);
|
|
15
14
|
return l.fields.forEach((t) => {
|
|
16
15
|
t.prop = s(t.type) ? p(t.type) : void 0;
|
|
17
16
|
}), l;
|
|
@@ -65,11 +64,11 @@ function E(r) {
|
|
|
65
64
|
}
|
|
66
65
|
function q(e) {
|
|
67
66
|
var l, t;
|
|
68
|
-
((l = n.value) == null ? void 0 : l.slides) != null &&
|
|
67
|
+
((l = n.value) == null ? void 0 : l.slides) != null && F((t = n.value) == null ? void 0 : t.slides, e, e + 1);
|
|
69
68
|
}
|
|
70
69
|
function C(e) {
|
|
71
70
|
var l, t;
|
|
72
|
-
((l = n.value) == null ? void 0 : l.slides) != null &&
|
|
71
|
+
((l = n.value) == null ? void 0 : l.slides) != null && F((t = n.value) == null ? void 0 : t.slides, e, e - 1);
|
|
73
72
|
}
|
|
74
73
|
function N() {
|
|
75
74
|
var t;
|
|
@@ -136,7 +135,7 @@ function E(r) {
|
|
|
136
135
|
selectSlide: S
|
|
137
136
|
};
|
|
138
137
|
}
|
|
139
|
-
const
|
|
138
|
+
const E = [
|
|
140
139
|
{
|
|
141
140
|
description: "For your customer to read",
|
|
142
141
|
icon: "$information",
|
|
@@ -205,21 +204,21 @@ const O = [
|
|
|
205
204
|
}
|
|
206
205
|
];
|
|
207
206
|
let d;
|
|
208
|
-
function
|
|
207
|
+
function O(r) {
|
|
209
208
|
return d = r ?? {
|
|
210
209
|
// customModelProps: [],
|
|
211
210
|
requirementSets: [],
|
|
212
211
|
templates: []
|
|
213
212
|
}, d;
|
|
214
213
|
}
|
|
215
|
-
function
|
|
214
|
+
function B(r) {
|
|
216
215
|
var i = (d == null ? void 0 : d.templates) ?? [];
|
|
217
216
|
return r != null ? i.filter((o) => o.group == r) : i;
|
|
218
217
|
}
|
|
219
|
-
function
|
|
218
|
+
function G() {
|
|
220
219
|
return d;
|
|
221
220
|
}
|
|
222
|
-
function
|
|
221
|
+
function J(r) {
|
|
223
222
|
let i, o = {
|
|
224
223
|
...r,
|
|
225
224
|
slides: []
|
|
@@ -247,10 +246,10 @@ function z(r) {
|
|
|
247
246
|
}, i;
|
|
248
247
|
}
|
|
249
248
|
export {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
249
|
+
E as Fields,
|
|
250
|
+
J as createAForm,
|
|
251
|
+
O as createForms,
|
|
252
|
+
G as useFormSource,
|
|
253
|
+
B as useFormTemplates,
|
|
254
|
+
D as useForms
|
|
256
255
|
};
|