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