@bagelink/vue 0.0.1006 → 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/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +2 -2
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- 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/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- package/dist/index.cjs +208 -94
- package/dist/index.mjs +208 -94
- package/dist/style.css +714 -107
- package/dist/utils/timeAgo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +2 -2
- package/src/components/Modal.vue +3 -1
- package/src/components/ModalForm.vue +2 -2
- 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/src/components/layout/SidebarMenu.vue +3 -4
- package/src/components/layout/Tabs.vue +2 -2
- package/src/components/layout/TabsNav.vue +4 -2
- package/src/styles/layout.css +350 -0
- package/src/styles/mobilLayout.css +347 -32
- package/src/utils/timeAgo.ts +13 -5
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: {},
|
|
@@ -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-3a286d21"]]);
|
|
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: {},
|
|
@@ -9629,7 +9629,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9629
9629
|
if (activeTab && tabsWrap.value) {
|
|
9630
9630
|
const { offsetLeft, offsetWidth } = activeTab;
|
|
9631
9631
|
tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
|
|
9632
|
-
tabsWrap.value
|
|
9632
|
+
if (tabsWrap.value) {
|
|
9633
|
+
tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
|
|
9634
|
+
}
|
|
9633
9635
|
}
|
|
9634
9636
|
}
|
|
9635
9637
|
function selectTab(tab) {
|
|
@@ -9670,7 +9672,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9670
9672
|
return openBlock(), createElementBlock("div", {
|
|
9671
9673
|
ref_key: "tabsWrap",
|
|
9672
9674
|
ref: tabsWrap,
|
|
9673
|
-
class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
|
|
9675
|
+
class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
|
|
9674
9676
|
}, [
|
|
9675
9677
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
|
|
9676
9678
|
return openBlock(), createElementBlock("button", {
|
|
@@ -9684,14 +9686,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
9684
9686
|
icon: tab.icon
|
|
9685
9687
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
9686
9688
|
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
9687
|
-
], 10, _hoisted_1$
|
|
9689
|
+
], 10, _hoisted_1$G);
|
|
9688
9690
|
}), 128))
|
|
9689
9691
|
], 2);
|
|
9690
9692
|
};
|
|
9691
9693
|
}
|
|
9692
9694
|
});
|
|
9693
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9694
|
-
const _sfc_main$
|
|
9695
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-dbce6d28"]]);
|
|
9696
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
9695
9697
|
__name: "BglField",
|
|
9696
9698
|
props: {
|
|
9697
9699
|
field: {},
|
|
@@ -9708,6 +9710,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9708
9710
|
customAttrs.value.multiline = true;
|
|
9709
9711
|
return TextInput;
|
|
9710
9712
|
}
|
|
9713
|
+
if (props2.field.$el === "array") return FieldArray;
|
|
9711
9714
|
if (props2.field.$el === "select") return SelectInput;
|
|
9712
9715
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
9713
9716
|
if (props2.field.$el === "check") return CheckInput;
|
|
@@ -9825,7 +9828,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
9825
9828
|
};
|
|
9826
9829
|
}
|
|
9827
9830
|
});
|
|
9828
|
-
const _sfc_main$
|
|
9831
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
9829
9832
|
__name: "BglForm",
|
|
9830
9833
|
props: {
|
|
9831
9834
|
label: {},
|
|
@@ -9923,7 +9926,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9923
9926
|
label: _ctx.label
|
|
9924
9927
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9925
9928
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9926
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9929
|
+
return openBlock(), createBlock(unref(_sfc_main$P), {
|
|
9927
9930
|
key: field.id || `${i2}p`,
|
|
9928
9931
|
modelValue: unref(data2),
|
|
9929
9932
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9947,7 +9950,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9947
9950
|
label: _ctx.label
|
|
9948
9951
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
9949
9952
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedSchema.value, (field, i2) => {
|
|
9950
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
9953
|
+
return openBlock(), createBlock(unref(_sfc_main$P), {
|
|
9951
9954
|
key: field.id || `${i2}p`,
|
|
9952
9955
|
modelValue: unref(data2),
|
|
9953
9956
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
|
|
@@ -9966,8 +9969,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
9966
9969
|
};
|
|
9967
9970
|
}
|
|
9968
9971
|
});
|
|
9969
|
-
const _hoisted_1$
|
|
9970
|
-
const _sfc_main$
|
|
9972
|
+
const _hoisted_1$F = { key: 0 };
|
|
9973
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
9971
9974
|
__name: "BglMultiStepForm",
|
|
9972
9975
|
props: /* @__PURE__ */ mergeModels({
|
|
9973
9976
|
bagelFormProps: { default: () => ({}) },
|
|
@@ -10034,8 +10037,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10034
10037
|
mode: "out-in"
|
|
10035
10038
|
}, {
|
|
10036
10039
|
default: withCtx(() => [
|
|
10037
|
-
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
10038
|
-
createVNode(unref(_sfc_main$
|
|
10040
|
+
!unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
10041
|
+
createVNode(unref(_sfc_main$O), mergeProps({
|
|
10039
10042
|
ref_key: "formRef",
|
|
10040
10043
|
ref: formRef,
|
|
10041
10044
|
modelValue: formData.value,
|
|
@@ -10074,6 +10077,107 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
10074
10077
|
};
|
|
10075
10078
|
}
|
|
10076
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"]]);
|
|
10077
10181
|
const _hoisted_1$D = { class: "primary-checkbox" };
|
|
10078
10182
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
10079
10183
|
__name: "Checkbox",
|
|
@@ -19301,7 +19405,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
19301
19405
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
19302
19406
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
19303
19407
|
_ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$k)) : createCommentVNode("", true),
|
|
19304
|
-
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
19408
|
+
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$W), {
|
|
19305
19409
|
key: 1,
|
|
19306
19410
|
outline: "",
|
|
19307
19411
|
class: "flex p-05 gap-1",
|
|
@@ -20118,7 +20222,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
20118
20222
|
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
20119
20223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
20120
20224
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
20121
|
-
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
20225
|
+
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
20122
20226
|
key: 0,
|
|
20123
20227
|
placement: "bottom-start",
|
|
20124
20228
|
thin: "",
|
|
@@ -20873,7 +20977,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
20873
20977
|
};
|
|
20874
20978
|
}
|
|
20875
20979
|
});
|
|
20876
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
20980
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7a98aefd"]]);
|
|
20877
20981
|
const _hoisted_1$n = { class: "flex gap-05" };
|
|
20878
20982
|
const _hoisted_2$e = ["disabled"];
|
|
20879
20983
|
const _hoisted_3$b = { key: 1 };
|
|
@@ -21058,7 +21162,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
21058
21162
|
}
|
|
21059
21163
|
});
|
|
21060
21164
|
return (_ctx, _cache) => {
|
|
21061
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
21165
|
+
return openBlock(), createBlock(unref(_sfc_main$S), {
|
|
21062
21166
|
ref_key: "dropdown",
|
|
21063
21167
|
ref: dropdown,
|
|
21064
21168
|
shown: unref(open),
|
|
@@ -21137,7 +21241,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
21137
21241
|
height: "25px",
|
|
21138
21242
|
class: "mx-1 my-1"
|
|
21139
21243
|
})) : createCommentVNode("", true),
|
|
21140
|
-
createVNode(unref(_sfc_main$
|
|
21244
|
+
createVNode(unref(_sfc_main$W), {
|
|
21141
21245
|
class: "p-05",
|
|
21142
21246
|
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
21143
21247
|
}, {
|
|
@@ -29295,7 +29399,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
29295
29399
|
withKeys(reset, ["tab"])
|
|
29296
29400
|
]
|
|
29297
29401
|
}, [
|
|
29298
|
-
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$
|
|
29402
|
+
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
29299
29403
|
key: 0,
|
|
29300
29404
|
ref_key: "phoneDropdown",
|
|
29301
29405
|
ref: phoneDropdown,
|
|
@@ -29660,7 +29764,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
29660
29764
|
},
|
|
29661
29765
|
setup(__props) {
|
|
29662
29766
|
return (_ctx, _cache) => {
|
|
29663
|
-
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" }, {
|
|
29664
29768
|
default: withCtx(() => [
|
|
29665
29769
|
renderSlot(_ctx.$slots, "brand", {}, void 0, true),
|
|
29666
29770
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
|
|
@@ -29745,10 +29849,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29745
29849
|
const emit2 = __emit;
|
|
29746
29850
|
const slots = useSlots();
|
|
29747
29851
|
let isOpen = ref(props2.open);
|
|
29748
|
-
|
|
29852
|
+
const toggleMenu = useDebounceFn(() => {
|
|
29749
29853
|
isOpen.value = !isOpen.value;
|
|
29750
29854
|
emit2("update:open", isOpen.value);
|
|
29751
|
-
}
|
|
29855
|
+
});
|
|
29752
29856
|
return (_ctx, _cache) => {
|
|
29753
29857
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
29754
29858
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29759,9 +29863,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29759
29863
|
color: "white",
|
|
29760
29864
|
class: "mb-05 absolute toggleNav z-2 border",
|
|
29761
29865
|
icon: "keyboard_arrow_right",
|
|
29762
|
-
onClick: toggleMenu
|
|
29763
|
-
}),
|
|
29764
|
-
createVNode(unref(_sfc_main$
|
|
29866
|
+
onClick: unref(toggleMenu)
|
|
29867
|
+
}, null, 8, ["onClick"]),
|
|
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" }, {
|
|
29765
29869
|
default: withCtx(() => [
|
|
29766
29870
|
!unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
29767
29871
|
unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
|
|
@@ -29806,7 +29910,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
29806
29910
|
};
|
|
29807
29911
|
}
|
|
29808
29912
|
});
|
|
29809
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
29913
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ac02125e"]]);
|
|
29810
29914
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
29811
29915
|
__name: "Skeleton",
|
|
29812
29916
|
props: {
|
|
@@ -30285,7 +30389,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
30285
30389
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
30286
30390
|
onKeydown: withKeys(closeModal, ["esc"])
|
|
30287
30391
|
}, [
|
|
30288
|
-
createVNode(unref(_sfc_main$
|
|
30392
|
+
createVNode(unref(_sfc_main$W), {
|
|
30289
30393
|
class: "modal",
|
|
30290
30394
|
style: normalizeStyle({ ...maxWidth.value }),
|
|
30291
30395
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -30300,8 +30404,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
30300
30404
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
30301
30405
|
flat: "",
|
|
30302
30406
|
icon: "close",
|
|
30303
|
-
|
|
30304
|
-
|
|
30407
|
+
thin: "",
|
|
30408
|
+
onClick: closeModal
|
|
30305
30409
|
}, null, 8, ["style"]),
|
|
30306
30410
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
30307
30411
|
key: 0,
|
|
@@ -30398,7 +30502,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30398
30502
|
width: {},
|
|
30399
30503
|
dismissable: { type: Boolean },
|
|
30400
30504
|
actions: {},
|
|
30401
|
-
schema: {
|
|
30505
|
+
schema: {},
|
|
30402
30506
|
onSubmit: { type: Function },
|
|
30403
30507
|
onDelete: { type: Function },
|
|
30404
30508
|
visible: { type: Boolean },
|
|
@@ -30462,7 +30566,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30462
30566
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
30463
30567
|
}, createSlots({
|
|
30464
30568
|
default: withCtx(() => [
|
|
30465
|
-
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$
|
|
30569
|
+
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$O), {
|
|
30466
30570
|
key: 0,
|
|
30467
30571
|
ref_key: "form",
|
|
30468
30572
|
ref: form,
|
|
@@ -30505,7 +30609,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
30505
30609
|
};
|
|
30506
30610
|
}
|
|
30507
30611
|
});
|
|
30508
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
30612
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3342a563"]]);
|
|
30509
30613
|
const _hoisted_1$5 = { class: "full-nav" };
|
|
30510
30614
|
const _hoisted_2$4 = { class: "nav-scroll" };
|
|
30511
30615
|
const _hoisted_3$3 = { class: "nav-links-wrapper" };
|
|
@@ -31580,7 +31684,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
31580
31684
|
row,
|
|
31581
31685
|
field
|
|
31582
31686
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
31583
|
-
createVNode(unref(_sfc_main$
|
|
31687
|
+
createVNode(unref(_sfc_main$P), {
|
|
31584
31688
|
class: "embedded-field",
|
|
31585
31689
|
field,
|
|
31586
31690
|
modelValue: row,
|
|
@@ -32760,7 +32864,7 @@ function frmRow(...children2) {
|
|
|
32760
32864
|
function bglForm(idOrField, ...schema) {
|
|
32761
32865
|
if (typeof idOrField === "string") {
|
|
32762
32866
|
return {
|
|
32763
|
-
$el: markRaw(_sfc_main$
|
|
32867
|
+
$el: markRaw(_sfc_main$O),
|
|
32764
32868
|
id: idOrField,
|
|
32765
32869
|
attrs: {
|
|
32766
32870
|
schema: [idOrField, ...schema]
|
|
@@ -32768,7 +32872,7 @@ function bglForm(idOrField, ...schema) {
|
|
|
32768
32872
|
};
|
|
32769
32873
|
}
|
|
32770
32874
|
return {
|
|
32771
|
-
$el: markRaw(_sfc_main$
|
|
32875
|
+
$el: markRaw(_sfc_main$O),
|
|
32772
32876
|
attrs: {
|
|
32773
32877
|
schema: [idOrField, ...schema]
|
|
32774
32878
|
}
|
|
@@ -33469,6 +33573,7 @@ const translations = {
|
|
|
33469
33573
|
minute: "minute",
|
|
33470
33574
|
second: "second",
|
|
33471
33575
|
ago: "ago",
|
|
33576
|
+
in: "in",
|
|
33472
33577
|
justNow: "Just now"
|
|
33473
33578
|
},
|
|
33474
33579
|
es: {
|
|
@@ -33480,6 +33585,7 @@ const translations = {
|
|
|
33480
33585
|
minute: "minuto",
|
|
33481
33586
|
second: "segundo",
|
|
33482
33587
|
ago: "hace",
|
|
33588
|
+
in: "en",
|
|
33483
33589
|
justNow: "Justo ahora"
|
|
33484
33590
|
},
|
|
33485
33591
|
fr: {
|
|
@@ -33491,6 +33597,7 @@ const translations = {
|
|
|
33491
33597
|
minute: "minute",
|
|
33492
33598
|
second: "seconde",
|
|
33493
33599
|
ago: "il y a",
|
|
33600
|
+
in: "dans",
|
|
33494
33601
|
justNow: "À l’instant"
|
|
33495
33602
|
},
|
|
33496
33603
|
he: {
|
|
@@ -33502,6 +33609,7 @@ const translations = {
|
|
|
33502
33609
|
minute: "דקה",
|
|
33503
33610
|
second: "שנייה",
|
|
33504
33611
|
ago: "לפני",
|
|
33612
|
+
in: "בעוד",
|
|
33505
33613
|
justNow: "זה עתה"
|
|
33506
33614
|
}
|
|
33507
33615
|
};
|
|
@@ -33511,7 +33619,7 @@ function timeAgo(date2, lang = "en") {
|
|
|
33511
33619
|
const now = /* @__PURE__ */ new Date();
|
|
33512
33620
|
const nowNumber = now.getTime();
|
|
33513
33621
|
const dateNumber = date2.getTime();
|
|
33514
|
-
const seconds = Math.floor((
|
|
33622
|
+
const seconds = Math.floor((dateNumber - nowNumber) / 1e3);
|
|
33515
33623
|
const intervals = [
|
|
33516
33624
|
{ label: "year", seconds: 31536e3 },
|
|
33517
33625
|
{ label: "month", seconds: 2592e3 },
|
|
@@ -33523,31 +33631,36 @@ function timeAgo(date2, lang = "en") {
|
|
|
33523
33631
|
];
|
|
33524
33632
|
const selectedLang = translations[lang];
|
|
33525
33633
|
for (const interval of intervals) {
|
|
33526
|
-
const count2 = Math.floor(seconds / interval.seconds);
|
|
33634
|
+
const count2 = Math.floor(Math.abs(seconds) / interval.seconds);
|
|
33527
33635
|
if (count2 >= 1) {
|
|
33528
|
-
const suffix =
|
|
33529
|
-
const prefix =
|
|
33636
|
+
const suffix = seconds < 0 ? ` ${selectedLang.ago}` : "";
|
|
33637
|
+
const prefix = "";
|
|
33638
|
+
if (interval.label === "day" && seconds > 0) {
|
|
33639
|
+
const hours = Math.floor(Math.abs(seconds) % 86400 / 3600);
|
|
33640
|
+
const hourLabel = hours > 1 ? `${selectedLang.hour}s` : selectedLang.hour;
|
|
33641
|
+
return `${prefix}${count2} ${selectedLang[interval.label]}${hours > 0 ? ` ${hours} ${hourLabel}` : ""}${suffix}`;
|
|
33642
|
+
}
|
|
33530
33643
|
return `${prefix}${count2} ${selectedLang[interval.label]}${suffix}`;
|
|
33531
33644
|
}
|
|
33532
33645
|
}
|
|
33533
33646
|
return selectedLang.justNow;
|
|
33534
33647
|
}
|
|
33535
33648
|
export {
|
|
33536
|
-
_sfc_main$
|
|
33649
|
+
_sfc_main$12 as Accordion,
|
|
33537
33650
|
AccordionItem,
|
|
33538
|
-
_sfc_main
|
|
33651
|
+
_sfc_main$10 as AddressSearch,
|
|
33539
33652
|
Alert,
|
|
33540
33653
|
Avatar,
|
|
33541
33654
|
Badge,
|
|
33542
|
-
_sfc_main$
|
|
33655
|
+
_sfc_main$O as BagelForm,
|
|
33543
33656
|
BagelVue,
|
|
33544
|
-
_sfc_main$
|
|
33545
|
-
_sfc_main$
|
|
33546
|
-
_sfc_main$
|
|
33657
|
+
_sfc_main$P as BglField,
|
|
33658
|
+
_sfc_main$O as BglForm,
|
|
33659
|
+
_sfc_main$N as BglMultiStepForm,
|
|
33547
33660
|
BglVideo,
|
|
33548
33661
|
BottomMenu,
|
|
33549
33662
|
Btn,
|
|
33550
|
-
_sfc_main$
|
|
33663
|
+
_sfc_main$W as Card,
|
|
33551
33664
|
Carousel,
|
|
33552
33665
|
CheckInput,
|
|
33553
33666
|
Checkbox,
|
|
@@ -33556,7 +33669,8 @@ export {
|
|
|
33556
33669
|
DataPreview,
|
|
33557
33670
|
_sfc_main$H as DateInput,
|
|
33558
33671
|
_sfc_main$G as DatePicker,
|
|
33559
|
-
_sfc_main$
|
|
33672
|
+
_sfc_main$S as Dropdown,
|
|
33673
|
+
FieldArray,
|
|
33560
33674
|
FileUpload,
|
|
33561
33675
|
Flag,
|
|
33562
33676
|
IMAGE_FORMATS,
|
|
@@ -33566,7 +33680,7 @@ export {
|
|
|
33566
33680
|
Image$1 as Image,
|
|
33567
33681
|
JSONInput,
|
|
33568
33682
|
Layout,
|
|
33569
|
-
_sfc_main$
|
|
33683
|
+
_sfc_main$U as Lineart,
|
|
33570
33684
|
_sfc_main$g as ListItem,
|
|
33571
33685
|
ListView,
|
|
33572
33686
|
Loading,
|