@bagelink/vue 0.0.360 → 0.0.374
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/Alert.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts +2 -0
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/RouterWrapper.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 +3 -0
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts +4 -2
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/index.cjs +154 -127
- package/dist/index.mjs +154 -127
- package/dist/style.css +105 -53
- package/dist/utils/BagelFormUtils.d.ts +10 -0
- package/dist/utils/BagelFormUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Alert.vue +1 -1
- package/src/components/Card.vue +51 -23
- package/src/components/RouterWrapper.vue +4 -6
- package/src/components/form/BglField.vue +65 -36
- package/src/components/form/BglForm.vue +64 -60
- package/src/components/form/inputs/DatePicker.vue +15 -18
- package/src/components/form/inputs/RichText.vue +68 -41
- package/src/components/form/inputs/SelectInput.vue +1 -1
- package/src/components/form/inputs/TextInput.vue +4 -0
- package/src/components/layout/SidebarMenu.vue +39 -20
- package/src/styles/text.css +1 -1
- package/src/styles/theme.css +1 -0
- package/src/utils/BagelFormUtils.ts +14 -0
package/dist/index.mjs
CHANGED
|
@@ -4568,7 +4568,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4568
4568
|
};
|
|
4569
4569
|
const axios = axios$1.create({
|
|
4570
4570
|
// withCredentials to true to send cookies with requests
|
|
4571
|
-
|
|
4571
|
+
headers: {
|
|
4572
|
+
"Allow-Control-Allow-Origin": "*",
|
|
4573
|
+
withCredentials: true
|
|
4574
|
+
}
|
|
4572
4575
|
});
|
|
4573
4576
|
class DataRequest {
|
|
4574
4577
|
constructor(table, bagel) {
|
|
@@ -4584,7 +4587,7 @@ class DataRequest {
|
|
|
4584
4587
|
if (!this.data_table)
|
|
4585
4588
|
throw new Error("Data table not set");
|
|
4586
4589
|
const { data: data2 } = await axios.post(
|
|
4587
|
-
|
|
4590
|
+
`/data/${this.data_table}`,
|
|
4588
4591
|
item
|
|
4589
4592
|
);
|
|
4590
4593
|
return data2;
|
|
@@ -4598,7 +4601,7 @@ class DataRequest {
|
|
|
4598
4601
|
if (!this.data_table)
|
|
4599
4602
|
throw new Error("Data table not set");
|
|
4600
4603
|
const filterStr = Object.keys(this._filter).length ? `?filter={${Object.entries(this._filter).map(([k2, v2]) => `${k2}:${v2}`).join(",")}}` : "";
|
|
4601
|
-
const url =
|
|
4604
|
+
const url = `/data/${this.data_table}${this.itemID ? `/${this.itemID}` : ""}${filterStr}`;
|
|
4602
4605
|
try {
|
|
4603
4606
|
const { data: data2 } = await axios.get(url);
|
|
4604
4607
|
return data2;
|
|
@@ -4616,18 +4619,18 @@ class DataRequest {
|
|
|
4616
4619
|
if (!this.data_table)
|
|
4617
4620
|
throw new Error("Data table not set");
|
|
4618
4621
|
const { data: data2 } = await axios.delete(
|
|
4619
|
-
|
|
4622
|
+
`/data/${this.data_table}/${this.itemID}`
|
|
4620
4623
|
);
|
|
4621
4624
|
return data2;
|
|
4622
4625
|
}
|
|
4623
4626
|
async put(updatedItem) {
|
|
4624
|
-
const { data_table, itemID
|
|
4627
|
+
const { data_table, itemID } = this;
|
|
4625
4628
|
if (!data_table)
|
|
4626
4629
|
throw new Error("Data table not set");
|
|
4627
4630
|
if (!itemID)
|
|
4628
4631
|
throw new Error("Item ID not set");
|
|
4629
4632
|
const { data: data2 } = await axios.put(
|
|
4630
|
-
|
|
4633
|
+
`/data/${data_table}/${itemID}`,
|
|
4631
4634
|
updatedItem
|
|
4632
4635
|
);
|
|
4633
4636
|
return data2;
|
|
@@ -4676,7 +4679,7 @@ class BagelAuth {
|
|
|
4676
4679
|
formData.append("username", (user == null ? void 0 : user.email) || "");
|
|
4677
4680
|
formData.append("password", (user == null ? void 0 : user.password) || "");
|
|
4678
4681
|
try {
|
|
4679
|
-
await axios.post(
|
|
4682
|
+
await axios.post("/auth/cookie/login", formData, {
|
|
4680
4683
|
headers: {
|
|
4681
4684
|
"Content-Type": "multipart/form-data",
|
|
4682
4685
|
withCredentials: true
|
|
@@ -4690,7 +4693,7 @@ class BagelAuth {
|
|
|
4690
4693
|
async logout() {
|
|
4691
4694
|
var _a2, _b;
|
|
4692
4695
|
try {
|
|
4693
|
-
await axios.post(
|
|
4696
|
+
await axios.post("/auth/cookie/logout");
|
|
4694
4697
|
} catch (err) {
|
|
4695
4698
|
(_b = (_a2 = this.bagel).onError) == null ? void 0 : _b.call(_a2, err);
|
|
4696
4699
|
console.log(err);
|
|
@@ -4698,12 +4701,12 @@ class BagelAuth {
|
|
|
4698
4701
|
this.user = null;
|
|
4699
4702
|
}
|
|
4700
4703
|
async acceptInvite(token, user) {
|
|
4701
|
-
await axios.post(
|
|
4704
|
+
await axios.post(`/auth/accept-invite/${token}`, user);
|
|
4702
4705
|
await this.login(user);
|
|
4703
4706
|
}
|
|
4704
4707
|
async register(user, errors) {
|
|
4705
4708
|
try {
|
|
4706
|
-
await axios.post(
|
|
4709
|
+
await axios.post("/auth/register", user);
|
|
4707
4710
|
return this.login(user);
|
|
4708
4711
|
} catch (err) {
|
|
4709
4712
|
console.error(err);
|
|
@@ -4719,7 +4722,8 @@ class Bagel {
|
|
|
4719
4722
|
__publicField(this, "onError");
|
|
4720
4723
|
__publicField(this, "read_table", null);
|
|
4721
4724
|
__publicField(this, "auth", new BagelAuth(this));
|
|
4722
|
-
this.host = host;
|
|
4725
|
+
this.host = host.replace(/\/$/, "");
|
|
4726
|
+
axios.defaults.baseURL = this.host;
|
|
4723
4727
|
this.onError = onError;
|
|
4724
4728
|
}
|
|
4725
4729
|
data(table) {
|
|
@@ -4734,7 +4738,7 @@ class Bagel {
|
|
|
4734
4738
|
const queryParams = Object.entries(query).map(([key, value]) => `${key}=${value}`).join("&");
|
|
4735
4739
|
endpoint = `${endpoint}?${queryParams}`;
|
|
4736
4740
|
}
|
|
4737
|
-
return axios.get(
|
|
4741
|
+
return axios.get(`/api/${endpoint}`).then(({ data: data2 }) => data2);
|
|
4738
4742
|
}
|
|
4739
4743
|
async get(endpoint, query) {
|
|
4740
4744
|
endpoint = this._endpointCleaner(endpoint);
|
|
@@ -4745,7 +4749,7 @@ class Bagel {
|
|
|
4745
4749
|
if (queryParams)
|
|
4746
4750
|
endpoint = `${endpoint}?${queryParams}`;
|
|
4747
4751
|
}
|
|
4748
|
-
const url =
|
|
4752
|
+
const url = `/${endpoint}`;
|
|
4749
4753
|
return axios.get(url).then(({ data: data2 }) => data2).catch((err) => {
|
|
4750
4754
|
var _a2;
|
|
4751
4755
|
(_a2 = this.onError) == null ? void 0 : _a2.call(this, err);
|
|
@@ -4754,7 +4758,7 @@ class Bagel {
|
|
|
4754
4758
|
}
|
|
4755
4759
|
async delete(endpoint) {
|
|
4756
4760
|
endpoint = this._endpointCleaner(endpoint);
|
|
4757
|
-
return axios.delete(
|
|
4761
|
+
return axios.delete(`/${endpoint}`).then(({ data: data2 }) => data2).catch((err) => {
|
|
4758
4762
|
var _a2;
|
|
4759
4763
|
(_a2 = this.onError) == null ? void 0 : _a2.call(this, err);
|
|
4760
4764
|
throw err;
|
|
@@ -4762,7 +4766,7 @@ class Bagel {
|
|
|
4762
4766
|
}
|
|
4763
4767
|
async put(endpoint, payload) {
|
|
4764
4768
|
endpoint = this._endpointCleaner(endpoint);
|
|
4765
|
-
return axios.put(
|
|
4769
|
+
return axios.put(`/${endpoint}`, payload).then(({ data: data2 }) => data2).catch((err) => {
|
|
4766
4770
|
var _a2;
|
|
4767
4771
|
(_a2 = this.onError) == null ? void 0 : _a2.call(this, err);
|
|
4768
4772
|
throw err;
|
|
@@ -4770,7 +4774,7 @@ class Bagel {
|
|
|
4770
4774
|
}
|
|
4771
4775
|
async patch(endpoint, payload = {}) {
|
|
4772
4776
|
endpoint = this._endpointCleaner(endpoint);
|
|
4773
|
-
return axios.patch(
|
|
4777
|
+
return axios.patch(`/${endpoint}`, payload).then(({ data: data2 }) => data2).catch((err) => {
|
|
4774
4778
|
var _a2;
|
|
4775
4779
|
(_a2 = this.onError) == null ? void 0 : _a2.call(this, err);
|
|
4776
4780
|
throw err;
|
|
@@ -4778,7 +4782,7 @@ class Bagel {
|
|
|
4778
4782
|
}
|
|
4779
4783
|
async post(endpoint, payload = {}) {
|
|
4780
4784
|
endpoint = this._endpointCleaner(endpoint);
|
|
4781
|
-
return axios.post(
|
|
4785
|
+
return axios.post(`/${endpoint}`, payload).then(({ data: data2 }) => data2).catch((err) => {
|
|
4782
4786
|
var _a2;
|
|
4783
4787
|
(_a2 = this.onError) == null ? void 0 : _a2.call(this, err);
|
|
4784
4788
|
throw err;
|
|
@@ -4787,7 +4791,7 @@ class Bagel {
|
|
|
4787
4791
|
async uploadFile(file, options) {
|
|
4788
4792
|
const formData = new FormData();
|
|
4789
4793
|
formData.append("file", file);
|
|
4790
|
-
const { data: data2 } = await axios.post(
|
|
4794
|
+
const { data: data2 } = await axios.post("/files/upload", formData, {
|
|
4791
4795
|
headers: {
|
|
4792
4796
|
"Content-Type": "multipart/form-data"
|
|
4793
4797
|
},
|
|
@@ -4905,6 +4909,17 @@ function formatString(str, format2) {
|
|
|
4905
4909
|
}
|
|
4906
4910
|
return str;
|
|
4907
4911
|
}
|
|
4912
|
+
function richText(id, label, options) {
|
|
4913
|
+
return {
|
|
4914
|
+
$el: "richtext",
|
|
4915
|
+
class: options == null ? void 0 : options.class,
|
|
4916
|
+
required: options == null ? void 0 : options.required,
|
|
4917
|
+
id,
|
|
4918
|
+
label,
|
|
4919
|
+
placeholder: options == null ? void 0 : options.placeholder,
|
|
4920
|
+
attrs: {}
|
|
4921
|
+
};
|
|
4922
|
+
}
|
|
4908
4923
|
function txtField(id, label, options) {
|
|
4909
4924
|
return {
|
|
4910
4925
|
$el: "text",
|
|
@@ -4951,6 +4966,7 @@ const BagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
4951
4966
|
__proto__: null,
|
|
4952
4967
|
frmRow,
|
|
4953
4968
|
numField,
|
|
4969
|
+
richText,
|
|
4954
4970
|
slctField,
|
|
4955
4971
|
txtField
|
|
4956
4972
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5023,7 +5039,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
5023
5039
|
}
|
|
5024
5040
|
});
|
|
5025
5041
|
const _hoisted_1$E = { class: "full-nav" };
|
|
5026
|
-
const _hoisted_2$
|
|
5042
|
+
const _hoisted_2$x = { class: "nav-scroll" };
|
|
5027
5043
|
const _hoisted_3$m = { class: "nav-links-wrapper" };
|
|
5028
5044
|
const _hoisted_4$e = { class: "tooltip" };
|
|
5029
5045
|
const _hoisted_5$b = { class: "bot-buttons-wrapper" };
|
|
@@ -5058,7 +5074,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5058
5074
|
})
|
|
5059
5075
|
], 32),
|
|
5060
5076
|
createElementVNode("div", _hoisted_1$E, [
|
|
5061
|
-
createElementVNode("div", _hoisted_2$
|
|
5077
|
+
createElementVNode("div", _hoisted_2$x, [
|
|
5062
5078
|
createElementVNode("div", _hoisted_3$m, [
|
|
5063
5079
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
5064
5080
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
@@ -5120,7 +5136,7 @@ const _hoisted_1$D = {
|
|
|
5120
5136
|
key: 0,
|
|
5121
5137
|
class: "loading"
|
|
5122
5138
|
};
|
|
5123
|
-
const _hoisted_2$
|
|
5139
|
+
const _hoisted_2$w = {
|
|
5124
5140
|
key: 1,
|
|
5125
5141
|
class: "bgl_btn-flex"
|
|
5126
5142
|
};
|
|
@@ -5211,7 +5227,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5211
5227
|
})
|
|
5212
5228
|
}, {
|
|
5213
5229
|
default: withCtx(() => [
|
|
5214
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5230
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
5215
5231
|
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$H), {
|
|
5216
5232
|
key: 0,
|
|
5217
5233
|
icon: _ctx.icon
|
|
@@ -5233,7 +5249,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
5233
5249
|
});
|
|
5234
5250
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-d09a83c5"]]);
|
|
5235
5251
|
const _hoisted_1$C = { class: "tool-bar" };
|
|
5236
|
-
const _hoisted_2$
|
|
5252
|
+
const _hoisted_2$v = { class: "modal-footer mt-3" };
|
|
5237
5253
|
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
5238
5254
|
__name: "Modal",
|
|
5239
5255
|
props: {
|
|
@@ -5297,7 +5313,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
5297
5313
|
}, null, 8, ["label"])) : createCommentVNode("", true)
|
|
5298
5314
|
]),
|
|
5299
5315
|
renderSlot(_ctx.$slots, "default"),
|
|
5300
|
-
createElementVNode("footer", _hoisted_2$
|
|
5316
|
+
createElementVNode("footer", _hoisted_2$v, [
|
|
5301
5317
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
|
|
5302
5318
|
return openBlock(), createBlock(unref(Btn), mergeProps({
|
|
5303
5319
|
key: i2,
|
|
@@ -5424,7 +5440,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5424
5440
|
});
|
|
5425
5441
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7e6899c7"]]);
|
|
5426
5442
|
const _hoisted_1$B = { class: "accordion-item" };
|
|
5427
|
-
const _hoisted_2$
|
|
5443
|
+
const _hoisted_2$u = ["aria-expanded", "aria-controls"];
|
|
5428
5444
|
const _hoisted_3$l = { class: "accordion-label" };
|
|
5429
5445
|
const _hoisted_4$d = ["id", "aria-hidden"];
|
|
5430
5446
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
@@ -5464,7 +5480,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5464
5480
|
}, [
|
|
5465
5481
|
createVNode(unref(_sfc_main$H), { icon: "expand_more" })
|
|
5466
5482
|
], 2)
|
|
5467
|
-
], 8, _hoisted_2$
|
|
5483
|
+
], 8, _hoisted_2$u),
|
|
5468
5484
|
createVNode(Transition, { name: "expand" }, {
|
|
5469
5485
|
default: withCtx(() => [
|
|
5470
5486
|
unref(open) ? (openBlock(), createElementBlock("div", {
|
|
@@ -5484,14 +5500,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5484
5500
|
});
|
|
5485
5501
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-bf74738b"]]);
|
|
5486
5502
|
const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5487
|
-
const _hoisted_2$
|
|
5503
|
+
const _hoisted_2$t = { class: "p-1" };
|
|
5488
5504
|
const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5489
5505
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
5490
5506
|
__name: "ListView",
|
|
5491
5507
|
setup(__props) {
|
|
5492
5508
|
return (_ctx, _cache) => {
|
|
5493
5509
|
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
5494
|
-
createElementVNode("div", _hoisted_2$
|
|
5510
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
5495
5511
|
renderSlot(_ctx.$slots, "header")
|
|
5496
5512
|
]),
|
|
5497
5513
|
createElementVNode("div", _hoisted_3$k, [
|
|
@@ -5502,7 +5518,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5502
5518
|
}
|
|
5503
5519
|
});
|
|
5504
5520
|
const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
|
|
5505
|
-
const _hoisted_2$
|
|
5521
|
+
const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5506
5522
|
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
5507
5523
|
__name: "ListItem",
|
|
5508
5524
|
props: {
|
|
@@ -5531,7 +5547,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5531
5547
|
createTextVNode(toDisplayString(_ctx.title) + " ", 1),
|
|
5532
5548
|
renderSlot(_ctx.$slots, "default")
|
|
5533
5549
|
]),
|
|
5534
|
-
createElementVNode("p", _hoisted_2$
|
|
5550
|
+
createElementVNode("p", _hoisted_2$s, [
|
|
5535
5551
|
createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
|
|
5536
5552
|
renderSlot(_ctx.$slots, "subtitle")
|
|
5537
5553
|
])
|
|
@@ -5543,7 +5559,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5543
5559
|
}
|
|
5544
5560
|
});
|
|
5545
5561
|
const _hoisted_1$y = { class: "page-top" };
|
|
5546
|
-
const _hoisted_2$
|
|
5562
|
+
const _hoisted_2$r = { class: "top-title" };
|
|
5547
5563
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
5548
5564
|
__name: "PageTitle",
|
|
5549
5565
|
props: {
|
|
@@ -5555,7 +5571,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5555
5571
|
setup(__props) {
|
|
5556
5572
|
return (_ctx, _cache) => {
|
|
5557
5573
|
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
5558
|
-
createElementVNode("h1", _hoisted_2$
|
|
5574
|
+
createElementVNode("h1", _hoisted_2$r, [
|
|
5559
5575
|
renderSlot(_ctx.$slots, "default"),
|
|
5560
5576
|
createTextVNode(" " + toDisplayString(__props.value), 1)
|
|
5561
5577
|
])
|
|
@@ -5564,7 +5580,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5564
5580
|
}
|
|
5565
5581
|
});
|
|
5566
5582
|
const _hoisted_1$x = { class: "table-list-wrap h-100" };
|
|
5567
|
-
const _hoisted_2$
|
|
5583
|
+
const _hoisted_2$q = { class: "infinite-wrapper" };
|
|
5568
5584
|
const _hoisted_3$j = { class: "row first-row" };
|
|
5569
5585
|
const _hoisted_4$c = ["onClick"];
|
|
5570
5586
|
const _hoisted_5$a = { class: "flex" };
|
|
@@ -5605,7 +5621,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5605
5621
|
};
|
|
5606
5622
|
return (_ctx, _cache) => {
|
|
5607
5623
|
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
5608
|
-
createElementVNode("table", _hoisted_2$
|
|
5624
|
+
createElementVNode("table", _hoisted_2$q, [
|
|
5609
5625
|
createElementVNode("thead", _hoisted_3$j, [
|
|
5610
5626
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
|
|
5611
5627
|
return openBlock(), createElementBlock("th", {
|
|
@@ -5672,7 +5688,6 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
5672
5688
|
}
|
|
5673
5689
|
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$1]]);
|
|
5674
5690
|
const _sfc_main$w = {};
|
|
5675
|
-
const _hoisted_1$v = { class: "m_overflow-hidden-x" };
|
|
5676
5691
|
function _sfc_render(_ctx, _cache) {
|
|
5677
5692
|
const _component_router_view = resolveComponent("router-view");
|
|
5678
5693
|
return openBlock(), createBlock(_component_router_view, null, {
|
|
@@ -5684,11 +5699,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
5684
5699
|
appear: ""
|
|
5685
5700
|
}, {
|
|
5686
5701
|
default: withCtx(() => [
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
}))
|
|
5691
|
-
])
|
|
5702
|
+
(openBlock(), createBlock(resolveDynamicComponent(Component), {
|
|
5703
|
+
key: route == null ? void 0 : route.params.itemID
|
|
5704
|
+
}))
|
|
5692
5705
|
]),
|
|
5693
5706
|
_: 2
|
|
5694
5707
|
}, 1024)
|
|
@@ -5697,11 +5710,11 @@ function _sfc_render(_ctx, _cache) {
|
|
|
5697
5710
|
});
|
|
5698
5711
|
}
|
|
5699
5712
|
const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render]]);
|
|
5700
|
-
const _hoisted_1$
|
|
5713
|
+
const _hoisted_1$v = {
|
|
5701
5714
|
key: 0,
|
|
5702
5715
|
class: "data"
|
|
5703
5716
|
};
|
|
5704
|
-
const _hoisted_2$
|
|
5717
|
+
const _hoisted_2$p = {
|
|
5705
5718
|
key: 0,
|
|
5706
5719
|
class: "data-row"
|
|
5707
5720
|
};
|
|
@@ -5723,7 +5736,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
5723
5736
|
const itemData = useModel(__props, "data");
|
|
5724
5737
|
return (_ctx, _cache) => {
|
|
5725
5738
|
var _a2;
|
|
5726
|
-
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5739
|
+
return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
5727
5740
|
_ctx.title ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
5728
5741
|
key: 0,
|
|
5729
5742
|
label: _ctx.title
|
|
@@ -5732,7 +5745,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
5732
5745
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
5733
5746
|
key: field.id
|
|
5734
5747
|
}, [
|
|
5735
|
-
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
5748
|
+
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
|
|
5736
5749
|
createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
|
|
5737
5750
|
createVNode(unref(_sfc_main$l), {
|
|
5738
5751
|
field,
|
|
@@ -5759,9 +5772,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
5759
5772
|
}
|
|
5760
5773
|
});
|
|
5761
5774
|
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bb2526f9"]]);
|
|
5775
|
+
const _hoisted_1$u = { class: "card_label" };
|
|
5762
5776
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
5763
5777
|
__name: "Card",
|
|
5764
5778
|
props: {
|
|
5779
|
+
label: {},
|
|
5765
5780
|
thin: { type: Boolean },
|
|
5766
5781
|
outline: { type: Boolean },
|
|
5767
5782
|
h100: { type: Boolean },
|
|
@@ -5774,13 +5789,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
5774
5789
|
return openBlock(), createElementBlock("div", {
|
|
5775
5790
|
class: normalizeClass(["bgl_card", {
|
|
5776
5791
|
thin: _ctx.thin,
|
|
5777
|
-
border: _ctx.outline,
|
|
5792
|
+
"border": _ctx.outline,
|
|
5778
5793
|
"h-100": _ctx.h100,
|
|
5779
5794
|
[_ctx.bg || ""]: _ctx.bg,
|
|
5780
5795
|
"overflow-x": _ctx.overflowX,
|
|
5781
5796
|
"overflow-y": _ctx.overflowY
|
|
5782
5797
|
}])
|
|
5783
5798
|
}, [
|
|
5799
|
+
createElementVNode("span", _hoisted_1$u, toDisplayString(_ctx.label), 1),
|
|
5784
5800
|
renderSlot(_ctx.$slots, "default")
|
|
5785
5801
|
], 2);
|
|
5786
5802
|
};
|
|
@@ -5857,6 +5873,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
5857
5873
|
}
|
|
5858
5874
|
});
|
|
5859
5875
|
const _hoisted_1$s = ["dismissable"];
|
|
5876
|
+
const _hoisted_2$o = { class: "m-0" };
|
|
5860
5877
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
5861
5878
|
__name: "Alert",
|
|
5862
5879
|
props: {
|
|
@@ -5883,7 +5900,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
5883
5900
|
size: 2,
|
|
5884
5901
|
color: color2[_ctx.type]
|
|
5885
5902
|
}, null, 8, ["icon", "color"]),
|
|
5886
|
-
createElementVNode("p",
|
|
5903
|
+
createElementVNode("p", _hoisted_2$o, toDisplayString(_ctx.message), 1),
|
|
5887
5904
|
createVNode(Btn, {
|
|
5888
5905
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true),
|
|
5889
5906
|
flat: "",
|
|
@@ -5895,7 +5912,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
5895
5912
|
};
|
|
5896
5913
|
}
|
|
5897
5914
|
});
|
|
5898
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-
|
|
5915
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-4017e821"]]);
|
|
5899
5916
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
5900
5917
|
__name: "Badge",
|
|
5901
5918
|
props: {
|
|
@@ -5928,7 +5945,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5928
5945
|
});
|
|
5929
5946
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-10743b06"]]);
|
|
5930
5947
|
const _hoisted_1$r = { class: "bgl_vid" };
|
|
5931
|
-
const _hoisted_2$
|
|
5948
|
+
const _hoisted_2$n = ["src"];
|
|
5932
5949
|
const _hoisted_3$h = ["src", "autoplay", "muted", "loop", "controls"];
|
|
5933
5950
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
5934
5951
|
__name: "BglVideo",
|
|
@@ -5977,7 +5994,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5977
5994
|
frameborder: "0",
|
|
5978
5995
|
allowfullscreen: "",
|
|
5979
5996
|
title: "Video"
|
|
5980
|
-
}, null, 12, _hoisted_2$
|
|
5997
|
+
}, null, 12, _hoisted_2$n)) : (openBlock(), createElementBlock("video", {
|
|
5981
5998
|
key: 1,
|
|
5982
5999
|
src: _ctx.src,
|
|
5983
6000
|
autoplay: _ctx.autoplay,
|
|
@@ -5996,7 +6013,7 @@ const _hoisted_1$q = {
|
|
|
5996
6013
|
key: 0,
|
|
5997
6014
|
class: "blocker"
|
|
5998
6015
|
};
|
|
5999
|
-
const _hoisted_2$
|
|
6016
|
+
const _hoisted_2$m = { class: "Handlers" };
|
|
6000
6017
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
6001
6018
|
__name: "Carousel",
|
|
6002
6019
|
props: {
|
|
@@ -6159,7 +6176,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
6159
6176
|
unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$q)) : createCommentVNode("", true),
|
|
6160
6177
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6161
6178
|
], 34),
|
|
6162
|
-
createElementVNode("div", _hoisted_2$
|
|
6179
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
6163
6180
|
createElementVNode("span", { onClick: prev }, [
|
|
6164
6181
|
renderSlot(_ctx.$slots, "prev", {}, void 0, true)
|
|
6165
6182
|
]),
|
|
@@ -6180,7 +6197,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6180
6197
|
schema: {},
|
|
6181
6198
|
modelValue: { default: () => ({}) },
|
|
6182
6199
|
onDelete: {},
|
|
6183
|
-
onSubmit: {}
|
|
6200
|
+
onSubmit: {},
|
|
6201
|
+
status: {}
|
|
6184
6202
|
},
|
|
6185
6203
|
emits: ["update:modelValue", "submit", "dirty"],
|
|
6186
6204
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -6209,17 +6227,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6209
6227
|
return (_b = (_a2 = form.value) == null ? void 0 : _a2.reportValidity) == null ? void 0 : _b.call(_a2);
|
|
6210
6228
|
};
|
|
6211
6229
|
const clearForm = () => Object.assign(data2.value, {});
|
|
6212
|
-
let formStatus = ref("idle");
|
|
6213
6230
|
const runSubmit = () => {
|
|
6214
6231
|
var _a2;
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
} catch (e) {
|
|
6221
|
-
formStatus.value = "error";
|
|
6222
|
-
}
|
|
6232
|
+
const isValid2 = validateForm();
|
|
6233
|
+
if (!isValid2)
|
|
6234
|
+
return;
|
|
6235
|
+
(_a2 = props2.onSubmit) == null ? void 0 : _a2.call(props2, data2.value);
|
|
6236
|
+
clearForm();
|
|
6223
6237
|
};
|
|
6224
6238
|
const i18nT = (val) => val;
|
|
6225
6239
|
const deleteItem = () => {
|
|
@@ -6252,7 +6266,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6252
6266
|
modelValue: data2.value,
|
|
6253
6267
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.value = $event)
|
|
6254
6268
|
}, null, 8, ["field", "modelValue"]);
|
|
6255
|
-
}), 128)) : !unref(slots).success ||
|
|
6269
|
+
}), 128)) : !unref(slots).success || _ctx.status !== "success" ? (openBlock(), createElementBlock("form", {
|
|
6256
6270
|
key: 1,
|
|
6257
6271
|
ref_key: "form",
|
|
6258
6272
|
ref: form,
|
|
@@ -6273,8 +6287,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
6273
6287
|
}), 128)),
|
|
6274
6288
|
renderSlot(_ctx.$slots, "submit")
|
|
6275
6289
|
], 544)) : createCommentVNode("", true),
|
|
6276
|
-
|
|
6277
|
-
|
|
6290
|
+
_ctx.status === "success" ? renderSlot(_ctx.$slots, "success", { key: 2 }) : createCommentVNode("", true),
|
|
6291
|
+
_ctx.status === "error" ? renderSlot(_ctx.$slots, "error", { key: 3 }) : createCommentVNode("", true)
|
|
6278
6292
|
], 64);
|
|
6279
6293
|
};
|
|
6280
6294
|
}
|
|
@@ -6297,6 +6311,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
6297
6311
|
return ToggleInput;
|
|
6298
6312
|
if (props2.field.$el === "check")
|
|
6299
6313
|
return CheckInput;
|
|
6314
|
+
if (props2.field.$el === "richtext")
|
|
6315
|
+
return _sfc_main$8;
|
|
6300
6316
|
return props2.field.$el || "div";
|
|
6301
6317
|
});
|
|
6302
6318
|
const emit2 = __emit;
|
|
@@ -6312,7 +6328,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
6312
6328
|
data2[props2.field.id] = val;
|
|
6313
6329
|
emit2("update:modelValue", data2);
|
|
6314
6330
|
},
|
|
6315
|
-
get: () =>
|
|
6331
|
+
get: () => {
|
|
6332
|
+
if (props2.field.id)
|
|
6333
|
+
return props2.modelValue[props2.field.id];
|
|
6334
|
+
return props2.field.defaultValue || "";
|
|
6335
|
+
}
|
|
6316
6336
|
});
|
|
6317
6337
|
const vIf = computed(() => {
|
|
6318
6338
|
var _a2, _b;
|
|
@@ -6371,7 +6391,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
6371
6391
|
});
|
|
6372
6392
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-e8219826"), n2 = n2(), popScopeId(), n2);
|
|
6373
6393
|
const _hoisted_1$p = ["title"];
|
|
6374
|
-
const _hoisted_2$
|
|
6394
|
+
const _hoisted_2$l = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
6375
6395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6376
6396
|
height: "24",
|
|
6377
6397
|
viewBox: "0 -960 960 960",
|
|
@@ -6380,7 +6400,7 @@ const _hoisted_2$k = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
|
|
|
6380
6400
|
/* @__PURE__ */ createElementVNode("path", { d: "M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" })
|
|
6381
6401
|
], -1));
|
|
6382
6402
|
const _hoisted_3$g = [
|
|
6383
|
-
_hoisted_2$
|
|
6403
|
+
_hoisted_2$l
|
|
6384
6404
|
];
|
|
6385
6405
|
const _hoisted_4$a = ["required", "id"];
|
|
6386
6406
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
@@ -15034,7 +15054,7 @@ Object.entries(Mo).forEach(([e, t]) => {
|
|
|
15034
15054
|
e !== "default" && (Va[e] = t);
|
|
15035
15055
|
});
|
|
15036
15056
|
const _hoisted_1$o = ["title"];
|
|
15037
|
-
const _hoisted_2$
|
|
15057
|
+
const _hoisted_2$k = { key: 0 };
|
|
15038
15058
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
15039
15059
|
__name: "DateInput",
|
|
15040
15060
|
props: {
|
|
@@ -15072,7 +15092,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
15072
15092
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
15073
15093
|
title: _ctx.label
|
|
15074
15094
|
}, [
|
|
15075
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
15095
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
15076
15096
|
createVNode(unref(Va), mergeProps({
|
|
15077
15097
|
ref_key: "datePicker",
|
|
15078
15098
|
ref: datePicker,
|
|
@@ -15086,7 +15106,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
15086
15106
|
}
|
|
15087
15107
|
});
|
|
15088
15108
|
const _hoisted_1$n = ["title"];
|
|
15089
|
-
const _hoisted_2$
|
|
15109
|
+
const _hoisted_2$j = { key: 0 };
|
|
15090
15110
|
const _hoisted_3$f = ["value", "placeholder"];
|
|
15091
15111
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
15092
15112
|
__name: "JSONInput",
|
|
@@ -15111,7 +15131,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
15111
15131
|
class: normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
15112
15132
|
title: _ctx.description
|
|
15113
15133
|
}, [
|
|
15114
|
-
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$
|
|
15134
|
+
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$j, [
|
|
15115
15135
|
createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
15116
15136
|
])) : createCommentVNode("", true),
|
|
15117
15137
|
createElementVNode("textarea", {
|
|
@@ -15126,7 +15146,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
15126
15146
|
});
|
|
15127
15147
|
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
|
|
15128
15148
|
const _hoisted_1$m = ["disabled"];
|
|
15129
|
-
const _hoisted_2$
|
|
15149
|
+
const _hoisted_2$i = ["value"];
|
|
15130
15150
|
const _hoisted_3$e = ["onClick"];
|
|
15131
15151
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
15132
15152
|
__name: "SelectInput",
|
|
@@ -15324,7 +15344,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15324
15344
|
onInput: _cache[1] || (_cache[1] = ($event) => updateOpen(true)),
|
|
15325
15345
|
value: selectedItems.value,
|
|
15326
15346
|
required: ""
|
|
15327
|
-
}, null, 40, _hoisted_2$
|
|
15347
|
+
}, null, 40, _hoisted_2$i)) : createCommentVNode("", true)
|
|
15328
15348
|
])
|
|
15329
15349
|
]),
|
|
15330
15350
|
_: 3
|
|
@@ -15332,7 +15352,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
15332
15352
|
};
|
|
15333
15353
|
}
|
|
15334
15354
|
});
|
|
15335
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
15355
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-ab376074"]]);
|
|
15336
15356
|
/*!
|
|
15337
15357
|
* vue-draggable-next v2.2.0
|
|
15338
15358
|
* (c) 2023 Anish George
|
|
@@ -17856,7 +17876,7 @@ const VueDraggableNext = defineComponent({
|
|
|
17856
17876
|
}
|
|
17857
17877
|
});
|
|
17858
17878
|
const _hoisted_1$l = ["title"];
|
|
17859
|
-
const _hoisted_2$
|
|
17879
|
+
const _hoisted_2$h = { class: "bagel-input" };
|
|
17860
17880
|
const _hoisted_3$d = { class: "table-side-scroll" };
|
|
17861
17881
|
const _hoisted_4$9 = { class: "table-header" };
|
|
17862
17882
|
const _hoisted_5$8 = { class: "table-reorder" };
|
|
@@ -17926,7 +17946,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17926
17946
|
class: "table-field-wrap",
|
|
17927
17947
|
title: _ctx.description
|
|
17928
17948
|
}, [
|
|
17929
|
-
createElementVNode("div", _hoisted_2$
|
|
17949
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
17930
17950
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
17931
17951
|
]),
|
|
17932
17952
|
createElementVNode("div", _hoisted_3$d, [
|
|
@@ -18007,7 +18027,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
18007
18027
|
});
|
|
18008
18028
|
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-cdacf10e"]]);
|
|
18009
18029
|
const _hoisted_1$k = ["title"];
|
|
18010
|
-
const _hoisted_2$
|
|
18030
|
+
const _hoisted_2$g = ["for"];
|
|
18011
18031
|
const _hoisted_3$c = ["title", "autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
|
|
18012
18032
|
const _hoisted_4$8 = ["title", "id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
18013
18033
|
const _hoisted_5$7 = { key: 2 };
|
|
@@ -18144,7 +18164,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
18144
18164
|
[vModelText, unref(inputVal)]
|
|
18145
18165
|
]),
|
|
18146
18166
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$7, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
|
|
18147
|
-
], 8, _hoisted_2$
|
|
18167
|
+
], 8, _hoisted_2$g),
|
|
18148
18168
|
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$H), {
|
|
18149
18169
|
key: 0,
|
|
18150
18170
|
class: "iconStart",
|
|
@@ -18166,7 +18186,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
18166
18186
|
};
|
|
18167
18187
|
}
|
|
18168
18188
|
});
|
|
18169
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
18189
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-df718b64"]]);
|
|
18170
18190
|
const _hoisted_1$j = { class: "primary-checkbox" };
|
|
18171
18191
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
18172
18192
|
__name: "Checkbox",
|
|
@@ -18197,7 +18217,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
18197
18217
|
});
|
|
18198
18218
|
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e4cbb088"]]);
|
|
18199
18219
|
const _hoisted_1$i = ["title"];
|
|
18200
|
-
const _hoisted_2$
|
|
18220
|
+
const _hoisted_2$f = ["id", "placeholder", "required"];
|
|
18201
18221
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
18202
18222
|
__name: "ColorPicker",
|
|
18203
18223
|
props: {
|
|
@@ -18234,7 +18254,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
18234
18254
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
18235
18255
|
class: { "no-edit": !_ctx.editMode },
|
|
18236
18256
|
required: _ctx.required
|
|
18237
|
-
}, _ctx.nativeInputAttrs), null, 16, _hoisted_2$
|
|
18257
|
+
}, _ctx.nativeInputAttrs), null, 16, _hoisted_2$f), [
|
|
18238
18258
|
[vModelText, inputVal.value]
|
|
18239
18259
|
])
|
|
18240
18260
|
])
|
|
@@ -18243,7 +18263,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
18243
18263
|
}
|
|
18244
18264
|
});
|
|
18245
18265
|
const _hoisted_1$h = { class: "datetime-wrap" };
|
|
18246
|
-
const _hoisted_2$
|
|
18266
|
+
const _hoisted_2$e = { class: "date-wrap" };
|
|
18247
18267
|
const _hoisted_3$b = {
|
|
18248
18268
|
key: 0,
|
|
18249
18269
|
class: "time-wrap"
|
|
@@ -18253,7 +18273,8 @@ const _hoisted_5$6 = ["for"];
|
|
|
18253
18273
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
18254
18274
|
__name: "DatePicker",
|
|
18255
18275
|
props: {
|
|
18256
|
-
|
|
18276
|
+
label: {},
|
|
18277
|
+
id: {},
|
|
18257
18278
|
options: {},
|
|
18258
18279
|
showTimeWrap: { type: Boolean }
|
|
18259
18280
|
},
|
|
@@ -18267,7 +18288,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
18267
18288
|
});
|
|
18268
18289
|
return (_ctx, _cache) => {
|
|
18269
18290
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
18270
|
-
createElementVNode("div", _hoisted_2$
|
|
18291
|
+
createElementVNode("div", _hoisted_2$e, [
|
|
18271
18292
|
createVNode(unref(Va), mergeProps({
|
|
18272
18293
|
inline: "",
|
|
18273
18294
|
"week-start": "0",
|
|
@@ -18287,15 +18308,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
18287
18308
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
18288
18309
|
withDirectives(createElementVNode("input", {
|
|
18289
18310
|
type: "radio",
|
|
18290
|
-
id: `${hr2}_${_ctx.
|
|
18291
|
-
name: _ctx.
|
|
18311
|
+
id: `${hr2}_${_ctx.id}`,
|
|
18312
|
+
name: _ctx.label,
|
|
18292
18313
|
value: hr2,
|
|
18293
18314
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
|
|
18294
18315
|
}, null, 8, _hoisted_4$7), [
|
|
18295
18316
|
[vModelRadio, selectedHour.value]
|
|
18296
18317
|
]),
|
|
18297
18318
|
createElementVNode("label", {
|
|
18298
|
-
for: `${hr2}_${_ctx.
|
|
18319
|
+
for: `${hr2}_${_ctx.id}`
|
|
18299
18320
|
}, toDisplayString(hr2), 9, _hoisted_5$6)
|
|
18300
18321
|
], 64);
|
|
18301
18322
|
}), 128))
|
|
@@ -18305,7 +18326,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
18305
18326
|
}
|
|
18306
18327
|
});
|
|
18307
18328
|
const _hoisted_1$g = { class: "bagel-input" };
|
|
18308
|
-
const _hoisted_2$
|
|
18329
|
+
const _hoisted_2$d = { class: "pb-025" };
|
|
18309
18330
|
const _hoisted_3$a = { class: "flex gap-05 flex-wrap" };
|
|
18310
18331
|
const _hoisted_4$6 = ["id", "name", "value", "checked"];
|
|
18311
18332
|
const _hoisted_5$5 = ["for"];
|
|
@@ -18349,7 +18370,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18349
18370
|
});
|
|
18350
18371
|
return (_ctx, _cache) => {
|
|
18351
18372
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
18352
|
-
createElementVNode("label", _hoisted_2$
|
|
18373
|
+
createElementVNode("label", _hoisted_2$d, toDisplayString(_ctx.label), 1),
|
|
18353
18374
|
createElementVNode("div", _hoisted_3$a, [
|
|
18354
18375
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(cumputedOptions.value, ({ optioId, label, value }, index2) => {
|
|
18355
18376
|
return openBlock(), createElementBlock("div", {
|
|
@@ -18374,7 +18395,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18374
18395
|
});
|
|
18375
18396
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-e47ae8b5"]]);
|
|
18376
18397
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
18377
|
-
const _hoisted_2$
|
|
18398
|
+
const _hoisted_2$c = {
|
|
18378
18399
|
key: 0,
|
|
18379
18400
|
class: "imagePreviewWrap"
|
|
18380
18401
|
};
|
|
@@ -18503,7 +18524,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18503
18524
|
return openBlock(), createElementBlock(Fragment$1, {
|
|
18504
18525
|
key: file.id
|
|
18505
18526
|
}, [
|
|
18506
|
-
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
18527
|
+
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
18507
18528
|
createElementVNode("img", {
|
|
18508
18529
|
class: "preview",
|
|
18509
18530
|
src: file.url,
|
|
@@ -18570,9 +18591,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18570
18591
|
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1be8d7b1"]]);
|
|
18571
18592
|
const _withScopeId = (n2) => (pushScopeId("data-v-b87221d6"), n2 = n2(), popScopeId(), n2);
|
|
18572
18593
|
const _hoisted_1$e = ["title"];
|
|
18573
|
-
const _hoisted_2$
|
|
18594
|
+
const _hoisted_2$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
18574
18595
|
const _hoisted_3$8 = [
|
|
18575
|
-
_hoisted_2$
|
|
18596
|
+
_hoisted_2$b
|
|
18576
18597
|
];
|
|
18577
18598
|
const _hoisted_4$4 = ["id"];
|
|
18578
18599
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
@@ -39062,7 +39083,11 @@ defineComponent({
|
|
|
39062
39083
|
}, (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2));
|
|
39063
39084
|
}
|
|
39064
39085
|
});
|
|
39065
|
-
const _hoisted_1$d = {
|
|
39086
|
+
const _hoisted_1$d = { class: "RichText" };
|
|
39087
|
+
const _hoisted_2$a = {
|
|
39088
|
+
key: 0,
|
|
39089
|
+
class: "RichText-tools"
|
|
39090
|
+
};
|
|
39066
39091
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
39067
39092
|
__name: "RichText",
|
|
39068
39093
|
props: {
|
|
@@ -39079,7 +39104,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39079
39104
|
};
|
|
39080
39105
|
const config = [
|
|
39081
39106
|
{
|
|
39082
|
-
name: "
|
|
39107
|
+
name: "Bold",
|
|
39083
39108
|
command: () => {
|
|
39084
39109
|
var _a2;
|
|
39085
39110
|
return (_a2 = focus2()) == null ? void 0 : _a2.toggleBold().run();
|
|
@@ -39091,7 +39116,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39091
39116
|
}
|
|
39092
39117
|
},
|
|
39093
39118
|
{
|
|
39094
|
-
name: "
|
|
39119
|
+
name: "Italic",
|
|
39095
39120
|
command: () => focus2().toggleItalic().run(),
|
|
39096
39121
|
icon: "format_italic",
|
|
39097
39122
|
disabled: () => {
|
|
@@ -39100,7 +39125,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39100
39125
|
}
|
|
39101
39126
|
},
|
|
39102
39127
|
{
|
|
39103
|
-
name: "
|
|
39128
|
+
name: "Strike",
|
|
39104
39129
|
command: () => focus2().toggleStrike().run(),
|
|
39105
39130
|
icon: "format_strikethrough",
|
|
39106
39131
|
disabled: () => {
|
|
@@ -39109,93 +39134,93 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39109
39134
|
}
|
|
39110
39135
|
},
|
|
39111
39136
|
{
|
|
39112
|
-
name: "
|
|
39137
|
+
name: "Code Text",
|
|
39113
39138
|
command: () => focus2().toggleCode().run(),
|
|
39114
39139
|
icon: "code"
|
|
39115
39140
|
},
|
|
39141
|
+
// {
|
|
39142
|
+
// name: 'clearMarks',
|
|
39143
|
+
// command: () => focus().unsetAllMarks(),
|
|
39144
|
+
// icon: 'clear',
|
|
39145
|
+
// },
|
|
39116
39146
|
{
|
|
39117
|
-
name: "
|
|
39118
|
-
command: () => focus2().unsetAllMarks(),
|
|
39119
|
-
icon: "clear"
|
|
39120
|
-
},
|
|
39121
|
-
{
|
|
39122
|
-
name: "clearNodes",
|
|
39147
|
+
name: "Clear",
|
|
39123
39148
|
command: () => focus2().clearNodes().run(),
|
|
39124
|
-
icon: "
|
|
39149
|
+
icon: "format_clear"
|
|
39125
39150
|
},
|
|
39126
39151
|
{
|
|
39127
|
-
name: "
|
|
39152
|
+
name: "Paragraph",
|
|
39128
39153
|
command: () => focus2().setParagraph().run(),
|
|
39129
39154
|
icon: "format_paragraph"
|
|
39130
39155
|
},
|
|
39131
39156
|
{
|
|
39132
|
-
name: "
|
|
39157
|
+
name: "Heading",
|
|
39133
39158
|
command: () => focus2().toggleHeading({ level: 1 }).run(),
|
|
39134
39159
|
icon: "format_h1",
|
|
39135
39160
|
option: { level: 1 }
|
|
39136
39161
|
},
|
|
39137
39162
|
{
|
|
39138
|
-
name: "
|
|
39163
|
+
name: "Heading",
|
|
39139
39164
|
command: () => focus2().toggleHeading({ level: 2 }).run(),
|
|
39140
39165
|
icon: "format_h2",
|
|
39141
39166
|
option: { level: 2 }
|
|
39142
39167
|
},
|
|
39143
39168
|
{
|
|
39144
|
-
name: "
|
|
39169
|
+
name: "Heading",
|
|
39145
39170
|
command: () => focus2().toggleHeading({ level: 3 }).run(),
|
|
39146
39171
|
icon: "format_h3",
|
|
39147
39172
|
option: { level: 3 }
|
|
39148
39173
|
},
|
|
39149
39174
|
{
|
|
39150
|
-
name: "
|
|
39175
|
+
name: "Heading",
|
|
39151
39176
|
command: () => focus2().toggleHeading({ level: 4 }).run(),
|
|
39152
39177
|
icon: "format_h4",
|
|
39153
39178
|
option: { level: 4 }
|
|
39154
39179
|
},
|
|
39155
39180
|
{
|
|
39156
|
-
name: "
|
|
39181
|
+
name: "Heading",
|
|
39157
39182
|
command: () => focus2().toggleHeading({ level: 5 }).run(),
|
|
39158
39183
|
icon: "format_h5",
|
|
39159
39184
|
option: { level: 5 }
|
|
39160
39185
|
},
|
|
39161
39186
|
{
|
|
39162
|
-
name: "
|
|
39187
|
+
name: "Heading",
|
|
39163
39188
|
command: () => focus2().toggleHeading({ level: 6 }).run(),
|
|
39164
39189
|
icon: "format_h6",
|
|
39165
39190
|
option: { level: 6 }
|
|
39166
39191
|
},
|
|
39167
39192
|
{
|
|
39168
|
-
name: "
|
|
39193
|
+
name: "Bullet List",
|
|
39169
39194
|
command: () => focus2().toggleBulletList().run(),
|
|
39170
39195
|
icon: "format_list_bulleted"
|
|
39171
39196
|
},
|
|
39172
39197
|
{
|
|
39173
|
-
name: "
|
|
39198
|
+
name: "Ordered List",
|
|
39174
39199
|
command: () => focus2().toggleOrderedList().run(),
|
|
39175
39200
|
icon: "format_list_numbered"
|
|
39176
39201
|
},
|
|
39177
39202
|
{
|
|
39178
|
-
name: "
|
|
39203
|
+
name: "Code Block",
|
|
39179
39204
|
command: () => focus2().toggleCodeBlock().run(),
|
|
39180
|
-
icon: "
|
|
39205
|
+
icon: "code_blocks"
|
|
39181
39206
|
},
|
|
39182
39207
|
{
|
|
39183
|
-
name: "
|
|
39208
|
+
name: "Blockquote",
|
|
39184
39209
|
command: () => focus2().toggleBlockquote().run(),
|
|
39185
39210
|
icon: "format_quote"
|
|
39186
39211
|
},
|
|
39187
39212
|
{
|
|
39188
|
-
name: "
|
|
39213
|
+
name: "Horizontal Rule",
|
|
39189
39214
|
command: () => focus2().setHorizontalRule().run(),
|
|
39190
39215
|
icon: "horizontal_rule"
|
|
39191
39216
|
},
|
|
39192
39217
|
{
|
|
39193
|
-
name: "
|
|
39218
|
+
name: "Hard Break",
|
|
39194
39219
|
command: () => focus2().setHardBreak().run(),
|
|
39195
39220
|
icon: "keyboard_return"
|
|
39196
39221
|
},
|
|
39197
39222
|
{
|
|
39198
|
-
name: "
|
|
39223
|
+
name: "Undo",
|
|
39199
39224
|
command: () => focus2().undo().run(),
|
|
39200
39225
|
icon: "undo",
|
|
39201
39226
|
disabled: () => {
|
|
@@ -39204,7 +39229,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39204
39229
|
}
|
|
39205
39230
|
},
|
|
39206
39231
|
{
|
|
39207
|
-
name: "
|
|
39232
|
+
name: "Redo",
|
|
39208
39233
|
command: () => focus2().redo().run(),
|
|
39209
39234
|
icon: "redo",
|
|
39210
39235
|
disabled: () => {
|
|
@@ -39224,8 +39249,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39224
39249
|
watch(
|
|
39225
39250
|
() => props2.modelValue,
|
|
39226
39251
|
(value) => {
|
|
39227
|
-
var _a2;
|
|
39228
|
-
|
|
39252
|
+
var _a2, _b;
|
|
39253
|
+
if (((_a2 = editor.value) == null ? void 0 : _a2.getHTML()) === value)
|
|
39254
|
+
return;
|
|
39255
|
+
(_b = editor.value) == null ? void 0 : _b.commands.setContent(value, false);
|
|
39229
39256
|
},
|
|
39230
39257
|
{ immediate: true }
|
|
39231
39258
|
);
|
|
@@ -39236,8 +39263,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39236
39263
|
});
|
|
39237
39264
|
return (_ctx, _cache) => {
|
|
39238
39265
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
39239
|
-
return openBlock(), createElementBlock(
|
|
39240
|
-
unref(editor) ? (openBlock(), createElementBlock("div",
|
|
39266
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
39267
|
+
unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
39241
39268
|
(openBlock(), createElementBlock(Fragment$1, null, renderList(config, (item) => {
|
|
39242
39269
|
var _a2;
|
|
39243
39270
|
return withDirectives(createVNode(unref(Btn), {
|
|
@@ -39253,7 +39280,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39253
39280
|
}), 64))
|
|
39254
39281
|
])) : createCommentVNode("", true),
|
|
39255
39282
|
createVNode(unref(EditorContent), { editor: unref(editor) }, null, 8, ["editor"])
|
|
39256
|
-
]
|
|
39283
|
+
]);
|
|
39257
39284
|
};
|
|
39258
39285
|
}
|
|
39259
39286
|
});
|
|
@@ -45718,7 +45745,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
45718
45745
|
};
|
|
45719
45746
|
}
|
|
45720
45747
|
});
|
|
45721
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
45748
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-65bec778"]]);
|
|
45722
45749
|
const _hoisted_1$4 = { class: "m-0 pb-025 txt14 line-height-1" };
|
|
45723
45750
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
45724
45751
|
__name: "BottomMenu",
|