@bagelink/vue 0.0.168 → 0.0.170
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/DataPreview.vue.d.ts +3 -19
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/FormSchema.vue.d.ts +3 -19
- package/dist/components/FormSchema.vue.d.ts.map +1 -1
- package/dist/components/PersonPreview.vue.d.ts +1 -1
- package/dist/components/PersonPreview.vue.d.ts.map +1 -1
- package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
- package/dist/components/formkit/index.d.ts +10 -8
- package/dist/components/formkit/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +206 -351
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +206 -351
- package/dist/plugins/bagel.d.ts +3 -0
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/style.css +140 -273
- package/package.json +1 -1
- package/src/components/DataPreview.vue +5 -6
- package/src/components/FormSchema.vue +7 -10
- package/src/components/PersonPreview.vue +147 -123
- package/src/components/formkit/FileUploader.vue +264 -254
- package/src/components/formkit/index.ts +10 -10
- package/src/components/index.ts +0 -1
- package/src/index.ts +1 -1
- package/src/plugins/bagel.ts +17 -1
- package/src/components/FileUploader.vue +0 -353
package/dist/index.mjs
CHANGED
|
@@ -2244,17 +2244,26 @@ class Bagel {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
const bagelInjectionKey = Symbol("bagel");
|
|
2247
|
+
const i18nTInjectionKey = Symbol("bagel");
|
|
2247
2248
|
function useBagel() {
|
|
2248
2249
|
const bagel = inject(bagelInjectionKey);
|
|
2249
2250
|
if (!bagel)
|
|
2250
2251
|
throw new Error("No bagel provided");
|
|
2251
2252
|
return bagel;
|
|
2252
2253
|
}
|
|
2254
|
+
function useI18nT() {
|
|
2255
|
+
const i18nT = inject(i18nTInjectionKey);
|
|
2256
|
+
if (!i18nT)
|
|
2257
|
+
throw new Error("No i18nT provided");
|
|
2258
|
+
return i18nT;
|
|
2259
|
+
}
|
|
2253
2260
|
const BagelVue = {
|
|
2254
2261
|
install: (app, options) => {
|
|
2255
2262
|
const bagel = new Bagel({ host: options.host, onError: options.onError });
|
|
2256
2263
|
app.config.globalProperties.$bagel = bagel;
|
|
2257
2264
|
app.provide(bagelInjectionKey, bagel);
|
|
2265
|
+
app.config.globalProperties.$i18T = (options == null ? void 0 : options.i18nT) || ((key) => key);
|
|
2266
|
+
app.provide(i18nTInjectionKey, (options == null ? void 0 : options.i18nT) || ((key) => key));
|
|
2258
2267
|
}
|
|
2259
2268
|
};
|
|
2260
2269
|
const ModalSymbol = Symbol("modal");
|
|
@@ -2291,7 +2300,7 @@ const ModalPlugin = {
|
|
|
2291
2300
|
},
|
|
2292
2301
|
render() {
|
|
2293
2302
|
return modalStack.value.map((modal, index2) => {
|
|
2294
|
-
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$
|
|
2303
|
+
const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$O;
|
|
2295
2304
|
return h(
|
|
2296
2305
|
renderComponent,
|
|
2297
2306
|
{
|
|
@@ -2367,8 +2376,8 @@ function useEscape(event, closeModel) {
|
|
|
2367
2376
|
closeModel();
|
|
2368
2377
|
}
|
|
2369
2378
|
}
|
|
2370
|
-
const _hoisted_1$
|
|
2371
|
-
const _sfc_main$
|
|
2379
|
+
const _hoisted_1$Z = { ref: "el" };
|
|
2380
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
2372
2381
|
__name: "LangText",
|
|
2373
2382
|
props: {
|
|
2374
2383
|
input: {}
|
|
@@ -2376,7 +2385,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2376
2385
|
setup(__props) {
|
|
2377
2386
|
return (_ctx, _cache) => {
|
|
2378
2387
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
2379
|
-
createElementVNode("span", _hoisted_1$
|
|
2388
|
+
createElementVNode("span", _hoisted_1$Z, null, 512),
|
|
2380
2389
|
createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
|
|
2381
2390
|
], 64);
|
|
2382
2391
|
};
|
|
@@ -14492,8 +14501,8 @@ const marks = {
|
|
|
14492
14501
|
}
|
|
14493
14502
|
};
|
|
14494
14503
|
const schema = new Schema({ nodes, marks });
|
|
14495
|
-
const _hoisted_1$
|
|
14496
|
-
const _sfc_main$
|
|
14504
|
+
const _hoisted_1$Y = ["id"];
|
|
14505
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
14497
14506
|
__name: "RTXEditor",
|
|
14498
14507
|
props: {
|
|
14499
14508
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -14570,11 +14579,11 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14570
14579
|
onClick: focusEditor,
|
|
14571
14580
|
id: `canvas-${_ctx.elementId}`,
|
|
14572
14581
|
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
14573
|
-
}, null, 40, _hoisted_1$
|
|
14582
|
+
}, null, 40, _hoisted_1$Y);
|
|
14574
14583
|
};
|
|
14575
14584
|
}
|
|
14576
14585
|
});
|
|
14577
|
-
const _sfc_main$
|
|
14586
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
14578
14587
|
__name: "MaterialIcon",
|
|
14579
14588
|
props: {
|
|
14580
14589
|
icon: {},
|
|
@@ -14589,17 +14598,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
14589
14598
|
};
|
|
14590
14599
|
}
|
|
14591
14600
|
});
|
|
14592
|
-
const _hoisted_1$
|
|
14593
|
-
const _hoisted_2$
|
|
14594
|
-
_hoisted_1$
|
|
14601
|
+
const _hoisted_1$X = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
|
|
14602
|
+
const _hoisted_2$P = [
|
|
14603
|
+
_hoisted_1$X
|
|
14595
14604
|
];
|
|
14596
|
-
const _hoisted_3$
|
|
14597
|
-
const _hoisted_4$
|
|
14598
|
-
const _hoisted_5$
|
|
14605
|
+
const _hoisted_3$H = { class: "full-nav" };
|
|
14606
|
+
const _hoisted_4$q = { class: "nav-scroll" };
|
|
14607
|
+
const _hoisted_5$l = { class: "nav-links-wrapper" };
|
|
14599
14608
|
const _hoisted_6$h = { class: "icon-font" };
|
|
14600
14609
|
const _hoisted_7$c = { class: "tooltip" };
|
|
14601
14610
|
const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
|
|
14602
|
-
const _sfc_main$
|
|
14611
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
14603
14612
|
__name: "NavBar",
|
|
14604
14613
|
props: {
|
|
14605
14614
|
links: {},
|
|
@@ -14623,10 +14632,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14623
14632
|
role: "button",
|
|
14624
14633
|
"aria-label": "Toggle Navigation",
|
|
14625
14634
|
tabindex: "0"
|
|
14626
|
-
}, _hoisted_2$
|
|
14627
|
-
createElementVNode("div", _hoisted_3$
|
|
14628
|
-
createElementVNode("div", _hoisted_4$
|
|
14629
|
-
createElementVNode("div", _hoisted_5$
|
|
14635
|
+
}, _hoisted_2$P, 32),
|
|
14636
|
+
createElementVNode("div", _hoisted_3$H, [
|
|
14637
|
+
createElementVNode("div", _hoisted_4$q, [
|
|
14638
|
+
createElementVNode("div", _hoisted_5$l, [
|
|
14630
14639
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a = _ctx.links) == null ? void 0 : _a.call(_ctx), (link) => {
|
|
14631
14640
|
return openBlock(), createBlock(_component_RouterLink, {
|
|
14632
14641
|
class: "nav-button",
|
|
@@ -14650,15 +14659,15 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14650
14659
|
};
|
|
14651
14660
|
}
|
|
14652
14661
|
});
|
|
14653
|
-
const _hoisted_1$
|
|
14662
|
+
const _hoisted_1$W = {
|
|
14654
14663
|
key: 0,
|
|
14655
14664
|
class: "loading"
|
|
14656
14665
|
};
|
|
14657
|
-
const _hoisted_2$
|
|
14666
|
+
const _hoisted_2$O = {
|
|
14658
14667
|
key: 1,
|
|
14659
14668
|
class: "btn-flex"
|
|
14660
14669
|
};
|
|
14661
|
-
const _sfc_main$
|
|
14670
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
14662
14671
|
__name: "Btn",
|
|
14663
14672
|
props: {
|
|
14664
14673
|
disabled: { type: Boolean, default: false },
|
|
@@ -14694,8 +14703,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14694
14703
|
})
|
|
14695
14704
|
}, {
|
|
14696
14705
|
default: withCtx(() => [
|
|
14697
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14698
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14706
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$W)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
|
|
14707
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$R), {
|
|
14699
14708
|
key: 0,
|
|
14700
14709
|
icon: _ctx.icon
|
|
14701
14710
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -14703,7 +14712,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
14703
14712
|
!unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
14704
14713
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
14705
14714
|
], 64)) : createCommentVNode("", true),
|
|
14706
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
14715
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$R), {
|
|
14707
14716
|
key: 2,
|
|
14708
14717
|
icon: props2["icon.end"]
|
|
14709
14718
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -14721,11 +14730,11 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14721
14730
|
}
|
|
14722
14731
|
return target;
|
|
14723
14732
|
};
|
|
14724
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14725
|
-
const _hoisted_1$
|
|
14726
|
-
const _hoisted_2$
|
|
14727
|
-
const _hoisted_3$
|
|
14728
|
-
const _sfc_main$
|
|
14733
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-8fe48560"]]);
|
|
14734
|
+
const _hoisted_1$V = { class: "tool-bar" };
|
|
14735
|
+
const _hoisted_2$N = { class: "modal-title" };
|
|
14736
|
+
const _hoisted_3$G = { class: "modal-footer mt-3" };
|
|
14737
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
14729
14738
|
__name: "Modal",
|
|
14730
14739
|
props: {
|
|
14731
14740
|
side: { type: Boolean },
|
|
@@ -14771,7 +14780,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14771
14780
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14772
14781
|
}, ["stop"]))
|
|
14773
14782
|
}, [
|
|
14774
|
-
createElementVNode("header", _hoisted_1$
|
|
14783
|
+
createElementVNode("header", _hoisted_1$V, [
|
|
14775
14784
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
14776
14785
|
createVNode(unref(Btn), {
|
|
14777
14786
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -14779,10 +14788,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14779
14788
|
icon: "close",
|
|
14780
14789
|
onClick: closeModal
|
|
14781
14790
|
}, null, 8, ["style"]),
|
|
14782
|
-
createElementVNode("h3", _hoisted_2$
|
|
14791
|
+
createElementVNode("h3", _hoisted_2$N, toDisplayString(_ctx.title), 1)
|
|
14783
14792
|
]),
|
|
14784
14793
|
renderSlot(_ctx.$slots, "default"),
|
|
14785
|
-
createElementVNode("footer", _hoisted_3$
|
|
14794
|
+
createElementVNode("footer", _hoisted_3$G, [
|
|
14786
14795
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
|
|
14787
14796
|
return openBlock(), createBlock(unref(Btn), mergeProps({
|
|
14788
14797
|
key: i2,
|
|
@@ -14797,10 +14806,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
14797
14806
|
};
|
|
14798
14807
|
}
|
|
14799
14808
|
});
|
|
14800
|
-
const _hoisted_1$
|
|
14801
|
-
const _hoisted_2$
|
|
14802
|
-
const _hoisted_3$
|
|
14803
|
-
const _sfc_main$
|
|
14809
|
+
const _hoisted_1$U = { class: "dropdown-title" };
|
|
14810
|
+
const _hoisted_2$M = { class: "dropdown-body" };
|
|
14811
|
+
const _hoisted_3$F = ["onClick"];
|
|
14812
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
14804
14813
|
__name: "DropDown",
|
|
14805
14814
|
props: {
|
|
14806
14815
|
modelValue: String,
|
|
@@ -14826,31 +14835,31 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
14826
14835
|
class: normalizeClass(["dropdown", { opendrop: isOpen.value }]),
|
|
14827
14836
|
onClick: toggleDropdown
|
|
14828
14837
|
}, [
|
|
14829
|
-
createElementVNode("div", _hoisted_1$
|
|
14838
|
+
createElementVNode("div", _hoisted_1$U, [
|
|
14830
14839
|
createTextVNode(toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
|
|
14831
|
-
createVNode(unref(_sfc_main$
|
|
14840
|
+
createVNode(unref(_sfc_main$R), { icon: "keyboard_arrow_down" })
|
|
14832
14841
|
]),
|
|
14833
|
-
createElementVNode("div", _hoisted_2$
|
|
14842
|
+
createElementVNode("div", _hoisted_2$M, [
|
|
14834
14843
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option2, index2) => {
|
|
14835
14844
|
return openBlock(), createElementBlock("p", {
|
|
14836
14845
|
key: index2,
|
|
14837
14846
|
onClick: withModifiers(($event) => selectOption(option2, index2), ["stop"])
|
|
14838
|
-
}, toDisplayString(option2), 9, _hoisted_3$
|
|
14847
|
+
}, toDisplayString(option2), 9, _hoisted_3$F);
|
|
14839
14848
|
}), 128))
|
|
14840
14849
|
])
|
|
14841
14850
|
], 2);
|
|
14842
14851
|
};
|
|
14843
14852
|
}
|
|
14844
14853
|
});
|
|
14845
|
-
const _hoisted_1$
|
|
14846
|
-
const _hoisted_2$
|
|
14847
|
-
const _hoisted_3$
|
|
14854
|
+
const _hoisted_1$T = { class: "card list-view grid thin" };
|
|
14855
|
+
const _hoisted_2$L = { class: "list-header flex gap-3 align-items-top" };
|
|
14856
|
+
const _hoisted_3$E = {
|
|
14848
14857
|
key: 0,
|
|
14849
14858
|
class: "bagel-input search-wrap"
|
|
14850
14859
|
};
|
|
14851
|
-
const _hoisted_4$
|
|
14852
|
-
const _hoisted_5$
|
|
14853
|
-
const _sfc_main$
|
|
14860
|
+
const _hoisted_4$p = ["placeholder"];
|
|
14861
|
+
const _hoisted_5$k = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
14862
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
14854
14863
|
__name: "ListView",
|
|
14855
14864
|
props: {
|
|
14856
14865
|
enableAdd: { type: Boolean },
|
|
@@ -14866,17 +14875,17 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14866
14875
|
debounce(() => emit2("debounce", searchTerm.value));
|
|
14867
14876
|
};
|
|
14868
14877
|
return (_ctx, _cache) => {
|
|
14869
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14870
|
-
createElementVNode("div", _hoisted_2$
|
|
14871
|
-
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
14878
|
+
return openBlock(), createElementBlock("div", _hoisted_1$T, [
|
|
14879
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
14880
|
+
_ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
|
|
14872
14881
|
withDirectives(createElementVNode("input", {
|
|
14873
14882
|
placeholder: _ctx.searchPlaceholder,
|
|
14874
14883
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
|
|
14875
14884
|
onInput: _cache[1] || (_cache[1] = ($event) => search())
|
|
14876
|
-
}, null, 40, _hoisted_4$
|
|
14885
|
+
}, null, 40, _hoisted_4$p), [
|
|
14877
14886
|
[vModelText, searchTerm.value]
|
|
14878
14887
|
]),
|
|
14879
|
-
createVNode(unref(_sfc_main$
|
|
14888
|
+
createVNode(unref(_sfc_main$R), {
|
|
14880
14889
|
class: "txtgray",
|
|
14881
14890
|
icon: "search"
|
|
14882
14891
|
})
|
|
@@ -14888,16 +14897,16 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
14888
14897
|
onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
|
|
14889
14898
|
})) : createCommentVNode("", true)
|
|
14890
14899
|
]),
|
|
14891
|
-
createElementVNode("div", _hoisted_5$
|
|
14900
|
+
createElementVNode("div", _hoisted_5$k, [
|
|
14892
14901
|
renderSlot(_ctx.$slots, "default")
|
|
14893
14902
|
])
|
|
14894
14903
|
]);
|
|
14895
14904
|
};
|
|
14896
14905
|
}
|
|
14897
14906
|
});
|
|
14898
|
-
const _hoisted_1$
|
|
14899
|
-
const _hoisted_2$
|
|
14900
|
-
const _sfc_main$
|
|
14907
|
+
const _hoisted_1$S = { class: "txt16 no-margin" };
|
|
14908
|
+
const _hoisted_2$K = { class: "txt14 no-margin txtgray" };
|
|
14909
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
14901
14910
|
__name: "ListItem",
|
|
14902
14911
|
props: {
|
|
14903
14912
|
to: {}
|
|
@@ -14909,10 +14918,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14909
14918
|
class: "list-item ellipsis"
|
|
14910
14919
|
}, {
|
|
14911
14920
|
default: withCtx(() => [
|
|
14912
|
-
createElementVNode("p", _hoisted_1$
|
|
14921
|
+
createElementVNode("p", _hoisted_1$S, [
|
|
14913
14922
|
renderSlot(_ctx.$slots, "default")
|
|
14914
14923
|
]),
|
|
14915
|
-
createElementVNode("p", _hoisted_2$
|
|
14924
|
+
createElementVNode("p", _hoisted_2$K, [
|
|
14916
14925
|
renderSlot(_ctx.$slots, "subtitle")
|
|
14917
14926
|
])
|
|
14918
14927
|
]),
|
|
@@ -14921,11 +14930,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
14921
14930
|
};
|
|
14922
14931
|
}
|
|
14923
14932
|
});
|
|
14924
|
-
const _hoisted_1$
|
|
14925
|
-
const _hoisted_2$
|
|
14926
|
-
const _hoisted_3$
|
|
14927
|
-
const _hoisted_4$
|
|
14928
|
-
const _sfc_main$
|
|
14933
|
+
const _hoisted_1$R = { class: "h-100 grid list-view gap-3" };
|
|
14934
|
+
const _hoisted_2$J = { class: "card tabs-top" };
|
|
14935
|
+
const _hoisted_3$D = { class: "tabs grid auto-flow-columns fit-content" };
|
|
14936
|
+
const _hoisted_4$o = ["onClick"];
|
|
14937
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
14929
14938
|
__name: "TabbedLayout",
|
|
14930
14939
|
props: {
|
|
14931
14940
|
title: {},
|
|
@@ -14953,10 +14962,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
14953
14962
|
activeTab.value = firstTab;
|
|
14954
14963
|
});
|
|
14955
14964
|
return (_ctx, _cache) => {
|
|
14956
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14957
|
-
createElementVNode("div", _hoisted_2$
|
|
14965
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
14966
|
+
createElementVNode("div", _hoisted_2$J, [
|
|
14958
14967
|
renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
14959
|
-
createElementVNode("div", _hoisted_3$
|
|
14968
|
+
createElementVNode("div", _hoisted_3$D, [
|
|
14960
14969
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
|
|
14961
14970
|
return openBlock(), createElementBlock("div", {
|
|
14962
14971
|
class: normalizeClass([{
|
|
@@ -14964,7 +14973,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
14964
14973
|
}, "tab"]),
|
|
14965
14974
|
key: tab,
|
|
14966
14975
|
onClick: ($event) => changeTab(tab)
|
|
14967
|
-
}, toDisplayString(tab), 11, _hoisted_4$
|
|
14976
|
+
}, toDisplayString(tab), 11, _hoisted_4$o);
|
|
14968
14977
|
}), 128))
|
|
14969
14978
|
])
|
|
14970
14979
|
]),
|
|
@@ -14980,16 +14989,16 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
14980
14989
|
};
|
|
14981
14990
|
}
|
|
14982
14991
|
});
|
|
14983
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14984
|
-
const _hoisted_1$
|
|
14985
|
-
const _hoisted_2$
|
|
14986
|
-
const _hoisted_3$
|
|
14987
|
-
const _hoisted_4$
|
|
14988
|
-
const _hoisted_5$
|
|
14992
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-3941cced"]]);
|
|
14993
|
+
const _hoisted_1$Q = { class: "comments-wrap" };
|
|
14994
|
+
const _hoisted_2$I = { class: "comment-list" };
|
|
14995
|
+
const _hoisted_3$C = { class: "comment-top" };
|
|
14996
|
+
const _hoisted_4$n = { class: "comment-owner" };
|
|
14997
|
+
const _hoisted_5$j = { class: "comment-time" };
|
|
14989
14998
|
const _hoisted_6$g = { class: "comment-actions" };
|
|
14990
14999
|
const _hoisted_7$b = ["innerHTML"];
|
|
14991
15000
|
const _hoisted_8$6 = { class: "new-comment" };
|
|
14992
|
-
const _sfc_main$
|
|
15001
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
14993
15002
|
__name: "Comments",
|
|
14994
15003
|
props: {
|
|
14995
15004
|
ref_table: {},
|
|
@@ -15032,8 +15041,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15032
15041
|
void fetchData();
|
|
15033
15042
|
};
|
|
15034
15043
|
return (_ctx, _cache) => {
|
|
15035
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15036
|
-
createElementVNode("div", _hoisted_2$
|
|
15044
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
15045
|
+
createElementVNode("div", _hoisted_2$I, [
|
|
15037
15046
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
|
|
15038
15047
|
var _a, _b, _c;
|
|
15039
15048
|
return openBlock(), createElementBlock("div", {
|
|
@@ -15043,23 +15052,23 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15043
15052
|
}, "comment"]),
|
|
15044
15053
|
key: comment.id
|
|
15045
15054
|
}, [
|
|
15046
|
-
createElementVNode("div", _hoisted_3$
|
|
15047
|
-
createElementVNode("div", _hoisted_4$
|
|
15048
|
-
createElementVNode("div", _hoisted_5$
|
|
15055
|
+
createElementVNode("div", _hoisted_3$C, [
|
|
15056
|
+
createElementVNode("div", _hoisted_4$n, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
15057
|
+
createElementVNode("div", _hoisted_5$j, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15049
15058
|
createElementVNode("div", _hoisted_6$g, [
|
|
15050
|
-
createVNode(unref(_sfc_main$
|
|
15059
|
+
createVNode(unref(_sfc_main$R), {
|
|
15051
15060
|
size: 1,
|
|
15052
15061
|
class: "edit",
|
|
15053
15062
|
icon: "edit",
|
|
15054
15063
|
onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15055
15064
|
}, null, 8, ["onClick"]),
|
|
15056
|
-
createVNode(unref(_sfc_main$
|
|
15065
|
+
createVNode(unref(_sfc_main$R), {
|
|
15057
15066
|
size: 1.2,
|
|
15058
15067
|
class: "delete",
|
|
15059
15068
|
icon: "delete",
|
|
15060
15069
|
onClick: ($event) => deleteComment(comment.id)
|
|
15061
15070
|
}, null, 8, ["onClick"]),
|
|
15062
|
-
createVNode(unref(_sfc_main$
|
|
15071
|
+
createVNode(unref(_sfc_main$R), {
|
|
15063
15072
|
size: 1.2,
|
|
15064
15073
|
class: "save",
|
|
15065
15074
|
icon: "save",
|
|
@@ -15067,7 +15076,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15067
15076
|
})
|
|
15068
15077
|
])
|
|
15069
15078
|
]),
|
|
15070
|
-
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$
|
|
15079
|
+
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$S), {
|
|
15071
15080
|
key: 0,
|
|
15072
15081
|
modelValue: unref(editComment).body_html,
|
|
15073
15082
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
|
|
@@ -15081,7 +15090,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15081
15090
|
}), 128))
|
|
15082
15091
|
]),
|
|
15083
15092
|
createElementVNode("div", _hoisted_8$6, [
|
|
15084
|
-
createVNode(unref(_sfc_main$
|
|
15093
|
+
createVNode(unref(_sfc_main$S), {
|
|
15085
15094
|
class: "comment-input",
|
|
15086
15095
|
modelValue: unref(bodyHtml),
|
|
15087
15096
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15101,10 +15110,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
15101
15110
|
};
|
|
15102
15111
|
}
|
|
15103
15112
|
});
|
|
15104
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15105
|
-
const _hoisted_1$
|
|
15106
|
-
const _hoisted_2$
|
|
15107
|
-
const _sfc_main$
|
|
15113
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-2eead7c8"]]);
|
|
15114
|
+
const _hoisted_1$P = { class: "page-top" };
|
|
15115
|
+
const _hoisted_2$H = { class: "top-title" };
|
|
15116
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
15108
15117
|
__name: "PageTitle",
|
|
15109
15118
|
props: {
|
|
15110
15119
|
value: {
|
|
@@ -15114,8 +15123,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15114
15123
|
},
|
|
15115
15124
|
setup(__props) {
|
|
15116
15125
|
return (_ctx, _cache) => {
|
|
15117
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15118
|
-
createElementVNode("h1", _hoisted_2$
|
|
15126
|
+
return openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
15127
|
+
createElementVNode("h1", _hoisted_2$H, [
|
|
15119
15128
|
renderSlot(_ctx.$slots, "default"),
|
|
15120
15129
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
15121
15130
|
])
|
|
@@ -15123,9 +15132,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
15123
15132
|
};
|
|
15124
15133
|
}
|
|
15125
15134
|
});
|
|
15126
|
-
const _hoisted_1$
|
|
15127
|
-
const _hoisted_2$
|
|
15128
|
-
const _sfc_main$
|
|
15135
|
+
const _hoisted_1$O = { class: "tool-bar" };
|
|
15136
|
+
const _hoisted_2$G = { class: "modal-title" };
|
|
15137
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
15129
15138
|
__name: "ModalForm",
|
|
15130
15139
|
props: {
|
|
15131
15140
|
side: { type: Boolean },
|
|
@@ -15198,7 +15207,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15198
15207
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
15199
15208
|
}, ["stop"]))
|
|
15200
15209
|
}, [
|
|
15201
|
-
createElementVNode("header", _hoisted_1$
|
|
15210
|
+
createElementVNode("header", _hoisted_1$O, [
|
|
15202
15211
|
renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
15203
15212
|
createVNode(unref(Btn), {
|
|
15204
15213
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -15206,9 +15215,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15206
15215
|
icon: "close",
|
|
15207
15216
|
onClick: closeModal
|
|
15208
15217
|
}, null, 8, ["style"]),
|
|
15209
|
-
createElementVNode("h3", _hoisted_2$
|
|
15218
|
+
createElementVNode("h3", _hoisted_2$G, toDisplayString(_ctx.title), 1)
|
|
15210
15219
|
]),
|
|
15211
|
-
createVNode(unref(_sfc_main$
|
|
15220
|
+
createVNode(unref(_sfc_main$G), {
|
|
15212
15221
|
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
15213
15222
|
modelValue: _ctx.modelValue,
|
|
15214
15223
|
"onUpdate:modelValue": handleEmit,
|
|
@@ -15220,31 +15229,31 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
15220
15229
|
};
|
|
15221
15230
|
}
|
|
15222
15231
|
});
|
|
15223
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15224
|
-
const _sfc_main$
|
|
15232
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1799b7d0"]]);
|
|
15233
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
15225
15234
|
__name: "FormSchema",
|
|
15226
15235
|
props: {
|
|
15227
15236
|
modelValue: {},
|
|
15228
15237
|
schema: {},
|
|
15229
|
-
onDelete: {}
|
|
15230
|
-
i18nT: { type: Function, default: (key) => key }
|
|
15238
|
+
onDelete: { type: Function }
|
|
15231
15239
|
},
|
|
15232
15240
|
emits: ["update:modelValue", "submit"],
|
|
15233
15241
|
setup(__props, { emit: __emit }) {
|
|
15234
15242
|
const { showModal } = useModal();
|
|
15243
|
+
const i18nT = useI18nT();
|
|
15235
15244
|
const emits = __emit;
|
|
15236
15245
|
const handleEmit = (val) => emits("update:modelValue", val);
|
|
15237
15246
|
const runSubmit = (val) => emits("submit", val);
|
|
15238
15247
|
const props2 = __props;
|
|
15239
15248
|
const data2 = reactive({
|
|
15240
15249
|
...props2.modelValue,
|
|
15241
|
-
t: (val) =>
|
|
15250
|
+
t: (val) => (i18nT == null ? void 0 : i18nT(val)) || val
|
|
15242
15251
|
});
|
|
15243
15252
|
const runDelete = () => {
|
|
15244
15253
|
showModal(
|
|
15245
15254
|
{
|
|
15246
15255
|
class: "small-modal",
|
|
15247
|
-
title:
|
|
15256
|
+
title: i18nT("Are you sure?"),
|
|
15248
15257
|
actions: [
|
|
15249
15258
|
{
|
|
15250
15259
|
value: "Confirm",
|
|
@@ -15257,7 +15266,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15257
15266
|
{ value: "Cancel", color: "gray" }
|
|
15258
15267
|
]
|
|
15259
15268
|
},
|
|
15260
|
-
{ default:
|
|
15269
|
+
{ default: i18nT("form.deleteMessage") }
|
|
15261
15270
|
);
|
|
15262
15271
|
};
|
|
15263
15272
|
return (_ctx, _cache) => {
|
|
@@ -15270,7 +15279,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15270
15279
|
modelValue: _ctx.modelValue,
|
|
15271
15280
|
"onUpdate:modelValue": handleEmit,
|
|
15272
15281
|
onSubmit: runSubmit,
|
|
15273
|
-
submitLabel:
|
|
15282
|
+
submitLabel: unref(i18nT)("save")
|
|
15274
15283
|
}, {
|
|
15275
15284
|
default: withCtx(() => [
|
|
15276
15285
|
createVNode(_component_FormKitSchema, {
|
|
@@ -15294,14 +15303,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
15294
15303
|
};
|
|
15295
15304
|
}
|
|
15296
15305
|
});
|
|
15297
|
-
const _hoisted_1$
|
|
15298
|
-
const _hoisted_2$
|
|
15299
|
-
const _hoisted_3$
|
|
15300
|
-
const _hoisted_4$
|
|
15301
|
-
const _hoisted_5$
|
|
15306
|
+
const _hoisted_1$N = { class: "table-list-wrap h-100" };
|
|
15307
|
+
const _hoisted_2$F = { class: "infinite-wrapper" };
|
|
15308
|
+
const _hoisted_3$B = { class: "row first-row" };
|
|
15309
|
+
const _hoisted_4$m = ["onClick"];
|
|
15310
|
+
const _hoisted_5$i = { class: "flex" };
|
|
15302
15311
|
const _hoisted_6$f = ["onClick"];
|
|
15303
15312
|
const _hoisted_7$a = { key: 1 };
|
|
15304
|
-
const _sfc_main$
|
|
15313
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
15305
15314
|
__name: "TableSchema",
|
|
15306
15315
|
props: {
|
|
15307
15316
|
data: {},
|
|
@@ -15347,27 +15356,27 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15347
15356
|
}
|
|
15348
15357
|
);
|
|
15349
15358
|
return (_ctx, _cache) => {
|
|
15350
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15351
|
-
createElementVNode("table", _hoisted_2$
|
|
15352
|
-
createElementVNode("thead", _hoisted_3$
|
|
15359
|
+
return openBlock(), createElementBlock("div", _hoisted_1$N, [
|
|
15360
|
+
createElementVNode("table", _hoisted_2$F, [
|
|
15361
|
+
createElementVNode("thead", _hoisted_3$B, [
|
|
15353
15362
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
|
|
15354
15363
|
return openBlock(), createElementBlock("th", {
|
|
15355
15364
|
class: "col",
|
|
15356
15365
|
key: field.id,
|
|
15357
15366
|
onClick: ($event) => sort2(field.id)
|
|
15358
15367
|
}, [
|
|
15359
|
-
createElementVNode("div", _hoisted_5$
|
|
15368
|
+
createElementVNode("div", _hoisted_5$i, [
|
|
15360
15369
|
createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
|
|
15361
15370
|
createElementVNode("div", {
|
|
15362
15371
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
15363
15372
|
}, [
|
|
15364
|
-
createVNode(unref(_sfc_main$
|
|
15373
|
+
createVNode(unref(_sfc_main$R), {
|
|
15365
15374
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
15366
15375
|
icon: "keyboard_arrow_up"
|
|
15367
15376
|
}, null, 8, ["class"])
|
|
15368
15377
|
], 2)
|
|
15369
15378
|
])
|
|
15370
|
-
], 8, _hoisted_4$
|
|
15379
|
+
], 8, _hoisted_4$m);
|
|
15371
15380
|
}), 128))
|
|
15372
15381
|
]),
|
|
15373
15382
|
createElementVNode("tbody", {
|
|
@@ -15413,16 +15422,16 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
15413
15422
|
};
|
|
15414
15423
|
}
|
|
15415
15424
|
});
|
|
15416
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15417
|
-
const _sfc_main$
|
|
15418
|
-
const _hoisted_1$
|
|
15425
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-fb5b163a"]]);
|
|
15426
|
+
const _sfc_main$E = {};
|
|
15427
|
+
const _hoisted_1$M = { class: "flex space-between" };
|
|
15419
15428
|
function _sfc_render$1(_ctx, _cache) {
|
|
15420
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15429
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
15421
15430
|
renderSlot(_ctx.$slots, "default")
|
|
15422
15431
|
]);
|
|
15423
15432
|
}
|
|
15424
|
-
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15425
|
-
const _sfc_main$
|
|
15433
|
+
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$1]]);
|
|
15434
|
+
const _sfc_main$D = {};
|
|
15426
15435
|
function _sfc_render(_ctx, _cache) {
|
|
15427
15436
|
const _component_router_view = resolveComponent("router-view");
|
|
15428
15437
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -15444,9 +15453,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
15444
15453
|
_: 1
|
|
15445
15454
|
});
|
|
15446
15455
|
}
|
|
15447
|
-
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15448
|
-
const _hoisted_1$
|
|
15449
|
-
const _sfc_main$
|
|
15456
|
+
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render]]);
|
|
15457
|
+
const _hoisted_1$L = { class: "card h-100 thin" };
|
|
15458
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
15450
15459
|
__name: "ContactSubmissions",
|
|
15451
15460
|
props: {
|
|
15452
15461
|
person_id: {
|
|
@@ -15476,7 +15485,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15476
15485
|
void getData();
|
|
15477
15486
|
});
|
|
15478
15487
|
return (_ctx, _cache) => {
|
|
15479
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15488
|
+
return openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
15480
15489
|
createVNode(unref(TableSchema), {
|
|
15481
15490
|
schema: schema2,
|
|
15482
15491
|
data: unref(data2)
|
|
@@ -15485,14 +15494,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
15485
15494
|
};
|
|
15486
15495
|
}
|
|
15487
15496
|
});
|
|
15488
|
-
const _hoisted_1$
|
|
15497
|
+
const _hoisted_1$K = {
|
|
15489
15498
|
key: 0,
|
|
15490
15499
|
class: "person-card-edit flex gap-2"
|
|
15491
15500
|
};
|
|
15492
|
-
const _hoisted_2$
|
|
15493
|
-
const _hoisted_3$
|
|
15494
|
-
const _hoisted_4$
|
|
15495
|
-
const _hoisted_5$
|
|
15501
|
+
const _hoisted_2$E = { class: "person-card-icon-wrap" };
|
|
15502
|
+
const _hoisted_3$A = { class: "person-card-icon" };
|
|
15503
|
+
const _hoisted_4$l = { class: "person-card-name txt20" };
|
|
15504
|
+
const _hoisted_5$h = { class: "person-card-details-wrap" };
|
|
15496
15505
|
const _hoisted_6$e = {
|
|
15497
15506
|
key: 0,
|
|
15498
15507
|
class: "person-card-details"
|
|
@@ -15507,7 +15516,7 @@ const _hoisted_8$5 = {
|
|
|
15507
15516
|
};
|
|
15508
15517
|
const _hoisted_9$3 = { key: 0 };
|
|
15509
15518
|
const _hoisted_10$3 = { key: 1 };
|
|
15510
|
-
const _sfc_main$
|
|
15519
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
15511
15520
|
__name: "PersonPreview",
|
|
15512
15521
|
props: {
|
|
15513
15522
|
person: {},
|
|
@@ -15537,7 +15546,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15537
15546
|
(...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
15538
15547
|
class: "person-card"
|
|
15539
15548
|
}, [
|
|
15540
|
-
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15549
|
+
!_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
|
|
15541
15550
|
!_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
|
|
15542
15551
|
key: 0,
|
|
15543
15552
|
round: "",
|
|
@@ -15554,13 +15563,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15554
15563
|
icon: "edit"
|
|
15555
15564
|
})
|
|
15556
15565
|
])) : createCommentVNode("", true),
|
|
15557
|
-
createElementVNode("div", _hoisted_2$
|
|
15558
|
-
createElementVNode("p", _hoisted_3$
|
|
15559
|
-
createElementVNode("p", _hoisted_4$
|
|
15566
|
+
createElementVNode("div", _hoisted_2$E, [
|
|
15567
|
+
createElementVNode("p", _hoisted_3$A, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
|
|
15568
|
+
createElementVNode("p", _hoisted_4$l, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
|
|
15560
15569
|
]),
|
|
15561
|
-
createElementVNode("div", _hoisted_5$
|
|
15570
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
15562
15571
|
((_a = _ctx.person.phone) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
15563
|
-
createVNode(unref(_sfc_main$
|
|
15572
|
+
createVNode(unref(_sfc_main$R), { icon: "phone" }),
|
|
15564
15573
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
|
|
15565
15574
|
return openBlock(), createElementBlock("p", {
|
|
15566
15575
|
key: phone.id
|
|
@@ -15568,7 +15577,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15568
15577
|
}), 128))
|
|
15569
15578
|
])) : createCommentVNode("", true),
|
|
15570
15579
|
((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
|
|
15571
|
-
createVNode(unref(_sfc_main$
|
|
15580
|
+
createVNode(unref(_sfc_main$R), { icon: "email" }),
|
|
15572
15581
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
|
|
15573
15582
|
return openBlock(), createElementBlock("p", {
|
|
15574
15583
|
key: email.id
|
|
@@ -15576,7 +15585,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15576
15585
|
}), 128))
|
|
15577
15586
|
])) : createCommentVNode("", true),
|
|
15578
15587
|
_ctx.person.date_of_birth || _ctx.person.gender ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
15579
|
-
createVNode(unref(_sfc_main$
|
|
15588
|
+
createVNode(unref(_sfc_main$R), { icon: "badge" }),
|
|
15580
15589
|
_ctx.person.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9$3, toDisplayString(_ctx.person.date_of_birth), 1)) : createCommentVNode("", true),
|
|
15581
15590
|
_ctx.person.gender ? (openBlock(), createElementBlock("p", _hoisted_10$3, toDisplayString(_ctx.person.gender), 1)) : createCommentVNode("", true)
|
|
15582
15591
|
])) : createCommentVNode("", true)
|
|
@@ -15585,38 +15594,38 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
15585
15594
|
};
|
|
15586
15595
|
}
|
|
15587
15596
|
});
|
|
15588
|
-
const _hoisted_1$
|
|
15597
|
+
const _hoisted_1$J = {
|
|
15589
15598
|
key: 0,
|
|
15590
15599
|
class: "data"
|
|
15591
15600
|
};
|
|
15592
|
-
const _hoisted_2$
|
|
15601
|
+
const _hoisted_2$D = {
|
|
15593
15602
|
key: 0,
|
|
15594
15603
|
class: "mb-3 mt-0"
|
|
15595
15604
|
};
|
|
15596
|
-
const _hoisted_3$
|
|
15597
|
-
const _hoisted_4$
|
|
15598
|
-
const _hoisted_5$
|
|
15605
|
+
const _hoisted_3$z = { class: "key" };
|
|
15606
|
+
const _hoisted_4$k = { key: 1 };
|
|
15607
|
+
const _hoisted_5$g = { class: "key" };
|
|
15599
15608
|
const _hoisted_6$d = { class: "vlue" };
|
|
15600
|
-
const _sfc_main$
|
|
15609
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
15601
15610
|
__name: "DataPreview",
|
|
15602
15611
|
props: {
|
|
15603
15612
|
data: {},
|
|
15604
15613
|
schema: {},
|
|
15605
|
-
title: {}
|
|
15606
|
-
i18nT: { type: Function, default: (str) => str }
|
|
15614
|
+
title: {}
|
|
15607
15615
|
},
|
|
15608
15616
|
setup(__props) {
|
|
15617
|
+
const i18nT = useI18nT();
|
|
15609
15618
|
const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
|
|
15610
15619
|
return (_ctx, _cache) => {
|
|
15611
15620
|
var _a;
|
|
15612
|
-
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15613
|
-
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$
|
|
15621
|
+
return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
15622
|
+
_ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$D, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
15614
15623
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
|
|
15615
15624
|
return openBlock(), createElementBlock("div", {
|
|
15616
15625
|
key: field.id,
|
|
15617
15626
|
class: "data-row"
|
|
15618
15627
|
}, [
|
|
15619
|
-
createElementVNode("div", _hoisted_3$
|
|
15628
|
+
createElementVNode("div", _hoisted_3$z, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
15620
15629
|
(openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
|
|
15621
15630
|
default: withCtx(() => [
|
|
15622
15631
|
createTextVNode(toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
|
|
@@ -15625,7 +15634,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15625
15634
|
}, 1024))
|
|
15626
15635
|
]);
|
|
15627
15636
|
}), 128)),
|
|
15628
|
-
!((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
15637
|
+
!((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_4$k, [
|
|
15629
15638
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(_ctx.data).filter(
|
|
15630
15639
|
([key]) => !keysToIgnore.includes(key)
|
|
15631
15640
|
), ([key, value]) => {
|
|
@@ -15633,7 +15642,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15633
15642
|
class: "data-row",
|
|
15634
15643
|
key
|
|
15635
15644
|
}, [
|
|
15636
|
-
createElementVNode("div", _hoisted_5$
|
|
15645
|
+
createElementVNode("div", _hoisted_5$g, toDisplayString(unref(i18nT)(unref(keyToLabel)(key))), 1),
|
|
15637
15646
|
createElementVNode("div", _hoisted_6$d, toDisplayString(value), 1)
|
|
15638
15647
|
]);
|
|
15639
15648
|
}), 128))
|
|
@@ -15643,168 +15652,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
15643
15652
|
};
|
|
15644
15653
|
}
|
|
15645
15654
|
});
|
|
15646
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15647
|
-
const _hoisted_1$J = { class: "files-wrapper flex" };
|
|
15648
|
-
const _hoisted_2$D = { class: "img-label" };
|
|
15649
|
-
const _hoisted_3$z = { class: "uploading-wrap" };
|
|
15650
|
-
const _hoisted_4$k = { class: "load-file-bar" };
|
|
15651
|
-
const _hoisted_5$g = ["multiple"];
|
|
15652
|
-
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
15653
|
-
__name: "FileUploader",
|
|
15654
|
-
props: {
|
|
15655
|
-
id: { default: "" },
|
|
15656
|
-
private: { default: 0 },
|
|
15657
|
-
singleFile: { type: Boolean },
|
|
15658
|
-
beforeUpload: { type: Function, default: async () => {
|
|
15659
|
-
} },
|
|
15660
|
-
dragDropLabel: { default: "Drag and drop your files here" },
|
|
15661
|
-
browseLabel: { default: "Browse" }
|
|
15662
|
-
},
|
|
15663
|
-
emits: ["complete", "done"],
|
|
15664
|
-
setup(__props, { emit: __emit }) {
|
|
15665
|
-
const bagel = useBagel();
|
|
15666
|
-
const draggingOver = ref(false);
|
|
15667
|
-
const dropCircle = ref();
|
|
15668
|
-
const dropZoneEl = ref();
|
|
15669
|
-
const fileInputEl = ref();
|
|
15670
|
-
const circleTop = ref("0");
|
|
15671
|
-
const circleLeft = ref("0");
|
|
15672
|
-
const files = ref([]);
|
|
15673
|
-
const props2 = __props;
|
|
15674
|
-
function openFileDialog() {
|
|
15675
|
-
var _a;
|
|
15676
|
-
(_a = fileInputEl.value) == null ? void 0 : _a.click();
|
|
15677
|
-
}
|
|
15678
|
-
function onDragOver(e) {
|
|
15679
|
-
var _a, _b;
|
|
15680
|
-
if (!draggingOver.value)
|
|
15681
|
-
return;
|
|
15682
|
-
const parentEl2 = ((_b = (_a = dropZoneEl.value) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a)) || {
|
|
15683
|
-
left: 0,
|
|
15684
|
-
top: 0,
|
|
15685
|
-
width: 0,
|
|
15686
|
-
height: 0
|
|
15687
|
-
};
|
|
15688
|
-
const x2 = e.clientX - parentEl2.left;
|
|
15689
|
-
const y2 = e.clientY - parentEl2.top;
|
|
15690
|
-
circleLeft.value = `${x2}px`;
|
|
15691
|
-
circleTop.value = `${y2}px`;
|
|
15692
|
-
if (x2 < 0 || x2 > parentEl2.width || y2 < 0 || y2 > parentEl2.height) {
|
|
15693
|
-
draggingOver.value = false;
|
|
15694
|
-
}
|
|
15695
|
-
}
|
|
15696
|
-
function handleFileInput(e) {
|
|
15697
|
-
const filesToAdd = e.target.files;
|
|
15698
|
-
addFiles(filesToAdd);
|
|
15699
|
-
}
|
|
15700
|
-
function preventDefaults(e) {
|
|
15701
|
-
e.preventDefault();
|
|
15702
|
-
}
|
|
15703
|
-
function hideCircle(e) {
|
|
15704
|
-
console.log({ e });
|
|
15705
|
-
draggingOver.value = false;
|
|
15706
|
-
}
|
|
15707
|
-
const events = ["dragenter", "dragover", "dragleave", "drop"];
|
|
15708
|
-
onMounted(() => {
|
|
15709
|
-
events.forEach((event) => {
|
|
15710
|
-
document.addEventListener(event, preventDefaults);
|
|
15711
|
-
});
|
|
15712
|
-
document.addEventListener("dragover", onDragOver);
|
|
15713
|
-
});
|
|
15714
|
-
onUnmounted(() => {
|
|
15715
|
-
document.removeEventListener("dragover", onDragOver);
|
|
15716
|
-
events.forEach((event) => {
|
|
15717
|
-
document.removeEventListener(event, preventDefaults);
|
|
15718
|
-
});
|
|
15719
|
-
});
|
|
15720
|
-
function addFiles(addedFiles) {
|
|
15721
|
-
if (props2.singleFile && files.value.length > 1)
|
|
15722
|
-
return;
|
|
15723
|
-
for (let i2 = 0; i2 < addedFiles.length; i2++) {
|
|
15724
|
-
files.value.push({
|
|
15725
|
-
file: addedFiles[i2],
|
|
15726
|
-
uid: Math.random().toString(36).substring(2, 9),
|
|
15727
|
-
progress: "",
|
|
15728
|
-
uploading: false
|
|
15729
|
-
});
|
|
15730
|
-
}
|
|
15731
|
-
uploadFiles();
|
|
15732
|
-
}
|
|
15733
|
-
const emit2 = __emit;
|
|
15734
|
-
function uploadFiles() {
|
|
15735
|
-
files.value.forEach((item) => {
|
|
15736
|
-
item.uploading = true;
|
|
15737
|
-
});
|
|
15738
|
-
}
|
|
15739
|
-
async function onDrop(e) {
|
|
15740
|
-
var _a;
|
|
15741
|
-
hideCircle(e);
|
|
15742
|
-
preventDefaults(e);
|
|
15743
|
-
const filesToAdd = (_a = e.dataTransfer) == null ? void 0 : _a.files;
|
|
15744
|
-
if (filesToAdd) {
|
|
15745
|
-
addFiles(filesToAdd);
|
|
15746
|
-
const file = await bagel.uploadFile(filesToAdd[0]);
|
|
15747
|
-
emit2("complete", file);
|
|
15748
|
-
}
|
|
15749
|
-
}
|
|
15750
|
-
return (_ctx, _cache) => {
|
|
15751
|
-
return openBlock(), createElementBlock("div", _hoisted_1$J, [
|
|
15752
|
-
createElementVNode("div", {
|
|
15753
|
-
ref_key: "dropZoneEl",
|
|
15754
|
-
ref: dropZoneEl,
|
|
15755
|
-
class: "drop-zone flex-grow",
|
|
15756
|
-
onClick: openFileDialog,
|
|
15757
|
-
onDragenter: _cache[0] || (_cache[0] = ($event) => draggingOver.value = true),
|
|
15758
|
-
onDrop: withModifiers(onDrop, ["prevent", "stop"])
|
|
15759
|
-
}, [
|
|
15760
|
-
createVNode(Transition, { name: "pop" }, {
|
|
15761
|
-
default: withCtx(() => [
|
|
15762
|
-
draggingOver.value ? (openBlock(), createElementBlock("div", {
|
|
15763
|
-
key: 0,
|
|
15764
|
-
ref_key: "dropCircle",
|
|
15765
|
-
ref: dropCircle,
|
|
15766
|
-
class: "drop-circle"
|
|
15767
|
-
}, null, 512)) : createCommentVNode("", true)
|
|
15768
|
-
]),
|
|
15769
|
-
_: 1
|
|
15770
|
-
}),
|
|
15771
|
-
createElementVNode("div", _hoisted_2$D, [
|
|
15772
|
-
createElementVNode("p", null, [
|
|
15773
|
-
createTextVNode(toDisplayString(_ctx.dragDropLabel) + " ", 1),
|
|
15774
|
-
createElementVNode("span", null, toDisplayString(_ctx.browseLabel), 1)
|
|
15775
|
-
])
|
|
15776
|
-
]),
|
|
15777
|
-
createElementVNode("div", _hoisted_3$z, [
|
|
15778
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(files.value, (item, index2) => {
|
|
15779
|
-
return openBlock(), createElementBlock("div", {
|
|
15780
|
-
class: normalizeClass({ uploading: item.uploading }),
|
|
15781
|
-
key: index2
|
|
15782
|
-
}, [
|
|
15783
|
-
createElementVNode("div", _hoisted_4$k, [
|
|
15784
|
-
createElementVNode("p", null, toDisplayString(item.file.name), 1),
|
|
15785
|
-
createElementVNode("div", {
|
|
15786
|
-
class: "pie",
|
|
15787
|
-
style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
15788
|
-
}, [
|
|
15789
|
-
createElementVNode("span", null, toDisplayString(`${item.progress}`), 1)
|
|
15790
|
-
], 4)
|
|
15791
|
-
])
|
|
15792
|
-
], 2);
|
|
15793
|
-
}), 128))
|
|
15794
|
-
])
|
|
15795
|
-
], 544),
|
|
15796
|
-
createElementVNode("input", {
|
|
15797
|
-
class: "file-input",
|
|
15798
|
-
type: "file",
|
|
15799
|
-
onChange: handleFileInput,
|
|
15800
|
-
ref_key: "fileInputEl",
|
|
15801
|
-
ref: fileInputEl,
|
|
15802
|
-
multiple: !_ctx.singleFile
|
|
15803
|
-
}, null, 40, _hoisted_5$g)
|
|
15804
|
-
]);
|
|
15805
|
-
};
|
|
15806
|
-
}
|
|
15807
|
-
});
|
|
15655
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-86e783b9"]]);
|
|
15808
15656
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
|
|
15809
15657
|
const _hoisted_1$I = { class: "bar-chart" };
|
|
15810
15658
|
const _hoisted_2$C = {
|
|
@@ -17212,7 +17060,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17212
17060
|
[vModelCheckbox, unref(val)]
|
|
17213
17061
|
]),
|
|
17214
17062
|
createElementVNode("span", null, [
|
|
17215
|
-
createVNode(unref(_sfc_main$
|
|
17063
|
+
createVNode(unref(_sfc_main$R), { icon: "check" })
|
|
17216
17064
|
])
|
|
17217
17065
|
]);
|
|
17218
17066
|
};
|
|
@@ -17903,6 +17751,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17903
17751
|
const fileInputEl = ref();
|
|
17904
17752
|
const files = ref([]);
|
|
17905
17753
|
const props2 = __props;
|
|
17754
|
+
const computedDragDropLabel = computed(() => {
|
|
17755
|
+
var _a, _b;
|
|
17756
|
+
return ((_b = (_a = props2 == null ? void 0 : props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.dragDropLabel) || (props2 == null ? void 0 : props2.dragDropLabel);
|
|
17757
|
+
});
|
|
17758
|
+
const computedDrowseLabel = computed(() => {
|
|
17759
|
+
var _a, _b;
|
|
17760
|
+
return ((_b = (_a = props2 == null ? void 0 : props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.browseLabel) || (props2 == null ? void 0 : props2.browseLabel);
|
|
17761
|
+
});
|
|
17906
17762
|
const allowUpload = computed(() => {
|
|
17907
17763
|
var _a;
|
|
17908
17764
|
const tooManyFiles = !((_a = props2.context) == null ? void 0 : _a.attrs.multiple) && files.value.length > 0;
|
|
@@ -17927,9 +17783,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
17927
17783
|
function emitValue() {
|
|
17928
17784
|
var _a, _b;
|
|
17929
17785
|
if (!((_a = props2.context) == null ? void 0 : _a.attrs.multiple))
|
|
17930
|
-
(_b = props2.context) == null ? void 0 : _b.node.input(files.value[0].serverFile);
|
|
17931
|
-
|
|
17932
|
-
alert("not implemented");
|
|
17786
|
+
return (_b = props2.context) == null ? void 0 : _b.node.input(files.value[0].serverFile);
|
|
17787
|
+
return alert("not implemented");
|
|
17933
17788
|
}
|
|
17934
17789
|
const isImg = (file) => {
|
|
17935
17790
|
var _a, _b, _c, _d;
|
|
@@ -18035,8 +17890,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18035
17890
|
}),
|
|
18036
17891
|
allowUpload.value ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
18037
17892
|
createElementVNode("p", null, [
|
|
18038
|
-
createTextVNode(toDisplayString(
|
|
18039
|
-
createElementVNode("span", null, toDisplayString(
|
|
17893
|
+
createTextVNode(toDisplayString(computedDragDropLabel.value) + " ", 1),
|
|
17894
|
+
createElementVNode("span", null, toDisplayString(computedDrowseLabel.value), 1)
|
|
18040
17895
|
])
|
|
18041
17896
|
])) : createCommentVNode("", true),
|
|
18042
17897
|
createElementVNode("div", _hoisted_3$t, [
|
|
@@ -18060,7 +17915,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18060
17915
|
style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
|
|
18061
17916
|
}, [
|
|
18062
17917
|
item.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(`${item.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
18063
|
-
createVNode(unref(_sfc_main$
|
|
17918
|
+
createVNode(unref(_sfc_main$R), {
|
|
18064
17919
|
class: "success",
|
|
18065
17920
|
icon: "check"
|
|
18066
17921
|
})
|
|
@@ -18167,7 +18022,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18167
18022
|
]),
|
|
18168
18023
|
createElementVNode("div", _hoisted_5$a, [
|
|
18169
18024
|
((_a = person.value.phone) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
18170
|
-
createVNode(unref(_sfc_main$
|
|
18025
|
+
createVNode(unref(_sfc_main$R), { icon: "phone" }),
|
|
18171
18026
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
|
|
18172
18027
|
return openBlock(), createElementBlock("p", {
|
|
18173
18028
|
key: phone.id
|
|
@@ -18175,7 +18030,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18175
18030
|
}), 128))
|
|
18176
18031
|
])) : createCommentVNode("", true),
|
|
18177
18032
|
((_b = person.value.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
18178
|
-
createVNode(unref(_sfc_main$
|
|
18033
|
+
createVNode(unref(_sfc_main$R), { icon: "email" }),
|
|
18179
18034
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.email, (email) => {
|
|
18180
18035
|
return openBlock(), createElementBlock("p", {
|
|
18181
18036
|
key: email.id
|
|
@@ -18183,7 +18038,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18183
18038
|
}), 128))
|
|
18184
18039
|
])) : createCommentVNode("", true),
|
|
18185
18040
|
person.value.date_of_birth || person.value.gender ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
18186
|
-
createVNode(unref(_sfc_main$
|
|
18041
|
+
createVNode(unref(_sfc_main$R), { icon: "badge" }),
|
|
18187
18042
|
person.value.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(person.value.date_of_birth), 1)) : createCommentVNode("", true),
|
|
18188
18043
|
person.value.gender ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(person.value.gender), 1)) : createCommentVNode("", true)
|
|
18189
18044
|
])) : createCommentVNode("", true)
|
|
@@ -18284,9 +18139,7 @@ const AddressInput = createInput(AddressArray);
|
|
|
18284
18139
|
const BankDetailsInput = createInput(BankDetailsArray);
|
|
18285
18140
|
const MiscFieldsInput = createInput(MiscFieldsBtns);
|
|
18286
18141
|
const ToggleSwitchInput = createInput(Toggle);
|
|
18287
|
-
const FileUploadInput = createInput(_sfc_main$s
|
|
18288
|
-
props: ["dragDropLabel", "browseLabel"]
|
|
18289
|
-
});
|
|
18142
|
+
const FileUploadInput = createInput(_sfc_main$s);
|
|
18290
18143
|
const TextVariablesInput = createInput(_sfc_main$q);
|
|
18291
18144
|
const PersonPreviewInput = createInput(_sfc_main$r);
|
|
18292
18145
|
const _hoisted_1$z = {
|
|
@@ -18327,7 +18180,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18327
18180
|
}, {
|
|
18328
18181
|
default: withCtx(() => [
|
|
18329
18182
|
createTextVNode(toDisplayString(content.value) + " ", 1),
|
|
18330
|
-
createVNode(unref(_sfc_main$
|
|
18183
|
+
createVNode(unref(_sfc_main$R), { icon: "arrow_forward" })
|
|
18331
18184
|
]),
|
|
18332
18185
|
_: 1
|
|
18333
18186
|
})) : (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(content.value), 1))
|
|
@@ -18390,7 +18243,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18390
18243
|
createElementVNode("label", {
|
|
18391
18244
|
for: unref(formatString)(_ctx.name, "pascal")
|
|
18392
18245
|
}, [
|
|
18393
|
-
createVNode(_sfc_main$
|
|
18246
|
+
createVNode(_sfc_main$T, {
|
|
18394
18247
|
input: unref(formatString)(_ctx.name, "titleCase")
|
|
18395
18248
|
}, null, 8, ["input"])
|
|
18396
18249
|
], 8, _hoisted_2$v),
|
|
@@ -18431,7 +18284,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18431
18284
|
onInput: handleInput
|
|
18432
18285
|
}, null, 40, _hoisted_6$6)) : createCommentVNode("", true),
|
|
18433
18286
|
createElementVNode("div", null, [
|
|
18434
|
-
createVNode(_sfc_main$
|
|
18287
|
+
createVNode(_sfc_main$T, { input: _ctx.errorMessage }, null, 8, ["input"])
|
|
18435
18288
|
])
|
|
18436
18289
|
]);
|
|
18437
18290
|
};
|
|
@@ -19160,7 +19013,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
19160
19013
|
[vModelDynamic, inputVal.value]
|
|
19161
19014
|
])
|
|
19162
19015
|
], 8, _hoisted_2$k),
|
|
19163
|
-
createVNode(unref(_sfc_main$
|
|
19016
|
+
createVNode(unref(_sfc_main$R), {
|
|
19164
19017
|
onClick: showPassword,
|
|
19165
19018
|
icon: unref(seePassword) ? "visibility" : "visibility_off"
|
|
19166
19019
|
}, null, 8, ["icon"])
|
|
@@ -19325,7 +19178,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
19325
19178
|
for: "label",
|
|
19326
19179
|
class: normalizeClass({ active: showList.value })
|
|
19327
19180
|
}, [
|
|
19328
|
-
createVNode(unref(_sfc_main$
|
|
19181
|
+
createVNode(unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
|
|
19329
19182
|
], 2)) : createCommentVNode("", true),
|
|
19330
19183
|
createElementVNode("div", {
|
|
19331
19184
|
class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
|
|
@@ -19337,7 +19190,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
19337
19190
|
class: normalizeClass(["input", { active: showList.value }]),
|
|
19338
19191
|
name: "select-input"
|
|
19339
19192
|
}, [
|
|
19340
|
-
createVNode(unref(_sfc_main$
|
|
19193
|
+
createVNode(unref(_sfc_main$T), { input: displayValue.value }, null, 8, ["input"])
|
|
19341
19194
|
], 2),
|
|
19342
19195
|
(openBlock(), createBlock(Teleport, { to: "#app" }, [
|
|
19343
19196
|
createElementVNode("div", {
|
|
@@ -19350,7 +19203,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
19350
19203
|
key: option2.value,
|
|
19351
19204
|
onClick: ($event) => handleSelect(option2)
|
|
19352
19205
|
}, [
|
|
19353
|
-
createVNode(unref(_sfc_main$
|
|
19206
|
+
createVNode(unref(_sfc_main$T), {
|
|
19354
19207
|
input: option2.label
|
|
19355
19208
|
}, null, 8, ["input"])
|
|
19356
19209
|
], 8, _hoisted_2$i);
|
|
@@ -22214,7 +22067,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
22214
22067
|
title: _ctx.description
|
|
22215
22068
|
}, [
|
|
22216
22069
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$d, [
|
|
22217
|
-
createVNode(unref(_sfc_main$
|
|
22070
|
+
createVNode(unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
|
|
22218
22071
|
])) : createCommentVNode("", true),
|
|
22219
22072
|
_ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString((_a = _ctx.modelValue) == null ? void 0 : _a.length) + " " + toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : createCommentVNode("", true),
|
|
22220
22073
|
createElementVNode("textarea", mergeProps({
|
|
@@ -28898,7 +28751,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28898
28751
|
return (_ctx, _cache) => {
|
|
28899
28752
|
var _a, _b, _c, _d, _e, _f;
|
|
28900
28753
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28901
|
-
createVNode(unref(_sfc_main$
|
|
28754
|
+
createVNode(unref(_sfc_main$I), null, {
|
|
28902
28755
|
default: withCtx(() => [
|
|
28903
28756
|
createTextVNode("Whatsapp Template")
|
|
28904
28757
|
]),
|
|
@@ -28907,7 +28760,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28907
28760
|
createElementVNode("div", _hoisted_2, [
|
|
28908
28761
|
createElementVNode("div", _hoisted_3, [
|
|
28909
28762
|
createElementVNode("div", _hoisted_4, [
|
|
28910
|
-
createVNode(unref(_sfc_main$
|
|
28763
|
+
createVNode(unref(_sfc_main$G), {
|
|
28911
28764
|
schema: _ctx.whatsappTemplateSchema(),
|
|
28912
28765
|
modelValue: unref(localWhatsappData),
|
|
28913
28766
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
@@ -28942,42 +28795,42 @@ export {
|
|
|
28942
28795
|
_sfc_main$4 as ColorPicker,
|
|
28943
28796
|
Comments,
|
|
28944
28797
|
ContactArrayInput,
|
|
28945
|
-
_sfc_main$
|
|
28798
|
+
_sfc_main$C as ContactSubmissions,
|
|
28946
28799
|
CurrencyInput,
|
|
28947
28800
|
DataPreview,
|
|
28948
28801
|
DateInput,
|
|
28949
28802
|
_sfc_main$j as DatetimeInput,
|
|
28950
|
-
_sfc_main$
|
|
28803
|
+
_sfc_main$N as DropDown,
|
|
28951
28804
|
_sfc_main$7 as DurationInput,
|
|
28952
28805
|
_sfc_main$3 as DynamicLinkField,
|
|
28953
28806
|
EmailInput,
|
|
28954
28807
|
FileUploadInput,
|
|
28955
|
-
_sfc_main$
|
|
28808
|
+
_sfc_main$s as FileUploader,
|
|
28956
28809
|
_sfc_main$h as FloatInput,
|
|
28957
|
-
_sfc_main$
|
|
28810
|
+
_sfc_main$G as FormSchema,
|
|
28958
28811
|
_sfc_main$g as IntInput,
|
|
28959
28812
|
_sfc_main$p as ItemRef,
|
|
28960
28813
|
JSONInput,
|
|
28961
|
-
_sfc_main$
|
|
28814
|
+
_sfc_main$T as LangText,
|
|
28962
28815
|
_sfc_main$1 as Lineart,
|
|
28963
28816
|
LinkField,
|
|
28964
|
-
_sfc_main$
|
|
28965
|
-
_sfc_main$
|
|
28966
|
-
_sfc_main$
|
|
28817
|
+
_sfc_main$L as ListItem,
|
|
28818
|
+
_sfc_main$M as ListView,
|
|
28819
|
+
_sfc_main$R as MaterialIcon,
|
|
28967
28820
|
MiscFieldsInput,
|
|
28968
|
-
_sfc_main$
|
|
28821
|
+
_sfc_main$O as Modal,
|
|
28969
28822
|
ModalForm,
|
|
28970
28823
|
ModalPlugin,
|
|
28971
28824
|
MsgTemplate,
|
|
28972
|
-
_sfc_main$
|
|
28973
|
-
_sfc_main$
|
|
28825
|
+
_sfc_main$Q as NavBar,
|
|
28826
|
+
_sfc_main$I as PageTitle,
|
|
28974
28827
|
Password,
|
|
28975
28828
|
PasswordInput,
|
|
28976
|
-
_sfc_main$
|
|
28829
|
+
_sfc_main$B as PersonPreview,
|
|
28977
28830
|
PersonPreviewInput,
|
|
28978
28831
|
_sfc_main$n as PlainInputField,
|
|
28979
28832
|
PlainText,
|
|
28980
|
-
_sfc_main$
|
|
28833
|
+
_sfc_main$S as RTXEditor,
|
|
28981
28834
|
ReadOnlyInput,
|
|
28982
28835
|
RichTextEditor,
|
|
28983
28836
|
RouterWrapper,
|
|
@@ -28996,10 +28849,12 @@ export {
|
|
|
28996
28849
|
copyText,
|
|
28997
28850
|
debounce,
|
|
28998
28851
|
formatString,
|
|
28852
|
+
i18nTInjectionKey,
|
|
28999
28853
|
initials,
|
|
29000
28854
|
keyToLabel,
|
|
29001
28855
|
useBagel,
|
|
29002
28856
|
useEscape,
|
|
29003
28857
|
useFormkit,
|
|
28858
|
+
useI18nT,
|
|
29004
28859
|
useModal
|
|
29005
28860
|
};
|