@burgantech/pseudo-ui 0.1.0 → 0.1.1
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/README.md +261 -130
- package/dist/adapters/vue/DynamicRenderer.vue.js +1 -1
- package/dist/adapters/vue/DynamicRenderer.vue2.js +565 -614
- package/dist/adapters/vue/NestedComponentWrapper.vue.js +42 -72
- package/dist/adapters/vue/index.d.ts +1 -0
- package/dist/adapters/vue/index.js +17 -13
- package/dist/adapters/vue/useLovLoader.d.ts +24 -0
- package/dist/adapters/vue/useLovLoader.js +101 -0
- package/dist/engine/bindResolver.d.ts +15 -0
- package/dist/engine/bindResolver.js +48 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/types.d.ts +1 -0
- package/dist/index.js +18 -15
- package/dist/pseudo-ui.css +1 -1
- package/package.json +8 -4
|
@@ -1,376 +1,327 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFormContext as
|
|
3
|
-
import { resolveExpression as E,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import Ne from "
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import ze from "primevue/
|
|
14
|
-
import
|
|
1
|
+
import { defineComponent as $e, computed as P, onMounted as le, ref as M, resolveComponent as we, openBlock as l, createElementBlock as a, normalizeStyle as U, Fragment as m, renderList as g, createBlock as u, normalizeClass as V, createVNode as k, unref as d, withCtx as y, createElementVNode as h, createTextVNode as D, toDisplayString as c, createCommentVNode as f, resolveDynamicComponent as Se, createSlots as ie, withDirectives as De } from "vue";
|
|
2
|
+
import { useFormContext as qe } from "./useFormContext.js";
|
|
3
|
+
import { resolveExpression as E, resolveTextContent as Ae } from "../../engine/expressionResolver.js";
|
|
4
|
+
import { resolveNestedBind as Te, applyNestedUpdate as Ve } from "../../engine/bindResolver.js";
|
|
5
|
+
import { getSchemaProperty as Pe, getFieldLabel as Fe, isFieldRequired as ae, getEnumOptions as X, mapLovItemsToOptions as Ue, validateField as te } from "../../engine/schemaResolver.js";
|
|
6
|
+
import { evaluateConditional as ne } from "../../engine/conditionalEngine.js";
|
|
7
|
+
import { useLovLoader as Le } from "./useLovLoader.js";
|
|
8
|
+
import { useDelegate as Be } from "./injection.js";
|
|
9
|
+
import { useToast as Ne } from "primevue/usetoast";
|
|
10
|
+
import Ee from "./NestedComponentWrapper.vue.js";
|
|
11
|
+
import de from "./ErrorBoundary.vue.js";
|
|
12
|
+
import oe from "primevue/inputtext";
|
|
13
|
+
import ze from "primevue/textarea";
|
|
14
|
+
import Re from "primevue/inputnumber";
|
|
15
|
+
import We from "primevue/select";
|
|
15
16
|
import Ie from "primevue/checkbox";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
17
|
+
import Oe from "primevue/radiobutton";
|
|
18
|
+
import re from "primevue/datepicker";
|
|
19
|
+
import je from "primevue/card";
|
|
20
|
+
import Me from "primevue/tabs";
|
|
21
|
+
import Ge from "primevue/tablist";
|
|
22
|
+
import He from "primevue/tab";
|
|
23
|
+
import Je from "primevue/tabpanels";
|
|
24
|
+
import Ke from "primevue/tabpanel";
|
|
25
|
+
import ue from "primevue/divider";
|
|
25
26
|
import R from "primevue/button";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
27
|
+
import B from "primevue/floatlabel";
|
|
28
|
+
import Qe from "primevue/message";
|
|
29
|
+
import Xe from "primevue/toggleswitch";
|
|
30
|
+
import Ye from "primevue/slider";
|
|
31
|
+
import Ze from "primevue/chip";
|
|
32
|
+
import se from "primevue/progressspinner";
|
|
33
|
+
import pe from "primevue/progressbar";
|
|
34
|
+
import _e from "primevue/accordion";
|
|
35
|
+
import el from "primevue/accordionpanel";
|
|
36
|
+
import ll from "primevue/accordionheader";
|
|
36
37
|
import il from "primevue/accordioncontent";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
const
|
|
38
|
+
import al from "primevue/stepper";
|
|
39
|
+
import tl from "primevue/steplist";
|
|
40
|
+
import nl from "primevue/stepitem";
|
|
41
|
+
import dl from "primevue/steppanels";
|
|
42
|
+
import ol from "primevue/steppanel";
|
|
43
|
+
import rl from "primevue/selectbutton";
|
|
44
|
+
import ul from "primevue/autocomplete";
|
|
45
|
+
import sl from "primevue/avatar";
|
|
46
|
+
import vl from "primevue/dialog";
|
|
47
|
+
import Y from "primevue/drawer";
|
|
48
|
+
import ve from "primevue/toolbar";
|
|
49
|
+
import ml from "primevue/menu";
|
|
50
|
+
import cl from "primevue/carousel";
|
|
51
|
+
import fl from "primevue/tooltip";
|
|
52
|
+
const yl = {
|
|
52
53
|
key: 3,
|
|
53
54
|
class: "d-scroll"
|
|
54
|
-
},
|
|
55
|
+
}, bl = {
|
|
55
56
|
key: 4,
|
|
56
57
|
class: "d-center"
|
|
57
|
-
},
|
|
58
|
+
}, kl = {
|
|
58
59
|
key: 7,
|
|
59
60
|
class: "d-stack"
|
|
60
|
-
},
|
|
61
|
+
}, hl = {
|
|
61
62
|
key: 0,
|
|
62
63
|
class: "d-field"
|
|
63
|
-
},
|
|
64
|
+
}, gl = ["for"], xl = {
|
|
64
65
|
key: 0,
|
|
65
66
|
class: "required-mark"
|
|
66
67
|
}, Cl = {
|
|
67
68
|
key: 0,
|
|
68
69
|
class: "field-error",
|
|
69
70
|
role: "alert"
|
|
70
|
-
},
|
|
71
|
+
}, $l = {
|
|
71
72
|
key: 0,
|
|
72
73
|
class: "d-field"
|
|
73
|
-
},
|
|
74
|
+
}, wl = ["for"], Sl = {
|
|
74
75
|
key: 0,
|
|
75
76
|
class: "required-mark"
|
|
76
|
-
},
|
|
77
|
+
}, Dl = {
|
|
77
78
|
key: 0,
|
|
78
79
|
class: "field-error",
|
|
79
80
|
role: "alert"
|
|
80
|
-
},
|
|
81
|
+
}, ql = {
|
|
81
82
|
key: 0,
|
|
82
83
|
class: "d-field"
|
|
83
|
-
},
|
|
84
|
+
}, Al = ["for"], Tl = {
|
|
84
85
|
key: 0,
|
|
85
86
|
class: "required-mark"
|
|
86
|
-
},
|
|
87
|
+
}, Vl = {
|
|
87
88
|
key: 0,
|
|
88
89
|
class: "field-error",
|
|
89
90
|
role: "alert"
|
|
90
91
|
}, Pl = {
|
|
91
92
|
key: 0,
|
|
92
93
|
class: "d-field"
|
|
93
|
-
},
|
|
94
|
+
}, Fl = ["for"], Ul = {
|
|
94
95
|
key: 0,
|
|
95
96
|
class: "required-mark"
|
|
96
|
-
},
|
|
97
|
+
}, Ll = {
|
|
97
98
|
key: 0,
|
|
98
99
|
class: "field-error",
|
|
99
100
|
role: "alert"
|
|
100
|
-
},
|
|
101
|
+
}, Bl = {
|
|
101
102
|
key: 0,
|
|
102
103
|
class: "d-field d-checkbox"
|
|
103
|
-
},
|
|
104
|
+
}, Nl = ["for"], El = {
|
|
104
105
|
key: 0,
|
|
105
106
|
class: "field-error",
|
|
106
107
|
role: "alert"
|
|
107
|
-
},
|
|
108
|
+
}, zl = {
|
|
108
109
|
key: 0,
|
|
109
110
|
class: "d-field"
|
|
110
|
-
},
|
|
111
|
+
}, Rl = { class: "field-group-label" }, Wl = {
|
|
111
112
|
key: 0,
|
|
112
113
|
class: "required-mark"
|
|
113
|
-
}, Il = ["aria-label"],
|
|
114
|
+
}, Il = ["aria-label"], Ol = ["for"], jl = {
|
|
114
115
|
key: 0,
|
|
115
116
|
class: "field-error",
|
|
116
117
|
role: "alert"
|
|
117
|
-
},
|
|
118
|
+
}, Ml = {
|
|
118
119
|
key: 0,
|
|
119
120
|
class: "d-field"
|
|
120
|
-
},
|
|
121
|
+
}, Gl = ["for"], Hl = {
|
|
121
122
|
key: 0,
|
|
122
123
|
class: "required-mark"
|
|
123
|
-
},
|
|
124
|
+
}, Jl = {
|
|
124
125
|
key: 0,
|
|
125
126
|
class: "field-error",
|
|
126
127
|
role: "alert"
|
|
127
|
-
},
|
|
128
|
+
}, Kl = {
|
|
128
129
|
key: 0,
|
|
129
130
|
class: "d-field d-switch"
|
|
130
|
-
},
|
|
131
|
+
}, Ql = { class: "switch-label" }, Xl = {
|
|
131
132
|
key: 0,
|
|
132
133
|
class: "d-field"
|
|
133
|
-
},
|
|
134
|
+
}, Yl = { class: "field-group-label" }, Zl = {
|
|
134
135
|
key: 0,
|
|
135
136
|
class: "required-mark"
|
|
136
|
-
},
|
|
137
|
+
}, pl = {
|
|
137
138
|
key: 0,
|
|
138
139
|
class: "d-field"
|
|
139
|
-
},
|
|
140
|
+
}, _l = ["for"], ei = {
|
|
140
141
|
key: 0,
|
|
141
142
|
class: "required-mark"
|
|
142
|
-
},
|
|
143
|
+
}, li = {
|
|
143
144
|
key: 0,
|
|
144
145
|
class: "field-error",
|
|
145
146
|
role: "alert"
|
|
146
|
-
},
|
|
147
|
+
}, ii = {
|
|
147
148
|
key: 0,
|
|
148
149
|
class: "d-field"
|
|
149
|
-
},
|
|
150
|
+
}, ai = { class: "field-group-label" }, ti = {
|
|
150
151
|
key: 0,
|
|
151
152
|
class: "required-mark"
|
|
152
|
-
},
|
|
153
|
+
}, ni = {
|
|
153
154
|
key: 0,
|
|
154
155
|
class: "d-field d-search-field"
|
|
155
|
-
},
|
|
156
|
+
}, di = ["for"], oi = {
|
|
156
157
|
key: 0,
|
|
157
158
|
class: "field-error",
|
|
158
159
|
role: "alert"
|
|
159
|
-
},
|
|
160
|
+
}, ri = {
|
|
160
161
|
key: 0,
|
|
161
162
|
class: "d-field"
|
|
162
|
-
},
|
|
163
|
+
}, ui = ["for"], si = {
|
|
163
164
|
key: 0,
|
|
164
165
|
class: "required-mark"
|
|
165
|
-
},
|
|
166
|
+
}, vi = {
|
|
166
167
|
key: 0,
|
|
167
168
|
class: "field-error",
|
|
168
169
|
role: "alert"
|
|
169
|
-
},
|
|
170
|
+
}, mi = ["src"], ci = {
|
|
170
171
|
key: 26,
|
|
171
172
|
class: "d-badge-wrapper",
|
|
172
173
|
style: { position: "relative", display: "inline-flex" }
|
|
173
|
-
},
|
|
174
|
+
}, fi = { class: "d-badge-value" }, yi = {
|
|
174
175
|
key: 0,
|
|
175
176
|
class: "d-list-tile__leading"
|
|
176
|
-
},
|
|
177
|
+
}, bi = { class: "d-list-tile__content" }, ki = { class: "d-list-tile__title" }, hi = {
|
|
177
178
|
key: 0,
|
|
178
179
|
class: "d-list-tile__subtitle"
|
|
179
|
-
},
|
|
180
|
+
}, gi = {
|
|
180
181
|
key: 1,
|
|
181
182
|
class: "d-list-tile__trailing"
|
|
182
|
-
},
|
|
183
|
+
}, xi = {
|
|
183
184
|
key: 30,
|
|
184
185
|
class: "d-richtext"
|
|
185
|
-
},
|
|
186
|
+
}, Ci = ["href"], $i = { class: "d-nested" }, wi = {
|
|
186
187
|
key: 1,
|
|
187
188
|
class: "d-loading"
|
|
188
|
-
},
|
|
189
|
+
}, Si = { class: "d-tab-content" }, Di = { class: "d-expansion-content" }, qi = { class: "d-step-content" }, Ai = { class: "d-dialog-header" }, Ti = { class: "material-icons" }, Vi = { class: "d-dialog-body" }, Pi = { class: "d-snackbar__text" }, Fi = {
|
|
189
190
|
key: 46,
|
|
190
191
|
style: { display: "inline-flex" }
|
|
191
|
-
},
|
|
192
|
+
}, Ui = {
|
|
192
193
|
key: 0,
|
|
193
194
|
class: "d-appbar__leading"
|
|
194
|
-
},
|
|
195
|
+
}, Li = { class: "d-appbar__title" }, Bi = {
|
|
195
196
|
key: 0,
|
|
196
197
|
class: "d-appbar__actions"
|
|
197
|
-
},
|
|
198
|
+
}, Ni = {
|
|
198
199
|
key: 48,
|
|
199
200
|
class: "d-nav-bar"
|
|
200
|
-
},
|
|
201
|
+
}, Ei = ["onClick"], zi = { class: "material-icons" }, Ri = { class: "d-nav-drawer" }, Wi = {
|
|
201
202
|
key: 1,
|
|
202
203
|
class: "d-nav-drawer__header"
|
|
203
|
-
},
|
|
204
|
+
}, Ii = ["onClick"], Oi = {
|
|
204
205
|
key: 1,
|
|
205
206
|
class: "d-nav-drawer__badge"
|
|
206
|
-
},
|
|
207
|
+
}, ji = { style: { display: "inline-flex" } }, Mi = { class: "d-toolbar__content" }, Oa = /* @__PURE__ */ $e({
|
|
207
208
|
__name: "DynamicRenderer",
|
|
208
209
|
props: {
|
|
209
210
|
node: {},
|
|
210
211
|
item: {}
|
|
211
212
|
},
|
|
212
213
|
setup(e) {
|
|
213
|
-
const
|
|
214
|
-
}),
|
|
214
|
+
const me = fl, A = e, r = qe(), N = Be(), ce = Ne(), L = N.onLog ?? (() => {
|
|
215
|
+
}), Z = {
|
|
215
216
|
xs: "0.25rem",
|
|
216
217
|
sm: "0.5rem",
|
|
217
218
|
md: "1rem",
|
|
218
219
|
lg: "1.5rem",
|
|
219
220
|
xl: "2rem"
|
|
220
|
-
},
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
223
|
-
}), x =
|
|
224
|
-
() =>
|
|
225
|
-
), G =
|
|
226
|
-
const n =
|
|
221
|
+
}, v = P(() => A.node.bind), q = P(() => {
|
|
222
|
+
if (v.value)
|
|
223
|
+
return Pe(r.schema, v.value);
|
|
224
|
+
}), x = P(() => Fe(q.value, r.lang)), w = P(() => v.value ? ae(r.schema, v.value, r.formData, r.instanceData, r.params) : !1), b = P(() => r.errors[v.value || ""] || null), C = P(
|
|
225
|
+
() => ne(q.value?.["x-conditional"], r.formData, r.instanceData, r.params)
|
|
226
|
+
), G = P(() => q.value ? q.value.enum ? X(q.value, r.lang) : q.value["x-lov"] && v.value && r.lovData[v.value] ? Ue(r.lovData[v.value] ?? []) : [] : []), fe = P(() => {
|
|
227
|
+
const n = A.node.onTap;
|
|
227
228
|
if (!n) return !1;
|
|
228
|
-
const
|
|
229
|
-
if (!
|
|
230
|
-
const
|
|
231
|
-
return
|
|
232
|
-
}),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (a === null) {
|
|
241
|
-
T("debug", `LOV "${s.value}" skipped — required filter params not met`, void 0, { source: "LOV", field: s.value }), d.lovData[s.value] = [];
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
const u = await ue(W.requestData, n, a, T);
|
|
245
|
-
d.lovData[s.value] = u, T("info", `LOV "${s.value}" loaded: ${u.length} item(s)`, void 0, { source: "LOV", field: s.value, count: u.length });
|
|
246
|
-
} else {
|
|
247
|
-
const a = await ue(W.requestData, n, void 0, T);
|
|
248
|
-
d.lovData[s.value] = a, T("info", `LOV "${s.value}" loaded: ${a.length} item(s)`, void 0, { source: "LOV", field: s.value, count: a.length });
|
|
249
|
-
}
|
|
250
|
-
} finally {
|
|
251
|
-
H.value = !1;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
ae(() => {
|
|
256
|
-
if (q.value?.["x-lov"]) {
|
|
257
|
-
const n = q.value["x-lov"];
|
|
258
|
-
if (n.filter?.length) {
|
|
259
|
-
const { formFields: a, instanceFields: u, paramFields: t } = Fe(n.filter);
|
|
260
|
-
a.length > 0 || u.length > 0 || t.length > 0 ? Se(
|
|
261
|
-
() => [
|
|
262
|
-
...a.map((o) => d.formData[o]),
|
|
263
|
-
...u.map((o) => d.instanceData[o]),
|
|
264
|
-
...t.map((o) => d.params[o])
|
|
265
|
-
],
|
|
266
|
-
() => {
|
|
267
|
-
ne(n.filter, d.formData, d.instanceData, d.params) && (s.value && (d.formData[s.value] = void 0), J());
|
|
268
|
-
},
|
|
269
|
-
{ immediate: ne(n.filter, d.formData, d.instanceData, d.params) }
|
|
270
|
-
) : J();
|
|
271
|
-
} else
|
|
272
|
-
J();
|
|
273
|
-
}
|
|
229
|
+
const t = Array.isArray(n) ? n[0] : n;
|
|
230
|
+
if (!t || t.action !== "select" || !t.bind) return !1;
|
|
231
|
+
const s = typeof t.value == "string" && t.value.startsWith("$") ? E(t.value, r, A.item) : t.value;
|
|
232
|
+
return r.formData[t.bind] === s && s !== void 0;
|
|
233
|
+
}), { loading: ye, setupWatch: be } = Le(
|
|
234
|
+
v.value,
|
|
235
|
+
r,
|
|
236
|
+
N.requestData,
|
|
237
|
+
L
|
|
238
|
+
);
|
|
239
|
+
le(() => {
|
|
240
|
+
q.value?.["x-lov"] && be();
|
|
274
241
|
});
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const n =
|
|
278
|
-
return Array.isArray(
|
|
279
|
-
}),
|
|
280
|
-
|
|
281
|
-
if (
|
|
282
|
-
const n =
|
|
283
|
-
|
|
242
|
+
const ke = P(() => {
|
|
243
|
+
if (A.node.type !== "ForEach") return [];
|
|
244
|
+
const n = A.node, t = E(n.source, r, A.item);
|
|
245
|
+
return Array.isArray(t) ? t : [];
|
|
246
|
+
}), H = M(null), J = M(null);
|
|
247
|
+
le(async () => {
|
|
248
|
+
if (A.node.type === "Component") {
|
|
249
|
+
const n = A.node;
|
|
250
|
+
L("debug", `Loading nested component "${n.ref}"`, void 0, { source: "Component", ref: n.ref });
|
|
284
251
|
try {
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
} catch (
|
|
288
|
-
|
|
252
|
+
const t = await N.loadComponent(n.ref);
|
|
253
|
+
H.value = t.schema, J.value = t.view, L("info", `Nested component "${n.ref}" loaded`, void 0, { source: "Component", ref: n.ref });
|
|
254
|
+
} catch (t) {
|
|
255
|
+
L("error", `Failed to load nested component: ${n.ref}`, t, { source: "Component", ref: n.ref });
|
|
289
256
|
}
|
|
290
257
|
}
|
|
291
258
|
});
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
294
|
-
const n =
|
|
295
|
-
|
|
296
|
-
if (typeof n.bind == "string") {
|
|
297
|
-
if (!n.bind.startsWith("$")) return;
|
|
298
|
-
const t = E(n.bind, d);
|
|
299
|
-
if (!t || typeof t != "object") return;
|
|
300
|
-
const o = t;
|
|
301
|
-
return n.bind.startsWith("$instance") ? { form: {}, instance: { ...o } } : { form: { ...o }, instance: {} };
|
|
302
|
-
}
|
|
303
|
-
const a = {}, u = {};
|
|
304
|
-
for (const [t, o] of Object.entries(n.bind))
|
|
305
|
-
o.startsWith("$instance.") ? u[t] = d.instanceData[o.slice(10)] : o.startsWith("$ui.") ? a[t] = d.uiState[o.slice(4)] : o.startsWith("$form.") ? a[t] = d.formData[o.slice(6)] : a[t] = d.formData[o];
|
|
306
|
-
return { form: a, instance: u };
|
|
259
|
+
const p = P(() => {
|
|
260
|
+
if (A.node.type !== "Component") return;
|
|
261
|
+
const n = A.node;
|
|
262
|
+
return Te(n.bind, r);
|
|
307
263
|
});
|
|
308
|
-
function
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
if (typeof a.bind == "string")
|
|
312
|
-
d.formData[a.bind] = n;
|
|
313
|
-
else
|
|
314
|
-
for (const [u, t] of Object.entries(a.bind))
|
|
315
|
-
t.startsWith("$instance.") ? d.instanceData[t.slice(10)] = n[u] : t.startsWith("$ui.") ? d.uiState[t.slice(4)] = n[u] : t.startsWith("$form.") ? d.formData[t.slice(6)] = n[u] : d.formData[t] = n[u];
|
|
264
|
+
function he(n) {
|
|
265
|
+
const t = A.node;
|
|
266
|
+
t.bind && Ve(t.bind, n, r);
|
|
316
267
|
}
|
|
317
|
-
function
|
|
318
|
-
if (
|
|
319
|
-
return
|
|
268
|
+
function S() {
|
|
269
|
+
if (v.value)
|
|
270
|
+
return r.formData[v.value];
|
|
320
271
|
}
|
|
321
|
-
async function
|
|
322
|
-
if (!
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
if (
|
|
326
|
-
|
|
272
|
+
async function T(n) {
|
|
273
|
+
if (!v.value) return;
|
|
274
|
+
r.formData[v.value] = n, L("debug", `Field "${v.value}" = ${JSON.stringify(n)}`, void 0, { source: "Field", field: v.value });
|
|
275
|
+
const t = te(q.value, n, w.value, r.lang);
|
|
276
|
+
if (t) {
|
|
277
|
+
r.errors[v.value] = t, L("debug", `Validation error on "${v.value}": ${t}`, void 0, { source: "Validation", field: v.value, error: t });
|
|
327
278
|
return;
|
|
328
279
|
}
|
|
329
|
-
if (q.value?.["x-validation"] &&
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
|
|
280
|
+
if (q.value?.["x-validation"] && N.onValidationRequest) {
|
|
281
|
+
const s = await N.onValidationRequest(v.value, n, { ...r.formData });
|
|
282
|
+
if (s) {
|
|
283
|
+
r.errors[v.value] = s, L("debug", `Custom validation error on "${v.value}": ${s}`, void 0, { source: "Validation", field: v.value, error: s });
|
|
333
284
|
return;
|
|
334
285
|
}
|
|
335
286
|
}
|
|
336
|
-
delete
|
|
287
|
+
delete r.errors[v.value];
|
|
337
288
|
}
|
|
338
|
-
function
|
|
289
|
+
function F(n, t) {
|
|
339
290
|
if (Array.isArray(n)) {
|
|
340
|
-
n.forEach((
|
|
291
|
+
n.forEach((s) => F(s));
|
|
341
292
|
return;
|
|
342
293
|
}
|
|
343
294
|
if (typeof n == "string") {
|
|
344
|
-
if (n === "submit" && (
|
|
345
|
-
const
|
|
346
|
-
|
|
295
|
+
if (n === "submit" && (ge(), Object.keys(r.errors).length > 0)) {
|
|
296
|
+
const s = Object.values(r.errors).join(", ");
|
|
297
|
+
ce.add({
|
|
347
298
|
severity: "warn",
|
|
348
|
-
summary:
|
|
349
|
-
detail:
|
|
299
|
+
summary: r.lang === "tr" ? "Eksik veya hatalı alanlar var" : "There are missing or invalid fields",
|
|
300
|
+
detail: s,
|
|
350
301
|
life: 5e3
|
|
351
302
|
});
|
|
352
303
|
return;
|
|
353
304
|
}
|
|
354
|
-
|
|
305
|
+
L("info", `Action dispatched: "${n}"`, void 0, { source: "Action", action: n, command: t, fieldCount: Object.keys(r.formData).length }), N.onAction(n, { ...r.formData }, t);
|
|
355
306
|
return;
|
|
356
307
|
}
|
|
357
308
|
if (n.action === "select" && n.bind && n.value !== void 0) {
|
|
358
|
-
const
|
|
359
|
-
n.bind.startsWith("$ui.") ?
|
|
309
|
+
const s = typeof n.value == "string" && n.value.startsWith("$") ? E(n.value, r, A.item) : n.value;
|
|
310
|
+
n.bind.startsWith("$ui.") ? r.uiState[n.bind.slice(4)] = s : n.bind.startsWith("$form.") ? r.formData[n.bind.slice(6)] = s : r.formData[n.bind] = s;
|
|
360
311
|
}
|
|
361
312
|
}
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
364
|
-
for (const [n,
|
|
365
|
-
if (!
|
|
366
|
-
const
|
|
367
|
-
o ?
|
|
313
|
+
function ge() {
|
|
314
|
+
if (r.schema.properties)
|
|
315
|
+
for (const [n, t] of Object.entries(r.schema.properties)) {
|
|
316
|
+
if (!ne(t["x-conditional"], r.formData, r.instanceData, r.params).visible) continue;
|
|
317
|
+
const i = ae(r.schema, n, r.formData, r.instanceData, r.params), o = te(t, r.formData[n], i, r.lang);
|
|
318
|
+
o ? r.errors[n] = o : delete r.errors[n];
|
|
368
319
|
}
|
|
369
320
|
}
|
|
370
|
-
function
|
|
371
|
-
return n &&
|
|
321
|
+
function W(n) {
|
|
322
|
+
return n && Z[n] ? { gap: Z[n] } : {};
|
|
372
323
|
}
|
|
373
|
-
function
|
|
324
|
+
function I(n) {
|
|
374
325
|
return {
|
|
375
326
|
start: "flex-start",
|
|
376
327
|
center: "center",
|
|
@@ -381,198 +332,198 @@ const kl = {
|
|
|
381
332
|
stretch: "stretch"
|
|
382
333
|
}[n] || void 0;
|
|
383
334
|
}
|
|
384
|
-
const $ = (n) =>
|
|
385
|
-
function
|
|
386
|
-
return typeof n != "string" ? !1 : !!E(n,
|
|
335
|
+
const $ = (n) => Ae(n, r, A.item);
|
|
336
|
+
function O(n) {
|
|
337
|
+
return typeof n != "string" ? !1 : !!E(n, r, A.item);
|
|
387
338
|
}
|
|
388
|
-
function
|
|
389
|
-
typeof n == "string" && (n.startsWith("$ui.") ?
|
|
339
|
+
function j(n, t) {
|
|
340
|
+
typeof n == "string" && (n.startsWith("$ui.") ? r.uiState[n.slice(4)] = t : n.startsWith("$form.") && (r.formData[n.slice(6)] = t));
|
|
390
341
|
}
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
if (!
|
|
394
|
-
|
|
342
|
+
const K = M([]);
|
|
343
|
+
function xe(n) {
|
|
344
|
+
if (!v.value || !r.lovData[v.value]) {
|
|
345
|
+
K.value = [];
|
|
395
346
|
return;
|
|
396
347
|
}
|
|
397
|
-
const
|
|
398
|
-
|
|
348
|
+
const t = n.query.toLowerCase();
|
|
349
|
+
K.value = (r.lovData[v.value] ?? []).filter((s) => s.display.toLowerCase().includes(t)).map((s) => s.display);
|
|
399
350
|
}
|
|
400
|
-
const
|
|
401
|
-
function
|
|
402
|
-
|
|
351
|
+
const _ = M();
|
|
352
|
+
function ee(n) {
|
|
353
|
+
_.value?.toggle(n);
|
|
403
354
|
}
|
|
404
355
|
function Ce(n) {
|
|
405
|
-
return n.filter((
|
|
406
|
-
label: $(
|
|
407
|
-
icon:
|
|
408
|
-
disabled:
|
|
409
|
-
command: () =>
|
|
356
|
+
return n.filter((t) => !t.divider && !t.header).map((t) => ({
|
|
357
|
+
label: $(t.label),
|
|
358
|
+
icon: t.icon ? `pi pi-${t.icon}` : void 0,
|
|
359
|
+
disabled: t.disabled,
|
|
360
|
+
command: () => t.action && F(t.action)
|
|
410
361
|
}));
|
|
411
362
|
}
|
|
412
|
-
return (n,
|
|
413
|
-
const
|
|
414
|
-
return e.node.type === "Column" ? (l(),
|
|
363
|
+
return (n, t) => {
|
|
364
|
+
const s = we("DynamicRenderer", !0);
|
|
365
|
+
return e.node.type === "Column" ? (l(), a("div", {
|
|
415
366
|
key: 0,
|
|
416
367
|
class: "d-column",
|
|
417
368
|
style: U({
|
|
418
|
-
...
|
|
419
|
-
justifyContent:
|
|
420
|
-
alignItems:
|
|
369
|
+
...W(e.node.gap),
|
|
370
|
+
justifyContent: I(e.node.mainAxisAlignment),
|
|
371
|
+
alignItems: I(e.node.crossAxisAlignment) || "stretch"
|
|
421
372
|
})
|
|
422
373
|
}, [
|
|
423
|
-
(l(!0),
|
|
374
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
424
375
|
key: o,
|
|
425
|
-
node:
|
|
376
|
+
node: i,
|
|
426
377
|
item: e.item
|
|
427
378
|
}, null, 8, ["node", "item"]))), 128))
|
|
428
|
-
], 4)) : e.node.type === "Row" ? (l(),
|
|
379
|
+
], 4)) : e.node.type === "Row" ? (l(), a("div", {
|
|
429
380
|
key: 1,
|
|
430
381
|
class: "d-row",
|
|
431
382
|
style: U({
|
|
432
|
-
...
|
|
433
|
-
justifyContent:
|
|
434
|
-
alignItems:
|
|
383
|
+
...W(e.node.gap),
|
|
384
|
+
justifyContent: I(e.node.mainAxisAlignment),
|
|
385
|
+
alignItems: I(e.node.crossAxisAlignment) || "center"
|
|
435
386
|
})
|
|
436
387
|
}, [
|
|
437
|
-
(l(!0),
|
|
388
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
438
389
|
key: o,
|
|
439
|
-
node:
|
|
390
|
+
node: i,
|
|
440
391
|
item: e.item
|
|
441
392
|
}, null, 8, ["node", "item"]))), 128))
|
|
442
|
-
], 4)) : e.node.type === "Expanded" ? (l(),
|
|
393
|
+
], 4)) : e.node.type === "Expanded" ? (l(), a("div", {
|
|
443
394
|
key: 2,
|
|
444
395
|
style: U({ flex: e.node.flex || 1, minWidth: 0 })
|
|
445
396
|
}, [
|
|
446
|
-
(l(!0),
|
|
397
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
447
398
|
key: o,
|
|
448
|
-
node:
|
|
399
|
+
node: i,
|
|
449
400
|
item: e.item
|
|
450
401
|
}, null, 8, ["node", "item"]))), 128))
|
|
451
|
-
], 4)) : e.node.type === "ScrollView" ? (l(),
|
|
452
|
-
(l(!0),
|
|
402
|
+
], 4)) : e.node.type === "ScrollView" ? (l(), a("div", yl, [
|
|
403
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
453
404
|
key: o,
|
|
454
|
-
node:
|
|
405
|
+
node: i,
|
|
455
406
|
item: e.item
|
|
456
407
|
}, null, 8, ["node", "item"]))), 128))
|
|
457
|
-
])) : e.node.type === "Center" ? (l(),
|
|
458
|
-
(l(!0),
|
|
408
|
+
])) : e.node.type === "Center" ? (l(), a("div", bl, [
|
|
409
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
459
410
|
key: o,
|
|
460
|
-
node:
|
|
411
|
+
node: i,
|
|
461
412
|
item: e.item
|
|
462
413
|
}, null, 8, ["node", "item"]))), 128))
|
|
463
|
-
])) : e.node.type === "Wrap" ? (l(),
|
|
414
|
+
])) : e.node.type === "Wrap" ? (l(), a("div", {
|
|
464
415
|
key: 5,
|
|
465
416
|
class: "d-wrap",
|
|
466
|
-
style: U(
|
|
417
|
+
style: U(W(e.node.gap))
|
|
467
418
|
}, [
|
|
468
|
-
(l(!0),
|
|
419
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
469
420
|
key: o,
|
|
470
|
-
node:
|
|
421
|
+
node: i,
|
|
471
422
|
item: e.item
|
|
472
423
|
}, null, 8, ["node", "item"]))), 128))
|
|
473
|
-
], 4)) : e.node.type === "Spacer" ? (l(),
|
|
424
|
+
], 4)) : e.node.type === "Spacer" ? (l(), a("div", {
|
|
474
425
|
key: 6,
|
|
475
426
|
style: U({ flex: e.node.flex || 1 })
|
|
476
|
-
}, null, 4)) : e.node.type === "Stack" ? (l(),
|
|
477
|
-
(l(!0),
|
|
427
|
+
}, null, 4)) : e.node.type === "Stack" ? (l(), a("div", kl, [
|
|
428
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
478
429
|
key: o,
|
|
479
|
-
node:
|
|
430
|
+
node: i,
|
|
480
431
|
item: e.item
|
|
481
432
|
}, null, 8, ["node", "item"]))), 128))
|
|
482
|
-
])) : e.node.type === "Grid" ? (l(),
|
|
433
|
+
])) : e.node.type === "Grid" ? (l(), a("div", {
|
|
483
434
|
key: 8,
|
|
484
435
|
class: "d-grid",
|
|
485
436
|
style: U({
|
|
486
437
|
gridTemplateColumns: `repeat(${e.node.columns || 2}, 1fr)`,
|
|
487
|
-
...
|
|
438
|
+
...W(e.node.gap)
|
|
488
439
|
})
|
|
489
440
|
}, [
|
|
490
|
-
(l(!0),
|
|
441
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
491
442
|
key: o,
|
|
492
|
-
node:
|
|
443
|
+
node: i,
|
|
493
444
|
item: e.item
|
|
494
445
|
}, null, 8, ["node", "item"]))), 128))
|
|
495
|
-
], 4)) : e.node.type === "Card" ? (l(),
|
|
446
|
+
], 4)) : e.node.type === "Card" ? (l(), a("div", {
|
|
496
447
|
key: 9,
|
|
497
|
-
class:
|
|
448
|
+
class: V(["d-card", {
|
|
498
449
|
"d-card--elevated": !e.node.variant || e.node.variant === "elevated",
|
|
499
450
|
"d-card--filled": e.node.variant === "filled",
|
|
500
451
|
"d-card--outlined": e.node.variant === "outlined",
|
|
501
452
|
"cursor-pointer": !!e.node.onTap,
|
|
502
|
-
"d-card--selected":
|
|
453
|
+
"d-card--selected": fe.value
|
|
503
454
|
}]),
|
|
504
|
-
onClick:
|
|
455
|
+
onClick: t[0] || (t[0] = (i) => e.node.onTap ? F(e.node.onTap) : void 0)
|
|
505
456
|
}, [
|
|
506
|
-
k(
|
|
457
|
+
k(d(je), null, {
|
|
507
458
|
content: y(() => [
|
|
508
|
-
(l(!0),
|
|
459
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
509
460
|
key: o,
|
|
510
|
-
node:
|
|
461
|
+
node: i,
|
|
511
462
|
item: e.item
|
|
512
463
|
}, null, 8, ["node", "item"]))), 128))
|
|
513
464
|
]),
|
|
514
465
|
_: 1
|
|
515
466
|
})
|
|
516
|
-
], 2)) : e.node.type === "Divider" ? (l(),
|
|
517
|
-
|
|
518
|
-
k(
|
|
467
|
+
], 2)) : e.node.type === "Divider" ? (l(), u(d(ue), { key: 10 })) : e.node.type === "TextField" ? (l(), a(m, { key: 11 }, [
|
|
468
|
+
C.value.visible ? (l(), a("div", hl, [
|
|
469
|
+
k(d(B), { variant: "on" }, {
|
|
519
470
|
default: y(() => [
|
|
520
|
-
k(
|
|
521
|
-
id:
|
|
522
|
-
"model-value":
|
|
523
|
-
"onUpdate:modelValue":
|
|
524
|
-
disabled: !
|
|
471
|
+
k(d(oe), {
|
|
472
|
+
id: v.value,
|
|
473
|
+
"model-value": S() || "",
|
|
474
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => T(i)),
|
|
475
|
+
disabled: !C.value.enabled,
|
|
525
476
|
invalid: !!b.value,
|
|
526
|
-
"aria-required":
|
|
477
|
+
"aria-required": w.value,
|
|
527
478
|
"aria-invalid": !!b.value,
|
|
528
479
|
"aria-label": x.value,
|
|
529
480
|
fluid: ""
|
|
530
481
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label"]),
|
|
531
|
-
h("label", { for:
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
], 8,
|
|
482
|
+
h("label", { for: v.value }, [
|
|
483
|
+
D(c(x.value), 1),
|
|
484
|
+
w.value ? (l(), a("span", xl, " *")) : f("", !0)
|
|
485
|
+
], 8, gl)
|
|
535
486
|
]),
|
|
536
487
|
_: 1
|
|
537
488
|
}),
|
|
538
|
-
b.value ? (l(),
|
|
489
|
+
b.value ? (l(), a("small", Cl, c(b.value), 1)) : f("", !0)
|
|
539
490
|
])) : f("", !0)
|
|
540
|
-
], 64)) : e.node.type === "TextArea" ? (l(),
|
|
541
|
-
|
|
542
|
-
k(
|
|
491
|
+
], 64)) : e.node.type === "TextArea" ? (l(), a(m, { key: 12 }, [
|
|
492
|
+
C.value.visible ? (l(), a("div", $l, [
|
|
493
|
+
k(d(B), { variant: "on" }, {
|
|
543
494
|
default: y(() => [
|
|
544
|
-
k(
|
|
545
|
-
id:
|
|
546
|
-
"model-value":
|
|
547
|
-
"onUpdate:modelValue":
|
|
548
|
-
disabled: !
|
|
495
|
+
k(d(ze), {
|
|
496
|
+
id: v.value,
|
|
497
|
+
"model-value": S() || "",
|
|
498
|
+
"onUpdate:modelValue": t[2] || (t[2] = (i) => T(i)),
|
|
499
|
+
disabled: !C.value.enabled,
|
|
549
500
|
invalid: !!b.value,
|
|
550
|
-
"aria-required":
|
|
501
|
+
"aria-required": w.value,
|
|
551
502
|
"aria-invalid": !!b.value,
|
|
552
503
|
"aria-label": x.value,
|
|
553
504
|
rows: "3",
|
|
554
505
|
fluid: ""
|
|
555
506
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label"]),
|
|
556
|
-
h("label", { for:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
], 8,
|
|
507
|
+
h("label", { for: v.value }, [
|
|
508
|
+
D(c(x.value), 1),
|
|
509
|
+
w.value ? (l(), a("span", Sl, " *")) : f("", !0)
|
|
510
|
+
], 8, wl)
|
|
560
511
|
]),
|
|
561
512
|
_: 1
|
|
562
513
|
}),
|
|
563
|
-
b.value ? (l(),
|
|
514
|
+
b.value ? (l(), a("small", Dl, c(b.value), 1)) : f("", !0)
|
|
564
515
|
])) : f("", !0)
|
|
565
|
-
], 64)) : e.node.type === "NumberField" ? (l(),
|
|
566
|
-
|
|
567
|
-
k(
|
|
516
|
+
], 64)) : e.node.type === "NumberField" ? (l(), a(m, { key: 13 }, [
|
|
517
|
+
C.value.visible ? (l(), a("div", ql, [
|
|
518
|
+
k(d(B), { variant: "on" }, {
|
|
568
519
|
default: y(() => [
|
|
569
|
-
k(
|
|
570
|
-
id:
|
|
571
|
-
"model-value":
|
|
572
|
-
"onUpdate:modelValue":
|
|
573
|
-
disabled: !
|
|
520
|
+
k(d(Re), {
|
|
521
|
+
id: v.value,
|
|
522
|
+
"model-value": S() ?? null,
|
|
523
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => T(i)),
|
|
524
|
+
disabled: !C.value.enabled,
|
|
574
525
|
invalid: !!b.value,
|
|
575
|
-
"aria-required":
|
|
526
|
+
"aria-required": w.value,
|
|
576
527
|
"aria-invalid": !!b.value,
|
|
577
528
|
"aria-label": x.value,
|
|
578
529
|
min: q.value?.minimum,
|
|
@@ -580,414 +531,414 @@ const kl = {
|
|
|
580
531
|
"use-grouping": !0,
|
|
581
532
|
fluid: ""
|
|
582
533
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label", "min", "max"]),
|
|
583
|
-
h("label", { for:
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
], 8,
|
|
534
|
+
h("label", { for: v.value }, [
|
|
535
|
+
D(c(x.value), 1),
|
|
536
|
+
w.value ? (l(), a("span", Tl, " *")) : f("", !0)
|
|
537
|
+
], 8, Al)
|
|
587
538
|
]),
|
|
588
539
|
_: 1
|
|
589
540
|
}),
|
|
590
|
-
b.value ? (l(),
|
|
541
|
+
b.value ? (l(), a("small", Vl, c(b.value), 1)) : f("", !0)
|
|
591
542
|
])) : f("", !0)
|
|
592
|
-
], 64)) : e.node.type === "Dropdown" ? (l(),
|
|
593
|
-
|
|
594
|
-
k(
|
|
543
|
+
], 64)) : e.node.type === "Dropdown" ? (l(), a(m, { key: 14 }, [
|
|
544
|
+
C.value.visible ? (l(), a("div", Pl, [
|
|
545
|
+
k(d(B), { variant: "on" }, {
|
|
595
546
|
default: y(() => [
|
|
596
|
-
k(
|
|
597
|
-
id:
|
|
598
|
-
"model-value":
|
|
599
|
-
"onUpdate:modelValue":
|
|
547
|
+
k(d(We), {
|
|
548
|
+
id: v.value,
|
|
549
|
+
"model-value": S(),
|
|
550
|
+
"onUpdate:modelValue": t[4] || (t[4] = (i) => T(i)),
|
|
600
551
|
options: G.value,
|
|
601
552
|
"option-label": "label",
|
|
602
553
|
"option-value": "value",
|
|
603
|
-
disabled: !
|
|
604
|
-
loading:
|
|
554
|
+
disabled: !C.value.enabled,
|
|
555
|
+
loading: d(ye),
|
|
605
556
|
invalid: !!b.value,
|
|
606
|
-
"aria-required":
|
|
557
|
+
"aria-required": w.value,
|
|
607
558
|
"aria-invalid": !!b.value,
|
|
608
559
|
"aria-label": x.value,
|
|
609
560
|
fluid: ""
|
|
610
561
|
}, null, 8, ["id", "model-value", "options", "disabled", "loading", "invalid", "aria-required", "aria-invalid", "aria-label"]),
|
|
611
|
-
h("label", { for:
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
], 8,
|
|
562
|
+
h("label", { for: v.value }, [
|
|
563
|
+
D(c(x.value), 1),
|
|
564
|
+
w.value ? (l(), a("span", Ul, " *")) : f("", !0)
|
|
565
|
+
], 8, Fl)
|
|
615
566
|
]),
|
|
616
567
|
_: 1
|
|
617
568
|
}),
|
|
618
|
-
b.value ? (l(),
|
|
569
|
+
b.value ? (l(), a("small", Ll, c(b.value), 1)) : f("", !0)
|
|
619
570
|
])) : f("", !0)
|
|
620
|
-
], 64)) : e.node.type === "Checkbox" ? (l(),
|
|
621
|
-
|
|
622
|
-
k(
|
|
623
|
-
"input-id":
|
|
624
|
-
"model-value": !!
|
|
625
|
-
"onUpdate:modelValue":
|
|
626
|
-
disabled: !
|
|
571
|
+
], 64)) : e.node.type === "Checkbox" ? (l(), a(m, { key: 15 }, [
|
|
572
|
+
C.value.visible ? (l(), a("div", Bl, [
|
|
573
|
+
k(d(Ie), {
|
|
574
|
+
"input-id": v.value,
|
|
575
|
+
"model-value": !!S(),
|
|
576
|
+
"onUpdate:modelValue": t[5] || (t[5] = (i) => T(i)),
|
|
577
|
+
disabled: !C.value.enabled,
|
|
627
578
|
binary: !0,
|
|
628
579
|
invalid: !!b.value,
|
|
629
|
-
"aria-required":
|
|
580
|
+
"aria-required": w.value,
|
|
630
581
|
"aria-label": x.value
|
|
631
582
|
}, null, 8, ["input-id", "model-value", "disabled", "invalid", "aria-required", "aria-label"]),
|
|
632
583
|
h("label", {
|
|
633
|
-
for:
|
|
584
|
+
for: v.value,
|
|
634
585
|
class: "checkbox-label"
|
|
635
|
-
}, c(x.value), 9,
|
|
636
|
-
b.value ? (l(),
|
|
586
|
+
}, c(x.value), 9, Nl),
|
|
587
|
+
b.value ? (l(), a("small", El, c(b.value), 1)) : f("", !0)
|
|
637
588
|
])) : f("", !0)
|
|
638
|
-
], 64)) : e.node.type === "RadioGroup" ? (l(),
|
|
639
|
-
|
|
640
|
-
h("label",
|
|
641
|
-
|
|
642
|
-
|
|
589
|
+
], 64)) : e.node.type === "RadioGroup" ? (l(), a(m, { key: 16 }, [
|
|
590
|
+
C.value.visible ? (l(), a("div", zl, [
|
|
591
|
+
h("label", Rl, [
|
|
592
|
+
D(c(x.value), 1),
|
|
593
|
+
w.value ? (l(), a("span", Wl, " *")) : f("", !0)
|
|
643
594
|
]),
|
|
644
595
|
h("div", {
|
|
645
596
|
class: "d-radio-group",
|
|
646
597
|
role: "radiogroup",
|
|
647
598
|
"aria-label": x.value
|
|
648
599
|
}, [
|
|
649
|
-
(l(!0),
|
|
650
|
-
key:
|
|
600
|
+
(l(!0), a(m, null, g(d(X)(q.value, d(r).lang), (i) => (l(), a("div", {
|
|
601
|
+
key: i.value,
|
|
651
602
|
class: "d-radio-item"
|
|
652
603
|
}, [
|
|
653
|
-
k(
|
|
654
|
-
"input-id": `${
|
|
655
|
-
"model-value":
|
|
656
|
-
"onUpdate:modelValue":
|
|
657
|
-
value:
|
|
658
|
-
disabled: !
|
|
604
|
+
k(d(Oe), {
|
|
605
|
+
"input-id": `${v.value}-${i.value}`,
|
|
606
|
+
"model-value": S(),
|
|
607
|
+
"onUpdate:modelValue": t[6] || (t[6] = (o) => T(o)),
|
|
608
|
+
value: i.value,
|
|
609
|
+
disabled: !C.value.enabled
|
|
659
610
|
}, null, 8, ["input-id", "model-value", "value", "disabled"]),
|
|
660
611
|
h("label", {
|
|
661
|
-
for: `${
|
|
662
|
-
}, c(
|
|
612
|
+
for: `${v.value}-${i.value}`
|
|
613
|
+
}, c(i.label), 9, Ol)
|
|
663
614
|
]))), 128))
|
|
664
615
|
], 8, Il),
|
|
665
|
-
b.value ? (l(),
|
|
616
|
+
b.value ? (l(), a("small", jl, c(b.value), 1)) : f("", !0)
|
|
666
617
|
])) : f("", !0)
|
|
667
|
-
], 64)) : e.node.type === "DatePicker" ? (l(),
|
|
668
|
-
|
|
669
|
-
k(
|
|
618
|
+
], 64)) : e.node.type === "DatePicker" ? (l(), a(m, { key: 17 }, [
|
|
619
|
+
C.value.visible ? (l(), a("div", Ml, [
|
|
620
|
+
k(d(B), { variant: "on" }, {
|
|
670
621
|
default: y(() => [
|
|
671
|
-
k(
|
|
672
|
-
id:
|
|
673
|
-
"model-value":
|
|
674
|
-
"onUpdate:modelValue":
|
|
675
|
-
disabled: !
|
|
622
|
+
k(d(re), {
|
|
623
|
+
id: v.value,
|
|
624
|
+
"model-value": S() ? new Date(S()) : null,
|
|
625
|
+
"onUpdate:modelValue": t[7] || (t[7] = (i) => T(i ? i.toISOString().split("T")[0] : null)),
|
|
626
|
+
disabled: !C.value.enabled,
|
|
676
627
|
invalid: !!b.value,
|
|
677
|
-
"aria-required":
|
|
628
|
+
"aria-required": w.value,
|
|
678
629
|
"aria-invalid": !!b.value,
|
|
679
630
|
"aria-label": x.value,
|
|
680
631
|
"date-format": "dd/mm/yy",
|
|
681
632
|
fluid: ""
|
|
682
633
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label"]),
|
|
683
|
-
h("label", { for:
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
], 8,
|
|
634
|
+
h("label", { for: v.value }, [
|
|
635
|
+
D(c(x.value), 1),
|
|
636
|
+
w.value ? (l(), a("span", Hl, " *")) : f("", !0)
|
|
637
|
+
], 8, Gl)
|
|
687
638
|
]),
|
|
688
639
|
_: 1
|
|
689
640
|
}),
|
|
690
|
-
b.value ? (l(),
|
|
641
|
+
b.value ? (l(), a("small", Jl, c(b.value), 1)) : f("", !0)
|
|
691
642
|
])) : f("", !0)
|
|
692
|
-
], 64)) : e.node.type === "Switch" ? (l(),
|
|
693
|
-
|
|
694
|
-
k(
|
|
695
|
-
"model-value": !!
|
|
696
|
-
"onUpdate:modelValue":
|
|
697
|
-
disabled: !
|
|
643
|
+
], 64)) : e.node.type === "Switch" ? (l(), a(m, { key: 18 }, [
|
|
644
|
+
C.value.visible ? (l(), a("div", Kl, [
|
|
645
|
+
k(d(Xe), {
|
|
646
|
+
"model-value": !!S(),
|
|
647
|
+
"onUpdate:modelValue": t[8] || (t[8] = (i) => T(i)),
|
|
648
|
+
disabled: !C.value.enabled,
|
|
698
649
|
"aria-label": x.value
|
|
699
650
|
}, null, 8, ["model-value", "disabled", "aria-label"]),
|
|
700
|
-
h("label",
|
|
651
|
+
h("label", Ql, c(x.value), 1)
|
|
701
652
|
])) : f("", !0)
|
|
702
|
-
], 64)) : e.node.type === "Slider" ? (l(),
|
|
703
|
-
|
|
704
|
-
h("label",
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
653
|
+
], 64)) : e.node.type === "Slider" ? (l(), a(m, { key: 19 }, [
|
|
654
|
+
C.value.visible ? (l(), a("div", Xl, [
|
|
655
|
+
h("label", Yl, [
|
|
656
|
+
D(c(x.value), 1),
|
|
657
|
+
w.value ? (l(), a("span", Zl, " *")) : f("", !0),
|
|
658
|
+
D(" — " + c(S() ?? 0), 1)
|
|
708
659
|
]),
|
|
709
|
-
k(
|
|
710
|
-
"model-value":
|
|
711
|
-
"onUpdate:modelValue":
|
|
660
|
+
k(d(Ye), {
|
|
661
|
+
"model-value": S() ?? 0,
|
|
662
|
+
"onUpdate:modelValue": t[9] || (t[9] = (i) => T(i)),
|
|
712
663
|
min: q.value?.minimum ?? 0,
|
|
713
664
|
max: q.value?.maximum ?? 100,
|
|
714
|
-
disabled: !
|
|
665
|
+
disabled: !C.value.enabled,
|
|
715
666
|
"aria-label": x.value
|
|
716
667
|
}, null, 8, ["model-value", "min", "max", "disabled", "aria-label"])
|
|
717
668
|
])) : f("", !0)
|
|
718
|
-
], 64)) : e.node.type === "TimePicker" ? (l(),
|
|
719
|
-
|
|
720
|
-
k(
|
|
669
|
+
], 64)) : e.node.type === "TimePicker" ? (l(), a(m, { key: 20 }, [
|
|
670
|
+
C.value.visible ? (l(), a("div", pl, [
|
|
671
|
+
k(d(B), { variant: "on" }, {
|
|
721
672
|
default: y(() => [
|
|
722
|
-
k(
|
|
723
|
-
id:
|
|
724
|
-
"model-value":
|
|
725
|
-
"onUpdate:modelValue":
|
|
726
|
-
disabled: !
|
|
673
|
+
k(d(re), {
|
|
674
|
+
id: v.value,
|
|
675
|
+
"model-value": S() ? /* @__PURE__ */ new Date(`1970-01-01T${S()}`) : null,
|
|
676
|
+
"onUpdate:modelValue": t[10] || (t[10] = (i) => T(i ? `${String(i.getHours()).padStart(2, "0")}:${String(i.getMinutes()).padStart(2, "0")}` : null)),
|
|
677
|
+
disabled: !C.value.enabled,
|
|
727
678
|
invalid: !!b.value,
|
|
728
|
-
"aria-required":
|
|
679
|
+
"aria-required": w.value,
|
|
729
680
|
"aria-invalid": !!b.value,
|
|
730
681
|
"aria-label": x.value,
|
|
731
682
|
"time-only": "",
|
|
732
683
|
"hour-format": e.node.hourFormat === "12" ? "12" : "24",
|
|
733
684
|
fluid: ""
|
|
734
685
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label", "hour-format"]),
|
|
735
|
-
h("label", { for:
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
], 8,
|
|
686
|
+
h("label", { for: v.value }, [
|
|
687
|
+
D(c(x.value), 1),
|
|
688
|
+
w.value ? (l(), a("span", ei, " *")) : f("", !0)
|
|
689
|
+
], 8, _l)
|
|
739
690
|
]),
|
|
740
691
|
_: 1
|
|
741
692
|
}),
|
|
742
|
-
b.value ? (l(),
|
|
693
|
+
b.value ? (l(), a("small", li, c(b.value), 1)) : f("", !0)
|
|
743
694
|
])) : f("", !0)
|
|
744
|
-
], 64)) : e.node.type === "SegmentedButton" ? (l(),
|
|
745
|
-
|
|
746
|
-
h("label",
|
|
747
|
-
|
|
748
|
-
|
|
695
|
+
], 64)) : e.node.type === "SegmentedButton" ? (l(), a(m, { key: 21 }, [
|
|
696
|
+
C.value.visible ? (l(), a("div", ii, [
|
|
697
|
+
h("label", ai, [
|
|
698
|
+
D(c(x.value), 1),
|
|
699
|
+
w.value ? (l(), a("span", ti, " *")) : f("", !0)
|
|
749
700
|
]),
|
|
750
|
-
k(
|
|
751
|
-
"model-value":
|
|
752
|
-
"onUpdate:modelValue":
|
|
753
|
-
options: G.value.length ? G.value :
|
|
701
|
+
k(d(rl), {
|
|
702
|
+
"model-value": S(),
|
|
703
|
+
"onUpdate:modelValue": t[11] || (t[11] = (i) => T(i)),
|
|
704
|
+
options: G.value.length ? G.value : d(X)(q.value, d(r).lang),
|
|
754
705
|
"option-label": "label",
|
|
755
706
|
"option-value": "value",
|
|
756
|
-
disabled: !
|
|
707
|
+
disabled: !C.value.enabled,
|
|
757
708
|
multiple: !!e.node.multiSelect,
|
|
758
709
|
"aria-label": x.value
|
|
759
710
|
}, null, 8, ["model-value", "options", "disabled", "multiple", "aria-label"])
|
|
760
711
|
])) : f("", !0)
|
|
761
|
-
], 64)) : e.node.type === "SearchField" ? (l(),
|
|
762
|
-
|
|
763
|
-
k(
|
|
712
|
+
], 64)) : e.node.type === "SearchField" ? (l(), a(m, { key: 22 }, [
|
|
713
|
+
C.value.visible ? (l(), a("div", ni, [
|
|
714
|
+
k(d(B), { variant: "on" }, {
|
|
764
715
|
default: y(() => [
|
|
765
|
-
k(
|
|
766
|
-
id:
|
|
767
|
-
"model-value":
|
|
768
|
-
"onUpdate:modelValue":
|
|
769
|
-
disabled: !
|
|
716
|
+
k(d(oe), {
|
|
717
|
+
id: v.value,
|
|
718
|
+
"model-value": S() || "",
|
|
719
|
+
"onUpdate:modelValue": t[12] || (t[12] = (i) => T(i)),
|
|
720
|
+
disabled: !C.value.enabled,
|
|
770
721
|
invalid: !!b.value,
|
|
771
|
-
"aria-required":
|
|
722
|
+
"aria-required": w.value,
|
|
772
723
|
"aria-invalid": !!b.value,
|
|
773
724
|
"aria-label": x.value,
|
|
774
725
|
role: "searchbox",
|
|
775
726
|
fluid: ""
|
|
776
727
|
}, null, 8, ["id", "model-value", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label"]),
|
|
777
|
-
h("label", { for:
|
|
778
|
-
|
|
728
|
+
h("label", { for: v.value }, [
|
|
729
|
+
t[25] || (t[25] = h("i", {
|
|
779
730
|
class: "pi pi-search",
|
|
780
731
|
style: { "margin-right": "0.25rem" }
|
|
781
732
|
}, null, -1)),
|
|
782
|
-
|
|
783
|
-
], 8,
|
|
733
|
+
D(c(x.value), 1)
|
|
734
|
+
], 8, di)
|
|
784
735
|
]),
|
|
785
736
|
_: 1
|
|
786
737
|
}),
|
|
787
|
-
b.value ? (l(),
|
|
738
|
+
b.value ? (l(), a("small", oi, c(b.value), 1)) : f("", !0)
|
|
788
739
|
])) : f("", !0)
|
|
789
|
-
], 64)) : e.node.type === "AutoComplete" ? (l(),
|
|
790
|
-
|
|
791
|
-
k(
|
|
740
|
+
], 64)) : e.node.type === "AutoComplete" ? (l(), a(m, { key: 23 }, [
|
|
741
|
+
C.value.visible ? (l(), a("div", ri, [
|
|
742
|
+
k(d(B), { variant: "on" }, {
|
|
792
743
|
default: y(() => [
|
|
793
|
-
k(
|
|
794
|
-
id:
|
|
795
|
-
"model-value":
|
|
796
|
-
"onUpdate:modelValue":
|
|
797
|
-
suggestions:
|
|
798
|
-
onComplete:
|
|
799
|
-
disabled: !
|
|
744
|
+
k(d(ul), {
|
|
745
|
+
id: v.value,
|
|
746
|
+
"model-value": S() || "",
|
|
747
|
+
"onUpdate:modelValue": t[13] || (t[13] = (i) => T(i)),
|
|
748
|
+
suggestions: K.value,
|
|
749
|
+
onComplete: xe,
|
|
750
|
+
disabled: !C.value.enabled,
|
|
800
751
|
invalid: !!b.value,
|
|
801
|
-
"aria-required":
|
|
752
|
+
"aria-required": w.value,
|
|
802
753
|
"aria-invalid": !!b.value,
|
|
803
754
|
"aria-label": x.value,
|
|
804
755
|
"min-length": e.node.minLength ?? 1,
|
|
805
756
|
fluid: ""
|
|
806
757
|
}, null, 8, ["id", "model-value", "suggestions", "disabled", "invalid", "aria-required", "aria-invalid", "aria-label", "min-length"]),
|
|
807
|
-
h("label", { for:
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
], 8,
|
|
758
|
+
h("label", { for: v.value }, [
|
|
759
|
+
D(c(x.value), 1),
|
|
760
|
+
w.value ? (l(), a("span", si, " *")) : f("", !0)
|
|
761
|
+
], 8, ui)
|
|
811
762
|
]),
|
|
812
763
|
_: 1
|
|
813
764
|
}),
|
|
814
|
-
b.value ? (l(),
|
|
765
|
+
b.value ? (l(), a("small", vi, c(b.value), 1)) : f("", !0)
|
|
815
766
|
])) : f("", !0)
|
|
816
|
-
], 64)) : e.node.type === "Image" ? (l(),
|
|
767
|
+
], 64)) : e.node.type === "Image" ? (l(), a("img", {
|
|
817
768
|
key: 24,
|
|
818
769
|
src: String(e.node.source || ""),
|
|
819
770
|
style: U(`object-fit: ${e.node.fit || "cover"}; max-width: 100%`),
|
|
820
771
|
class: "d-image"
|
|
821
|
-
}, null, 12,
|
|
772
|
+
}, null, 12, mi)) : e.node.type === "Chip" ? (l(), u(d(Ze), {
|
|
822
773
|
key: 25,
|
|
823
774
|
label: $(e.node.label),
|
|
824
775
|
icon: e.node.icon ? `pi pi-${e.node.icon}` : void 0
|
|
825
|
-
}, null, 8, ["label", "icon"])) : e.node.type === "Badge" ? (l(),
|
|
826
|
-
(l(!0),
|
|
776
|
+
}, null, 8, ["label", "icon"])) : e.node.type === "Badge" ? (l(), a("div", ci, [
|
|
777
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
827
778
|
key: o,
|
|
828
|
-
node:
|
|
779
|
+
node: i,
|
|
829
780
|
item: e.item
|
|
830
781
|
}, null, 8, ["node", "item"]))), 128)),
|
|
831
|
-
h("span",
|
|
832
|
-
])) : e.node.type === "ProgressIndicator" ? (l(),
|
|
833
|
-
!e.node.variant || e.node.variant === "circular" ? (l(),
|
|
782
|
+
h("span", fi, c($(e.node.content)), 1)
|
|
783
|
+
])) : e.node.type === "ProgressIndicator" ? (l(), a(m, { key: 27 }, [
|
|
784
|
+
!e.node.variant || e.node.variant === "circular" ? (l(), u(d(se), {
|
|
834
785
|
key: 0,
|
|
835
786
|
style: { width: "40px", height: "40px" }
|
|
836
|
-
})) : (l(),
|
|
787
|
+
})) : (l(), u(d(pe), {
|
|
837
788
|
key: 1,
|
|
838
789
|
mode: "indeterminate",
|
|
839
790
|
style: { height: "4px" }
|
|
840
791
|
}))
|
|
841
|
-
], 64)) : e.node.type === "ListTile" ? (l(),
|
|
792
|
+
], 64)) : e.node.type === "ListTile" ? (l(), a("div", {
|
|
842
793
|
key: 28,
|
|
843
|
-
class:
|
|
844
|
-
onClick:
|
|
794
|
+
class: V(["d-list-tile", { "cursor-pointer": !!e.node.onTap }]),
|
|
795
|
+
onClick: t[14] || (t[14] = (i) => e.node.onTap ? F(e.node.onTap) : void 0)
|
|
845
796
|
}, [
|
|
846
|
-
e.node.leading ? (l(),
|
|
847
|
-
k(
|
|
797
|
+
e.node.leading ? (l(), a("div", yi, [
|
|
798
|
+
k(s, {
|
|
848
799
|
node: e.node.leading,
|
|
849
800
|
item: e.item
|
|
850
801
|
}, null, 8, ["node", "item"])
|
|
851
802
|
])) : f("", !0),
|
|
852
|
-
h("div",
|
|
853
|
-
h("span",
|
|
854
|
-
e.node.subtitle ? (l(),
|
|
803
|
+
h("div", bi, [
|
|
804
|
+
h("span", ki, c($(e.node.title)), 1),
|
|
805
|
+
e.node.subtitle ? (l(), a("span", hi, c($(e.node.subtitle)), 1)) : f("", !0)
|
|
855
806
|
]),
|
|
856
|
-
e.node.trailing ? (l(),
|
|
857
|
-
k(
|
|
807
|
+
e.node.trailing ? (l(), a("div", gi, [
|
|
808
|
+
k(s, {
|
|
858
809
|
node: e.node.trailing,
|
|
859
810
|
item: e.item
|
|
860
811
|
}, null, 8, ["node", "item"])
|
|
861
812
|
])) : f("", !0)
|
|
862
|
-
], 2)) : e.node.type === "Avatar" ? (l(),
|
|
813
|
+
], 2)) : e.node.type === "Avatar" ? (l(), u(d(sl), {
|
|
863
814
|
key: 29,
|
|
864
815
|
image: e.node.source || void 0,
|
|
865
816
|
label: e.node.label ? $(e.node.label)?.charAt(0) : void 0,
|
|
866
817
|
icon: e.node.icon ? `pi pi-${e.node.icon}` : !e.node.source && !e.node.label ? "pi pi-user" : void 0,
|
|
867
818
|
shape: e.node.shape === "square" ? "square" : "circle",
|
|
868
819
|
size: e.node.size === "xl" ? "xlarge" : e.node.size === "lg" ? "large" : (e.node.size === "sm", void 0),
|
|
869
|
-
class:
|
|
870
|
-
}, null, 8, ["image", "label", "icon", "shape", "size", "class"])) : e.node.type === "RichText" ? (l(),
|
|
871
|
-
(l(!0),
|
|
872
|
-
|
|
820
|
+
class: V(`d-avatar--${e.node.size || "md"}`)
|
|
821
|
+
}, null, 8, ["image", "label", "icon", "shape", "size", "class"])) : e.node.type === "RichText" ? (l(), a("p", xi, [
|
|
822
|
+
(l(!0), a(m, null, g(e.node.spans || [], (i, o) => (l(), a(m, { key: o }, [
|
|
823
|
+
i.link ? (l(), a("a", {
|
|
873
824
|
key: 0,
|
|
874
|
-
href:
|
|
825
|
+
href: i.link,
|
|
875
826
|
target: "_blank",
|
|
876
|
-
class:
|
|
877
|
-
style: U(
|
|
878
|
-
}, c($(
|
|
827
|
+
class: V(["d-richtext-span", { "font-bold": i.bold, "font-italic": i.italic }]),
|
|
828
|
+
style: U(i.variant ? `font-size: var(--d-text-${i.variant}-size, inherit)` : "")
|
|
829
|
+
}, c($(i.text)), 15, Ci)) : (l(), a("span", {
|
|
879
830
|
key: 1,
|
|
880
|
-
class:
|
|
881
|
-
style: U(
|
|
882
|
-
}, c($(
|
|
831
|
+
class: V(["d-richtext-span", { "font-bold": i.bold, "font-italic": i.italic }]),
|
|
832
|
+
style: U(i.variant ? `font-size: var(--d-text-${i.variant}-size, inherit)` : "")
|
|
833
|
+
}, c($(i.text)), 7))
|
|
883
834
|
], 64))), 128))
|
|
884
|
-
])) : e.node.type === "LoadingIndicator" ? (l(),
|
|
835
|
+
])) : e.node.type === "LoadingIndicator" ? (l(), u(d(se), {
|
|
885
836
|
key: 31,
|
|
886
837
|
style: { width: "32px", height: "32px" }
|
|
887
|
-
})) : e.node.type === "Text" ? (l(),
|
|
838
|
+
})) : e.node.type === "Text" ? (l(), u(Se(e.node.variant?.startsWith("display") || e.node.variant?.startsWith("headline") ? "h2" : e.node.variant?.startsWith("title") ? "h3" : "span"), {
|
|
888
839
|
key: 32,
|
|
889
|
-
class:
|
|
840
|
+
class: V(["d-text", `d-text--${e.node.variant || "bodyMedium"}`])
|
|
890
841
|
}, {
|
|
891
842
|
default: y(() => [
|
|
892
|
-
|
|
843
|
+
D(c($(e.node.content)), 1)
|
|
893
844
|
]),
|
|
894
845
|
_: 1
|
|
895
|
-
}, 8, ["class"])) : e.node.type === "Icon" ? (l(),
|
|
846
|
+
}, 8, ["class"])) : e.node.type === "Icon" ? (l(), a("i", {
|
|
896
847
|
key: 33,
|
|
897
|
-
class:
|
|
898
|
-
}, c(e.node.name), 3)) : e.node.type === "Button" ? (l(),
|
|
848
|
+
class: V(["material-icons", `d-icon--${e.node.size || "md"}`])
|
|
849
|
+
}, c(e.node.name), 3)) : e.node.type === "Button" ? (l(), u(d(R), {
|
|
899
850
|
key: 34,
|
|
900
851
|
label: $(e.node.label),
|
|
901
852
|
icon: e.node.icon ? `pi pi-${e.node.icon}` : void 0,
|
|
902
853
|
severity: e.node.variant === "filled" || !e.node.variant ? void 0 : "secondary",
|
|
903
854
|
outlined: e.node.variant === "outlined",
|
|
904
855
|
text: e.node.variant === "text",
|
|
905
|
-
onClick:
|
|
906
|
-
}, null, 8, ["label", "icon", "severity", "outlined", "text"])) : e.node.type === "IconButton" ? (l(),
|
|
856
|
+
onClick: t[15] || (t[15] = (i) => F(e.node.action, e.node.command))
|
|
857
|
+
}, null, 8, ["label", "icon", "severity", "outlined", "text"])) : e.node.type === "IconButton" ? (l(), u(d(R), {
|
|
907
858
|
key: 35,
|
|
908
859
|
icon: `pi pi-${e.node.icon}`,
|
|
909
860
|
rounded: "",
|
|
910
861
|
text: "",
|
|
911
|
-
onClick:
|
|
912
|
-
}, null, 8, ["icon"])) : e.node.type === "FAB" ? (l(),
|
|
862
|
+
onClick: t[16] || (t[16] = (i) => F(e.node.action))
|
|
863
|
+
}, null, 8, ["icon"])) : e.node.type === "FAB" ? (l(), u(d(R), {
|
|
913
864
|
key: 36,
|
|
914
865
|
icon: `pi pi-${e.node.icon}`,
|
|
915
866
|
label: e.node.label ? $(e.node.label) : void 0,
|
|
916
867
|
rounded: "",
|
|
917
868
|
raised: "",
|
|
918
|
-
class:
|
|
869
|
+
class: V([
|
|
919
870
|
"p-button-rounded",
|
|
920
871
|
e.node.variant === "small" ? "d-fab--small" : e.node.variant === "large" ? "d-fab--large" : ""
|
|
921
872
|
]),
|
|
922
|
-
onClick:
|
|
923
|
-
}, null, 8, ["icon", "label", "class"])) : e.node.type === "ForEach" ? (l(),
|
|
873
|
+
onClick: t[17] || (t[17] = (i) => F(e.node.action))
|
|
874
|
+
}, null, 8, ["icon", "label", "class"])) : e.node.type === "ForEach" ? (l(), u(de, {
|
|
924
875
|
key: 37,
|
|
925
876
|
label: "ForEach"
|
|
926
877
|
}, {
|
|
927
878
|
default: y(() => [
|
|
928
|
-
(l(!0),
|
|
879
|
+
(l(!0), a(m, null, g(ke.value, (i, o) => (l(), u(s, {
|
|
929
880
|
key: o,
|
|
930
881
|
node: e.node.template,
|
|
931
|
-
item:
|
|
882
|
+
item: i
|
|
932
883
|
}, null, 8, ["node", "item"]))), 128))
|
|
933
884
|
]),
|
|
934
885
|
_: 1
|
|
935
|
-
})) : e.node.type === "Component" ? (l(),
|
|
886
|
+
})) : e.node.type === "Component" ? (l(), u(de, {
|
|
936
887
|
key: 38,
|
|
937
888
|
label: e.node.ref
|
|
938
889
|
}, {
|
|
939
890
|
default: y(() => [
|
|
940
|
-
h("div",
|
|
941
|
-
|
|
891
|
+
h("div", $i, [
|
|
892
|
+
H.value && J.value ? (l(), u(Ee, {
|
|
942
893
|
key: 0,
|
|
943
|
-
schema:
|
|
944
|
-
view:
|
|
945
|
-
lang: r
|
|
946
|
-
"bound-values":
|
|
947
|
-
"bound-instance-values":
|
|
948
|
-
onUpdate:
|
|
949
|
-
}, null, 8, ["schema", "view", "lang", "bound-values", "bound-instance-values"])) : (l(),
|
|
950
|
-
|
|
951
|
-
|
|
894
|
+
schema: H.value,
|
|
895
|
+
view: J.value,
|
|
896
|
+
lang: d(r).lang,
|
|
897
|
+
"bound-values": p.value?.form,
|
|
898
|
+
"bound-instance-values": p.value?.instance,
|
|
899
|
+
onUpdate: he
|
|
900
|
+
}, null, 8, ["schema", "view", "lang", "bound-values", "bound-instance-values"])) : (l(), a("div", wi, [
|
|
901
|
+
t[26] || (t[26] = h("i", { class: "pi pi-spinner pi-spin" }, null, -1)),
|
|
902
|
+
D(" Loading " + c(e.node.ref) + "... ", 1)
|
|
952
903
|
]))
|
|
953
904
|
])
|
|
954
905
|
]),
|
|
955
906
|
_: 1
|
|
956
|
-
}, 8, ["label"])) : e.node.type === "TabView" ? (l(),
|
|
907
|
+
}, 8, ["label"])) : e.node.type === "TabView" ? (l(), u(d(Me), {
|
|
957
908
|
key: 39,
|
|
958
909
|
value: 0
|
|
959
910
|
}, {
|
|
960
911
|
default: y(() => [
|
|
961
|
-
k(
|
|
912
|
+
k(d(Ge), null, {
|
|
962
913
|
default: y(() => [
|
|
963
|
-
(l(!0),
|
|
914
|
+
(l(!0), a(m, null, g(e.node.tabs, (i, o) => (l(), u(d(He), {
|
|
964
915
|
key: o,
|
|
965
916
|
value: o
|
|
966
917
|
}, {
|
|
967
918
|
default: y(() => [
|
|
968
|
-
|
|
919
|
+
i.icon ? (l(), a("i", {
|
|
969
920
|
key: 0,
|
|
970
|
-
class:
|
|
921
|
+
class: V(`pi pi-${i.icon}`),
|
|
971
922
|
style: { "margin-right": "0.5rem" }
|
|
972
923
|
}, null, 2)) : f("", !0),
|
|
973
|
-
|
|
924
|
+
D(" " + c($(i.title)), 1)
|
|
974
925
|
]),
|
|
975
926
|
_: 2
|
|
976
927
|
}, 1032, ["value"]))), 128))
|
|
977
928
|
]),
|
|
978
929
|
_: 1
|
|
979
930
|
}),
|
|
980
|
-
k(
|
|
931
|
+
k(d(Je), null, {
|
|
981
932
|
default: y(() => [
|
|
982
|
-
(l(!0),
|
|
933
|
+
(l(!0), a(m, null, g(e.node.tabs, (i, o) => (l(), u(d(Ke), {
|
|
983
934
|
key: o,
|
|
984
935
|
value: o
|
|
985
936
|
}, {
|
|
986
937
|
default: y(() => [
|
|
987
|
-
h("div",
|
|
988
|
-
(l(!0),
|
|
989
|
-
key:
|
|
990
|
-
node:
|
|
938
|
+
h("div", Si, [
|
|
939
|
+
(l(!0), a(m, null, g(i.content, (z, Q) => (l(), u(s, {
|
|
940
|
+
key: Q,
|
|
941
|
+
node: z,
|
|
991
942
|
item: e.item
|
|
992
943
|
}, null, 8, ["node", "item"]))), 128))
|
|
993
944
|
])
|
|
@@ -999,22 +950,22 @@ const kl = {
|
|
|
999
950
|
})
|
|
1000
951
|
]),
|
|
1001
952
|
_: 1
|
|
1002
|
-
})) : e.node.type === "ExpansionPanel" ? (l(),
|
|
953
|
+
})) : e.node.type === "ExpansionPanel" ? (l(), u(d(_e), { key: 40 }, {
|
|
1003
954
|
default: y(() => [
|
|
1004
|
-
k(
|
|
955
|
+
k(d(el), { value: "panel" }, {
|
|
1005
956
|
default: y(() => [
|
|
1006
|
-
k(
|
|
957
|
+
k(d(ll), null, {
|
|
1007
958
|
default: y(() => [
|
|
1008
|
-
|
|
959
|
+
D(c($(e.node.title)), 1)
|
|
1009
960
|
]),
|
|
1010
961
|
_: 1
|
|
1011
962
|
}),
|
|
1012
|
-
k(
|
|
963
|
+
k(d(il), null, {
|
|
1013
964
|
default: y(() => [
|
|
1014
|
-
h("div",
|
|
1015
|
-
(l(!0),
|
|
965
|
+
h("div", Di, [
|
|
966
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1016
967
|
key: o,
|
|
1017
|
-
node:
|
|
968
|
+
node: i,
|
|
1018
969
|
item: e.item
|
|
1019
970
|
}, null, 8, ["node", "item"]))), 128))
|
|
1020
971
|
])
|
|
@@ -1026,37 +977,37 @@ const kl = {
|
|
|
1026
977
|
})
|
|
1027
978
|
]),
|
|
1028
979
|
_: 1
|
|
1029
|
-
})) : e.node.type === "Stepper" ? (l(),
|
|
980
|
+
})) : e.node.type === "Stepper" ? (l(), u(d(al), {
|
|
1030
981
|
key: 41,
|
|
1031
982
|
value: 0,
|
|
1032
983
|
linear: ""
|
|
1033
984
|
}, {
|
|
1034
985
|
default: y(() => [
|
|
1035
|
-
k(
|
|
986
|
+
k(d(tl), null, {
|
|
1036
987
|
default: y(() => [
|
|
1037
|
-
(l(!0),
|
|
988
|
+
(l(!0), a(m, null, g(e.node.steps || [], (i, o) => (l(), u(d(nl), {
|
|
1038
989
|
key: o,
|
|
1039
990
|
value: o
|
|
1040
991
|
}, {
|
|
1041
992
|
default: y(() => [
|
|
1042
|
-
|
|
993
|
+
D(c($(i.title)), 1)
|
|
1043
994
|
]),
|
|
1044
995
|
_: 2
|
|
1045
996
|
}, 1032, ["value"]))), 128))
|
|
1046
997
|
]),
|
|
1047
998
|
_: 1
|
|
1048
999
|
}),
|
|
1049
|
-
k(
|
|
1000
|
+
k(d(dl), null, {
|
|
1050
1001
|
default: y(() => [
|
|
1051
|
-
(l(!0),
|
|
1002
|
+
(l(!0), a(m, null, g(e.node.steps || [], (i, o) => (l(), u(d(ol), {
|
|
1052
1003
|
key: o,
|
|
1053
1004
|
value: o
|
|
1054
1005
|
}, {
|
|
1055
1006
|
default: y(() => [
|
|
1056
|
-
h("div",
|
|
1057
|
-
(l(!0),
|
|
1058
|
-
key:
|
|
1059
|
-
node:
|
|
1007
|
+
h("div", qi, [
|
|
1008
|
+
(l(!0), a(m, null, g(i.content, (z, Q) => (l(), u(s, {
|
|
1009
|
+
key: Q,
|
|
1010
|
+
node: z,
|
|
1060
1011
|
item: e.item
|
|
1061
1012
|
}, null, 8, ["node", "item"]))), 128))
|
|
1062
1013
|
])
|
|
@@ -1068,19 +1019,19 @@ const kl = {
|
|
|
1068
1019
|
})
|
|
1069
1020
|
]),
|
|
1070
1021
|
_: 1
|
|
1071
|
-
})) : e.node.type === "Dialog" ? (l(),
|
|
1022
|
+
})) : e.node.type === "Dialog" ? (l(), u(d(vl), {
|
|
1072
1023
|
key: 42,
|
|
1073
|
-
visible:
|
|
1074
|
-
"onUpdate:visible":
|
|
1024
|
+
visible: O(e.node.visible),
|
|
1025
|
+
"onUpdate:visible": t[18] || (t[18] = (i) => j(e.node.visible, i)),
|
|
1075
1026
|
modal: !0,
|
|
1076
1027
|
closable: e.node.dismissible !== !1,
|
|
1077
1028
|
header: $(e.node.title)
|
|
1078
1029
|
}, ie({
|
|
1079
1030
|
default: y(() => [
|
|
1080
|
-
h("div",
|
|
1081
|
-
(l(!0),
|
|
1031
|
+
h("div", Vi, [
|
|
1032
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1082
1033
|
key: o,
|
|
1083
|
-
node:
|
|
1034
|
+
node: i,
|
|
1084
1035
|
item: e.item
|
|
1085
1036
|
}, null, 8, ["node", "item"]))), 128))
|
|
1086
1037
|
])
|
|
@@ -1090,8 +1041,8 @@ const kl = {
|
|
|
1090
1041
|
e.node.icon ? {
|
|
1091
1042
|
name: "header",
|
|
1092
1043
|
fn: y(() => [
|
|
1093
|
-
h("div",
|
|
1094
|
-
h("i",
|
|
1044
|
+
h("div", Ai, [
|
|
1045
|
+
h("i", Ti, c(e.node.icon), 1),
|
|
1095
1046
|
h("span", null, c($(e.node.title)), 1)
|
|
1096
1047
|
])
|
|
1097
1048
|
]),
|
|
@@ -1100,121 +1051,121 @@ const kl = {
|
|
|
1100
1051
|
e.node.actions?.length ? {
|
|
1101
1052
|
name: "footer",
|
|
1102
1053
|
fn: y(() => [
|
|
1103
|
-
(l(!0),
|
|
1054
|
+
(l(!0), a(m, null, g(e.node.actions, (i, o) => (l(), u(s, {
|
|
1104
1055
|
key: o,
|
|
1105
|
-
node:
|
|
1056
|
+
node: i,
|
|
1106
1057
|
item: e.item
|
|
1107
1058
|
}, null, 8, ["node", "item"]))), 128))
|
|
1108
1059
|
]),
|
|
1109
1060
|
key: "1"
|
|
1110
1061
|
} : void 0
|
|
1111
|
-
]), 1032, ["visible", "closable", "header"])) : e.node.type === "BottomSheet" ? (l(),
|
|
1062
|
+
]), 1032, ["visible", "closable", "header"])) : e.node.type === "BottomSheet" ? (l(), u(d(Y), {
|
|
1112
1063
|
key: 43,
|
|
1113
|
-
visible:
|
|
1114
|
-
"onUpdate:visible":
|
|
1064
|
+
visible: O(e.node.visible),
|
|
1065
|
+
"onUpdate:visible": t[19] || (t[19] = (i) => j(e.node.visible, i)),
|
|
1115
1066
|
position: "bottom"
|
|
1116
1067
|
}, {
|
|
1117
1068
|
default: y(() => [
|
|
1118
|
-
(l(!0),
|
|
1069
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1119
1070
|
key: o,
|
|
1120
|
-
node:
|
|
1071
|
+
node: i,
|
|
1121
1072
|
item: e.item
|
|
1122
1073
|
}, null, 8, ["node", "item"]))), 128))
|
|
1123
1074
|
]),
|
|
1124
1075
|
_: 1
|
|
1125
|
-
}, 8, ["visible"])) : e.node.type === "SideSheet" ? (l(),
|
|
1076
|
+
}, 8, ["visible"])) : e.node.type === "SideSheet" ? (l(), u(d(Y), {
|
|
1126
1077
|
key: 44,
|
|
1127
|
-
visible:
|
|
1128
|
-
"onUpdate:visible":
|
|
1078
|
+
visible: O(e.node.visible),
|
|
1079
|
+
"onUpdate:visible": t[20] || (t[20] = (i) => j(e.node.visible, i)),
|
|
1129
1080
|
position: "right",
|
|
1130
1081
|
header: $(e.node.title)
|
|
1131
1082
|
}, {
|
|
1132
1083
|
default: y(() => [
|
|
1133
|
-
(l(!0),
|
|
1084
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1134
1085
|
key: o,
|
|
1135
|
-
node:
|
|
1086
|
+
node: i,
|
|
1136
1087
|
item: e.item
|
|
1137
1088
|
}, null, 8, ["node", "item"]))), 128))
|
|
1138
1089
|
]),
|
|
1139
1090
|
_: 1
|
|
1140
|
-
}, 8, ["visible", "header"])) : e.node.type === "Snackbar" ? (l(),
|
|
1091
|
+
}, 8, ["visible", "header"])) : e.node.type === "Snackbar" ? (l(), a("div", {
|
|
1141
1092
|
key: 45,
|
|
1142
|
-
class:
|
|
1093
|
+
class: V(["d-snackbar", `d-snackbar--${e.node.variant || "standard"}`])
|
|
1143
1094
|
}, [
|
|
1144
|
-
h("span",
|
|
1145
|
-
e.node.action ? (l(),
|
|
1095
|
+
h("span", Pi, c($(e.node.content)), 1),
|
|
1096
|
+
e.node.action ? (l(), u(d(R), {
|
|
1146
1097
|
key: 0,
|
|
1147
1098
|
label: $(e.node.action?.action),
|
|
1148
1099
|
text: "",
|
|
1149
1100
|
size: "small",
|
|
1150
|
-
onClick:
|
|
1101
|
+
onClick: t[21] || (t[21] = (i) => e.node.action && F(e.node.action))
|
|
1151
1102
|
}, null, 8, ["label"])) : f("", !0)
|
|
1152
|
-
], 2)) : e.node.type === "Tooltip" ?
|
|
1153
|
-
(l(!0),
|
|
1103
|
+
], 2)) : e.node.type === "Tooltip" ? De((l(), a("div", Fi, [
|
|
1104
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1154
1105
|
key: o,
|
|
1155
|
-
node:
|
|
1106
|
+
node: i,
|
|
1156
1107
|
item: e.item
|
|
1157
1108
|
}, null, 8, ["node", "item"]))), 128))
|
|
1158
1109
|
])), [
|
|
1159
1110
|
[
|
|
1160
|
-
|
|
1111
|
+
d(me),
|
|
1161
1112
|
$(e.node.content),
|
|
1162
1113
|
void 0,
|
|
1163
1114
|
{ top: !0 }
|
|
1164
1115
|
]
|
|
1165
|
-
]) : e.node.type === "AppBar" ? (l(),
|
|
1116
|
+
]) : e.node.type === "AppBar" ? (l(), u(d(ve), {
|
|
1166
1117
|
key: 47,
|
|
1167
1118
|
class: "d-appbar"
|
|
1168
1119
|
}, {
|
|
1169
1120
|
start: y(() => [
|
|
1170
|
-
e.node.leading ? (l(),
|
|
1171
|
-
k(
|
|
1121
|
+
e.node.leading ? (l(), a("div", Ui, [
|
|
1122
|
+
k(s, {
|
|
1172
1123
|
node: e.node.leading,
|
|
1173
1124
|
item: e.item
|
|
1174
1125
|
}, null, 8, ["node", "item"])
|
|
1175
1126
|
])) : f("", !0),
|
|
1176
|
-
h("span",
|
|
1127
|
+
h("span", Li, c($(e.node.title)), 1)
|
|
1177
1128
|
]),
|
|
1178
1129
|
end: y(() => [
|
|
1179
|
-
e.node.actions ? (l(),
|
|
1180
|
-
(l(!0),
|
|
1130
|
+
e.node.actions ? (l(), a("div", Bi, [
|
|
1131
|
+
(l(!0), a(m, null, g(e.node.actions, (i, o) => (l(), u(s, {
|
|
1181
1132
|
key: o,
|
|
1182
|
-
node:
|
|
1133
|
+
node: i,
|
|
1183
1134
|
item: e.item
|
|
1184
1135
|
}, null, 8, ["node", "item"]))), 128))
|
|
1185
1136
|
])) : f("", !0)
|
|
1186
1137
|
]),
|
|
1187
1138
|
_: 1
|
|
1188
|
-
})) : e.node.type === "NavigationBar" ? (l(),
|
|
1189
|
-
(l(!0),
|
|
1139
|
+
})) : e.node.type === "NavigationBar" ? (l(), a("div", Ni, [
|
|
1140
|
+
(l(!0), a(m, null, g(e.node.destinations || [], (i, o) => (l(), a("div", {
|
|
1190
1141
|
key: o,
|
|
1191
|
-
class:
|
|
1192
|
-
onClick: (
|
|
1142
|
+
class: V(["d-nav-bar__item", { "d-nav-bar__item--active": S() === i.value }]),
|
|
1143
|
+
onClick: (z) => T(i.value)
|
|
1193
1144
|
}, [
|
|
1194
|
-
h("i",
|
|
1195
|
-
h("span", null, c($(
|
|
1196
|
-
], 10,
|
|
1197
|
-
])) : e.node.type === "NavigationDrawer" ? (l(),
|
|
1145
|
+
h("i", zi, c(S() === i.value && i.selectedIcon ? i.selectedIcon : i.icon), 1),
|
|
1146
|
+
h("span", null, c($(i.label)), 1)
|
|
1147
|
+
], 10, Ei))), 128))
|
|
1148
|
+
])) : e.node.type === "NavigationDrawer" ? (l(), u(d(Y), {
|
|
1198
1149
|
key: 49,
|
|
1199
|
-
visible:
|
|
1200
|
-
"onUpdate:visible":
|
|
1150
|
+
visible: O(e.node.visible),
|
|
1151
|
+
"onUpdate:visible": t[22] || (t[22] = (i) => j(e.node.visible, i)),
|
|
1201
1152
|
position: "left"
|
|
1202
1153
|
}, ie({
|
|
1203
1154
|
default: y(() => [
|
|
1204
|
-
h("div",
|
|
1205
|
-
(l(!0),
|
|
1206
|
-
|
|
1155
|
+
h("div", Ri, [
|
|
1156
|
+
(l(!0), a(m, null, g(e.node.items || [], (i, o) => (l(), a(m, { key: o }, [
|
|
1157
|
+
i.divider ? (l(), u(d(ue), { key: 0 })) : i.header ? (l(), a("div", Wi, c($(i.header)), 1)) : (l(), a("div", {
|
|
1207
1158
|
key: 2,
|
|
1208
1159
|
class: "d-nav-drawer__item",
|
|
1209
|
-
onClick: (
|
|
1160
|
+
onClick: (z) => i.action && F(i.action)
|
|
1210
1161
|
}, [
|
|
1211
|
-
|
|
1162
|
+
i.icon ? (l(), a("i", {
|
|
1212
1163
|
key: 0,
|
|
1213
|
-
class:
|
|
1164
|
+
class: V(`pi pi-${i.icon}`)
|
|
1214
1165
|
}, null, 2)) : f("", !0),
|
|
1215
|
-
h("span", null, c($(
|
|
1216
|
-
|
|
1217
|
-
], 8,
|
|
1166
|
+
h("span", null, c($(i.label)), 1),
|
|
1167
|
+
i.badge ? (l(), a("span", Oi, c($(i.badge)), 1)) : f("", !0)
|
|
1168
|
+
], 8, Ii))
|
|
1218
1169
|
], 64))), 128))
|
|
1219
1170
|
])
|
|
1220
1171
|
]),
|
|
@@ -1223,74 +1174,74 @@ const kl = {
|
|
|
1223
1174
|
e.node.header ? {
|
|
1224
1175
|
name: "header",
|
|
1225
1176
|
fn: y(() => [
|
|
1226
|
-
k(
|
|
1177
|
+
k(s, {
|
|
1227
1178
|
node: e.node.header,
|
|
1228
1179
|
item: e.item
|
|
1229
1180
|
}, null, 8, ["node", "item"])
|
|
1230
1181
|
]),
|
|
1231
1182
|
key: "0"
|
|
1232
1183
|
} : void 0
|
|
1233
|
-
]), 1032, ["visible"])) : e.node.type === "Menu" ? (l(),
|
|
1234
|
-
h("div",
|
|
1235
|
-
e.node.anchor ? (l(),
|
|
1184
|
+
]), 1032, ["visible"])) : e.node.type === "Menu" ? (l(), a(m, { key: 50 }, [
|
|
1185
|
+
h("div", ji, [
|
|
1186
|
+
e.node.anchor ? (l(), a("div", {
|
|
1236
1187
|
key: 0,
|
|
1237
|
-
onClick:
|
|
1188
|
+
onClick: t[23] || (t[23] = (i) => ee(i))
|
|
1238
1189
|
}, [
|
|
1239
|
-
k(
|
|
1190
|
+
k(s, {
|
|
1240
1191
|
node: e.node.anchor,
|
|
1241
1192
|
item: e.item
|
|
1242
1193
|
}, null, 8, ["node", "item"])
|
|
1243
|
-
])) : (l(),
|
|
1194
|
+
])) : (l(), u(d(R), {
|
|
1244
1195
|
key: 1,
|
|
1245
1196
|
icon: "pi pi-ellipsis-v",
|
|
1246
1197
|
text: "",
|
|
1247
1198
|
rounded: "",
|
|
1248
|
-
onClick:
|
|
1199
|
+
onClick: t[24] || (t[24] = (i) => ee(i))
|
|
1249
1200
|
}))
|
|
1250
1201
|
]),
|
|
1251
|
-
k(
|
|
1202
|
+
k(d(ml), {
|
|
1252
1203
|
ref_key: "menuRef",
|
|
1253
|
-
ref:
|
|
1204
|
+
ref: _,
|
|
1254
1205
|
model: Ce(e.node.items || []),
|
|
1255
1206
|
popup: !0
|
|
1256
1207
|
}, null, 8, ["model"])
|
|
1257
|
-
], 64)) : e.node.type === "Toolbar" ? (l(),
|
|
1208
|
+
], 64)) : e.node.type === "Toolbar" ? (l(), u(d(ve), {
|
|
1258
1209
|
key: 51,
|
|
1259
1210
|
class: "d-toolbar"
|
|
1260
1211
|
}, {
|
|
1261
1212
|
center: y(() => [
|
|
1262
|
-
h("div",
|
|
1263
|
-
(l(!0),
|
|
1213
|
+
h("div", Mi, [
|
|
1214
|
+
(l(!0), a(m, null, g(e.node.children, (i, o) => (l(), u(s, {
|
|
1264
1215
|
key: o,
|
|
1265
|
-
node:
|
|
1216
|
+
node: i,
|
|
1266
1217
|
item: e.item
|
|
1267
1218
|
}, null, 8, ["node", "item"]))), 128))
|
|
1268
1219
|
])
|
|
1269
1220
|
]),
|
|
1270
1221
|
_: 1
|
|
1271
|
-
})) : e.node.type === "Carousel" ? (l(),
|
|
1222
|
+
})) : e.node.type === "Carousel" ? (l(), u(d(cl), {
|
|
1272
1223
|
key: 52,
|
|
1273
|
-
value: Array.isArray(
|
|
1224
|
+
value: Array.isArray(d(E)(e.node.source, d(r), e.item)) ? d(E)(e.node.source, d(r), e.item) : [],
|
|
1274
1225
|
"num-visible": 1,
|
|
1275
1226
|
"num-scroll": 1,
|
|
1276
1227
|
"show-indicators": e.node.showIndicators !== !1,
|
|
1277
1228
|
circular: !!e.node.autoPlay,
|
|
1278
1229
|
"autoplay-interval": e.node.autoPlay ? 3e3 : 0
|
|
1279
1230
|
}, {
|
|
1280
|
-
item: y(({ data:
|
|
1281
|
-
k(
|
|
1231
|
+
item: y(({ data: i }) => [
|
|
1232
|
+
k(s, {
|
|
1282
1233
|
node: e.node.template,
|
|
1283
|
-
item:
|
|
1234
|
+
item: i
|
|
1284
1235
|
}, null, 8, ["node", "item"])
|
|
1285
1236
|
]),
|
|
1286
1237
|
_: 1
|
|
1287
|
-
}, 8, ["value", "show-indicators", "circular", "autoplay-interval"])) : (l(),
|
|
1238
|
+
}, 8, ["value", "show-indicators", "circular", "autoplay-interval"])) : (l(), u(d(Qe), {
|
|
1288
1239
|
key: 53,
|
|
1289
1240
|
severity: "warn",
|
|
1290
1241
|
closable: !1
|
|
1291
1242
|
}, {
|
|
1292
1243
|
default: y(() => [
|
|
1293
|
-
|
|
1244
|
+
D(" Unknown component type: " + c(e.node.type), 1)
|
|
1294
1245
|
]),
|
|
1295
1246
|
_: 1
|
|
1296
1247
|
}));
|
|
@@ -1298,5 +1249,5 @@ const kl = {
|
|
|
1298
1249
|
}
|
|
1299
1250
|
});
|
|
1300
1251
|
export {
|
|
1301
|
-
|
|
1252
|
+
Oa as default
|
|
1302
1253
|
};
|