@bagelink/vue 0.0.318 → 0.0.331
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/Badge.vue.d.ts +2 -2
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts +2 -2
- package/dist/components/ComboBox.vue.d.ts +13 -2
- package/dist/components/ComboBox.vue.d.ts.map +1 -1
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +0 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalBglForm.vue.d.ts.map +1 -1
- package/dist/components/Popover.vue.d.ts +10 -0
- package/dist/components/Popover.vue.d.ts.map +1 -0
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +1 -5
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +0 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +2 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/formkit/index.d.ts +1 -14
- package/dist/components/formkit/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/whatsapp/index.d.ts +0 -2
- package/dist/components/whatsapp/index.d.ts.map +1 -1
- package/dist/index.cjs +419 -569
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +419 -569
- package/dist/style.css +1815 -331
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/types/materialIcons.d.ts +1 -1
- package/dist/types/materialIcons.d.ts.map +1 -1
- package/dist/utils/BagelFormUtils.d.ts +23 -0
- package/dist/utils/BagelFormUtils.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Badge.vue +2 -2
- package/src/components/Carousel.vue +137 -137
- package/src/components/ComboBox.vue +79 -50
- package/src/components/ListView.vue +28 -27
- package/src/components/Modal.vue +25 -23
- package/src/components/form/BglField.vue +33 -48
- package/src/components/form/BglForm.vue +65 -49
- package/src/components/form/inputs/TextInput.vue +20 -4
- package/src/components/index.ts +1 -1
- package/src/components/layout/SidebarMenu.vue +4 -5
- package/src/components/whatsapp/index.ts +2 -2
- package/src/styles/appearance.css +39 -0
- package/src/styles/bagel.css +2 -0
- package/src/styles/layout.css +112 -6
- package/src/styles/mobilLayout.css +1416 -0
- package/src/styles/text.css +4 -0
- package/src/types/BagelForm.ts +7 -7
- package/src/types/materialIcons.ts +1183 -3006
- package/src/utils/BagelFormUtils.ts +58 -0
- package/src/utils/index.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -4878,7 +4878,7 @@ const ModalPlugin = {
|
|
|
4878
4878
|
const props2 = { ...modal.modalOptions, visible: true, "onUpdate:visible": () => hideModal(index2) };
|
|
4879
4879
|
if (modal.modalType === "modalForm")
|
|
4880
4880
|
return h$2(ModalForm, props2, modal.componentSlots);
|
|
4881
|
-
return h$2(_sfc_main$
|
|
4881
|
+
return h$2(_sfc_main$C, props2, modal.componentSlots);
|
|
4882
4882
|
});
|
|
4883
4883
|
}
|
|
4884
4884
|
});
|
|
@@ -4905,6 +4905,55 @@ function formatString(str, format2) {
|
|
|
4905
4905
|
}
|
|
4906
4906
|
return str;
|
|
4907
4907
|
}
|
|
4908
|
+
function txtField(id, label, options) {
|
|
4909
|
+
return {
|
|
4910
|
+
$el: "text",
|
|
4911
|
+
class: options == null ? void 0 : options.class,
|
|
4912
|
+
required: options == null ? void 0 : options.required,
|
|
4913
|
+
id,
|
|
4914
|
+
label,
|
|
4915
|
+
placeholder: options == null ? void 0 : options.placeholder,
|
|
4916
|
+
attrs: { type: options == null ? void 0 : options.type }
|
|
4917
|
+
};
|
|
4918
|
+
}
|
|
4919
|
+
function slctField(id, label, options, config) {
|
|
4920
|
+
return {
|
|
4921
|
+
$el: "select",
|
|
4922
|
+
id,
|
|
4923
|
+
options,
|
|
4924
|
+
class: config == null ? void 0 : config.class,
|
|
4925
|
+
placeholder: config == null ? void 0 : config.placeholder,
|
|
4926
|
+
required: config == null ? void 0 : config.required,
|
|
4927
|
+
label,
|
|
4928
|
+
defaultValue: config == null ? void 0 : config.defaultValue,
|
|
4929
|
+
attrs: { disabled: config == null ? void 0 : config.disabled }
|
|
4930
|
+
};
|
|
4931
|
+
}
|
|
4932
|
+
function numField(id, label, options) {
|
|
4933
|
+
return {
|
|
4934
|
+
$el: "text",
|
|
4935
|
+
class: options == null ? void 0 : options.class,
|
|
4936
|
+
required: options == null ? void 0 : options.required,
|
|
4937
|
+
id,
|
|
4938
|
+
label,
|
|
4939
|
+
placeholder: options == null ? void 0 : options.placeholder,
|
|
4940
|
+
attrs: { type: "number" }
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
function frmRow(...children2) {
|
|
4944
|
+
return {
|
|
4945
|
+
$el: "div",
|
|
4946
|
+
class: "flex gap-1 m_block",
|
|
4947
|
+
children: children2
|
|
4948
|
+
};
|
|
4949
|
+
}
|
|
4950
|
+
const BagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4951
|
+
__proto__: null,
|
|
4952
|
+
frmRow,
|
|
4953
|
+
numField,
|
|
4954
|
+
slctField,
|
|
4955
|
+
txtField
|
|
4956
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4908
4957
|
let timeout;
|
|
4909
4958
|
const debounce = (fn, delay = 500) => {
|
|
4910
4959
|
clearTimeout(timeout);
|
|
@@ -4940,6 +4989,8 @@ function bindAttrs(attrs, fieldVal, row) {
|
|
|
4940
4989
|
key,
|
|
4941
4990
|
typeof value === "function" ? value(fieldVal, row) : value
|
|
4942
4991
|
]);
|
|
4992
|
+
if (attrs.options)
|
|
4993
|
+
console.log("arr", arr);
|
|
4943
4994
|
const resolvedAttrs = Object.fromEntries(arr);
|
|
4944
4995
|
return resolvedAttrs;
|
|
4945
4996
|
}
|
|
@@ -17063,8 +17114,8 @@ const marks = {
|
|
|
17063
17114
|
}
|
|
17064
17115
|
};
|
|
17065
17116
|
const schema = new Schema({ nodes, marks });
|
|
17066
|
-
const _hoisted_1$
|
|
17067
|
-
const _sfc_main$
|
|
17117
|
+
const _hoisted_1$I = ["id"];
|
|
17118
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
17068
17119
|
__name: "RTXEditor",
|
|
17069
17120
|
props: {
|
|
17070
17121
|
elementId: { default: Math.random().toString(36).substr(2, 9) },
|
|
@@ -17141,11 +17192,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
17141
17192
|
onClick: focusEditor,
|
|
17142
17193
|
id: `canvas-${_ctx.elementId}`,
|
|
17143
17194
|
onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
|
|
17144
|
-
}, null, 40, _hoisted_1$
|
|
17195
|
+
}, null, 40, _hoisted_1$I);
|
|
17145
17196
|
};
|
|
17146
17197
|
}
|
|
17147
17198
|
});
|
|
17148
|
-
const _sfc_main$
|
|
17199
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
17149
17200
|
__name: "MaterialIcon",
|
|
17150
17201
|
props: {
|
|
17151
17202
|
icon: {},
|
|
@@ -17161,13 +17212,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
17161
17212
|
};
|
|
17162
17213
|
}
|
|
17163
17214
|
});
|
|
17164
|
-
const _hoisted_1$
|
|
17215
|
+
const _hoisted_1$H = { class: "full-nav" };
|
|
17165
17216
|
const _hoisted_2$y = { class: "nav-scroll" };
|
|
17166
|
-
const _hoisted_3$
|
|
17167
|
-
const _hoisted_4$
|
|
17168
|
-
const _hoisted_5$
|
|
17169
|
-
const _hoisted_6$
|
|
17170
|
-
const _sfc_main$
|
|
17217
|
+
const _hoisted_3$o = { class: "nav-links-wrapper" };
|
|
17218
|
+
const _hoisted_4$g = { class: "tooltip" };
|
|
17219
|
+
const _hoisted_5$d = { class: "bot-buttons-wrapper" };
|
|
17220
|
+
const _hoisted_6$9 = { class: "tooltip" };
|
|
17221
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
17171
17222
|
__name: "NavBar",
|
|
17172
17223
|
props: {
|
|
17173
17224
|
footerLinks: { default: () => [] },
|
|
@@ -17191,14 +17242,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
17191
17242
|
"aria-label": "Toggle Navigation",
|
|
17192
17243
|
tabindex: "0"
|
|
17193
17244
|
}, [
|
|
17194
|
-
createVNode(unref(_sfc_main$
|
|
17245
|
+
createVNode(unref(_sfc_main$F), {
|
|
17195
17246
|
icon: "chevron_right",
|
|
17196
17247
|
class: "top-arrow"
|
|
17197
17248
|
})
|
|
17198
17249
|
], 32),
|
|
17199
|
-
createElementVNode("div", _hoisted_1$
|
|
17250
|
+
createElementVNode("div", _hoisted_1$H, [
|
|
17200
17251
|
createElementVNode("div", _hoisted_2$y, [
|
|
17201
|
-
createElementVNode("div", _hoisted_3$
|
|
17252
|
+
createElementVNode("div", _hoisted_3$o, [
|
|
17202
17253
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
17203
17254
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
17204
17255
|
class: "nav-button",
|
|
@@ -17210,17 +17261,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
17210
17261
|
}
|
|
17211
17262
|
}, {
|
|
17212
17263
|
default: withCtx(() => [
|
|
17213
|
-
createVNode(unref(_sfc_main$
|
|
17264
|
+
createVNode(unref(_sfc_main$F), {
|
|
17214
17265
|
icon: link.icon
|
|
17215
17266
|
}, null, 8, ["icon"]),
|
|
17216
|
-
createElementVNode("div", _hoisted_4$
|
|
17267
|
+
createElementVNode("div", _hoisted_4$g, toDisplayString(link.label), 1)
|
|
17217
17268
|
]),
|
|
17218
17269
|
_: 2
|
|
17219
17270
|
}, 1032, ["to", "onClick"]);
|
|
17220
17271
|
}), 128))
|
|
17221
17272
|
])
|
|
17222
17273
|
]),
|
|
17223
|
-
createElementVNode("div", _hoisted_5$
|
|
17274
|
+
createElementVNode("div", _hoisted_5$d, [
|
|
17224
17275
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.footerLinks, (link) => {
|
|
17225
17276
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
17226
17277
|
class: "nav-button",
|
|
@@ -17232,10 +17283,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
17232
17283
|
key: link.label
|
|
17233
17284
|
}, {
|
|
17234
17285
|
default: withCtx(() => [
|
|
17235
|
-
createVNode(unref(_sfc_main$
|
|
17286
|
+
createVNode(unref(_sfc_main$F), {
|
|
17236
17287
|
icon: link.icon
|
|
17237
17288
|
}, null, 8, ["icon"]),
|
|
17238
|
-
createElementVNode("div", _hoisted_6$
|
|
17289
|
+
createElementVNode("div", _hoisted_6$9, toDisplayString(link.label), 1)
|
|
17239
17290
|
]),
|
|
17240
17291
|
_: 2
|
|
17241
17292
|
}, 1032, ["to", "onClick"]);
|
|
@@ -17254,8 +17305,8 @@ const _export_sfc = (sfc, props2) => {
|
|
|
17254
17305
|
}
|
|
17255
17306
|
return target;
|
|
17256
17307
|
};
|
|
17257
|
-
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17258
|
-
const _hoisted_1$
|
|
17308
|
+
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-727b754a"]]);
|
|
17309
|
+
const _hoisted_1$G = {
|
|
17259
17310
|
key: 0,
|
|
17260
17311
|
class: "loading"
|
|
17261
17312
|
};
|
|
@@ -17263,7 +17314,7 @@ const _hoisted_2$x = {
|
|
|
17263
17314
|
key: 1,
|
|
17264
17315
|
class: "bgl_btn-flex"
|
|
17265
17316
|
};
|
|
17266
|
-
const _sfc_main$
|
|
17317
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
17267
17318
|
__name: "Btn",
|
|
17268
17319
|
props: {
|
|
17269
17320
|
disabled: { type: Boolean, default: false },
|
|
@@ -17349,8 +17400,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17349
17400
|
})
|
|
17350
17401
|
}, {
|
|
17351
17402
|
default: withCtx(() => [
|
|
17352
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17353
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17403
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$G)) : (openBlock(), createElementBlock("div", _hoisted_2$x, [
|
|
17404
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
17354
17405
|
key: 0,
|
|
17355
17406
|
icon: _ctx.icon
|
|
17356
17407
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -17358,7 +17409,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17358
17409
|
!unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
17359
17410
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
17360
17411
|
], 64)) : createCommentVNode("", true),
|
|
17361
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17412
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
17362
17413
|
key: 2,
|
|
17363
17414
|
icon: props2["icon.end"]
|
|
17364
17415
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
@@ -17369,10 +17420,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
17369
17420
|
};
|
|
17370
17421
|
}
|
|
17371
17422
|
});
|
|
17372
|
-
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17373
|
-
const _hoisted_1$
|
|
17423
|
+
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0c8d9a95"]]);
|
|
17424
|
+
const _hoisted_1$F = { class: "tool-bar" };
|
|
17374
17425
|
const _hoisted_2$w = { class: "modal-footer mt-3" };
|
|
17375
|
-
const _sfc_main$
|
|
17426
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
17376
17427
|
__name: "Modal",
|
|
17377
17428
|
props: {
|
|
17378
17429
|
side: { type: Boolean },
|
|
@@ -17413,13 +17464,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17413
17464
|
onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
|
|
17414
17465
|
onKeydown: withKeys(closeModal, ["esc"])
|
|
17415
17466
|
}, [
|
|
17416
|
-
createVNode(unref(_sfc_main$
|
|
17467
|
+
createVNode(unref(_sfc_main$q), {
|
|
17417
17468
|
class: "modal",
|
|
17418
17469
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
17419
17470
|
}, ["stop"]))
|
|
17420
17471
|
}, {
|
|
17421
17472
|
default: withCtx(() => [
|
|
17422
|
-
createElementVNode("header", _hoisted_1$
|
|
17473
|
+
createElementVNode("header", _hoisted_1$F, [
|
|
17423
17474
|
renderSlot(_ctx.$slots, "toolbar"),
|
|
17424
17475
|
createVNode(unref(Btn), {
|
|
17425
17476
|
style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
|
|
@@ -17427,7 +17478,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17427
17478
|
icon: "close",
|
|
17428
17479
|
onClick: closeModal
|
|
17429
17480
|
}, null, 8, ["style"]),
|
|
17430
|
-
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17481
|
+
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
17431
17482
|
key: 0,
|
|
17432
17483
|
class: "modal-title",
|
|
17433
17484
|
tag: "h3",
|
|
@@ -17452,7 +17503,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
17452
17503
|
};
|
|
17453
17504
|
}
|
|
17454
17505
|
});
|
|
17455
|
-
const _sfc_main$
|
|
17506
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
17456
17507
|
__name: "ModalForm",
|
|
17457
17508
|
props: /* @__PURE__ */ mergeModels({
|
|
17458
17509
|
side: { type: Boolean },
|
|
@@ -17509,7 +17560,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
17509
17560
|
}
|
|
17510
17561
|
__expose({ setFormValues });
|
|
17511
17562
|
return (_ctx, _cache) => {
|
|
17512
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
17563
|
+
return openBlock(), createBlock(unref(_sfc_main$C), {
|
|
17513
17564
|
"onOnUpdate:isModalVisible": props2["onUpdate:isModalVisible"],
|
|
17514
17565
|
side: _ctx.side,
|
|
17515
17566
|
ref_key: "modal",
|
|
@@ -17518,7 +17569,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
17518
17569
|
title: _ctx.title
|
|
17519
17570
|
}, createSlots({
|
|
17520
17571
|
default: withCtx(() => [
|
|
17521
|
-
createVNode(unref(_sfc_main$
|
|
17572
|
+
createVNode(unref(_sfc_main$h), {
|
|
17522
17573
|
onSubmit: runSubmit,
|
|
17523
17574
|
ref_key: "form",
|
|
17524
17575
|
ref: form,
|
|
@@ -17560,12 +17611,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
17560
17611
|
};
|
|
17561
17612
|
}
|
|
17562
17613
|
});
|
|
17563
|
-
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17564
|
-
const _hoisted_1$
|
|
17614
|
+
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7e6899c7"]]);
|
|
17615
|
+
const _hoisted_1$E = { class: "accordion-item" };
|
|
17565
17616
|
const _hoisted_2$v = ["aria-expanded", "aria-controls"];
|
|
17566
|
-
const _hoisted_3$
|
|
17567
|
-
const _hoisted_4$
|
|
17568
|
-
const _sfc_main$
|
|
17617
|
+
const _hoisted_3$n = { class: "accordion-label" };
|
|
17618
|
+
const _hoisted_4$f = ["id", "aria-hidden"];
|
|
17619
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
17569
17620
|
__name: "AccordionItem",
|
|
17570
17621
|
props: {
|
|
17571
17622
|
label: {},
|
|
@@ -17589,18 +17640,18 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
17589
17640
|
accordionState.openItem = null;
|
|
17590
17641
|
}
|
|
17591
17642
|
return (_ctx, _cache) => {
|
|
17592
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17643
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
17593
17644
|
createElementVNode("button", {
|
|
17594
17645
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
17595
17646
|
"aria-expanded": unref(open) ? "true" : "false",
|
|
17596
17647
|
class: "accordion-head",
|
|
17597
17648
|
"aria-controls": `accordion-body-${unref(id)}`
|
|
17598
17649
|
}, [
|
|
17599
|
-
createElementVNode("span", _hoisted_3$
|
|
17650
|
+
createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1),
|
|
17600
17651
|
createElementVNode("div", {
|
|
17601
17652
|
class: normalizeClass(["accordion-icon", { open: unref(open) }])
|
|
17602
17653
|
}, [
|
|
17603
|
-
createVNode(unref(_sfc_main$
|
|
17654
|
+
createVNode(unref(_sfc_main$F), { icon: "expand_more" })
|
|
17604
17655
|
], 2)
|
|
17605
17656
|
], 8, _hoisted_2$v),
|
|
17606
17657
|
createVNode(Transition, { name: "expand" }, {
|
|
@@ -17612,7 +17663,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
17612
17663
|
"aria-hidden": unref(open) ? "false" : "true"
|
|
17613
17664
|
}, [
|
|
17614
17665
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
17615
|
-
], 8, _hoisted_4$
|
|
17666
|
+
], 8, _hoisted_4$f)) : createCommentVNode("", true)
|
|
17616
17667
|
]),
|
|
17617
17668
|
_: 3
|
|
17618
17669
|
})
|
|
@@ -17620,29 +17671,28 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
17620
17671
|
};
|
|
17621
17672
|
}
|
|
17622
17673
|
});
|
|
17623
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17624
|
-
const _hoisted_1$
|
|
17674
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-bf74738b"]]);
|
|
17675
|
+
const _hoisted_1$D = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
17625
17676
|
const _hoisted_2$u = { class: "p-1" };
|
|
17626
|
-
const _hoisted_3$
|
|
17627
|
-
const _sfc_main$
|
|
17677
|
+
const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
17678
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
17628
17679
|
__name: "ListView",
|
|
17629
17680
|
setup(__props) {
|
|
17630
17681
|
return (_ctx, _cache) => {
|
|
17631
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17682
|
+
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
17632
17683
|
createElementVNode("div", _hoisted_2$u, [
|
|
17633
17684
|
renderSlot(_ctx.$slots, "header")
|
|
17634
17685
|
]),
|
|
17635
|
-
|
|
17636
|
-
createElementVNode("div", _hoisted_3$n, [
|
|
17686
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
17637
17687
|
renderSlot(_ctx.$slots, "default")
|
|
17638
17688
|
])
|
|
17639
17689
|
]);
|
|
17640
17690
|
};
|
|
17641
17691
|
}
|
|
17642
17692
|
});
|
|
17643
|
-
const _hoisted_1$
|
|
17693
|
+
const _hoisted_1$C = { class: "txt16 no-margin ellipsis" };
|
|
17644
17694
|
const _hoisted_2$t = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
17645
|
-
const _sfc_main$
|
|
17695
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
17646
17696
|
__name: "ListItem",
|
|
17647
17697
|
props: {
|
|
17648
17698
|
src: {},
|
|
@@ -17666,7 +17716,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17666
17716
|
size: 40
|
|
17667
17717
|
}, null, 8, ["name", "src"])) : createCommentVNode("", true),
|
|
17668
17718
|
createElementVNode("div", null, [
|
|
17669
|
-
createElementVNode("p", _hoisted_1$
|
|
17719
|
+
createElementVNode("p", _hoisted_1$C, [
|
|
17670
17720
|
createTextVNode(toDisplayString(_ctx.title) + " ", 1),
|
|
17671
17721
|
renderSlot(_ctx.$slots, "default")
|
|
17672
17722
|
]),
|
|
@@ -17681,10 +17731,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
17681
17731
|
};
|
|
17682
17732
|
}
|
|
17683
17733
|
});
|
|
17684
|
-
const _hoisted_1$
|
|
17734
|
+
const _hoisted_1$B = { class: "bgl_card tabs-top" };
|
|
17685
17735
|
const _hoisted_2$s = { class: "tabs grid auto-flow-columns fit-content" };
|
|
17686
|
-
const _hoisted_3$
|
|
17687
|
-
const _sfc_main$
|
|
17736
|
+
const _hoisted_3$l = ["onClick"];
|
|
17737
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
17688
17738
|
__name: "TabbedLayout",
|
|
17689
17739
|
props: {
|
|
17690
17740
|
title: {},
|
|
@@ -17719,7 +17769,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17719
17769
|
return openBlock(), createElementBlock("div", {
|
|
17720
17770
|
class: normalizeClass(["h-100 grid list-view gap-1", { "side-tabs": _ctx.sideTabs }])
|
|
17721
17771
|
}, [
|
|
17722
|
-
createElementVNode("div", _hoisted_1$
|
|
17772
|
+
createElementVNode("div", _hoisted_1$B, [
|
|
17723
17773
|
renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
17724
17774
|
createElementVNode("div", _hoisted_2$s, [
|
|
17725
17775
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
|
|
@@ -17730,7 +17780,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17730
17780
|
}, "tab"]),
|
|
17731
17781
|
key: tab,
|
|
17732
17782
|
onClick: ($event) => changeTab(tab)
|
|
17733
|
-
}, toDisplayString(tab), 11, _hoisted_3$
|
|
17783
|
+
}, toDisplayString(tab), 11, _hoisted_3$l);
|
|
17734
17784
|
}), 128))
|
|
17735
17785
|
])
|
|
17736
17786
|
]),
|
|
@@ -17746,16 +17796,16 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
17746
17796
|
};
|
|
17747
17797
|
}
|
|
17748
17798
|
});
|
|
17749
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17750
|
-
const _hoisted_1$
|
|
17799
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-37337215"]]);
|
|
17800
|
+
const _hoisted_1$A = { class: "comments-wrap" };
|
|
17751
17801
|
const _hoisted_2$r = { class: "comment-list" };
|
|
17752
|
-
const _hoisted_3$
|
|
17753
|
-
const _hoisted_4$
|
|
17754
|
-
const _hoisted_5$
|
|
17755
|
-
const _hoisted_6$
|
|
17756
|
-
const _hoisted_7$
|
|
17802
|
+
const _hoisted_3$k = { class: "comment-top" };
|
|
17803
|
+
const _hoisted_4$e = { class: "comment-owner" };
|
|
17804
|
+
const _hoisted_5$c = { class: "comment-time" };
|
|
17805
|
+
const _hoisted_6$8 = { class: "comment-actions" };
|
|
17806
|
+
const _hoisted_7$4 = ["innerHTML"];
|
|
17757
17807
|
const _hoisted_8$2 = { class: "new-comment" };
|
|
17758
|
-
const _sfc_main$
|
|
17808
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
17759
17809
|
__name: "Comments",
|
|
17760
17810
|
props: {
|
|
17761
17811
|
ref_table: {},
|
|
@@ -17798,7 +17848,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17798
17848
|
void fetchData();
|
|
17799
17849
|
};
|
|
17800
17850
|
return (_ctx, _cache) => {
|
|
17801
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17851
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
17802
17852
|
createElementVNode("div", _hoisted_2$r, [
|
|
17803
17853
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
|
|
17804
17854
|
var _a2, _b, _c;
|
|
@@ -17809,23 +17859,23 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17809
17859
|
}, "comment"]),
|
|
17810
17860
|
key: comment.id
|
|
17811
17861
|
}, [
|
|
17812
|
-
createElementVNode("div", _hoisted_3$
|
|
17813
|
-
createElementVNode("div", _hoisted_4$
|
|
17814
|
-
createElementVNode("div", _hoisted_5$
|
|
17815
|
-
createElementVNode("div", _hoisted_6$
|
|
17816
|
-
createVNode(unref(_sfc_main$
|
|
17862
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
17863
|
+
createElementVNode("div", _hoisted_4$e, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
|
|
17864
|
+
createElementVNode("div", _hoisted_5$c, toDisplayString(comment.updated_at.split("T")[0]), 1),
|
|
17865
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
17866
|
+
createVNode(unref(_sfc_main$F), {
|
|
17817
17867
|
size: 1,
|
|
17818
17868
|
class: "edit",
|
|
17819
17869
|
icon: "edit",
|
|
17820
17870
|
onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
|
|
17821
17871
|
}, null, 8, ["onClick"]),
|
|
17822
|
-
createVNode(unref(_sfc_main$
|
|
17872
|
+
createVNode(unref(_sfc_main$F), {
|
|
17823
17873
|
size: 1.2,
|
|
17824
17874
|
class: "delete",
|
|
17825
17875
|
icon: "delete",
|
|
17826
17876
|
onClick: ($event) => deleteComment(comment.id)
|
|
17827
17877
|
}, null, 8, ["onClick"]),
|
|
17828
|
-
createVNode(unref(_sfc_main$
|
|
17878
|
+
createVNode(unref(_sfc_main$F), {
|
|
17829
17879
|
size: 1.2,
|
|
17830
17880
|
class: "save",
|
|
17831
17881
|
icon: "save",
|
|
@@ -17833,7 +17883,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17833
17883
|
})
|
|
17834
17884
|
])
|
|
17835
17885
|
]),
|
|
17836
|
-
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17886
|
+
unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$G), {
|
|
17837
17887
|
key: 0,
|
|
17838
17888
|
modelValue: unref(editComment).body_html,
|
|
17839
17889
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
|
|
@@ -17842,12 +17892,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17842
17892
|
key: 1,
|
|
17843
17893
|
class: "editor-wrapper",
|
|
17844
17894
|
innerHTML: comment.body_html
|
|
17845
|
-
}, null, 8, _hoisted_7$
|
|
17895
|
+
}, null, 8, _hoisted_7$4))
|
|
17846
17896
|
], 2);
|
|
17847
17897
|
}), 128))
|
|
17848
17898
|
]),
|
|
17849
17899
|
createElementVNode("div", _hoisted_8$2, [
|
|
17850
|
-
createVNode(unref(_sfc_main$
|
|
17900
|
+
createVNode(unref(_sfc_main$G), {
|
|
17851
17901
|
class: "comment-input",
|
|
17852
17902
|
modelValue: unref(bodyHtml),
|
|
17853
17903
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
|
|
@@ -17867,10 +17917,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
17867
17917
|
};
|
|
17868
17918
|
}
|
|
17869
17919
|
});
|
|
17870
|
-
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17871
|
-
const _hoisted_1$
|
|
17920
|
+
const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-c4b41dc0"]]);
|
|
17921
|
+
const _hoisted_1$z = { class: "page-top" };
|
|
17872
17922
|
const _hoisted_2$q = { class: "top-title" };
|
|
17873
|
-
const _sfc_main$
|
|
17923
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
17874
17924
|
__name: "PageTitle",
|
|
17875
17925
|
props: {
|
|
17876
17926
|
value: {
|
|
@@ -17880,7 +17930,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17880
17930
|
},
|
|
17881
17931
|
setup(__props) {
|
|
17882
17932
|
return (_ctx, _cache) => {
|
|
17883
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17933
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
17884
17934
|
createElementVNode("h1", _hoisted_2$q, [
|
|
17885
17935
|
renderSlot(_ctx.$slots, "default"),
|
|
17886
17936
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
@@ -17889,14 +17939,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
17889
17939
|
};
|
|
17890
17940
|
}
|
|
17891
17941
|
});
|
|
17892
|
-
const _hoisted_1$
|
|
17942
|
+
const _hoisted_1$y = { class: "table-list-wrap h-100" };
|
|
17893
17943
|
const _hoisted_2$p = { class: "infinite-wrapper" };
|
|
17894
|
-
const _hoisted_3$
|
|
17895
|
-
const _hoisted_4$
|
|
17896
|
-
const _hoisted_5$
|
|
17897
|
-
const _hoisted_6$
|
|
17898
|
-
const _hoisted_7$
|
|
17899
|
-
const _sfc_main$
|
|
17944
|
+
const _hoisted_3$j = { class: "row first-row" };
|
|
17945
|
+
const _hoisted_4$d = ["onClick"];
|
|
17946
|
+
const _hoisted_5$b = { class: "flex" };
|
|
17947
|
+
const _hoisted_6$7 = ["onClick"];
|
|
17948
|
+
const _hoisted_7$3 = { key: 1 };
|
|
17949
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
17900
17950
|
__name: "TableSchema",
|
|
17901
17951
|
props: {
|
|
17902
17952
|
data: {},
|
|
@@ -17930,27 +17980,27 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17930
17980
|
emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
|
|
17931
17981
|
};
|
|
17932
17982
|
return (_ctx, _cache) => {
|
|
17933
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17983
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
17934
17984
|
createElementVNode("table", _hoisted_2$p, [
|
|
17935
|
-
createElementVNode("thead", _hoisted_3$
|
|
17985
|
+
createElementVNode("thead", _hoisted_3$j, [
|
|
17936
17986
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
17937
17987
|
return openBlock(), createElementBlock("th", {
|
|
17938
17988
|
class: "col",
|
|
17939
17989
|
key: field.id,
|
|
17940
17990
|
onClick: ($event) => sort2((field == null ? void 0 : field.id) || "")
|
|
17941
17991
|
}, [
|
|
17942
|
-
createElementVNode("div", _hoisted_5$
|
|
17992
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
17943
17993
|
createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field.id)) + " ", 1),
|
|
17944
17994
|
createElementVNode("div", {
|
|
17945
17995
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
17946
17996
|
}, [
|
|
17947
|
-
createVNode(unref(_sfc_main$
|
|
17997
|
+
createVNode(unref(_sfc_main$F), {
|
|
17948
17998
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
17949
17999
|
icon: "keyboard_arrow_up"
|
|
17950
18000
|
}, null, 8, ["class"])
|
|
17951
18001
|
], 2)
|
|
17952
18002
|
])
|
|
17953
|
-
], 8, _hoisted_4$
|
|
18003
|
+
], 8, _hoisted_4$d);
|
|
17954
18004
|
}), 128))
|
|
17955
18005
|
]),
|
|
17956
18006
|
createElementVNode("tbody", {
|
|
@@ -17972,15 +18022,15 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17972
18022
|
key: 0,
|
|
17973
18023
|
row,
|
|
17974
18024
|
field
|
|
17975
|
-
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
17976
|
-
createVNode(unref(_sfc_main$
|
|
18025
|
+
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
18026
|
+
createVNode(unref(_sfc_main$g), {
|
|
17977
18027
|
field,
|
|
17978
18028
|
modelValue: row
|
|
17979
18029
|
}, null, 8, ["field", "modelValue"])
|
|
17980
18030
|
]))
|
|
17981
18031
|
]);
|
|
17982
18032
|
}), 128))
|
|
17983
|
-
], 8, _hoisted_6$
|
|
18033
|
+
], 8, _hoisted_6$7);
|
|
17984
18034
|
}), 128))
|
|
17985
18035
|
], 2)
|
|
17986
18036
|
])
|
|
@@ -17988,16 +18038,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
17988
18038
|
};
|
|
17989
18039
|
}
|
|
17990
18040
|
});
|
|
17991
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17992
|
-
const _sfc_main$
|
|
17993
|
-
const _hoisted_1$
|
|
18041
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-f3641508"]]);
|
|
18042
|
+
const _sfc_main$t = {};
|
|
18043
|
+
const _hoisted_1$x = { class: "flex space-between" };
|
|
17994
18044
|
function _sfc_render$1(_ctx, _cache) {
|
|
17995
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18045
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
17996
18046
|
renderSlot(_ctx.$slots, "default")
|
|
17997
18047
|
]);
|
|
17998
18048
|
}
|
|
17999
|
-
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18000
|
-
const _sfc_main$
|
|
18049
|
+
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1]]);
|
|
18050
|
+
const _sfc_main$s = {};
|
|
18001
18051
|
function _sfc_render(_ctx, _cache) {
|
|
18002
18052
|
const _component_router_view = resolveComponent("router-view");
|
|
18003
18053
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -18019,8 +18069,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
18019
18069
|
_: 1
|
|
18020
18070
|
});
|
|
18021
18071
|
}
|
|
18022
|
-
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18023
|
-
const _hoisted_1$
|
|
18072
|
+
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
|
|
18073
|
+
const _hoisted_1$w = {
|
|
18024
18074
|
key: 0,
|
|
18025
18075
|
class: "data"
|
|
18026
18076
|
};
|
|
@@ -18028,11 +18078,11 @@ const _hoisted_2$o = {
|
|
|
18028
18078
|
key: 0,
|
|
18029
18079
|
class: "data-row"
|
|
18030
18080
|
};
|
|
18031
|
-
const _hoisted_3$
|
|
18032
|
-
const _hoisted_4$
|
|
18033
|
-
const _hoisted_5$
|
|
18034
|
-
const _hoisted_6$
|
|
18035
|
-
const _sfc_main$
|
|
18081
|
+
const _hoisted_3$i = { class: "key" };
|
|
18082
|
+
const _hoisted_4$c = { key: 1 };
|
|
18083
|
+
const _hoisted_5$a = { class: "key" };
|
|
18084
|
+
const _hoisted_6$6 = { class: "vlue" };
|
|
18085
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
18036
18086
|
__name: "DataPreview",
|
|
18037
18087
|
props: /* @__PURE__ */ mergeModels({
|
|
18038
18088
|
schema: {},
|
|
@@ -18046,8 +18096,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18046
18096
|
const itemData = useModel(__props, "data");
|
|
18047
18097
|
return (_ctx, _cache) => {
|
|
18048
18098
|
var _a2;
|
|
18049
|
-
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18050
|
-
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18099
|
+
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
18100
|
+
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
18051
18101
|
key: 0,
|
|
18052
18102
|
label: _ctx.title
|
|
18053
18103
|
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
@@ -18056,8 +18106,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18056
18106
|
key: field.id
|
|
18057
18107
|
}, [
|
|
18058
18108
|
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
18059
|
-
createElementVNode("div", _hoisted_3$
|
|
18060
|
-
createVNode(unref(_sfc_main$
|
|
18109
|
+
createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
18110
|
+
createVNode(unref(_sfc_main$g), {
|
|
18061
18111
|
field,
|
|
18062
18112
|
modelValue: itemData.value,
|
|
18063
18113
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event)
|
|
@@ -18065,14 +18115,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18065
18115
|
])) : createCommentVNode("", true)
|
|
18066
18116
|
], 64);
|
|
18067
18117
|
}), 128)),
|
|
18068
|
-
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
18118
|
+
!((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
18069
18119
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(itemData.value), ([key, value]) => {
|
|
18070
18120
|
return openBlock(), createElementBlock("div", {
|
|
18071
18121
|
class: "data-row",
|
|
18072
18122
|
key
|
|
18073
18123
|
}, [
|
|
18074
|
-
createElementVNode("div", _hoisted_5$
|
|
18075
|
-
createElementVNode("div", _hoisted_6$
|
|
18124
|
+
createElementVNode("div", _hoisted_5$a, toDisplayString(unref(keyToLabel)(key)), 1),
|
|
18125
|
+
createElementVNode("div", _hoisted_6$6, toDisplayString(value), 1)
|
|
18076
18126
|
]);
|
|
18077
18127
|
}), 128))
|
|
18078
18128
|
])) : createCommentVNode("", true),
|
|
@@ -18081,8 +18131,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
18081
18131
|
};
|
|
18082
18132
|
}
|
|
18083
18133
|
});
|
|
18084
|
-
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18085
|
-
const _sfc_main$
|
|
18134
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bb2526f9"]]);
|
|
18135
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
18086
18136
|
__name: "Card",
|
|
18087
18137
|
props: {
|
|
18088
18138
|
thin: { type: Boolean },
|
|
@@ -18109,8 +18159,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
18109
18159
|
};
|
|
18110
18160
|
}
|
|
18111
18161
|
});
|
|
18112
|
-
const _hoisted_1$
|
|
18113
|
-
const _sfc_main$
|
|
18162
|
+
const _hoisted_1$v = ["src", "alt"];
|
|
18163
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
18114
18164
|
__name: "Avatar",
|
|
18115
18165
|
props: {
|
|
18116
18166
|
fallback: {},
|
|
@@ -18128,7 +18178,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18128
18178
|
key: 0,
|
|
18129
18179
|
src: _ctx.src,
|
|
18130
18180
|
alt: _ctx.name
|
|
18131
|
-
}, null, 8, _hoisted_1$
|
|
18181
|
+
}, null, 8, _hoisted_1$v)) : (openBlock(), createElementBlock("p", {
|
|
18132
18182
|
key: 1,
|
|
18133
18183
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
18134
18184
|
}, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
|
|
@@ -18136,8 +18186,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
18136
18186
|
};
|
|
18137
18187
|
}
|
|
18138
18188
|
});
|
|
18139
|
-
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18140
|
-
const _sfc_main$
|
|
18189
|
+
const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-c38bc02a"]]);
|
|
18190
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
18141
18191
|
__name: "Title",
|
|
18142
18192
|
props: {
|
|
18143
18193
|
value: {
|
|
@@ -18165,7 +18215,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
18165
18215
|
};
|
|
18166
18216
|
}
|
|
18167
18217
|
});
|
|
18168
|
-
const _sfc_main$
|
|
18218
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
18169
18219
|
__name: "Accordion",
|
|
18170
18220
|
setup(__props) {
|
|
18171
18221
|
const state = reactive({
|
|
@@ -18179,8 +18229,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
18179
18229
|
};
|
|
18180
18230
|
}
|
|
18181
18231
|
});
|
|
18182
|
-
const _hoisted_1$
|
|
18183
|
-
const _sfc_main$
|
|
18232
|
+
const _hoisted_1$u = ["onClick"];
|
|
18233
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
18184
18234
|
__name: "ComboBox",
|
|
18185
18235
|
props: {
|
|
18186
18236
|
options: {},
|
|
@@ -18188,7 +18238,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18188
18238
|
disabled: { type: Boolean },
|
|
18189
18239
|
modelValue: {},
|
|
18190
18240
|
searchable: { type: Boolean },
|
|
18191
|
-
required: { type: Boolean }
|
|
18241
|
+
required: { type: Boolean },
|
|
18242
|
+
label: {},
|
|
18243
|
+
fullWidth: { type: Boolean }
|
|
18192
18244
|
},
|
|
18193
18245
|
emits: ["update:modelValue"],
|
|
18194
18246
|
setup(__props, { emit: __emit }) {
|
|
@@ -18217,10 +18269,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18217
18269
|
});
|
|
18218
18270
|
if (!option2)
|
|
18219
18271
|
return value;
|
|
18220
|
-
return
|
|
18272
|
+
return getLabel(option2);
|
|
18221
18273
|
};
|
|
18222
18274
|
const emit2 = __emit;
|
|
18223
|
-
const
|
|
18275
|
+
const getLabel = (option2) => {
|
|
18224
18276
|
if (typeof option2 === "string")
|
|
18225
18277
|
return option2;
|
|
18226
18278
|
if (typeof option2 === "number")
|
|
@@ -18256,13 +18308,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18256
18308
|
}, { immediate: true });
|
|
18257
18309
|
return (_ctx, _cache) => {
|
|
18258
18310
|
return openBlock(), createBlock(unref(kt$1), {
|
|
18259
|
-
placement: "
|
|
18311
|
+
placement: "bottom-start",
|
|
18260
18312
|
class: "bagel-input combobox"
|
|
18261
18313
|
}, {
|
|
18262
18314
|
popper: withCtx(({ hide }) => [
|
|
18263
|
-
createVNode(unref(_sfc_main$
|
|
18264
|
-
|
|
18265
|
-
|
|
18315
|
+
createVNode(unref(_sfc_main$q), {
|
|
18316
|
+
class: "combobox-options p-05",
|
|
18317
|
+
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
18266
18318
|
}, {
|
|
18267
18319
|
default: withCtx(() => [
|
|
18268
18320
|
_ctx.searchable ? (openBlock(), createBlock(unref(TextInput), {
|
|
@@ -18277,50 +18329,59 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18277
18329
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
18278
18330
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(filteredOptions.value, (option2, i2) => {
|
|
18279
18331
|
return openBlock(), createElementBlock("div", {
|
|
18280
|
-
class: normalizeClass(["combobox-option", { selected: option2 === unref(selectedItem) }]),
|
|
18332
|
+
class: normalizeClass(["combobox-option hover gap-1", { selected: option2 === unref(selectedItem) }]),
|
|
18281
18333
|
key: `${option2}${i2}`,
|
|
18282
18334
|
onClick: () => {
|
|
18283
18335
|
select2(option2);
|
|
18284
18336
|
hide();
|
|
18285
18337
|
}
|
|
18286
18338
|
}, [
|
|
18287
|
-
|
|
18288
|
-
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$H), {
|
|
18339
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18289
18340
|
key: 0,
|
|
18290
18341
|
icon: "check"
|
|
18291
|
-
})) : createCommentVNode("", true)
|
|
18292
|
-
|
|
18293
|
-
|
|
18342
|
+
})) : createCommentVNode("", true),
|
|
18343
|
+
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18344
|
+
key: 1,
|
|
18345
|
+
class: "opacity-3",
|
|
18346
|
+
icon: "fiber_manual_record"
|
|
18347
|
+
})) : createCommentVNode("", true),
|
|
18348
|
+
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
18349
|
+
], 10, _hoisted_1$u);
|
|
18350
|
+
}), 128)),
|
|
18351
|
+
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
18294
18352
|
]),
|
|
18295
18353
|
_: 2
|
|
18296
|
-
},
|
|
18354
|
+
}, 1032, ["style"])
|
|
18297
18355
|
]),
|
|
18298
18356
|
default: withCtx(() => [
|
|
18299
|
-
createElementVNode("
|
|
18300
|
-
|
|
18301
|
-
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18357
|
+
createElementVNode("label", null, [
|
|
18358
|
+
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
18359
|
+
createElementVNode("button", {
|
|
18360
|
+
type: "button",
|
|
18361
|
+
class: "combobox-btn",
|
|
18362
|
+
onClick: toggle
|
|
18363
|
+
}, [
|
|
18364
|
+
createTextVNode(toDisplayString(valueToLabel(unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
|
|
18365
|
+
createVNode(unref(_sfc_main$F), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
|
|
18366
|
+
]),
|
|
18367
|
+
_ctx.required ? withDirectives((openBlock(), createElementBlock("input", {
|
|
18368
|
+
key: 0,
|
|
18369
|
+
style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
|
|
18370
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectedItem) ? selectedItem.value = $event : selectedItem = $event),
|
|
18371
|
+
required: ""
|
|
18372
|
+
}, null, 512)), [
|
|
18373
|
+
[vModelText, unref(selectedItem)]
|
|
18374
|
+
]) : createCommentVNode("", true)
|
|
18375
|
+
])
|
|
18315
18376
|
]),
|
|
18316
|
-
_:
|
|
18377
|
+
_: 3
|
|
18317
18378
|
});
|
|
18318
18379
|
};
|
|
18319
18380
|
}
|
|
18320
18381
|
});
|
|
18321
|
-
const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18322
|
-
const _hoisted_1$
|
|
18323
|
-
const _sfc_main$
|
|
18382
|
+
const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-14fbb20b"]]);
|
|
18383
|
+
const _hoisted_1$t = ["dismissable"];
|
|
18384
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18324
18385
|
__name: "Alert",
|
|
18325
18386
|
props: {
|
|
18326
18387
|
message: {},
|
|
@@ -18340,7 +18401,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18340
18401
|
class: normalizeClass(["alert", [_ctx.type]]),
|
|
18341
18402
|
dismissable: _ctx.dismissable
|
|
18342
18403
|
}, [
|
|
18343
|
-
createVNode(unref(_sfc_main$
|
|
18404
|
+
createVNode(unref(_sfc_main$F), {
|
|
18344
18405
|
class: "alert_icon",
|
|
18345
18406
|
icon: _ctx.type,
|
|
18346
18407
|
size: 2,
|
|
@@ -18354,12 +18415,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18354
18415
|
class: "alert_close",
|
|
18355
18416
|
icon: "close"
|
|
18356
18417
|
})
|
|
18357
|
-
], 10, _hoisted_1$
|
|
18418
|
+
], 10, _hoisted_1$t)) : createCommentVNode("", true);
|
|
18358
18419
|
};
|
|
18359
18420
|
}
|
|
18360
18421
|
});
|
|
18361
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18362
|
-
const _sfc_main$
|
|
18422
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-94bfcb05"]]);
|
|
18423
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18363
18424
|
__name: "Badge",
|
|
18364
18425
|
props: {
|
|
18365
18426
|
color: {},
|
|
@@ -18374,13 +18435,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18374
18435
|
return openBlock(), createElementBlock("div", {
|
|
18375
18436
|
class: normalizeClass(["pill", [_ctx.color]])
|
|
18376
18437
|
}, [
|
|
18377
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18438
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18378
18439
|
key: 0,
|
|
18379
18440
|
class: "inline",
|
|
18380
18441
|
icon: _ctx.icon
|
|
18381
18442
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
18382
18443
|
createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
|
|
18383
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18444
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18384
18445
|
key: 1,
|
|
18385
18446
|
class: "inline",
|
|
18386
18447
|
icon: props2["icon.end"]
|
|
@@ -18389,11 +18450,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18389
18450
|
};
|
|
18390
18451
|
}
|
|
18391
18452
|
});
|
|
18392
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18393
|
-
const _hoisted_1$
|
|
18453
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-10743b06"]]);
|
|
18454
|
+
const _hoisted_1$s = { class: "bgl_vid" };
|
|
18394
18455
|
const _hoisted_2$n = ["src"];
|
|
18395
|
-
const _hoisted_3$
|
|
18396
|
-
const _sfc_main$
|
|
18456
|
+
const _hoisted_3$h = ["src", "autoplay", "muted", "loop", "controls"];
|
|
18457
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18397
18458
|
__name: "BglVideo",
|
|
18398
18459
|
props: {
|
|
18399
18460
|
src: {},
|
|
@@ -18432,7 +18493,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18432
18493
|
});
|
|
18433
18494
|
console.log("Video URL:", videoUrl.value);
|
|
18434
18495
|
return (_ctx, _cache) => {
|
|
18435
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18496
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
18436
18497
|
embedType.value ? (openBlock(), createElementBlock("iframe", {
|
|
18437
18498
|
key: 0,
|
|
18438
18499
|
src: videoUrl.value,
|
|
@@ -18449,18 +18510,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18449
18510
|
style: normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
18450
18511
|
controls: _ctx.controls,
|
|
18451
18512
|
playsinline: ""
|
|
18452
|
-
}, null, 12, _hoisted_3$
|
|
18513
|
+
}, null, 12, _hoisted_3$h))
|
|
18453
18514
|
]);
|
|
18454
18515
|
};
|
|
18455
18516
|
}
|
|
18456
18517
|
});
|
|
18457
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18458
|
-
const _hoisted_1$
|
|
18518
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-23835d69"]]);
|
|
18519
|
+
const _hoisted_1$r = {
|
|
18459
18520
|
key: 0,
|
|
18460
18521
|
class: "blocker"
|
|
18461
18522
|
};
|
|
18462
18523
|
const _hoisted_2$m = { class: "Handlers" };
|
|
18463
|
-
const _sfc_main$
|
|
18524
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18464
18525
|
__name: "Carousel",
|
|
18465
18526
|
props: {
|
|
18466
18527
|
autoHeight: {
|
|
@@ -18610,7 +18671,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18610
18671
|
ref_key: "bglSlider",
|
|
18611
18672
|
ref: bglSlider
|
|
18612
18673
|
}, [
|
|
18613
|
-
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18674
|
+
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$r)) : createCommentVNode("", true),
|
|
18614
18675
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18615
18676
|
], 34),
|
|
18616
18677
|
createElementVNode("div", _hoisted_2$m, [
|
|
@@ -18625,13 +18686,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18625
18686
|
};
|
|
18626
18687
|
}
|
|
18627
18688
|
});
|
|
18628
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18629
|
-
const
|
|
18630
|
-
key: 1,
|
|
18631
|
-
type: "submit",
|
|
18632
|
-
hidden: ""
|
|
18633
|
-
};
|
|
18634
|
-
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18689
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7e8d16cb"]]);
|
|
18690
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
18635
18691
|
__name: "BglForm",
|
|
18636
18692
|
props: {
|
|
18637
18693
|
label: {},
|
|
@@ -18643,10 +18699,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18643
18699
|
},
|
|
18644
18700
|
emits: ["update:modelValue", "submit", "dirty"],
|
|
18645
18701
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18702
|
+
const slots = useSlots();
|
|
18646
18703
|
const { showModal } = useModal();
|
|
18647
18704
|
const props2 = __props;
|
|
18648
18705
|
const instAt = /* @__PURE__ */ new Date();
|
|
18649
18706
|
const timeSinceInst = () => (/* @__PURE__ */ new Date()).getTime() - instAt.getTime();
|
|
18707
|
+
let formData = ref(props2.modelValue);
|
|
18650
18708
|
const emit2 = __emit;
|
|
18651
18709
|
let isDirty = ref(false);
|
|
18652
18710
|
const data2 = computed({
|
|
@@ -18655,9 +18713,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18655
18713
|
emit2("dirty");
|
|
18656
18714
|
isDirty.value = true;
|
|
18657
18715
|
}
|
|
18716
|
+
formData.value = val;
|
|
18658
18717
|
emit2("update:modelValue", val);
|
|
18659
18718
|
},
|
|
18660
|
-
get: () => props2.modelValue ||
|
|
18719
|
+
get: () => props2.modelValue || formData.value
|
|
18661
18720
|
});
|
|
18662
18721
|
const form = ref();
|
|
18663
18722
|
const validateForm = () => {
|
|
@@ -18665,10 +18724,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18665
18724
|
return (_b = (_a2 = form.value) == null ? void 0 : _a2.reportValidity) == null ? void 0 : _b.call(_a2);
|
|
18666
18725
|
};
|
|
18667
18726
|
const clearForm = () => Object.assign(data2.value, {});
|
|
18727
|
+
let formStatus = ref("idle");
|
|
18668
18728
|
const runSubmit = () => {
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18729
|
+
var _a2;
|
|
18730
|
+
console.log("runSubmit");
|
|
18731
|
+
try {
|
|
18732
|
+
validateForm();
|
|
18733
|
+
(_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, data2.value);
|
|
18734
|
+
clearForm();
|
|
18735
|
+
formStatus.value = "success";
|
|
18736
|
+
} catch (e) {
|
|
18737
|
+
formStatus.value = "error";
|
|
18738
|
+
}
|
|
18672
18739
|
};
|
|
18673
18740
|
const i18nT = (val) => val;
|
|
18674
18741
|
const deleteItem = () => {
|
|
@@ -18693,39 +18760,42 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18693
18760
|
};
|
|
18694
18761
|
__expose({ validateForm, deleteItem, isDirty: isDirty.value });
|
|
18695
18762
|
return (_ctx, _cache) => {
|
|
18696
|
-
return
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
field,
|
|
18700
|
-
modelValue: data2.value,
|
|
18701
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
|
|
18702
|
-
}, null, 8, ["field", "modelValue"]);
|
|
18703
|
-
}), 128)) : (openBlock(), createElementBlock("form", {
|
|
18704
|
-
key: 1,
|
|
18705
|
-
ref_key: "form",
|
|
18706
|
-
ref: form,
|
|
18707
|
-
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18708
|
-
}, [
|
|
18709
|
-
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
18710
|
-
key: 0,
|
|
18711
|
-
tag: "h4",
|
|
18712
|
-
label: _ctx.label
|
|
18713
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18714
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i2) => {
|
|
18715
|
-
return openBlock(), createBlock(unref(_sfc_main$i), {
|
|
18763
|
+
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
18764
|
+
_ctx.id ? (openBlock(true), createElementBlock(Fragment$1, { key: 0 }, renderList(_ctx.schema, (field, i2) => {
|
|
18765
|
+
return openBlock(), createBlock(unref(_sfc_main$g), {
|
|
18716
18766
|
key: field.id || `${i2}p`,
|
|
18717
18767
|
field,
|
|
18718
18768
|
modelValue: data2.value,
|
|
18719
|
-
"onUpdate:modelValue": _cache[
|
|
18769
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
|
|
18720
18770
|
}, null, 8, ["field", "modelValue"]);
|
|
18721
|
-
}), 128)),
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18771
|
+
}), 128)) : !unref(slots).success || unref(formStatus) !== "success" ? (openBlock(), createElementBlock("form", {
|
|
18772
|
+
key: 1,
|
|
18773
|
+
ref_key: "form",
|
|
18774
|
+
ref: form,
|
|
18775
|
+
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18776
|
+
}, [
|
|
18777
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
18778
|
+
key: 0,
|
|
18779
|
+
tag: "h4",
|
|
18780
|
+
label: _ctx.label
|
|
18781
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18782
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i2) => {
|
|
18783
|
+
return openBlock(), createBlock(unref(_sfc_main$g), {
|
|
18784
|
+
key: field.id || `${i2}p`,
|
|
18785
|
+
field,
|
|
18786
|
+
modelValue: data2.value,
|
|
18787
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data2.value = $event)
|
|
18788
|
+
}, null, 8, ["field", "modelValue"]);
|
|
18789
|
+
}), 128)),
|
|
18790
|
+
renderSlot(_ctx.$slots, "submit")
|
|
18791
|
+
], 544)) : createCommentVNode("", true),
|
|
18792
|
+
unref(formStatus) === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
|
|
18793
|
+
unref(formStatus) === "error" ? renderSlot(_ctx.$slots, "error", { key: 3 }) : createCommentVNode("", true)
|
|
18794
|
+
], 64);
|
|
18725
18795
|
};
|
|
18726
18796
|
}
|
|
18727
18797
|
});
|
|
18728
|
-
const _sfc_main$
|
|
18798
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
18729
18799
|
__name: "BglField",
|
|
18730
18800
|
props: {
|
|
18731
18801
|
field: {},
|
|
@@ -18738,7 +18808,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18738
18808
|
if (props2.field.$el === "text")
|
|
18739
18809
|
return TextInput;
|
|
18740
18810
|
if (props2.field.$el === "select")
|
|
18741
|
-
return
|
|
18811
|
+
return ComboBox;
|
|
18742
18812
|
if (props2.field.$el === "toggle")
|
|
18743
18813
|
return ToggleInput;
|
|
18744
18814
|
if (props2.field.$el === "check")
|
|
@@ -18793,7 +18863,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18793
18863
|
})
|
|
18794
18864
|
],
|
|
18795
18865
|
defaultValue: _ctx.field.defaultValue,
|
|
18796
|
-
options: _ctx.field.options,
|
|
18866
|
+
options: unref(bindAttrs)({ options: _ctx.field.options }, fieldData.value, _ctx.modelValue).options,
|
|
18797
18867
|
helptext: _ctx.field.helptext
|
|
18798
18868
|
}), {
|
|
18799
18869
|
default: withCtx(() => {
|
|
@@ -18825,11 +18895,11 @@ const _hoisted_2$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
18825
18895
|
}, [
|
|
18826
18896
|
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
18827
18897
|
], -1));
|
|
18828
|
-
const _hoisted_3$
|
|
18898
|
+
const _hoisted_3$g = [
|
|
18829
18899
|
_hoisted_2$l
|
|
18830
18900
|
];
|
|
18831
|
-
const _hoisted_4$
|
|
18832
|
-
const _sfc_main$
|
|
18901
|
+
const _hoisted_4$b = ["required", "id"];
|
|
18902
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
18833
18903
|
__name: "CheckInput",
|
|
18834
18904
|
props: /* @__PURE__ */ mergeModels({
|
|
18835
18905
|
label: {},
|
|
@@ -18852,14 +18922,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18852
18922
|
createElementVNode("div", {
|
|
18853
18923
|
class: normalizeClass(["check-square", { checked: checked.value }]),
|
|
18854
18924
|
onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
|
|
18855
|
-
}, _hoisted_3$
|
|
18925
|
+
}, _hoisted_3$g, 2),
|
|
18856
18926
|
createElementVNode("label", null, [
|
|
18857
18927
|
withDirectives(createElementVNode("input", {
|
|
18858
18928
|
required: _ctx.required,
|
|
18859
18929
|
id: _ctx.id,
|
|
18860
18930
|
type: "checkbox",
|
|
18861
18931
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => checked.value = $event)
|
|
18862
|
-
}, null, 8, _hoisted_4$
|
|
18932
|
+
}, null, 8, _hoisted_4$b), [
|
|
18863
18933
|
[vModelCheckbox, checked.value]
|
|
18864
18934
|
]),
|
|
18865
18935
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
@@ -18870,7 +18940,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18870
18940
|
};
|
|
18871
18941
|
}
|
|
18872
18942
|
});
|
|
18873
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18943
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e8219826"]]);
|
|
18874
18944
|
function toDate(argument) {
|
|
18875
18945
|
const argStr = Object.prototype.toString.call(argument);
|
|
18876
18946
|
if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
|
|
@@ -27481,7 +27551,7 @@ Object.entries(Mo).forEach(([e, t]) => {
|
|
|
27481
27551
|
});
|
|
27482
27552
|
const _hoisted_1$p = ["title"];
|
|
27483
27553
|
const _hoisted_2$k = { key: 0 };
|
|
27484
|
-
const _sfc_main$
|
|
27554
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
27485
27555
|
__name: "DateInput",
|
|
27486
27556
|
props: {
|
|
27487
27557
|
label: {},
|
|
@@ -27533,8 +27603,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
27533
27603
|
});
|
|
27534
27604
|
const _hoisted_1$o = ["title"];
|
|
27535
27605
|
const _hoisted_2$j = { key: 0 };
|
|
27536
|
-
const _hoisted_3$
|
|
27537
|
-
const _sfc_main$
|
|
27606
|
+
const _hoisted_3$f = ["value", "placeholder"];
|
|
27607
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27538
27608
|
__name: "JSONInput",
|
|
27539
27609
|
props: {
|
|
27540
27610
|
description: { default: "" },
|
|
@@ -27565,12 +27635,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
27565
27635
|
onInput: handleInput,
|
|
27566
27636
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
27567
27637
|
placeholder: _ctx.placeholder
|
|
27568
|
-
}, null, 42, _hoisted_3$
|
|
27638
|
+
}, null, 42, _hoisted_3$f)
|
|
27569
27639
|
], 10, _hoisted_1$o);
|
|
27570
27640
|
};
|
|
27571
27641
|
}
|
|
27572
27642
|
});
|
|
27573
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27643
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1fc4f739"]]);
|
|
27574
27644
|
function isEmpty(opt) {
|
|
27575
27645
|
if (opt === 0)
|
|
27576
27646
|
return false;
|
|
@@ -28563,11 +28633,11 @@ const _hoisted_1$n = {
|
|
|
28563
28633
|
class: "multiselect__tags"
|
|
28564
28634
|
};
|
|
28565
28635
|
const _hoisted_2$i = { class: "multiselect__tags-wrap" };
|
|
28566
|
-
const _hoisted_3$
|
|
28567
|
-
const _hoisted_4$
|
|
28568
|
-
const _hoisted_5$
|
|
28569
|
-
const _hoisted_6$
|
|
28570
|
-
const _hoisted_7$
|
|
28636
|
+
const _hoisted_3$e = { class: "multiselect__spinner" };
|
|
28637
|
+
const _hoisted_4$a = { key: 0 };
|
|
28638
|
+
const _hoisted_5$9 = { class: "multiselect__option" };
|
|
28639
|
+
const _hoisted_6$5 = { class: "multiselect__option" };
|
|
28640
|
+
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("No elements found. Consider changing the search query.");
|
|
28571
28641
|
const _hoisted_8$1 = { class: "multiselect__option" };
|
|
28572
28642
|
const _hoisted_9$1 = /* @__PURE__ */ createTextVNode("List is empty.");
|
|
28573
28643
|
function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -28658,7 +28728,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28658
28728
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
28659
28729
|
withDirectives(createVNode(
|
|
28660
28730
|
"div",
|
|
28661
|
-
_hoisted_3$
|
|
28731
|
+
_hoisted_3$e,
|
|
28662
28732
|
null,
|
|
28663
28733
|
512
|
|
28664
28734
|
/* NEED_PATCH */
|
|
@@ -28759,8 +28829,8 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28759
28829
|
id: "listbox-" + _ctx.id
|
|
28760
28830
|
}, [
|
|
28761
28831
|
renderSlot(_ctx.$slots, "beforeList"),
|
|
28762
|
-
_ctx.multiple && _ctx.max === _ctx.internalValue.length ? (openBlock(), createBlock("li", _hoisted_4$
|
|
28763
|
-
createVNode("span", _hoisted_5$
|
|
28832
|
+
_ctx.multiple && _ctx.max === _ctx.internalValue.length ? (openBlock(), createBlock("li", _hoisted_4$a, [
|
|
28833
|
+
createVNode("span", _hoisted_5$9, [
|
|
28764
28834
|
renderSlot(_ctx.$slots, "maxElements", {}, () => [
|
|
28765
28835
|
createTextVNode(
|
|
28766
28836
|
"Maximum of " + toDisplayString(_ctx.max) + " options selected. First remove a selected option to select another.",
|
|
@@ -28834,9 +28904,9 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28834
28904
|
"li",
|
|
28835
28905
|
null,
|
|
28836
28906
|
[
|
|
28837
|
-
createVNode("span", _hoisted_6$
|
|
28907
|
+
createVNode("span", _hoisted_6$5, [
|
|
28838
28908
|
renderSlot(_ctx.$slots, "noResult", { search: _ctx.search }, () => [
|
|
28839
|
-
_hoisted_7$
|
|
28909
|
+
_hoisted_7$2
|
|
28840
28910
|
])
|
|
28841
28911
|
])
|
|
28842
28912
|
],
|
|
@@ -28877,7 +28947,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28877
28947
|
script$e.render = render$e;
|
|
28878
28948
|
const Multiselect = script$e;
|
|
28879
28949
|
const _hoisted_1$m = ["for"];
|
|
28880
|
-
const _sfc_main$
|
|
28950
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
28881
28951
|
__name: "SelectInput",
|
|
28882
28952
|
props: {
|
|
28883
28953
|
required: { type: Boolean },
|
|
@@ -28942,8 +29012,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
28942
29012
|
});
|
|
28943
29013
|
const _hoisted_1$l = ["title"];
|
|
28944
29014
|
const _hoisted_2$h = { key: 0 };
|
|
28945
|
-
const _hoisted_3$
|
|
28946
|
-
const _sfc_main$
|
|
29015
|
+
const _hoisted_3$d = ["value", "placeholder"];
|
|
29016
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28947
29017
|
__name: "RichTextEditor",
|
|
28948
29018
|
props: {
|
|
28949
29019
|
description: { default: "" },
|
|
@@ -28974,12 +29044,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28974
29044
|
onInput: handleInput,
|
|
28975
29045
|
placeholder: _ctx.placeholder,
|
|
28976
29046
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
28977
|
-
}, null, 42, _hoisted_3$
|
|
29047
|
+
}, null, 42, _hoisted_3$d)
|
|
28978
29048
|
], 10, _hoisted_1$l);
|
|
28979
29049
|
};
|
|
28980
29050
|
}
|
|
28981
29051
|
});
|
|
28982
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29052
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-69a60381"]]);
|
|
28983
29053
|
/*!
|
|
28984
29054
|
* vue-draggable-next v2.2.0
|
|
28985
29055
|
* (c) 2023 Anish George
|
|
@@ -31504,11 +31574,11 @@ const VueDraggableNext = defineComponent({
|
|
|
31504
31574
|
});
|
|
31505
31575
|
const _hoisted_1$k = ["title"];
|
|
31506
31576
|
const _hoisted_2$g = { class: "bagel-input" };
|
|
31507
|
-
const _hoisted_3$
|
|
31508
|
-
const _hoisted_4$
|
|
31509
|
-
const _hoisted_5$
|
|
31510
|
-
const _hoisted_6$
|
|
31511
|
-
const _sfc_main$
|
|
31577
|
+
const _hoisted_3$c = { class: "table-side-scroll" };
|
|
31578
|
+
const _hoisted_4$9 = { class: "table-header" };
|
|
31579
|
+
const _hoisted_5$8 = { class: "table-reorder" };
|
|
31580
|
+
const _hoisted_6$4 = { class: "table-action" };
|
|
31581
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
31512
31582
|
__name: "TableField",
|
|
31513
31583
|
props: {
|
|
31514
31584
|
description: { default: "" },
|
|
@@ -31576,8 +31646,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31576
31646
|
createElementVNode("div", _hoisted_2$g, [
|
|
31577
31647
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
31578
31648
|
]),
|
|
31579
|
-
createElementVNode("div", _hoisted_3$
|
|
31580
|
-
createElementVNode("div", _hoisted_4$
|
|
31649
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
31650
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
31581
31651
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
31582
31652
|
return openBlock(), createElementBlock("div", {
|
|
31583
31653
|
class: normalizeClass(["header-col", unref(formatString)(field.fieldtype, "pascal")]),
|
|
@@ -31604,8 +31674,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31604
31674
|
class: "flex table-row",
|
|
31605
31675
|
key: row.id
|
|
31606
31676
|
}, [
|
|
31607
|
-
createElementVNode("div", _hoisted_5$
|
|
31608
|
-
createVNode(unref(_sfc_main$
|
|
31677
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
31678
|
+
createVNode(unref(_sfc_main$F), { icon: "more_vert" })
|
|
31609
31679
|
]),
|
|
31610
31680
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
31611
31681
|
return openBlock(), createElementBlock("div", {
|
|
@@ -31621,8 +31691,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31621
31691
|
}, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
|
|
31622
31692
|
], 2);
|
|
31623
31693
|
}), 128)),
|
|
31624
|
-
createElementVNode("div", _hoisted_6$
|
|
31625
|
-
createVNode(unref(_sfc_main$
|
|
31694
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
31695
|
+
createVNode(unref(_sfc_main$F), {
|
|
31626
31696
|
icon: "delete",
|
|
31627
31697
|
onClick: ($event) => removeRow(index2)
|
|
31628
31698
|
}, null, 8, ["onClick"])
|
|
@@ -31652,13 +31722,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31652
31722
|
};
|
|
31653
31723
|
}
|
|
31654
31724
|
});
|
|
31655
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31725
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-cdacf10e"]]);
|
|
31656
31726
|
const _hoisted_1$j = ["title"];
|
|
31657
31727
|
const _hoisted_2$f = ["for"];
|
|
31658
|
-
const _hoisted_3$
|
|
31659
|
-
const _hoisted_4$
|
|
31660
|
-
const _hoisted_5$
|
|
31661
|
-
const _sfc_main$
|
|
31728
|
+
const _hoisted_3$b = ["title", "autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
31729
|
+
const _hoisted_4$8 = ["title", "id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
31730
|
+
const _hoisted_5$7 = { key: 2 };
|
|
31731
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
31662
31732
|
__name: "TextInput",
|
|
31663
31733
|
props: {
|
|
31664
31734
|
id: {},
|
|
@@ -31681,7 +31751,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31681
31751
|
autoheight: { type: Boolean },
|
|
31682
31752
|
code: { type: Boolean },
|
|
31683
31753
|
lines: {},
|
|
31684
|
-
autocomplete: { default: "off" }
|
|
31754
|
+
autocomplete: { default: "off" },
|
|
31755
|
+
autofocus: { type: Boolean }
|
|
31685
31756
|
},
|
|
31686
31757
|
emits: ["update:modelValue", "debounce"],
|
|
31687
31758
|
setup(__props, { emit: __emit }) {
|
|
@@ -31734,6 +31805,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31734
31805
|
},
|
|
31735
31806
|
{ immediate: true }
|
|
31736
31807
|
);
|
|
31808
|
+
onMounted(() => {
|
|
31809
|
+
if (props2.autofocus)
|
|
31810
|
+
setTimeout(() => {
|
|
31811
|
+
var _a2;
|
|
31812
|
+
return (_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
31813
|
+
}, 10);
|
|
31814
|
+
});
|
|
31737
31815
|
return (_ctx, _cache) => {
|
|
31738
31816
|
return openBlock(), createElementBlock("div", {
|
|
31739
31817
|
class: normalizeClass(["bagel-input text-input", {
|
|
@@ -31764,7 +31842,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31764
31842
|
disabled: !unref(editMode),
|
|
31765
31843
|
required: _ctx.required,
|
|
31766
31844
|
pattern: _ctx.pattern
|
|
31767
|
-
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$
|
|
31845
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$b)), [
|
|
31768
31846
|
[vModelDynamic, unref(inputVal)]
|
|
31769
31847
|
]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
|
|
31770
31848
|
key: 1,
|
|
@@ -31779,17 +31857,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31779
31857
|
disabled: !unref(editMode),
|
|
31780
31858
|
required: _ctx.required,
|
|
31781
31859
|
pattern: _ctx.pattern
|
|
31782
|
-
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$
|
|
31860
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$8)), [
|
|
31783
31861
|
[vModelText, unref(inputVal)]
|
|
31784
31862
|
]),
|
|
31785
|
-
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
31863
|
+
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$7, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
|
|
31786
31864
|
], 8, _hoisted_2$f),
|
|
31787
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
31865
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
31788
31866
|
key: 0,
|
|
31789
31867
|
class: "iconStart",
|
|
31790
31868
|
icon: _ctx.iconStart
|
|
31791
31869
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
31792
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
31870
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
31793
31871
|
key: 1,
|
|
31794
31872
|
icon: _ctx.icon
|
|
31795
31873
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -31805,9 +31883,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31805
31883
|
};
|
|
31806
31884
|
}
|
|
31807
31885
|
});
|
|
31808
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31886
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-cd4c27ad"]]);
|
|
31809
31887
|
const _hoisted_1$i = { class: "primary-checkbox" };
|
|
31810
|
-
const _sfc_main$
|
|
31888
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
31811
31889
|
__name: "Checkbox",
|
|
31812
31890
|
props: {
|
|
31813
31891
|
"modelValue": {
|
|
@@ -31828,16 +31906,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31828
31906
|
[vModelCheckbox, val.value]
|
|
31829
31907
|
]),
|
|
31830
31908
|
createElementVNode("span", null, [
|
|
31831
|
-
createVNode(unref(_sfc_main$
|
|
31909
|
+
createVNode(unref(_sfc_main$F), { icon: "check" })
|
|
31832
31910
|
])
|
|
31833
31911
|
]);
|
|
31834
31912
|
};
|
|
31835
31913
|
}
|
|
31836
31914
|
});
|
|
31837
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31915
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e4cbb088"]]);
|
|
31838
31916
|
const _hoisted_1$h = ["title"];
|
|
31839
31917
|
const _hoisted_2$e = ["id", "placeholder", "required"];
|
|
31840
|
-
const _sfc_main$
|
|
31918
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
31841
31919
|
__name: "ColorPicker",
|
|
31842
31920
|
props: {
|
|
31843
31921
|
label: {},
|
|
@@ -31883,13 +31961,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
31883
31961
|
});
|
|
31884
31962
|
const _hoisted_1$g = { class: "datetime-wrap" };
|
|
31885
31963
|
const _hoisted_2$d = { class: "date-wrap" };
|
|
31886
|
-
const _hoisted_3$
|
|
31964
|
+
const _hoisted_3$a = {
|
|
31887
31965
|
key: 0,
|
|
31888
31966
|
class: "time-wrap"
|
|
31889
31967
|
};
|
|
31890
|
-
const _hoisted_4$
|
|
31891
|
-
const _hoisted_5$
|
|
31892
|
-
const _sfc_main$
|
|
31968
|
+
const _hoisted_4$7 = ["id", "name", "value"];
|
|
31969
|
+
const _hoisted_5$6 = ["for"];
|
|
31970
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31893
31971
|
__name: "DatePicker",
|
|
31894
31972
|
props: {
|
|
31895
31973
|
name: {},
|
|
@@ -31921,7 +31999,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31921
31999
|
_: 1
|
|
31922
32000
|
}, 16, ["modelValue"])
|
|
31923
32001
|
]),
|
|
31924
|
-
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32002
|
+
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
31925
32003
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
|
|
31926
32004
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
31927
32005
|
withDirectives(createElementVNode("input", {
|
|
@@ -31930,12 +32008,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31930
32008
|
name: _ctx.name,
|
|
31931
32009
|
value: hr2,
|
|
31932
32010
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
31933
|
-
}, null, 8, _hoisted_4$
|
|
32011
|
+
}, null, 8, _hoisted_4$7), [
|
|
31934
32012
|
[vModelRadio, selectedHour.value]
|
|
31935
32013
|
]),
|
|
31936
32014
|
createElementVNode("label", {
|
|
31937
32015
|
for: `${hr2}_${_ctx.name}`
|
|
31938
|
-
}, toDisplayString(hr2), 9, _hoisted_5$
|
|
32016
|
+
}, toDisplayString(hr2), 9, _hoisted_5$6)
|
|
31939
32017
|
], 64);
|
|
31940
32018
|
}), 128))
|
|
31941
32019
|
])) : createCommentVNode("", true)
|
|
@@ -31945,10 +32023,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31945
32023
|
});
|
|
31946
32024
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
31947
32025
|
const _hoisted_2$c = { class: "pb-025" };
|
|
31948
|
-
const _hoisted_3$
|
|
31949
|
-
const _hoisted_4$
|
|
31950
|
-
const _hoisted_5$
|
|
31951
|
-
const _sfc_main$
|
|
32026
|
+
const _hoisted_3$9 = { class: "flex gap-05 flex-wrap" };
|
|
32027
|
+
const _hoisted_4$6 = ["id", "name", "value", "checked"];
|
|
32028
|
+
const _hoisted_5$5 = ["for"];
|
|
32029
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
31952
32030
|
__name: "RadioPillsInput",
|
|
31953
32031
|
props: {
|
|
31954
32032
|
options: {},
|
|
@@ -31989,7 +32067,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
31989
32067
|
return (_ctx, _cache) => {
|
|
31990
32068
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31991
32069
|
createElementVNode("label", _hoisted_2$c, toDisplayString(_ctx.label), 1),
|
|
31992
|
-
createElementVNode("div", _hoisted_3$
|
|
32070
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
31993
32071
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(cumputedOptions.value, ({ optioId, label, value }, index2) => {
|
|
31994
32072
|
return openBlock(), createElementBlock("div", {
|
|
31995
32073
|
class: "radio-pill",
|
|
@@ -32002,8 +32080,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
32002
32080
|
value,
|
|
32003
32081
|
checked: unref(selectedValue) === value,
|
|
32004
32082
|
onChange: handleSelect
|
|
32005
|
-
}, null, 40, _hoisted_4$
|
|
32006
|
-
createElementVNode("label", { for: optioId }, toDisplayString(label), 9, _hoisted_5$
|
|
32083
|
+
}, null, 40, _hoisted_4$6),
|
|
32084
|
+
createElementVNode("label", { for: optioId }, toDisplayString(label), 9, _hoisted_5$5)
|
|
32007
32085
|
]);
|
|
32008
32086
|
}), 128))
|
|
32009
32087
|
])
|
|
@@ -32011,17 +32089,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
32011
32089
|
};
|
|
32012
32090
|
}
|
|
32013
32091
|
});
|
|
32014
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32092
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e47ae8b5"]]);
|
|
32015
32093
|
const _hoisted_1$e = { class: "bagel-input" };
|
|
32016
32094
|
const _hoisted_2$b = {
|
|
32017
32095
|
key: 0,
|
|
32018
32096
|
class: "imagePreviewWrap"
|
|
32019
32097
|
};
|
|
32020
|
-
const _hoisted_3$
|
|
32021
|
-
const _hoisted_4$
|
|
32022
|
-
const _hoisted_5$
|
|
32023
|
-
const _hoisted_6$
|
|
32024
|
-
const _hoisted_7$
|
|
32098
|
+
const _hoisted_3$8 = ["src"];
|
|
32099
|
+
const _hoisted_4$5 = { class: "previewName" };
|
|
32100
|
+
const _hoisted_5$4 = ["src"];
|
|
32101
|
+
const _hoisted_6$3 = { class: "no-margin" };
|
|
32102
|
+
const _hoisted_7$1 = {
|
|
32025
32103
|
key: 0,
|
|
32026
32104
|
class: "imagePreviewWrap"
|
|
32027
32105
|
};
|
|
@@ -32033,7 +32111,7 @@ const _hoisted_12 = {
|
|
|
32033
32111
|
key: 0,
|
|
32034
32112
|
class: "progress"
|
|
32035
32113
|
};
|
|
32036
|
-
const _sfc_main$
|
|
32114
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
32037
32115
|
__name: "FileUpload",
|
|
32038
32116
|
props: /* @__PURE__ */ mergeModels({
|
|
32039
32117
|
label: {},
|
|
@@ -32147,17 +32225,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32147
32225
|
class: "preview",
|
|
32148
32226
|
src: file.url,
|
|
32149
32227
|
alt: ""
|
|
32150
|
-
}, null, 8, _hoisted_3$
|
|
32228
|
+
}, null, 8, _hoisted_3$8)
|
|
32151
32229
|
])) : createCommentVNode("", true),
|
|
32152
|
-
createElementVNode("div", _hoisted_4$
|
|
32230
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
32153
32231
|
_ctx.multiple ? (openBlock(), createElementBlock("img", {
|
|
32154
32232
|
key: 0,
|
|
32155
32233
|
height: "60",
|
|
32156
32234
|
class: "preview",
|
|
32157
32235
|
src: file.url,
|
|
32158
32236
|
alt: ""
|
|
32159
|
-
}, null, 8, _hoisted_5$
|
|
32160
|
-
createElementVNode("p", _hoisted_6$
|
|
32237
|
+
}, null, 8, _hoisted_5$4)) : createCommentVNode("", true),
|
|
32238
|
+
createElementVNode("p", _hoisted_6$3, toDisplayString(file.name), 1),
|
|
32161
32239
|
createVNode(unref(Btn), {
|
|
32162
32240
|
thin: "",
|
|
32163
32241
|
onClick: withModifiers(($event) => removeFile(file), ["stop"]),
|
|
@@ -32172,7 +32250,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32172
32250
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
32173
32251
|
key: fileQ.file
|
|
32174
32252
|
}, [
|
|
32175
|
-
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
32253
|
+
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
32176
32254
|
createElementVNode("img", {
|
|
32177
32255
|
class: "preview",
|
|
32178
32256
|
src: fileToUrl(fileQ.file),
|
|
@@ -32193,7 +32271,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32193
32271
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
32194
32272
|
}, [
|
|
32195
32273
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
32196
|
-
createVNode(unref(_sfc_main$
|
|
32274
|
+
createVNode(unref(_sfc_main$F), {
|
|
32197
32275
|
class: "success",
|
|
32198
32276
|
icon: "check"
|
|
32199
32277
|
})
|
|
@@ -32206,15 +32284,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32206
32284
|
};
|
|
32207
32285
|
}
|
|
32208
32286
|
});
|
|
32209
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32287
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1be8d7b1"]]);
|
|
32210
32288
|
const _withScopeId = (n2) => (pushScopeId("data-v-b87221d6"), n2 = n2(), popScopeId(), n2);
|
|
32211
32289
|
const _hoisted_1$d = ["title"];
|
|
32212
32290
|
const _hoisted_2$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
32213
|
-
const _hoisted_3$
|
|
32291
|
+
const _hoisted_3$7 = [
|
|
32214
32292
|
_hoisted_2$a
|
|
32215
32293
|
];
|
|
32216
|
-
const _hoisted_4$
|
|
32217
|
-
const _sfc_main$
|
|
32294
|
+
const _hoisted_4$4 = ["id"];
|
|
32295
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
32218
32296
|
__name: "ToggleInput",
|
|
32219
32297
|
props: /* @__PURE__ */ mergeModels({
|
|
32220
32298
|
label: {},
|
|
@@ -32235,14 +32313,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32235
32313
|
}, [
|
|
32236
32314
|
createElementVNode("div", {
|
|
32237
32315
|
class: normalizeClass(["switch", { checked: checked.value }])
|
|
32238
|
-
}, _hoisted_3$
|
|
32316
|
+
}, _hoisted_3$7, 2),
|
|
32239
32317
|
createElementVNode("label", null, [
|
|
32240
32318
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
32241
32319
|
withDirectives(createElementVNode("input", {
|
|
32242
32320
|
id: _ctx.id,
|
|
32243
32321
|
type: "checkbox",
|
|
32244
32322
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event)
|
|
32245
|
-
}, null, 8, _hoisted_4$
|
|
32323
|
+
}, null, 8, _hoisted_4$4), [
|
|
32246
32324
|
[vModelCheckbox, checked.value]
|
|
32247
32325
|
])
|
|
32248
32326
|
])
|
|
@@ -32250,7 +32328,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32250
32328
|
};
|
|
32251
32329
|
}
|
|
32252
32330
|
});
|
|
32253
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32331
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b87221d6"]]);
|
|
32254
32332
|
function _isPlaceholder(a2) {
|
|
32255
32333
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
32256
32334
|
}
|
|
@@ -37369,7 +37447,7 @@ const _hoisted_4$2 = {
|
|
|
37369
37447
|
};
|
|
37370
37448
|
const _hoisted_5$2 = ["x1", "y1", "x2", "y2"];
|
|
37371
37449
|
const _hoisted_6$2 = ["x1", "y1", "x2", "y2"];
|
|
37372
|
-
const _hoisted_7
|
|
37450
|
+
const _hoisted_7 = ["x1", "y1", "x2", "y2"];
|
|
37373
37451
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37374
37452
|
return _ctx.data.length ? (openBlock(), createElementBlock("g", {
|
|
37375
37453
|
key: 0,
|
|
@@ -37425,7 +37503,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37425
37503
|
y1: _ctx.canvas.y,
|
|
37426
37504
|
x2: _ctx.canvas.width - 1,
|
|
37427
37505
|
y2: _ctx.canvas.height
|
|
37428
|
-
}, null, 8, _hoisted_7
|
|
37506
|
+
}, null, 8, _hoisted_7)
|
|
37429
37507
|
])
|
|
37430
37508
|
], 8, _hoisted_1$4)) : createCommentVNode("v-if", true);
|
|
37431
37509
|
}
|
|
@@ -37689,7 +37767,7 @@ var script$2 = defineComponent({
|
|
|
37689
37767
|
return { y: y2, canvas, direction };
|
|
37690
37768
|
}
|
|
37691
37769
|
});
|
|
37692
|
-
const _hoisted_1$2
|
|
37770
|
+
const _hoisted_1$2 = {
|
|
37693
37771
|
key: 0,
|
|
37694
37772
|
class: "layer-marker"
|
|
37695
37773
|
};
|
|
@@ -37702,7 +37780,7 @@ const _hoisted_4$1 = {
|
|
|
37702
37780
|
const _hoisted_5$1 = ["x", "y", "fill"];
|
|
37703
37781
|
const _hoisted_6$1 = ["x1", "y1", "x2", "y2", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"];
|
|
37704
37782
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37705
|
-
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("g", _hoisted_1$2
|
|
37783
|
+
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("g", _hoisted_1$2, [
|
|
37706
37784
|
createElementVNode("text", {
|
|
37707
37785
|
x: _ctx.canvas.x + 5,
|
|
37708
37786
|
y: _ctx.y - 5,
|
|
@@ -38322,11 +38400,11 @@ const _hoisted_1$1$1 = {
|
|
|
38322
38400
|
class: "treemap",
|
|
38323
38401
|
style: { display: "flex", position: "relative" }
|
|
38324
38402
|
};
|
|
38325
|
-
const _hoisted_2$1
|
|
38326
|
-
const _hoisted_3
|
|
38327
|
-
const _hoisted_4
|
|
38328
|
-
const _hoisted_5
|
|
38329
|
-
const _hoisted_6
|
|
38403
|
+
const _hoisted_2$1 = ["width", "height", "viewBox"];
|
|
38404
|
+
const _hoisted_3 = { class: "layer-rectangles" };
|
|
38405
|
+
const _hoisted_4 = ["transform", "onMouseover"];
|
|
38406
|
+
const _hoisted_5 = ["width", "height"];
|
|
38407
|
+
const _hoisted_6 = {
|
|
38330
38408
|
x: 0 + 10,
|
|
38331
38409
|
y: 0 + 20,
|
|
38332
38410
|
"font-size": `15px`,
|
|
@@ -38341,7 +38419,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38341
38419
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
38342
38420
|
ref: "el"
|
|
38343
38421
|
}, [
|
|
38344
|
-
createElementVNode("g", _hoisted_3
|
|
38422
|
+
createElementVNode("g", _hoisted_3, [
|
|
38345
38423
|
(openBlock(true), createElementBlock(
|
|
38346
38424
|
Fragment$1,
|
|
38347
38425
|
null,
|
|
@@ -38362,27 +38440,27 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38362
38440
|
y: 0,
|
|
38363
38441
|
width: r2.width,
|
|
38364
38442
|
height: r2.height
|
|
38365
|
-
}), null, 16, _hoisted_5
|
|
38443
|
+
}), null, 16, _hoisted_5),
|
|
38366
38444
|
renderSlot(_ctx.$slots, "text", {
|
|
38367
38445
|
r: r2,
|
|
38368
38446
|
selected: _ctx.selected === i2
|
|
38369
38447
|
}, () => [
|
|
38370
38448
|
createElementVNode(
|
|
38371
38449
|
"text",
|
|
38372
|
-
_hoisted_6
|
|
38450
|
+
_hoisted_6,
|
|
38373
38451
|
toDisplayString(r2.data.name),
|
|
38374
38452
|
1
|
|
38375
38453
|
/* TEXT */
|
|
38376
38454
|
)
|
|
38377
38455
|
])
|
|
38378
38456
|
])
|
|
38379
|
-
], 42, _hoisted_4
|
|
38457
|
+
], 42, _hoisted_4);
|
|
38380
38458
|
}),
|
|
38381
38459
|
128
|
|
38382
38460
|
/* KEYED_FRAGMENT */
|
|
38383
38461
|
))
|
|
38384
38462
|
])
|
|
38385
|
-
], 8, _hoisted_2$1
|
|
38463
|
+
], 8, _hoisted_2$1)),
|
|
38386
38464
|
renderSlot(_ctx.$slots, "widgets")
|
|
38387
38465
|
]);
|
|
38388
38466
|
}
|
|
@@ -38450,13 +38528,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38450
38528
|
}
|
|
38451
38529
|
script.render = render;
|
|
38452
38530
|
script.__file = "src/components/HoverBar/index.vue";
|
|
38453
|
-
const _hoisted_1$
|
|
38531
|
+
const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("stop", {
|
|
38454
38532
|
offset: "100%",
|
|
38455
38533
|
"stop-color": "white",
|
|
38456
38534
|
"stop-opacity": "0.4"
|
|
38457
38535
|
}, null, -1);
|
|
38458
38536
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
38459
|
-
const _sfc_main$
|
|
38537
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
38460
38538
|
__name: "Lineart",
|
|
38461
38539
|
props: {
|
|
38462
38540
|
data: {},
|
|
@@ -38585,7 +38663,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38585
38663
|
"stop-color": BRAND_COLOR,
|
|
38586
38664
|
"stop-opacity": "1"
|
|
38587
38665
|
}),
|
|
38588
|
-
_hoisted_1$
|
|
38666
|
+
_hoisted_1$1
|
|
38589
38667
|
])
|
|
38590
38668
|
])
|
|
38591
38669
|
]),
|
|
@@ -38601,233 +38679,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38601
38679
|
};
|
|
38602
38680
|
}
|
|
38603
38681
|
});
|
|
38604
|
-
const _hoisted_1$1 = { class: "main-content" };
|
|
38605
|
-
const _hoisted_2$1 = { class: "view-wrapper bgl_card thin" };
|
|
38606
|
-
const _hoisted_3 = { class: "whatsapp-wrap" };
|
|
38607
|
-
const _hoisted_4 = { class: "create-template-form" };
|
|
38608
|
-
const _hoisted_5 = { class: "whatsapp-msg" };
|
|
38609
|
-
const _hoisted_6 = { class: "whatsapp-body" };
|
|
38610
|
-
const _hoisted_7 = { class: "whatsapp-footer" };
|
|
38611
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
38612
|
-
__name: "MsgTemplate",
|
|
38613
|
-
props: {
|
|
38614
|
-
whatsappTemplateSchema: {},
|
|
38615
|
-
router: {},
|
|
38616
|
-
route: {},
|
|
38617
|
-
previewLabel: { default: "Preview" }
|
|
38618
|
-
},
|
|
38619
|
-
setup(__props) {
|
|
38620
|
-
const props2 = __props;
|
|
38621
|
-
const bagel = useBagel();
|
|
38622
|
-
const regex2 = /\{\{(\d+)}}/g;
|
|
38623
|
-
let localWhatsappData = ref();
|
|
38624
|
-
const serverToLocal = (data2) => {
|
|
38625
|
-
var _a2, _b, _c, _d, _e2;
|
|
38626
|
-
return {
|
|
38627
|
-
id: data2.id,
|
|
38628
|
-
status: data2.status,
|
|
38629
|
-
name: data2.name,
|
|
38630
|
-
language: data2.language,
|
|
38631
|
-
headerText: (_a2 = data2.components.find(
|
|
38632
|
-
(c2) => c2.type === "HEADER"
|
|
38633
|
-
)) == null ? void 0 : _a2.text,
|
|
38634
|
-
bodyText: (_b = data2.components.find((c2) => c2.type === "BODY")) == null ? void 0 : _b.text,
|
|
38635
|
-
bodyExamples: (_d = (_c = data2.components.find(
|
|
38636
|
-
(c2) => c2.type === "BODY"
|
|
38637
|
-
)) == null ? void 0 : _c.example) == null ? void 0 : _d.body_text[0],
|
|
38638
|
-
footerText: (_e2 = data2.components.find(
|
|
38639
|
-
(c2) => c2.type === "FOOTER"
|
|
38640
|
-
)) == null ? void 0 : _e2.text,
|
|
38641
|
-
category: data2.category
|
|
38642
|
-
};
|
|
38643
|
-
};
|
|
38644
|
-
const localToServer = (data2) => {
|
|
38645
|
-
const obj = {};
|
|
38646
|
-
obj.language = data2.language;
|
|
38647
|
-
if (data2.id)
|
|
38648
|
-
obj.id = data2.id;
|
|
38649
|
-
obj.name = data2.name;
|
|
38650
|
-
obj.components = [];
|
|
38651
|
-
obj.category = data2.category;
|
|
38652
|
-
if (data2.headerText) {
|
|
38653
|
-
obj.components.push({
|
|
38654
|
-
type: "HEADER",
|
|
38655
|
-
format: "TEXT",
|
|
38656
|
-
text: data2.headerText
|
|
38657
|
-
});
|
|
38658
|
-
}
|
|
38659
|
-
if (data2.bodyText) {
|
|
38660
|
-
const bodyComponent = { type: "BODY", text: data2.bodyText };
|
|
38661
|
-
if (data2.bodyExamples) {
|
|
38662
|
-
bodyComponent.example = { body_text: [data2.bodyExamples] };
|
|
38663
|
-
}
|
|
38664
|
-
obj.components.push(bodyComponent);
|
|
38665
|
-
}
|
|
38666
|
-
if (data2.footerText) {
|
|
38667
|
-
obj.components.push({ type: "FOOTER", text: data2.footerText });
|
|
38668
|
-
}
|
|
38669
|
-
return obj;
|
|
38670
|
-
};
|
|
38671
|
-
const loadTemplateData = async () => {
|
|
38672
|
-
const template_name = props2.route.params.id;
|
|
38673
|
-
if (template_name) {
|
|
38674
|
-
const res = await bagel.get(
|
|
38675
|
-
`communication/whatsapp/get_template_by_name/${template_name}`
|
|
38676
|
-
);
|
|
38677
|
-
localWhatsappData.value = serverToLocal(res.data[0]);
|
|
38678
|
-
}
|
|
38679
|
-
};
|
|
38680
|
-
const replaceHeader = (match2) => {
|
|
38681
|
-
var _a2, _b;
|
|
38682
|
-
const index2 = +match2[2];
|
|
38683
|
-
const example = (_b = (_a2 = localWhatsappData.value) == null ? void 0 : _a2.headerExamples) == null ? void 0 : _b[index2 - 1];
|
|
38684
|
-
return example || match2;
|
|
38685
|
-
};
|
|
38686
|
-
const replaceBody = (match2) => {
|
|
38687
|
-
var _a2, _b;
|
|
38688
|
-
const index2 = +match2[2];
|
|
38689
|
-
const example = (_b = (_a2 = localWhatsappData.value) == null ? void 0 : _a2.bodyExamples) == null ? void 0 : _b[index2 - 1];
|
|
38690
|
-
return example || match2;
|
|
38691
|
-
};
|
|
38692
|
-
const upsertTemplate = async () => {
|
|
38693
|
-
if (!localWhatsappData.value)
|
|
38694
|
-
return;
|
|
38695
|
-
const payload = localToServer(localWhatsappData.value);
|
|
38696
|
-
console.log(payload);
|
|
38697
|
-
if (payload.id) {
|
|
38698
|
-
await bagel.put(
|
|
38699
|
-
`communication/whatsapp/update_template/${payload.id}`,
|
|
38700
|
-
payload
|
|
38701
|
-
);
|
|
38702
|
-
} else {
|
|
38703
|
-
await bagel.post("communication/whatsapp/create_template", payload);
|
|
38704
|
-
void props2.router.push(`/whatsapp/template/${payload.name}`);
|
|
38705
|
-
}
|
|
38706
|
-
};
|
|
38707
|
-
onMounted(loadTemplateData);
|
|
38708
|
-
return (_ctx, _cache) => {
|
|
38709
|
-
var _a2, _b, _c, _d, _e2, _f;
|
|
38710
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
38711
|
-
createVNode(unref(_sfc_main$x), null, {
|
|
38712
|
-
default: withCtx(() => [
|
|
38713
|
-
createTextVNode("Whatsapp Template")
|
|
38714
|
-
]),
|
|
38715
|
-
_: 1
|
|
38716
|
-
}),
|
|
38717
|
-
createElementVNode("div", _hoisted_2$1, [
|
|
38718
|
-
createElementVNode("div", _hoisted_3, [
|
|
38719
|
-
createElementVNode("div", _hoisted_4, [
|
|
38720
|
-
createVNode(unref(_sfc_main$j), {
|
|
38721
|
-
schema: _ctx.whatsappTemplateSchema,
|
|
38722
|
-
modelValue: unref(localWhatsappData),
|
|
38723
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
|
|
38724
|
-
onSubmit: upsertTemplate
|
|
38725
|
-
}, null, 8, ["schema", "modelValue"])
|
|
38726
|
-
]),
|
|
38727
|
-
createElementVNode("div", {
|
|
38728
|
-
class: normalizeClass(["whatsapp-preview", { whatsappHebrew: ((_a2 = unref(localWhatsappData)) == null ? void 0 : _a2.language) === "he" }])
|
|
38729
|
-
}, [
|
|
38730
|
-
createTextVNode(toDisplayString(_ctx.previewLabel) + " ", 1),
|
|
38731
|
-
createElementVNode("div", _hoisted_5, [
|
|
38732
|
-
createElementVNode("b", null, toDisplayString((_c = (_b = unref(localWhatsappData)) == null ? void 0 : _b.headerText) == null ? void 0 : _c.replace(regex2, replaceHeader)), 1),
|
|
38733
|
-
createElementVNode("p", _hoisted_6, toDisplayString((_e2 = (_d = unref(localWhatsappData)) == null ? void 0 : _d.bodyText) == null ? void 0 : _e2.replace(regex2, replaceBody)), 1),
|
|
38734
|
-
createElementVNode("p", _hoisted_7, toDisplayString((_f = unref(localWhatsappData)) == null ? void 0 : _f.footerText), 1)
|
|
38735
|
-
])
|
|
38736
|
-
], 2)
|
|
38737
|
-
])
|
|
38738
|
-
])
|
|
38739
|
-
]);
|
|
38740
|
-
};
|
|
38741
|
-
}
|
|
38742
|
-
});
|
|
38743
|
-
const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-208db149"]]);
|
|
38744
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
38745
|
-
__name: "TextVariableExamples",
|
|
38746
|
-
props: {
|
|
38747
|
-
context: Object
|
|
38748
|
-
},
|
|
38749
|
-
setup(__props) {
|
|
38750
|
-
const props2 = __props;
|
|
38751
|
-
const exampleEl = ref();
|
|
38752
|
-
let boundValue = ref();
|
|
38753
|
-
let boundNode = ref();
|
|
38754
|
-
let val = ref([]);
|
|
38755
|
-
const handleUpdate = (value, index2) => {
|
|
38756
|
-
var _a2, _b, _c;
|
|
38757
|
-
if (!boundValue.value)
|
|
38758
|
-
return;
|
|
38759
|
-
if (index2 > ((_a2 = val.value) == null ? void 0 : _a2.length))
|
|
38760
|
-
val.value = [...val.value, ...Array(index2 - val.value.length).fill(""), value];
|
|
38761
|
-
else
|
|
38762
|
-
(_b = val.value) == null ? void 0 : _b.splice(index2 - 1, 1, value);
|
|
38763
|
-
(_c = props2.context) == null ? void 0 : _c.node.input(val.value);
|
|
38764
|
-
};
|
|
38765
|
-
const extractVariables = (text) => {
|
|
38766
|
-
const matches2 = (text == null ? void 0 : text.match(/{{(\d+)}}/g)) || [];
|
|
38767
|
-
return matches2.map((match2) => +match2.match(/\d+/)[0]);
|
|
38768
|
-
};
|
|
38769
|
-
const txtType = computed(() => {
|
|
38770
|
-
var _a2;
|
|
38771
|
-
return ((_a2 = props2.context) == null ? void 0 : _a2.id) === "bodyExamples" ? "bodyText" : "headerText";
|
|
38772
|
-
});
|
|
38773
|
-
const variables = computed(() => {
|
|
38774
|
-
var _a2, _b;
|
|
38775
|
-
let vars = extractVariables(boundValue.value);
|
|
38776
|
-
if (txtType.value === "headerText")
|
|
38777
|
-
vars.slice(0, 1);
|
|
38778
|
-
const nonSequentialDigits = vars == null ? void 0 : vars.reduce((acc, currDigit, i2) => {
|
|
38779
|
-
const prevDigit = i2 > 0 ? vars[i2 - 1] : 0;
|
|
38780
|
-
if (currDigit - prevDigit !== 1) {
|
|
38781
|
-
acc.push(currDigit);
|
|
38782
|
-
}
|
|
38783
|
-
return acc;
|
|
38784
|
-
}, []);
|
|
38785
|
-
if (nonSequentialDigits == null ? void 0 : nonSequentialDigits.length) {
|
|
38786
|
-
const regex2 = new RegExp(nonSequentialDigits.map((d2) => `\\{\\{${d2}\\}\\}`).join("|"), "g");
|
|
38787
|
-
const newVal = `${boundValue.value}`.replace(regex2, "");
|
|
38788
|
-
void ((_a2 = boundNode.value) == null ? void 0 : _a2.input(newVal));
|
|
38789
|
-
vars = extractVariables(boundValue.value);
|
|
38790
|
-
}
|
|
38791
|
-
const parentEl2 = (_b = exampleEl.value) == null ? void 0 : _b.closest(".formkit-outer");
|
|
38792
|
-
if (!vars.length && parentEl2) {
|
|
38793
|
-
parentEl2.classList.add("hide");
|
|
38794
|
-
} else if (parentEl2) {
|
|
38795
|
-
parentEl2.classList.remove("hide");
|
|
38796
|
-
}
|
|
38797
|
-
return vars;
|
|
38798
|
-
});
|
|
38799
|
-
const setupListners = (node) => {
|
|
38800
|
-
node == null ? void 0 : node.on("input", (v2) => {
|
|
38801
|
-
boundValue.value = v2.payload;
|
|
38802
|
-
});
|
|
38803
|
-
};
|
|
38804
|
-
onMounted(() => {
|
|
38805
|
-
var _a2;
|
|
38806
|
-
boundNode.value = (_a2 = props2.context) == null ? void 0 : _a2.node.parent.children.find((c2) => c2.name === txtType.value);
|
|
38807
|
-
setupListners(boundNode.value);
|
|
38808
|
-
});
|
|
38809
|
-
watch(() => {
|
|
38810
|
-
var _a2;
|
|
38811
|
-
return (_a2 = props2.context) == null ? void 0 : _a2.value;
|
|
38812
|
-
}, (v2) => val.value = v2, { immediate: true });
|
|
38813
|
-
return (_ctx, _cache) => {
|
|
38814
|
-
return openBlock(), createElementBlock("div", {
|
|
38815
|
-
ref_key: "exampleEl",
|
|
38816
|
-
ref: exampleEl
|
|
38817
|
-
}, [
|
|
38818
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(variables.value, (v2) => {
|
|
38819
|
-
var _a2;
|
|
38820
|
-
return openBlock(), createBlock(unref(TextInput), {
|
|
38821
|
-
key: v2,
|
|
38822
|
-
placeholder: `Variable ${v2}`,
|
|
38823
|
-
modelValue: (_a2 = unref(val)) == null ? void 0 : _a2[v2 - 1],
|
|
38824
|
-
"onUpdate:modelValue": ($event) => handleUpdate($event, v2)
|
|
38825
|
-
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"]);
|
|
38826
|
-
}), 128))
|
|
38827
|
-
], 512);
|
|
38828
|
-
};
|
|
38829
|
-
}
|
|
38830
|
-
});
|
|
38831
38682
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
38832
38683
|
__name: "Layout",
|
|
38833
38684
|
props: {
|
|
@@ -38899,10 +38750,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38899
38750
|
return withDirectives((openBlock(), createBlock(unref(Btn), {
|
|
38900
38751
|
key: i2,
|
|
38901
38752
|
to: nav2.to,
|
|
38902
|
-
class: "nav-button"
|
|
38753
|
+
class: "nav-button px-075"
|
|
38903
38754
|
}, {
|
|
38904
38755
|
default: withCtx(() => [
|
|
38905
|
-
createVNode(unref(_sfc_main$
|
|
38756
|
+
createVNode(unref(_sfc_main$F), {
|
|
38906
38757
|
icon: nav2.icon,
|
|
38907
38758
|
size: 1.4
|
|
38908
38759
|
}, null, 8, ["icon"]),
|
|
@@ -38925,57 +38776,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38925
38776
|
};
|
|
38926
38777
|
}
|
|
38927
38778
|
});
|
|
38928
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
38779
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d6bd3d8"]]);
|
|
38929
38780
|
export {
|
|
38930
|
-
_sfc_main$
|
|
38781
|
+
_sfc_main$n as Accordion,
|
|
38931
38782
|
AccordionItem,
|
|
38932
38783
|
Alert,
|
|
38933
38784
|
Avatar,
|
|
38934
38785
|
Badge,
|
|
38935
|
-
_sfc_main$
|
|
38786
|
+
_sfc_main$h as BagelForm,
|
|
38936
38787
|
BagelVue,
|
|
38937
|
-
_sfc_main$
|
|
38938
|
-
_sfc_main$
|
|
38788
|
+
_sfc_main$g as BglField,
|
|
38789
|
+
_sfc_main$h as BglForm,
|
|
38939
38790
|
BglVideo,
|
|
38940
38791
|
Btn,
|
|
38941
|
-
_sfc_main$
|
|
38792
|
+
_sfc_main$q as Card,
|
|
38942
38793
|
Carousel,
|
|
38943
38794
|
CheckInput,
|
|
38944
38795
|
Checkbox,
|
|
38945
|
-
_sfc_main$
|
|
38796
|
+
_sfc_main$7 as ColorPicker,
|
|
38946
38797
|
ComboBox,
|
|
38947
38798
|
Comments,
|
|
38948
38799
|
DataPreview,
|
|
38949
|
-
_sfc_main$
|
|
38950
|
-
_sfc_main$
|
|
38800
|
+
_sfc_main$e as DateInput,
|
|
38801
|
+
_sfc_main$6 as DatePicker,
|
|
38951
38802
|
FileUpload,
|
|
38952
|
-
_sfc_main$
|
|
38803
|
+
_sfc_main$F as Icon,
|
|
38953
38804
|
JSONInput,
|
|
38954
38805
|
_sfc_main$1 as Layout,
|
|
38955
|
-
_sfc_main$
|
|
38956
|
-
_sfc_main$
|
|
38957
|
-
_sfc_main$
|
|
38958
|
-
_sfc_main$
|
|
38959
|
-
_sfc_main$
|
|
38806
|
+
_sfc_main$2 as Lineart,
|
|
38807
|
+
_sfc_main$y as ListItem,
|
|
38808
|
+
_sfc_main$z as ListView,
|
|
38809
|
+
_sfc_main$F as MaterialIcon,
|
|
38810
|
+
_sfc_main$C as Modal,
|
|
38960
38811
|
ModalForm,
|
|
38961
38812
|
ModalPlugin,
|
|
38962
|
-
MsgTemplate,
|
|
38963
38813
|
NavBar,
|
|
38964
|
-
_sfc_main$
|
|
38965
|
-
_sfc_main$
|
|
38814
|
+
_sfc_main$v as PageTitle,
|
|
38815
|
+
_sfc_main$G as RTXEditor,
|
|
38966
38816
|
RadioPillsInput,
|
|
38967
38817
|
RichTextEditor,
|
|
38968
38818
|
RouterWrapper,
|
|
38969
|
-
_sfc_main$
|
|
38819
|
+
_sfc_main$c as SelectInput,
|
|
38970
38820
|
SidebarMenu,
|
|
38971
38821
|
TabbedLayout,
|
|
38972
38822
|
TableField,
|
|
38973
38823
|
TableSchema,
|
|
38974
38824
|
TextInput,
|
|
38975
|
-
_sfc_main$
|
|
38976
|
-
_sfc_main$q as Title,
|
|
38825
|
+
_sfc_main$o as Title,
|
|
38977
38826
|
ToggleInput,
|
|
38978
38827
|
TopBar,
|
|
38828
|
+
BagelFormUtils as bagelFormUtils,
|
|
38979
38829
|
bagelInjectionKey,
|
|
38980
38830
|
bindAttrs,
|
|
38981
38831
|
classify,
|