@bagelink/vue 0.0.236-beta.0 → 0.0.237
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/Btn.vue.d.ts +5 -0
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/ListItem.vue.d.ts +4 -0
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +3 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +48 -41
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +9 -0
- package/dist/components/Title.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +2 -2
- package/dist/components/form/ItemRef.vue.d.ts +0 -1
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +4 -4
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts.map +1 -1
- package/dist/index.cjs +221 -298
- package/dist/index.mjs +222 -299
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +61 -61
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Btn.vue +8 -24
- package/src/components/DataPreview.vue +4 -15
- package/src/components/ListItem.vue +5 -5
- package/src/components/Modal.vue +12 -22
- package/src/components/ModalForm.vue +25 -55
- package/src/components/Title.vue +5 -1
- package/src/components/form/BglField.vue +6 -12
- package/src/components/form/BglForm.vue +1 -1
- package/src/components/form/inputs/DateInput.vue +6 -2
- package/src/components/form/inputs/SelectInput.vue +2 -2
- package/src/components/index.ts +1 -2
- package/src/components/whatsapp/form/MsgTemplate.vue +6 -12
- package/src/plugins/modal.ts +3 -6
- package/src/styles/theme.css +1 -0
- package/src/utils/index.ts +6 -5
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/src/components/FormKitTable.vue +0 -280
- package/src/components/FormSchema.vue +0 -76
- package/src/components/ModalBglForm.vue +0 -106
package/dist/index.cjs
CHANGED
|
@@ -2300,11 +2300,7 @@ const ModalPlugin = {
|
|
|
2300
2300
|
},
|
|
2301
2301
|
render() {
|
|
2302
2302
|
return modalStack.value.map((modal, index2) => {
|
|
2303
|
-
|
|
2304
|
-
if (modal.modalType === "modalForm")
|
|
2305
|
-
renderComponent = ModalBglForm;
|
|
2306
|
-
else
|
|
2307
|
-
renderComponent = _sfc_main$z;
|
|
2303
|
+
const renderComponent = modal.modalType === "modalForm" ? ModalForm : _sfc_main$y;
|
|
2308
2304
|
return vue.h(
|
|
2309
2305
|
renderComponent,
|
|
2310
2306
|
{
|
|
@@ -2369,7 +2365,7 @@ function classify(fieldVal, row, ...classes) {
|
|
|
2369
2365
|
function bindAttrs(attrs, fieldVal, row) {
|
|
2370
2366
|
if (!attrs)
|
|
2371
2367
|
return {};
|
|
2372
|
-
const exclude = ["class"
|
|
2368
|
+
const exclude = ["class"];
|
|
2373
2369
|
const arr = Object.entries(attrs).filter(([key]) => !exclude.includes(key)).map(([key, value]) => [
|
|
2374
2370
|
key,
|
|
2375
2371
|
typeof value === "function" ? value(fieldVal, row) : value
|
|
@@ -2378,14 +2374,19 @@ function bindAttrs(attrs, fieldVal, row) {
|
|
|
2378
2374
|
return resolvedAttrs;
|
|
2379
2375
|
}
|
|
2380
2376
|
const iffer = (field, itemData) => {
|
|
2381
|
-
if (field["v-if"]
|
|
2382
|
-
return
|
|
2383
|
-
|
|
2384
|
-
|
|
2377
|
+
if (field["v-if"] === void 0)
|
|
2378
|
+
return true;
|
|
2379
|
+
if (typeof field["v-if"] === "boolean")
|
|
2380
|
+
return field["v-if"];
|
|
2381
|
+
if (typeof field["v-if"] === "string")
|
|
2382
|
+
return !!itemData.value[field["v-if"]];
|
|
2383
|
+
if (typeof field["v-if"] === "function")
|
|
2384
|
+
return field["v-if"](itemData == null ? void 0 : itemData[field.id], itemData);
|
|
2385
|
+
return true;
|
|
2385
2386
|
};
|
|
2386
2387
|
const denullify = (itemData, fieldID) => fieldID && itemData ? itemData[fieldID] : null;
|
|
2387
|
-
const _hoisted_1$
|
|
2388
|
-
const _sfc_main$
|
|
2388
|
+
const _hoisted_1$I = { ref: "el" };
|
|
2389
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
2389
2390
|
__name: "LangText",
|
|
2390
2391
|
props: {
|
|
2391
2392
|
input: {}
|
|
@@ -2393,7 +2394,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
2393
2394
|
setup(__props) {
|
|
2394
2395
|
return (_ctx, _cache) => {
|
|
2395
2396
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
2396
|
-
vue.createElementVNode("span", _hoisted_1$
|
|
2397
|
+
vue.createElementVNode("span", _hoisted_1$I, null, 512),
|
|
2397
2398
|
vue.createTextVNode(" " + vue.toDisplayString(_ctx.input), 1)
|
|
2398
2399
|
], 64);
|
|
2399
2400
|
};
|
|
@@ -14506,8 +14507,8 @@ const marks = {
|
|
|
14506
14507
|
}
|
|
14507
14508
|
};
|
|
14508
14509
|
const schema = new Schema({ nodes, marks });
|
|
14509
|
-
const _hoisted_1$
|
|
14510
|
-
const _sfc_main$
|
|
14510
|
+
const _hoisted_1$H = ["id"];
|
|
14511
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
14511
14512
|
__name: "RTXEditor",
|
|
14512
14513
|
props: {
|
|
14513
14514
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -14584,11 +14585,11 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
14584
14585
|
onClick: focusEditor,
|
|
14585
14586
|
id: `canvas-${_ctx.elementId}`,
|
|
14586
14587
|
onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
14587
|
-
}, null, 40, _hoisted_1$
|
|
14588
|
+
}, null, 40, _hoisted_1$H);
|
|
14588
14589
|
};
|
|
14589
14590
|
}
|
|
14590
14591
|
});
|
|
14591
|
-
const _sfc_main$
|
|
14592
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
14592
14593
|
__name: "MaterialIcon",
|
|
14593
14594
|
props: {
|
|
14594
14595
|
icon: {},
|
|
@@ -14603,13 +14604,13 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
14603
14604
|
};
|
|
14604
14605
|
}
|
|
14605
14606
|
});
|
|
14606
|
-
const _hoisted_1$
|
|
14607
|
-
const _hoisted_2$
|
|
14608
|
-
const _hoisted_3$
|
|
14607
|
+
const _hoisted_1$G = { class: "full-nav" };
|
|
14608
|
+
const _hoisted_2$A = { class: "nav-scroll" };
|
|
14609
|
+
const _hoisted_3$q = { class: "nav-links-wrapper" };
|
|
14609
14610
|
const _hoisted_4$j = { class: "tooltip" };
|
|
14610
14611
|
const _hoisted_5$g = { class: "bot-buttons-wrapper" };
|
|
14611
14612
|
const _hoisted_6$b = { class: "tooltip" };
|
|
14612
|
-
const _sfc_main$
|
|
14613
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
14613
14614
|
__name: "NavBar",
|
|
14614
14615
|
props: {
|
|
14615
14616
|
footerLinks: { default: () => [] },
|
|
@@ -14633,14 +14634,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
14633
14634
|
"aria-label": "Toggle Navigation",
|
|
14634
14635
|
tabindex: "0"
|
|
14635
14636
|
}, [
|
|
14636
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
14637
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
14637
14638
|
icon: "chevron_right",
|
|
14638
14639
|
class: "top-arrow"
|
|
14639
14640
|
})
|
|
14640
14641
|
], 32),
|
|
14641
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
14642
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
14643
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
14642
|
+
vue.createElementVNode("div", _hoisted_1$G, [
|
|
14643
|
+
vue.createElementVNode("div", _hoisted_2$A, [
|
|
14644
|
+
vue.createElementVNode("div", _hoisted_3$q, [
|
|
14644
14645
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
|
|
14645
14646
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
14646
14647
|
class: "nav-button",
|
|
@@ -14652,7 +14653,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
14652
14653
|
}
|
|
14653
14654
|
}, {
|
|
14654
14655
|
default: vue.withCtx(() => [
|
|
14655
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
14656
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
14656
14657
|
icon: link.materialIcon
|
|
14657
14658
|
}, null, 8, ["icon"]),
|
|
14658
14659
|
vue.createElementVNode("div", _hoisted_4$j, vue.toDisplayString(link.label), 1)
|
|
@@ -14674,7 +14675,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
14674
14675
|
key: link.label
|
|
14675
14676
|
}, {
|
|
14676
14677
|
default: vue.withCtx(() => [
|
|
14677
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
14678
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
14678
14679
|
icon: link.materialIcon
|
|
14679
14680
|
}, null, 8, ["icon"]),
|
|
14680
14681
|
vue.createElementVNode("div", _hoisted_6$b, vue.toDisplayString(link.label), 1)
|
|
@@ -14696,16 +14697,16 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14696
14697
|
}
|
|
14697
14698
|
return target;
|
|
14698
14699
|
};
|
|
14699
|
-
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14700
|
-
const _hoisted_1$
|
|
14700
|
+
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-00c5586d"]]);
|
|
14701
|
+
const _hoisted_1$F = {
|
|
14701
14702
|
key: 0,
|
|
14702
14703
|
class: "loading"
|
|
14703
14704
|
};
|
|
14704
|
-
const _hoisted_2$
|
|
14705
|
+
const _hoisted_2$z = {
|
|
14705
14706
|
key: 1,
|
|
14706
14707
|
class: "btn-flex"
|
|
14707
14708
|
};
|
|
14708
|
-
const _sfc_main$
|
|
14709
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
14709
14710
|
__name: "Btn",
|
|
14710
14711
|
props: {
|
|
14711
14712
|
disabled: { type: Boolean, default: false },
|
|
@@ -14722,12 +14723,13 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
14722
14723
|
value: {},
|
|
14723
14724
|
to: {},
|
|
14724
14725
|
round: { type: Boolean, default: false },
|
|
14725
|
-
is: { default: "button" }
|
|
14726
|
+
is: { default: "button" },
|
|
14727
|
+
onClick: { type: Function, default: () => "" }
|
|
14726
14728
|
},
|
|
14727
14729
|
setup(__props) {
|
|
14728
14730
|
vue.useCssVars((_ctx) => ({
|
|
14729
|
-
"
|
|
14730
|
-
"
|
|
14731
|
+
"bfb3f9c4": computedBackgroundColor.value,
|
|
14732
|
+
"5ae19879": cumputedTextColor.value
|
|
14731
14733
|
}));
|
|
14732
14734
|
const slots = vue.useSlots();
|
|
14733
14735
|
const props2 = __props;
|
|
@@ -14772,6 +14774,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
14772
14774
|
return (_ctx, _cache) => {
|
|
14773
14775
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.to ? "router-link" : _ctx.is), {
|
|
14774
14776
|
to: _ctx.to,
|
|
14777
|
+
onClick: vue.withModifiers(_ctx.onClick, ["stop"]),
|
|
14775
14778
|
type: _ctx.type,
|
|
14776
14779
|
role: _ctx.role,
|
|
14777
14780
|
disabled: _ctx.disabled,
|
|
@@ -14785,8 +14788,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
14785
14788
|
})
|
|
14786
14789
|
}, {
|
|
14787
14790
|
default: vue.withCtx(() => [
|
|
14788
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
14789
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
14791
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
|
|
14792
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
|
|
14790
14793
|
key: 0,
|
|
14791
14794
|
icon: _ctx.icon
|
|
14792
14795
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
@@ -14794,22 +14797,21 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
14794
14797
|
!vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
14795
14798
|
vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
|
|
14796
14799
|
], 64)) : vue.createCommentVNode("", true),
|
|
14797
|
-
props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
14800
|
+
props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
|
|
14798
14801
|
key: 2,
|
|
14799
14802
|
icon: props2["icon.end"]
|
|
14800
14803
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
14801
14804
|
]))
|
|
14802
14805
|
]),
|
|
14803
14806
|
_: 3
|
|
14804
|
-
}, 8, ["to", "type", "role", "disabled", "class"]);
|
|
14807
|
+
}, 8, ["to", "onClick", "type", "role", "disabled", "class"]);
|
|
14805
14808
|
};
|
|
14806
14809
|
}
|
|
14807
14810
|
});
|
|
14808
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14809
|
-
const _hoisted_1$
|
|
14810
|
-
const _hoisted_2$
|
|
14811
|
-
const
|
|
14812
|
-
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
14811
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-593b2146"]]);
|
|
14812
|
+
const _hoisted_1$E = { class: "tool-bar" };
|
|
14813
|
+
const _hoisted_2$y = { class: "modal-footer mt-3" };
|
|
14814
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
14813
14815
|
__name: "Modal",
|
|
14814
14816
|
props: {
|
|
14815
14817
|
side: { type: Boolean },
|
|
@@ -14818,31 +14820,22 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
14818
14820
|
actions: {}
|
|
14819
14821
|
},
|
|
14820
14822
|
emits: ["update:isModalVisible"],
|
|
14821
|
-
setup(__props, { emit: __emit }) {
|
|
14823
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14822
14824
|
const props2 = __props;
|
|
14823
14825
|
let isActive = vue.ref(false);
|
|
14824
14826
|
const emit2 = __emit;
|
|
14825
14827
|
const closeModal = () => {
|
|
14826
14828
|
isActive.value = false;
|
|
14827
|
-
setTimeout(() =>
|
|
14828
|
-
emit2("update:isModalVisible", false);
|
|
14829
|
-
}, 200);
|
|
14829
|
+
setTimeout(() => emit2("update:isModalVisible", false), 200);
|
|
14830
14830
|
};
|
|
14831
|
+
__expose({ closeModal });
|
|
14831
14832
|
const escapeKeyClose = (e3) => (props2 == null ? void 0 : props2.dismissable) && useEscape(e3, () => closeModal());
|
|
14832
14833
|
vue.onMounted(() => {
|
|
14833
|
-
setTimeout(() =>
|
|
14834
|
-
|
|
14835
|
-
}, 1);
|
|
14836
|
-
document.addEventListener(
|
|
14837
|
-
"keydown",
|
|
14838
|
-
escapeKeyClose
|
|
14839
|
-
);
|
|
14834
|
+
setTimeout(() => isActive.value = true, 1);
|
|
14835
|
+
document.addEventListener("keydown", escapeKeyClose);
|
|
14840
14836
|
});
|
|
14841
14837
|
vue.onUnmounted(() => {
|
|
14842
|
-
document.removeEventListener(
|
|
14843
|
-
"keydown",
|
|
14844
|
-
escapeKeyClose
|
|
14845
|
-
);
|
|
14838
|
+
document.removeEventListener("keydown", escapeKeyClose);
|
|
14846
14839
|
});
|
|
14847
14840
|
return (_ctx, _cache) => {
|
|
14848
14841
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -14850,41 +14843,47 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
14850
14843
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
14851
14844
|
onKeydown: vue.withKeys(closeModal, ["esc"])
|
|
14852
14845
|
}, [
|
|
14853
|
-
vue.
|
|
14854
|
-
class: "
|
|
14846
|
+
vue.createVNode(vue.unref(_sfc_main$m), {
|
|
14847
|
+
class: "modal",
|
|
14855
14848
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
14856
14849
|
}, ["stop"]))
|
|
14857
|
-
},
|
|
14858
|
-
vue.
|
|
14859
|
-
vue.
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14850
|
+
}, {
|
|
14851
|
+
default: vue.withCtx(() => [
|
|
14852
|
+
vue.createElementVNode("header", _hoisted_1$E, [
|
|
14853
|
+
vue.renderSlot(_ctx.$slots, "toolbar"),
|
|
14854
|
+
vue.createVNode(vue.unref(Btn), {
|
|
14855
|
+
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
14856
|
+
flat: "",
|
|
14857
|
+
icon: "close",
|
|
14858
|
+
onClick: closeModal
|
|
14859
|
+
}, null, 8, ["style"]),
|
|
14860
|
+
_ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$k), {
|
|
14861
|
+
key: 0,
|
|
14862
|
+
class: "modal-title",
|
|
14863
|
+
tag: "h3",
|
|
14864
|
+
label: _ctx.title
|
|
14865
|
+
}, null, 8, ["label"])) : vue.createCommentVNode("", true)
|
|
14866
|
+
]),
|
|
14867
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
14868
|
+
vue.createElementVNode("footer", _hoisted_2$y, [
|
|
14869
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i3) => {
|
|
14870
|
+
return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
|
|
14871
|
+
key: i3,
|
|
14872
|
+
onClick: closeModal,
|
|
14873
|
+
color: "gray"
|
|
14874
|
+
}, action), null, 16);
|
|
14875
|
+
}), 128)),
|
|
14876
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
|
14877
|
+
])
|
|
14867
14878
|
]),
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i3) => {
|
|
14871
|
-
return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
|
|
14872
|
-
key: i3,
|
|
14873
|
-
onClick: closeModal,
|
|
14874
|
-
color: "gray"
|
|
14875
|
-
}, action), null, 16);
|
|
14876
|
-
}), 128)),
|
|
14877
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
14878
|
-
])
|
|
14879
|
-
])
|
|
14879
|
+
_: 3
|
|
14880
|
+
})
|
|
14880
14881
|
], 34);
|
|
14881
14882
|
};
|
|
14882
14883
|
}
|
|
14883
14884
|
});
|
|
14884
|
-
const
|
|
14885
|
-
|
|
14886
|
-
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
14887
|
-
__name: "ModalBglForm",
|
|
14885
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
14886
|
+
__name: "ModalForm",
|
|
14888
14887
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
14889
14888
|
side: { type: Boolean },
|
|
14890
14889
|
title: {},
|
|
@@ -14897,23 +14896,19 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
14897
14896
|
"modelValue": { default: {} },
|
|
14898
14897
|
"modelModifiers": {}
|
|
14899
14898
|
}),
|
|
14900
|
-
emits:
|
|
14901
|
-
setup(__props
|
|
14899
|
+
emits: ["update:modelValue"],
|
|
14900
|
+
setup(__props) {
|
|
14902
14901
|
const props2 = __props;
|
|
14902
|
+
const modal = vue.ref();
|
|
14903
14903
|
const computedFormSchema = vue.computed(() => {
|
|
14904
|
-
if (typeof props2.schema === "function")
|
|
14904
|
+
if (typeof props2.schema === "function")
|
|
14905
14905
|
return props2.schema();
|
|
14906
|
-
}
|
|
14907
14906
|
return props2.schema;
|
|
14908
14907
|
});
|
|
14909
|
-
let isActive = vue.ref(false);
|
|
14910
14908
|
const formData = vue.useModel(__props, "modelValue");
|
|
14911
|
-
const emit2 = __emit;
|
|
14912
14909
|
const closeModal = () => {
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
emit2("update:isModalVisible", false);
|
|
14916
|
-
}, 200);
|
|
14910
|
+
var _a2;
|
|
14911
|
+
return (_a2 = modal.value) == null ? void 0 : _a2.closeModal();
|
|
14917
14912
|
};
|
|
14918
14913
|
const runSubmit = async () => {
|
|
14919
14914
|
var _a2;
|
|
@@ -14929,52 +14924,59 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
14929
14924
|
(_b = props2.onDelete) == null ? void 0 : _b.call(props2, (_a2 = formData.value) == null ? void 0 : _a2.id);
|
|
14930
14925
|
closeModal();
|
|
14931
14926
|
};
|
|
14932
|
-
const escapeKeyClose = (e3) => (props2 == null ? void 0 : props2.dismissable) && useEscape(e3, () => closeModal());
|
|
14933
|
-
vue.onMounted(() => {
|
|
14934
|
-
setTimeout(() => isActive.value = true, 1);
|
|
14935
|
-
document.addEventListener("keydown", escapeKeyClose);
|
|
14936
|
-
});
|
|
14937
|
-
vue.onUnmounted(() => document.removeEventListener("keydown", escapeKeyClose));
|
|
14938
14927
|
return (_ctx, _cache) => {
|
|
14939
|
-
return vue.openBlock(), vue.
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
}, ["stop"]))
|
|
14948
|
-
}, [
|
|
14949
|
-
vue.createElementVNode("header", _hoisted_1$E, [
|
|
14950
|
-
vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
|
|
14951
|
-
vue.createVNode(vue.unref(Btn), {
|
|
14952
|
-
style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
14953
|
-
flat: "",
|
|
14954
|
-
icon: "close",
|
|
14955
|
-
onClick: closeModal
|
|
14956
|
-
}, null, 8, ["style"]),
|
|
14957
|
-
vue.createElementVNode("h3", _hoisted_2$y, vue.toDisplayString(_ctx.title), 1)
|
|
14958
|
-
]),
|
|
14928
|
+
return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$y), {
|
|
14929
|
+
side: _ctx.side,
|
|
14930
|
+
ref_key: "modal",
|
|
14931
|
+
ref: modal,
|
|
14932
|
+
dismissable: _ctx.dismissable,
|
|
14933
|
+
title: _ctx.title
|
|
14934
|
+
}, vue.createSlots({
|
|
14935
|
+
default: vue.withCtx(() => [
|
|
14959
14936
|
vue.createVNode(vue.unref(_sfc_main$i), {
|
|
14960
|
-
onDelete: _ctx.onDelete ? runDelete : void 0,
|
|
14961
14937
|
modelValue: formData.value,
|
|
14962
14938
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
|
|
14963
|
-
onSubmit: runSubmit,
|
|
14964
14939
|
schema: computedFormSchema.value
|
|
14965
|
-
}, null, 8, ["
|
|
14966
|
-
])
|
|
14967
|
-
|
|
14940
|
+
}, null, 8, ["modelValue", "schema"])
|
|
14941
|
+
]),
|
|
14942
|
+
_: 2
|
|
14943
|
+
}, [
|
|
14944
|
+
_ctx.onDelete || _ctx.onSubmit ? {
|
|
14945
|
+
name: "footer",
|
|
14946
|
+
fn: vue.withCtx(() => [
|
|
14947
|
+
vue.createElementVNode("div", null, [
|
|
14948
|
+
vue.createVNode(vue.unref(Btn), {
|
|
14949
|
+
flat: "",
|
|
14950
|
+
value: "Cancel",
|
|
14951
|
+
onClick: _cache[1] || (_cache[1] = ($event) => closeModal())
|
|
14952
|
+
}),
|
|
14953
|
+
_ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
14954
|
+
key: 0,
|
|
14955
|
+
icon: "delete",
|
|
14956
|
+
flat: "",
|
|
14957
|
+
value: "Delete",
|
|
14958
|
+
onClick: _cache[2] || (_cache[2] = ($event) => runDelete()),
|
|
14959
|
+
color: "red"
|
|
14960
|
+
})) : vue.createCommentVNode("", true)
|
|
14961
|
+
]),
|
|
14962
|
+
vue.createVNode(vue.unref(Btn), {
|
|
14963
|
+
value: "Submit",
|
|
14964
|
+
onClick: _cache[3] || (_cache[3] = ($event) => runSubmit())
|
|
14965
|
+
})
|
|
14966
|
+
]),
|
|
14967
|
+
key: "0"
|
|
14968
|
+
} : void 0
|
|
14969
|
+
]), 1032, ["side", "dismissable", "title"]);
|
|
14968
14970
|
};
|
|
14969
14971
|
}
|
|
14970
14972
|
});
|
|
14971
|
-
const
|
|
14973
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-6badff9e"]]);
|
|
14972
14974
|
const _hoisted_1$D = { class: "accordion-item" };
|
|
14973
14975
|
const _hoisted_2$x = {
|
|
14974
14976
|
key: 0,
|
|
14975
14977
|
class: "accordion-body"
|
|
14976
14978
|
};
|
|
14977
|
-
const _sfc_main$
|
|
14979
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
14978
14980
|
__name: "AccordionItem",
|
|
14979
14981
|
props: {
|
|
14980
14982
|
label: {}
|
|
@@ -14995,7 +14997,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
14995
14997
|
vue.createElementVNode("div", {
|
|
14996
14998
|
class: vue.normalizeClass(["accordion-icon", { open: vue.unref(open) }])
|
|
14997
14999
|
}, [
|
|
14998
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15000
|
+
vue.createVNode(vue.unref(_sfc_main$B), { icon: "expand_more" })
|
|
14999
15001
|
], 2)
|
|
15000
15002
|
]),
|
|
15001
15003
|
vue.createVNode(vue.Transition, { name: "expand" }, {
|
|
@@ -15010,7 +15012,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
15010
15012
|
};
|
|
15011
15013
|
}
|
|
15012
15014
|
});
|
|
15013
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15015
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-172f43f1"]]);
|
|
15014
15016
|
const _hoisted_1$C = { class: "card list-view grid thin" };
|
|
15015
15017
|
const _hoisted_2$w = { class: "list-header flex gap-3 align-items-top" };
|
|
15016
15018
|
const _hoisted_3$p = {
|
|
@@ -15019,7 +15021,7 @@ const _hoisted_3$p = {
|
|
|
15019
15021
|
};
|
|
15020
15022
|
const _hoisted_4$i = ["placeholder"];
|
|
15021
15023
|
const _hoisted_5$f = { class: "list-content grid auto-flow-rows align-items-start" };
|
|
15022
|
-
const _sfc_main$
|
|
15024
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
15023
15025
|
__name: "ListView",
|
|
15024
15026
|
props: {
|
|
15025
15027
|
enableAdd: { type: Boolean },
|
|
@@ -15045,7 +15047,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
15045
15047
|
}, null, 40, _hoisted_4$i), [
|
|
15046
15048
|
[vue.vModelText, searchTerm.value]
|
|
15047
15049
|
]),
|
|
15048
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15050
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
15049
15051
|
class: "txtgray",
|
|
15050
15052
|
icon: "search"
|
|
15051
15053
|
})
|
|
@@ -15065,10 +15067,12 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
15065
15067
|
});
|
|
15066
15068
|
const _hoisted_1$B = { class: "txt16 no-margin" };
|
|
15067
15069
|
const _hoisted_2$v = { class: "txt14 no-margin txtgray" };
|
|
15068
|
-
const _sfc_main$
|
|
15070
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
15069
15071
|
__name: "ListItem",
|
|
15070
15072
|
props: {
|
|
15071
|
-
to: {}
|
|
15073
|
+
to: {},
|
|
15074
|
+
title: {},
|
|
15075
|
+
subtitle: {}
|
|
15072
15076
|
},
|
|
15073
15077
|
setup(__props) {
|
|
15074
15078
|
return (_ctx, _cache) => {
|
|
@@ -15078,9 +15082,11 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
15078
15082
|
}, {
|
|
15079
15083
|
default: vue.withCtx(() => [
|
|
15080
15084
|
vue.createElementVNode("p", _hoisted_1$B, [
|
|
15085
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
|
|
15081
15086
|
vue.renderSlot(_ctx.$slots, "default")
|
|
15082
15087
|
]),
|
|
15083
15088
|
vue.createElementVNode("p", _hoisted_2$v, [
|
|
15089
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.subtitle) + " ", 1),
|
|
15084
15090
|
vue.renderSlot(_ctx.$slots, "subtitle")
|
|
15085
15091
|
])
|
|
15086
15092
|
]),
|
|
@@ -15092,7 +15098,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
15092
15098
|
const _hoisted_1$A = { class: "card tabs-top" };
|
|
15093
15099
|
const _hoisted_2$u = { class: "tabs grid auto-flow-columns fit-content" };
|
|
15094
15100
|
const _hoisted_3$o = ["onClick"];
|
|
15095
|
-
const _sfc_main$
|
|
15101
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
15096
15102
|
__name: "TabbedLayout",
|
|
15097
15103
|
props: {
|
|
15098
15104
|
title: {},
|
|
@@ -15154,16 +15160,16 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
15154
15160
|
};
|
|
15155
15161
|
}
|
|
15156
15162
|
});
|
|
15157
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15163
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-09fce741"]]);
|
|
15158
15164
|
const _hoisted_1$z = { class: "comments-wrap" };
|
|
15159
15165
|
const _hoisted_2$t = { class: "comment-list" };
|
|
15160
15166
|
const _hoisted_3$n = { class: "comment-top" };
|
|
15161
15167
|
const _hoisted_4$h = { class: "comment-owner" };
|
|
15162
15168
|
const _hoisted_5$e = { class: "comment-time" };
|
|
15163
15169
|
const _hoisted_6$a = { class: "comment-actions" };
|
|
15164
|
-
const _hoisted_7$
|
|
15170
|
+
const _hoisted_7$6 = ["innerHTML"];
|
|
15165
15171
|
const _hoisted_8$3 = { class: "new-comment" };
|
|
15166
|
-
const _sfc_main$
|
|
15172
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
15167
15173
|
__name: "Comments",
|
|
15168
15174
|
props: {
|
|
15169
15175
|
ref_table: {},
|
|
@@ -15221,19 +15227,19 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
15221
15227
|
vue.createElementVNode("div", _hoisted_4$h, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
|
|
15222
15228
|
vue.createElementVNode("div", _hoisted_5$e, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
15223
15229
|
vue.createElementVNode("div", _hoisted_6$a, [
|
|
15224
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15230
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
15225
15231
|
size: 1,
|
|
15226
15232
|
class: "edit",
|
|
15227
15233
|
icon: "edit",
|
|
15228
15234
|
onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
15229
15235
|
}, null, 8, ["onClick"]),
|
|
15230
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15236
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
15231
15237
|
size: 1.2,
|
|
15232
15238
|
class: "delete",
|
|
15233
15239
|
icon: "delete",
|
|
15234
15240
|
onClick: ($event) => deleteComment(comment.id)
|
|
15235
15241
|
}, null, 8, ["onClick"]),
|
|
15236
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15242
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
15237
15243
|
size: 1.2,
|
|
15238
15244
|
class: "save",
|
|
15239
15245
|
icon: "save",
|
|
@@ -15241,7 +15247,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
15241
15247
|
})
|
|
15242
15248
|
])
|
|
15243
15249
|
]),
|
|
15244
|
-
vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
15250
|
+
vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$C), {
|
|
15245
15251
|
key: 0,
|
|
15246
15252
|
modelValue: vue.unref(editComment).body_html,
|
|
15247
15253
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
|
|
@@ -15250,12 +15256,12 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
15250
15256
|
key: 1,
|
|
15251
15257
|
class: "editor-wrapper",
|
|
15252
15258
|
innerHTML: comment.body_html
|
|
15253
|
-
}, null, 8, _hoisted_7$
|
|
15259
|
+
}, null, 8, _hoisted_7$6))
|
|
15254
15260
|
], 2);
|
|
15255
15261
|
}), 128))
|
|
15256
15262
|
]),
|
|
15257
15263
|
vue.createElementVNode("div", _hoisted_8$3, [
|
|
15258
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15264
|
+
vue.createVNode(vue.unref(_sfc_main$C), {
|
|
15259
15265
|
class: "comment-input",
|
|
15260
15266
|
modelValue: vue.unref(bodyHtml),
|
|
15261
15267
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -15275,10 +15281,10 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
15275
15281
|
};
|
|
15276
15282
|
}
|
|
15277
15283
|
});
|
|
15278
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15284
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-72b15241"]]);
|
|
15279
15285
|
const _hoisted_1$y = { class: "page-top" };
|
|
15280
15286
|
const _hoisted_2$s = { class: "top-title" };
|
|
15281
|
-
const _sfc_main$
|
|
15287
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
15282
15288
|
__name: "PageTitle",
|
|
15283
15289
|
props: {
|
|
15284
15290
|
value: {
|
|
@@ -15297,86 +15303,13 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
15297
15303
|
};
|
|
15298
15304
|
}
|
|
15299
15305
|
});
|
|
15300
|
-
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
15301
|
-
__name: "FormSchema",
|
|
15302
|
-
props: {
|
|
15303
|
-
modelValue: {},
|
|
15304
|
-
schema: {},
|
|
15305
|
-
onDelete: { type: Function }
|
|
15306
|
-
},
|
|
15307
|
-
emits: ["update:modelValue", "submit"],
|
|
15308
|
-
setup(__props, { emit: __emit }) {
|
|
15309
|
-
const { showModal } = useModal();
|
|
15310
|
-
const i18nT = useI18nT();
|
|
15311
|
-
const emits = __emit;
|
|
15312
|
-
const handleEmit = (val) => emits("update:modelValue", val);
|
|
15313
|
-
const runSubmit = (val) => emits("submit", val);
|
|
15314
|
-
const props2 = __props;
|
|
15315
|
-
const data2 = vue.reactive({
|
|
15316
|
-
...props2.modelValue,
|
|
15317
|
-
t: (val) => (i18nT == null ? void 0 : i18nT(val)) || val
|
|
15318
|
-
});
|
|
15319
|
-
const runDelete = () => {
|
|
15320
|
-
showModal(
|
|
15321
|
-
{
|
|
15322
|
-
class: "small-modal",
|
|
15323
|
-
title: i18nT("Are you sure?"),
|
|
15324
|
-
actions: [
|
|
15325
|
-
{
|
|
15326
|
-
value: "Confirm",
|
|
15327
|
-
color: "red",
|
|
15328
|
-
onClick: () => {
|
|
15329
|
-
var _a2;
|
|
15330
|
-
return (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, data2.id);
|
|
15331
|
-
}
|
|
15332
|
-
},
|
|
15333
|
-
{ value: "Cancel", color: "gray" }
|
|
15334
|
-
]
|
|
15335
|
-
},
|
|
15336
|
-
{ default: i18nT("form.deleteMessage") }
|
|
15337
|
-
);
|
|
15338
|
-
};
|
|
15339
|
-
return (_ctx, _cache) => {
|
|
15340
|
-
var _a2;
|
|
15341
|
-
const _component_FormKitSchema = vue.resolveComponent("FormKitSchema");
|
|
15342
|
-
const _component_FormKit = vue.resolveComponent("FormKit");
|
|
15343
|
-
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
15344
|
-
vue.createVNode(_component_FormKit, {
|
|
15345
|
-
type: "form",
|
|
15346
|
-
modelValue: _ctx.modelValue,
|
|
15347
|
-
"onUpdate:modelValue": handleEmit,
|
|
15348
|
-
onSubmit: runSubmit,
|
|
15349
|
-
submitLabel: vue.unref(i18nT)("save")
|
|
15350
|
-
}, {
|
|
15351
|
-
default: vue.withCtx(() => [
|
|
15352
|
-
vue.createVNode(_component_FormKitSchema, {
|
|
15353
|
-
schema: _ctx.schema,
|
|
15354
|
-
data: data2
|
|
15355
|
-
}, null, 8, ["schema", "data"])
|
|
15356
|
-
]),
|
|
15357
|
-
_: 1
|
|
15358
|
-
}, 8, ["modelValue", "submitLabel"]),
|
|
15359
|
-
((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
|
|
15360
|
-
key: 0,
|
|
15361
|
-
class: "del-top",
|
|
15362
|
-
onClick: runDelete,
|
|
15363
|
-
value: "Delete",
|
|
15364
|
-
flat: "",
|
|
15365
|
-
icon: "delete",
|
|
15366
|
-
color: "red",
|
|
15367
|
-
thin: ""
|
|
15368
|
-
})) : vue.createCommentVNode("", true)
|
|
15369
|
-
]);
|
|
15370
|
-
};
|
|
15371
|
-
}
|
|
15372
|
-
});
|
|
15373
15306
|
const _hoisted_1$x = { class: "table-list-wrap h-100" };
|
|
15374
15307
|
const _hoisted_2$r = { class: "infinite-wrapper" };
|
|
15375
15308
|
const _hoisted_3$m = { class: "row first-row" };
|
|
15376
15309
|
const _hoisted_4$g = ["onClick"];
|
|
15377
15310
|
const _hoisted_5$d = { class: "flex" };
|
|
15378
15311
|
const _hoisted_6$9 = ["onClick"];
|
|
15379
|
-
const _hoisted_7$
|
|
15312
|
+
const _hoisted_7$5 = { key: 1 };
|
|
15380
15313
|
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
15381
15314
|
__name: "TableSchema",
|
|
15382
15315
|
props: {
|
|
@@ -15424,7 +15357,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15424
15357
|
vue.createElementVNode("div", {
|
|
15425
15358
|
class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
|
|
15426
15359
|
}, [
|
|
15427
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
15360
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
15428
15361
|
class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
|
|
15429
15362
|
icon: "keyboard_arrow_up"
|
|
15430
15363
|
}, null, 8, ["class"])
|
|
@@ -15453,7 +15386,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
15453
15386
|
key: 0,
|
|
15454
15387
|
row,
|
|
15455
15388
|
field
|
|
15456
|
-
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$
|
|
15389
|
+
}, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$5, [
|
|
15457
15390
|
vue.unref(iffer)(field, row) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), vue.mergeProps({ key: 0 }, vue.unref(bindAttrs)(field.attrs, vue.unref(denullify)(row, field.id), row), {
|
|
15458
15391
|
class: vue.unref(classify)(vue.unref(denullify)(row, field.id), row, field.class, (_a2 = field.attrs) == null ? void 0 : _a2.class),
|
|
15459
15392
|
src: field.$el === "img" && field.id ? (_b = row[field.id]) == null ? void 0 : _b.url : "",
|
|
@@ -15519,17 +15452,13 @@ const _hoisted_1$v = {
|
|
|
15519
15452
|
class: "data"
|
|
15520
15453
|
};
|
|
15521
15454
|
const _hoisted_2$q = {
|
|
15522
|
-
key: 0,
|
|
15523
|
-
class: "mb-3 mt-0"
|
|
15524
|
-
};
|
|
15525
|
-
const _hoisted_3$l = {
|
|
15526
15455
|
key: 0,
|
|
15527
15456
|
class: "data-row"
|
|
15528
15457
|
};
|
|
15529
|
-
const
|
|
15530
|
-
const
|
|
15531
|
-
const
|
|
15532
|
-
const
|
|
15458
|
+
const _hoisted_3$l = { class: "key" };
|
|
15459
|
+
const _hoisted_4$f = { key: 1 };
|
|
15460
|
+
const _hoisted_5$c = { class: "key" };
|
|
15461
|
+
const _hoisted_6$8 = { class: "vlue" };
|
|
15533
15462
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
15534
15463
|
__name: "DataPreview",
|
|
15535
15464
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -15545,40 +15474,32 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
15545
15474
|
return (_ctx, _cache) => {
|
|
15546
15475
|
var _a2;
|
|
15547
15476
|
return __props.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
|
|
15548
|
-
_ctx.title ? (vue.openBlock(), vue.
|
|
15477
|
+
_ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$k), {
|
|
15478
|
+
key: 0,
|
|
15479
|
+
label: _ctx.title
|
|
15480
|
+
}, null, 8, ["label"])) : vue.createCommentVNode("", true),
|
|
15549
15481
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema, (field) => {
|
|
15550
15482
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
15551
15483
|
key: field.id
|
|
15552
15484
|
}, [
|
|
15553
|
-
vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
15554
|
-
vue.createElementVNode("div",
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
modelValue:
|
|
15558
|
-
"onUpdate:modelValue": ($event) =>
|
|
15559
|
-
|
|
15560
|
-
return (_a3 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a3.call(field, $event, vue.unref(denullify)(__props.data, field.id), itemData.value);
|
|
15561
|
-
}
|
|
15562
|
-
}, vue.unref(bindAttrs)(field.attrs, field.id ? itemData.value[field.id] : null, itemData.value)), {
|
|
15563
|
-
default: vue.withCtx(() => {
|
|
15564
|
-
var _a3;
|
|
15565
|
-
return [
|
|
15566
|
-
vue.createTextVNode(vue.toDisplayString(((_a3 = field == null ? void 0 : field.transform) == null ? void 0 : _a3.call(field, vue.unref(denullify)(itemData.value, field.id) || field.defaultValue, itemData.value)) || vue.unref(denullify)(itemData.value, field.id) || ""), 1)
|
|
15567
|
-
];
|
|
15568
|
-
}),
|
|
15569
|
-
_: 2
|
|
15570
|
-
}, 1040, ["modelValue", "onUpdate:modelValue"]))
|
|
15485
|
+
vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$q, [
|
|
15486
|
+
vue.createElementVNode("div", _hoisted_3$l, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
|
|
15487
|
+
vue.createVNode(vue.unref(_sfc_main$h), {
|
|
15488
|
+
field,
|
|
15489
|
+
modelValue: itemData.value,
|
|
15490
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event)
|
|
15491
|
+
}, null, 8, ["field", "modelValue"])
|
|
15571
15492
|
])) : vue.createCommentVNode("", true)
|
|
15572
15493
|
], 64);
|
|
15573
15494
|
}), 128)),
|
|
15574
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div",
|
|
15495
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$f, [
|
|
15575
15496
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(itemData.value), ([key, value]) => {
|
|
15576
15497
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15577
15498
|
class: "data-row",
|
|
15578
15499
|
key
|
|
15579
15500
|
}, [
|
|
15580
|
-
vue.createElementVNode("div",
|
|
15581
|
-
vue.createElementVNode("div",
|
|
15501
|
+
vue.createElementVNode("div", _hoisted_5$c, vue.toDisplayString(vue.unref(keyToLabel)(key)), 1),
|
|
15502
|
+
vue.createElementVNode("div", _hoisted_6$8, vue.toDisplayString(value), 1)
|
|
15582
15503
|
]);
|
|
15583
15504
|
}), 128))
|
|
15584
15505
|
])) : vue.createCommentVNode("", true),
|
|
@@ -15587,7 +15508,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
15587
15508
|
};
|
|
15588
15509
|
}
|
|
15589
15510
|
});
|
|
15590
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
15511
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-bb2526f9"]]);
|
|
15591
15512
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
15592
15513
|
__name: "Card",
|
|
15593
15514
|
props: {
|
|
@@ -15632,6 +15553,10 @@ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-4
|
|
|
15632
15553
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
15633
15554
|
__name: "Title",
|
|
15634
15555
|
props: {
|
|
15556
|
+
value: {
|
|
15557
|
+
type: String,
|
|
15558
|
+
default: ""
|
|
15559
|
+
},
|
|
15635
15560
|
label: {
|
|
15636
15561
|
type: String,
|
|
15637
15562
|
default: ""
|
|
@@ -15646,7 +15571,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
15646
15571
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.tag), null, {
|
|
15647
15572
|
default: vue.withCtx(() => [
|
|
15648
15573
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
15649
|
-
vue.createTextVNode(" " + vue.toDisplayString(__props.label), 1)
|
|
15574
|
+
vue.createTextVNode(" " + vue.toDisplayString(__props.label || __props.value), 1)
|
|
15650
15575
|
]),
|
|
15651
15576
|
_: 3
|
|
15652
15577
|
});
|
|
@@ -15909,21 +15834,10 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15909
15834
|
},
|
|
15910
15835
|
get: () => props2.field.id ? props2.modelValue[props2.field.id] : ""
|
|
15911
15836
|
});
|
|
15912
|
-
const vIf = vue.computed(() => {
|
|
15913
|
-
if (props2.field["v-if"] === void 0)
|
|
15914
|
-
return true;
|
|
15915
|
-
if (typeof props2.field["v-if"] === "boolean")
|
|
15916
|
-
return props2.field["v-if"];
|
|
15917
|
-
if (typeof props2.field["v-if"] === "string")
|
|
15918
|
-
return !!props2.modelValue.value[props2.field["v-if"]];
|
|
15919
|
-
if (typeof props2.field["v-if"] === "function")
|
|
15920
|
-
return props2.field["v-if"](fieldData.value.value, props2.modelValue);
|
|
15921
|
-
return true;
|
|
15922
|
-
});
|
|
15923
15837
|
return (_ctx, _cache) => {
|
|
15924
15838
|
var _a2, _b;
|
|
15925
15839
|
const _component_BglField = vue.resolveComponent("BglField", true);
|
|
15926
|
-
return
|
|
15840
|
+
return vue.unref(iffer)(_ctx.field, fieldData.value) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(is4.value), vue.mergeProps({
|
|
15927
15841
|
key: 0,
|
|
15928
15842
|
required: _ctx.field.required
|
|
15929
15843
|
}, vue.unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, fieldData.value, _ctx.modelValue), {
|
|
@@ -15932,21 +15846,31 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
15932
15846
|
id: _ctx.field.id,
|
|
15933
15847
|
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
15934
15848
|
modelValue: fieldData.value,
|
|
15935
|
-
"onUpdate:modelValue":
|
|
15849
|
+
"onUpdate:modelValue": [
|
|
15850
|
+
_cache[1] || (_cache[1] = ($event) => fieldData.value = $event),
|
|
15851
|
+
_cache[2] || (_cache[2] = ($event) => {
|
|
15852
|
+
var _a3, _b2;
|
|
15853
|
+
return (_b2 = (_a3 = _ctx.field) == null ? void 0 : _a3.onUpdate) == null ? void 0 : _b2.call(_a3, $event, vue.unref(denullify)(fieldData.value, _ctx.field.id), formData.value);
|
|
15854
|
+
})
|
|
15855
|
+
],
|
|
15936
15856
|
defaultValue: _ctx.field.defaultValue,
|
|
15937
15857
|
options: _ctx.field.options,
|
|
15938
15858
|
hint: _ctx.field.hint
|
|
15939
15859
|
}), {
|
|
15940
|
-
default: vue.withCtx(() =>
|
|
15941
|
-
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15860
|
+
default: vue.withCtx(() => {
|
|
15861
|
+
var _a3, _b2;
|
|
15862
|
+
return [
|
|
15863
|
+
vue.createTextVNode(vue.toDisplayString(((_b2 = (_a3 = _ctx.field).transform) == null ? void 0 : _b2.call(_a3, fieldData.value, _ctx.modelValue)) || fieldData.value || "") + " ", 1),
|
|
15864
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
|
|
15865
|
+
return vue.openBlock(), vue.createBlock(_component_BglField, {
|
|
15866
|
+
modelValue: formData.value,
|
|
15867
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
|
|
15868
|
+
key: child.id || ii,
|
|
15869
|
+
field: child
|
|
15870
|
+
}, null, 8, ["modelValue", "field"]);
|
|
15871
|
+
}), 128))
|
|
15872
|
+
];
|
|
15873
|
+
}),
|
|
15950
15874
|
_: 1
|
|
15951
15875
|
}, 16, ["required", "class", "label", "id", "placeholder", "modelValue", "defaultValue", "options", "hint"])) : vue.createCommentVNode("", true);
|
|
15952
15876
|
};
|
|
@@ -29504,7 +29428,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
29504
29428
|
key: row.id
|
|
29505
29429
|
}, [
|
|
29506
29430
|
vue.createElementVNode("div", _hoisted_5$9, [
|
|
29507
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
29431
|
+
vue.createVNode(vue.unref(_sfc_main$B), { icon: "more_vert" })
|
|
29508
29432
|
]),
|
|
29509
29433
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a3 = vue.unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
29510
29434
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -29521,7 +29445,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
29521
29445
|
], 2);
|
|
29522
29446
|
}), 128)),
|
|
29523
29447
|
vue.createElementVNode("div", _hoisted_6$5, [
|
|
29524
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
29448
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
29525
29449
|
icon: "delete",
|
|
29526
29450
|
onClick: ($event) => removeRow(index2)
|
|
29527
29451
|
}, null, 8, ["onClick"])
|
|
@@ -29666,12 +29590,12 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
29666
29590
|
[vue.vModelText, vue.unref(inputVal)]
|
|
29667
29591
|
])
|
|
29668
29592
|
], 8, _hoisted_2$g),
|
|
29669
|
-
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
29593
|
+
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
|
|
29670
29594
|
key: 0,
|
|
29671
29595
|
class: "iconStart",
|
|
29672
29596
|
icon: _ctx.iconStart
|
|
29673
29597
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
29674
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
29598
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$B), {
|
|
29675
29599
|
key: 1,
|
|
29676
29600
|
icon: _ctx.icon
|
|
29677
29601
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
@@ -29721,7 +29645,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
29721
29645
|
title: _ctx.description
|
|
29722
29646
|
}, [
|
|
29723
29647
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$f, [
|
|
29724
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
29648
|
+
vue.createVNode(vue.unref(_sfc_main$D), { input: _ctx.label }, null, 8, ["input"])
|
|
29725
29649
|
])) : vue.createCommentVNode("", true),
|
|
29726
29650
|
_ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$c, vue.toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
|
|
29727
29651
|
vue.createElementVNode("textarea", vue.mergeProps({
|
|
@@ -29756,7 +29680,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
29756
29680
|
[vue.vModelCheckbox, val.value]
|
|
29757
29681
|
]),
|
|
29758
29682
|
vue.createElementVNode("span", null, [
|
|
29759
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
29683
|
+
vue.createVNode(vue.unref(_sfc_main$B), { icon: "check" })
|
|
29760
29684
|
])
|
|
29761
29685
|
]);
|
|
29762
29686
|
};
|
|
@@ -30114,7 +30038,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
30114
30038
|
style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
30115
30039
|
}, [
|
|
30116
30040
|
fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
|
|
30117
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
30041
|
+
vue.createVNode(vue.unref(_sfc_main$B), {
|
|
30118
30042
|
class: "success",
|
|
30119
30043
|
icon: "check"
|
|
30120
30044
|
})
|
|
@@ -36628,7 +36552,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
36628
36552
|
return (_ctx, _cache) => {
|
|
36629
36553
|
var _a2, _b, _c, _d, _e2, _f;
|
|
36630
36554
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
36631
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
36555
|
+
vue.createVNode(vue.unref(_sfc_main$r), null, {
|
|
36632
36556
|
default: vue.withCtx(() => [
|
|
36633
36557
|
vue.createTextVNode("Whatsapp Template")
|
|
36634
36558
|
]),
|
|
@@ -36637,8 +36561,8 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
36637
36561
|
vue.createElementVNode("div", _hoisted_2, [
|
|
36638
36562
|
vue.createElementVNode("div", _hoisted_3, [
|
|
36639
36563
|
vue.createElementVNode("div", _hoisted_4, [
|
|
36640
|
-
vue.createVNode(vue.unref(_sfc_main$
|
|
36641
|
-
schema: _ctx.whatsappTemplateSchema
|
|
36564
|
+
vue.createVNode(vue.unref(_sfc_main$i), {
|
|
36565
|
+
schema: _ctx.whatsappTemplateSchema,
|
|
36642
36566
|
modelValue: vue.unref(localWhatsappData),
|
|
36643
36567
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
36644
36568
|
onSubmit: upsertTemplate
|
|
@@ -36660,7 +36584,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
36660
36584
|
};
|
|
36661
36585
|
}
|
|
36662
36586
|
});
|
|
36663
|
-
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
36587
|
+
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d3e2966e"]]);
|
|
36664
36588
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
36665
36589
|
__name: "TextVariableExamples",
|
|
36666
36590
|
props: {
|
|
@@ -36765,20 +36689,19 @@ exports.DataPreview = DataPreview;
|
|
|
36765
36689
|
exports.DateInput = _sfc_main$f;
|
|
36766
36690
|
exports.DatePicker = _sfc_main$6;
|
|
36767
36691
|
exports.FileUpload = FileUpload;
|
|
36768
|
-
exports.FormSchema = _sfc_main$r;
|
|
36769
36692
|
exports.JSONInput = JSONInput;
|
|
36770
|
-
exports.LangText = _sfc_main$
|
|
36693
|
+
exports.LangText = _sfc_main$D;
|
|
36771
36694
|
exports.Lineart = _sfc_main$2;
|
|
36772
|
-
exports.ListItem = _sfc_main$
|
|
36773
|
-
exports.ListView = _sfc_main$
|
|
36774
|
-
exports.MaterialIcon = _sfc_main$
|
|
36775
|
-
exports.Modal = _sfc_main$
|
|
36776
|
-
exports.
|
|
36695
|
+
exports.ListItem = _sfc_main$u;
|
|
36696
|
+
exports.ListView = _sfc_main$v;
|
|
36697
|
+
exports.MaterialIcon = _sfc_main$B;
|
|
36698
|
+
exports.Modal = _sfc_main$y;
|
|
36699
|
+
exports.ModalForm = ModalForm;
|
|
36777
36700
|
exports.ModalPlugin = ModalPlugin;
|
|
36778
36701
|
exports.MsgTemplate = MsgTemplate;
|
|
36779
36702
|
exports.NavBar = NavBar;
|
|
36780
|
-
exports.PageTitle = _sfc_main$
|
|
36781
|
-
exports.RTXEditor = _sfc_main$
|
|
36703
|
+
exports.PageTitle = _sfc_main$r;
|
|
36704
|
+
exports.RTXEditor = _sfc_main$C;
|
|
36782
36705
|
exports.RadioPillsInput = RadioPillsInput;
|
|
36783
36706
|
exports.RichTextEditor = RichTextEditor;
|
|
36784
36707
|
exports.RouterWrapper = RouterWrapper;
|