@bagelink/vue 0.0.1008 → 0.0.1014
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 +185 -82
- package/dist/index.mjs +185 -82
- package/dist/style.css +31 -21
- package/package.json +1 -1
- package/src/components/AccordionItem.vue +3 -3
- 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.mjs
CHANGED
|
@@ -39,7 +39,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
39
39
|
return txtField;
|
|
40
40
|
}
|
|
41
41
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
42
|
-
const _sfc_main$
|
|
42
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
43
43
|
__name: "Accordion",
|
|
44
44
|
setup(__props) {
|
|
45
45
|
const state2 = reactive({
|
|
@@ -53,10 +53,10 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
const _hoisted_1$
|
|
56
|
+
const _hoisted_1$Q = ["aria-expanded", "aria-controls"];
|
|
57
57
|
const _hoisted_2$v = { class: "accordion-label" };
|
|
58
58
|
const _hoisted_3$p = ["id", "aria-hidden"];
|
|
59
|
-
const _sfc_main$
|
|
59
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
60
60
|
__name: "AccordionItem",
|
|
61
61
|
props: {
|
|
62
62
|
label: {},
|
|
@@ -71,7 +71,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
setup(__props, { emit: __emit }) {
|
|
72
72
|
const props2 = __props;
|
|
73
73
|
const emit2 = __emit;
|
|
74
|
-
let openVal = ref(
|
|
74
|
+
let openVal = ref(!!props2.open);
|
|
75
75
|
let isOpen = computed({
|
|
76
76
|
get: () => openVal.value,
|
|
77
77
|
set: (value) => {
|
|
@@ -79,13 +79,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
emit2("update:open", value);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
const accordionState = inject("accordionState"
|
|
82
|
+
const accordionState = inject("accordionState");
|
|
83
83
|
const id = props2.id || Math.random().toString(36).slice(7);
|
|
84
84
|
const computedIcon = computed(() => {
|
|
85
85
|
return props2.iconType === "plus_minus" ? isOpen.value ? "remove" : "add" : "expand_more";
|
|
86
86
|
});
|
|
87
87
|
const iconPosition = computed(() => props2.iconPosition || "end");
|
|
88
|
-
watch(() => props2.open, (
|
|
88
|
+
watch(() => props2.open, () => isOpen.value = props2.open, { immediate: true });
|
|
89
89
|
if (accordionState) {
|
|
90
90
|
watch(
|
|
91
91
|
() => accordionState.openItem,
|
|
@@ -130,7 +130,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
130
130
|
}, [
|
|
131
131
|
createVNode(unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
132
132
|
], 2)) : createCommentVNode("", true)
|
|
133
|
-
], 8, _hoisted_1$
|
|
133
|
+
], 8, _hoisted_1$Q),
|
|
134
134
|
createVNode(Transition, { name: "expand" }, {
|
|
135
135
|
default: withCtx(() => [
|
|
136
136
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -155,9 +155,9 @@ const _export_sfc = (sfc, props2) => {
|
|
|
155
155
|
}
|
|
156
156
|
return target;
|
|
157
157
|
};
|
|
158
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
159
|
-
const _hoisted_1$
|
|
160
|
-
const _sfc_main
|
|
158
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1e73ca3e"]]);
|
|
159
|
+
const _hoisted_1$P = { class: "relative" };
|
|
160
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
161
161
|
__name: "AddressSearch",
|
|
162
162
|
emits: ["addressSelected"],
|
|
163
163
|
setup(__props, { emit: __emit }) {
|
|
@@ -179,8 +179,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
179
179
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
180
180
|
}
|
|
181
181
|
return (_ctx, _cache) => {
|
|
182
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
183
|
-
createVNode(unref(_sfc_main$
|
|
182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
183
|
+
createVNode(unref(_sfc_main$S), {
|
|
184
184
|
ref_key: "suggestion",
|
|
185
185
|
ref: suggestion,
|
|
186
186
|
noAutoFocus: true,
|
|
@@ -215,11 +215,11 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
|
-
const _hoisted_1$
|
|
218
|
+
const _hoisted_1$O = {
|
|
219
219
|
key: 1,
|
|
220
220
|
class: "bgl_btn-flex"
|
|
221
221
|
};
|
|
222
|
-
const _sfc_main
|
|
222
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
223
223
|
__name: "Btn",
|
|
224
224
|
props: {
|
|
225
225
|
disabled: { type: Boolean, default: false },
|
|
@@ -283,7 +283,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
283
283
|
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
284
284
|
key: 0,
|
|
285
285
|
size: "15"
|
|
286
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
286
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$O, [
|
|
287
287
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
|
|
288
288
|
key: 0,
|
|
289
289
|
icon: _ctx.icon
|
|
@@ -305,10 +305,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
309
|
-
const _hoisted_1$
|
|
308
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-521354bb"]]);
|
|
309
|
+
const _hoisted_1$N = ["dismissable"];
|
|
310
310
|
const _hoisted_2$u = { class: "m-0" };
|
|
311
|
-
const _sfc_main$
|
|
311
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
312
312
|
__name: "Alert",
|
|
313
313
|
props: {
|
|
314
314
|
message: {},
|
|
@@ -344,13 +344,13 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
344
344
|
icon: "close",
|
|
345
345
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
346
346
|
})
|
|
347
|
-
], 10, _hoisted_1$
|
|
347
|
+
], 10, _hoisted_1$N)) : createCommentVNode("", true);
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
352
|
-
const _hoisted_1$
|
|
353
|
-
const _sfc_main$
|
|
351
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-57141c32"]]);
|
|
352
|
+
const _hoisted_1$M = ["src", "alt"];
|
|
353
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
354
354
|
__name: "Avatar",
|
|
355
355
|
props: {
|
|
356
356
|
fallback: {},
|
|
@@ -368,7 +368,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
368
368
|
key: 0,
|
|
369
369
|
src: _ctx.src,
|
|
370
370
|
alt: _ctx.name
|
|
371
|
-
}, null, 8, _hoisted_1$
|
|
371
|
+
}, null, 8, _hoisted_1$M)) : (openBlock(), createElementBlock("p", {
|
|
372
372
|
key: 1,
|
|
373
373
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
374
374
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -376,8 +376,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
380
|
-
const _sfc_main$
|
|
379
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-46ad8c25"]]);
|
|
380
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
381
381
|
__name: "Badge",
|
|
382
382
|
props: {
|
|
383
383
|
color: {},
|
|
@@ -406,11 +406,11 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
410
|
-
const _hoisted_1$
|
|
409
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-2f3caf93"]]);
|
|
410
|
+
const _hoisted_1$L = ["src"];
|
|
411
411
|
const _hoisted_2$t = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
412
412
|
const _hoisted_3$o = ["src", "type"];
|
|
413
|
-
const _sfc_main$
|
|
413
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
414
414
|
__name: "BglVideo",
|
|
415
415
|
props: {
|
|
416
416
|
src: {},
|
|
@@ -487,7 +487,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
487
487
|
allowfullscreen: "",
|
|
488
488
|
title: "Video",
|
|
489
489
|
allow: "autoplay"
|
|
490
|
-
}, null, 12, _hoisted_1$
|
|
490
|
+
}, null, 12, _hoisted_1$L)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
491
491
|
key: 1,
|
|
492
492
|
ref_key: "video",
|
|
493
493
|
ref: video,
|
|
@@ -507,12 +507,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
511
|
-
const _hoisted_1$
|
|
510
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-006552f6"]]);
|
|
511
|
+
const _hoisted_1$K = {
|
|
512
512
|
key: 0,
|
|
513
513
|
class: "card_label"
|
|
514
514
|
};
|
|
515
|
-
const _sfc_main$
|
|
515
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
516
516
|
__name: "Card",
|
|
517
517
|
props: {
|
|
518
518
|
label: {},
|
|
@@ -541,7 +541,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
541
541
|
}])
|
|
542
542
|
}, {
|
|
543
543
|
default: withCtx(() => [
|
|
544
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
544
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$K, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
545
545
|
renderSlot(_ctx.$slots, "default")
|
|
546
546
|
]),
|
|
547
547
|
_: 3
|
|
@@ -551,13 +551,13 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
});
|
|
554
|
-
const _hoisted_1$
|
|
554
|
+
const _hoisted_1$J = ["dir"];
|
|
555
555
|
const _hoisted_2$s = {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "blocker"
|
|
558
558
|
};
|
|
559
559
|
const _hoisted_3$n = { class: "Handlers" };
|
|
560
|
-
const _sfc_main$
|
|
560
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
561
561
|
__name: "Carousel",
|
|
562
562
|
props: {
|
|
563
563
|
autoHeight: { type: Boolean, default: false },
|
|
@@ -742,11 +742,11 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
742
742
|
}, void 0, true)
|
|
743
743
|
])
|
|
744
744
|
])
|
|
745
|
-
], 14, _hoisted_1$
|
|
745
|
+
], 14, _hoisted_1$J);
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
749
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-98e36ac5"]]);
|
|
750
750
|
function _isPlaceholder(a2) {
|
|
751
751
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
752
752
|
}
|
|
@@ -6690,13 +6690,13 @@ var script = defineComponent({
|
|
|
6690
6690
|
return { bar, canvas, direction, mouse };
|
|
6691
6691
|
}
|
|
6692
6692
|
});
|
|
6693
|
-
const _hoisted_1$
|
|
6693
|
+
const _hoisted_1$I = {
|
|
6694
6694
|
key: 0,
|
|
6695
6695
|
class: "layer-hover-bar"
|
|
6696
6696
|
};
|
|
6697
6697
|
const _hoisted_2$r = ["x", "y", "width", "height"];
|
|
6698
6698
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6699
|
-
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$
|
|
6699
|
+
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$I, [
|
|
6700
6700
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
6701
6701
|
x: _ctx.bar.x,
|
|
6702
6702
|
y: _ctx.bar.y,
|
|
@@ -6708,7 +6708,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6708
6708
|
script.render = render;
|
|
6709
6709
|
script.__file = "src/components/HoverBar/index.vue";
|
|
6710
6710
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
6711
|
-
const _sfc_main$
|
|
6711
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
6712
6712
|
__name: "Lineart",
|
|
6713
6713
|
props: {
|
|
6714
6714
|
data: {},
|
|
@@ -6848,7 +6848,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
6848
6848
|
};
|
|
6849
6849
|
}
|
|
6850
6850
|
});
|
|
6851
|
-
const _hoisted_1$
|
|
6851
|
+
const _hoisted_1$H = {
|
|
6852
6852
|
key: 0,
|
|
6853
6853
|
class: "data"
|
|
6854
6854
|
};
|
|
@@ -6869,7 +6869,7 @@ const _hoisted_9$3 = {
|
|
|
6869
6869
|
key: 0,
|
|
6870
6870
|
class: "m-0"
|
|
6871
6871
|
};
|
|
6872
|
-
const _sfc_main$
|
|
6872
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
6873
6873
|
__name: "DataPreview",
|
|
6874
6874
|
props: /* @__PURE__ */ mergeModels({
|
|
6875
6875
|
showFields: {},
|
|
@@ -6905,7 +6905,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6905
6905
|
const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
|
|
6906
6906
|
return (_ctx, _cache) => {
|
|
6907
6907
|
var _a2;
|
|
6908
|
-
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6908
|
+
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
6909
6909
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
6910
6910
|
key: 0,
|
|
6911
6911
|
label: _ctx.title
|
|
@@ -6918,7 +6918,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6918
6918
|
createElementVNode("div", _hoisted_3$l, [
|
|
6919
6919
|
createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
|
|
6920
6920
|
]),
|
|
6921
|
-
createVNode(unref(_sfc_main$
|
|
6921
|
+
createVNode(unref(_sfc_main$P), {
|
|
6922
6922
|
modelValue: itemData.value,
|
|
6923
6923
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
|
|
6924
6924
|
label: "",
|
|
@@ -6947,7 +6947,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
6947
6947
|
};
|
|
6948
6948
|
}
|
|
6949
6949
|
});
|
|
6950
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6950
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-6c27f163"]]);
|
|
6951
6951
|
const sides = ["top", "right", "bottom", "left"];
|
|
6952
6952
|
const alignments = ["start", "end"];
|
|
6953
6953
|
const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -9489,7 +9489,7 @@ const Gt$1 = {
|
|
|
9489
9489
|
install: Ct$1,
|
|
9490
9490
|
options: h
|
|
9491
9491
|
};
|
|
9492
|
-
const _sfc_main$
|
|
9492
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
9493
9493
|
__name: "Dropdown",
|
|
9494
9494
|
props: /* @__PURE__ */ mergeModels({
|
|
9495
9495
|
value: {},
|
|
@@ -9560,7 +9560,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
9560
9560
|
};
|
|
9561
9561
|
}
|
|
9562
9562
|
});
|
|
9563
|
-
const _sfc_main$
|
|
9563
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
9564
9564
|
__name: "Flag",
|
|
9565
9565
|
props: {
|
|
9566
9566
|
country: {},
|
|
@@ -9590,7 +9590,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
9590
9590
|
};
|
|
9591
9591
|
}
|
|
9592
9592
|
});
|
|
9593
|
-
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9593
|
+
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-f99f1900"]]);
|
|
9594
9594
|
const state$1 = reactive(/* @__PURE__ */ new Map());
|
|
9595
9595
|
function useTabs(group) {
|
|
9596
9596
|
if (!state$1.has(group)) {
|
|
@@ -9604,8 +9604,8 @@ function useTabs(group) {
|
|
|
9604
9604
|
});
|
|
9605
9605
|
return { currentTab };
|
|
9606
9606
|
}
|
|
9607
|
-
const _hoisted_1$
|
|
9608
|
-
const _sfc_main$
|
|
9607
|
+
const _hoisted_1$G = ["onClick"];
|
|
9608
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
9609
9609
|
__name: "TabsNav",
|
|
9610
9610
|
props: {
|
|
9611
9611
|
title: {},
|
|
@@ -9686,14 +9686,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9686
9686
|
icon: tab.icon
|
|
9687
9687
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
9688
9688
|
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
9689
|
-
], 10, _hoisted_1$
|
|
9689
|
+
], 10, _hoisted_1$G);
|
|
9690
9690
|
}), 128))
|
|
9691
9691
|
], 2);
|
|
9692
9692
|
};
|
|
9693
9693
|
}
|
|
9694
9694
|
});
|
|
9695
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9696
|
-
const _sfc_main$
|
|
9695
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-dbce6d28"]]);
|
|
9696
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9697
9697
|
__name: "BglField",
|
|
9698
9698
|
props: {
|
|
9699
9699
|
field: {},
|
|
@@ -9710,6 +9710,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9710
9710
|
customAttrs.value.multiline = true;
|
|
9711
9711
|
return TextInput;
|
|
9712
9712
|
}
|
|
9713
|
+
if (props2.field.$el === "array") return FieldArray;
|
|
9713
9714
|
if (props2.field.$el === "select") return SelectInput;
|
|
9714
9715
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
9715
9716
|
if (props2.field.$el === "check") return CheckInput;
|
|
@@ -9827,7 +9828,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9827
9828
|
};
|
|
9828
9829
|
}
|
|
9829
9830
|
});
|
|
9830
|
-
const _sfc_main$
|
|
9831
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9831
9832
|
__name: "BglForm",
|
|
9832
9833
|
props: {
|
|
9833
9834
|
label: {},
|
|
@@ -9925,7 +9926,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9925
9926
|
label: _ctx.label
|
|
9926
9927
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9927
9928
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9928
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9929
|
+
return openBlock(), createBlock(unref(_sfc_main$P), {
|
|
9929
9930
|
key: field.id || `${i2}p`,
|
|
9930
9931
|
modelValue: unref(data2),
|
|
9931
9932
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9949,7 +9950,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9949
9950
|
label: _ctx.label
|
|
9950
9951
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9951
9952
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9952
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9953
|
+
return openBlock(), createBlock(unref(_sfc_main$P), {
|
|
9953
9954
|
key: field.id || `${i2}p`,
|
|
9954
9955
|
modelValue: unref(data2),
|
|
9955
9956
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9968,8 +9969,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9968
9969
|
};
|
|
9969
9970
|
}
|
|
9970
9971
|
});
|
|
9971
|
-
const _hoisted_1$
|
|
9972
|
-
const _sfc_main$
|
|
9972
|
+
const _hoisted_1$F = { key: 0 };
|
|
9973
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9973
9974
|
__name: "BglMultiStepForm",
|
|
9974
9975
|
props: /* @__PURE__ */ mergeModels({
|
|
9975
9976
|
bagelFormProps: { default: () => ({}) },
|
|
@@ -10036,8 +10037,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10036
10037
|
mode: "out-in"
|
|
10037
10038
|
}, {
|
|
10038
10039
|
default: withCtx(() => [
|
|
10039
|
-
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10040
|
-
createVNode(unref(_sfc_main$
|
|
10040
|
+
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
10041
|
+
createVNode(unref(_sfc_main$O), mergeProps({
|
|
10041
10042
|
ref_key: "formRef",
|
|
10042
10043
|
ref: formRef,
|
|
10043
10044
|
modelValue: formData.value,
|
|
@@ -10076,6 +10077,107 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10076
10077
|
};
|
|
10077
10078
|
}
|
|
10078
10079
|
});
|
|
10080
|
+
const _hoisted_1$E = { class: "label mb-05" };
|
|
10081
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
10082
|
+
__name: "FieldArray",
|
|
10083
|
+
props: {
|
|
10084
|
+
el: { default: "div" },
|
|
10085
|
+
id: {},
|
|
10086
|
+
label: {},
|
|
10087
|
+
placeholder: {},
|
|
10088
|
+
children: {},
|
|
10089
|
+
class: { type: [String, Number, Boolean, Object] },
|
|
10090
|
+
attrs: {},
|
|
10091
|
+
required: { type: Boolean },
|
|
10092
|
+
disabled: { type: Boolean },
|
|
10093
|
+
helptext: {},
|
|
10094
|
+
options: {},
|
|
10095
|
+
defaultValue: {},
|
|
10096
|
+
add: { type: Boolean, default: true },
|
|
10097
|
+
delete: { type: Boolean, default: true },
|
|
10098
|
+
schema: {},
|
|
10099
|
+
modelValue: {}
|
|
10100
|
+
},
|
|
10101
|
+
emits: ["update:modelValue"],
|
|
10102
|
+
setup(__props, { emit: __emit }) {
|
|
10103
|
+
const props2 = __props;
|
|
10104
|
+
const emit2 = __emit;
|
|
10105
|
+
const data2 = ref(props2.modelValue || []);
|
|
10106
|
+
function emitValue() {
|
|
10107
|
+
emit2("update:modelValue", data2.value);
|
|
10108
|
+
}
|
|
10109
|
+
function deleteItem(i2) {
|
|
10110
|
+
data2.value.splice(i2, 1);
|
|
10111
|
+
emitValue();
|
|
10112
|
+
}
|
|
10113
|
+
function addItem() {
|
|
10114
|
+
data2.value.push({});
|
|
10115
|
+
emitValue();
|
|
10116
|
+
}
|
|
10117
|
+
computed(
|
|
10118
|
+
() => ({
|
|
10119
|
+
label: props2.label,
|
|
10120
|
+
placeholder: props2.placeholder,
|
|
10121
|
+
children: props2.children,
|
|
10122
|
+
class: props2.class,
|
|
10123
|
+
attrs: props2.attrs,
|
|
10124
|
+
required: props2.required,
|
|
10125
|
+
disabled: props2.disabled,
|
|
10126
|
+
helptext: props2.helptext,
|
|
10127
|
+
options: props2.options,
|
|
10128
|
+
defaultValue: props2.defaultValue,
|
|
10129
|
+
$el: props2.el
|
|
10130
|
+
})
|
|
10131
|
+
);
|
|
10132
|
+
return (_ctx, _cache) => {
|
|
10133
|
+
return openBlock(), createElementBlock("div", null, [
|
|
10134
|
+
createElementVNode("p", _hoisted_1$E, toDisplayString(_ctx.label), 1),
|
|
10135
|
+
createElementVNode("div", null, [
|
|
10136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
|
|
10137
|
+
return openBlock(), createBlock(_sfc_main$W, {
|
|
10138
|
+
key: i2,
|
|
10139
|
+
outline: "",
|
|
10140
|
+
thin: "",
|
|
10141
|
+
class: "mb-05 itemBox bg-white transition"
|
|
10142
|
+
}, {
|
|
10143
|
+
default: withCtx(() => [
|
|
10144
|
+
_ctx.schema ? (openBlock(), createBlock(unref(_sfc_main$O), {
|
|
10145
|
+
key: 0,
|
|
10146
|
+
modelValue: data2.value[i2],
|
|
10147
|
+
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
10148
|
+
schema: _ctx.schema
|
|
10149
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])) : createCommentVNode("", true),
|
|
10150
|
+
props2.delete ? (openBlock(), createBlock(unref(Btn), {
|
|
10151
|
+
key: 1,
|
|
10152
|
+
icon: "delete",
|
|
10153
|
+
value: "Delete",
|
|
10154
|
+
class: "txt10 opacity-7 color-red",
|
|
10155
|
+
thin: "",
|
|
10156
|
+
flat: "",
|
|
10157
|
+
onClick: ($event) => deleteItem(i2)
|
|
10158
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
10159
|
+
]),
|
|
10160
|
+
_: 2
|
|
10161
|
+
}, 1024);
|
|
10162
|
+
}), 128)),
|
|
10163
|
+
_ctx.add ? (openBlock(), createBlock(unref(Btn), {
|
|
10164
|
+
key: 0,
|
|
10165
|
+
icon: "add",
|
|
10166
|
+
color: "gray",
|
|
10167
|
+
class: "w-100",
|
|
10168
|
+
onClick: addItem
|
|
10169
|
+
}, {
|
|
10170
|
+
default: withCtx(() => [
|
|
10171
|
+
createElementVNode("p", null, "Add " + toDisplayString(_ctx.label), 1)
|
|
10172
|
+
]),
|
|
10173
|
+
_: 1
|
|
10174
|
+
})) : createCommentVNode("", true)
|
|
10175
|
+
])
|
|
10176
|
+
]);
|
|
10177
|
+
};
|
|
10178
|
+
}
|
|
10179
|
+
});
|
|
10180
|
+
const FieldArray = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-e8cf25b3"]]);
|
|
10079
10181
|
const _hoisted_1$D = { class: "primary-checkbox" };
|
|
10080
10182
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
10081
10183
|
__name: "Checkbox",
|
|
@@ -19303,7 +19405,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
19303
19405
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
19304
19406
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
19305
19407
|
_ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$k)) : createCommentVNode("", true),
|
|
19306
|
-
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
19408
|
+
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
19307
19409
|
key: 1,
|
|
19308
19410
|
outline: "",
|
|
19309
19411
|
class: "flex p-05 gap-1",
|
|
@@ -20120,7 +20222,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
20120
20222
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
20121
20223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
20122
20224
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
20123
|
-
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
20225
|
+
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
20124
20226
|
key: 0,
|
|
20125
20227
|
placement: "bottom-start",
|
|
20126
20228
|
thin: "",
|
|
@@ -20875,7 +20977,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
20875
20977
|
};
|
|
20876
20978
|
}
|
|
20877
20979
|
});
|
|
20878
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
20980
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7a98aefd"]]);
|
|
20879
20981
|
const _hoisted_1$n = { class: "flex gap-05" };
|
|
20880
20982
|
const _hoisted_2$e = ["disabled"];
|
|
20881
20983
|
const _hoisted_3$b = { key: 1 };
|
|
@@ -21060,7 +21162,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
21060
21162
|
}
|
|
21061
21163
|
});
|
|
21062
21164
|
return (_ctx, _cache) => {
|
|
21063
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
21165
|
+
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
21064
21166
|
ref_key: "dropdown",
|
|
21065
21167
|
ref: dropdown,
|
|
21066
21168
|
shown: unref(open),
|
|
@@ -21139,7 +21241,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
21139
21241
|
height: "25px",
|
|
21140
21242
|
class: "mx-1 my-1"
|
|
21141
21243
|
})) : createCommentVNode("", true),
|
|
21142
|
-
createVNode(unref(_sfc_main$
|
|
21244
|
+
createVNode(unref(_sfc_main$W), {
|
|
21143
21245
|
class: "p-05",
|
|
21144
21246
|
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
21145
21247
|
}, {
|
|
@@ -29297,7 +29399,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
29297
29399
|
withKeys(reset, ["tab"])
|
|
29298
29400
|
]
|
|
29299
29401
|
}, [
|
|
29300
|
-
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$
|
|
29402
|
+
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
29301
29403
|
key: 0,
|
|
29302
29404
|
ref_key: "phoneDropdown",
|
|
29303
29405
|
ref: phoneDropdown,
|
|
@@ -29662,7 +29764,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
29662
29764
|
},
|
|
29663
29765
|
setup(__props) {
|
|
29664
29766
|
return (_ctx, _cache) => {
|
|
29665
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
29767
|
+
return openBlock(), createBlock(unref(_sfc_main$W), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
|
|
29666
29768
|
default: withCtx(() => [
|
|
29667
29769
|
renderSlot(_ctx.$slots, "brand", {}, void 0, true),
|
|
29668
29770
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
|
|
@@ -29763,7 +29865,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29763
29865
|
icon: "keyboard_arrow_right",
|
|
29764
29866
|
onClick: unref(toggleMenu)
|
|
29765
29867
|
}, null, 8, ["onClick"]),
|
|
29766
|
-
createVNode(unref(_sfc_main$
|
|
29868
|
+
createVNode(unref(_sfc_main$W), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
|
|
29767
29869
|
default: withCtx(() => [
|
|
29768
29870
|
!unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
29769
29871
|
unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
@@ -30287,7 +30389,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
30287
30389
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
30288
30390
|
onKeydown: withKeys(closeModal, ["esc"])
|
|
30289
30391
|
}, [
|
|
30290
|
-
createVNode(unref(_sfc_main$
|
|
30392
|
+
createVNode(unref(_sfc_main$W), {
|
|
30291
30393
|
class: "modal",
|
|
30292
30394
|
style: normalizeStyle({ ...maxWidth.value }),
|
|
30293
30395
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -30464,7 +30566,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30464
30566
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
30465
30567
|
}, createSlots({
|
|
30466
30568
|
default: withCtx(() => [
|
|
30467
|
-
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$
|
|
30569
|
+
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$O), {
|
|
30468
30570
|
key: 0,
|
|
30469
30571
|
ref_key: "form",
|
|
30470
30572
|
ref: form,
|
|
@@ -31582,7 +31684,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31582
31684
|
row,
|
|
31583
31685
|
field
|
|
31584
31686
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
31585
|
-
createVNode(unref(_sfc_main$
|
|
31687
|
+
createVNode(unref(_sfc_main$P), {
|
|
31586
31688
|
class: "embedded-field",
|
|
31587
31689
|
field,
|
|
31588
31690
|
modelValue: row,
|
|
@@ -32762,7 +32864,7 @@ function frmRow(...children2) {
|
|
|
32762
32864
|
function bglForm(idOrField, ...schema) {
|
|
32763
32865
|
if (typeof idOrField === "string") {
|
|
32764
32866
|
return {
|
|
32765
|
-
$el: markRaw(_sfc_main$
|
|
32867
|
+
$el: markRaw(_sfc_main$O),
|
|
32766
32868
|
id: idOrField,
|
|
32767
32869
|
attrs: {
|
|
32768
32870
|
schema: [idOrField, ...schema]
|
|
@@ -32770,7 +32872,7 @@ function bglForm(idOrField, ...schema) {
|
|
|
32770
32872
|
};
|
|
32771
32873
|
}
|
|
32772
32874
|
return {
|
|
32773
|
-
$el: markRaw(_sfc_main$
|
|
32875
|
+
$el: markRaw(_sfc_main$O),
|
|
32774
32876
|
attrs: {
|
|
32775
32877
|
schema: [idOrField, ...schema]
|
|
32776
32878
|
}
|
|
@@ -33544,21 +33646,21 @@ function timeAgo(date2, lang = "en") {
|
|
|
33544
33646
|
return selectedLang.justNow;
|
|
33545
33647
|
}
|
|
33546
33648
|
export {
|
|
33547
|
-
_sfc_main$
|
|
33649
|
+
_sfc_main$12 as Accordion,
|
|
33548
33650
|
AccordionItem,
|
|
33549
|
-
_sfc_main
|
|
33651
|
+
_sfc_main$10 as AddressSearch,
|
|
33550
33652
|
Alert,
|
|
33551
33653
|
Avatar,
|
|
33552
33654
|
Badge,
|
|
33553
|
-
_sfc_main$
|
|
33655
|
+
_sfc_main$O as BagelForm,
|
|
33554
33656
|
BagelVue,
|
|
33555
|
-
_sfc_main$
|
|
33556
|
-
_sfc_main$
|
|
33557
|
-
_sfc_main$
|
|
33657
|
+
_sfc_main$P as BglField,
|
|
33658
|
+
_sfc_main$O as BglForm,
|
|
33659
|
+
_sfc_main$N as BglMultiStepForm,
|
|
33558
33660
|
BglVideo,
|
|
33559
33661
|
BottomMenu,
|
|
33560
33662
|
Btn,
|
|
33561
|
-
_sfc_main$
|
|
33663
|
+
_sfc_main$W as Card,
|
|
33562
33664
|
Carousel,
|
|
33563
33665
|
CheckInput,
|
|
33564
33666
|
Checkbox,
|
|
@@ -33567,7 +33669,8 @@ export {
|
|
|
33567
33669
|
DataPreview,
|
|
33568
33670
|
_sfc_main$H as DateInput,
|
|
33569
33671
|
_sfc_main$G as DatePicker,
|
|
33570
|
-
_sfc_main$
|
|
33672
|
+
_sfc_main$S as Dropdown,
|
|
33673
|
+
FieldArray,
|
|
33571
33674
|
FileUpload,
|
|
33572
33675
|
Flag,
|
|
33573
33676
|
IMAGE_FORMATS,
|
|
@@ -33577,7 +33680,7 @@ export {
|
|
|
33577
33680
|
Image$1 as Image,
|
|
33578
33681
|
JSONInput,
|
|
33579
33682
|
Layout,
|
|
33580
|
-
_sfc_main$
|
|
33683
|
+
_sfc_main$U as Lineart,
|
|
33581
33684
|
_sfc_main$g as ListItem,
|
|
33582
33685
|
ListView,
|
|
33583
33686
|
Loading,
|