@bagelink/vue 0.0.316 → 0.0.322
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 +1 -0
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +50 -27
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +1 -0
- 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/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts +3 -3
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts +1 -7
- 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 +417 -568
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +417 -568
- package/dist/style.css +224 -258
- package/dist/types/BagelForm.d.ts +1 -1
- package/dist/types/BagelForm.d.ts.map +1 -1
- package/dist/types/NavLink.d.ts +2 -1
- package/dist/types/NavLink.d.ts.map +1 -1
- 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 +2 -2
- package/src/components/Badge.vue +2 -2
- package/src/components/Carousel.vue +137 -137
- package/src/components/ComboBox.vue +72 -49
- package/src/components/ListView.vue +28 -27
- package/src/components/Modal.vue +25 -23
- package/src/components/NavBar.vue +46 -40
- package/src/components/form/BglField.vue +33 -48
- package/src/components/form/BglForm.vue +34 -15
- package/src/components/form/inputs/TextInput.vue +121 -151
- package/src/components/index.ts +1 -1
- package/src/components/layout/Layout.vue +3 -2
- package/src/components/layout/SidebarMenu.vue +5 -12
- package/src/components/whatsapp/index.ts +2 -2
- package/src/styles/layout.css +24 -1
- package/src/styles/text.css +4 -0
- package/src/types/BagelForm.ts +7 -7
- package/src/types/NavLink.ts +2 -1
- 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",
|
|
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$
|
|
17214
|
-
icon: link.
|
|
17264
|
+
createVNode(unref(_sfc_main$F), {
|
|
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$
|
|
17236
|
-
icon: link.
|
|
17286
|
+
createVNode(unref(_sfc_main$F), {
|
|
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,14 @@ 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$
|
|
18315
|
+
createVNode(unref(_sfc_main$q), {
|
|
18264
18316
|
thin: "",
|
|
18265
|
-
class: "combobox-options"
|
|
18317
|
+
class: "combobox-options",
|
|
18318
|
+
style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
|
|
18266
18319
|
}, {
|
|
18267
18320
|
default: withCtx(() => [
|
|
18268
18321
|
_ctx.searchable ? (openBlock(), createBlock(unref(TextInput), {
|
|
@@ -18284,43 +18337,47 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
18284
18337
|
hide();
|
|
18285
18338
|
}
|
|
18286
18339
|
}, [
|
|
18287
|
-
createElementVNode("span", null, toDisplayString(
|
|
18288
|
-
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18340
|
+
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1),
|
|
18341
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18289
18342
|
key: 0,
|
|
18290
18343
|
icon: "check"
|
|
18291
18344
|
})) : createCommentVNode("", true)
|
|
18292
|
-
], 10, _hoisted_1$
|
|
18293
|
-
}), 128))
|
|
18345
|
+
], 10, _hoisted_1$u);
|
|
18346
|
+
}), 128)),
|
|
18347
|
+
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
18294
18348
|
]),
|
|
18295
18349
|
_: 2
|
|
18296
|
-
},
|
|
18350
|
+
}, 1032, ["style"])
|
|
18297
18351
|
]),
|
|
18298
18352
|
default: withCtx(() => [
|
|
18299
|
-
createElementVNode("
|
|
18300
|
-
|
|
18301
|
-
|
|
18302
|
-
|
|
18303
|
-
|
|
18304
|
-
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18353
|
+
createElementVNode("label", null, [
|
|
18354
|
+
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
18355
|
+
createElementVNode("button", {
|
|
18356
|
+
type: "button",
|
|
18357
|
+
class: "combobox-btn",
|
|
18358
|
+
onClick: toggle
|
|
18359
|
+
}, [
|
|
18360
|
+
createTextVNode(toDisplayString(valueToLabel(unref(selectedItem)) || _ctx.placeholder || "Select") + " ", 1),
|
|
18361
|
+
createVNode(unref(_sfc_main$F), normalizeProps(guardReactiveProps({ "icon": unref(open) ? "unfold_less" : "unfold_more" })), null, 16)
|
|
18362
|
+
]),
|
|
18363
|
+
_ctx.required ? withDirectives((openBlock(), createElementBlock("input", {
|
|
18364
|
+
key: 0,
|
|
18365
|
+
style: { "width": "0", "height": "0", "position": "absolute", "opacity": "0", "z-index": "-1" },
|
|
18366
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectedItem) ? selectedItem.value = $event : selectedItem = $event),
|
|
18367
|
+
required: ""
|
|
18368
|
+
}, null, 512)), [
|
|
18369
|
+
[vModelText, unref(selectedItem)]
|
|
18370
|
+
]) : createCommentVNode("", true)
|
|
18371
|
+
])
|
|
18315
18372
|
]),
|
|
18316
|
-
_:
|
|
18373
|
+
_: 3
|
|
18317
18374
|
});
|
|
18318
18375
|
};
|
|
18319
18376
|
}
|
|
18320
18377
|
});
|
|
18321
|
-
const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18322
|
-
const _hoisted_1$
|
|
18323
|
-
const _sfc_main$
|
|
18378
|
+
const ComboBox = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-220e98d7"]]);
|
|
18379
|
+
const _hoisted_1$t = ["dismissable"];
|
|
18380
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
18324
18381
|
__name: "Alert",
|
|
18325
18382
|
props: {
|
|
18326
18383
|
message: {},
|
|
@@ -18340,7 +18397,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18340
18397
|
class: normalizeClass(["alert", [_ctx.type]]),
|
|
18341
18398
|
dismissable: _ctx.dismissable
|
|
18342
18399
|
}, [
|
|
18343
|
-
createVNode(unref(_sfc_main$
|
|
18400
|
+
createVNode(unref(_sfc_main$F), {
|
|
18344
18401
|
class: "alert_icon",
|
|
18345
18402
|
icon: _ctx.type,
|
|
18346
18403
|
size: 2,
|
|
@@ -18354,12 +18411,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
18354
18411
|
class: "alert_close",
|
|
18355
18412
|
icon: "close"
|
|
18356
18413
|
})
|
|
18357
|
-
], 10, _hoisted_1$
|
|
18414
|
+
], 10, _hoisted_1$t)) : createCommentVNode("", true);
|
|
18358
18415
|
};
|
|
18359
18416
|
}
|
|
18360
18417
|
});
|
|
18361
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18362
|
-
const _sfc_main$
|
|
18418
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-94bfcb05"]]);
|
|
18419
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
18363
18420
|
__name: "Badge",
|
|
18364
18421
|
props: {
|
|
18365
18422
|
color: {},
|
|
@@ -18374,13 +18431,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18374
18431
|
return openBlock(), createElementBlock("div", {
|
|
18375
18432
|
class: normalizeClass(["pill", [_ctx.color]])
|
|
18376
18433
|
}, [
|
|
18377
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18434
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18378
18435
|
key: 0,
|
|
18379
18436
|
class: "inline",
|
|
18380
18437
|
icon: _ctx.icon
|
|
18381
18438
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
18382
18439
|
createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
|
|
18383
|
-
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$
|
|
18440
|
+
props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
18384
18441
|
key: 1,
|
|
18385
18442
|
class: "inline",
|
|
18386
18443
|
icon: props2["icon.end"]
|
|
@@ -18389,11 +18446,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
18389
18446
|
};
|
|
18390
18447
|
}
|
|
18391
18448
|
});
|
|
18392
|
-
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18393
|
-
const _hoisted_1$
|
|
18449
|
+
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-10743b06"]]);
|
|
18450
|
+
const _hoisted_1$s = { class: "bgl_vid" };
|
|
18394
18451
|
const _hoisted_2$n = ["src"];
|
|
18395
|
-
const _hoisted_3$
|
|
18396
|
-
const _sfc_main$
|
|
18452
|
+
const _hoisted_3$h = ["src", "autoplay", "muted", "loop", "controls"];
|
|
18453
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
18397
18454
|
__name: "BglVideo",
|
|
18398
18455
|
props: {
|
|
18399
18456
|
src: {},
|
|
@@ -18432,7 +18489,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18432
18489
|
});
|
|
18433
18490
|
console.log("Video URL:", videoUrl.value);
|
|
18434
18491
|
return (_ctx, _cache) => {
|
|
18435
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18492
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
18436
18493
|
embedType.value ? (openBlock(), createElementBlock("iframe", {
|
|
18437
18494
|
key: 0,
|
|
18438
18495
|
src: videoUrl.value,
|
|
@@ -18449,18 +18506,18 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18449
18506
|
style: normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
18450
18507
|
controls: _ctx.controls,
|
|
18451
18508
|
playsinline: ""
|
|
18452
|
-
}, null, 12, _hoisted_3$
|
|
18509
|
+
}, null, 12, _hoisted_3$h))
|
|
18453
18510
|
]);
|
|
18454
18511
|
};
|
|
18455
18512
|
}
|
|
18456
18513
|
});
|
|
18457
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18458
|
-
const _hoisted_1$
|
|
18514
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-23835d69"]]);
|
|
18515
|
+
const _hoisted_1$r = {
|
|
18459
18516
|
key: 0,
|
|
18460
18517
|
class: "blocker"
|
|
18461
18518
|
};
|
|
18462
18519
|
const _hoisted_2$m = { class: "Handlers" };
|
|
18463
|
-
const _sfc_main$
|
|
18520
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
18464
18521
|
__name: "Carousel",
|
|
18465
18522
|
props: {
|
|
18466
18523
|
autoHeight: {
|
|
@@ -18610,7 +18667,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18610
18667
|
ref_key: "bglSlider",
|
|
18611
18668
|
ref: bglSlider
|
|
18612
18669
|
}, [
|
|
18613
|
-
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18670
|
+
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$r)) : createCommentVNode("", true),
|
|
18614
18671
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18615
18672
|
], 34),
|
|
18616
18673
|
createElementVNode("div", _hoisted_2$m, [
|
|
@@ -18625,13 +18682,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18625
18682
|
};
|
|
18626
18683
|
}
|
|
18627
18684
|
});
|
|
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({
|
|
18685
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7e8d16cb"]]);
|
|
18686
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
18635
18687
|
__name: "BglForm",
|
|
18636
18688
|
props: {
|
|
18637
18689
|
label: {},
|
|
@@ -18643,10 +18695,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18643
18695
|
},
|
|
18644
18696
|
emits: ["update:modelValue", "submit", "dirty"],
|
|
18645
18697
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18698
|
+
const slots = useSlots();
|
|
18646
18699
|
const { showModal } = useModal();
|
|
18647
18700
|
const props2 = __props;
|
|
18648
18701
|
const instAt = /* @__PURE__ */ new Date();
|
|
18649
18702
|
const timeSinceInst = () => (/* @__PURE__ */ new Date()).getTime() - instAt.getTime();
|
|
18703
|
+
let formData = ref(props2.modelValue);
|
|
18650
18704
|
const emit2 = __emit;
|
|
18651
18705
|
let isDirty = ref(false);
|
|
18652
18706
|
const data2 = computed({
|
|
@@ -18655,9 +18709,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18655
18709
|
emit2("dirty");
|
|
18656
18710
|
isDirty.value = true;
|
|
18657
18711
|
}
|
|
18712
|
+
formData.value = val;
|
|
18658
18713
|
emit2("update:modelValue", val);
|
|
18659
18714
|
},
|
|
18660
|
-
get: () => props2.modelValue ||
|
|
18715
|
+
get: () => props2.modelValue || formData.value
|
|
18661
18716
|
});
|
|
18662
18717
|
const form = ref();
|
|
18663
18718
|
const validateForm = () => {
|
|
@@ -18665,10 +18720,17 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18665
18720
|
return (_b = (_a2 = form.value) == null ? void 0 : _a2.reportValidity) == null ? void 0 : _b.call(_a2);
|
|
18666
18721
|
};
|
|
18667
18722
|
const clearForm = () => Object.assign(data2.value, {});
|
|
18723
|
+
let formStatus = ref("idle");
|
|
18668
18724
|
const runSubmit = () => {
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18725
|
+
console.log("runSubmit");
|
|
18726
|
+
try {
|
|
18727
|
+
validateForm();
|
|
18728
|
+
props2.onSubmit(data2.value);
|
|
18729
|
+
clearForm();
|
|
18730
|
+
formStatus.value = "success";
|
|
18731
|
+
} catch (e) {
|
|
18732
|
+
formStatus.value = "error";
|
|
18733
|
+
}
|
|
18672
18734
|
};
|
|
18673
18735
|
const i18nT = (val) => val;
|
|
18674
18736
|
const deleteItem = () => {
|
|
@@ -18693,39 +18755,46 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18693
18755
|
};
|
|
18694
18756
|
__expose({ validateForm, deleteItem, isDirty: isDirty.value });
|
|
18695
18757
|
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), {
|
|
18758
|
+
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
18759
|
+
_ctx.id ? (openBlock(true), createElementBlock(Fragment$1, { key: 0 }, renderList(_ctx.schema, (field, i2) => {
|
|
18760
|
+
return openBlock(), createBlock(unref(_sfc_main$g), {
|
|
18716
18761
|
key: field.id || `${i2}p`,
|
|
18717
18762
|
field,
|
|
18718
18763
|
modelValue: data2.value,
|
|
18719
|
-
"onUpdate:modelValue": _cache[
|
|
18764
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
|
|
18720
18765
|
}, null, 8, ["field", "modelValue"]);
|
|
18721
|
-
}), 128)),
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18766
|
+
}), 128)) : !unref(slots).success || unref(formStatus) !== "success" ? (openBlock(), createElementBlock("form", {
|
|
18767
|
+
key: 1,
|
|
18768
|
+
ref_key: "form",
|
|
18769
|
+
ref: form,
|
|
18770
|
+
onSubmit: withModifiers(runSubmit, ["prevent"])
|
|
18771
|
+
}, [
|
|
18772
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$o), {
|
|
18773
|
+
key: 0,
|
|
18774
|
+
tag: "h4",
|
|
18775
|
+
label: _ctx.label
|
|
18776
|
+
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18777
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i2) => {
|
|
18778
|
+
return openBlock(), createBlock(unref(_sfc_main$g), {
|
|
18779
|
+
key: field.id || `${i2}p`,
|
|
18780
|
+
field,
|
|
18781
|
+
modelValue: data2.value,
|
|
18782
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data2.value = $event)
|
|
18783
|
+
}, null, 8, ["field", "modelValue"]);
|
|
18784
|
+
}), 128)),
|
|
18785
|
+
renderSlot(_ctx.$slots, "submit"),
|
|
18786
|
+
createElementVNode("button", { onClick: runSubmit }, " Click ")
|
|
18787
|
+
], 544)) : createCommentVNode("", true),
|
|
18788
|
+
unref(formStatus) === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
|
|
18789
|
+
unref(formStatus) === "error" ? renderSlot(_ctx.$slots, "error", {
|
|
18790
|
+
key: 3,
|
|
18791
|
+
message: _ctx.error
|
|
18792
|
+
}) : createCommentVNode("", true)
|
|
18793
|
+
], 64);
|
|
18725
18794
|
};
|
|
18726
18795
|
}
|
|
18727
18796
|
});
|
|
18728
|
-
const _sfc_main$
|
|
18797
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
18729
18798
|
__name: "BglField",
|
|
18730
18799
|
props: {
|
|
18731
18800
|
field: {},
|
|
@@ -18738,7 +18807,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18738
18807
|
if (props2.field.$el === "text")
|
|
18739
18808
|
return TextInput;
|
|
18740
18809
|
if (props2.field.$el === "select")
|
|
18741
|
-
return
|
|
18810
|
+
return ComboBox;
|
|
18742
18811
|
if (props2.field.$el === "toggle")
|
|
18743
18812
|
return ToggleInput;
|
|
18744
18813
|
if (props2.field.$el === "check")
|
|
@@ -18793,7 +18862,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18793
18862
|
})
|
|
18794
18863
|
],
|
|
18795
18864
|
defaultValue: _ctx.field.defaultValue,
|
|
18796
|
-
options: _ctx.field.options,
|
|
18865
|
+
options: unref(bindAttrs)({ options: _ctx.field.options }, fieldData.value, _ctx.modelValue).options,
|
|
18797
18866
|
helptext: _ctx.field.helptext
|
|
18798
18867
|
}), {
|
|
18799
18868
|
default: withCtx(() => {
|
|
@@ -18825,11 +18894,11 @@ const _hoisted_2$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
18825
18894
|
}, [
|
|
18826
18895
|
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
18827
18896
|
], -1));
|
|
18828
|
-
const _hoisted_3$
|
|
18897
|
+
const _hoisted_3$g = [
|
|
18829
18898
|
_hoisted_2$l
|
|
18830
18899
|
];
|
|
18831
|
-
const _hoisted_4$
|
|
18832
|
-
const _sfc_main$
|
|
18900
|
+
const _hoisted_4$b = ["required", "id"];
|
|
18901
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
18833
18902
|
__name: "CheckInput",
|
|
18834
18903
|
props: /* @__PURE__ */ mergeModels({
|
|
18835
18904
|
label: {},
|
|
@@ -18852,14 +18921,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18852
18921
|
createElementVNode("div", {
|
|
18853
18922
|
class: normalizeClass(["check-square", { checked: checked.value }]),
|
|
18854
18923
|
onClick: _cache[0] || (_cache[0] = ($event) => checked.value = !checked.value)
|
|
18855
|
-
}, _hoisted_3$
|
|
18924
|
+
}, _hoisted_3$g, 2),
|
|
18856
18925
|
createElementVNode("label", null, [
|
|
18857
18926
|
withDirectives(createElementVNode("input", {
|
|
18858
18927
|
required: _ctx.required,
|
|
18859
18928
|
id: _ctx.id,
|
|
18860
18929
|
type: "checkbox",
|
|
18861
18930
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => checked.value = $event)
|
|
18862
|
-
}, null, 8, _hoisted_4$
|
|
18931
|
+
}, null, 8, _hoisted_4$b), [
|
|
18863
18932
|
[vModelCheckbox, checked.value]
|
|
18864
18933
|
]),
|
|
18865
18934
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
@@ -18870,7 +18939,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18870
18939
|
};
|
|
18871
18940
|
}
|
|
18872
18941
|
});
|
|
18873
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18942
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e8219826"]]);
|
|
18874
18943
|
function toDate(argument) {
|
|
18875
18944
|
const argStr = Object.prototype.toString.call(argument);
|
|
18876
18945
|
if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
|
|
@@ -27481,7 +27550,7 @@ Object.entries(Mo).forEach(([e, t]) => {
|
|
|
27481
27550
|
});
|
|
27482
27551
|
const _hoisted_1$p = ["title"];
|
|
27483
27552
|
const _hoisted_2$k = { key: 0 };
|
|
27484
|
-
const _sfc_main$
|
|
27553
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
27485
27554
|
__name: "DateInput",
|
|
27486
27555
|
props: {
|
|
27487
27556
|
label: {},
|
|
@@ -27533,8 +27602,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
27533
27602
|
});
|
|
27534
27603
|
const _hoisted_1$o = ["title"];
|
|
27535
27604
|
const _hoisted_2$j = { key: 0 };
|
|
27536
|
-
const _hoisted_3$
|
|
27537
|
-
const _sfc_main$
|
|
27605
|
+
const _hoisted_3$f = ["value", "placeholder"];
|
|
27606
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27538
27607
|
__name: "JSONInput",
|
|
27539
27608
|
props: {
|
|
27540
27609
|
description: { default: "" },
|
|
@@ -27565,12 +27634,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
27565
27634
|
onInput: handleInput,
|
|
27566
27635
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
27567
27636
|
placeholder: _ctx.placeholder
|
|
27568
|
-
}, null, 42, _hoisted_3$
|
|
27637
|
+
}, null, 42, _hoisted_3$f)
|
|
27569
27638
|
], 10, _hoisted_1$o);
|
|
27570
27639
|
};
|
|
27571
27640
|
}
|
|
27572
27641
|
});
|
|
27573
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27642
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1fc4f739"]]);
|
|
27574
27643
|
function isEmpty(opt) {
|
|
27575
27644
|
if (opt === 0)
|
|
27576
27645
|
return false;
|
|
@@ -28563,11 +28632,11 @@ const _hoisted_1$n = {
|
|
|
28563
28632
|
class: "multiselect__tags"
|
|
28564
28633
|
};
|
|
28565
28634
|
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$
|
|
28635
|
+
const _hoisted_3$e = { class: "multiselect__spinner" };
|
|
28636
|
+
const _hoisted_4$a = { key: 0 };
|
|
28637
|
+
const _hoisted_5$9 = { class: "multiselect__option" };
|
|
28638
|
+
const _hoisted_6$5 = { class: "multiselect__option" };
|
|
28639
|
+
const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("No elements found. Consider changing the search query.");
|
|
28571
28640
|
const _hoisted_8$1 = { class: "multiselect__option" };
|
|
28572
28641
|
const _hoisted_9$1 = /* @__PURE__ */ createTextVNode("List is empty.");
|
|
28573
28642
|
function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -28658,7 +28727,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28658
28727
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
28659
28728
|
withDirectives(createVNode(
|
|
28660
28729
|
"div",
|
|
28661
|
-
_hoisted_3$
|
|
28730
|
+
_hoisted_3$e,
|
|
28662
28731
|
null,
|
|
28663
28732
|
512
|
|
28664
28733
|
/* NEED_PATCH */
|
|
@@ -28759,8 +28828,8 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28759
28828
|
id: "listbox-" + _ctx.id
|
|
28760
28829
|
}, [
|
|
28761
28830
|
renderSlot(_ctx.$slots, "beforeList"),
|
|
28762
|
-
_ctx.multiple && _ctx.max === _ctx.internalValue.length ? (openBlock(), createBlock("li", _hoisted_4$
|
|
28763
|
-
createVNode("span", _hoisted_5$
|
|
28831
|
+
_ctx.multiple && _ctx.max === _ctx.internalValue.length ? (openBlock(), createBlock("li", _hoisted_4$a, [
|
|
28832
|
+
createVNode("span", _hoisted_5$9, [
|
|
28764
28833
|
renderSlot(_ctx.$slots, "maxElements", {}, () => [
|
|
28765
28834
|
createTextVNode(
|
|
28766
28835
|
"Maximum of " + toDisplayString(_ctx.max) + " options selected. First remove a selected option to select another.",
|
|
@@ -28834,9 +28903,9 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28834
28903
|
"li",
|
|
28835
28904
|
null,
|
|
28836
28905
|
[
|
|
28837
|
-
createVNode("span", _hoisted_6$
|
|
28906
|
+
createVNode("span", _hoisted_6$5, [
|
|
28838
28907
|
renderSlot(_ctx.$slots, "noResult", { search: _ctx.search }, () => [
|
|
28839
|
-
_hoisted_7$
|
|
28908
|
+
_hoisted_7$2
|
|
28840
28909
|
])
|
|
28841
28910
|
])
|
|
28842
28911
|
],
|
|
@@ -28877,7 +28946,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28877
28946
|
script$e.render = render$e;
|
|
28878
28947
|
const Multiselect = script$e;
|
|
28879
28948
|
const _hoisted_1$m = ["for"];
|
|
28880
|
-
const _sfc_main$
|
|
28949
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
28881
28950
|
__name: "SelectInput",
|
|
28882
28951
|
props: {
|
|
28883
28952
|
required: { type: Boolean },
|
|
@@ -28942,8 +29011,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
28942
29011
|
});
|
|
28943
29012
|
const _hoisted_1$l = ["title"];
|
|
28944
29013
|
const _hoisted_2$h = { key: 0 };
|
|
28945
|
-
const _hoisted_3$
|
|
28946
|
-
const _sfc_main$
|
|
29014
|
+
const _hoisted_3$d = ["value", "placeholder"];
|
|
29015
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
28947
29016
|
__name: "RichTextEditor",
|
|
28948
29017
|
props: {
|
|
28949
29018
|
description: { default: "" },
|
|
@@ -28974,12 +29043,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28974
29043
|
onInput: handleInput,
|
|
28975
29044
|
placeholder: _ctx.placeholder,
|
|
28976
29045
|
class: normalizeClass({ "no-edit": !_ctx.editMode })
|
|
28977
|
-
}, null, 42, _hoisted_3$
|
|
29046
|
+
}, null, 42, _hoisted_3$d)
|
|
28978
29047
|
], 10, _hoisted_1$l);
|
|
28979
29048
|
};
|
|
28980
29049
|
}
|
|
28981
29050
|
});
|
|
28982
|
-
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
29051
|
+
const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-69a60381"]]);
|
|
28983
29052
|
/*!
|
|
28984
29053
|
* vue-draggable-next v2.2.0
|
|
28985
29054
|
* (c) 2023 Anish George
|
|
@@ -31504,11 +31573,11 @@ const VueDraggableNext = defineComponent({
|
|
|
31504
31573
|
});
|
|
31505
31574
|
const _hoisted_1$k = ["title"];
|
|
31506
31575
|
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$
|
|
31576
|
+
const _hoisted_3$c = { class: "table-side-scroll" };
|
|
31577
|
+
const _hoisted_4$9 = { class: "table-header" };
|
|
31578
|
+
const _hoisted_5$8 = { class: "table-reorder" };
|
|
31579
|
+
const _hoisted_6$4 = { class: "table-action" };
|
|
31580
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
31512
31581
|
__name: "TableField",
|
|
31513
31582
|
props: {
|
|
31514
31583
|
description: { default: "" },
|
|
@@ -31576,8 +31645,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31576
31645
|
createElementVNode("div", _hoisted_2$g, [
|
|
31577
31646
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
31578
31647
|
]),
|
|
31579
|
-
createElementVNode("div", _hoisted_3$
|
|
31580
|
-
createElementVNode("div", _hoisted_4$
|
|
31648
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
31649
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
31581
31650
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
31582
31651
|
return openBlock(), createElementBlock("div", {
|
|
31583
31652
|
class: normalizeClass(["header-col", unref(formatString)(field.fieldtype, "pascal")]),
|
|
@@ -31604,8 +31673,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31604
31673
|
class: "flex table-row",
|
|
31605
31674
|
key: row.id
|
|
31606
31675
|
}, [
|
|
31607
|
-
createElementVNode("div", _hoisted_5$
|
|
31608
|
-
createVNode(unref(_sfc_main$
|
|
31676
|
+
createElementVNode("div", _hoisted_5$8, [
|
|
31677
|
+
createVNode(unref(_sfc_main$F), { icon: "more_vert" })
|
|
31609
31678
|
]),
|
|
31610
31679
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
31611
31680
|
return openBlock(), createElementBlock("div", {
|
|
@@ -31621,8 +31690,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31621
31690
|
}, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
|
|
31622
31691
|
], 2);
|
|
31623
31692
|
}), 128)),
|
|
31624
|
-
createElementVNode("div", _hoisted_6$
|
|
31625
|
-
createVNode(unref(_sfc_main$
|
|
31693
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
31694
|
+
createVNode(unref(_sfc_main$F), {
|
|
31626
31695
|
icon: "delete",
|
|
31627
31696
|
onClick: ($event) => removeRow(index2)
|
|
31628
31697
|
}, null, 8, ["onClick"])
|
|
@@ -31652,13 +31721,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
31652
31721
|
};
|
|
31653
31722
|
}
|
|
31654
31723
|
});
|
|
31655
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31724
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-cdacf10e"]]);
|
|
31656
31725
|
const _hoisted_1$j = ["title"];
|
|
31657
31726
|
const _hoisted_2$f = ["for"];
|
|
31658
|
-
const _hoisted_3$
|
|
31659
|
-
const _hoisted_4$
|
|
31660
|
-
const _hoisted_5$
|
|
31661
|
-
const _sfc_main$
|
|
31727
|
+
const _hoisted_3$b = ["title", "autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
31728
|
+
const _hoisted_4$8 = ["title", "id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
31729
|
+
const _hoisted_5$7 = { key: 2 };
|
|
31730
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
31662
31731
|
__name: "TextInput",
|
|
31663
31732
|
props: {
|
|
31664
31733
|
id: {},
|
|
@@ -31681,7 +31750,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31681
31750
|
autoheight: { type: Boolean },
|
|
31682
31751
|
code: { type: Boolean },
|
|
31683
31752
|
lines: {},
|
|
31684
|
-
autocomplete: { default: "off" }
|
|
31753
|
+
autocomplete: { default: "off" },
|
|
31754
|
+
autofocus: { type: Boolean }
|
|
31685
31755
|
},
|
|
31686
31756
|
emits: ["update:modelValue", "debounce"],
|
|
31687
31757
|
setup(__props, { emit: __emit }) {
|
|
@@ -31734,6 +31804,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31734
31804
|
},
|
|
31735
31805
|
{ immediate: true }
|
|
31736
31806
|
);
|
|
31807
|
+
onMounted(() => {
|
|
31808
|
+
if (props2.autofocus)
|
|
31809
|
+
setTimeout(() => {
|
|
31810
|
+
var _a2;
|
|
31811
|
+
return (_a2 = input.value) == null ? void 0 : _a2.focus();
|
|
31812
|
+
}, 10);
|
|
31813
|
+
});
|
|
31737
31814
|
return (_ctx, _cache) => {
|
|
31738
31815
|
return openBlock(), createElementBlock("div", {
|
|
31739
31816
|
class: normalizeClass(["bagel-input text-input", {
|
|
@@ -31764,7 +31841,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31764
31841
|
disabled: !unref(editMode),
|
|
31765
31842
|
required: _ctx.required,
|
|
31766
31843
|
pattern: _ctx.pattern
|
|
31767
|
-
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$
|
|
31844
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$b)), [
|
|
31768
31845
|
[vModelDynamic, unref(inputVal)]
|
|
31769
31846
|
]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
|
|
31770
31847
|
key: 1,
|
|
@@ -31779,17 +31856,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31779
31856
|
disabled: !unref(editMode),
|
|
31780
31857
|
required: _ctx.required,
|
|
31781
31858
|
pattern: _ctx.pattern
|
|
31782
|
-
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$
|
|
31859
|
+
}, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$8)), [
|
|
31783
31860
|
[vModelText, unref(inputVal)]
|
|
31784
31861
|
]),
|
|
31785
|
-
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$
|
|
31862
|
+
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$7, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
|
|
31786
31863
|
], 8, _hoisted_2$f),
|
|
31787
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
31864
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
31788
31865
|
key: 0,
|
|
31789
31866
|
class: "iconStart",
|
|
31790
31867
|
icon: _ctx.iconStart
|
|
31791
31868
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
31792
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
31869
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$F), {
|
|
31793
31870
|
key: 1,
|
|
31794
31871
|
icon: _ctx.icon
|
|
31795
31872
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -31805,9 +31882,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
31805
31882
|
};
|
|
31806
31883
|
}
|
|
31807
31884
|
});
|
|
31808
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31885
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-25f868b2"]]);
|
|
31809
31886
|
const _hoisted_1$i = { class: "primary-checkbox" };
|
|
31810
|
-
const _sfc_main$
|
|
31887
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
31811
31888
|
__name: "Checkbox",
|
|
31812
31889
|
props: {
|
|
31813
31890
|
"modelValue": {
|
|
@@ -31828,16 +31905,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
31828
31905
|
[vModelCheckbox, val.value]
|
|
31829
31906
|
]),
|
|
31830
31907
|
createElementVNode("span", null, [
|
|
31831
|
-
createVNode(unref(_sfc_main$
|
|
31908
|
+
createVNode(unref(_sfc_main$F), { icon: "check" })
|
|
31832
31909
|
])
|
|
31833
31910
|
]);
|
|
31834
31911
|
};
|
|
31835
31912
|
}
|
|
31836
31913
|
});
|
|
31837
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31914
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e4cbb088"]]);
|
|
31838
31915
|
const _hoisted_1$h = ["title"];
|
|
31839
31916
|
const _hoisted_2$e = ["id", "placeholder", "required"];
|
|
31840
|
-
const _sfc_main$
|
|
31917
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
31841
31918
|
__name: "ColorPicker",
|
|
31842
31919
|
props: {
|
|
31843
31920
|
label: {},
|
|
@@ -31883,13 +31960,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
31883
31960
|
});
|
|
31884
31961
|
const _hoisted_1$g = { class: "datetime-wrap" };
|
|
31885
31962
|
const _hoisted_2$d = { class: "date-wrap" };
|
|
31886
|
-
const _hoisted_3$
|
|
31963
|
+
const _hoisted_3$a = {
|
|
31887
31964
|
key: 0,
|
|
31888
31965
|
class: "time-wrap"
|
|
31889
31966
|
};
|
|
31890
|
-
const _hoisted_4$
|
|
31891
|
-
const _hoisted_5$
|
|
31892
|
-
const _sfc_main$
|
|
31967
|
+
const _hoisted_4$7 = ["id", "name", "value"];
|
|
31968
|
+
const _hoisted_5$6 = ["for"];
|
|
31969
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
31893
31970
|
__name: "DatePicker",
|
|
31894
31971
|
props: {
|
|
31895
31972
|
name: {},
|
|
@@ -31921,7 +31998,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31921
31998
|
_: 1
|
|
31922
31999
|
}, 16, ["modelValue"])
|
|
31923
32000
|
]),
|
|
31924
|
-
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
32001
|
+
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
31925
32002
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
|
|
31926
32003
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
31927
32004
|
withDirectives(createElementVNode("input", {
|
|
@@ -31930,12 +32007,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31930
32007
|
name: _ctx.name,
|
|
31931
32008
|
value: hr2,
|
|
31932
32009
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
31933
|
-
}, null, 8, _hoisted_4$
|
|
32010
|
+
}, null, 8, _hoisted_4$7), [
|
|
31934
32011
|
[vModelRadio, selectedHour.value]
|
|
31935
32012
|
]),
|
|
31936
32013
|
createElementVNode("label", {
|
|
31937
32014
|
for: `${hr2}_${_ctx.name}`
|
|
31938
|
-
}, toDisplayString(hr2), 9, _hoisted_5$
|
|
32015
|
+
}, toDisplayString(hr2), 9, _hoisted_5$6)
|
|
31939
32016
|
], 64);
|
|
31940
32017
|
}), 128))
|
|
31941
32018
|
])) : createCommentVNode("", true)
|
|
@@ -31945,10 +32022,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
31945
32022
|
});
|
|
31946
32023
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
31947
32024
|
const _hoisted_2$c = { class: "pb-025" };
|
|
31948
|
-
const _hoisted_3$
|
|
31949
|
-
const _hoisted_4$
|
|
31950
|
-
const _hoisted_5$
|
|
31951
|
-
const _sfc_main$
|
|
32025
|
+
const _hoisted_3$9 = { class: "flex gap-05 flex-wrap" };
|
|
32026
|
+
const _hoisted_4$6 = ["id", "name", "value", "checked"];
|
|
32027
|
+
const _hoisted_5$5 = ["for"];
|
|
32028
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
31952
32029
|
__name: "RadioPillsInput",
|
|
31953
32030
|
props: {
|
|
31954
32031
|
options: {},
|
|
@@ -31989,7 +32066,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
31989
32066
|
return (_ctx, _cache) => {
|
|
31990
32067
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
31991
32068
|
createElementVNode("label", _hoisted_2$c, toDisplayString(_ctx.label), 1),
|
|
31992
|
-
createElementVNode("div", _hoisted_3$
|
|
32069
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
31993
32070
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(cumputedOptions.value, ({ optioId, label, value }, index2) => {
|
|
31994
32071
|
return openBlock(), createElementBlock("div", {
|
|
31995
32072
|
class: "radio-pill",
|
|
@@ -32002,8 +32079,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
32002
32079
|
value,
|
|
32003
32080
|
checked: unref(selectedValue) === value,
|
|
32004
32081
|
onChange: handleSelect
|
|
32005
|
-
}, null, 40, _hoisted_4$
|
|
32006
|
-
createElementVNode("label", { for: optioId }, toDisplayString(label), 9, _hoisted_5$
|
|
32082
|
+
}, null, 40, _hoisted_4$6),
|
|
32083
|
+
createElementVNode("label", { for: optioId }, toDisplayString(label), 9, _hoisted_5$5)
|
|
32007
32084
|
]);
|
|
32008
32085
|
}), 128))
|
|
32009
32086
|
])
|
|
@@ -32011,17 +32088,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
32011
32088
|
};
|
|
32012
32089
|
}
|
|
32013
32090
|
});
|
|
32014
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32091
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e47ae8b5"]]);
|
|
32015
32092
|
const _hoisted_1$e = { class: "bagel-input" };
|
|
32016
32093
|
const _hoisted_2$b = {
|
|
32017
32094
|
key: 0,
|
|
32018
32095
|
class: "imagePreviewWrap"
|
|
32019
32096
|
};
|
|
32020
|
-
const _hoisted_3$
|
|
32021
|
-
const _hoisted_4$
|
|
32022
|
-
const _hoisted_5$
|
|
32023
|
-
const _hoisted_6$
|
|
32024
|
-
const _hoisted_7$
|
|
32097
|
+
const _hoisted_3$8 = ["src"];
|
|
32098
|
+
const _hoisted_4$5 = { class: "previewName" };
|
|
32099
|
+
const _hoisted_5$4 = ["src"];
|
|
32100
|
+
const _hoisted_6$3 = { class: "no-margin" };
|
|
32101
|
+
const _hoisted_7$1 = {
|
|
32025
32102
|
key: 0,
|
|
32026
32103
|
class: "imagePreviewWrap"
|
|
32027
32104
|
};
|
|
@@ -32033,7 +32110,7 @@ const _hoisted_12 = {
|
|
|
32033
32110
|
key: 0,
|
|
32034
32111
|
class: "progress"
|
|
32035
32112
|
};
|
|
32036
|
-
const _sfc_main$
|
|
32113
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
32037
32114
|
__name: "FileUpload",
|
|
32038
32115
|
props: /* @__PURE__ */ mergeModels({
|
|
32039
32116
|
label: {},
|
|
@@ -32147,17 +32224,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32147
32224
|
class: "preview",
|
|
32148
32225
|
src: file.url,
|
|
32149
32226
|
alt: ""
|
|
32150
|
-
}, null, 8, _hoisted_3$
|
|
32227
|
+
}, null, 8, _hoisted_3$8)
|
|
32151
32228
|
])) : createCommentVNode("", true),
|
|
32152
|
-
createElementVNode("div", _hoisted_4$
|
|
32229
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
32153
32230
|
_ctx.multiple ? (openBlock(), createElementBlock("img", {
|
|
32154
32231
|
key: 0,
|
|
32155
32232
|
height: "60",
|
|
32156
32233
|
class: "preview",
|
|
32157
32234
|
src: file.url,
|
|
32158
32235
|
alt: ""
|
|
32159
|
-
}, null, 8, _hoisted_5$
|
|
32160
|
-
createElementVNode("p", _hoisted_6$
|
|
32236
|
+
}, null, 8, _hoisted_5$4)) : createCommentVNode("", true),
|
|
32237
|
+
createElementVNode("p", _hoisted_6$3, toDisplayString(file.name), 1),
|
|
32161
32238
|
createVNode(unref(Btn), {
|
|
32162
32239
|
thin: "",
|
|
32163
32240
|
onClick: withModifiers(($event) => removeFile(file), ["stop"]),
|
|
@@ -32172,7 +32249,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32172
32249
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
32173
32250
|
key: fileQ.file
|
|
32174
32251
|
}, [
|
|
32175
|
-
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
32252
|
+
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
32176
32253
|
createElementVNode("img", {
|
|
32177
32254
|
class: "preview",
|
|
32178
32255
|
src: fileToUrl(fileQ.file),
|
|
@@ -32193,7 +32270,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32193
32270
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
32194
32271
|
}, [
|
|
32195
32272
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
32196
|
-
createVNode(unref(_sfc_main$
|
|
32273
|
+
createVNode(unref(_sfc_main$F), {
|
|
32197
32274
|
class: "success",
|
|
32198
32275
|
icon: "check"
|
|
32199
32276
|
})
|
|
@@ -32206,15 +32283,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
32206
32283
|
};
|
|
32207
32284
|
}
|
|
32208
32285
|
});
|
|
32209
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32286
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-1be8d7b1"]]);
|
|
32210
32287
|
const _withScopeId = (n2) => (pushScopeId("data-v-b87221d6"), n2 = n2(), popScopeId(), n2);
|
|
32211
32288
|
const _hoisted_1$d = ["title"];
|
|
32212
32289
|
const _hoisted_2$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
32213
|
-
const _hoisted_3$
|
|
32290
|
+
const _hoisted_3$7 = [
|
|
32214
32291
|
_hoisted_2$a
|
|
32215
32292
|
];
|
|
32216
|
-
const _hoisted_4$
|
|
32217
|
-
const _sfc_main$
|
|
32293
|
+
const _hoisted_4$4 = ["id"];
|
|
32294
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
32218
32295
|
__name: "ToggleInput",
|
|
32219
32296
|
props: /* @__PURE__ */ mergeModels({
|
|
32220
32297
|
label: {},
|
|
@@ -32235,14 +32312,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32235
32312
|
}, [
|
|
32236
32313
|
createElementVNode("div", {
|
|
32237
32314
|
class: normalizeClass(["switch", { checked: checked.value }])
|
|
32238
|
-
}, _hoisted_3$
|
|
32315
|
+
}, _hoisted_3$7, 2),
|
|
32239
32316
|
createElementVNode("label", null, [
|
|
32240
32317
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
32241
32318
|
withDirectives(createElementVNode("input", {
|
|
32242
32319
|
id: _ctx.id,
|
|
32243
32320
|
type: "checkbox",
|
|
32244
32321
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event)
|
|
32245
|
-
}, null, 8, _hoisted_4$
|
|
32322
|
+
}, null, 8, _hoisted_4$4), [
|
|
32246
32323
|
[vModelCheckbox, checked.value]
|
|
32247
32324
|
])
|
|
32248
32325
|
])
|
|
@@ -32250,7 +32327,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32250
32327
|
};
|
|
32251
32328
|
}
|
|
32252
32329
|
});
|
|
32253
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32330
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b87221d6"]]);
|
|
32254
32331
|
function _isPlaceholder(a2) {
|
|
32255
32332
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
32256
32333
|
}
|
|
@@ -37369,7 +37446,7 @@ const _hoisted_4$2 = {
|
|
|
37369
37446
|
};
|
|
37370
37447
|
const _hoisted_5$2 = ["x1", "y1", "x2", "y2"];
|
|
37371
37448
|
const _hoisted_6$2 = ["x1", "y1", "x2", "y2"];
|
|
37372
|
-
const _hoisted_7
|
|
37449
|
+
const _hoisted_7 = ["x1", "y1", "x2", "y2"];
|
|
37373
37450
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37374
37451
|
return _ctx.data.length ? (openBlock(), createElementBlock("g", {
|
|
37375
37452
|
key: 0,
|
|
@@ -37425,7 +37502,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37425
37502
|
y1: _ctx.canvas.y,
|
|
37426
37503
|
x2: _ctx.canvas.width - 1,
|
|
37427
37504
|
y2: _ctx.canvas.height
|
|
37428
|
-
}, null, 8, _hoisted_7
|
|
37505
|
+
}, null, 8, _hoisted_7)
|
|
37429
37506
|
])
|
|
37430
37507
|
], 8, _hoisted_1$4)) : createCommentVNode("v-if", true);
|
|
37431
37508
|
}
|
|
@@ -37689,7 +37766,7 @@ var script$2 = defineComponent({
|
|
|
37689
37766
|
return { y: y2, canvas, direction };
|
|
37690
37767
|
}
|
|
37691
37768
|
});
|
|
37692
|
-
const _hoisted_1$2
|
|
37769
|
+
const _hoisted_1$2 = {
|
|
37693
37770
|
key: 0,
|
|
37694
37771
|
class: "layer-marker"
|
|
37695
37772
|
};
|
|
@@ -37702,7 +37779,7 @@ const _hoisted_4$1 = {
|
|
|
37702
37779
|
const _hoisted_5$1 = ["x", "y", "fill"];
|
|
37703
37780
|
const _hoisted_6$1 = ["x1", "y1", "x2", "y2", "stroke", "stroke-opacity", "stroke-width", "stroke-dasharray"];
|
|
37704
37781
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37705
|
-
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("g", _hoisted_1$2
|
|
37782
|
+
return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("g", _hoisted_1$2, [
|
|
37706
37783
|
createElementVNode("text", {
|
|
37707
37784
|
x: _ctx.canvas.x + 5,
|
|
37708
37785
|
y: _ctx.y - 5,
|
|
@@ -38322,11 +38399,11 @@ const _hoisted_1$1$1 = {
|
|
|
38322
38399
|
class: "treemap",
|
|
38323
38400
|
style: { display: "flex", position: "relative" }
|
|
38324
38401
|
};
|
|
38325
|
-
const _hoisted_2$1
|
|
38326
|
-
const _hoisted_3
|
|
38327
|
-
const _hoisted_4
|
|
38328
|
-
const _hoisted_5
|
|
38329
|
-
const _hoisted_6
|
|
38402
|
+
const _hoisted_2$1 = ["width", "height", "viewBox"];
|
|
38403
|
+
const _hoisted_3 = { class: "layer-rectangles" };
|
|
38404
|
+
const _hoisted_4 = ["transform", "onMouseover"];
|
|
38405
|
+
const _hoisted_5 = ["width", "height"];
|
|
38406
|
+
const _hoisted_6 = {
|
|
38330
38407
|
x: 0 + 10,
|
|
38331
38408
|
y: 0 + 20,
|
|
38332
38409
|
"font-size": `15px`,
|
|
@@ -38341,7 +38418,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38341
38418
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
38342
38419
|
ref: "el"
|
|
38343
38420
|
}, [
|
|
38344
|
-
createElementVNode("g", _hoisted_3
|
|
38421
|
+
createElementVNode("g", _hoisted_3, [
|
|
38345
38422
|
(openBlock(true), createElementBlock(
|
|
38346
38423
|
Fragment$1,
|
|
38347
38424
|
null,
|
|
@@ -38362,27 +38439,27 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38362
38439
|
y: 0,
|
|
38363
38440
|
width: r2.width,
|
|
38364
38441
|
height: r2.height
|
|
38365
|
-
}), null, 16, _hoisted_5
|
|
38442
|
+
}), null, 16, _hoisted_5),
|
|
38366
38443
|
renderSlot(_ctx.$slots, "text", {
|
|
38367
38444
|
r: r2,
|
|
38368
38445
|
selected: _ctx.selected === i2
|
|
38369
38446
|
}, () => [
|
|
38370
38447
|
createElementVNode(
|
|
38371
38448
|
"text",
|
|
38372
|
-
_hoisted_6
|
|
38449
|
+
_hoisted_6,
|
|
38373
38450
|
toDisplayString(r2.data.name),
|
|
38374
38451
|
1
|
|
38375
38452
|
/* TEXT */
|
|
38376
38453
|
)
|
|
38377
38454
|
])
|
|
38378
38455
|
])
|
|
38379
|
-
], 42, _hoisted_4
|
|
38456
|
+
], 42, _hoisted_4);
|
|
38380
38457
|
}),
|
|
38381
38458
|
128
|
|
38382
38459
|
/* KEYED_FRAGMENT */
|
|
38383
38460
|
))
|
|
38384
38461
|
])
|
|
38385
|
-
], 8, _hoisted_2$1
|
|
38462
|
+
], 8, _hoisted_2$1)),
|
|
38386
38463
|
renderSlot(_ctx.$slots, "widgets")
|
|
38387
38464
|
]);
|
|
38388
38465
|
}
|
|
@@ -38450,13 +38527,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38450
38527
|
}
|
|
38451
38528
|
script.render = render;
|
|
38452
38529
|
script.__file = "src/components/HoverBar/index.vue";
|
|
38453
|
-
const _hoisted_1$
|
|
38530
|
+
const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("stop", {
|
|
38454
38531
|
offset: "100%",
|
|
38455
38532
|
"stop-color": "white",
|
|
38456
38533
|
"stop-opacity": "0.4"
|
|
38457
38534
|
}, null, -1);
|
|
38458
38535
|
const BRAND_COLOR = "var(--bgl-primary)";
|
|
38459
|
-
const _sfc_main$
|
|
38536
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
38460
38537
|
__name: "Lineart",
|
|
38461
38538
|
props: {
|
|
38462
38539
|
data: {},
|
|
@@ -38585,7 +38662,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38585
38662
|
"stop-color": BRAND_COLOR,
|
|
38586
38663
|
"stop-opacity": "1"
|
|
38587
38664
|
}),
|
|
38588
|
-
_hoisted_1$
|
|
38665
|
+
_hoisted_1$1
|
|
38589
38666
|
])
|
|
38590
38667
|
])
|
|
38591
38668
|
]),
|
|
@@ -38601,233 +38678,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
38601
38678
|
};
|
|
38602
38679
|
}
|
|
38603
38680
|
});
|
|
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
38681
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
38832
38682
|
__name: "Layout",
|
|
38833
38683
|
props: {
|
|
@@ -38899,10 +38749,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38899
38749
|
return withDirectives((openBlock(), createBlock(unref(Btn), {
|
|
38900
38750
|
key: i2,
|
|
38901
38751
|
to: nav2.to,
|
|
38902
|
-
class: "nav-button"
|
|
38752
|
+
class: "nav-button px-075"
|
|
38903
38753
|
}, {
|
|
38904
38754
|
default: withCtx(() => [
|
|
38905
|
-
createVNode(unref(_sfc_main$
|
|
38755
|
+
createVNode(unref(_sfc_main$F), {
|
|
38906
38756
|
icon: nav2.icon,
|
|
38907
38757
|
size: 1.4
|
|
38908
38758
|
}, null, 8, ["icon"]),
|
|
@@ -38925,57 +38775,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38925
38775
|
};
|
|
38926
38776
|
}
|
|
38927
38777
|
});
|
|
38928
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
38778
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d6bd3d8"]]);
|
|
38929
38779
|
export {
|
|
38930
|
-
_sfc_main$
|
|
38780
|
+
_sfc_main$n as Accordion,
|
|
38931
38781
|
AccordionItem,
|
|
38932
38782
|
Alert,
|
|
38933
38783
|
Avatar,
|
|
38934
38784
|
Badge,
|
|
38935
|
-
_sfc_main$
|
|
38785
|
+
_sfc_main$h as BagelForm,
|
|
38936
38786
|
BagelVue,
|
|
38937
|
-
_sfc_main$
|
|
38938
|
-
_sfc_main$
|
|
38787
|
+
_sfc_main$g as BglField,
|
|
38788
|
+
_sfc_main$h as BglForm,
|
|
38939
38789
|
BglVideo,
|
|
38940
38790
|
Btn,
|
|
38941
|
-
_sfc_main$
|
|
38791
|
+
_sfc_main$q as Card,
|
|
38942
38792
|
Carousel,
|
|
38943
38793
|
CheckInput,
|
|
38944
38794
|
Checkbox,
|
|
38945
|
-
_sfc_main$
|
|
38795
|
+
_sfc_main$7 as ColorPicker,
|
|
38946
38796
|
ComboBox,
|
|
38947
38797
|
Comments,
|
|
38948
38798
|
DataPreview,
|
|
38949
|
-
_sfc_main$
|
|
38950
|
-
_sfc_main$
|
|
38799
|
+
_sfc_main$e as DateInput,
|
|
38800
|
+
_sfc_main$6 as DatePicker,
|
|
38951
38801
|
FileUpload,
|
|
38952
|
-
_sfc_main$
|
|
38802
|
+
_sfc_main$F as Icon,
|
|
38953
38803
|
JSONInput,
|
|
38954
38804
|
_sfc_main$1 as Layout,
|
|
38955
|
-
_sfc_main$
|
|
38956
|
-
_sfc_main$
|
|
38957
|
-
_sfc_main$
|
|
38958
|
-
_sfc_main$
|
|
38959
|
-
_sfc_main$
|
|
38805
|
+
_sfc_main$2 as Lineart,
|
|
38806
|
+
_sfc_main$y as ListItem,
|
|
38807
|
+
_sfc_main$z as ListView,
|
|
38808
|
+
_sfc_main$F as MaterialIcon,
|
|
38809
|
+
_sfc_main$C as Modal,
|
|
38960
38810
|
ModalForm,
|
|
38961
38811
|
ModalPlugin,
|
|
38962
|
-
MsgTemplate,
|
|
38963
38812
|
NavBar,
|
|
38964
|
-
_sfc_main$
|
|
38965
|
-
_sfc_main$
|
|
38813
|
+
_sfc_main$v as PageTitle,
|
|
38814
|
+
_sfc_main$G as RTXEditor,
|
|
38966
38815
|
RadioPillsInput,
|
|
38967
38816
|
RichTextEditor,
|
|
38968
38817
|
RouterWrapper,
|
|
38969
|
-
_sfc_main$
|
|
38818
|
+
_sfc_main$c as SelectInput,
|
|
38970
38819
|
SidebarMenu,
|
|
38971
38820
|
TabbedLayout,
|
|
38972
38821
|
TableField,
|
|
38973
38822
|
TableSchema,
|
|
38974
38823
|
TextInput,
|
|
38975
|
-
_sfc_main$
|
|
38976
|
-
_sfc_main$q as Title,
|
|
38824
|
+
_sfc_main$o as Title,
|
|
38977
38825
|
ToggleInput,
|
|
38978
38826
|
TopBar,
|
|
38827
|
+
BagelFormUtils as bagelFormUtils,
|
|
38979
38828
|
bagelInjectionKey,
|
|
38980
38829
|
bindAttrs,
|
|
38981
38830
|
classify,
|