@alfakit/vue 0.1.11 → 0.1.12
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/CHANGELOG.md +6 -0
- package/dist/components/entries/ImageEntryComponent.vue.d.ts.map +1 -1
- package/dist/components/entries/ImageEntryComponent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/entries/ImageEntryComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/fields/BuilderField.vue.d.ts.map +1 -1
- package/dist/components/fields/BuilderField.vue_vue_type_script_setup_true_lang.js +114 -114
- package/dist/components/fields/BuilderField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/fields/FileUploadField.vue.d.ts.map +1 -1
- package/dist/components/fields/FileUploadField.vue_vue_type_script_setup_true_lang.js +143 -146
- package/dist/components/fields/FileUploadField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/fields/RepeaterField.vue.d.ts.map +1 -1
- package/dist/components/fields/RepeaterField.vue_vue_type_script_setup_true_lang.js +50 -50
- package/dist/components/fields/RepeaterField.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/fields/rich-editor-extensions.d.ts.map +1 -1
- package/dist/components/fields/rich-editor-extensions.js +4 -2
- package/dist/components/fields/rich-editor-extensions.js.map +1 -1
- package/dist/components/layout/WizardComponent.vue.d.ts.map +1 -1
- package/dist/components/layout/WizardComponent.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/layout/WizardComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/notifications/NotificationsMenu.vue.d.ts.map +1 -1
- package/dist/components/notifications/NotificationsMenu.vue_vue_type_script_setup_true_lang.js +103 -102
- package/dist/components/notifications/NotificationsMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/notifications/flash-toasts.d.ts +7 -0
- package/dist/components/notifications/flash-toasts.d.ts.map +1 -1
- package/dist/components/notifications/flash-toasts.js +12 -6
- package/dist/components/notifications/flash-toasts.js.map +1 -1
- package/dist/components/panel/PwaManager.vue.d.ts.map +1 -1
- package/dist/components/panel/PwaManager.vue_vue_type_script_setup_true_lang.js +16 -15
- package/dist/components/panel/PwaManager.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/panel/PwaMenuItems.vue.d.ts.map +1 -1
- package/dist/components/panel/PwaMenuItems.vue_vue_type_script_setup_true_lang.js +27 -26
- package/dist/components/panel/PwaMenuItems.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/panel/ShortcutsOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/panel/ShortcutsOverlay.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/panel/pwa.d.ts.map +1 -1
- package/dist/components/panel/pwa.js +6 -5
- package/dist/components/panel/pwa.js.map +1 -1
- package/dist/components/table/TableCellContent.vue.d.ts.map +1 -1
- package/dist/components/table/TableCellContent.vue_vue_type_script_setup_true_lang.js +41 -41
- package/dist/components/table/TableCellContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components.css +19 -0
- package/dist/eject-manifest.json +2 -2
- package/dist/pages/ContentBlockRenderer.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/pages/ContentBlockRenderer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/package.json +2 -2
- package/src/components/entries/ImageEntryComponent.vue +2 -0
- package/src/components/fields/BuilderField.vue +7 -2
- package/src/components/fields/FileUploadField.vue +2 -7
- package/src/components/fields/RepeaterField.vue +9 -2
- package/src/components/fields/rich-editor-extensions.ts +9 -5
- package/src/components/layout/WizardComponent.vue +5 -1
- package/src/components/notifications/NotificationsMenu.vue +3 -2
- package/src/components/notifications/flash-toasts.ts +8 -0
- package/src/components/panel/PwaManager.vue +9 -5
- package/src/components/panel/PwaMenuItems.vue +14 -3
- package/src/components/panel/ShortcutsOverlay.vue +1 -1
- package/src/components/panel/pwa.ts +2 -1
- package/src/components/table/TableCellContent.vue +3 -1
- package/src/pages/ContentBlockRenderer.vue +1 -1
|
@@ -8,15 +8,15 @@ import { useFieldActionContext as ne } from "../schema/field-actions.js";
|
|
|
8
8
|
import re from "../layout/DeferredSchema.js";
|
|
9
9
|
import ie from "../schema/FieldWrapper.js";
|
|
10
10
|
import ae from "../ui/Collapsible.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { useItemActionFallbacks as
|
|
17
|
-
import
|
|
18
|
-
import { VIRTUAL_ESTIMATES as
|
|
19
|
-
import { Fragment as
|
|
11
|
+
import a from "../ui/CollapsibleContent.js";
|
|
12
|
+
import o from "./AddActionRow.js";
|
|
13
|
+
import s from "./ItemActionButton.js";
|
|
14
|
+
import oe from "./CollapseAllActions.js";
|
|
15
|
+
import se from "./ItemHeaderActions.js";
|
|
16
|
+
import { useItemActionFallbacks as ce, useItemMoves as le, useRunItemAction as ue } from "./item-actions.js";
|
|
17
|
+
import de from "./RepeaterTable.js";
|
|
18
|
+
import { VIRTUAL_ESTIMATES as fe, appendRepeaterItem as pe, cloneIndexedState as me, cloneRepeaterItem as he, fieldIds as c, gridColumnsClasses as ge, isDeferredPlaceholder as _e, itemExtraActions as l, moveIndexedState as ve, moveRepeaterItem as ye, removeIndexedState as u, removeRepeaterItem as d, reorderedItemKeys as be, resolveItemAction as xe, templateForIndex as Se, virtualizeOptions as Ce } from "@alfakit/core";
|
|
19
|
+
import { Fragment as we, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, normalizeClass as y, normalizeStyle as Te, openBlock as b, ref as x, renderList as S, resolveComponent as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
20
20
|
//#region src/components/fields/RepeaterField.vue?vue&type=script&setup=true&lang.ts
|
|
21
21
|
var D = {
|
|
22
22
|
"aria-live": "polite",
|
|
@@ -27,48 +27,48 @@ var D = {
|
|
|
27
27
|
"id",
|
|
28
28
|
"aria-labelledby",
|
|
29
29
|
"aria-describedby"
|
|
30
|
-
],
|
|
30
|
+
], Ee = [
|
|
31
31
|
"data-index",
|
|
32
32
|
"aria-setsize",
|
|
33
33
|
"aria-posinset",
|
|
34
34
|
"draggable",
|
|
35
35
|
"onDragstart",
|
|
36
36
|
"onDrop"
|
|
37
|
-
],
|
|
37
|
+
], De = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "flex flex-wrap items-center gap-1 border-b px-2 py-1.5",
|
|
40
40
|
"data-slot": "item-header"
|
|
41
|
-
},
|
|
41
|
+
}, Oe = ["title"], ke = {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "text-muted-foreground text-xs tabular-nums"
|
|
44
|
-
},
|
|
44
|
+
}, Ae = {
|
|
45
45
|
key: 2,
|
|
46
46
|
dir: "auto",
|
|
47
47
|
class: "min-w-0 truncate text-sm font-medium"
|
|
48
|
-
},
|
|
48
|
+
}, k = { class: "flex-1" }, A = /*@__PURE__*/ v({
|
|
49
49
|
__name: "RepeaterField",
|
|
50
50
|
props: { component: {} },
|
|
51
51
|
setup(v) {
|
|
52
|
-
let A = v,
|
|
52
|
+
let A = v, je = e(), j = ne(() => A.component), Me = ue(j), M = ce(), N = (e, t) => xe(e, A.component, t === void 0 ? void 0 : A.component.items[t], e === "add" ? {
|
|
53
53
|
...M.add,
|
|
54
54
|
label: A.component.addActionLabel
|
|
55
|
-
} : M[e]), { value: P, setValue: F, error:
|
|
55
|
+
} : M[e]), { value: P, setValue: F, error: Ne, id: I, disabled: Pe, readOnly: Fe, aria: L } = r(() => A.component), R = f(() => Pe.value || Fe.value), z = f(() => P.value ?? []), B = x({}), V = x(null), H = te(() => z.value.length, () => Ce(A.component.virtualize, fe.item, 12, A.component.grid ? "auto" : 1));
|
|
56
56
|
i(H, () => A.component.statePath);
|
|
57
|
-
let U = (e) => A.component.items[e]?.schema ??
|
|
58
|
-
F(
|
|
59
|
-
}, J =
|
|
60
|
-
F(
|
|
57
|
+
let U = (e) => A.component.items[e]?.schema ?? Se(A.component.template, e), W = (e) => B.value[e] ?? A.component.collapsed ?? !1, G = f(() => A.component.addable && !R.value && (A.component.maxItems == null || z.value.length < A.component.maxItems)), K = f(() => A.component.deletable && !R.value && (A.component.minItems == null || z.value.length > A.component.minItems)), q = (e, t) => {
|
|
58
|
+
F(ye(z.value, e, t)), B.value = ve(B.value, e, t);
|
|
59
|
+
}, J = le(P, (e, t) => q(e, t), (e) => A.component.items[e]?.label, () => z.value.length), Ie = J.announcement, Le = J.container, Y = (e) => {
|
|
60
|
+
F(d(z.value, e)), B.value = u(B.value, e);
|
|
61
61
|
}, X = (e) => {
|
|
62
|
-
F(
|
|
62
|
+
F(he(z.value, e)), B.value = me(B.value, e);
|
|
63
63
|
}, Z = f(() => A.component.reorderable && A.component.reorderableWithDragAndDrop !== !1 && !R.value && N("reorder") !== null), Q = f(() => A.component.reorderable && A.component.reorderableWithButtons !== !1 && !R.value), $ = (e) => {
|
|
64
64
|
B.value = Object.fromEntries(z.value.map((t, n) => [n, e]));
|
|
65
|
-
},
|
|
65
|
+
}, Re = (e) => {
|
|
66
66
|
let t = V.value;
|
|
67
|
-
V.value = null, t !== null && t !== e &&
|
|
68
|
-
},
|
|
67
|
+
V.value = null, t !== null && t !== e && Me(N("reorder"), { items: be(z.value.length, t, e) }, () => q(t, e));
|
|
68
|
+
}, ze = () => F(pe(z.value, A.component.simple ? { [Object.keys(A.component.templateState)[0] ?? "value"]: null } : A.component.templateState));
|
|
69
69
|
return (e, r) => {
|
|
70
70
|
let i = C("RepeaterField", !0);
|
|
71
|
-
return T(
|
|
71
|
+
return T(_e)(A.component) ? (b(), p(re, {
|
|
72
72
|
key: 0,
|
|
73
73
|
component: A.component
|
|
74
74
|
}, {
|
|
@@ -78,15 +78,15 @@ var D = {
|
|
|
78
78
|
key: 1,
|
|
79
79
|
field: A.component,
|
|
80
80
|
"html-for": T(I),
|
|
81
|
-
error: T(
|
|
81
|
+
error: T(Ne)
|
|
82
82
|
}, {
|
|
83
83
|
default: E(() => [g("div", {
|
|
84
84
|
ref_key: "moveContainer",
|
|
85
|
-
ref:
|
|
85
|
+
ref: Le,
|
|
86
86
|
class: "flex flex-col gap-3"
|
|
87
87
|
}, [
|
|
88
|
-
g("span", D, w(T(
|
|
89
|
-
A.component.table?.length && !A.component.simple ? (b(), p(
|
|
88
|
+
g("span", D, w(T(Ie)), 1),
|
|
89
|
+
A.component.table?.length && !A.component.simple ? (b(), p(de, {
|
|
90
90
|
key: 0,
|
|
91
91
|
id: T(I),
|
|
92
92
|
columns: A.component.table,
|
|
@@ -94,7 +94,7 @@ var D = {
|
|
|
94
94
|
count: z.value.length,
|
|
95
95
|
"prefix-for": (e) => `${A.component.statePath}.${e}.`,
|
|
96
96
|
"schema-for": U,
|
|
97
|
-
"labelled-by": A.component.label ? T(
|
|
97
|
+
"labelled-by": A.component.label ? T(c)(T(I)).label : void 0,
|
|
98
98
|
"described-by": T(L)["aria-describedby"],
|
|
99
99
|
reorderable: Q.value,
|
|
100
100
|
cloneable: !!A.component.cloneable && G.value,
|
|
@@ -102,7 +102,7 @@ var D = {
|
|
|
102
102
|
virtual: T(H),
|
|
103
103
|
context: T(j),
|
|
104
104
|
resolve: N,
|
|
105
|
-
"extra-actions-for": (e) => A.component.items[e]
|
|
105
|
+
"extra-actions-for": (e) => T(l)(A.component, A.component.items[e]),
|
|
106
106
|
onMove: q,
|
|
107
107
|
onClone: X,
|
|
108
108
|
onRemove: Y
|
|
@@ -121,7 +121,7 @@ var D = {
|
|
|
121
121
|
"context",
|
|
122
122
|
"extra-actions-for"
|
|
123
123
|
])) : m("", !0),
|
|
124
|
-
(!A.component.table?.length || A.component.simple) && A.component.collapsible && !A.component.simple && z.value.length > 0 ? (b(), p(
|
|
124
|
+
(!A.component.table?.length || A.component.simple) && A.component.collapsible && !A.component.simple && z.value.length > 0 ? (b(), p(oe, {
|
|
125
125
|
key: 1,
|
|
126
126
|
context: T(j),
|
|
127
127
|
"collapse-all": N("collapseAll"),
|
|
@@ -137,11 +137,11 @@ var D = {
|
|
|
137
137
|
key: 2,
|
|
138
138
|
id: T(I),
|
|
139
139
|
ref: T(H).attach,
|
|
140
|
-
"aria-labelledby": A.component.label ? T(
|
|
140
|
+
"aria-labelledby": A.component.label ? T(c)(T(I)).label : void 0,
|
|
141
141
|
"aria-describedby": T(L)["aria-describedby"],
|
|
142
|
-
style:
|
|
143
|
-
class: y(T(t)("grid gap-3", A.component.grid && T(
|
|
144
|
-
}, [(b(!0), h(
|
|
142
|
+
style: Te(T(H).style.value),
|
|
143
|
+
class: y(T(t)("grid gap-3", A.component.grid && T(ge)(A.component.grid)))
|
|
144
|
+
}, [(b(!0), h(we, null, S(T(H).indexes.value, (e) => (b(), h("li", {
|
|
145
145
|
key: e,
|
|
146
146
|
ref_for: !0,
|
|
147
147
|
ref: T(H).item,
|
|
@@ -152,26 +152,26 @@ var D = {
|
|
|
152
152
|
class: y(T(t)("bg-card min-w-0 rounded-lg border shadow-xs", V.value === e && "opacity-50", A.component.simple && "border-0 shadow-none")),
|
|
153
153
|
onDragstart: (t) => V.value = e,
|
|
154
154
|
onDragover: r[2] ||= (e) => Z.value && e.preventDefault(),
|
|
155
|
-
onDrop: (t) =>
|
|
155
|
+
onDrop: (t) => Re(e),
|
|
156
156
|
onDragend: r[3] ||= (e) => V.value = null
|
|
157
157
|
}, [_(ae, { open: !W(e) }, {
|
|
158
|
-
default: E(() => [A.component.simple ? m("", !0) : (b(), h("div",
|
|
158
|
+
default: E(() => [A.component.simple ? m("", !0) : (b(), h("div", De, [
|
|
159
159
|
Z.value ? (b(), h("span", {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "text-muted-foreground cursor-grab",
|
|
162
162
|
title: N("reorder")?.label ?? void 0,
|
|
163
163
|
"aria-hidden": "true"
|
|
164
|
-
}, [_(T(n), { name: N("reorder")?.icon ?? "grip-vertical" }, null, 8, ["name"])], 8,
|
|
165
|
-
A.component.itemNumbers ? (b(), h("span",
|
|
166
|
-
A.component.items[e]?.label ? (b(), h("span",
|
|
164
|
+
}, [_(T(n), { name: N("reorder")?.icon ?? "grip-vertical" }, null, 8, ["name"])], 8, Oe)) : m("", !0),
|
|
165
|
+
A.component.itemNumbers ? (b(), h("span", ke, w(T(je).number(e + 1)), 1)) : m("", !0),
|
|
166
|
+
A.component.items[e]?.label ? (b(), h("span", Ae, w(A.component.items[e]?.label), 1)) : m("", !0),
|
|
167
167
|
r[4] ||= g("span", { class: "flex-1" }, null, -1),
|
|
168
|
-
_(
|
|
168
|
+
_(se, {
|
|
169
169
|
context: T(j),
|
|
170
170
|
"item-key": String(e),
|
|
171
171
|
index: e,
|
|
172
172
|
count: z.value.length,
|
|
173
173
|
resolve: (t) => N(t, e),
|
|
174
|
-
"extra-actions": R.value ? void 0 : A.component.items[e]
|
|
174
|
+
"extra-actions": R.value ? void 0 : T(l)(A.component, A.component.items[e]),
|
|
175
175
|
buttons: Q.value,
|
|
176
176
|
"can-clone": !!A.component.cloneable && G.value,
|
|
177
177
|
"can-delete": K.value,
|
|
@@ -201,8 +201,8 @@ var D = {
|
|
|
201
201
|
"onDelete",
|
|
202
202
|
"onToggle"
|
|
203
203
|
])
|
|
204
|
-
])), _(
|
|
205
|
-
default: E(() => [g("div", { class: y(T(t)("flex gap-2", A.component.simple ? "items-start" : "p-4")) }, [g("div",
|
|
204
|
+
])), _(a, null, {
|
|
205
|
+
default: E(() => [g("div", { class: y(T(t)("flex gap-2", A.component.simple ? "items-start" : "p-4")) }, [g("div", k, [_(ee, {
|
|
206
206
|
components: U(e),
|
|
207
207
|
columns: A.component.simple ? { default: 1 } : A.component.columns ?? {
|
|
208
208
|
default: 1,
|
|
@@ -213,7 +213,7 @@ var D = {
|
|
|
213
213
|
"components",
|
|
214
214
|
"columns",
|
|
215
215
|
"class"
|
|
216
|
-
])]), A.component.simple && K.value ? (b(), p(
|
|
216
|
+
])]), A.component.simple && K.value ? (b(), p(s, {
|
|
217
217
|
key: 0,
|
|
218
218
|
action: N("delete", e),
|
|
219
219
|
context: T(j),
|
|
@@ -230,16 +230,16 @@ var D = {
|
|
|
230
230
|
_: 2
|
|
231
231
|
}, 1024)]),
|
|
232
232
|
_: 2
|
|
233
|
-
}, 1032, ["open"])], 42,
|
|
234
|
-
G.value ? (b(), p(
|
|
233
|
+
}, 1032, ["open"])], 42, Ee))), 128))], 14, O)) : m("", !0),
|
|
234
|
+
G.value ? (b(), p(o, {
|
|
235
235
|
key: 3,
|
|
236
236
|
alignment: A.component.addActionAlignment
|
|
237
237
|
}, {
|
|
238
|
-
default: E(() => [_(
|
|
238
|
+
default: E(() => [_(s, {
|
|
239
239
|
action: N("add"),
|
|
240
240
|
context: T(j),
|
|
241
241
|
size: "sm",
|
|
242
|
-
onClient:
|
|
242
|
+
onClient: ze
|
|
243
243
|
}, null, 8, ["action", "context"])]),
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["alignment"])) : m("", !0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepeaterField.vue_vue_type_script_setup_true_lang.js","names":["_resolveComponent","_unref","_openBlock","_createBlock","DeferredSchema","_withCtx","_createVNode","FieldWrapper","_createElementVNode","_toDisplayString","RepeaterTable","_createCommentVNode","CollapseAllActions","_createElementBlock","_normalizeStyle","_normalizeClass","_Fragment","_renderList","Collapsible","Icon","ItemHeaderActions","CollapsibleContent","SchemaRenderer","ItemActionButton","AddActionRow","Icon_default","SchemaRenderer_default","DeferredSchema_default","FieldWrapper_default","Collapsible_default","CollapsibleContent_default","AddActionRow_default","ItemActionButton_default","CollapseAllActions_default","ItemHeaderActions_default","RepeaterTable_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","RepeaterField_vue_vue_type_script_setup_true_lang_default","props","__props","formatter","useFormatter","context","useFieldActionContext","runItemAction","useRunItemAction","fallbacks","useItemActionFallbacks","resolve","resolveItemAction","name","index","fieldDisabled","useField","disabled","computed","readOnly","items","value","collapsed","ref","dragIndex","virtual","useVirtualList","virtualizeOptions","VIRTUAL_ESTIMATES","schemaFor","templateForIndex","isCollapsed","canAdd","canDelete","moveItem","setValue","moveRepeaterItem","from","to","moveIndexedState","moves","useItemMoves","moveAnnouncement","moveContainer","removeItem","removeRepeaterItem","removeIndexedState","cloneItem","cloneRepeaterItem","cloneIndexedState","draggable","buttons","setAllCollapsed","onDrop","reorderedItemKeys","add","appendRepeaterItem","_component_RepeaterField","resolveComponent","unref","isDeferredPlaceholder","openBlock","createBlock","withCtx","loaded","createVNode","id","error","createElementVNode","toDisplayString","fieldIds","aria","createCommentVNode","_cache","createElementBlock","normalizeStyle","normalizeClass","cn","gridColumnsClasses","Fragment","renderList","$event"],"sources":["../../../src/components/fields/RepeaterField.vue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RepeaterField.vue_vue_type_script_setup_true_lang.js","names":["_resolveComponent","_unref","_openBlock","_createBlock","DeferredSchema","_withCtx","_createVNode","FieldWrapper","_createElementVNode","_toDisplayString","RepeaterTable","_createCommentVNode","CollapseAllActions","_createElementBlock","_normalizeStyle","_normalizeClass","_Fragment","_renderList","Collapsible","Icon","ItemHeaderActions","CollapsibleContent","SchemaRenderer","ItemActionButton","AddActionRow","Icon_default","SchemaRenderer_default","DeferredSchema_default","FieldWrapper_default","Collapsible_default","CollapsibleContent_default","AddActionRow_default","ItemActionButton_default","CollapseAllActions_default","ItemHeaderActions_default","RepeaterTable_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","RepeaterField_vue_vue_type_script_setup_true_lang_default","props","__props","formatter","useFormatter","context","useFieldActionContext","runItemAction","useRunItemAction","fallbacks","useItemActionFallbacks","resolve","resolveItemAction","name","index","fieldDisabled","useField","disabled","computed","readOnly","items","value","collapsed","ref","dragIndex","virtual","useVirtualList","virtualizeOptions","VIRTUAL_ESTIMATES","schemaFor","templateForIndex","isCollapsed","canAdd","canDelete","moveItem","setValue","moveRepeaterItem","from","to","moveIndexedState","moves","useItemMoves","moveAnnouncement","moveContainer","removeItem","removeRepeaterItem","removeIndexedState","cloneItem","cloneRepeaterItem","cloneIndexedState","draggable","buttons","setAllCollapsed","onDrop","reorderedItemKeys","add","appendRepeaterItem","_component_RepeaterField","resolveComponent","unref","isDeferredPlaceholder","openBlock","createBlock","withCtx","loaded","createVNode","id","error","createElementVNode","toDisplayString","fieldIds","aria","itemExtraActions","createCommentVNode","_cache","createElementBlock","normalizeStyle","normalizeClass","cn","gridColumnsClasses","Fragment","renderList","$event"],"sources":["../../../src/components/fields/RepeaterField.vue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CA,IAAM6C,IAAQC,GACRC,KAAYC,EAAa,GACzBC,IAAUC,SAA4BL,EAAM,SAAS,GACrDM,KAAgBC,GAAiBH,CAAO,GACxCI,IAAYC,GAAuB,GACnCC,KAAW,GAAsB,MACrCC,GACEC,GACAZ,EAAM,WACNa,MAAU,KAAA,IAAY,KAAA,IAAYb,EAAM,UAAU,MAAMa,IACxDD,MAAS,QAAQ;GAAE,GAAGJ,EAAU;GAAK,OAAOR,EAAM,UAAU;EAAe,IAAIQ,EAAUI,EAC3F,GACI,EACJ,UACA,aACA,WACA,OACA,UAAUE,IACV,cACA,YACEC,QAAiCf,EAAM,SAAS,GAE9CgB,IAAWC,QAAeH,GAAc,SAASI,GAAS,KAAK,GAC/DC,IAAQF,QAAeG,EAAM,SAAS,CAAC,CAAC,GACxCC,IAAYC,EAA6B,CAAC,CAAC,GAC3CC,IAAYD,EAAmB,IAAI,GAGnCE,IAAUC,SACRN,EAAM,MAAM,cAEhBO,GACE1B,EAAM,UAAU,YAChB2B,GAAkB,MAClB,IACA3B,EAAM,UAAU,OAAO,SAAS,CAClC,CACJ;EACA,EAAuBwB,SAAexB,E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,EAAQ,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAA6B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAOlF,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,iBAAiB,CAAA;IAC9B,0EAA0E;IAC1E,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,OAAO,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,gBAAgB,EACjC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,GACrC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"rich-editor-extensions.d.ts","sourceRoot":"","sources":["../../../src/components/fields/rich-editor-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAEL,iBAAiB,EAMlB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAA6B,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAOlF,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,iBAAiB,CAAA;IAC9B,0EAA0E;IAC1E,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,OAAO,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;CACpC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,gBAAgB,EACjC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,GACrC,oBAAoB,CAmFtB"}
|
|
@@ -56,13 +56,15 @@ function m(m, h) {
|
|
|
56
56
|
suggestions: S,
|
|
57
57
|
insertBlock: async (e) => {
|
|
58
58
|
let t = await C(e), n = h.value;
|
|
59
|
-
t
|
|
59
|
+
if (!t || !n || n.isDestroyed) return;
|
|
60
|
+
let r = {
|
|
60
61
|
type: "customBlock",
|
|
61
62
|
attrs: {
|
|
62
63
|
id: t.id,
|
|
63
64
|
config: t.config
|
|
64
65
|
}
|
|
65
|
-
}).
|
|
66
|
+
}, { selection: i } = n.state, a = n.chain().focus();
|
|
67
|
+
("node" in i && i.node ? a.insertContentAt(i.to, r) : a.insertContent(r)).run();
|
|
66
68
|
},
|
|
67
69
|
context: b
|
|
68
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-editor-extensions.js","names":["useRichEditorExtensions","t","useT","form","useOptionalFormStore","page","usePageActionContext","runner","useActionRunner","context","computed","fieldActionContext","component","remote","RichEditorRemote","suggestions","EditorSuggestions","trigger","query","runBlock","block","candidate","id","result","config","isCustomBlockResult","Node","mentionNodeConfig","mergeTagNodeConfig","customBlockNodeConfig","instance","editor","pos"],"sources":["../../../src/components/fields/rich-editor-extensions.ts"],"mappings":";;;;;;;AA8BA,SAAgBA,EACd,GACA,GACsB;CACtB,IAAMC,IAAIC,EAAK,GACTC,IAAOC,EAAqB,GAC5BC,IAAOC,EAAqB,GAC5BC,IAASC,EAAgB,GACzBC,IAAUC,QACdC,EAAmB;EAAE,OAAON,EAAK;EAAO;EAAM,KAAKO,EAAU,CAAC,CAAC;CAAI,CAAC,CACtE,GACMC,IAAS,IAAIC,EAAiBX,GAAMS,EAAU,CAAC,CAAC,SAAS,GACzDG,IAAc,IAAIC,EAAkB;EACxC,UAAUJ,EAAU,CAAC,CAAC,YAAY,CAAC;EACnC,WAAWA,EAAU,CAAC,CAAC,aAAa,CAAC;EACrC,SAAS,GAAS,MAAUC,EAAO,eAAeI,GAASC,CAAK;CAClE,CAAC;CAED,QAAsBH,EAAY,QAAQ,CAAC;CAE3C,IAAMI,IAAW,OAAO,GAAY,MAAqC;EACvE,IAAMC,IAAQR,EAAU,CAAC,CAAC,cAAc,MAAM,MAAcS,EAAU,OAAOC,CAAE;EAE/E,IAAI,CAACF,GAAO,OAAO;EAEnB,IAAMG,IAAS,MAAMhB,EAAO,SAASa,EAAM,QAAQ;GACjD,GAAGX,EAAQ;GACX,WAAWe,IAAS;IAAE;IAAQ,SAAS;GAAK,IAAI,CAAC;EACnD,CAAC;EAQD,OANKC,EAAoBF,CAAM,KAE3BA,EAAO,YAAY,KAAA,KACrBV,EAAO,aAAaU,EAAO,IAAIA,EAAO,QAAQA,EAAO,SAASA,EAAO,UAAU,EAAI,GAG9EA,KANkC;CAO3C;
|
|
1
|
+
{"version":3,"file":"rich-editor-extensions.js","names":["useRichEditorExtensions","t","useT","form","useOptionalFormStore","page","usePageActionContext","runner","useActionRunner","context","computed","fieldActionContext","component","remote","RichEditorRemote","suggestions","EditorSuggestions","trigger","query","runBlock","block","candidate","id","result","config","isCustomBlockResult","Node","mentionNodeConfig","mergeTagNodeConfig","customBlockNodeConfig","instance","editor","pos","chain","selection"],"sources":["../../../src/components/fields/rich-editor-extensions.ts"],"mappings":";;;;;;;AA8BA,SAAgBA,EACd,GACA,GACsB;CACtB,IAAMC,IAAIC,EAAK,GACTC,IAAOC,EAAqB,GAC5BC,IAAOC,EAAqB,GAC5BC,IAASC,EAAgB,GACzBC,IAAUC,QACdC,EAAmB;EAAE,OAAON,EAAK;EAAO;EAAM,KAAKO,EAAU,CAAC,CAAC;CAAI,CAAC,CACtE,GACMC,IAAS,IAAIC,EAAiBX,GAAMS,EAAU,CAAC,CAAC,SAAS,GACzDG,IAAc,IAAIC,EAAkB;EACxC,UAAUJ,EAAU,CAAC,CAAC,YAAY,CAAC;EACnC,WAAWA,EAAU,CAAC,CAAC,aAAa,CAAC;EACrC,SAAS,GAAS,MAAUC,EAAO,eA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AS,MAAMJ,EAASG,CAAE,GAC1BQ,IAAWC,EAAO;GAExB,IAAI,CAACR,KAAU,CAACO,KAAYA,EAAS,aAAa;GAElD,IAAMV,IAAQ;IAAE,MAAM;IAAe,OAAO;KAAE,IAAIG,EAAO;KAAI,QAAQA,EAAO;IAAO;GAAE,GAG/E,EAAE,iBAAcO,EAAS,OACzBG,IAAQH,EAAS,MAAM,CAAC,CAAC,MAAM;GACpC,CAAC,UAAUI,KAAaA,EAAU,OAC/BD,EAAM,gBAAgBC,EAAU,IAAId,CAAK,IACzCa,EAAM,cAAcb,CAAK,EAAA,CAC3B,IAAI;EACR;EAE+C;CAAQ;AACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardComponent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/WizardComponent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardComponent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/WizardComponent.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AA2BjD;;;;GAIG;AACH,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,YAAY,CAAA;CAAE,CAAC;;AAub/C,wBAMG"}
|
|
@@ -5,11 +5,12 @@ import { useStoreSelector as r } from "../../composables/use-store.js";
|
|
|
5
5
|
import i from "../../lib/Icon.js";
|
|
6
6
|
import a from "../ui/Button2.js";
|
|
7
7
|
import o from "../actions/ActionButton.js";
|
|
8
|
-
import { useOptionalFormStore as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
8
|
+
import { useOptionalFormStore as ee } from "../form/form-context.js";
|
|
9
|
+
import te from "../schema/SchemaRenderer.js";
|
|
10
|
+
import { useFieldActionContext as ne } from "../schema/field-actions.js";
|
|
11
|
+
import s from "./DeferredSchema.js";
|
|
12
|
+
import { collectFields as re, completedStepIcon as c, initialWizardStep as l, persistWizardStep as u, reportWizardProgress as d, schemaGapClass as f, wizardRequestedStepIndex as p, wizardStepFieldPaths as ie, wizardStepQueryKey as ae, wizardStepToReveal as oe } from "@alfakit/core";
|
|
13
|
+
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, mergeProps as C, normalizeClass as w, openBlock as T, ref as E, renderList as D, toDisplayString as O, unref as k, watch as A, withCtx as j } from "vue";
|
|
13
14
|
import { CheckIcon as M } from "@lucide/vue";
|
|
14
15
|
//#region src/components/layout/WizardComponent.vue?vue&type=script&setup=true&lang.ts
|
|
15
16
|
var N = ["aria-label"], P = ["disabled", "onClick"], F = { class: "flex flex-col items-start leading-tight" }, I = {
|
|
@@ -21,78 +22,78 @@ var N = ["aria-label"], P = ["disabled", "onClick"], F = { class: "flex flex-col
|
|
|
21
22
|
}, R = { class: "flex items-center justify-between gap-2 border-t p-4" }, z = { key: 0 }, B = { key: 0 }, V = ["innerHTML"], H = {
|
|
22
23
|
key: 6,
|
|
23
24
|
class: "text-muted-foreground text-xs"
|
|
24
|
-
}, U = /*@__PURE__*/
|
|
25
|
+
}, U = /*@__PURE__*/ S({
|
|
25
26
|
__name: "WizardComponent",
|
|
26
27
|
props: { component: {} },
|
|
27
|
-
setup(
|
|
28
|
-
let U =
|
|
28
|
+
setup(S) {
|
|
29
|
+
let U = S, W = e(), G = h(() => U.component.schema ?? []), K = E(l(G.value.length, U.component.startStep, U.component.persistStepInQueryString)), q = h(() => ae(U.component.persistStepInQueryString)), J = t();
|
|
29
30
|
A(K, (e) => {
|
|
30
|
-
q.value &&
|
|
31
|
+
q.value && u(e, q.value);
|
|
31
32
|
}, { immediate: !0 });
|
|
32
|
-
let Y =
|
|
33
|
-
A([K, () => G.value.length], ([e, t]) =>
|
|
33
|
+
let Y = ee(), se = ne(() => U.component), ce = h(() => Y ? se.value : J);
|
|
34
|
+
A([K, () => G.value.length], ([e, t]) => d(Y, e, t), { immediate: !0 });
|
|
34
35
|
let X = r(Y?.store ?? {
|
|
35
36
|
get: () => ({ errors: {} }),
|
|
36
37
|
subscribe: () => () => {}
|
|
37
|
-
}, (e) => e.errors),
|
|
38
|
+
}, (e) => e.errors), le = (e) => {
|
|
38
39
|
let t = G.value[e];
|
|
39
|
-
return t ?
|
|
40
|
+
return t ? re(t.schema ?? []).some((e) => X.value[e.statePath]) : !1;
|
|
40
41
|
};
|
|
41
42
|
A(X, (e, t) => {
|
|
42
|
-
let n =
|
|
43
|
+
let n = oe(G.value, t ?? {}, e);
|
|
43
44
|
n !== null && (K.value = n);
|
|
44
45
|
}, { immediate: !0 }), A(() => U.component.goToStep?.id, (e) => {
|
|
45
46
|
if (!e) return;
|
|
46
|
-
let t =
|
|
47
|
+
let t = p(G.value, U.component.goToStep, K.value, U.component.skippable);
|
|
47
48
|
t !== null && (K.value = t);
|
|
48
49
|
});
|
|
49
|
-
let Z =
|
|
50
|
+
let Z = h(() => K.value), Q = E(!1), $ = async () => {
|
|
50
51
|
let e = G.value[Z.value];
|
|
51
52
|
if (Y && e) {
|
|
52
53
|
Q.value = !0;
|
|
53
|
-
let t = await Y.validateStep(e.key, e.deferred ? e.deferredPaths ?? [] :
|
|
54
|
+
let t = await Y.validateStep(e.key, e.deferred ? e.deferredPaths ?? [] : ie(e));
|
|
54
55
|
if (Q.value = !1, !t) return;
|
|
55
56
|
}
|
|
56
57
|
K.value = Z.value + 1;
|
|
57
58
|
};
|
|
58
|
-
return (e, t) => (T(),
|
|
59
|
+
return (e, t) => (T(), v("div", C({
|
|
59
60
|
"data-surface": "wizard",
|
|
60
61
|
class: "bg-card rounded-xl border shadow-xs"
|
|
61
62
|
}, U.component.extraAttributes), [
|
|
62
|
-
|
|
63
|
+
y("ol", {
|
|
63
64
|
class: "flex flex-wrap gap-2 border-b p-4",
|
|
64
65
|
"aria-label": k(W)("steps", {}, "Steps")
|
|
65
|
-
}, [(T(!0),
|
|
66
|
+
}, [(T(!0), v(m, null, D(G.value, (e, t) => (T(), v("li", {
|
|
66
67
|
key: e.key,
|
|
67
68
|
class: "flex items-center gap-2"
|
|
68
|
-
}, [
|
|
69
|
+
}, [y("button", {
|
|
69
70
|
type: "button",
|
|
70
71
|
disabled: !(U.component.skippable || t <= Z.value),
|
|
71
72
|
class: w(k(n)("flex items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors disabled:cursor-default", t === Z.value ? "text-foreground font-medium" : "text-muted-foreground", (U.component.skippable || t <= Z.value) && t !== Z.value && "hover:text-foreground")),
|
|
72
73
|
onClick: (e) => K.value = t
|
|
73
|
-
}, [
|
|
74
|
+
}, [y("span", { class: w(k(n)("flex size-6 items-center justify-center rounded-full border text-xs", t === Z.value && "border-primary bg-primary text-primary-foreground", t < Z.value && "border-success bg-success text-success-foreground", le(t) && "border-destructive text-destructive")) }, [t < Z.value ? (T(), v(m, { key: 0 }, [k(c)(e, U.component) ? (T(), g(k(i), {
|
|
74
75
|
key: 0,
|
|
75
|
-
name: k(
|
|
76
|
+
name: k(c)(e, U.component),
|
|
76
77
|
class: "size-3.5"
|
|
77
|
-
}, null, 8, ["name"])) : (T(),
|
|
78
|
+
}, null, 8, ["name"])) : (T(), g(k(i), {
|
|
78
79
|
key: 1,
|
|
79
80
|
name: "alfakit::schemas.wizard.completed-step",
|
|
80
81
|
fallback: k(M),
|
|
81
82
|
class: "size-3.5"
|
|
82
|
-
}, null, 8, ["fallback"]))], 64)) : e.icon ? (T(),
|
|
83
|
+
}, null, 8, ["fallback"]))], 64)) : e.icon ? (T(), g(k(i), {
|
|
83
84
|
key: 1,
|
|
84
85
|
name: e.icon,
|
|
85
86
|
class: "size-3.5"
|
|
86
|
-
}, null, 8, ["name"])) : (T(),
|
|
87
|
-
(T(!0),
|
|
87
|
+
}, null, 8, ["name"])) : (T(), v(m, { key: 2 }, [b(O(t + 1), 1)], 64))], 2), y("span", F, [b(O(e.label) + " ", 1), e.description ? (T(), v("span", I, O(e.description), 1)) : _("", !0)])], 10, P), t < G.value.length - 1 ? (T(), v("span", L)) : _("", !0)]))), 128))], 8, N),
|
|
88
|
+
(T(!0), v(m, null, D(G.value, (e, t) => (T(), v("div", {
|
|
88
89
|
key: e.key,
|
|
89
90
|
class: w(k(n)("p-6", t !== Z.value && "hidden"))
|
|
90
|
-
}, [
|
|
91
|
-
default: j(({ component: e }) => [
|
|
91
|
+
}, [x(s, { component: e }, {
|
|
92
|
+
default: j(({ component: e }) => [x(te, {
|
|
92
93
|
components: e.schema ?? [],
|
|
93
94
|
columns: e.columns,
|
|
94
95
|
attributes: e.extraAttributes,
|
|
95
|
-
class: w(k(
|
|
96
|
+
class: w(k(f)(e) || void 0)
|
|
96
97
|
}, null, 8, [
|
|
97
98
|
"components",
|
|
98
99
|
"columns",
|
|
@@ -101,7 +102,7 @@ var N = ["aria-label"], P = ["disabled", "onClick"], F = { class: "flex flex-col
|
|
|
101
102
|
])]),
|
|
102
103
|
_: 1
|
|
103
104
|
}, 8, ["component"])], 2))), 128)),
|
|
104
|
-
|
|
105
|
+
y("div", R, [U.component.previousAction === !1 ? (T(), v("span", z)) : U.component.previousAction ? (T(), g(o, {
|
|
105
106
|
key: 1,
|
|
106
107
|
action: {
|
|
107
108
|
...U.component.previousAction,
|
|
@@ -113,16 +114,16 @@ var N = ["aria-label"], P = ["disabled", "onClick"], F = { class: "flex flex-col
|
|
|
113
114
|
"action",
|
|
114
115
|
"context",
|
|
115
116
|
"on-trigger"
|
|
116
|
-
])) : (T(),
|
|
117
|
+
])) : (T(), g(a, {
|
|
117
118
|
key: 2,
|
|
118
119
|
type: "button",
|
|
119
120
|
variant: "outline",
|
|
120
121
|
disabled: Z.value === 0,
|
|
121
122
|
onClick: t[0] ||= (e) => K.value = Z.value - 1
|
|
122
123
|
}, {
|
|
123
|
-
default: j(() => [
|
|
124
|
+
default: j(() => [b(O(U.component.previousActionLabel ?? k(W)("form.previous_step", {}, "Back")), 1)]),
|
|
124
125
|
_: 1
|
|
125
|
-
}, 8, ["disabled"])), Z.value < G.value.length - 1 ? (T(),
|
|
126
|
+
}, 8, ["disabled"])), Z.value < G.value.length - 1 ? (T(), v(m, { key: 3 }, [U.component.nextAction === !1 ? (T(), v("span", B)) : U.component.nextAction ? (T(), g(o, {
|
|
126
127
|
key: 1,
|
|
127
128
|
action: {
|
|
128
129
|
...U.component.nextAction,
|
|
@@ -134,24 +135,24 @@ var N = ["aria-label"], P = ["disabled", "onClick"], F = { class: "flex flex-col
|
|
|
134
135
|
"action",
|
|
135
136
|
"context",
|
|
136
137
|
"on-trigger"
|
|
137
|
-
])) : (T(),
|
|
138
|
+
])) : (T(), g(a, {
|
|
138
139
|
key: 2,
|
|
139
140
|
type: "button",
|
|
140
141
|
disabled: Q.value,
|
|
141
142
|
"aria-busy": Q.value || void 0,
|
|
142
143
|
onClick: $
|
|
143
144
|
}, {
|
|
144
|
-
default: j(() => [
|
|
145
|
+
default: j(() => [b(O(U.component.nextActionLabel ?? k(W)("form.next_step", {}, "Next")), 1)]),
|
|
145
146
|
_: 1
|
|
146
|
-
}, 8, ["disabled", "aria-busy"]))], 64)) : U.component.submitAction ? (T(),
|
|
147
|
+
}, 8, ["disabled", "aria-busy"]))], 64)) : U.component.submitAction ? (T(), g(o, {
|
|
147
148
|
key: 4,
|
|
148
149
|
action: U.component.submitAction,
|
|
149
|
-
context:
|
|
150
|
-
}, null, 8, ["action", "context"])) : U.component.submitActionHtml ? (T(),
|
|
150
|
+
context: ce.value
|
|
151
|
+
}, null, 8, ["action", "context"])) : U.component.submitActionHtml ? (T(), v("div", {
|
|
151
152
|
key: 5,
|
|
152
153
|
"data-slot": "wizard-submit",
|
|
153
154
|
innerHTML: U.component.submitActionHtml
|
|
154
|
-
}, null, 8, V)) : (T(),
|
|
155
|
+
}, null, 8, V)) : (T(), v("span", H, O(U.component.submitActionLabel), 1))])
|
|
155
156
|
], 16));
|
|
156
157
|
}
|
|
157
158
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardComponent.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_unref","_Fragment","_renderList","_normalizeClass","_createBlock","Icon","_createTextVNode","_toDisplayString","_createCommentVNode","_createVNode","DeferredSchema","_withCtx","SchemaRenderer","ActionButton","Button","Icon_default","Button_default","ActionButton_default","SchemaRenderer_default","DeferredSchema_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","WizardComponent_vue_vue_type_script_setup_true_lang_default","props","__props","t","useT","steps","computed","current","ref","initialWizardStep","stepQueryKey","wizardStepQueryKey","actionContext","usePageActionContext","persistWizardStep","step","store","useOptionalFormStore","count","reportWizardProgress","errors","useStoreSelector","state","stepHasError","index","collectFields","field","watch","reveal","wizardStepToReveal","previous","next","id","requested","wizardRequestedStepIndex","activeIndex","validating","valid","wizardStepFieldPaths","openBlock","createElementBlock","mergeProps","createElementVNode","unref","Fragment","renderList","normalizeClass","cn","completedStepIcon","createBlock","CheckIcon","createTextVNode","toDisplayString","createCommentVNode","createVNode","withCtx","loaded","schemaGapClass","_cache"],"sources":["../../../src/components/layout/WizardComponent.vue"],"mappings":"
|
|
1
|
+
{"version":3,"file":"WizardComponent.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_unref","_Fragment","_renderList","_normalizeClass","_createBlock","Icon","_createTextVNode","_toDisplayString","_createCommentVNode","_createVNode","DeferredSchema","_withCtx","SchemaRenderer","ActionButton","Button","Icon_default","Button_default","ActionButton_default","SchemaRenderer_default","DeferredSchema_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","WizardComponent_vue_vue_type_script_setup_true_lang_default","props","__props","t","useT","steps","computed","current","ref","initialWizardStep","stepQueryKey","wizardStepQueryKey","actionContext","usePageActionContext","persistWizardStep","step","store","useOptionalFormStore","fieldContext","useFieldActionContext","submitContext","count","reportWizardProgress","errors","useStoreSelector","state","stepHasError","index","collectFields","field","watch","reveal","wizardStepToReveal","previous","next","id","requested","wizardRequestedStepIndex","activeIndex","validating","valid","wizardStepFieldPaths","openBlock","createElementBlock","mergeProps","createElementVNode","unref","Fragment","renderList","normalizeClass","cn","completedStepIcon","createBlock","CheckIcon","createTextVNode","toDisplayString","createCommentVNode","createVNode","withCtx","loaded","schemaGapClass","_cache"],"sources":["../../../src/components/layout/WizardComponent.vue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA,IAAMmC,IAAQC,GACRC,IAAIC,EAAK,GACTC,IAAQC,QAAeL,EAAM,UAAU,UAAU,CAAC,CAAC,GACnDM,IAAUC,EACdC,EACEJ,EAAM,MAAM,QACZJ,EAAM,UAAU,WAChBA,EAAM,UAAU,wBAClB,CACF,GAEMS,IAAeJ,QAAeK,GAAmBV,EAAM,UAAU,wBAAwB,CAAC,GAC1FW,IAAgBC,EAAqB;EAE3C,EACEN,IACC,MAAS;GACR,AAAIG,EAAa,SAAOI,EAAkBC,GAAML,EAAa,KAAK;EACpE,GACA,EAAE,WAAW,GAAK,CACpB;EACA,IAAMM,IAAQC,GAAqB,GAE7BC,KAAeC,SAA4BlB,EAAM,SAAS,GAC1DmB,KAAgBd,QAAgBU,IAAQE,GAAa,QAAQN,CAAc;EAGjF,EACE,CAACL,SAAeF,EAAM,MAAM,MAAM,IACjC,CAACU,GAAMM,OAAWC,EAAqBN,GAAOD,GAAMM,CAAK,GAC1D,EAAE,WAAW,GAAK,CACpB;EACA,IAAME,IAASC,EACbR,GAAO,SAAS;GACd,YAAY,EAAE,QAAQ,CAAC,EAA8B;GACrD,uBAAuB,CAAC;EAC1B,IACC,MAAUS,EAAM,MACnB,GAEMC,MAAgB,MAAkB;GACtC,IAAMX,IAAOV,EAAM,MAAMsB;GAEzB,OAAOZ,IACHa,GAAcb,EAAK,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM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A,GAAAC,EAIE,OAAA;;IAFA,aAAU;IACV,WAAQkC,EAAM,UAAU;GAE1BnC,GAAAA,MAAAA,GAAAA,CAAAA,MAAAA,EAAA,GAAAC,EAES,QAFTgC,GAEStB,EADPwB,EAAM,UAAU,iBAAiB,GAAA,CAAA,EAAA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationsMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/NotificationsMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotificationsMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/NotificationsMenu.vue"],"names":[],"mappings":"AA2UA;;;;GAIG;AACH,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAAC;;aAAvB,QAAQ,GAAG,SAAS;;AAgsBnD,wBAOG"}
|