@bagelink/vue 0.0.1102 → 0.0.1109
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/form/inputs/DatePick.vue.d.ts +23 -0
- package/dist/components/form/inputs/DatePick.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/NumberInput.vue.d.ts +1 -0
- package/dist/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/index.d.ts +1 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -1
- package/dist/composables/useFormField.d.ts +11 -0
- package/dist/composables/useFormField.d.ts.map +1 -0
- package/dist/index.cjs +564 -190
- package/dist/index.mjs +564 -190
- package/dist/style.css +187 -6
- package/package.json +1 -1
- package/src/components/form/BglForm.vue +1 -1
- package/src/components/form/inputs/DatePick.vue +344 -250
- package/src/components/form/inputs/NumberInput.vue +17 -5
- package/src/components/form/inputs/index.ts +1 -1
- package/src/composables/useFormField.ts +35 -0
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
47
47
|
return uploadField;
|
|
48
48
|
}
|
|
49
49
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
50
|
-
const _sfc_main$
|
|
50
|
+
const _sfc_main$18 = /* @__PURE__ */ vue.defineComponent({
|
|
51
51
|
__name: "Accordion",
|
|
52
52
|
setup(__props) {
|
|
53
53
|
const state2 = vue.reactive({
|
|
@@ -61,10 +61,10 @@ const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
const _hoisted_1$
|
|
65
|
-
const _hoisted_2$
|
|
66
|
-
const _hoisted_3$
|
|
67
|
-
const _sfc_main$
|
|
64
|
+
const _hoisted_1$X = ["aria-expanded", "aria-controls"];
|
|
65
|
+
const _hoisted_2$D = { class: "accordion-label" };
|
|
66
|
+
const _hoisted_3$t = ["id", "aria-hidden"];
|
|
67
|
+
const _sfc_main$17 = /* @__PURE__ */ vue.defineComponent({
|
|
68
68
|
__name: "AccordionItem",
|
|
69
69
|
props: {
|
|
70
70
|
label: {},
|
|
@@ -130,7 +130,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
130
130
|
vue.createVNode(vue.unref(_sfc_main$d), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
131
131
|
], 2)) : vue.createCommentVNode("", true),
|
|
132
132
|
vue.renderSlot(_ctx.$slots, "head", {}, () => [
|
|
133
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
133
|
+
vue.createElementVNode("span", _hoisted_2$D, vue.toDisplayString(_ctx.label), 1)
|
|
134
134
|
], true),
|
|
135
135
|
iconPosition.value === "end" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
136
136
|
key: 1,
|
|
@@ -138,7 +138,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
138
138
|
}, [
|
|
139
139
|
vue.createVNode(vue.unref(_sfc_main$d), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
140
140
|
], 2)) : vue.createCommentVNode("", true)
|
|
141
|
-
], 8, _hoisted_1$
|
|
141
|
+
], 8, _hoisted_1$X),
|
|
142
142
|
vue.createVNode(vue.Transition, { name: "expand" }, {
|
|
143
143
|
default: vue.withCtx(() => [
|
|
144
144
|
vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -148,7 +148,7 @@ const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
148
|
"aria-hidden": vue.unref(isOpen) ? "false" : "true"
|
|
149
149
|
}, [
|
|
150
150
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
151
|
-
], 8, _hoisted_3$
|
|
151
|
+
], 8, _hoisted_3$t)) : vue.createCommentVNode("", true)
|
|
152
152
|
]),
|
|
153
153
|
_: 3
|
|
154
154
|
})
|
|
@@ -163,9 +163,9 @@ const _export_sfc = (sfc, props2) => {
|
|
|
163
163
|
}
|
|
164
164
|
return target;
|
|
165
165
|
};
|
|
166
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
167
|
-
const _hoisted_1$
|
|
168
|
-
const _sfc_main$
|
|
166
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-1e73ca3e"]]);
|
|
167
|
+
const _hoisted_1$W = { class: "relative" };
|
|
168
|
+
const _sfc_main$16 = /* @__PURE__ */ vue.defineComponent({
|
|
169
169
|
__name: "AddressSearch",
|
|
170
170
|
emits: ["addressSelected"],
|
|
171
171
|
setup(__props, { emit: __emit }) {
|
|
@@ -187,8 +187,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
187
187
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
188
188
|
}
|
|
189
189
|
return (_ctx, _cache) => {
|
|
190
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
191
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
190
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W, [
|
|
191
|
+
vue.createVNode(vue.unref(_sfc_main$X), {
|
|
192
192
|
ref_key: "suggestion",
|
|
193
193
|
ref: suggestion,
|
|
194
194
|
noAutoFocus: true,
|
|
@@ -223,11 +223,11 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
const _hoisted_1$
|
|
226
|
+
const _hoisted_1$V = {
|
|
227
227
|
key: 1,
|
|
228
228
|
class: "bgl_btn-flex"
|
|
229
229
|
};
|
|
230
|
-
const _sfc_main$
|
|
230
|
+
const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
231
231
|
__name: "Btn",
|
|
232
232
|
props: {
|
|
233
233
|
disabled: { type: Boolean, default: false },
|
|
@@ -292,7 +292,7 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
292
292
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), {
|
|
293
293
|
key: 0,
|
|
294
294
|
size: "15"
|
|
295
|
-
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
295
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
296
296
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
|
|
297
297
|
key: 0,
|
|
298
298
|
icon: _ctx.icon
|
|
@@ -314,10 +314,10 @@ const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
318
|
-
const _hoisted_1$
|
|
319
|
-
const _hoisted_2$
|
|
320
|
-
const _sfc_main$
|
|
317
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-c23a3626"]]);
|
|
318
|
+
const _hoisted_1$U = ["dismissable"];
|
|
319
|
+
const _hoisted_2$C = { class: "m-0" };
|
|
320
|
+
const _sfc_main$14 = /* @__PURE__ */ vue.defineComponent({
|
|
321
321
|
__name: "Alert",
|
|
322
322
|
props: {
|
|
323
323
|
message: {},
|
|
@@ -345,7 +345,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
345
345
|
size: 2,
|
|
346
346
|
color: color2[_ctx.type]
|
|
347
347
|
}, null, 8, ["icon", "color"])) : vue.createCommentVNode("", true),
|
|
348
|
-
vue.createElementVNode("p", _hoisted_2$
|
|
348
|
+
vue.createElementVNode("p", _hoisted_2$C, vue.toDisplayString(_ctx.message), 1),
|
|
349
349
|
vue.createVNode(Btn, {
|
|
350
350
|
flat: "",
|
|
351
351
|
thin: "",
|
|
@@ -353,13 +353,13 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
353
353
|
icon: "close",
|
|
354
354
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
355
355
|
})
|
|
356
|
-
], 10, _hoisted_1$
|
|
356
|
+
], 10, _hoisted_1$U)) : vue.createCommentVNode("", true);
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
361
|
-
const _hoisted_1$
|
|
362
|
-
const _sfc_main$
|
|
360
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-57141c32"]]);
|
|
361
|
+
const _hoisted_1$T = ["src", "alt"];
|
|
362
|
+
const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
363
363
|
__name: "Avatar",
|
|
364
364
|
props: {
|
|
365
365
|
fallback: {},
|
|
@@ -377,7 +377,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
377
377
|
key: 0,
|
|
378
378
|
src: _ctx.src,
|
|
379
379
|
alt: _ctx.name
|
|
380
|
-
}, null, 8, _hoisted_1$
|
|
380
|
+
}, null, 8, _hoisted_1$T)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
381
381
|
key: 1,
|
|
382
382
|
style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
383
383
|
}, vue.toDisplayString((_ctx.fallback || vue.unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -385,8 +385,8 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
389
|
-
const _sfc_main$
|
|
388
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-46ad8c25"]]);
|
|
389
|
+
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
390
390
|
__name: "Badge",
|
|
391
391
|
props: {
|
|
392
392
|
color: {},
|
|
@@ -415,9 +415,9 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
});
|
|
418
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
419
|
-
const _hoisted_1$
|
|
420
|
-
const _sfc_main$
|
|
418
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-2f3caf93"]]);
|
|
419
|
+
const _hoisted_1$S = { key: 1 };
|
|
420
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
421
421
|
__name: "BglComponent",
|
|
422
422
|
props: {
|
|
423
423
|
field: {},
|
|
@@ -437,16 +437,16 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
437
437
|
return TextInput;
|
|
438
438
|
}
|
|
439
439
|
if (props2.field.$el === "number") return NumberInput;
|
|
440
|
-
if (props2.field.$el === "array") return _sfc_main$
|
|
440
|
+
if (props2.field.$el === "array") return _sfc_main$Q;
|
|
441
441
|
if (props2.field.$el === "select") return SelectInput;
|
|
442
442
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
443
443
|
if (props2.field.$el === "check") return CheckInput;
|
|
444
444
|
if (props2.field.$el === "richtext") return RichText;
|
|
445
445
|
if (props2.field.$el === "upload") return UploadInput;
|
|
446
446
|
if (props2.field.$el === "file") return FileUpload;
|
|
447
|
-
if (props2.field.$el === "date") return _sfc_main$
|
|
447
|
+
if (props2.field.$el === "date") return _sfc_main$L;
|
|
448
448
|
if (props2.field.$el === "tabs") return TabsNav;
|
|
449
|
-
if (props2.field.$el === "form") return _sfc_main$
|
|
449
|
+
if (props2.field.$el === "form") return _sfc_main$S;
|
|
450
450
|
return props2.field.$el ?? "div";
|
|
451
451
|
});
|
|
452
452
|
function getFieldData(path) {
|
|
@@ -563,7 +563,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
563
563
|
id: [props2.id, child.id].filter(Boolean).join("."),
|
|
564
564
|
field: child,
|
|
565
565
|
"parent-path": props2.id
|
|
566
|
-
}, null, 8, ["id", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
566
|
+
}, null, 8, ["id", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$S, vue.toDisplayString(child), 1))
|
|
567
567
|
], 64);
|
|
568
568
|
}), 128))
|
|
569
569
|
], 64))
|
|
@@ -573,10 +573,10 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
|
-
const _hoisted_1$
|
|
577
|
-
const _hoisted_2$
|
|
578
|
-
const _hoisted_3$
|
|
579
|
-
const _sfc_main
|
|
576
|
+
const _hoisted_1$R = ["src"];
|
|
577
|
+
const _hoisted_2$B = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
578
|
+
const _hoisted_3$s = ["src", "type"];
|
|
579
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
580
580
|
__name: "BglVideo",
|
|
581
581
|
props: {
|
|
582
582
|
src: {},
|
|
@@ -653,7 +653,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
653
653
|
allowfullscreen: "",
|
|
654
654
|
title: "Video",
|
|
655
655
|
allow: "autoplay"
|
|
656
|
-
}, null, 12, _hoisted_1$
|
|
656
|
+
}, null, 12, _hoisted_1$R)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
657
657
|
key: 1,
|
|
658
658
|
ref_key: "video",
|
|
659
659
|
ref: video,
|
|
@@ -667,18 +667,18 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
667
667
|
vue.createElementVNode("source", {
|
|
668
668
|
src: _ctx.src,
|
|
669
669
|
type: `video/${videoFormat.value}`
|
|
670
|
-
}, null, 8, _hoisted_3$
|
|
671
|
-
], 12, _hoisted_2$
|
|
670
|
+
}, null, 8, _hoisted_3$s)
|
|
671
|
+
], 12, _hoisted_2$B)) : vue.createCommentVNode("", true)
|
|
672
672
|
], 2);
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
677
|
-
const _hoisted_1$
|
|
676
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-006552f6"]]);
|
|
677
|
+
const _hoisted_1$Q = {
|
|
678
678
|
key: 0,
|
|
679
679
|
class: "card_label"
|
|
680
680
|
};
|
|
681
|
-
const _sfc_main
|
|
681
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
682
682
|
__name: "Card",
|
|
683
683
|
props: {
|
|
684
684
|
label: {},
|
|
@@ -707,7 +707,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
707
707
|
}])
|
|
708
708
|
}, {
|
|
709
709
|
default: vue.withCtx(() => [
|
|
710
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
710
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$Q, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
711
711
|
vue.renderSlot(_ctx.$slots, "default")
|
|
712
712
|
]),
|
|
713
713
|
_: 3
|
|
@@ -717,18 +717,18 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
|
-
const _hoisted_1$
|
|
721
|
-
const _hoisted_2$
|
|
720
|
+
const _hoisted_1$P = ["dir"];
|
|
721
|
+
const _hoisted_2$A = {
|
|
722
722
|
key: 0,
|
|
723
723
|
class: "blocker"
|
|
724
724
|
};
|
|
725
|
-
const _hoisted_3$
|
|
725
|
+
const _hoisted_3$r = {
|
|
726
726
|
key: 0,
|
|
727
727
|
class: "dots flex-center gap-05 mt-1"
|
|
728
728
|
};
|
|
729
|
-
const _hoisted_4$
|
|
730
|
-
const _hoisted_5$
|
|
731
|
-
const _sfc_main$
|
|
729
|
+
const _hoisted_4$j = ["onClick"];
|
|
730
|
+
const _hoisted_5$i = { class: "Handlers" };
|
|
731
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
732
732
|
__name: "Carousel",
|
|
733
733
|
props: {
|
|
734
734
|
autoHeight: { type: Boolean, default: false },
|
|
@@ -906,19 +906,19 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
906
906
|
onMouseover: clearAutoplay,
|
|
907
907
|
onFocusin: clearAutoplay
|
|
908
908
|
}, [
|
|
909
|
-
vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
909
|
+
vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A)) : vue.createCommentVNode("", true),
|
|
910
910
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
911
911
|
], 38),
|
|
912
|
-
__props.dots && vue.unref(slideCount) > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
912
|
+
__props.dots && vue.unref(slideCount) > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$r, [
|
|
913
913
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(slideCount), (i2) => {
|
|
914
914
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
915
915
|
key: i2,
|
|
916
916
|
class: vue.normalizeClass(["dot cursor", { current: vue.unref(activeSlideIndex) === i2 - 1 }]),
|
|
917
917
|
onClick: ($event) => goToSlide(i2 - 1)
|
|
918
|
-
}, null, 10, _hoisted_4$
|
|
918
|
+
}, null, 10, _hoisted_4$j);
|
|
919
919
|
}), 128))
|
|
920
920
|
])) : vue.createCommentVNode("", true),
|
|
921
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
921
|
+
vue.createElementVNode("div", _hoisted_5$i, [
|
|
922
922
|
vue.createElementVNode("span", { onClick: prev }, [
|
|
923
923
|
vue.renderSlot(_ctx.$slots, "prev", {
|
|
924
924
|
index: vue.unref(activeSlideIndex),
|
|
@@ -932,11 +932,11 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
932
932
|
}, void 0, true)
|
|
933
933
|
])
|
|
934
934
|
])
|
|
935
|
-
], 14, _hoisted_1$
|
|
935
|
+
], 14, _hoisted_1$P);
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
939
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-063b5ad9"]]);
|
|
940
940
|
function _isPlaceholder(a2) {
|
|
941
941
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
942
942
|
}
|
|
@@ -5847,7 +5847,7 @@ const _hoisted_4$2$1 = {
|
|
|
5847
5847
|
};
|
|
5848
5848
|
const _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"];
|
|
5849
5849
|
const _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"];
|
|
5850
|
-
const _hoisted_7$
|
|
5850
|
+
const _hoisted_7$a = ["x1", "y1", "x2", "y2"];
|
|
5851
5851
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5852
5852
|
return _ctx.data.length ? (vue.openBlock(), vue.createElementBlock("g", {
|
|
5853
5853
|
key: 0,
|
|
@@ -5903,7 +5903,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5903
5903
|
y1: _ctx.canvas.y,
|
|
5904
5904
|
x2: _ctx.canvas.width - 1,
|
|
5905
5905
|
y2: _ctx.canvas.height
|
|
5906
|
-
}, null, 8, _hoisted_7$
|
|
5906
|
+
}, null, 8, _hoisted_7$a)
|
|
5907
5907
|
])
|
|
5908
5908
|
], 8, _hoisted_1$4$1)) : vue.createCommentVNode("v-if", true);
|
|
5909
5909
|
}
|
|
@@ -6770,10 +6770,10 @@ const _hoisted_1$1$1 = {
|
|
|
6770
6770
|
style: { display: "flex", position: "relative" }
|
|
6771
6771
|
};
|
|
6772
6772
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
6773
|
-
const _hoisted_3$
|
|
6774
|
-
const _hoisted_4$
|
|
6775
|
-
const _hoisted_5$
|
|
6776
|
-
const _hoisted_6$
|
|
6773
|
+
const _hoisted_3$q = { class: "layer-rectangles" };
|
|
6774
|
+
const _hoisted_4$i = ["transform", "onMouseover"];
|
|
6775
|
+
const _hoisted_5$h = ["width", "height"];
|
|
6776
|
+
const _hoisted_6$e = {
|
|
6777
6777
|
x: 0 + 10,
|
|
6778
6778
|
y: 0 + 20,
|
|
6779
6779
|
"font-size": `15px`,
|
|
@@ -6788,7 +6788,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6788
6788
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
6789
6789
|
ref: "el"
|
|
6790
6790
|
}, [
|
|
6791
|
-
vue.createElementVNode("g", _hoisted_3$
|
|
6791
|
+
vue.createElementVNode("g", _hoisted_3$q, [
|
|
6792
6792
|
(vue.openBlock(true), vue.createElementBlock(
|
|
6793
6793
|
vue.Fragment,
|
|
6794
6794
|
null,
|
|
@@ -6809,21 +6809,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6809
6809
|
y: 0,
|
|
6810
6810
|
width: r2.width,
|
|
6811
6811
|
height: r2.height
|
|
6812
|
-
}), null, 16, _hoisted_5$
|
|
6812
|
+
}), null, 16, _hoisted_5$h),
|
|
6813
6813
|
vue.renderSlot(_ctx.$slots, "text", {
|
|
6814
6814
|
r: r2,
|
|
6815
6815
|
selected: _ctx.selected === i2
|
|
6816
6816
|
}, () => [
|
|
6817
6817
|
vue.createElementVNode(
|
|
6818
6818
|
"text",
|
|
6819
|
-
_hoisted_6$
|
|
6819
|
+
_hoisted_6$e,
|
|
6820
6820
|
vue.toDisplayString(r2.data.name),
|
|
6821
6821
|
1
|
|
6822
6822
|
/* TEXT */
|
|
6823
6823
|
)
|
|
6824
6824
|
])
|
|
6825
6825
|
])
|
|
6826
|
-
], 42, _hoisted_4$
|
|
6826
|
+
], 42, _hoisted_4$i);
|
|
6827
6827
|
}),
|
|
6828
6828
|
128
|
|
6829
6829
|
/* KEYED_FRAGMENT */
|
|
@@ -6880,25 +6880,25 @@ var script = vue.defineComponent({
|
|
|
6880
6880
|
return { bar, canvas, direction, mouse };
|
|
6881
6881
|
}
|
|
6882
6882
|
});
|
|
6883
|
-
const _hoisted_1$
|
|
6883
|
+
const _hoisted_1$O = {
|
|
6884
6884
|
key: 0,
|
|
6885
6885
|
class: "layer-hover-bar"
|
|
6886
6886
|
};
|
|
6887
|
-
const _hoisted_2$
|
|
6887
|
+
const _hoisted_2$z = ["x", "y", "width", "height"];
|
|
6888
6888
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6889
|
-
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$
|
|
6889
|
+
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$O, [
|
|
6890
6890
|
vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
6891
6891
|
x: _ctx.bar.x,
|
|
6892
6892
|
y: _ctx.bar.y,
|
|
6893
6893
|
width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
|
|
6894
6894
|
height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
|
|
6895
|
-
}), null, 16, _hoisted_2$
|
|
6895
|
+
}), null, 16, _hoisted_2$z)
|
|
6896
6896
|
])) : vue.createCommentVNode("v-if", true);
|
|
6897
6897
|
}
|
|
6898
6898
|
script.render = render;
|
|
6899
6899
|
script.__file = "src/components/HoverBar/index.vue";
|
|
6900
6900
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
6901
|
-
const _sfc_main$
|
|
6901
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
6902
6902
|
__name: "Lineart",
|
|
6903
6903
|
props: {
|
|
6904
6904
|
data: {},
|
|
@@ -7038,28 +7038,28 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
7038
7038
|
};
|
|
7039
7039
|
}
|
|
7040
7040
|
});
|
|
7041
|
-
const _hoisted_1$
|
|
7041
|
+
const _hoisted_1$N = {
|
|
7042
7042
|
key: 0,
|
|
7043
7043
|
class: "data"
|
|
7044
7044
|
};
|
|
7045
|
-
const _hoisted_2$
|
|
7045
|
+
const _hoisted_2$y = {
|
|
7046
7046
|
key: 0,
|
|
7047
7047
|
class: "data-row m_py-05"
|
|
7048
7048
|
};
|
|
7049
|
-
const _hoisted_3$
|
|
7050
|
-
const _hoisted_4$
|
|
7051
|
-
const _hoisted_5$
|
|
7052
|
-
const _hoisted_6$
|
|
7049
|
+
const _hoisted_3$p = { class: "key" };
|
|
7050
|
+
const _hoisted_4$h = { class: "m-0" };
|
|
7051
|
+
const _hoisted_5$g = { key: 1 };
|
|
7052
|
+
const _hoisted_6$d = {
|
|
7053
7053
|
key: 0,
|
|
7054
7054
|
class: "data-row"
|
|
7055
7055
|
};
|
|
7056
|
-
const _hoisted_7$
|
|
7057
|
-
const _hoisted_8$
|
|
7058
|
-
const _hoisted_9$
|
|
7056
|
+
const _hoisted_7$9 = { class: "key" };
|
|
7057
|
+
const _hoisted_8$6 = { class: "m-0" };
|
|
7058
|
+
const _hoisted_9$5 = {
|
|
7059
7059
|
key: 0,
|
|
7060
7060
|
class: "m-0"
|
|
7061
7061
|
};
|
|
7062
|
-
const _sfc_main$
|
|
7062
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
7063
7063
|
__name: "DataPreview",
|
|
7064
7064
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
7065
7065
|
showFields: {},
|
|
@@ -7095,7 +7095,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
7095
7095
|
const computedSchema = vue.computed(() => getFallbackSchema([itemData.value], props2.showFields));
|
|
7096
7096
|
return (_ctx, _cache) => {
|
|
7097
7097
|
var _a2;
|
|
7098
|
-
return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
7098
|
+
return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
|
|
7099
7099
|
_ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$4), {
|
|
7100
7100
|
key: 0,
|
|
7101
7101
|
label: _ctx.title
|
|
@@ -7104,11 +7104,11 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
7104
7104
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
7105
7105
|
key: field.id
|
|
7106
7106
|
}, [
|
|
7107
|
-
vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7108
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
7109
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
7107
|
+
vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
|
|
7108
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
|
7109
|
+
vue.createElementVNode("p", _hoisted_4$h, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
|
|
7110
7110
|
]),
|
|
7111
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
7111
|
+
vue.createVNode(vue.unref(_sfc_main$T), {
|
|
7112
7112
|
modelValue: itemData.value,
|
|
7113
7113
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
|
|
7114
7114
|
label: "",
|
|
@@ -7118,15 +7118,15 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
7118
7118
|
])) : vue.createCommentVNode("", true)
|
|
7119
7119
|
], 64);
|
|
7120
7120
|
}), 128)),
|
|
7121
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
7121
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$g, [
|
|
7122
7122
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, ({ id, label }) => {
|
|
7123
7123
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: id }, [
|
|
7124
|
-
!isUnset(itemData.value[id]) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
7125
|
-
vue.createElementVNode("div", _hoisted_7$
|
|
7126
|
-
vue.createElementVNode("p", _hoisted_8$
|
|
7124
|
+
!isUnset(itemData.value[id]) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$d, [
|
|
7125
|
+
vue.createElementVNode("div", _hoisted_7$9, [
|
|
7126
|
+
vue.createElementVNode("p", _hoisted_8$6, vue.toDisplayString(label), 1)
|
|
7127
7127
|
]),
|
|
7128
7128
|
vue.createElementVNode("div", null, [
|
|
7129
|
-
id ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$
|
|
7129
|
+
id ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$5, vue.toDisplayString(dataTransform(itemData.value[id])), 1)) : vue.createCommentVNode("", true)
|
|
7130
7130
|
])
|
|
7131
7131
|
])) : vue.createCommentVNode("", true)
|
|
7132
7132
|
], 64);
|
|
@@ -7137,7 +7137,7 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
7137
7137
|
};
|
|
7138
7138
|
}
|
|
7139
7139
|
});
|
|
7140
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7140
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-6c27f163"]]);
|
|
7141
7141
|
const sides = ["top", "right", "bottom", "left"];
|
|
7142
7142
|
const alignments = ["start", "end"];
|
|
7143
7143
|
const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -9684,7 +9684,7 @@ const Gt$1 = {
|
|
|
9684
9684
|
install: Ct$1,
|
|
9685
9685
|
options: h
|
|
9686
9686
|
};
|
|
9687
|
-
const _sfc_main$
|
|
9687
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
9688
9688
|
__name: "Dropdown",
|
|
9689
9689
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
9690
9690
|
value: {},
|
|
@@ -9762,9 +9762,9 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
9762
9762
|
};
|
|
9763
9763
|
}
|
|
9764
9764
|
});
|
|
9765
|
-
const _hoisted_1$
|
|
9766
|
-
const _hoisted_2$
|
|
9767
|
-
const _sfc_main$
|
|
9765
|
+
const _hoisted_1$M = { class: "px-1 pt-025 pb-1" };
|
|
9766
|
+
const _hoisted_2$x = { class: "ms-1" };
|
|
9767
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
9768
9768
|
__name: "FieldSetVue",
|
|
9769
9769
|
props: {
|
|
9770
9770
|
label: {},
|
|
@@ -9772,15 +9772,15 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
9772
9772
|
},
|
|
9773
9773
|
setup(__props) {
|
|
9774
9774
|
return (_ctx, _cache) => {
|
|
9775
|
-
return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$
|
|
9776
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
9775
|
+
return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$M, [
|
|
9776
|
+
vue.createElementVNode("legend", _hoisted_2$x, vue.toDisplayString(_ctx.legend || _ctx.label), 1),
|
|
9777
9777
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9778
9778
|
]);
|
|
9779
9779
|
};
|
|
9780
9780
|
}
|
|
9781
9781
|
});
|
|
9782
|
-
const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9783
|
-
const _sfc_main$
|
|
9782
|
+
const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f7e758e5"]]);
|
|
9783
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
9784
9784
|
__name: "Flag",
|
|
9785
9785
|
props: {
|
|
9786
9786
|
country: {},
|
|
@@ -9810,7 +9810,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
9810
9810
|
};
|
|
9811
9811
|
}
|
|
9812
9812
|
});
|
|
9813
|
-
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9813
|
+
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f99f1900"]]);
|
|
9814
9814
|
const state$1 = vue.reactive(/* @__PURE__ */ new Map());
|
|
9815
9815
|
function useTabs(group) {
|
|
9816
9816
|
if (!state$1.has(group)) {
|
|
@@ -9824,8 +9824,8 @@ function useTabs(group) {
|
|
|
9824
9824
|
});
|
|
9825
9825
|
return { currentTab };
|
|
9826
9826
|
}
|
|
9827
|
-
const _hoisted_1$
|
|
9828
|
-
const _sfc_main$
|
|
9827
|
+
const _hoisted_1$L = ["onClick"];
|
|
9828
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
9829
9829
|
__name: "TabsNav",
|
|
9830
9830
|
props: {
|
|
9831
9831
|
title: {},
|
|
@@ -9907,14 +9907,14 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
9907
9907
|
icon: tab.icon
|
|
9908
9908
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
9909
9909
|
vue.createTextVNode(" " + vue.toDisplayString(tabLabel(tab)), 1)
|
|
9910
|
-
], 10, _hoisted_1$
|
|
9910
|
+
], 10, _hoisted_1$L);
|
|
9911
9911
|
}), 128))
|
|
9912
9912
|
], true)
|
|
9913
9913
|
], 2);
|
|
9914
9914
|
};
|
|
9915
9915
|
}
|
|
9916
9916
|
});
|
|
9917
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9917
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-307612a9"]]);
|
|
9918
9918
|
const FORM_STATE_KEY = Symbol("bagelFormState");
|
|
9919
9919
|
function safeClone(obj) {
|
|
9920
9920
|
if (obj === null || typeof obj !== "object") return obj;
|
|
@@ -9976,8 +9976,8 @@ function useBagelFormState() {
|
|
|
9976
9976
|
if (!state2) throw new Error("BagelFormState must be provided");
|
|
9977
9977
|
return state2;
|
|
9978
9978
|
}
|
|
9979
|
-
const _hoisted_1$
|
|
9980
|
-
const _sfc_main$
|
|
9979
|
+
const _hoisted_1$K = { key: 1 };
|
|
9980
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
9981
9981
|
__name: "BglField",
|
|
9982
9982
|
props: {
|
|
9983
9983
|
field: {},
|
|
@@ -9998,16 +9998,16 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
9998
9998
|
return TextInput;
|
|
9999
9999
|
}
|
|
10000
10000
|
if (props2.field.$el === "number") return NumberInput;
|
|
10001
|
-
if (props2.field.$el === "array") return _sfc_main$
|
|
10001
|
+
if (props2.field.$el === "array") return _sfc_main$Q;
|
|
10002
10002
|
if (props2.field.$el === "select") return SelectInput;
|
|
10003
10003
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
10004
10004
|
if (props2.field.$el === "check") return CheckInput;
|
|
10005
10005
|
if (props2.field.$el === "richtext") return RichText;
|
|
10006
10006
|
if (props2.field.$el === "upload") return UploadInput;
|
|
10007
10007
|
if (props2.field.$el === "file") return FileUpload;
|
|
10008
|
-
if (props2.field.$el === "date") return _sfc_main$
|
|
10008
|
+
if (props2.field.$el === "date") return _sfc_main$L;
|
|
10009
10009
|
if (props2.field.$el === "tabs") return TabsNav;
|
|
10010
|
-
if (props2.field.$el === "bglform") return _sfc_main$
|
|
10010
|
+
if (props2.field.$el === "bglform") return _sfc_main$S;
|
|
10011
10011
|
return props2.field.$el ?? "div";
|
|
10012
10012
|
});
|
|
10013
10013
|
const fieldData = vue.computed({
|
|
@@ -10072,7 +10072,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
10072
10072
|
fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
|
|
10073
10073
|
field: child,
|
|
10074
10074
|
"parent-path": props2.fieldID
|
|
10075
|
-
}, null, 8, ["fieldID", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
10075
|
+
}, null, 8, ["fieldID", "field", "parent-path"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$K, vue.toDisplayString(child), 1))
|
|
10076
10076
|
], 64);
|
|
10077
10077
|
}), 128))
|
|
10078
10078
|
]),
|
|
@@ -10081,7 +10081,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
10081
10081
|
};
|
|
10082
10082
|
}
|
|
10083
10083
|
});
|
|
10084
|
-
const _sfc_main$
|
|
10084
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
10085
10085
|
__name: "BglForm",
|
|
10086
10086
|
props: {
|
|
10087
10087
|
label: {},
|
|
@@ -10111,7 +10111,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
10111
10111
|
}
|
|
10112
10112
|
data2.value = newVal;
|
|
10113
10113
|
}, { deep: true, immediate: true });
|
|
10114
|
-
vue.watch(() => data2, (newVal) => {
|
|
10114
|
+
vue.watch(() => data2.value, (newVal) => {
|
|
10115
10115
|
if (emitDirty.value) return;
|
|
10116
10116
|
emitDirty.value = true;
|
|
10117
10117
|
emit2("dirty");
|
|
@@ -10183,7 +10183,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
10183
10183
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
10184
10184
|
_ctx.tag === "template" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
10185
10185
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
|
|
10186
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
10186
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
|
|
10187
10187
|
key: field.id || `${i2}p`,
|
|
10188
10188
|
fieldID: field.id,
|
|
10189
10189
|
field
|
|
@@ -10206,7 +10206,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
10206
10206
|
label: _ctx.label
|
|
10207
10207
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
10208
10208
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
|
|
10209
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
10209
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
|
|
10210
10210
|
key: field.id || `${i2}p`,
|
|
10211
10211
|
fieldID: field.id,
|
|
10212
10212
|
field
|
|
@@ -10224,8 +10224,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
10224
10224
|
};
|
|
10225
10225
|
}
|
|
10226
10226
|
});
|
|
10227
|
-
const _hoisted_1$
|
|
10228
|
-
const _sfc_main$
|
|
10227
|
+
const _hoisted_1$J = { key: 0 };
|
|
10228
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
10229
10229
|
__name: "BglMultiStepForm",
|
|
10230
10230
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
10231
10231
|
bagelFormProps: { default: () => ({}) },
|
|
@@ -10292,8 +10292,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
10292
10292
|
mode: "out-in"
|
|
10293
10293
|
}, {
|
|
10294
10294
|
default: vue.withCtx(() => [
|
|
10295
|
-
!vue.unref(isStepping) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10296
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
10295
|
+
!vue.unref(isStepping) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
|
|
10296
|
+
vue.createVNode(vue.unref(_sfc_main$S), vue.mergeProps({
|
|
10297
10297
|
ref_key: "formRef",
|
|
10298
10298
|
ref: formRef,
|
|
10299
10299
|
modelValue: formData.value,
|
|
@@ -10332,12 +10332,12 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
10332
10332
|
};
|
|
10333
10333
|
}
|
|
10334
10334
|
});
|
|
10335
|
-
const _hoisted_1$
|
|
10336
|
-
const _hoisted_2$
|
|
10335
|
+
const _hoisted_1$I = { class: "label mb-05" };
|
|
10336
|
+
const _hoisted_2$w = {
|
|
10337
10337
|
key: 0,
|
|
10338
10338
|
class: "-ms-05 ps-05 border-start"
|
|
10339
10339
|
};
|
|
10340
|
-
const _sfc_main$
|
|
10340
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
10341
10341
|
__name: "FieldArray",
|
|
10342
10342
|
props: {
|
|
10343
10343
|
el: { default: "div" },
|
|
@@ -10394,8 +10394,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
10394
10394
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
10395
10395
|
class: vue.normalizeClass(props2.class)
|
|
10396
10396
|
}, [
|
|
10397
|
-
vue.createElementVNode("p", _hoisted_1$
|
|
10398
|
-
_ctx.schema ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
10397
|
+
vue.createElementVNode("p", _hoisted_1$I, vue.toDisplayString(_ctx.label), 1),
|
|
10398
|
+
_ctx.schema ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$w, [
|
|
10399
10399
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data2.value, (_2, i2) => {
|
|
10400
10400
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
10401
10401
|
key: i2,
|
|
@@ -10403,7 +10403,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
10403
10403
|
thin: "",
|
|
10404
10404
|
class: "mb-05 itemBox transition p-05"
|
|
10405
10405
|
}, [
|
|
10406
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
10406
|
+
vue.createVNode(vue.unref(_sfc_main$S), {
|
|
10407
10407
|
modelValue: data2.value[i2],
|
|
10408
10408
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
10409
10409
|
schema: _ctx.schema
|
|
@@ -10433,7 +10433,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
10433
10433
|
_: 1
|
|
10434
10434
|
})) : vue.createCommentVNode("", true)
|
|
10435
10435
|
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(data2.value, (_2, i2) => {
|
|
10436
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
10436
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
|
|
10437
10437
|
key: i2,
|
|
10438
10438
|
modelValue: data2.value[i2],
|
|
10439
10439
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
@@ -10444,8 +10444,8 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
10444
10444
|
};
|
|
10445
10445
|
}
|
|
10446
10446
|
});
|
|
10447
|
-
const _hoisted_1$
|
|
10448
|
-
const _sfc_main$
|
|
10447
|
+
const _hoisted_1$H = { class: "primary-checkbox" };
|
|
10448
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
10449
10449
|
__name: "Checkbox",
|
|
10450
10450
|
props: {
|
|
10451
10451
|
"modelValue": { type: Boolean, ...{ default: false } },
|
|
@@ -10455,7 +10455,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
10455
10455
|
setup(__props) {
|
|
10456
10456
|
const val = vue.useModel(__props, "modelValue");
|
|
10457
10457
|
return (_ctx, _cache) => {
|
|
10458
|
-
return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$
|
|
10458
|
+
return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$H, [
|
|
10459
10459
|
vue.renderSlot(_ctx.$slots, "label", {}, void 0, true),
|
|
10460
10460
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
10461
10461
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
|
|
@@ -10467,11 +10467,11 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
10467
10467
|
};
|
|
10468
10468
|
}
|
|
10469
10469
|
});
|
|
10470
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10471
|
-
const _hoisted_1$
|
|
10472
|
-
const _hoisted_2$
|
|
10473
|
-
const _hoisted_3$
|
|
10474
|
-
const _sfc_main$
|
|
10470
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-73f1d9ad"]]);
|
|
10471
|
+
const _hoisted_1$G = ["title"];
|
|
10472
|
+
const _hoisted_2$v = ["id", "value", "required"];
|
|
10473
|
+
const _hoisted_3$o = ["for"];
|
|
10474
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
10475
10475
|
__name: "CheckInput",
|
|
10476
10476
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
10477
10477
|
label: {},
|
|
@@ -10505,32 +10505,32 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
10505
10505
|
required: _ctx.required,
|
|
10506
10506
|
type: "checkbox",
|
|
10507
10507
|
class: "me-05"
|
|
10508
|
-
}, null, 8, _hoisted_2$
|
|
10508
|
+
}, null, 8, _hoisted_2$v), [
|
|
10509
10509
|
[vue.vModelCheckbox, checked.value]
|
|
10510
10510
|
]),
|
|
10511
10511
|
vue.createElementVNode("label", { for: inputId.value }, [
|
|
10512
10512
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
10513
10513
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
10514
10514
|
], true)
|
|
10515
|
-
], 8, _hoisted_3$
|
|
10516
|
-
], 10, _hoisted_1$
|
|
10515
|
+
], 8, _hoisted_3$o)
|
|
10516
|
+
], 10, _hoisted_1$G);
|
|
10517
10517
|
};
|
|
10518
10518
|
}
|
|
10519
10519
|
});
|
|
10520
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10521
|
-
const _hoisted_1$
|
|
10522
|
-
const _hoisted_2$
|
|
10520
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-03ed2982"]]);
|
|
10521
|
+
const _hoisted_1$F = { class: "mb-05" };
|
|
10522
|
+
const _hoisted_2$u = {
|
|
10523
10523
|
key: 0,
|
|
10524
10524
|
class: "label txt-start"
|
|
10525
10525
|
};
|
|
10526
|
-
const _hoisted_3$
|
|
10526
|
+
const _hoisted_3$n = {
|
|
10527
10527
|
key: 1,
|
|
10528
10528
|
class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
|
|
10529
10529
|
};
|
|
10530
|
-
const _hoisted_4$
|
|
10531
|
-
const _hoisted_5$
|
|
10532
|
-
const _hoisted_6$
|
|
10533
|
-
const _sfc_main$
|
|
10530
|
+
const _hoisted_4$g = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
|
|
10531
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
10532
|
+
const _hoisted_6$c = ["onKeydown"];
|
|
10533
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
10534
10534
|
__name: "Index",
|
|
10535
10535
|
props: {
|
|
10536
10536
|
language: {},
|
|
@@ -10612,19 +10612,19 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
10612
10612
|
}
|
|
10613
10613
|
}, { immediate: true });
|
|
10614
10614
|
return (_ctx, _cache) => {
|
|
10615
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10616
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
10617
|
-
vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
10615
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
10616
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
10617
|
+
vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$n, [
|
|
10618
10618
|
vue.createElementVNode("div", {
|
|
10619
10619
|
class: "relative block h-100",
|
|
10620
10620
|
style: vue.normalizeStyle({ height: `calc(${vue.unref(elHeight)} - 2rem)` })
|
|
10621
10621
|
}, [
|
|
10622
|
-
vue.createElementVNode("pre", _hoisted_4$
|
|
10622
|
+
vue.createElementVNode("pre", _hoisted_4$g, [
|
|
10623
10623
|
_cache[2] || (_cache[2] = vue.createTextVNode(" ")),
|
|
10624
10624
|
vue.createElementVNode("code", {
|
|
10625
10625
|
class: vue.normalizeClass(["absolute inset-0", className.value]),
|
|
10626
10626
|
innerHTML: highlightedCode.value
|
|
10627
|
-
}, null, 10, _hoisted_5$
|
|
10627
|
+
}, null, 10, _hoisted_5$f),
|
|
10628
10628
|
_cache[3] || (_cache[3] = vue.createTextVNode("\n "))
|
|
10629
10629
|
]),
|
|
10630
10630
|
!_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
@@ -10639,7 +10639,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
10639
10639
|
"data-gramm": "false",
|
|
10640
10640
|
onKeydown: vue.withKeys(vue.withModifiers(handleTab, ["prevent"]), ["tab"]),
|
|
10641
10641
|
onInput: _cache[1] || (_cache[1] = ($event) => emit2("update:modelValue", vue.unref(code)))
|
|
10642
|
-
}, null, 40, _hoisted_6$
|
|
10642
|
+
}, null, 40, _hoisted_6$c)), [
|
|
10643
10643
|
[vue.vModelText, vue.unref(code)]
|
|
10644
10644
|
]) : vue.createCommentVNode("", true)
|
|
10645
10645
|
], 4)
|
|
@@ -10648,10 +10648,10 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
10648
10648
|
};
|
|
10649
10649
|
}
|
|
10650
10650
|
});
|
|
10651
|
-
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10652
|
-
const _hoisted_1$
|
|
10653
|
-
const _hoisted_2$
|
|
10654
|
-
const _sfc_main$
|
|
10651
|
+
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1fbc9b61"]]);
|
|
10652
|
+
const _hoisted_1$E = ["title"];
|
|
10653
|
+
const _hoisted_2$t = ["id", "placeholder", "required"];
|
|
10654
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
10655
10655
|
__name: "ColorPicker",
|
|
10656
10656
|
props: {
|
|
10657
10657
|
label: {},
|
|
@@ -10689,11 +10689,11 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
10689
10689
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
10690
10690
|
class: { "no-edit": !_ctx.editMode },
|
|
10691
10691
|
required: _ctx.required
|
|
10692
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_2$
|
|
10692
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_2$t), [
|
|
10693
10693
|
[vue.vModelText, inputVal.value]
|
|
10694
10694
|
])
|
|
10695
10695
|
])
|
|
10696
|
-
], 10, _hoisted_1$
|
|
10696
|
+
], 10, _hoisted_1$E)) : vue.createCommentVNode("", true);
|
|
10697
10697
|
};
|
|
10698
10698
|
}
|
|
10699
10699
|
});
|
|
@@ -19251,9 +19251,9 @@ const eo = ({
|
|
|
19251
19251
|
Object.entries(go).forEach(([e, t]) => {
|
|
19252
19252
|
e !== "default" && (Hn[e] = t);
|
|
19253
19253
|
});
|
|
19254
|
-
const _hoisted_1$
|
|
19255
|
-
const _hoisted_2$
|
|
19256
|
-
const _sfc_main$
|
|
19254
|
+
const _hoisted_1$D = ["title"];
|
|
19255
|
+
const _hoisted_2$s = { key: 0 };
|
|
19256
|
+
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
19257
19257
|
__name: "DateInput",
|
|
19258
19258
|
props: {
|
|
19259
19259
|
required: { type: Boolean },
|
|
@@ -19295,7 +19295,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
19295
19295
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19296
19296
|
title: _ctx.label
|
|
19297
19297
|
}, [
|
|
19298
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
19298
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
19299
19299
|
vue.createVNode(vue.unref(Hn), vue.mergeProps({
|
|
19300
19300
|
ref_key: "datePicker",
|
|
19301
19301
|
ref: datePicker,
|
|
@@ -19311,10 +19311,374 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
19311
19311
|
"minutes-grid-increment": _ctx.minutesGridIncrement,
|
|
19312
19312
|
"start-time": { hours: 8, minutes: 0 }
|
|
19313
19313
|
}), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
|
|
19314
|
+
], 10, _hoisted_1$D);
|
|
19315
|
+
};
|
|
19316
|
+
}
|
|
19317
|
+
});
|
|
19318
|
+
const _hoisted_1$C = ["title"];
|
|
19319
|
+
const _hoisted_2$r = { key: 0 };
|
|
19320
|
+
const _hoisted_3$m = {
|
|
19321
|
+
key: 0,
|
|
19322
|
+
class: "required"
|
|
19323
|
+
};
|
|
19324
|
+
const _hoisted_4$f = { class: "date-picker-container" };
|
|
19325
|
+
const _hoisted_5$e = ["type", "value", "min", "max", "required", "disabled"];
|
|
19326
|
+
const _hoisted_6$b = { class: "calendar-container" };
|
|
19327
|
+
const _hoisted_7$8 = { class: "calendar-section" };
|
|
19328
|
+
const _hoisted_8$5 = { class: "calendar-header" };
|
|
19329
|
+
const _hoisted_9$4 = { class: "month-year-selector" };
|
|
19330
|
+
const _hoisted_10$4 = { class: "month-year" };
|
|
19331
|
+
const _hoisted_11$3 = {
|
|
19332
|
+
key: 0,
|
|
19333
|
+
class: "calendar-grid"
|
|
19334
|
+
};
|
|
19335
|
+
const _hoisted_12$3 = ["disabled", "onClick"];
|
|
19336
|
+
const _hoisted_13$3 = {
|
|
19337
|
+
key: 1,
|
|
19338
|
+
class: "month-grid"
|
|
19339
|
+
};
|
|
19340
|
+
const _hoisted_14$2 = ["disabled", "onClick"];
|
|
19341
|
+
const _hoisted_15$1 = {
|
|
19342
|
+
key: 2,
|
|
19343
|
+
class: "year-grid"
|
|
19344
|
+
};
|
|
19345
|
+
const _hoisted_16 = ["disabled", "onClick"];
|
|
19346
|
+
const _hoisted_17 = {
|
|
19347
|
+
key: 0,
|
|
19348
|
+
class: "time-picker"
|
|
19349
|
+
};
|
|
19350
|
+
const _hoisted_18 = { class: "time-input-group" };
|
|
19351
|
+
const _hoisted_19 = { class: "timezone-display" };
|
|
19352
|
+
const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
19353
|
+
__name: "DatePick",
|
|
19354
|
+
props: {
|
|
19355
|
+
required: { type: Boolean },
|
|
19356
|
+
label: {},
|
|
19357
|
+
editMode: { type: Boolean, default: true },
|
|
19358
|
+
small: { type: Boolean, default: false },
|
|
19359
|
+
enableTime: { type: Boolean, default: false },
|
|
19360
|
+
modelValue: {},
|
|
19361
|
+
min: {},
|
|
19362
|
+
max: {},
|
|
19363
|
+
timezone: { default: "UTC" }
|
|
19364
|
+
},
|
|
19365
|
+
emits: ["update:modelValue"],
|
|
19366
|
+
setup(__props, { emit: __emit }) {
|
|
19367
|
+
const props2 = __props;
|
|
19368
|
+
const emit2 = __emit;
|
|
19369
|
+
let isOpen = vue.ref(false);
|
|
19370
|
+
let currentMonth = vue.ref(/* @__PURE__ */ new Date());
|
|
19371
|
+
let currentView = vue.ref("days");
|
|
19372
|
+
const inputType = vue.computed(() => props2.enableTime ? "datetime-local" : "date");
|
|
19373
|
+
function formatDate(date2) {
|
|
19374
|
+
if (!date2) return "";
|
|
19375
|
+
const dateObj = typeof date2 === "string" ? new Date(date2) : date2;
|
|
19376
|
+
return props2.enableTime ? dateObj.toISOString().slice(0, 16) : dateObj.toISOString().split("T")[0];
|
|
19377
|
+
}
|
|
19378
|
+
const formattedValue = vue.computed(() => formatDate(props2.modelValue));
|
|
19379
|
+
const formattedMin = vue.computed(() => formatDate(props2.min));
|
|
19380
|
+
const formattedMax = vue.computed(() => formatDate(props2.max));
|
|
19381
|
+
const selectedDate = vue.computed(() => {
|
|
19382
|
+
if (!props2.modelValue) return null;
|
|
19383
|
+
return typeof props2.modelValue === "string" ? new Date(props2.modelValue) : props2.modelValue;
|
|
19384
|
+
});
|
|
19385
|
+
const currentMonthDays = vue.computed(() => {
|
|
19386
|
+
const year = currentMonth.value.getFullYear();
|
|
19387
|
+
const month = currentMonth.value.getMonth();
|
|
19388
|
+
const firstDay = new Date(year, month, 1);
|
|
19389
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
19390
|
+
const days = [];
|
|
19391
|
+
for (let i2 = 0; i2 < firstDay.getDay(); i2++) days.push(null);
|
|
19392
|
+
for (let i2 = 1; i2 <= lastDay.getDate(); i2++) days.push(new Date(year, month, i2));
|
|
19393
|
+
return days;
|
|
19394
|
+
});
|
|
19395
|
+
const currentMonthValue = vue.computed(() => ({
|
|
19396
|
+
month: currentMonth.value.getMonth(),
|
|
19397
|
+
year: currentMonth.value.getFullYear(),
|
|
19398
|
+
formatted: {
|
|
19399
|
+
month: currentMonth.value.toLocaleString("default", { month: "long", timeZone: props2.timezone }),
|
|
19400
|
+
year: currentMonth.value.toLocaleString("default", { year: "numeric", timeZone: props2.timezone })
|
|
19401
|
+
}
|
|
19402
|
+
}));
|
|
19403
|
+
const months = vue.computed(
|
|
19404
|
+
() => Array.from({ length: 12 }, (_2, i2) => {
|
|
19405
|
+
const date2 = new Date(currentMonthValue.value.year, i2, 1);
|
|
19406
|
+
return {
|
|
19407
|
+
name: date2.toLocaleString("default", { month: "short" }),
|
|
19408
|
+
value: i2,
|
|
19409
|
+
disabled: isDateDisabled(date2)
|
|
19410
|
+
};
|
|
19411
|
+
})
|
|
19412
|
+
);
|
|
19413
|
+
const years = vue.computed(() => {
|
|
19414
|
+
const startYear = currentMonthValue.value.year - 10;
|
|
19415
|
+
return Array.from({ length: 21 }, (_2, i2) => ({
|
|
19416
|
+
value: startYear + i2,
|
|
19417
|
+
disabled: isYearDisabled(startYear + i2)
|
|
19418
|
+
}));
|
|
19419
|
+
});
|
|
19420
|
+
function isDateDisabled(date2) {
|
|
19421
|
+
if (!date2) return true;
|
|
19422
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
19423
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
19424
|
+
if (minDate && date2 < minDate) return true;
|
|
19425
|
+
if (maxDate && date2 > maxDate) return true;
|
|
19426
|
+
return false;
|
|
19427
|
+
}
|
|
19428
|
+
function isYearDisabled(year) {
|
|
19429
|
+
const minDate = props2.min ? new Date(props2.min) : null;
|
|
19430
|
+
const maxDate = props2.max ? new Date(props2.max) : null;
|
|
19431
|
+
if (minDate && year < minDate.getFullYear()) return true;
|
|
19432
|
+
if (maxDate && year > maxDate.getFullYear()) return true;
|
|
19433
|
+
return false;
|
|
19434
|
+
}
|
|
19435
|
+
function selectMonth(monthIndex) {
|
|
19436
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), monthIndex, 1);
|
|
19437
|
+
currentView.value = "days";
|
|
19438
|
+
}
|
|
19439
|
+
function selectYear(year) {
|
|
19440
|
+
currentMonth.value = new Date(year, currentMonth.value.getMonth(), 1);
|
|
19441
|
+
currentView.value = "months";
|
|
19442
|
+
}
|
|
19443
|
+
function previousMonth() {
|
|
19444
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() - 1, 1);
|
|
19445
|
+
}
|
|
19446
|
+
function nextMonth() {
|
|
19447
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear(), currentMonth.value.getMonth() + 1, 1);
|
|
19448
|
+
}
|
|
19449
|
+
function previousYear() {
|
|
19450
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
19451
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() - offset2, currentMonth.value.getMonth(), 1);
|
|
19452
|
+
}
|
|
19453
|
+
function nextYear() {
|
|
19454
|
+
const offset2 = currentView.value === "months" ? 1 : 21;
|
|
19455
|
+
currentMonth.value = new Date(currentMonth.value.getFullYear() + offset2, currentMonth.value.getMonth(), 1);
|
|
19456
|
+
}
|
|
19457
|
+
function selectDate(date2) {
|
|
19458
|
+
var _a2, _b;
|
|
19459
|
+
if (!date2 || !props2.editMode) return;
|
|
19460
|
+
const newDate = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate(), 0, 0, 0);
|
|
19461
|
+
if (props2.enableTime) {
|
|
19462
|
+
const currentHours = ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? (/* @__PURE__ */ new Date()).getHours();
|
|
19463
|
+
const currentMinutes = ((_b = selectedDate.value) == null ? void 0 : _b.getMinutes()) ?? (/* @__PURE__ */ new Date()).getMinutes();
|
|
19464
|
+
newDate.setHours(currentHours);
|
|
19465
|
+
newDate.setMinutes(currentMinutes);
|
|
19466
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
19467
|
+
} else {
|
|
19468
|
+
emit2("update:modelValue", newDate.toISOString().split("T")[0]);
|
|
19469
|
+
isOpen.value = false;
|
|
19470
|
+
}
|
|
19471
|
+
}
|
|
19472
|
+
function handleInput(event) {
|
|
19473
|
+
const input = event.target;
|
|
19474
|
+
if (!input.value) {
|
|
19475
|
+
emit2("update:modelValue", "");
|
|
19476
|
+
return;
|
|
19477
|
+
}
|
|
19478
|
+
const date2 = new Date(input.value);
|
|
19479
|
+
emit2("update:modelValue", props2.enableTime ? date2.toISOString() : date2.toISOString().split("T")[0]);
|
|
19480
|
+
}
|
|
19481
|
+
const hours = vue.computed(() => {
|
|
19482
|
+
var _a2;
|
|
19483
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getHours()) ?? 0;
|
|
19484
|
+
});
|
|
19485
|
+
const minutes = vue.computed(() => {
|
|
19486
|
+
var _a2;
|
|
19487
|
+
return ((_a2 = selectedDate.value) == null ? void 0 : _a2.getMinutes()) ?? 0;
|
|
19488
|
+
});
|
|
19489
|
+
function handleHourInput(value) {
|
|
19490
|
+
if (!selectedDate.value) return;
|
|
19491
|
+
const newDate = new Date(selectedDate.value);
|
|
19492
|
+
newDate.setHours(value);
|
|
19493
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
19494
|
+
}
|
|
19495
|
+
function handleMinuteInput(value) {
|
|
19496
|
+
if (!selectedDate.value) return;
|
|
19497
|
+
const newDate = new Date(selectedDate.value);
|
|
19498
|
+
newDate.setMinutes(value);
|
|
19499
|
+
emit2("update:modelValue", newDate.toISOString());
|
|
19500
|
+
}
|
|
19501
|
+
function isSelected(date2) {
|
|
19502
|
+
if (!date2 || !selectedDate.value) return false;
|
|
19503
|
+
return date2.toISOString().split("T")[0] === selectedDate.value.toISOString().split("T")[0];
|
|
19504
|
+
}
|
|
19505
|
+
function isToday(date2) {
|
|
19506
|
+
if (!date2) return false;
|
|
19507
|
+
return date2.toISOString().split("T")[0] === (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
19508
|
+
}
|
|
19509
|
+
const timezoneDisplay = vue.computed(() => {
|
|
19510
|
+
if (!props2.enableTime) return "";
|
|
19511
|
+
try {
|
|
19512
|
+
return (/* @__PURE__ */ new Date()).toLocaleString("en-US", {
|
|
19513
|
+
timeZoneName: "short",
|
|
19514
|
+
timeZone: props2.timezone
|
|
19515
|
+
}).split(" ").pop();
|
|
19516
|
+
} catch {
|
|
19517
|
+
return "UTC";
|
|
19518
|
+
}
|
|
19519
|
+
});
|
|
19520
|
+
return (_ctx, _cache) => {
|
|
19521
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19522
|
+
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
19523
|
+
title: _ctx.label
|
|
19524
|
+
}, [
|
|
19525
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$r, [
|
|
19526
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
19527
|
+
_ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$m, "*")) : vue.createCommentVNode("", true)
|
|
19528
|
+
])) : vue.createCommentVNode("", true),
|
|
19529
|
+
vue.createVNode(vue.unref(kt$1), {
|
|
19530
|
+
shown: vue.unref(isOpen),
|
|
19531
|
+
triggers: [],
|
|
19532
|
+
placement: "bottom-start",
|
|
19533
|
+
distance: 4,
|
|
19534
|
+
onApplyShow: _cache[4] || (_cache[4] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true),
|
|
19535
|
+
onApplyHide: _cache[5] || (_cache[5] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
19536
|
+
}, {
|
|
19537
|
+
popper: vue.withCtx(() => [
|
|
19538
|
+
vue.createElementVNode("div", _hoisted_6$b, [
|
|
19539
|
+
vue.createElementVNode("div", _hoisted_7$8, [
|
|
19540
|
+
vue.createElementVNode("div", _hoisted_8$5, [
|
|
19541
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19542
|
+
vue.createVNode(vue.unref(Btn), {
|
|
19543
|
+
flat: "",
|
|
19544
|
+
icon: "chevron_left",
|
|
19545
|
+
onClick: previousMonth
|
|
19546
|
+
}),
|
|
19547
|
+
vue.createElementVNode("div", _hoisted_9$4, [
|
|
19548
|
+
vue.createElementVNode("button", {
|
|
19549
|
+
class: "month-btn",
|
|
19550
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.isRef(currentView) ? currentView.value = "months" : currentView = "months")
|
|
19551
|
+
}, vue.toDisplayString(currentMonthValue.value.formatted.month), 1),
|
|
19552
|
+
vue.createElementVNode("button", {
|
|
19553
|
+
class: "year-btn",
|
|
19554
|
+
onClick: _cache[2] || (_cache[2] = ($event) => vue.isRef(currentView) ? currentView.value = "years" : currentView = "years")
|
|
19555
|
+
}, vue.toDisplayString(currentMonthValue.value.formatted.year), 1)
|
|
19556
|
+
]),
|
|
19557
|
+
vue.createVNode(vue.unref(Btn), {
|
|
19558
|
+
flat: "",
|
|
19559
|
+
icon: "chevron_right",
|
|
19560
|
+
onClick: nextMonth
|
|
19561
|
+
})
|
|
19562
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
19563
|
+
vue.createVNode(vue.unref(Btn), {
|
|
19564
|
+
flat: "",
|
|
19565
|
+
icon: "chevron_left",
|
|
19566
|
+
onClick: previousYear
|
|
19567
|
+
}),
|
|
19568
|
+
vue.createElementVNode("span", _hoisted_10$4, vue.toDisplayString(currentMonthValue.value.formatted.year), 1),
|
|
19569
|
+
vue.createVNode(vue.unref(Btn), {
|
|
19570
|
+
flat: "",
|
|
19571
|
+
icon: "chevron_right",
|
|
19572
|
+
onClick: nextYear
|
|
19573
|
+
})
|
|
19574
|
+
], 64))
|
|
19575
|
+
]),
|
|
19576
|
+
vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$3, [
|
|
19577
|
+
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], (day) => {
|
|
19578
|
+
return vue.createElementVNode("div", {
|
|
19579
|
+
key: day,
|
|
19580
|
+
class: "weekday"
|
|
19581
|
+
}, vue.toDisplayString(day), 1);
|
|
19582
|
+
}), 64)),
|
|
19583
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentMonthDays.value, (date2, index2) => {
|
|
19584
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
19585
|
+
key: index2,
|
|
19586
|
+
type: "button",
|
|
19587
|
+
class: vue.normalizeClass(["day", {
|
|
19588
|
+
selected: isSelected(date2),
|
|
19589
|
+
today: isToday(date2),
|
|
19590
|
+
disabled: isDateDisabled(date2)
|
|
19591
|
+
}]),
|
|
19592
|
+
disabled: isDateDisabled(date2),
|
|
19593
|
+
onClick: ($event) => selectDate(date2)
|
|
19594
|
+
}, vue.toDisplayString(date2 == null ? void 0 : date2.getDate()), 11, _hoisted_12$3);
|
|
19595
|
+
}), 128))
|
|
19596
|
+
])) : vue.unref(currentView) === "months" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13$3, [
|
|
19597
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(months.value, (month) => {
|
|
19598
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
19599
|
+
key: month.value,
|
|
19600
|
+
class: vue.normalizeClass(["month-item", {
|
|
19601
|
+
selected: month.value === currentMonthValue.value.month,
|
|
19602
|
+
disabled: month.disabled
|
|
19603
|
+
}]),
|
|
19604
|
+
disabled: month.disabled,
|
|
19605
|
+
onClick: ($event) => selectMonth(month.value)
|
|
19606
|
+
}, vue.toDisplayString(month.name), 11, _hoisted_14$2);
|
|
19607
|
+
}), 128))
|
|
19608
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15$1, [
|
|
19609
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(years.value, (year) => {
|
|
19610
|
+
return vue.openBlock(), vue.createElementBlock("button", {
|
|
19611
|
+
key: year.value,
|
|
19612
|
+
class: vue.normalizeClass(["year-item", {
|
|
19613
|
+
selected: year.value === currentMonthValue.value.year,
|
|
19614
|
+
disabled: year.disabled
|
|
19615
|
+
}]),
|
|
19616
|
+
disabled: year.disabled,
|
|
19617
|
+
onClick: ($event) => selectYear(year.value)
|
|
19618
|
+
}, vue.toDisplayString(year.value), 11, _hoisted_16);
|
|
19619
|
+
}), 128))
|
|
19620
|
+
]))
|
|
19621
|
+
]),
|
|
19622
|
+
_ctx.enableTime && vue.unref(currentView) === "days" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
19623
|
+
vue.createElementVNode("div", _hoisted_18, [
|
|
19624
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
19625
|
+
center: "",
|
|
19626
|
+
"model-value": hours.value,
|
|
19627
|
+
disabled: !selectedDate.value,
|
|
19628
|
+
min: 0,
|
|
19629
|
+
max: 23,
|
|
19630
|
+
layout: "vertical",
|
|
19631
|
+
padZero: 2,
|
|
19632
|
+
"onUpdate:modelValue": handleHourInput
|
|
19633
|
+
}, null, 8, ["model-value", "disabled"]),
|
|
19634
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("span", null, ":", -1)),
|
|
19635
|
+
vue.createVNode(vue.unref(NumberInput), {
|
|
19636
|
+
center: "",
|
|
19637
|
+
"model-value": minutes.value,
|
|
19638
|
+
disabled: !selectedDate.value,
|
|
19639
|
+
min: 0,
|
|
19640
|
+
max: 59,
|
|
19641
|
+
padZero: 2,
|
|
19642
|
+
layout: "vertical",
|
|
19643
|
+
"onUpdate:modelValue": handleMinuteInput
|
|
19644
|
+
}, null, 8, ["model-value", "disabled"])
|
|
19645
|
+
]),
|
|
19646
|
+
vue.createElementVNode("span", _hoisted_19, vue.toDisplayString(timezoneDisplay.value), 1),
|
|
19647
|
+
selectedDate.value ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
19648
|
+
key: 0,
|
|
19649
|
+
flat: "",
|
|
19650
|
+
onClick: _cache[3] || (_cache[3] = ($event) => vue.isRef(isOpen) ? isOpen.value = false : isOpen = false)
|
|
19651
|
+
}, {
|
|
19652
|
+
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
19653
|
+
vue.createTextVNode(" Done ")
|
|
19654
|
+
])),
|
|
19655
|
+
_: 1
|
|
19656
|
+
})) : vue.createCommentVNode("", true)
|
|
19657
|
+
])) : vue.createCommentVNode("", true)
|
|
19658
|
+
])
|
|
19659
|
+
]),
|
|
19660
|
+
default: vue.withCtx(() => [
|
|
19661
|
+
vue.createElementVNode("div", _hoisted_4$f, [
|
|
19662
|
+
vue.createElementVNode("input", {
|
|
19663
|
+
type: inputType.value,
|
|
19664
|
+
value: formattedValue.value,
|
|
19665
|
+
min: formattedMin.value,
|
|
19666
|
+
max: formattedMax.value,
|
|
19667
|
+
required: _ctx.required,
|
|
19668
|
+
disabled: !_ctx.editMode,
|
|
19669
|
+
class: "date-input",
|
|
19670
|
+
onInput: handleInput,
|
|
19671
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(isOpen) ? isOpen.value = true : isOpen = true)
|
|
19672
|
+
}, null, 40, _hoisted_5$e)
|
|
19673
|
+
])
|
|
19674
|
+
]),
|
|
19675
|
+
_: 1
|
|
19676
|
+
}, 8, ["shown"])
|
|
19314
19677
|
], 10, _hoisted_1$C);
|
|
19315
19678
|
};
|
|
19316
19679
|
}
|
|
19317
19680
|
});
|
|
19681
|
+
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-e36ecd8c"]]);
|
|
19318
19682
|
const _hoisted_1$B = { class: "datetime-wrap" };
|
|
19319
19683
|
const _hoisted_2$q = { class: "date-wrap" };
|
|
19320
19684
|
const _hoisted_3$l = {
|
|
@@ -19704,7 +20068,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
19704
20068
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
|
|
19705
20069
|
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
19706
20070
|
_ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$o)) : vue.createCommentVNode("", true),
|
|
19707
|
-
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main
|
|
20071
|
+
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
19708
20072
|
key: 1,
|
|
19709
20073
|
outline: "",
|
|
19710
20074
|
class: "flex p-05 gap-1",
|
|
@@ -20014,7 +20378,8 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20014
20378
|
id: {},
|
|
20015
20379
|
helptext: {},
|
|
20016
20380
|
layout: {},
|
|
20017
|
-
center: { type: Boolean }
|
|
20381
|
+
center: { type: Boolean },
|
|
20382
|
+
padZero: {}
|
|
20018
20383
|
},
|
|
20019
20384
|
emits: ["update:modelValue"],
|
|
20020
20385
|
setup(__props, { emit: __emit }) {
|
|
@@ -20034,7 +20399,11 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20034
20399
|
emit2("update:modelValue", numberValue.value);
|
|
20035
20400
|
}
|
|
20036
20401
|
function formatNumber2(num) {
|
|
20037
|
-
|
|
20402
|
+
let formatted = num.toString();
|
|
20403
|
+
if (__props.padZero && __props.padZero > 0) {
|
|
20404
|
+
formatted = formatted.padStart(__props.padZero, "0");
|
|
20405
|
+
}
|
|
20406
|
+
return formatted.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
20038
20407
|
}
|
|
20039
20408
|
let formattedValue = vue.ref("");
|
|
20040
20409
|
function inputHandler() {
|
|
@@ -20070,6 +20439,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20070
20439
|
flat: "",
|
|
20071
20440
|
icon: "add",
|
|
20072
20441
|
class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
|
|
20442
|
+
tabindex: "-1",
|
|
20073
20443
|
onClick: increment
|
|
20074
20444
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
20075
20445
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -20123,6 +20493,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20123
20493
|
flat: "",
|
|
20124
20494
|
icon: "remove",
|
|
20125
20495
|
class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
|
|
20496
|
+
tabindex: "-1",
|
|
20126
20497
|
onClick: decrement
|
|
20127
20498
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
20128
20499
|
_ctx.spinner && (!_ctx.layout || !btnLayouts.includes(_ctx.layout)) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c, [
|
|
@@ -20132,6 +20503,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20132
20503
|
thin: "",
|
|
20133
20504
|
class: "bgl-ctrl-num-btn ctrl-add color-gray top-bgl-ctrl-num-btn",
|
|
20134
20505
|
disabled: !canAdd.value,
|
|
20506
|
+
tabindex: "-1",
|
|
20135
20507
|
onClick: increment
|
|
20136
20508
|
}, null, 8, ["disabled"]),
|
|
20137
20509
|
vue.createVNode(vue.unref(Btn), {
|
|
@@ -20140,6 +20512,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20140
20512
|
thin: "",
|
|
20141
20513
|
class: "bgl-ctrl-num-btn ctrl-remove color-gray",
|
|
20142
20514
|
disabled: !canDecrement.value,
|
|
20515
|
+
tabindex: "-1",
|
|
20143
20516
|
onClick: decrement
|
|
20144
20517
|
}, null, 8, ["disabled"])
|
|
20145
20518
|
])) : vue.createCommentVNode("", true)
|
|
@@ -20149,7 +20522,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20149
20522
|
};
|
|
20150
20523
|
}
|
|
20151
20524
|
});
|
|
20152
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
20525
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f265687e"]]);
|
|
20153
20526
|
const _hoisted_1$w = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
20154
20527
|
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
20155
20528
|
__name: "OTP",
|
|
@@ -20812,7 +21185,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
20812
21185
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
|
|
20813
21186
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
20814
21187
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
20815
|
-
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
21188
|
+
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
20816
21189
|
key: 0,
|
|
20817
21190
|
placement: "bottom-start",
|
|
20818
21191
|
thin: "",
|
|
@@ -22110,7 +22483,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22110
22483
|
}
|
|
22111
22484
|
});
|
|
22112
22485
|
return (_ctx, _cache) => {
|
|
22113
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
22486
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
22114
22487
|
ref_key: "dropdown",
|
|
22115
22488
|
ref: dropdown,
|
|
22116
22489
|
shown: vue.unref(open),
|
|
@@ -22189,7 +22562,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22189
22562
|
height: "25px",
|
|
22190
22563
|
class: "mx-1 my-1"
|
|
22191
22564
|
})) : vue.createCommentVNode("", true),
|
|
22192
|
-
vue.createVNode(vue.unref(_sfc_main
|
|
22565
|
+
vue.createVNode(vue.unref(_sfc_main$$), {
|
|
22193
22566
|
class: "p-05",
|
|
22194
22567
|
style: vue.normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
22195
22568
|
}, {
|
|
@@ -30348,7 +30721,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30348
30721
|
vue.withKeys(reset, ["tab"])
|
|
30349
30722
|
]
|
|
30350
30723
|
}, [
|
|
30351
|
-
!computedDropDownOptions.value.hide ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
30724
|
+
!computedDropDownOptions.value.hide ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
30352
30725
|
key: 0,
|
|
30353
30726
|
ref_key: "phoneDropdown",
|
|
30354
30727
|
ref: phoneDropdown,
|
|
@@ -30815,7 +31188,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
30815
31188
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
30816
31189
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$9, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
30817
31190
|
_ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$7)) : vue.createCommentVNode("", true),
|
|
30818
|
-
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main
|
|
31191
|
+
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
30819
31192
|
key: 2,
|
|
30820
31193
|
outline: "",
|
|
30821
31194
|
class: "flex p-05 gap-1",
|
|
@@ -31111,7 +31484,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
31111
31484
|
},
|
|
31112
31485
|
setup(__props) {
|
|
31113
31486
|
return (_ctx, _cache) => {
|
|
31114
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main
|
|
31487
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
|
|
31115
31488
|
default: vue.withCtx(() => [
|
|
31116
31489
|
vue.renderSlot(_ctx.$slots, "brand", {}, void 0, true),
|
|
31117
31490
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navLinks, (nav, i2) => {
|
|
@@ -31212,7 +31585,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
31212
31585
|
icon: "keyboard_arrow_right",
|
|
31213
31586
|
onClick: vue.unref(toggleMenu)
|
|
31214
31587
|
}, null, 8, ["onClick"]),
|
|
31215
|
-
vue.createVNode(vue.unref(_sfc_main
|
|
31588
|
+
vue.createVNode(vue.unref(_sfc_main$$), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
|
|
31216
31589
|
default: vue.withCtx(() => [
|
|
31217
31590
|
!vue.unref(isOpen) || !vue.unref(slots)["brand-open"] ? vue.renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : vue.createCommentVNode("", true),
|
|
31218
31591
|
vue.unref(isOpen) ? vue.renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : vue.createCommentVNode("", true),
|
|
@@ -31733,7 +32106,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
31733
32106
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
31734
32107
|
onKeydown: vue.withKeys(closeModal, ["esc"])
|
|
31735
32108
|
}, [
|
|
31736
|
-
vue.createVNode(vue.unref(_sfc_main
|
|
32109
|
+
vue.createVNode(vue.unref(_sfc_main$$), {
|
|
31737
32110
|
class: "modal",
|
|
31738
32111
|
style: vue.normalizeStyle({ ...maxWidth.value }),
|
|
31739
32112
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
@@ -31910,7 +32283,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
31910
32283
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
31911
32284
|
}, vue.createSlots({
|
|
31912
32285
|
default: vue.withCtx(() => [
|
|
31913
|
-
_ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
32286
|
+
_ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
|
|
31914
32287
|
key: 0,
|
|
31915
32288
|
ref_key: "form",
|
|
31916
32289
|
ref: form,
|
|
@@ -33029,7 +33402,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33029
33402
|
row,
|
|
33030
33403
|
field
|
|
33031
33404
|
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
|
|
33032
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
33405
|
+
vue.createVNode(vue.unref(_sfc_main$11), {
|
|
33033
33406
|
id: field.id,
|
|
33034
33407
|
class: "embedded-field",
|
|
33035
33408
|
field,
|
|
@@ -35155,33 +35528,34 @@ function timeAgo(date2, lang = "en") {
|
|
|
35155
35528
|
}
|
|
35156
35529
|
return selectedLang.justNow;
|
|
35157
35530
|
}
|
|
35158
|
-
exports.Accordion = _sfc_main$
|
|
35531
|
+
exports.Accordion = _sfc_main$18;
|
|
35159
35532
|
exports.AccordionItem = AccordionItem;
|
|
35160
|
-
exports.AddressSearch = _sfc_main$
|
|
35533
|
+
exports.AddressSearch = _sfc_main$16;
|
|
35161
35534
|
exports.Alert = Alert;
|
|
35162
35535
|
exports.Avatar = Avatar;
|
|
35163
35536
|
exports.Badge = Badge;
|
|
35164
|
-
exports.BagelForm = _sfc_main$
|
|
35537
|
+
exports.BagelForm = _sfc_main$S;
|
|
35165
35538
|
exports.BagelVue = BagelVue;
|
|
35166
|
-
exports.BglComponent = _sfc_main$
|
|
35167
|
-
exports.BglField = _sfc_main$
|
|
35168
|
-
exports.BglForm = _sfc_main$
|
|
35169
|
-
exports.BglMultiStepForm = _sfc_main$
|
|
35539
|
+
exports.BglComponent = _sfc_main$11;
|
|
35540
|
+
exports.BglField = _sfc_main$T;
|
|
35541
|
+
exports.BglForm = _sfc_main$S;
|
|
35542
|
+
exports.BglMultiStepForm = _sfc_main$R;
|
|
35170
35543
|
exports.BglVideo = BglVideo;
|
|
35171
35544
|
exports.BottomMenu = BottomMenu;
|
|
35172
35545
|
exports.Btn = Btn;
|
|
35173
|
-
exports.Card = _sfc_main
|
|
35546
|
+
exports.Card = _sfc_main$$;
|
|
35174
35547
|
exports.Carousel = Carousel;
|
|
35175
35548
|
exports.CheckInput = CheckInput;
|
|
35176
35549
|
exports.Checkbox = Checkbox;
|
|
35177
35550
|
exports.CodeEditor = CodeEditor;
|
|
35178
|
-
exports.ColorPicker = _sfc_main$
|
|
35551
|
+
exports.ColorPicker = _sfc_main$M;
|
|
35179
35552
|
exports.DataPreview = DataPreview;
|
|
35180
|
-
exports.DateInput = _sfc_main$
|
|
35553
|
+
exports.DateInput = _sfc_main$L;
|
|
35554
|
+
exports.DatePick = DatePick;
|
|
35181
35555
|
exports.DatePicker = _sfc_main$J;
|
|
35182
|
-
exports.Dropdown = _sfc_main$
|
|
35556
|
+
exports.Dropdown = _sfc_main$X;
|
|
35183
35557
|
exports.FORM_STATE_KEY = FORM_STATE_KEY;
|
|
35184
|
-
exports.FieldArray = _sfc_main$
|
|
35558
|
+
exports.FieldArray = _sfc_main$Q;
|
|
35185
35559
|
exports.FieldSetVue = FieldSetVue;
|
|
35186
35560
|
exports.FileUpload = FileUpload;
|
|
35187
35561
|
exports.Flag = Flag;
|
|
@@ -35192,7 +35566,7 @@ exports.IframeVue = _sfc_main$p;
|
|
|
35192
35566
|
exports.Image = Image$1;
|
|
35193
35567
|
exports.JSONInput = JSONInput;
|
|
35194
35568
|
exports.Layout = Layout;
|
|
35195
|
-
exports.Lineart = _sfc_main$
|
|
35569
|
+
exports.Lineart = _sfc_main$Z;
|
|
35196
35570
|
exports.ListItem = _sfc_main$h;
|
|
35197
35571
|
exports.ListView = ListView;
|
|
35198
35572
|
exports.Loading = Loading;
|