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