@bagelink/vue 0.0.1000 → 0.0.1006
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BglVideo.vue.d.ts +8 -1
- package/dist/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/IframeVue.vue.d.ts +47 -0
- package/dist/components/IframeVue.vue.d.ts.map +1 -0
- package/dist/components/Image.vue.d.ts +5 -0
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useEditor.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/media.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +23 -35
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/index.cjs +404 -275
- package/dist/index.mjs +404 -275
- package/dist/style.css +85 -85
- package/package.json +1 -2
- package/src/components/BglVideo.vue +33 -5
- package/src/components/IframeVue.vue +72 -0
- package/src/components/Image.vue +11 -6
- package/src/components/Pill.vue +2 -2
- package/src/components/TableSchema.vue +60 -71
- package/src/components/form/BglField.vue +2 -1
- package/src/components/form/inputs/RichText/composables/useEditor.ts +0 -1
- package/src/components/form/inputs/RichText/utils/media.ts +27 -5
- package/src/components/form/inputs/SelectInput.vue +9 -4
- package/src/components/index.ts +2 -1
- package/src/components/layout/SidebarMenu.vue +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,43 @@ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
|
3
3
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, onMounted, onUnmounted, resolveComponent, mergeModels, useModel, pushScopeId, popScopeId, nextTick, normalizeProps, guardReactiveProps, withScopeId, createApp, h as h$2, onBeforeUnmount, vModelCheckbox, vModelText, toRef, createSlots, Teleport, render as render$e, onBeforeUpdate, vShow, getCurrentScope, onScopeDispose, vModelRadio, TransitionGroup, vModelDynamic, useCssVars, getCurrentInstance, shallowRef, markRaw } from "vue";
|
|
5
5
|
import { RouterLink } from "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
get bglForm() {
|
|
9
|
+
return bglForm;
|
|
10
|
+
},
|
|
11
|
+
get checkField() {
|
|
12
|
+
return checkField;
|
|
13
|
+
},
|
|
14
|
+
get dateField() {
|
|
15
|
+
return dateField;
|
|
16
|
+
},
|
|
17
|
+
get findBglFieldById() {
|
|
18
|
+
return findBglFieldById;
|
|
19
|
+
},
|
|
20
|
+
get frmRow() {
|
|
21
|
+
return frmRow;
|
|
22
|
+
},
|
|
23
|
+
get getBaseField() {
|
|
24
|
+
return getBaseField;
|
|
25
|
+
},
|
|
26
|
+
get numField() {
|
|
27
|
+
return numField;
|
|
28
|
+
},
|
|
29
|
+
get richText() {
|
|
30
|
+
return richText;
|
|
31
|
+
},
|
|
32
|
+
get slctField() {
|
|
33
|
+
return slctField;
|
|
34
|
+
},
|
|
35
|
+
get telField() {
|
|
36
|
+
return telField;
|
|
37
|
+
},
|
|
38
|
+
get txtField() {
|
|
39
|
+
return txtField;
|
|
40
|
+
}
|
|
41
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
42
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
7
43
|
__name: "Accordion",
|
|
8
44
|
setup(__props) {
|
|
9
45
|
const state2 = reactive({
|
|
@@ -17,10 +53,10 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
17
53
|
};
|
|
18
54
|
}
|
|
19
55
|
});
|
|
20
|
-
const _hoisted_1$
|
|
56
|
+
const _hoisted_1$P = ["aria-expanded", "aria-controls"];
|
|
21
57
|
const _hoisted_2$v = { class: "accordion-label" };
|
|
22
|
-
const _hoisted_3$
|
|
23
|
-
const _sfc_main
|
|
58
|
+
const _hoisted_3$p = ["id", "aria-hidden"];
|
|
59
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
24
60
|
__name: "AccordionItem",
|
|
25
61
|
props: {
|
|
26
62
|
label: {},
|
|
@@ -94,7 +130,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
94
130
|
}, [
|
|
95
131
|
createVNode(unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
96
132
|
], 2)) : createCommentVNode("", true)
|
|
97
|
-
], 8, _hoisted_1$
|
|
133
|
+
], 8, _hoisted_1$P),
|
|
98
134
|
createVNode(Transition, { name: "expand" }, {
|
|
99
135
|
default: withCtx(() => [
|
|
100
136
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -104,7 +140,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
104
140
|
"aria-hidden": unref(isOpen) ? "false" : "true"
|
|
105
141
|
}, [
|
|
106
142
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
107
|
-
], 8, _hoisted_3$
|
|
143
|
+
], 8, _hoisted_3$p)) : createCommentVNode("", true)
|
|
108
144
|
]),
|
|
109
145
|
_: 3
|
|
110
146
|
})
|
|
@@ -119,9 +155,9 @@ const _export_sfc = (sfc, props2) => {
|
|
|
119
155
|
}
|
|
120
156
|
return target;
|
|
121
157
|
};
|
|
122
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
123
|
-
const _hoisted_1$
|
|
124
|
-
const _sfc_main
|
|
158
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-3a286d21"]]);
|
|
159
|
+
const _hoisted_1$O = { class: "relative" };
|
|
160
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
125
161
|
__name: "AddressSearch",
|
|
126
162
|
emits: ["addressSelected"],
|
|
127
163
|
setup(__props, { emit: __emit }) {
|
|
@@ -143,8 +179,8 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
143
179
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
144
180
|
}
|
|
145
181
|
return (_ctx, _cache) => {
|
|
146
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
147
|
-
createVNode(unref(_sfc_main$
|
|
182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
183
|
+
createVNode(unref(_sfc_main$R), {
|
|
148
184
|
ref_key: "suggestion",
|
|
149
185
|
ref: suggestion,
|
|
150
186
|
noAutoFocus: true,
|
|
@@ -179,11 +215,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
179
215
|
};
|
|
180
216
|
}
|
|
181
217
|
});
|
|
182
|
-
const _hoisted_1$
|
|
218
|
+
const _hoisted_1$N = {
|
|
183
219
|
key: 1,
|
|
184
220
|
class: "bgl_btn-flex"
|
|
185
221
|
};
|
|
186
|
-
const _sfc_main$
|
|
222
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
187
223
|
__name: "Btn",
|
|
188
224
|
props: {
|
|
189
225
|
disabled: { type: Boolean, default: false },
|
|
@@ -247,7 +283,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
247
283
|
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
248
284
|
key: 0,
|
|
249
285
|
size: "15"
|
|
250
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
286
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
251
287
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
|
|
252
288
|
key: 0,
|
|
253
289
|
icon: _ctx.icon
|
|
@@ -269,10 +305,10 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
269
305
|
};
|
|
270
306
|
}
|
|
271
307
|
});
|
|
272
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
273
|
-
const _hoisted_1$
|
|
308
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3c0720f5"]]);
|
|
309
|
+
const _hoisted_1$M = ["dismissable"];
|
|
274
310
|
const _hoisted_2$u = { class: "m-0" };
|
|
275
|
-
const _sfc_main$
|
|
311
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
276
312
|
__name: "Alert",
|
|
277
313
|
props: {
|
|
278
314
|
message: {},
|
|
@@ -308,13 +344,13 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
308
344
|
icon: "close",
|
|
309
345
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
310
346
|
})
|
|
311
|
-
], 10, _hoisted_1$
|
|
347
|
+
], 10, _hoisted_1$M)) : createCommentVNode("", true);
|
|
312
348
|
};
|
|
313
349
|
}
|
|
314
350
|
});
|
|
315
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
316
|
-
const _hoisted_1$
|
|
317
|
-
const _sfc_main$
|
|
351
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-57141c32"]]);
|
|
352
|
+
const _hoisted_1$L = ["src", "alt"];
|
|
353
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
318
354
|
__name: "Avatar",
|
|
319
355
|
props: {
|
|
320
356
|
fallback: {},
|
|
@@ -332,7 +368,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
332
368
|
key: 0,
|
|
333
369
|
src: _ctx.src,
|
|
334
370
|
alt: _ctx.name
|
|
335
|
-
}, null, 8, _hoisted_1$
|
|
371
|
+
}, null, 8, _hoisted_1$L)) : (openBlock(), createElementBlock("p", {
|
|
336
372
|
key: 1,
|
|
337
373
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
338
374
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -340,8 +376,8 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
340
376
|
};
|
|
341
377
|
}
|
|
342
378
|
});
|
|
343
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
344
|
-
const _sfc_main$
|
|
379
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-46ad8c25"]]);
|
|
380
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
345
381
|
__name: "Badge",
|
|
346
382
|
props: {
|
|
347
383
|
color: {},
|
|
@@ -370,10 +406,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
370
406
|
};
|
|
371
407
|
}
|
|
372
408
|
});
|
|
373
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
374
|
-
const _hoisted_1$
|
|
375
|
-
const _hoisted_2$t = ["
|
|
376
|
-
const
|
|
409
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-2f3caf93"]]);
|
|
410
|
+
const _hoisted_1$K = ["src"];
|
|
411
|
+
const _hoisted_2$t = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
412
|
+
const _hoisted_3$o = ["src", "type"];
|
|
413
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
377
414
|
__name: "BglVideo",
|
|
378
415
|
props: {
|
|
379
416
|
src: {},
|
|
@@ -381,16 +418,36 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
381
418
|
mute: { type: Boolean },
|
|
382
419
|
aspectRatio: {},
|
|
383
420
|
controls: { type: Boolean },
|
|
384
|
-
loop: { type: Boolean }
|
|
421
|
+
loop: { type: Boolean },
|
|
422
|
+
status: {},
|
|
423
|
+
playsinline: { type: Boolean }
|
|
385
424
|
},
|
|
386
|
-
setup(__props) {
|
|
425
|
+
setup(__props, { expose: __expose }) {
|
|
387
426
|
const props2 = __props;
|
|
427
|
+
const videoFormat = computed(() => {
|
|
428
|
+
var _a2, _b, _c;
|
|
429
|
+
return ((_c = (_b = (_a2 = props2.src) == null ? void 0 : _a2.split(".").pop()) == null ? void 0 : _b.split("?").shift()) == null ? void 0 : _c.toLowerCase()) || "mp4";
|
|
430
|
+
});
|
|
388
431
|
const aspectRatio = computed(
|
|
389
432
|
() => {
|
|
390
433
|
var _a2;
|
|
391
434
|
return ((_a2 = props2.aspectRatio) == null ? void 0 : _a2.replace(":", "/")) || "16/9";
|
|
392
435
|
}
|
|
393
436
|
);
|
|
437
|
+
const video = ref();
|
|
438
|
+
function play() {
|
|
439
|
+
var _a2;
|
|
440
|
+
(_a2 = video.value) == null ? void 0 : _a2.play();
|
|
441
|
+
}
|
|
442
|
+
function pause() {
|
|
443
|
+
var _a2;
|
|
444
|
+
(_a2 = video.value) == null ? void 0 : _a2.pause();
|
|
445
|
+
}
|
|
446
|
+
watch(() => props2.status, (status) => {
|
|
447
|
+
if (status === "play") play();
|
|
448
|
+
if (status === "pause") pause();
|
|
449
|
+
});
|
|
450
|
+
__expose({ play, pause });
|
|
394
451
|
const embedType = computed(() => {
|
|
395
452
|
const youtubeRegex2 = /youtube\.com|youtu\.be/;
|
|
396
453
|
if (youtubeRegex2.test(props2.src || "")) return "YouTube";
|
|
@@ -403,7 +460,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
403
460
|
if (embedType.value === "YouTube") {
|
|
404
461
|
const videoId = (_c = (_b = (_a2 = props2.src) == null ? void 0 : _a2.split(/v=|youtu\.be\//)[1]) == null ? void 0 : _b.split("&")) == null ? void 0 : _c[0];
|
|
405
462
|
const queryParams = new URLSearchParams({
|
|
406
|
-
autoplay: props2.autoplay ? "1" : "0"
|
|
463
|
+
autoplay: props2.autoplay ? "1" : "0",
|
|
464
|
+
controls: "0",
|
|
465
|
+
showinfo: "0",
|
|
466
|
+
modestbranding: "1"
|
|
407
467
|
});
|
|
408
468
|
return `https://www.youtube.com/embed/${videoId}?${queryParams}`;
|
|
409
469
|
}
|
|
@@ -427,26 +487,32 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
427
487
|
allowfullscreen: "",
|
|
428
488
|
title: "Video",
|
|
429
489
|
allow: "autoplay"
|
|
430
|
-
}, null, 12, _hoisted_1$
|
|
490
|
+
}, null, 12, _hoisted_1$K)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
431
491
|
key: 1,
|
|
432
|
-
|
|
492
|
+
ref_key: "video",
|
|
493
|
+
ref: video,
|
|
433
494
|
autoplay: _ctx.autoplay,
|
|
434
495
|
muted: _ctx.mute,
|
|
435
496
|
loop: _ctx.loop,
|
|
436
497
|
style: normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
437
498
|
controls: _ctx.controls,
|
|
438
|
-
playsinline:
|
|
439
|
-
},
|
|
499
|
+
playsinline: _ctx.playsinline
|
|
500
|
+
}, [
|
|
501
|
+
createElementVNode("source", {
|
|
502
|
+
src: _ctx.src,
|
|
503
|
+
type: `video/${videoFormat.value}`
|
|
504
|
+
}, null, 8, _hoisted_3$o)
|
|
505
|
+
], 12, _hoisted_2$t)) : createCommentVNode("", true)
|
|
440
506
|
], 2);
|
|
441
507
|
};
|
|
442
508
|
}
|
|
443
509
|
});
|
|
444
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
445
|
-
const _hoisted_1$
|
|
510
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-006552f6"]]);
|
|
511
|
+
const _hoisted_1$J = {
|
|
446
512
|
key: 0,
|
|
447
513
|
class: "card_label"
|
|
448
514
|
};
|
|
449
|
-
const _sfc_main$
|
|
515
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
450
516
|
__name: "Card",
|
|
451
517
|
props: {
|
|
452
518
|
label: {},
|
|
@@ -475,7 +541,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
475
541
|
}])
|
|
476
542
|
}, {
|
|
477
543
|
default: withCtx(() => [
|
|
478
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
544
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$J, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
479
545
|
renderSlot(_ctx.$slots, "default")
|
|
480
546
|
]),
|
|
481
547
|
_: 3
|
|
@@ -485,13 +551,13 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
485
551
|
};
|
|
486
552
|
}
|
|
487
553
|
});
|
|
488
|
-
const _hoisted_1$
|
|
554
|
+
const _hoisted_1$I = ["dir"];
|
|
489
555
|
const _hoisted_2$s = {
|
|
490
556
|
key: 0,
|
|
491
557
|
class: "blocker"
|
|
492
558
|
};
|
|
493
559
|
const _hoisted_3$n = { class: "Handlers" };
|
|
494
|
-
const _sfc_main$
|
|
560
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
495
561
|
__name: "Carousel",
|
|
496
562
|
props: {
|
|
497
563
|
autoHeight: { type: Boolean, default: false },
|
|
@@ -676,11 +742,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
676
742
|
}, void 0, true)
|
|
677
743
|
])
|
|
678
744
|
])
|
|
679
|
-
], 14, _hoisted_1$
|
|
745
|
+
], 14, _hoisted_1$I);
|
|
680
746
|
};
|
|
681
747
|
}
|
|
682
748
|
});
|
|
683
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
749
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-98e36ac5"]]);
|
|
684
750
|
function _isPlaceholder(a2) {
|
|
685
751
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
686
752
|
}
|
|
@@ -6624,13 +6690,13 @@ var script = defineComponent({
|
|
|
6624
6690
|
return { bar, canvas, direction, mouse };
|
|
6625
6691
|
}
|
|
6626
6692
|
});
|
|
6627
|
-
const _hoisted_1$
|
|
6693
|
+
const _hoisted_1$H = {
|
|
6628
6694
|
key: 0,
|
|
6629
6695
|
class: "layer-hover-bar"
|
|
6630
6696
|
};
|
|
6631
6697
|
const _hoisted_2$r = ["x", "y", "width", "height"];
|
|
6632
6698
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6633
|
-
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$
|
|
6699
|
+
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$H, [
|
|
6634
6700
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
6635
6701
|
x: _ctx.bar.x,
|
|
6636
6702
|
y: _ctx.bar.y,
|
|
@@ -6642,7 +6708,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6642
6708
|
script.render = render;
|
|
6643
6709
|
script.__file = "src/components/HoverBar/index.vue";
|
|
6644
6710
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
6645
|
-
const _sfc_main$
|
|
6711
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
6646
6712
|
__name: "Lineart",
|
|
6647
6713
|
props: {
|
|
6648
6714
|
data: {},
|
|
@@ -6782,7 +6848,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6782
6848
|
};
|
|
6783
6849
|
}
|
|
6784
6850
|
});
|
|
6785
|
-
const _hoisted_1$
|
|
6851
|
+
const _hoisted_1$G = {
|
|
6786
6852
|
key: 0,
|
|
6787
6853
|
class: "data"
|
|
6788
6854
|
};
|
|
@@ -6803,7 +6869,7 @@ const _hoisted_9$3 = {
|
|
|
6803
6869
|
key: 0,
|
|
6804
6870
|
class: "m-0"
|
|
6805
6871
|
};
|
|
6806
|
-
const _sfc_main$
|
|
6872
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
6807
6873
|
__name: "DataPreview",
|
|
6808
6874
|
props: /* @__PURE__ */ mergeModels({
|
|
6809
6875
|
showFields: {},
|
|
@@ -6839,7 +6905,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6839
6905
|
const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
|
|
6840
6906
|
return (_ctx, _cache) => {
|
|
6841
6907
|
var _a2;
|
|
6842
|
-
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6908
|
+
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
6843
6909
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
6844
6910
|
key: 0,
|
|
6845
6911
|
label: _ctx.title
|
|
@@ -6852,7 +6918,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6852
6918
|
createElementVNode("div", _hoisted_3$l, [
|
|
6853
6919
|
createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
|
|
6854
6920
|
]),
|
|
6855
|
-
createVNode(unref(_sfc_main$
|
|
6921
|
+
createVNode(unref(_sfc_main$O), {
|
|
6856
6922
|
modelValue: itemData.value,
|
|
6857
6923
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
|
|
6858
6924
|
label: "",
|
|
@@ -6881,7 +6947,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
6881
6947
|
};
|
|
6882
6948
|
}
|
|
6883
6949
|
});
|
|
6884
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6950
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-6c27f163"]]);
|
|
6885
6951
|
const sides = ["top", "right", "bottom", "left"];
|
|
6886
6952
|
const alignments = ["start", "end"];
|
|
6887
6953
|
const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -7485,9 +7551,10 @@ async function convertValueToCoords(state2, options) {
|
|
|
7485
7551
|
crossAxis: 0,
|
|
7486
7552
|
alignmentAxis: null
|
|
7487
7553
|
} : {
|
|
7488
|
-
mainAxis:
|
|
7489
|
-
crossAxis:
|
|
7490
|
-
alignmentAxis:
|
|
7554
|
+
mainAxis: 0,
|
|
7555
|
+
crossAxis: 0,
|
|
7556
|
+
alignmentAxis: null,
|
|
7557
|
+
...rawValue
|
|
7491
7558
|
};
|
|
7492
7559
|
if (alignment && typeof alignmentAxis === "number") {
|
|
7493
7560
|
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
@@ -7592,11 +7659,7 @@ const shift = function(options) {
|
|
|
7592
7659
|
...limitedCoords,
|
|
7593
7660
|
data: {
|
|
7594
7661
|
x: limitedCoords.x - x2,
|
|
7595
|
-
y: limitedCoords.y - y2
|
|
7596
|
-
enabled: {
|
|
7597
|
-
[mainAxis]: checkMainAxis,
|
|
7598
|
-
[crossAxis]: checkCrossAxis
|
|
7599
|
-
}
|
|
7662
|
+
y: limitedCoords.y - y2
|
|
7600
7663
|
}
|
|
7601
7664
|
};
|
|
7602
7665
|
}
|
|
@@ -7610,7 +7673,6 @@ const size = function(options) {
|
|
|
7610
7673
|
name: "size",
|
|
7611
7674
|
options,
|
|
7612
7675
|
async fn(state2) {
|
|
7613
|
-
var _state$middlewareData, _state$middlewareData2;
|
|
7614
7676
|
const {
|
|
7615
7677
|
placement,
|
|
7616
7678
|
rects,
|
|
@@ -7646,11 +7708,10 @@ const size = function(options) {
|
|
|
7646
7708
|
const noShift = !state2.middlewareData.shift;
|
|
7647
7709
|
let availableHeight = overflowAvailableHeight;
|
|
7648
7710
|
let availableWidth = overflowAvailableWidth;
|
|
7649
|
-
if (
|
|
7650
|
-
availableWidth = maximumClippingWidth;
|
|
7651
|
-
}
|
|
7652
|
-
|
|
7653
|
-
availableHeight = maximumClippingHeight;
|
|
7711
|
+
if (isYAxis) {
|
|
7712
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
7713
|
+
} else {
|
|
7714
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
7654
7715
|
}
|
|
7655
7716
|
if (noShift && !alignment) {
|
|
7656
7717
|
const xMin = max(overflow.left, 0);
|
|
@@ -9428,7 +9489,7 @@ const Gt$1 = {
|
|
|
9428
9489
|
install: Ct$1,
|
|
9429
9490
|
options: h
|
|
9430
9491
|
};
|
|
9431
|
-
const _sfc_main$
|
|
9492
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9432
9493
|
__name: "Dropdown",
|
|
9433
9494
|
props: /* @__PURE__ */ mergeModels({
|
|
9434
9495
|
value: {},
|
|
@@ -9499,7 +9560,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9499
9560
|
};
|
|
9500
9561
|
}
|
|
9501
9562
|
});
|
|
9502
|
-
const _sfc_main$
|
|
9563
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9503
9564
|
__name: "Flag",
|
|
9504
9565
|
props: {
|
|
9505
9566
|
country: {},
|
|
@@ -9529,7 +9590,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9529
9590
|
};
|
|
9530
9591
|
}
|
|
9531
9592
|
});
|
|
9532
|
-
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9593
|
+
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-f99f1900"]]);
|
|
9533
9594
|
const state$1 = reactive(/* @__PURE__ */ new Map());
|
|
9534
9595
|
function useTabs(group) {
|
|
9535
9596
|
if (!state$1.has(group)) {
|
|
@@ -9543,8 +9604,8 @@ function useTabs(group) {
|
|
|
9543
9604
|
});
|
|
9544
9605
|
return { currentTab };
|
|
9545
9606
|
}
|
|
9546
|
-
const _hoisted_1$
|
|
9547
|
-
const _sfc_main$
|
|
9607
|
+
const _hoisted_1$F = ["onClick"];
|
|
9608
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9548
9609
|
__name: "TabsNav",
|
|
9549
9610
|
props: {
|
|
9550
9611
|
title: {},
|
|
@@ -9623,14 +9684,14 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9623
9684
|
icon: tab.icon
|
|
9624
9685
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
9625
9686
|
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
9626
|
-
], 10, _hoisted_1$
|
|
9687
|
+
], 10, _hoisted_1$F);
|
|
9627
9688
|
}), 128))
|
|
9628
9689
|
], 2);
|
|
9629
9690
|
};
|
|
9630
9691
|
}
|
|
9631
9692
|
});
|
|
9632
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9633
|
-
const _sfc_main$
|
|
9693
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-90649f98"]]);
|
|
9694
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9634
9695
|
__name: "BglField",
|
|
9635
9696
|
props: {
|
|
9636
9697
|
field: {},
|
|
@@ -9652,7 +9713,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9652
9713
|
if (props2.field.$el === "check") return CheckInput;
|
|
9653
9714
|
if (props2.field.$el === "richtext") return RichText;
|
|
9654
9715
|
if (props2.field.$el === "file") return FileUpload;
|
|
9655
|
-
if (props2.field.$el === "date") return _sfc_main$
|
|
9716
|
+
if (props2.field.$el === "date") return _sfc_main$H;
|
|
9656
9717
|
if (props2.field.$el === "tabs") return TabsNav;
|
|
9657
9718
|
return props2.field.$el ?? "div";
|
|
9658
9719
|
});
|
|
@@ -9677,6 +9738,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9677
9738
|
return data2;
|
|
9678
9739
|
}
|
|
9679
9740
|
function getFieldData(obj, key) {
|
|
9741
|
+
if (typeof obj !== "object" || obj === null) return obj;
|
|
9680
9742
|
const keys4 = key.split(objPathRegex);
|
|
9681
9743
|
let result2 = obj;
|
|
9682
9744
|
for (const k2 of keys4) {
|
|
@@ -9763,7 +9825,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9763
9825
|
};
|
|
9764
9826
|
}
|
|
9765
9827
|
});
|
|
9766
|
-
const _sfc_main$
|
|
9828
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9767
9829
|
__name: "BglForm",
|
|
9768
9830
|
props: {
|
|
9769
9831
|
label: {},
|
|
@@ -9861,7 +9923,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9861
9923
|
label: _ctx.label
|
|
9862
9924
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9863
9925
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9864
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9926
|
+
return openBlock(), createBlock(unref(_sfc_main$O), {
|
|
9865
9927
|
key: field.id || `${i2}p`,
|
|
9866
9928
|
modelValue: unref(data2),
|
|
9867
9929
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9885,7 +9947,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9885
9947
|
label: _ctx.label
|
|
9886
9948
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9887
9949
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9888
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9950
|
+
return openBlock(), createBlock(unref(_sfc_main$O), {
|
|
9889
9951
|
key: field.id || `${i2}p`,
|
|
9890
9952
|
modelValue: unref(data2),
|
|
9891
9953
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9904,8 +9966,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
9904
9966
|
};
|
|
9905
9967
|
}
|
|
9906
9968
|
});
|
|
9907
|
-
const _hoisted_1$
|
|
9908
|
-
const _sfc_main$
|
|
9969
|
+
const _hoisted_1$E = { key: 0 };
|
|
9970
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
9909
9971
|
__name: "BglMultiStepForm",
|
|
9910
9972
|
props: /* @__PURE__ */ mergeModels({
|
|
9911
9973
|
bagelFormProps: { default: () => ({}) },
|
|
@@ -9972,8 +10034,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
9972
10034
|
mode: "out-in"
|
|
9973
10035
|
}, {
|
|
9974
10036
|
default: withCtx(() => [
|
|
9975
|
-
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
9976
|
-
createVNode(unref(_sfc_main$
|
|
10037
|
+
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
10038
|
+
createVNode(unref(_sfc_main$N), mergeProps({
|
|
9977
10039
|
ref_key: "formRef",
|
|
9978
10040
|
ref: formRef,
|
|
9979
10041
|
modelValue: formData.value,
|
|
@@ -10012,8 +10074,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
10012
10074
|
};
|
|
10013
10075
|
}
|
|
10014
10076
|
});
|
|
10015
|
-
const _hoisted_1$
|
|
10016
|
-
const _sfc_main$
|
|
10077
|
+
const _hoisted_1$D = { class: "primary-checkbox" };
|
|
10078
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
10017
10079
|
__name: "Checkbox",
|
|
10018
10080
|
props: {
|
|
10019
10081
|
"modelValue": { type: Boolean, ...{ default: false } },
|
|
@@ -10023,7 +10085,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10023
10085
|
setup(__props) {
|
|
10024
10086
|
const val = useModel(__props, "modelValue");
|
|
10025
10087
|
return (_ctx, _cache) => {
|
|
10026
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
10088
|
+
return openBlock(), createElementBlock("label", _hoisted_1$D, [
|
|
10027
10089
|
renderSlot(_ctx.$slots, "label", {}, void 0, true),
|
|
10028
10090
|
withDirectives(createElementVNode("input", {
|
|
10029
10091
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
|
|
@@ -10035,11 +10097,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
10035
10097
|
};
|
|
10036
10098
|
}
|
|
10037
10099
|
});
|
|
10038
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10039
|
-
const _hoisted_1$
|
|
10100
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-73f1d9ad"]]);
|
|
10101
|
+
const _hoisted_1$C = ["title"];
|
|
10040
10102
|
const _hoisted_2$p = ["id", "value", "required"];
|
|
10041
10103
|
const _hoisted_3$k = ["for"];
|
|
10042
|
-
const _sfc_main$
|
|
10104
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
10043
10105
|
__name: "CheckInput",
|
|
10044
10106
|
props: /* @__PURE__ */ mergeModels({
|
|
10045
10107
|
label: {},
|
|
@@ -10081,19 +10143,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
10081
10143
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
10082
10144
|
], true)
|
|
10083
10145
|
], 8, _hoisted_3$k)
|
|
10084
|
-
], 10, _hoisted_1$
|
|
10146
|
+
], 10, _hoisted_1$C);
|
|
10085
10147
|
};
|
|
10086
10148
|
}
|
|
10087
10149
|
});
|
|
10088
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10089
|
-
const _hoisted_1$
|
|
10150
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-03ed2982"]]);
|
|
10151
|
+
const _hoisted_1$B = {
|
|
10090
10152
|
key: 0,
|
|
10091
10153
|
class: "code-editor-wrap grid rounded p-1 overflow hm-300px"
|
|
10092
10154
|
};
|
|
10093
10155
|
const _hoisted_2$o = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
|
|
10094
10156
|
const _hoisted_3$j = ["innerHTML"];
|
|
10095
10157
|
const _hoisted_4$c = ["onKeydown"];
|
|
10096
|
-
const _sfc_main$
|
|
10158
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
10097
10159
|
__name: "Index",
|
|
10098
10160
|
props: {
|
|
10099
10161
|
language: {},
|
|
@@ -10173,7 +10235,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10173
10235
|
}
|
|
10174
10236
|
}, { immediate: true });
|
|
10175
10237
|
return (_ctx, _cache) => {
|
|
10176
|
-
return unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10238
|
+
return unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
10177
10239
|
createElementVNode("div", {
|
|
10178
10240
|
class: "relative block h-100",
|
|
10179
10241
|
style: normalizeStyle({ height: unref(height) })
|
|
@@ -10206,10 +10268,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
10206
10268
|
};
|
|
10207
10269
|
}
|
|
10208
10270
|
});
|
|
10209
|
-
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10210
|
-
const _hoisted_1$
|
|
10271
|
+
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-4f1dc18a"]]);
|
|
10272
|
+
const _hoisted_1$A = ["title"];
|
|
10211
10273
|
const _hoisted_2$n = ["id", "placeholder", "required"];
|
|
10212
|
-
const _sfc_main$
|
|
10274
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
10213
10275
|
__name: "ColorPicker",
|
|
10214
10276
|
props: {
|
|
10215
10277
|
label: {},
|
|
@@ -10251,7 +10313,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
10251
10313
|
[vModelText, inputVal.value]
|
|
10252
10314
|
])
|
|
10253
10315
|
])
|
|
10254
|
-
], 10, _hoisted_1$
|
|
10316
|
+
], 10, _hoisted_1$A)) : createCommentVNode("", true);
|
|
10255
10317
|
};
|
|
10256
10318
|
}
|
|
10257
10319
|
});
|
|
@@ -18809,9 +18871,9 @@ const eo = ({
|
|
|
18809
18871
|
Object.entries(go).forEach(([e, t]) => {
|
|
18810
18872
|
e !== "default" && (Hn[e] = t);
|
|
18811
18873
|
});
|
|
18812
|
-
const _hoisted_1$
|
|
18874
|
+
const _hoisted_1$z = ["title"];
|
|
18813
18875
|
const _hoisted_2$m = { key: 0 };
|
|
18814
|
-
const _sfc_main$
|
|
18876
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
18815
18877
|
__name: "DateInput",
|
|
18816
18878
|
props: {
|
|
18817
18879
|
required: { type: Boolean },
|
|
@@ -18869,11 +18931,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
18869
18931
|
"minutes-grid-increment": _ctx.minutesGridIncrement,
|
|
18870
18932
|
"start-time": { hours: 8, minutes: 0 }
|
|
18871
18933
|
}), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
|
|
18872
|
-
], 10, _hoisted_1$
|
|
18934
|
+
], 10, _hoisted_1$z);
|
|
18873
18935
|
};
|
|
18874
18936
|
}
|
|
18875
18937
|
});
|
|
18876
|
-
const _hoisted_1$
|
|
18938
|
+
const _hoisted_1$y = { class: "datetime-wrap" };
|
|
18877
18939
|
const _hoisted_2$l = { class: "date-wrap" };
|
|
18878
18940
|
const _hoisted_3$i = {
|
|
18879
18941
|
key: 0,
|
|
@@ -18881,7 +18943,7 @@ const _hoisted_3$i = {
|
|
|
18881
18943
|
};
|
|
18882
18944
|
const _hoisted_4$b = ["id", "name", "value"];
|
|
18883
18945
|
const _hoisted_5$b = ["for"];
|
|
18884
|
-
const _sfc_main$
|
|
18946
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
18885
18947
|
__name: "DatePicker",
|
|
18886
18948
|
props: {
|
|
18887
18949
|
label: {},
|
|
@@ -18909,7 +18971,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
18909
18971
|
return `${hour}:${minute}`;
|
|
18910
18972
|
});
|
|
18911
18973
|
return (_ctx, _cache) => {
|
|
18912
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18974
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
18913
18975
|
createElementVNode("div", _hoisted_2$l, [
|
|
18914
18976
|
createVNode(unref(Hn), mergeProps({
|
|
18915
18977
|
modelValue: selectedDate.value,
|
|
@@ -18950,8 +19012,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
18950
19012
|
};
|
|
18951
19013
|
}
|
|
18952
19014
|
});
|
|
18953
|
-
const _hoisted_1$
|
|
18954
|
-
const _sfc_main$
|
|
19015
|
+
const _hoisted_1$x = ["src", "alt", "width", "height"];
|
|
19016
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
18955
19017
|
__name: "Image",
|
|
18956
19018
|
props: {
|
|
18957
19019
|
src: {},
|
|
@@ -18985,10 +19047,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
18985
19047
|
}
|
|
18986
19048
|
}
|
|
18987
19049
|
try {
|
|
19050
|
+
await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
|
|
18988
19051
|
const response = await fetch(src);
|
|
18989
19052
|
const blob = await response.blob();
|
|
18990
|
-
const
|
|
18991
|
-
const convertedBlob = await heic2any({ blob });
|
|
19053
|
+
const convertedBlob = await window.heic2any({ blob });
|
|
18992
19054
|
imageSrc.value = URL.createObjectURL(convertedBlob);
|
|
18993
19055
|
if ("caches" in window) {
|
|
18994
19056
|
try {
|
|
@@ -19014,7 +19076,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
19014
19076
|
alt: _ctx.alt,
|
|
19015
19077
|
width: unref(normalizeDimension)(_ctx.width),
|
|
19016
19078
|
height: unref(normalizeDimension)(_ctx.height)
|
|
19017
|
-
}), null, 16, _hoisted_1$
|
|
19079
|
+
}), null, 16, _hoisted_1$x)) : (openBlock(), createBlock(unref(Skeleton), {
|
|
19018
19080
|
key: 1,
|
|
19019
19081
|
class: "img-web-kit",
|
|
19020
19082
|
width: unref(normalizeDimension)(_ctx.width),
|
|
@@ -19023,8 +19085,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
19023
19085
|
};
|
|
19024
19086
|
}
|
|
19025
19087
|
});
|
|
19026
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19027
|
-
const _hoisted_1$
|
|
19088
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-a96b25a8"]]);
|
|
19089
|
+
const _hoisted_1$w = { class: "bagel-input" };
|
|
19028
19090
|
const _hoisted_2$k = {
|
|
19029
19091
|
key: 0,
|
|
19030
19092
|
placeholder: "required",
|
|
@@ -19062,7 +19124,7 @@ const _hoisted_13$1 = {
|
|
|
19062
19124
|
class: "progress"
|
|
19063
19125
|
};
|
|
19064
19126
|
const _hoisted_14 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
19065
|
-
const _sfc_main$
|
|
19127
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
19066
19128
|
__name: "FileUpload",
|
|
19067
19129
|
props: /* @__PURE__ */ mergeModels({
|
|
19068
19130
|
label: {},
|
|
@@ -19236,10 +19298,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
19236
19298
|
return (_ctx, _cache) => {
|
|
19237
19299
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
19238
19300
|
const _directive_lightbox = resolveDirective("lightbox");
|
|
19239
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19301
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
19240
19302
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
19241
19303
|
_ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$k)) : createCommentVNode("", true),
|
|
19242
|
-
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
19304
|
+
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$V), {
|
|
19243
19305
|
key: 1,
|
|
19244
19306
|
outline: "",
|
|
19245
19307
|
class: "flex p-05 gap-1",
|
|
@@ -19484,11 +19546,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
19484
19546
|
};
|
|
19485
19547
|
}
|
|
19486
19548
|
});
|
|
19487
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19488
|
-
const _hoisted_1$
|
|
19549
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-6bfdaea2"]]);
|
|
19550
|
+
const _hoisted_1$v = ["title"];
|
|
19489
19551
|
const _hoisted_2$j = { key: 0 };
|
|
19490
19552
|
const _hoisted_3$g = ["value", "placeholder"];
|
|
19491
|
-
const _sfc_main$
|
|
19553
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
19492
19554
|
__name: "JSONInput",
|
|
19493
19555
|
props: {
|
|
19494
19556
|
description: { default: "" },
|
|
@@ -19520,13 +19582,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
19520
19582
|
placeholder: _ctx.placeholder,
|
|
19521
19583
|
onInput: handleInput
|
|
19522
19584
|
}, null, 42, _hoisted_3$g)
|
|
19523
|
-
], 10, _hoisted_1$
|
|
19585
|
+
], 10, _hoisted_1$v);
|
|
19524
19586
|
};
|
|
19525
19587
|
}
|
|
19526
19588
|
});
|
|
19527
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19528
|
-
const _hoisted_1$
|
|
19529
|
-
const _sfc_main$
|
|
19589
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
19590
|
+
const _hoisted_1$u = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
19591
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
19530
19592
|
__name: "OTP",
|
|
19531
19593
|
props: {
|
|
19532
19594
|
digitCount: {},
|
|
@@ -19624,14 +19686,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
19624
19686
|
oninput: "this.value = this.value.slice(0, 1);",
|
|
19625
19687
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
19626
19688
|
onPaste: ($event) => handlePaste($event, ind)
|
|
19627
|
-
}, null, 40, _hoisted_1$
|
|
19689
|
+
}, null, 40, _hoisted_1$u);
|
|
19628
19690
|
}), 128))
|
|
19629
19691
|
], 512);
|
|
19630
19692
|
};
|
|
19631
19693
|
}
|
|
19632
19694
|
});
|
|
19633
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19634
|
-
const _sfc_main$
|
|
19695
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-5c22c199"]]);
|
|
19696
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
19635
19697
|
__name: "PasswordInput",
|
|
19636
19698
|
props: /* @__PURE__ */ mergeModels({
|
|
19637
19699
|
id: {},
|
|
@@ -19694,7 +19756,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
19694
19756
|
};
|
|
19695
19757
|
}
|
|
19696
19758
|
});
|
|
19697
|
-
const _hoisted_1$
|
|
19759
|
+
const _hoisted_1$t = ["for"];
|
|
19698
19760
|
const _hoisted_2$i = ["id", "name", "value"];
|
|
19699
19761
|
const _hoisted_3$f = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|
|
19700
19762
|
const _hoisted_4$9 = ["src", "alt"];
|
|
@@ -19707,7 +19769,7 @@ const _hoisted_7$4 = {
|
|
|
19707
19769
|
key: 1,
|
|
19708
19770
|
class: "txt-gray txt-12 m-0"
|
|
19709
19771
|
};
|
|
19710
|
-
const _sfc_main$
|
|
19772
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
19711
19773
|
__name: "RadioGroup",
|
|
19712
19774
|
props: /* @__PURE__ */ mergeModels({
|
|
19713
19775
|
groupName: {},
|
|
@@ -19760,19 +19822,19 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
19760
19822
|
icon: "delete",
|
|
19761
19823
|
onClick: ($event) => _ctx.$emit("delete", opt)
|
|
19762
19824
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
19763
|
-
], 8, _hoisted_1$
|
|
19825
|
+
], 8, _hoisted_1$t);
|
|
19764
19826
|
}), 128))
|
|
19765
19827
|
]);
|
|
19766
19828
|
};
|
|
19767
19829
|
}
|
|
19768
19830
|
});
|
|
19769
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19770
|
-
const _hoisted_1$
|
|
19831
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-3e9e030f"]]);
|
|
19832
|
+
const _hoisted_1$s = { class: "bagel-input" };
|
|
19771
19833
|
const _hoisted_2$h = { class: "pb-025" };
|
|
19772
19834
|
const _hoisted_3$e = { class: "flex gap-05 flex-wrap" };
|
|
19773
19835
|
const _hoisted_4$8 = ["id", "name", "value", "checked"];
|
|
19774
19836
|
const _hoisted_5$8 = ["for"];
|
|
19775
|
-
const _sfc_main$
|
|
19837
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
19776
19838
|
__name: "RadioPillsInput",
|
|
19777
19839
|
props: {
|
|
19778
19840
|
options: {},
|
|
@@ -19813,7 +19875,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19813
19875
|
selectedValue.value = props2.modelValue;
|
|
19814
19876
|
});
|
|
19815
19877
|
return (_ctx, _cache) => {
|
|
19816
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19878
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
19817
19879
|
createElementVNode("label", _hoisted_2$h, toDisplayString(_ctx.label), 1),
|
|
19818
19880
|
createElementVNode("div", _hoisted_3$e, [
|
|
19819
19881
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option2, index2) => {
|
|
@@ -19839,11 +19901,11 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
19839
19901
|
};
|
|
19840
19902
|
}
|
|
19841
19903
|
});
|
|
19842
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19843
|
-
const _hoisted_1$
|
|
19904
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-cf892d71"]]);
|
|
19905
|
+
const _hoisted_1$r = { key: 0 };
|
|
19844
19906
|
const _hoisted_2$g = ["id", "disabled", "max", "min", "step", "required", "name"];
|
|
19845
19907
|
const _hoisted_3$d = { key: 1 };
|
|
19846
|
-
const _sfc_main$
|
|
19908
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
19847
19909
|
__name: "RangeInput",
|
|
19848
19910
|
props: /* @__PURE__ */ mergeModels({
|
|
19849
19911
|
min: {},
|
|
@@ -19887,7 +19949,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
19887
19949
|
return openBlock(), createElementBlock("div", {
|
|
19888
19950
|
class: normalizeClass(["flex gap-1 align-center range-slide", { disabled: _ctx.disabled }])
|
|
19889
19951
|
}, [
|
|
19890
|
-
_ctx.min !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_1$
|
|
19952
|
+
_ctx.min !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_1$r, toDisplayString(_ctx.min), 1)) : createCommentVNode("", true),
|
|
19891
19953
|
withDirectives(createElementVNode("input", {
|
|
19892
19954
|
id: _ctx.id,
|
|
19893
19955
|
ref_key: "range",
|
|
@@ -19909,7 +19971,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
19909
19971
|
};
|
|
19910
19972
|
}
|
|
19911
19973
|
});
|
|
19912
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19974
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-ded4d62d"]]);
|
|
19913
19975
|
const defaultToolbarConfig = [
|
|
19914
19976
|
"h2",
|
|
19915
19977
|
"h3",
|
|
@@ -19976,12 +20038,12 @@ const toolbarOptions = [
|
|
|
19976
20038
|
{ name: "separator" },
|
|
19977
20039
|
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
19978
20040
|
];
|
|
19979
|
-
const _hoisted_1$
|
|
20041
|
+
const _hoisted_1$q = { class: "grid grid-wrap p-05" };
|
|
19980
20042
|
const _hoisted_2$f = ["onMousemove", "onClick"];
|
|
19981
20043
|
const _hoisted_3$c = { class: "txt-center txt-12 color-gray" };
|
|
19982
20044
|
const fb = 1;
|
|
19983
20045
|
const base = 5;
|
|
19984
|
-
const _sfc_main$
|
|
20046
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
19985
20047
|
__name: "gridBox",
|
|
19986
20048
|
emits: ["select"],
|
|
19987
20049
|
setup(__props, { emit: __emit }) {
|
|
@@ -19997,7 +20059,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
19997
20059
|
return hoveredCol.value > base - 1 ? enlarge : base;
|
|
19998
20060
|
});
|
|
19999
20061
|
return (_ctx, _cache) => {
|
|
20000
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20062
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
20001
20063
|
(openBlock(true), createElementBlock(Fragment, null, renderList(rowSize.value, (row) => {
|
|
20002
20064
|
return openBlock(), createElementBlock("div", {
|
|
20003
20065
|
key: `row-${row}`,
|
|
@@ -20033,12 +20095,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
20033
20095
|
};
|
|
20034
20096
|
}
|
|
20035
20097
|
});
|
|
20036
|
-
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20037
|
-
const _hoisted_1$
|
|
20098
|
+
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-4548b70f"]]);
|
|
20099
|
+
const _hoisted_1$p = {
|
|
20038
20100
|
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
20039
20101
|
role: "toolbar"
|
|
20040
20102
|
};
|
|
20041
|
-
const _sfc_main$
|
|
20103
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
20042
20104
|
__name: "Toolbar",
|
|
20043
20105
|
props: {
|
|
20044
20106
|
config: { default: defaultToolbarConfig },
|
|
@@ -20053,10 +20115,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
20053
20115
|
}
|
|
20054
20116
|
return (_ctx, _cache) => {
|
|
20055
20117
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
20056
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20118
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
20057
20119
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
20058
20120
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
20059
|
-
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
20121
|
+
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$R), {
|
|
20060
20122
|
key: 0,
|
|
20061
20123
|
placement: "bottom-start",
|
|
20062
20124
|
thin: "",
|
|
@@ -20095,7 +20157,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
20095
20157
|
};
|
|
20096
20158
|
}
|
|
20097
20159
|
});
|
|
20098
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20160
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-9688758a"]]);
|
|
20099
20161
|
function formatting(state2) {
|
|
20100
20162
|
const { doc, range: range2, selection } = state2;
|
|
20101
20163
|
function setRangeAndSelect(node, start, end) {
|
|
@@ -20359,6 +20421,7 @@ function formatting(state2) {
|
|
|
20359
20421
|
};
|
|
20360
20422
|
return { text, block, list, clear };
|
|
20361
20423
|
}
|
|
20424
|
+
const { frmRow: frmRow$1, numField: numField$1 } = bagelFormUtils;
|
|
20362
20425
|
function insertImage(modal, state2) {
|
|
20363
20426
|
const { range: range2, doc } = state2;
|
|
20364
20427
|
if (!range2 || !doc) return;
|
|
@@ -20366,15 +20429,31 @@ function insertImage(modal, state2) {
|
|
|
20366
20429
|
title: "Upload Image",
|
|
20367
20430
|
schema: [
|
|
20368
20431
|
{ id: "src", $el: "file", attrs: { bindkey: "url" } },
|
|
20369
|
-
{ id: "alt", $el: "text", label: "Alt Text" }
|
|
20432
|
+
{ id: "alt", $el: "text", label: "Alt Text" },
|
|
20433
|
+
frmRow$1(
|
|
20434
|
+
numField$1("width", "Width", { min: 1 }),
|
|
20435
|
+
numField$1("height", "Height", { min: 1 })
|
|
20436
|
+
),
|
|
20437
|
+
{ id: "figcaption", $el: "check", label: "Show Caption" }
|
|
20370
20438
|
],
|
|
20371
20439
|
onSubmit: (data2) => {
|
|
20372
20440
|
if (data2.src) {
|
|
20373
20441
|
const img = doc.createElement("img");
|
|
20374
|
-
img
|
|
20375
|
-
|
|
20442
|
+
Object.assign(img, {
|
|
20443
|
+
src: data2.src,
|
|
20444
|
+
alt: data2.alt || "",
|
|
20445
|
+
width: data2.width || void 0,
|
|
20446
|
+
height: data2.height || void 0
|
|
20447
|
+
});
|
|
20448
|
+
const node = data2.figcaption ? (() => {
|
|
20449
|
+
const figcaption = doc.createElement("figcaption");
|
|
20450
|
+
figcaption.textContent = data2.alt;
|
|
20451
|
+
const figure = doc.createElement("figure");
|
|
20452
|
+
figure.append(img, figcaption);
|
|
20453
|
+
return figure;
|
|
20454
|
+
})() : img;
|
|
20376
20455
|
range2.collapse(false);
|
|
20377
|
-
range2.insertNode(
|
|
20456
|
+
range2.insertNode(node);
|
|
20378
20457
|
}
|
|
20379
20458
|
}
|
|
20380
20459
|
});
|
|
@@ -20713,8 +20792,8 @@ function useEditorKeyboard(doc, handleToolbarAction) {
|
|
|
20713
20792
|
}
|
|
20714
20793
|
});
|
|
20715
20794
|
}
|
|
20716
|
-
const _hoisted_1$
|
|
20717
|
-
const _sfc_main$
|
|
20795
|
+
const _hoisted_1$o = { class: "content-area radius-05" };
|
|
20796
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
20718
20797
|
__name: "index",
|
|
20719
20798
|
props: {
|
|
20720
20799
|
modelValue: {},
|
|
@@ -20770,7 +20849,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
20770
20849
|
createElementVNode("div", {
|
|
20771
20850
|
class: normalizeClass(["editor-container", { "split-view": (_a2 = unref(editor)) == null ? void 0 : _a2.state.isSplitView }])
|
|
20772
20851
|
}, [
|
|
20773
|
-
createElementVNode("div", _hoisted_1$
|
|
20852
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
20774
20853
|
createElementVNode("iframe", {
|
|
20775
20854
|
id: "rich-text-iframe",
|
|
20776
20855
|
ref_key: "iframe",
|
|
@@ -20794,8 +20873,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
20794
20873
|
};
|
|
20795
20874
|
}
|
|
20796
20875
|
});
|
|
20797
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20798
|
-
const _hoisted_1$
|
|
20876
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-e274dd3b"]]);
|
|
20877
|
+
const _hoisted_1$n = { class: "flex gap-05" };
|
|
20799
20878
|
const _hoisted_2$e = ["disabled"];
|
|
20800
20879
|
const _hoisted_3$b = { key: 1 };
|
|
20801
20880
|
const _hoisted_4$7 = {
|
|
@@ -20805,11 +20884,11 @@ const _hoisted_4$7 = {
|
|
|
20805
20884
|
const _hoisted_5$7 = ["value"];
|
|
20806
20885
|
const _hoisted_6$6 = ["aria-selected", "onClick", "onKeydown"];
|
|
20807
20886
|
const _hoisted_7$3 = { class: "block" };
|
|
20808
|
-
const _sfc_main$
|
|
20887
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
20809
20888
|
__name: "SelectInput",
|
|
20810
20889
|
props: {
|
|
20811
20890
|
options: {},
|
|
20812
|
-
placeholder: {},
|
|
20891
|
+
placeholder: { default: "Select" },
|
|
20813
20892
|
disabled: { type: Boolean },
|
|
20814
20893
|
modelValue: {},
|
|
20815
20894
|
searchable: { type: Boolean },
|
|
@@ -20821,14 +20900,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
20821
20900
|
hideLabel: { type: Boolean },
|
|
20822
20901
|
defaultValue: {},
|
|
20823
20902
|
clearable: { type: Boolean },
|
|
20824
|
-
searchPlaceholder: {},
|
|
20825
|
-
onSearch: {
|
|
20903
|
+
searchPlaceholder: { default: "Search" },
|
|
20904
|
+
onSearch: {}
|
|
20826
20905
|
},
|
|
20827
20906
|
emits: ["update:modelValue"],
|
|
20828
20907
|
setup(__props, { emit: __emit }) {
|
|
20829
20908
|
const props2 = __props;
|
|
20830
20909
|
const emit2 = __emit;
|
|
20831
|
-
const searchPlaceholder = computed(() => props2.searchPlaceholder
|
|
20910
|
+
const searchPlaceholder = computed(() => props2.searchPlaceholder);
|
|
20832
20911
|
const searchInput = ref();
|
|
20833
20912
|
let selectedItems = ref([]);
|
|
20834
20913
|
const selectedItemCount = computed(() => selectedItems.value.length ?? 0);
|
|
@@ -20837,7 +20916,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
20837
20916
|
let selected = ref(false);
|
|
20838
20917
|
let open = ref(false);
|
|
20839
20918
|
const selectedLabel = computed(() => {
|
|
20840
|
-
if (selectedItemCount.value === 0) return props2.placeholder
|
|
20919
|
+
if (selectedItemCount.value === 0) return props2.placeholder;
|
|
20841
20920
|
if (selectedItemCount.value > 4) {
|
|
20842
20921
|
const str = selectedItems.value.slice(0, 4).map((item) => getLabel(item)).join(", ");
|
|
20843
20922
|
return `${str}... +${selectedItemCount.value - 4}`;
|
|
@@ -20979,7 +21058,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
20979
21058
|
}
|
|
20980
21059
|
});
|
|
20981
21060
|
return (_ctx, _cache) => {
|
|
20982
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
21061
|
+
return openBlock(), createBlock(unref(_sfc_main$R), {
|
|
20983
21062
|
ref_key: "dropdown",
|
|
20984
21063
|
ref: dropdown,
|
|
20985
21064
|
shown: unref(open),
|
|
@@ -20991,7 +21070,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
20991
21070
|
trigger: withCtx(() => [
|
|
20992
21071
|
createElementVNode("label", null, [
|
|
20993
21072
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
20994
|
-
createElementVNode("div", _hoisted_1$
|
|
21073
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
20995
21074
|
_ctx.searchable && unref(open) ? (openBlock(), createBlock(unref(TextInput), {
|
|
20996
21075
|
key: 0,
|
|
20997
21076
|
ref_key: "searchInput",
|
|
@@ -21058,7 +21137,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
21058
21137
|
height: "25px",
|
|
21059
21138
|
class: "mx-1 my-1"
|
|
21060
21139
|
})) : createCommentVNode("", true),
|
|
21061
|
-
createVNode(unref(_sfc_main$
|
|
21140
|
+
createVNode(unref(_sfc_main$V), {
|
|
21062
21141
|
class: "p-05",
|
|
21063
21142
|
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
21064
21143
|
}, {
|
|
@@ -21109,7 +21188,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
21109
21188
|
};
|
|
21110
21189
|
}
|
|
21111
21190
|
});
|
|
21112
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21191
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-9574c8a2"]]);
|
|
21113
21192
|
/*!
|
|
21114
21193
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
21115
21194
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -21706,7 +21785,7 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
21706
21785
|
return svg.outerHTML;
|
|
21707
21786
|
}
|
|
21708
21787
|
}
|
|
21709
|
-
const _hoisted_1$
|
|
21788
|
+
const _hoisted_1$m = ["disabled"];
|
|
21710
21789
|
const _hoisted_2$d = {
|
|
21711
21790
|
key: 1,
|
|
21712
21791
|
placeholder: "required",
|
|
@@ -21714,7 +21793,7 @@ const _hoisted_2$d = {
|
|
|
21714
21793
|
required: "",
|
|
21715
21794
|
class: "pixel"
|
|
21716
21795
|
};
|
|
21717
|
-
const _sfc_main$
|
|
21796
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
21718
21797
|
__name: "SignaturePad",
|
|
21719
21798
|
props: /* @__PURE__ */ mergeModels({
|
|
21720
21799
|
sigOption: {},
|
|
@@ -21867,7 +21946,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
21867
21946
|
ref: vCanvas,
|
|
21868
21947
|
class: "canvas",
|
|
21869
21948
|
disabled: _ctx.disabled
|
|
21870
|
-
}, null, 8, _hoisted_1$
|
|
21949
|
+
}, null, 8, _hoisted_1$m),
|
|
21871
21950
|
_ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$d)) : createCommentVNode("", true)
|
|
21872
21951
|
], 34);
|
|
21873
21952
|
};
|
|
@@ -24352,13 +24431,13 @@ const VueDraggableNext = defineComponent({
|
|
|
24352
24431
|
}
|
|
24353
24432
|
}
|
|
24354
24433
|
});
|
|
24355
|
-
const _hoisted_1$
|
|
24434
|
+
const _hoisted_1$l = ["title"];
|
|
24356
24435
|
const _hoisted_2$c = { class: "bagel-input" };
|
|
24357
24436
|
const _hoisted_3$a = { class: "table-side-scroll" };
|
|
24358
24437
|
const _hoisted_4$6 = { class: "table-header" };
|
|
24359
24438
|
const _hoisted_5$6 = { class: "table-reorder" };
|
|
24360
24439
|
const _hoisted_6$5 = { class: "table-action" };
|
|
24361
|
-
const _sfc_main$
|
|
24440
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
24362
24441
|
__name: "TableField",
|
|
24363
24442
|
props: {
|
|
24364
24443
|
description: { default: "" },
|
|
@@ -24498,11 +24577,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
24498
24577
|
])),
|
|
24499
24578
|
_: 1
|
|
24500
24579
|
})
|
|
24501
|
-
], 8, _hoisted_1$
|
|
24580
|
+
], 8, _hoisted_1$l);
|
|
24502
24581
|
};
|
|
24503
24582
|
}
|
|
24504
24583
|
});
|
|
24505
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24584
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-a65c658c"]]);
|
|
24506
24585
|
function bind(fn2, thisArg) {
|
|
24507
24586
|
return function wrap() {
|
|
24508
24587
|
return fn2.apply(thisArg, arguments);
|
|
@@ -28949,13 +29028,13 @@ function parsePhoneNumber$1() {
|
|
|
28949
29028
|
function parsePhoneNumber() {
|
|
28950
29029
|
return withMetadataArgument(parsePhoneNumber$1, arguments);
|
|
28951
29030
|
}
|
|
28952
|
-
const _hoisted_1$
|
|
29031
|
+
const _hoisted_1$k = ["aria-expanded"];
|
|
28953
29032
|
const _hoisted_2$b = { class: "p-075 tel-countryp-dropdown" };
|
|
28954
29033
|
const _hoisted_3$9 = ["aria-selected", "onClick", "onMousemove"];
|
|
28955
29034
|
const _hoisted_4$5 = { class: "tel-country" };
|
|
28956
29035
|
const _hoisted_5$5 = { key: 1 };
|
|
28957
29036
|
const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
28958
|
-
const _sfc_main$
|
|
29037
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
28959
29038
|
__name: "TelInput",
|
|
28960
29039
|
props: /* @__PURE__ */ mergeModels({
|
|
28961
29040
|
label: {},
|
|
@@ -29216,7 +29295,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
29216
29295
|
withKeys(reset, ["tab"])
|
|
29217
29296
|
]
|
|
29218
29297
|
}, [
|
|
29219
|
-
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$
|
|
29298
|
+
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$R), {
|
|
29220
29299
|
key: 0,
|
|
29221
29300
|
ref_key: "phoneDropdown",
|
|
29222
29301
|
ref: phoneDropdown,
|
|
@@ -29303,19 +29382,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
29303
29382
|
}, null, 44, _hoisted_6$4), [
|
|
29304
29383
|
[vModelText, phone.value]
|
|
29305
29384
|
])
|
|
29306
|
-
], 40, _hoisted_1$
|
|
29385
|
+
], 40, _hoisted_1$k)
|
|
29307
29386
|
])
|
|
29308
29387
|
], 2);
|
|
29309
29388
|
};
|
|
29310
29389
|
}
|
|
29311
29390
|
});
|
|
29312
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29313
|
-
const _hoisted_1$
|
|
29391
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-627af458"]]);
|
|
29392
|
+
const _hoisted_1$j = ["title"];
|
|
29314
29393
|
const _hoisted_2$a = ["for"];
|
|
29315
29394
|
const _hoisted_3$8 = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
29316
29395
|
const _hoisted_4$4 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
29317
29396
|
const _hoisted_5$4 = { key: 2 };
|
|
29318
|
-
const _sfc_main$
|
|
29397
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
29319
29398
|
__name: "TextInput",
|
|
29320
29399
|
props: {
|
|
29321
29400
|
id: {},
|
|
@@ -29452,15 +29531,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
29452
29531
|
icon: _ctx.icon
|
|
29453
29532
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
29454
29533
|
], 8, _hoisted_2$a)
|
|
29455
|
-
], 10, _hoisted_1$
|
|
29534
|
+
], 10, _hoisted_1$j);
|
|
29456
29535
|
};
|
|
29457
29536
|
}
|
|
29458
29537
|
});
|
|
29459
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29460
|
-
const _hoisted_1$
|
|
29538
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-0e10a3b5"]]);
|
|
29539
|
+
const _hoisted_1$i = ["title"];
|
|
29461
29540
|
const _hoisted_2$9 = ["id", "required"];
|
|
29462
29541
|
const _hoisted_3$7 = ["for"];
|
|
29463
|
-
const _sfc_main$
|
|
29542
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
29464
29543
|
__name: "ToggleInput",
|
|
29465
29544
|
props: /* @__PURE__ */ mergeModels({
|
|
29466
29545
|
label: {},
|
|
@@ -29504,11 +29583,75 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
29504
29583
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
29505
29584
|
], true)
|
|
29506
29585
|
], 8, _hoisted_3$7)
|
|
29507
|
-
], 10, _hoisted_1$
|
|
29586
|
+
], 10, _hoisted_1$i);
|
|
29587
|
+
};
|
|
29588
|
+
}
|
|
29589
|
+
});
|
|
29590
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-486451e5"]]);
|
|
29591
|
+
const _hoisted_1$h = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
|
|
29592
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
29593
|
+
__name: "IframeVue",
|
|
29594
|
+
props: {
|
|
29595
|
+
src: {},
|
|
29596
|
+
title: {},
|
|
29597
|
+
height: {},
|
|
29598
|
+
width: {},
|
|
29599
|
+
name: {},
|
|
29600
|
+
sandbox: {},
|
|
29601
|
+
allow: {},
|
|
29602
|
+
allowfullscreen: { type: Boolean },
|
|
29603
|
+
loading: {},
|
|
29604
|
+
referrerpolicy: {},
|
|
29605
|
+
marginwidth: {},
|
|
29606
|
+
marginheight: {},
|
|
29607
|
+
scrolling: {},
|
|
29608
|
+
csp: {},
|
|
29609
|
+
srcset: {}
|
|
29610
|
+
},
|
|
29611
|
+
emits: ["message", "load"],
|
|
29612
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
29613
|
+
const emit2 = __emit;
|
|
29614
|
+
const iframe = ref();
|
|
29615
|
+
function handleMessage(event) {
|
|
29616
|
+
emit2("message", event.data);
|
|
29617
|
+
}
|
|
29618
|
+
function handleMessageWrapper(event) {
|
|
29619
|
+
var _a2;
|
|
29620
|
+
if (event.source === ((_a2 = iframe.value) == null ? void 0 : _a2.contentWindow)) {
|
|
29621
|
+
handleMessage(event);
|
|
29622
|
+
}
|
|
29623
|
+
}
|
|
29624
|
+
onMounted(() => {
|
|
29625
|
+
window.addEventListener("message", handleMessageWrapper);
|
|
29626
|
+
});
|
|
29627
|
+
onBeforeUnmount(() => {
|
|
29628
|
+
window.removeEventListener("message", handleMessageWrapper);
|
|
29629
|
+
});
|
|
29630
|
+
const contentWindow = () => {
|
|
29631
|
+
var _a2;
|
|
29632
|
+
return (_a2 = iframe.value) == null ? void 0 : _a2.contentWindow;
|
|
29633
|
+
};
|
|
29634
|
+
__expose({ contentWindow });
|
|
29635
|
+
return (_ctx, _cache) => {
|
|
29636
|
+
return openBlock(), createElementBlock("iframe", {
|
|
29637
|
+
ref_key: "iframe",
|
|
29638
|
+
ref: iframe,
|
|
29639
|
+
src: _ctx.src,
|
|
29640
|
+
title: _ctx.title,
|
|
29641
|
+
frameborder: "none",
|
|
29642
|
+
width: _ctx.width,
|
|
29643
|
+
height: _ctx.height,
|
|
29644
|
+
allowpaymentrequest: "true",
|
|
29645
|
+
marginwidth: _ctx.marginwidth,
|
|
29646
|
+
marginheight: _ctx.marginheight,
|
|
29647
|
+
csp: _ctx.csp,
|
|
29648
|
+
scrolling: _ctx.scrolling,
|
|
29649
|
+
srcset: _ctx.srcset,
|
|
29650
|
+
onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
|
|
29651
|
+
}, null, 40, _hoisted_1$h);
|
|
29508
29652
|
};
|
|
29509
29653
|
}
|
|
29510
29654
|
});
|
|
29511
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-486451e5"]]);
|
|
29512
29655
|
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1" };
|
|
29513
29656
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
29514
29657
|
__name: "BottomMenu",
|
|
@@ -29517,7 +29660,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
29517
29660
|
},
|
|
29518
29661
|
setup(__props) {
|
|
29519
29662
|
return (_ctx, _cache) => {
|
|
29520
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
29663
|
+
return openBlock(), createBlock(unref(_sfc_main$V), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
|
|
29521
29664
|
default: withCtx(() => [
|
|
29522
29665
|
renderSlot(_ctx.$slots, "brand", {}, void 0, true),
|
|
29523
29666
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
|
|
@@ -29618,7 +29761,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29618
29761
|
icon: "keyboard_arrow_right",
|
|
29619
29762
|
onClick: toggleMenu
|
|
29620
29763
|
}),
|
|
29621
|
-
createVNode(unref(_sfc_main$
|
|
29764
|
+
createVNode(unref(_sfc_main$V), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
|
|
29622
29765
|
default: withCtx(() => [
|
|
29623
29766
|
!unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
29624
29767
|
unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
@@ -29647,8 +29790,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29647
29790
|
_directive_tooltip,
|
|
29648
29791
|
{
|
|
29649
29792
|
content: nav.label,
|
|
29650
|
-
disabled: _ctx.open
|
|
29651
|
-
class: ["nav-tooltip"]
|
|
29793
|
+
disabled: _ctx.open
|
|
29652
29794
|
},
|
|
29653
29795
|
void 0,
|
|
29654
29796
|
{ right: true }
|
|
@@ -29664,7 +29806,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29664
29806
|
};
|
|
29665
29807
|
}
|
|
29666
29808
|
});
|
|
29667
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
29809
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0cd6a0fb"]]);
|
|
29668
29810
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
29669
29811
|
__name: "Skeleton",
|
|
29670
29812
|
props: {
|
|
@@ -30143,7 +30285,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
30143
30285
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
30144
30286
|
onKeydown: withKeys(closeModal, ["esc"])
|
|
30145
30287
|
}, [
|
|
30146
|
-
createVNode(unref(_sfc_main$
|
|
30288
|
+
createVNode(unref(_sfc_main$V), {
|
|
30147
30289
|
class: "modal",
|
|
30148
30290
|
style: normalizeStyle({ ...maxWidth.value }),
|
|
30149
30291
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -30320,7 +30462,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30320
30462
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
30321
30463
|
}, createSlots({
|
|
30322
30464
|
default: withCtx(() => [
|
|
30323
|
-
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$
|
|
30465
|
+
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$N), {
|
|
30324
30466
|
key: 0,
|
|
30325
30467
|
ref_key: "form",
|
|
30326
30468
|
ref: form,
|
|
@@ -30521,8 +30663,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
30521
30663
|
},
|
|
30522
30664
|
setup(__props) {
|
|
30523
30665
|
useCssVars((_ctx) => ({
|
|
30524
|
-
"
|
|
30525
|
-
"
|
|
30666
|
+
"33699ebd": computedBackgroundColor.value,
|
|
30667
|
+
"bd23d150": cumputedTextColor.value
|
|
30526
30668
|
}));
|
|
30527
30669
|
const props2 = __props;
|
|
30528
30670
|
const slots = useSlots();
|
|
@@ -30584,6 +30726,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
30584
30726
|
_ctx.btn ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
30585
30727
|
createVNode(unref(Btn), mergeProps({
|
|
30586
30728
|
class: "bgl_pill-btn",
|
|
30729
|
+
round: "",
|
|
30587
30730
|
thin: ""
|
|
30588
30731
|
}, _ctx.btn), null, 16)
|
|
30589
30732
|
])) : createCommentVNode("", true)
|
|
@@ -30604,6 +30747,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
30604
30747
|
_ctx.btnEnd ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
30605
30748
|
createVNode(unref(Btn), mergeProps({
|
|
30606
30749
|
class: "bgl_pill-btn",
|
|
30750
|
+
round: "",
|
|
30607
30751
|
thin: ""
|
|
30608
30752
|
}, _ctx.btnEnd), null, 16)
|
|
30609
30753
|
])) : createCommentVNode("", true)
|
|
@@ -30613,7 +30757,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
30613
30757
|
};
|
|
30614
30758
|
}
|
|
30615
30759
|
});
|
|
30616
|
-
const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
30760
|
+
const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4249cc3e"]]);
|
|
30617
30761
|
const _sfc_main$5 = {};
|
|
30618
30762
|
function _sfc_render$1(_ctx, _cache) {
|
|
30619
30763
|
const _component_router_view = resolveComponent("router-view");
|
|
@@ -31234,25 +31378,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31234
31378
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
31235
31379
|
setup(__props, { emit: __emit }) {
|
|
31236
31380
|
useCssVars((_ctx) => ({
|
|
31237
|
-
"
|
|
31381
|
+
"0469f9a7": unref(computedItemHeight)
|
|
31238
31382
|
}));
|
|
31239
31383
|
const emit2 = __emit;
|
|
31384
|
+
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
31240
31385
|
const slots = useSlots();
|
|
31241
31386
|
const loading = useModel(__props, "loading");
|
|
31242
31387
|
const itemHeight = useModel(__props, "itemHeight");
|
|
31243
|
-
const computedItemHeight = computed(() => `${itemHeight.value}px`);
|
|
31244
|
-
let sortField = ref("");
|
|
31245
|
-
let sortDirection = ref("ASC");
|
|
31246
31388
|
const selectedItems = useModel(
|
|
31247
31389
|
__props,
|
|
31248
31390
|
"selectedItems",
|
|
31249
31391
|
{
|
|
31250
|
-
set: (value) =>
|
|
31251
|
-
setTimeout(updateAllSelectorState, 0);
|
|
31252
|
-
return value;
|
|
31253
|
-
}
|
|
31392
|
+
set: (value) => value
|
|
31254
31393
|
}
|
|
31255
31394
|
);
|
|
31395
|
+
let sortField = ref("");
|
|
31396
|
+
let sortDirection = ref("ASC");
|
|
31397
|
+
const allSelectorEl = ref();
|
|
31398
|
+
const lastItemEl = ref();
|
|
31399
|
+
const computedSelectedItems = computed(() => selectedItems.value);
|
|
31400
|
+
const computedItemHeight = computed(() => `${itemHeight.value}px`);
|
|
31256
31401
|
const isSelectable = computed(() => __props.selectable === true && Array.isArray(selectedItems.value));
|
|
31257
31402
|
const computedSortField = computed(() => `_transformed_${sortField.value}`);
|
|
31258
31403
|
const computedSchema = computed(() => useBglSchema({
|
|
@@ -31260,21 +31405,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31260
31405
|
showFields: __props.showFields,
|
|
31261
31406
|
data: __props.data
|
|
31262
31407
|
}));
|
|
31263
|
-
function transform(rowData) {
|
|
31264
|
-
var _a2;
|
|
31265
|
-
const obj = { ...rowData };
|
|
31266
|
-
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
31267
|
-
for (const field of schemaFields) {
|
|
31268
|
-
const fieldData = rowData[`${field.id}`];
|
|
31269
|
-
const newFieldVal = (_a2 = field.transform) == null ? void 0 : _a2.call(field, fieldData, rowData);
|
|
31270
|
-
Object.assign(obj, {
|
|
31271
|
-
[`${field.id}`]: fieldData,
|
|
31272
|
-
[`_transformed_${field.id}`]: newFieldVal
|
|
31273
|
-
});
|
|
31274
|
-
}
|
|
31275
|
-
return obj;
|
|
31276
|
-
}
|
|
31277
|
-
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
31278
31408
|
const computedData = computed(() => {
|
|
31279
31409
|
if (!sortField.value || __props.useServerSort === true) return __props.data.map(transform);
|
|
31280
31410
|
return __props.data.map(transform).sort(
|
|
@@ -31300,6 +31430,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31300
31430
|
}
|
|
31301
31431
|
);
|
|
31302
31432
|
});
|
|
31433
|
+
function transform(rowData) {
|
|
31434
|
+
var _a2;
|
|
31435
|
+
const obj = { ...rowData };
|
|
31436
|
+
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
31437
|
+
for (const field of schemaFields) {
|
|
31438
|
+
const fieldData = rowData[`${field.id}`];
|
|
31439
|
+
const newFieldVal = (_a2 = field.transform) == null ? void 0 : _a2.call(field, fieldData, rowData);
|
|
31440
|
+
Object.assign(obj, {
|
|
31441
|
+
[`${field.id}`]: fieldData,
|
|
31442
|
+
[`_transformed_${field.id}`]: newFieldVal
|
|
31443
|
+
});
|
|
31444
|
+
}
|
|
31445
|
+
return obj;
|
|
31446
|
+
}
|
|
31303
31447
|
function sort2(fieldname) {
|
|
31304
31448
|
if (sortField.value === fieldname) {
|
|
31305
31449
|
if (sortDirection.value === "ASC") sortDirection.value = "DESC";
|
|
@@ -31317,50 +31461,47 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31317
31461
|
overscan: 10
|
|
31318
31462
|
}
|
|
31319
31463
|
);
|
|
31320
|
-
watch(
|
|
31321
|
-
() => computedData.value.length,
|
|
31322
|
-
(newLength, oldLength) => {
|
|
31323
|
-
if (newLength === oldLength || __props.onLastItemVisible !== void 0) return;
|
|
31324
|
-
scrollTo(0);
|
|
31325
|
-
}
|
|
31326
|
-
);
|
|
31327
|
-
const allSelector = ref();
|
|
31328
|
-
const computedSelectedItems = computed(() => selectedItems.value);
|
|
31329
31464
|
function updateAllSelectorState() {
|
|
31330
|
-
if (!
|
|
31465
|
+
if (!allSelectorEl.value) return;
|
|
31331
31466
|
const allSelected = computedData.value.length === computedSelectedItems.value.length && computedData.value.every((s2) => s2.id && computedSelectedItems.value.includes(s2.id));
|
|
31332
|
-
|
|
31333
|
-
|
|
31467
|
+
allSelectorEl.value.checked = allSelected;
|
|
31468
|
+
allSelectorEl.value.indeterminate = !allSelected && computedSelectedItems.value.length > 0;
|
|
31334
31469
|
}
|
|
31335
31470
|
function toggleSelectItem(item) {
|
|
31336
31471
|
if (computedSelectedItems.value.length === 0) {
|
|
31337
31472
|
const obj = { ...item };
|
|
31338
|
-
Object.keys(obj).forEach((key) =>
|
|
31339
|
-
if (key.startsWith("_transformed_")) delete obj[key];
|
|
31340
|
-
});
|
|
31473
|
+
Object.keys(obj).forEach((key) => key.startsWith("_transformed_") && delete obj[key]);
|
|
31341
31474
|
emit2("select", obj);
|
|
31342
31475
|
return;
|
|
31343
31476
|
}
|
|
31344
31477
|
const index2 = computedSelectedItems.value.indexOf(item.id);
|
|
31345
|
-
|
|
31346
|
-
computedSelectedItems.value.splice(index2, 1);
|
|
31347
|
-
} else {
|
|
31348
|
-
computedSelectedItems.value.push(item.id);
|
|
31349
|
-
}
|
|
31478
|
+
index2 > -1 ? computedSelectedItems.value.splice(index2, 1) : computedSelectedItems.value.push(item.id);
|
|
31350
31479
|
}
|
|
31351
31480
|
function toggleSelectAll(event) {
|
|
31352
31481
|
const value = event.target.checked;
|
|
31353
31482
|
selectedItems.value = value ? computedData.value.map((d2) => d2.id) : [];
|
|
31354
31483
|
}
|
|
31355
|
-
const lastItem = ref();
|
|
31356
31484
|
async function registerLastItemObserver() {
|
|
31357
|
-
await until(() =>
|
|
31358
|
-
useIntersectionObserver(
|
|
31485
|
+
await until(() => lastItemEl.value).toBeTruthy();
|
|
31486
|
+
useIntersectionObserver(lastItemEl.value, ([entry]) => {
|
|
31359
31487
|
if (entry.isIntersecting && computedData.value.length) {
|
|
31360
31488
|
emit2("lastItemVisible");
|
|
31361
31489
|
}
|
|
31362
31490
|
});
|
|
31363
31491
|
}
|
|
31492
|
+
watch(
|
|
31493
|
+
() => computedData.value.length,
|
|
31494
|
+
(newLength, oldLength) => {
|
|
31495
|
+
if (newLength === oldLength || __props.onLastItemVisible !== void 0) return;
|
|
31496
|
+
scrollTo(0);
|
|
31497
|
+
}
|
|
31498
|
+
);
|
|
31499
|
+
watch(
|
|
31500
|
+
() => computedSelectedItems.value.length,
|
|
31501
|
+
() => {
|
|
31502
|
+
updateAllSelectorState();
|
|
31503
|
+
}
|
|
31504
|
+
);
|
|
31364
31505
|
watch(
|
|
31365
31506
|
() => loading.value,
|
|
31366
31507
|
(newLoadingVal, oldLoadingVal) => {
|
|
@@ -31380,8 +31521,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31380
31521
|
createElementVNode("thead", _hoisted_3$1, [
|
|
31381
31522
|
unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$1, [
|
|
31382
31523
|
createElementVNode("input", {
|
|
31383
|
-
ref_key: "
|
|
31384
|
-
ref:
|
|
31524
|
+
ref_key: "allSelectorEl",
|
|
31525
|
+
ref: allSelectorEl,
|
|
31385
31526
|
type: "checkbox",
|
|
31386
31527
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
31387
31528
|
}, ["stop"])),
|
|
@@ -31439,7 +31580,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31439
31580
|
row,
|
|
31440
31581
|
field
|
|
31441
31582
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
31442
|
-
createVNode(unref(_sfc_main$
|
|
31583
|
+
createVNode(unref(_sfc_main$O), {
|
|
31443
31584
|
class: "embedded-field",
|
|
31444
31585
|
field,
|
|
31445
31586
|
modelValue: row,
|
|
@@ -31452,8 +31593,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31452
31593
|
}), 128)),
|
|
31453
31594
|
_ctx.onLastItemVisible !== void 0 ? (openBlock(), createElementBlock("tr", {
|
|
31454
31595
|
key: 0,
|
|
31455
|
-
ref_key: "
|
|
31456
|
-
ref:
|
|
31596
|
+
ref_key: "lastItemEl",
|
|
31597
|
+
ref: lastItemEl,
|
|
31598
|
+
style: { "height": "1px" }
|
|
31457
31599
|
}, null, 512)) : createCommentVNode("", true)
|
|
31458
31600
|
])
|
|
31459
31601
|
])
|
|
@@ -31462,7 +31604,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31462
31604
|
};
|
|
31463
31605
|
}
|
|
31464
31606
|
});
|
|
31465
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
31607
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-4a5861ed"]]);
|
|
31466
31608
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
31467
31609
|
__name: "Title",
|
|
31468
31610
|
props: {
|
|
@@ -32618,7 +32760,7 @@ function frmRow(...children2) {
|
|
|
32618
32760
|
function bglForm(idOrField, ...schema) {
|
|
32619
32761
|
if (typeof idOrField === "string") {
|
|
32620
32762
|
return {
|
|
32621
|
-
$el: markRaw(_sfc_main$
|
|
32763
|
+
$el: markRaw(_sfc_main$N),
|
|
32622
32764
|
id: idOrField,
|
|
32623
32765
|
attrs: {
|
|
32624
32766
|
schema: [idOrField, ...schema]
|
|
@@ -32626,7 +32768,7 @@ function bglForm(idOrField, ...schema) {
|
|
|
32626
32768
|
};
|
|
32627
32769
|
}
|
|
32628
32770
|
return {
|
|
32629
|
-
$el: markRaw(_sfc_main$
|
|
32771
|
+
$el: markRaw(_sfc_main$N),
|
|
32630
32772
|
attrs: {
|
|
32631
32773
|
schema: [idOrField, ...schema]
|
|
32632
32774
|
}
|
|
@@ -32650,20 +32792,6 @@ function findBglFieldById(id, _schema) {
|
|
|
32650
32792
|
}
|
|
32651
32793
|
return void 0;
|
|
32652
32794
|
}
|
|
32653
|
-
const BagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32654
|
-
__proto__: null,
|
|
32655
|
-
bglForm,
|
|
32656
|
-
checkField,
|
|
32657
|
-
dateField,
|
|
32658
|
-
findBglFieldById,
|
|
32659
|
-
frmRow,
|
|
32660
|
-
getBaseField,
|
|
32661
|
-
numField,
|
|
32662
|
-
richText,
|
|
32663
|
-
slctField,
|
|
32664
|
-
telField,
|
|
32665
|
-
txtField
|
|
32666
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
32667
32795
|
const state = reactive({
|
|
32668
32796
|
defaultLang: "",
|
|
32669
32797
|
availableLangs: [],
|
|
@@ -33405,39 +33533,40 @@ function timeAgo(date2, lang = "en") {
|
|
|
33405
33533
|
return selectedLang.justNow;
|
|
33406
33534
|
}
|
|
33407
33535
|
export {
|
|
33408
|
-
_sfc_main$
|
|
33536
|
+
_sfc_main$11 as Accordion,
|
|
33409
33537
|
AccordionItem,
|
|
33410
|
-
_sfc_main
|
|
33538
|
+
_sfc_main$$ as AddressSearch,
|
|
33411
33539
|
Alert,
|
|
33412
33540
|
Avatar,
|
|
33413
33541
|
Badge,
|
|
33414
|
-
_sfc_main$
|
|
33542
|
+
_sfc_main$N as BagelForm,
|
|
33415
33543
|
BagelVue,
|
|
33416
|
-
_sfc_main$
|
|
33417
|
-
_sfc_main$
|
|
33418
|
-
_sfc_main$
|
|
33544
|
+
_sfc_main$O as BglField,
|
|
33545
|
+
_sfc_main$N as BglForm,
|
|
33546
|
+
_sfc_main$M as BglMultiStepForm,
|
|
33419
33547
|
BglVideo,
|
|
33420
33548
|
BottomMenu,
|
|
33421
33549
|
Btn,
|
|
33422
|
-
_sfc_main$
|
|
33550
|
+
_sfc_main$V as Card,
|
|
33423
33551
|
Carousel,
|
|
33424
33552
|
CheckInput,
|
|
33425
33553
|
Checkbox,
|
|
33426
33554
|
CodeEditor,
|
|
33427
|
-
_sfc_main$
|
|
33555
|
+
_sfc_main$I as ColorPicker,
|
|
33428
33556
|
DataPreview,
|
|
33429
|
-
_sfc_main$
|
|
33430
|
-
_sfc_main$
|
|
33431
|
-
_sfc_main$
|
|
33557
|
+
_sfc_main$H as DateInput,
|
|
33558
|
+
_sfc_main$G as DatePicker,
|
|
33559
|
+
_sfc_main$R as Dropdown,
|
|
33432
33560
|
FileUpload,
|
|
33433
33561
|
Flag,
|
|
33434
33562
|
IMAGE_FORMATS,
|
|
33435
33563
|
IMAGE_FORMATS_REGEXP,
|
|
33436
33564
|
_sfc_main$c as Icon,
|
|
33565
|
+
_sfc_main$o as IframeVue,
|
|
33437
33566
|
Image$1 as Image,
|
|
33438
33567
|
JSONInput,
|
|
33439
33568
|
Layout,
|
|
33440
|
-
_sfc_main$
|
|
33569
|
+
_sfc_main$T as Lineart,
|
|
33441
33570
|
_sfc_main$g as ListItem,
|
|
33442
33571
|
ListView,
|
|
33443
33572
|
Loading,
|
|
@@ -33450,7 +33579,7 @@ export {
|
|
|
33450
33579
|
NavBar,
|
|
33451
33580
|
OTP,
|
|
33452
33581
|
_sfc_main$7 as PageTitle,
|
|
33453
|
-
_sfc_main$
|
|
33582
|
+
_sfc_main$B as PasswordInput,
|
|
33454
33583
|
Pill,
|
|
33455
33584
|
RadioGroup,
|
|
33456
33585
|
RadioPillsInput,
|
|
@@ -33459,7 +33588,7 @@ export {
|
|
|
33459
33588
|
RouterWrapper,
|
|
33460
33589
|
SelectInput,
|
|
33461
33590
|
SidebarMenu,
|
|
33462
|
-
_sfc_main$
|
|
33591
|
+
_sfc_main$t as SignaturePad,
|
|
33463
33592
|
Skeleton,
|
|
33464
33593
|
TabbedLayout,
|
|
33465
33594
|
TableField,
|
|
@@ -33478,7 +33607,7 @@ export {
|
|
|
33478
33607
|
allCountries,
|
|
33479
33608
|
appendScript,
|
|
33480
33609
|
appendStyle,
|
|
33481
|
-
|
|
33610
|
+
bagelFormUtils,
|
|
33482
33611
|
bagelInjectionKey,
|
|
33483
33612
|
bindAttrs,
|
|
33484
33613
|
classify,
|