@bagelink/vue 0.0.1008 → 0.0.1010
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/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/FieldArray.vue.d.ts +34 -0
- package/dist/components/form/FieldArray.vue.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/index.cjs +182 -79
- package/dist/index.mjs +182 -79
- package/dist/style.css +23 -13
- package/package.json +1 -1
- package/src/components/form/BglField.vue +2 -0
- package/src/components/form/FieldArray.vue +103 -0
- package/src/components/form/index.ts +1 -0
- package/src/components/form/inputs/RichText/index.vue +9 -1
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
41
41
|
return txtField;
|
|
42
42
|
}
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
44
|
-
const _sfc_main$
|
|
44
|
+
const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
45
45
|
__name: "Accordion",
|
|
46
46
|
setup(__props) {
|
|
47
47
|
const state2 = vue.reactive({
|
|
@@ -55,10 +55,10 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const _hoisted_1$
|
|
58
|
+
const _hoisted_1$Q = ["aria-expanded", "aria-controls"];
|
|
59
59
|
const _hoisted_2$v = { class: "accordion-label" };
|
|
60
60
|
const _hoisted_3$p = ["id", "aria-hidden"];
|
|
61
|
-
const _sfc_main$
|
|
61
|
+
const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
|
|
62
62
|
__name: "AccordionItem",
|
|
63
63
|
props: {
|
|
64
64
|
label: {},
|
|
@@ -132,7 +132,7 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
|
132
132
|
}, [
|
|
133
133
|
vue.createVNode(vue.unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
134
134
|
], 2)) : vue.createCommentVNode("", true)
|
|
135
|
-
], 8, _hoisted_1$
|
|
135
|
+
], 8, _hoisted_1$Q),
|
|
136
136
|
vue.createVNode(vue.Transition, { name: "expand" }, {
|
|
137
137
|
default: vue.withCtx(() => [
|
|
138
138
|
vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -157,9 +157,9 @@ const _export_sfc = (sfc, props2) => {
|
|
|
157
157
|
}
|
|
158
158
|
return target;
|
|
159
159
|
};
|
|
160
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
161
|
-
const _hoisted_1$
|
|
162
|
-
const _sfc_main
|
|
160
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-3a286d21"]]);
|
|
161
|
+
const _hoisted_1$P = { class: "relative" };
|
|
162
|
+
const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
|
|
163
163
|
__name: "AddressSearch",
|
|
164
164
|
emits: ["addressSelected"],
|
|
165
165
|
setup(__props, { emit: __emit }) {
|
|
@@ -181,8 +181,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
181
181
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
182
182
|
}
|
|
183
183
|
return (_ctx, _cache) => {
|
|
184
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
185
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
184
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
|
|
185
|
+
vue.createVNode(vue.unref(_sfc_main$S), {
|
|
186
186
|
ref_key: "suggestion",
|
|
187
187
|
ref: suggestion,
|
|
188
188
|
noAutoFocus: true,
|
|
@@ -217,11 +217,11 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
-
const _hoisted_1$
|
|
220
|
+
const _hoisted_1$O = {
|
|
221
221
|
key: 1,
|
|
222
222
|
class: "bgl_btn-flex"
|
|
223
223
|
};
|
|
224
|
-
const _sfc_main
|
|
224
|
+
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
225
225
|
__name: "Btn",
|
|
226
226
|
props: {
|
|
227
227
|
disabled: { type: Boolean, default: false },
|
|
@@ -285,7 +285,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
285
285
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), {
|
|
286
286
|
key: 0,
|
|
287
287
|
size: "15"
|
|
288
|
-
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
288
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
|
|
289
289
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
|
|
290
290
|
key: 0,
|
|
291
291
|
icon: _ctx.icon
|
|
@@ -307,10 +307,10 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
311
|
-
const _hoisted_1$
|
|
310
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-521354bb"]]);
|
|
311
|
+
const _hoisted_1$N = ["dismissable"];
|
|
312
312
|
const _hoisted_2$u = { class: "m-0" };
|
|
313
|
-
const _sfc_main$
|
|
313
|
+
const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
|
|
314
314
|
__name: "Alert",
|
|
315
315
|
props: {
|
|
316
316
|
message: {},
|
|
@@ -346,13 +346,13 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
|
346
346
|
icon: "close",
|
|
347
347
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
348
348
|
})
|
|
349
|
-
], 10, _hoisted_1$
|
|
349
|
+
], 10, _hoisted_1$N)) : vue.createCommentVNode("", true);
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
354
|
-
const _hoisted_1$
|
|
355
|
-
const _sfc_main$
|
|
353
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-57141c32"]]);
|
|
354
|
+
const _hoisted_1$M = ["src", "alt"];
|
|
355
|
+
const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
|
|
356
356
|
__name: "Avatar",
|
|
357
357
|
props: {
|
|
358
358
|
fallback: {},
|
|
@@ -370,7 +370,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
370
370
|
key: 0,
|
|
371
371
|
src: _ctx.src,
|
|
372
372
|
alt: _ctx.name
|
|
373
|
-
}, null, 8, _hoisted_1$
|
|
373
|
+
}, null, 8, _hoisted_1$M)) : (vue.openBlock(), vue.createElementBlock("p", {
|
|
374
374
|
key: 1,
|
|
375
375
|
style: vue.normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
376
376
|
}, vue.toDisplayString((_ctx.fallback || vue.unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -378,8 +378,8 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
382
|
-
const _sfc_main$
|
|
381
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-46ad8c25"]]);
|
|
382
|
+
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
383
383
|
__name: "Badge",
|
|
384
384
|
props: {
|
|
385
385
|
color: {},
|
|
@@ -408,11 +408,11 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
412
|
-
const _hoisted_1$
|
|
411
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-2f3caf93"]]);
|
|
412
|
+
const _hoisted_1$L = ["src"];
|
|
413
413
|
const _hoisted_2$t = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
414
414
|
const _hoisted_3$o = ["src", "type"];
|
|
415
|
-
const _sfc_main$
|
|
415
|
+
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
416
416
|
__name: "BglVideo",
|
|
417
417
|
props: {
|
|
418
418
|
src: {},
|
|
@@ -489,7 +489,7 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
489
489
|
allowfullscreen: "",
|
|
490
490
|
title: "Video",
|
|
491
491
|
allow: "autoplay"
|
|
492
|
-
}, null, 12, _hoisted_1$
|
|
492
|
+
}, null, 12, _hoisted_1$L)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
493
493
|
key: 1,
|
|
494
494
|
ref_key: "video",
|
|
495
495
|
ref: video,
|
|
@@ -509,12 +509,12 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
513
|
-
const _hoisted_1$
|
|
512
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-006552f6"]]);
|
|
513
|
+
const _hoisted_1$K = {
|
|
514
514
|
key: 0,
|
|
515
515
|
class: "card_label"
|
|
516
516
|
};
|
|
517
|
-
const _sfc_main$
|
|
517
|
+
const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
|
|
518
518
|
__name: "Card",
|
|
519
519
|
props: {
|
|
520
520
|
label: {},
|
|
@@ -543,7 +543,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
543
543
|
}])
|
|
544
544
|
}, {
|
|
545
545
|
default: vue.withCtx(() => [
|
|
546
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$
|
|
546
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$K, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
547
547
|
vue.renderSlot(_ctx.$slots, "default")
|
|
548
548
|
]),
|
|
549
549
|
_: 3
|
|
@@ -553,13 +553,13 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
|
-
const _hoisted_1$
|
|
556
|
+
const _hoisted_1$J = ["dir"];
|
|
557
557
|
const _hoisted_2$s = {
|
|
558
558
|
key: 0,
|
|
559
559
|
class: "blocker"
|
|
560
560
|
};
|
|
561
561
|
const _hoisted_3$n = { class: "Handlers" };
|
|
562
|
-
const _sfc_main$
|
|
562
|
+
const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
563
563
|
__name: "Carousel",
|
|
564
564
|
props: {
|
|
565
565
|
autoHeight: { type: Boolean, default: false },
|
|
@@ -744,11 +744,11 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
744
744
|
}, void 0, true)
|
|
745
745
|
])
|
|
746
746
|
])
|
|
747
|
-
], 14, _hoisted_1$
|
|
747
|
+
], 14, _hoisted_1$J);
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
751
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-98e36ac5"]]);
|
|
752
752
|
function _isPlaceholder(a2) {
|
|
753
753
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
754
754
|
}
|
|
@@ -6692,13 +6692,13 @@ var script = vue.defineComponent({
|
|
|
6692
6692
|
return { bar, canvas, direction, mouse };
|
|
6693
6693
|
}
|
|
6694
6694
|
});
|
|
6695
|
-
const _hoisted_1$
|
|
6695
|
+
const _hoisted_1$I = {
|
|
6696
6696
|
key: 0,
|
|
6697
6697
|
class: "layer-hover-bar"
|
|
6698
6698
|
};
|
|
6699
6699
|
const _hoisted_2$r = ["x", "y", "width", "height"];
|
|
6700
6700
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6701
|
-
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$
|
|
6701
|
+
return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$I, [
|
|
6702
6702
|
vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
6703
6703
|
x: _ctx.bar.x,
|
|
6704
6704
|
y: _ctx.bar.y,
|
|
@@ -6710,7 +6710,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6710
6710
|
script.render = render;
|
|
6711
6711
|
script.__file = "src/components/HoverBar/index.vue";
|
|
6712
6712
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
6713
|
-
const _sfc_main$
|
|
6713
|
+
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
6714
6714
|
__name: "Lineart",
|
|
6715
6715
|
props: {
|
|
6716
6716
|
data: {},
|
|
@@ -6850,7 +6850,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
6850
6850
|
};
|
|
6851
6851
|
}
|
|
6852
6852
|
});
|
|
6853
|
-
const _hoisted_1$
|
|
6853
|
+
const _hoisted_1$H = {
|
|
6854
6854
|
key: 0,
|
|
6855
6855
|
class: "data"
|
|
6856
6856
|
};
|
|
@@ -6871,7 +6871,7 @@ const _hoisted_9$3 = {
|
|
|
6871
6871
|
key: 0,
|
|
6872
6872
|
class: "m-0"
|
|
6873
6873
|
};
|
|
6874
|
-
const _sfc_main$
|
|
6874
|
+
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
6875
6875
|
__name: "DataPreview",
|
|
6876
6876
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
6877
6877
|
showFields: {},
|
|
@@ -6907,7 +6907,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6907
6907
|
const computedSchema = vue.computed(() => getFallbackSchema([itemData.value], props2.showFields));
|
|
6908
6908
|
return (_ctx, _cache) => {
|
|
6909
6909
|
var _a2;
|
|
6910
|
-
return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
6910
|
+
return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
|
|
6911
6911
|
_ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$3), {
|
|
6912
6912
|
key: 0,
|
|
6913
6913
|
label: _ctx.title
|
|
@@ -6920,7 +6920,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6920
6920
|
vue.createElementVNode("div", _hoisted_3$l, [
|
|
6921
6921
|
vue.createElementVNode("p", _hoisted_4$d, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
|
|
6922
6922
|
]),
|
|
6923
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
6923
|
+
vue.createVNode(vue.unref(_sfc_main$P), {
|
|
6924
6924
|
modelValue: itemData.value,
|
|
6925
6925
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
|
|
6926
6926
|
label: "",
|
|
@@ -6949,7 +6949,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
6949
6949
|
};
|
|
6950
6950
|
}
|
|
6951
6951
|
});
|
|
6952
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6952
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-6c27f163"]]);
|
|
6953
6953
|
const sides = ["top", "right", "bottom", "left"];
|
|
6954
6954
|
const alignments = ["start", "end"];
|
|
6955
6955
|
const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -9491,7 +9491,7 @@ const Gt$1 = {
|
|
|
9491
9491
|
install: Ct$1,
|
|
9492
9492
|
options: h
|
|
9493
9493
|
};
|
|
9494
|
-
const _sfc_main$
|
|
9494
|
+
const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
9495
9495
|
__name: "Dropdown",
|
|
9496
9496
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
9497
9497
|
value: {},
|
|
@@ -9562,7 +9562,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
9562
9562
|
};
|
|
9563
9563
|
}
|
|
9564
9564
|
});
|
|
9565
|
-
const _sfc_main$
|
|
9565
|
+
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
9566
9566
|
__name: "Flag",
|
|
9567
9567
|
props: {
|
|
9568
9568
|
country: {},
|
|
@@ -9592,7 +9592,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
9592
9592
|
};
|
|
9593
9593
|
}
|
|
9594
9594
|
});
|
|
9595
|
-
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9595
|
+
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-f99f1900"]]);
|
|
9596
9596
|
const state$1 = vue.reactive(/* @__PURE__ */ new Map());
|
|
9597
9597
|
function useTabs(group) {
|
|
9598
9598
|
if (!state$1.has(group)) {
|
|
@@ -9606,8 +9606,8 @@ function useTabs(group) {
|
|
|
9606
9606
|
});
|
|
9607
9607
|
return { currentTab };
|
|
9608
9608
|
}
|
|
9609
|
-
const _hoisted_1$
|
|
9610
|
-
const _sfc_main$
|
|
9609
|
+
const _hoisted_1$G = ["onClick"];
|
|
9610
|
+
const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
9611
9611
|
__name: "TabsNav",
|
|
9612
9612
|
props: {
|
|
9613
9613
|
title: {},
|
|
@@ -9688,14 +9688,14 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
9688
9688
|
icon: tab.icon
|
|
9689
9689
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
9690
9690
|
vue.createTextVNode(" " + vue.toDisplayString(tabLabel(tab)), 1)
|
|
9691
|
-
], 10, _hoisted_1$
|
|
9691
|
+
], 10, _hoisted_1$G);
|
|
9692
9692
|
}), 128))
|
|
9693
9693
|
], 2);
|
|
9694
9694
|
};
|
|
9695
9695
|
}
|
|
9696
9696
|
});
|
|
9697
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9698
|
-
const _sfc_main$
|
|
9697
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-dbce6d28"]]);
|
|
9698
|
+
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
9699
9699
|
__name: "BglField",
|
|
9700
9700
|
props: {
|
|
9701
9701
|
field: {},
|
|
@@ -9712,6 +9712,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
9712
9712
|
customAttrs.value.multiline = true;
|
|
9713
9713
|
return TextInput;
|
|
9714
9714
|
}
|
|
9715
|
+
if (props2.field.$el === "array") return FieldArray;
|
|
9715
9716
|
if (props2.field.$el === "select") return SelectInput;
|
|
9716
9717
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
9717
9718
|
if (props2.field.$el === "check") return CheckInput;
|
|
@@ -9829,7 +9830,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
|
9829
9830
|
};
|
|
9830
9831
|
}
|
|
9831
9832
|
});
|
|
9832
|
-
const _sfc_main$
|
|
9833
|
+
const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
|
|
9833
9834
|
__name: "BglForm",
|
|
9834
9835
|
props: {
|
|
9835
9836
|
label: {},
|
|
@@ -9927,7 +9928,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
9927
9928
|
label: _ctx.label
|
|
9928
9929
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
9929
9930
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
|
|
9930
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
9931
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$P), {
|
|
9931
9932
|
key: field.id || `${i2}p`,
|
|
9932
9933
|
modelValue: vue.unref(data2),
|
|
9933
9934
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9951,7 +9952,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
9951
9952
|
label: _ctx.label
|
|
9952
9953
|
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
9953
9954
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(computedSchema.value, (field, i2) => {
|
|
9954
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
9955
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$P), {
|
|
9955
9956
|
key: field.id || `${i2}p`,
|
|
9956
9957
|
modelValue: vue.unref(data2),
|
|
9957
9958
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9970,8 +9971,8 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
9970
9971
|
};
|
|
9971
9972
|
}
|
|
9972
9973
|
});
|
|
9973
|
-
const _hoisted_1$
|
|
9974
|
-
const _sfc_main$
|
|
9974
|
+
const _hoisted_1$F = { key: 0 };
|
|
9975
|
+
const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
9975
9976
|
__name: "BglMultiStepForm",
|
|
9976
9977
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
9977
9978
|
bagelFormProps: { default: () => ({}) },
|
|
@@ -10038,8 +10039,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
10038
10039
|
mode: "out-in"
|
|
10039
10040
|
}, {
|
|
10040
10041
|
default: vue.withCtx(() => [
|
|
10041
|
-
!vue.unref(isStepping) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
10042
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
10042
|
+
!vue.unref(isStepping) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
|
|
10043
|
+
vue.createVNode(vue.unref(_sfc_main$O), vue.mergeProps({
|
|
10043
10044
|
ref_key: "formRef",
|
|
10044
10045
|
ref: formRef,
|
|
10045
10046
|
modelValue: formData.value,
|
|
@@ -10078,6 +10079,107 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
10078
10079
|
};
|
|
10079
10080
|
}
|
|
10080
10081
|
});
|
|
10082
|
+
const _hoisted_1$E = { class: "label mb-05" };
|
|
10083
|
+
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
10084
|
+
__name: "FieldArray",
|
|
10085
|
+
props: {
|
|
10086
|
+
el: { default: "div" },
|
|
10087
|
+
id: {},
|
|
10088
|
+
label: {},
|
|
10089
|
+
placeholder: {},
|
|
10090
|
+
children: {},
|
|
10091
|
+
class: { type: [String, Number, Boolean, Object] },
|
|
10092
|
+
attrs: {},
|
|
10093
|
+
required: { type: Boolean },
|
|
10094
|
+
disabled: { type: Boolean },
|
|
10095
|
+
helptext: {},
|
|
10096
|
+
options: {},
|
|
10097
|
+
defaultValue: {},
|
|
10098
|
+
add: { type: Boolean, default: true },
|
|
10099
|
+
delete: { type: Boolean, default: true },
|
|
10100
|
+
schema: {},
|
|
10101
|
+
modelValue: {}
|
|
10102
|
+
},
|
|
10103
|
+
emits: ["update:modelValue"],
|
|
10104
|
+
setup(__props, { emit: __emit }) {
|
|
10105
|
+
const props2 = __props;
|
|
10106
|
+
const emit2 = __emit;
|
|
10107
|
+
const data2 = vue.ref(props2.modelValue || []);
|
|
10108
|
+
function emitValue() {
|
|
10109
|
+
emit2("update:modelValue", data2.value);
|
|
10110
|
+
}
|
|
10111
|
+
function deleteItem(i2) {
|
|
10112
|
+
data2.value.splice(i2, 1);
|
|
10113
|
+
emitValue();
|
|
10114
|
+
}
|
|
10115
|
+
function addItem() {
|
|
10116
|
+
data2.value.push({});
|
|
10117
|
+
emitValue();
|
|
10118
|
+
}
|
|
10119
|
+
vue.computed(
|
|
10120
|
+
() => ({
|
|
10121
|
+
label: props2.label,
|
|
10122
|
+
placeholder: props2.placeholder,
|
|
10123
|
+
children: props2.children,
|
|
10124
|
+
class: props2.class,
|
|
10125
|
+
attrs: props2.attrs,
|
|
10126
|
+
required: props2.required,
|
|
10127
|
+
disabled: props2.disabled,
|
|
10128
|
+
helptext: props2.helptext,
|
|
10129
|
+
options: props2.options,
|
|
10130
|
+
defaultValue: props2.defaultValue,
|
|
10131
|
+
$el: props2.el
|
|
10132
|
+
})
|
|
10133
|
+
);
|
|
10134
|
+
return (_ctx, _cache) => {
|
|
10135
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
10136
|
+
vue.createElementVNode("p", _hoisted_1$E, vue.toDisplayString(_ctx.label), 1),
|
|
10137
|
+
vue.createElementVNode("div", null, [
|
|
10138
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(data2.value, (_2, i2) => {
|
|
10139
|
+
return vue.openBlock(), vue.createBlock(_sfc_main$W, {
|
|
10140
|
+
key: i2,
|
|
10141
|
+
outline: "",
|
|
10142
|
+
thin: "",
|
|
10143
|
+
class: "mb-05 itemBox bg-white transition"
|
|
10144
|
+
}, {
|
|
10145
|
+
default: vue.withCtx(() => [
|
|
10146
|
+
_ctx.schema ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$O), {
|
|
10147
|
+
key: 0,
|
|
10148
|
+
modelValue: data2.value[i2],
|
|
10149
|
+
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
10150
|
+
schema: _ctx.schema
|
|
10151
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])) : vue.createCommentVNode("", true),
|
|
10152
|
+
props2.delete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
10153
|
+
key: 1,
|
|
10154
|
+
icon: "delete",
|
|
10155
|
+
value: "Delete",
|
|
10156
|
+
class: "txt10 opacity-7 color-red",
|
|
10157
|
+
thin: "",
|
|
10158
|
+
flat: "",
|
|
10159
|
+
onClick: ($event) => deleteItem(i2)
|
|
10160
|
+
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
10161
|
+
]),
|
|
10162
|
+
_: 2
|
|
10163
|
+
}, 1024);
|
|
10164
|
+
}), 128)),
|
|
10165
|
+
_ctx.add ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
10166
|
+
key: 0,
|
|
10167
|
+
icon: "add",
|
|
10168
|
+
color: "gray",
|
|
10169
|
+
class: "w-100",
|
|
10170
|
+
onClick: addItem
|
|
10171
|
+
}, {
|
|
10172
|
+
default: vue.withCtx(() => [
|
|
10173
|
+
vue.createElementVNode("p", null, "Add " + vue.toDisplayString(_ctx.label), 1)
|
|
10174
|
+
]),
|
|
10175
|
+
_: 1
|
|
10176
|
+
})) : vue.createCommentVNode("", true)
|
|
10177
|
+
])
|
|
10178
|
+
]);
|
|
10179
|
+
};
|
|
10180
|
+
}
|
|
10181
|
+
});
|
|
10182
|
+
const FieldArray = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-e8cf25b3"]]);
|
|
10081
10183
|
const _hoisted_1$D = { class: "primary-checkbox" };
|
|
10082
10184
|
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
10083
10185
|
__name: "Checkbox",
|
|
@@ -19305,7 +19407,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
19305
19407
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
19306
19408
|
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
19307
19409
|
_ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$k)) : vue.createCommentVNode("", true),
|
|
19308
|
-
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
19410
|
+
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
|
|
19309
19411
|
key: 1,
|
|
19310
19412
|
outline: "",
|
|
19311
19413
|
class: "flex p-05 gap-1",
|
|
@@ -20122,7 +20224,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
20122
20224
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
|
|
20123
20225
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
20124
20226
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
20125
|
-
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
20227
|
+
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
|
|
20126
20228
|
key: 0,
|
|
20127
20229
|
placement: "bottom-start",
|
|
20128
20230
|
thin: "",
|
|
@@ -20877,7 +20979,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
20877
20979
|
};
|
|
20878
20980
|
}
|
|
20879
20981
|
});
|
|
20880
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
20982
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7a98aefd"]]);
|
|
20881
20983
|
const _hoisted_1$n = { class: "flex gap-05" };
|
|
20882
20984
|
const _hoisted_2$e = ["disabled"];
|
|
20883
20985
|
const _hoisted_3$b = { key: 1 };
|
|
@@ -21062,7 +21164,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
21062
21164
|
}
|
|
21063
21165
|
});
|
|
21064
21166
|
return (_ctx, _cache) => {
|
|
21065
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
21167
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
|
|
21066
21168
|
ref_key: "dropdown",
|
|
21067
21169
|
ref: dropdown,
|
|
21068
21170
|
shown: vue.unref(open),
|
|
@@ -21141,7 +21243,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
21141
21243
|
height: "25px",
|
|
21142
21244
|
class: "mx-1 my-1"
|
|
21143
21245
|
})) : vue.createCommentVNode("", true),
|
|
21144
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
21246
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
21145
21247
|
class: "p-05",
|
|
21146
21248
|
style: vue.normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
21147
21249
|
}, {
|
|
@@ -29299,7 +29401,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
29299
29401
|
vue.withKeys(reset, ["tab"])
|
|
29300
29402
|
]
|
|
29301
29403
|
}, [
|
|
29302
|
-
!computedDropDownOptions.value.hide ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
29404
|
+
!computedDropDownOptions.value.hide ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
|
|
29303
29405
|
key: 0,
|
|
29304
29406
|
ref_key: "phoneDropdown",
|
|
29305
29407
|
ref: phoneDropdown,
|
|
@@ -29664,7 +29766,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
29664
29766
|
},
|
|
29665
29767
|
setup(__props) {
|
|
29666
29768
|
return (_ctx, _cache) => {
|
|
29667
|
-
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
29769
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
|
|
29668
29770
|
default: vue.withCtx(() => [
|
|
29669
29771
|
vue.renderSlot(_ctx.$slots, "brand", {}, void 0, true),
|
|
29670
29772
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navLinks, (nav, i2) => {
|
|
@@ -29765,7 +29867,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
29765
29867
|
icon: "keyboard_arrow_right",
|
|
29766
29868
|
onClick: vue.unref(toggleMenu)
|
|
29767
29869
|
}, null, 8, ["onClick"]),
|
|
29768
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
29870
|
+
vue.createVNode(vue.unref(_sfc_main$W), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
|
|
29769
29871
|
default: vue.withCtx(() => [
|
|
29770
29872
|
!vue.unref(isOpen) || !vue.unref(slots)["brand-open"] ? vue.renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : vue.createCommentVNode("", true),
|
|
29771
29873
|
vue.unref(isOpen) ? vue.renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : vue.createCommentVNode("", true),
|
|
@@ -30289,7 +30391,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
30289
30391
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
30290
30392
|
onKeydown: vue.withKeys(closeModal, ["esc"])
|
|
30291
30393
|
}, [
|
|
30292
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
30394
|
+
vue.createVNode(vue.unref(_sfc_main$W), {
|
|
30293
30395
|
class: "modal",
|
|
30294
30396
|
style: vue.normalizeStyle({ ...maxWidth.value }),
|
|
30295
30397
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
@@ -30466,7 +30568,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
30466
30568
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
30467
30569
|
}, vue.createSlots({
|
|
30468
30570
|
default: vue.withCtx(() => [
|
|
30469
|
-
_ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
30571
|
+
_ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$O), {
|
|
30470
30572
|
key: 0,
|
|
30471
30573
|
ref_key: "form",
|
|
30472
30574
|
ref: form,
|
|
@@ -31584,7 +31686,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
31584
31686
|
row,
|
|
31585
31687
|
field
|
|
31586
31688
|
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$1, [
|
|
31587
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
31689
|
+
vue.createVNode(vue.unref(_sfc_main$P), {
|
|
31588
31690
|
class: "embedded-field",
|
|
31589
31691
|
field,
|
|
31590
31692
|
modelValue: row,
|
|
@@ -32764,7 +32866,7 @@ function frmRow(...children2) {
|
|
|
32764
32866
|
function bglForm(idOrField, ...schema) {
|
|
32765
32867
|
if (typeof idOrField === "string") {
|
|
32766
32868
|
return {
|
|
32767
|
-
$el: vue.markRaw(_sfc_main$
|
|
32869
|
+
$el: vue.markRaw(_sfc_main$O),
|
|
32768
32870
|
id: idOrField,
|
|
32769
32871
|
attrs: {
|
|
32770
32872
|
schema: [idOrField, ...schema]
|
|
@@ -32772,7 +32874,7 @@ function bglForm(idOrField, ...schema) {
|
|
|
32772
32874
|
};
|
|
32773
32875
|
}
|
|
32774
32876
|
return {
|
|
32775
|
-
$el: vue.markRaw(_sfc_main$
|
|
32877
|
+
$el: vue.markRaw(_sfc_main$O),
|
|
32776
32878
|
attrs: {
|
|
32777
32879
|
schema: [idOrField, ...schema]
|
|
32778
32880
|
}
|
|
@@ -33545,21 +33647,21 @@ function timeAgo(date2, lang = "en") {
|
|
|
33545
33647
|
}
|
|
33546
33648
|
return selectedLang.justNow;
|
|
33547
33649
|
}
|
|
33548
|
-
exports.Accordion = _sfc_main$
|
|
33650
|
+
exports.Accordion = _sfc_main$12;
|
|
33549
33651
|
exports.AccordionItem = AccordionItem;
|
|
33550
|
-
exports.AddressSearch = _sfc_main
|
|
33652
|
+
exports.AddressSearch = _sfc_main$10;
|
|
33551
33653
|
exports.Alert = Alert;
|
|
33552
33654
|
exports.Avatar = Avatar;
|
|
33553
33655
|
exports.Badge = Badge;
|
|
33554
|
-
exports.BagelForm = _sfc_main$
|
|
33656
|
+
exports.BagelForm = _sfc_main$O;
|
|
33555
33657
|
exports.BagelVue = BagelVue;
|
|
33556
|
-
exports.BglField = _sfc_main$
|
|
33557
|
-
exports.BglForm = _sfc_main$
|
|
33558
|
-
exports.BglMultiStepForm = _sfc_main$
|
|
33658
|
+
exports.BglField = _sfc_main$P;
|
|
33659
|
+
exports.BglForm = _sfc_main$O;
|
|
33660
|
+
exports.BglMultiStepForm = _sfc_main$N;
|
|
33559
33661
|
exports.BglVideo = BglVideo;
|
|
33560
33662
|
exports.BottomMenu = BottomMenu;
|
|
33561
33663
|
exports.Btn = Btn;
|
|
33562
|
-
exports.Card = _sfc_main$
|
|
33664
|
+
exports.Card = _sfc_main$W;
|
|
33563
33665
|
exports.Carousel = Carousel;
|
|
33564
33666
|
exports.CheckInput = CheckInput;
|
|
33565
33667
|
exports.Checkbox = Checkbox;
|
|
@@ -33568,7 +33670,8 @@ exports.ColorPicker = _sfc_main$I;
|
|
|
33568
33670
|
exports.DataPreview = DataPreview;
|
|
33569
33671
|
exports.DateInput = _sfc_main$H;
|
|
33570
33672
|
exports.DatePicker = _sfc_main$G;
|
|
33571
|
-
exports.Dropdown = _sfc_main$
|
|
33673
|
+
exports.Dropdown = _sfc_main$S;
|
|
33674
|
+
exports.FieldArray = FieldArray;
|
|
33572
33675
|
exports.FileUpload = FileUpload;
|
|
33573
33676
|
exports.Flag = Flag;
|
|
33574
33677
|
exports.IMAGE_FORMATS = IMAGE_FORMATS;
|
|
@@ -33578,7 +33681,7 @@ exports.IframeVue = _sfc_main$o;
|
|
|
33578
33681
|
exports.Image = Image$1;
|
|
33579
33682
|
exports.JSONInput = JSONInput;
|
|
33580
33683
|
exports.Layout = Layout;
|
|
33581
|
-
exports.Lineart = _sfc_main$
|
|
33684
|
+
exports.Lineart = _sfc_main$U;
|
|
33582
33685
|
exports.ListItem = _sfc_main$g;
|
|
33583
33686
|
exports.ListView = ListView;
|
|
33584
33687
|
exports.Loading = Loading;
|