@bagelink/vue 0.0.726 → 0.0.728
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/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts +1 -1
- package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/index.cjs +217 -220
- package/dist/index.mjs +218 -221
- package/dist/style.css +72 -59
- package/package.json +1 -1
- package/src/components/BglVideo.vue +6 -3
- package/src/components/form/inputs/RichText2/Toolbar.vue +30 -28
- package/src/components/form/inputs/RichText2/index.vue +38 -2
- package/src/components/form/inputs/RichText2/richtext-types.ts +3 -0
- package/src/components/lightbox/Lightbox.vue +96 -115
- package/src/components/lightbox/index.ts +18 -25
- package/src/styles/modal.css +18 -0
- package/src/components/form/inputs/RichText2/FontWithASyntaxHighlighter-Regular.woff2 +0 -0
package/dist/index.cjs
CHANGED
|
@@ -5147,33 +5147,23 @@ class Bagel {
|
|
|
5147
5147
|
return data2;
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
5150
|
-
const
|
|
5151
|
-
const _hoisted_1$N = { class: "lightbox-item" };
|
|
5150
|
+
const _hoisted_1$N = { class: "bgl-lightbox-item" };
|
|
5152
5151
|
const _hoisted_2$C = ["src"];
|
|
5153
|
-
const _hoisted_3$
|
|
5154
|
-
|
|
5155
|
-
controls: "",
|
|
5156
|
-
autoplay: ""
|
|
5157
|
-
};
|
|
5158
|
-
const _hoisted_4$h = ["src"];
|
|
5159
|
-
const _hoisted_5$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ vue.createElementVNode("track", {
|
|
5160
|
-
kind: "captions",
|
|
5161
|
-
src: "#",
|
|
5162
|
-
srclang: "en",
|
|
5163
|
-
label: "English"
|
|
5164
|
-
}, null, -1));
|
|
5165
|
-
const _hoisted_6$b = ["src", "title"];
|
|
5166
|
-
const _hoisted_7$5 = {
|
|
5152
|
+
const _hoisted_3$q = ["src", "title"];
|
|
5153
|
+
const _hoisted_4$i = {
|
|
5167
5154
|
key: 3,
|
|
5168
5155
|
class: "file-info txt-white"
|
|
5169
5156
|
};
|
|
5170
|
-
const
|
|
5171
|
-
const
|
|
5172
|
-
const _hoisted_10$2 = {
|
|
5157
|
+
const _hoisted_5$g = ["href"];
|
|
5158
|
+
const _hoisted_6$b = {
|
|
5173
5159
|
key: 0,
|
|
5174
|
-
class: "
|
|
5160
|
+
class: "navigation flex space-between w-100 absolute"
|
|
5161
|
+
};
|
|
5162
|
+
const _hoisted_7$5 = {
|
|
5163
|
+
key: 1,
|
|
5164
|
+
class: "flex justify-content-center mt-2 overflow p-1 fixed bottom start end gap-1 m_justify-content-start"
|
|
5175
5165
|
};
|
|
5176
|
-
const
|
|
5166
|
+
const _hoisted_8$3 = ["src", "onClick"];
|
|
5177
5167
|
const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
5178
5168
|
__name: "Lightbox",
|
|
5179
5169
|
setup(__props, { expose: __expose }) {
|
|
@@ -5229,87 +5219,93 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
5229
5219
|
}
|
|
5230
5220
|
__expose({ open, close: close2 });
|
|
5231
5221
|
return (_ctx, _cache) => {
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
vue.withKeys(close2, ["esc"]),
|
|
5238
|
-
vue.withKeys(prev, ["left"]),
|
|
5239
|
-
vue.withKeys(next, ["right"])
|
|
5240
|
-
],
|
|
5241
|
-
onClick: close2
|
|
5242
|
-
}, [
|
|
5243
|
-
vue.createElementVNode("div", {
|
|
5244
|
-
class: "lightbox",
|
|
5245
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
5246
|
-
}, ["stop"]))
|
|
5247
|
-
}, [
|
|
5248
|
-
vue.createVNode(vue.unref(Btn), {
|
|
5249
|
-
flat: "",
|
|
5250
|
-
class: "close-button color-white",
|
|
5251
|
-
icon: "close",
|
|
5252
|
-
onClick: close2
|
|
5253
|
-
}),
|
|
5254
|
-
vue.createElementVNode("div", _hoisted_1$N, [
|
|
5255
|
-
((_a2 = vue.unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
5222
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "fade" }, {
|
|
5223
|
+
default: vue.withCtx(() => {
|
|
5224
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
|
|
5225
|
+
return [
|
|
5226
|
+
vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5256
5227
|
key: 0,
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5228
|
+
class: "bgl-lightbox-overlay fixed w-100 h-100 flex justify-content-center z-999 inset mx-auto",
|
|
5229
|
+
onKeydown: [
|
|
5230
|
+
vue.withKeys(close2, ["esc"]),
|
|
5231
|
+
vue.withKeys(prev, ["left"]),
|
|
5232
|
+
vue.withKeys(next, ["right"])
|
|
5233
|
+
],
|
|
5234
|
+
onClick: close2
|
|
5235
|
+
}, [
|
|
5236
|
+
vue.createElementVNode("div", {
|
|
5237
|
+
class: "bgl-lightbox relative vw90 txt-center",
|
|
5238
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
5239
|
+
}, ["stop"]))
|
|
5240
|
+
}, [
|
|
5241
|
+
vue.createVNode(vue.unref(Btn), {
|
|
5242
|
+
flat: "",
|
|
5243
|
+
class: "fixed top-1 end-1 color-white",
|
|
5244
|
+
icon: "close",
|
|
5245
|
+
onClick: close2
|
|
5246
|
+
}),
|
|
5247
|
+
vue.createElementVNode("div", _hoisted_1$N, [
|
|
5248
|
+
((_a2 = vue.unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
5249
|
+
key: 0,
|
|
5250
|
+
src: (_b = vue.unref(currentItem)) == null ? void 0 : _b.src,
|
|
5251
|
+
alt: "Preview"
|
|
5252
|
+
}, null, 8, _hoisted_2$C)) : ((_c = vue.unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (vue.openBlock(), vue.createBlock(vue.unref(BglVideo), {
|
|
5253
|
+
key: 1,
|
|
5254
|
+
src: (_d = vue.unref(currentItem)) == null ? void 0 : _d.src,
|
|
5255
|
+
autoplay: "",
|
|
5256
|
+
controls: ""
|
|
5257
|
+
}, null, 8, ["src"])) : ((_e2 = vue.unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (vue.openBlock(), vue.createElementBlock("embed", {
|
|
5258
|
+
key: 2,
|
|
5259
|
+
src: normalizeURL((_f = vue.unref(currentItem)) == null ? void 0 : _f.src),
|
|
5260
|
+
type: "application/pdf",
|
|
5261
|
+
width: "100%",
|
|
5262
|
+
height: "1080",
|
|
5263
|
+
title: (_g = vue.unref(currentItem)) == null ? void 0 : _g.name
|
|
5264
|
+
}, null, 8, _hoisted_3$q)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$i, [
|
|
5265
|
+
vue.createElementVNode("p", null, "File: " + vue.toDisplayString((_h = vue.unref(currentItem)) == null ? void 0 : _h.name), 1),
|
|
5266
|
+
vue.createElementVNode("p", null, "Type: " + vue.toDisplayString((_i = vue.unref(currentItem)) == null ? void 0 : _i.type), 1),
|
|
5267
|
+
vue.createElementVNode("a", {
|
|
5268
|
+
href: (_j = vue.unref(currentItem)) == null ? void 0 : _j.src,
|
|
5269
|
+
target: "_blank"
|
|
5270
|
+
}, "Open file", 8, _hoisted_5$g)
|
|
5271
|
+
]))
|
|
5272
|
+
]),
|
|
5273
|
+
vue.unref(group).length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$b, [
|
|
5274
|
+
vue.createVNode(vue.unref(Btn), {
|
|
5275
|
+
class: "navigation-btn oval user-select-none",
|
|
5276
|
+
icon: "arrow_back",
|
|
5277
|
+
onClick: prev
|
|
5278
|
+
}),
|
|
5279
|
+
vue.createVNode(vue.unref(Btn), {
|
|
5280
|
+
class: "navigation-btn oval user-select-none",
|
|
5281
|
+
icon: "arrow_forward",
|
|
5282
|
+
onClick: next
|
|
5283
|
+
})
|
|
5284
|
+
])) : vue.createCommentVNode("", true),
|
|
5285
|
+
vue.unref(group) && vue.unref(group).length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$5, [
|
|
5286
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(group), (item, index2) => {
|
|
5287
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
5288
|
+
item.type === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
5289
|
+
key: 0,
|
|
5290
|
+
class: vue.normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: vue.unref(currentIndex) === index2 }]),
|
|
5291
|
+
src: item.src,
|
|
5292
|
+
alt: "",
|
|
5293
|
+
onClick: ($event) => selectItem(index2)
|
|
5294
|
+
}, null, 10, _hoisted_8$3)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
|
|
5295
|
+
key: 1,
|
|
5296
|
+
class: vue.normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: vue.unref(currentIndex) === index2 }]),
|
|
5297
|
+
icon: "description",
|
|
5298
|
+
onClick: ($event) => selectItem(index2)
|
|
5299
|
+
}, null, 8, ["class", "onClick"]))
|
|
5300
|
+
], 64);
|
|
5301
|
+
}), 128))
|
|
5302
|
+
])) : vue.createCommentVNode("", true)
|
|
5303
|
+
])
|
|
5304
|
+
], 32)) : vue.createCommentVNode("", true)
|
|
5305
|
+
];
|
|
5306
|
+
}),
|
|
5307
|
+
_: 1
|
|
5308
|
+
});
|
|
5313
5309
|
};
|
|
5314
5310
|
}
|
|
5315
5311
|
});
|
|
@@ -5320,46 +5316,37 @@ const _export_sfc = (sfc, props2) => {
|
|
|
5320
5316
|
}
|
|
5321
5317
|
return target;
|
|
5322
5318
|
};
|
|
5323
|
-
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
5319
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-b3a3d091"]]);
|
|
5324
5320
|
const groups = {};
|
|
5325
5321
|
const lightboxDirective = {
|
|
5326
5322
|
mounted(el, binding) {
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
name: binding.value.name || ""
|
|
5336
|
-
});
|
|
5323
|
+
el.classList.add("hover");
|
|
5324
|
+
let { group, src, type: type3, name, thumbnail } = binding.value || {};
|
|
5325
|
+
src = src || binding.value || el.getAttribute("src") || "";
|
|
5326
|
+
type3 = type3 || determineFileType(src);
|
|
5327
|
+
const item = { src, type: type3, name, thumbnail };
|
|
5328
|
+
if (group) {
|
|
5329
|
+
if (!groups[group]) groups[group] = [];
|
|
5330
|
+
groups[group].push(item);
|
|
5337
5331
|
}
|
|
5338
5332
|
el.addEventListener("click", (e) => {
|
|
5339
5333
|
e.stopPropagation();
|
|
5340
|
-
const
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
type: binding.value.type || determineFileType(binding.value.src || binding.value),
|
|
5344
|
-
name: binding.value.name || "",
|
|
5345
|
-
thumbnail: binding.value.thumbnail || ""
|
|
5346
|
-
};
|
|
5347
|
-
const lightboxInstance2 = createLightboxInstance();
|
|
5348
|
-
if (!lightboxInstance2 || !lightboxInstance2.open) return;
|
|
5349
|
-
if (binding.value.group) {
|
|
5350
|
-
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5351
|
-
groups[binding.value.group].push(item);
|
|
5352
|
-
}
|
|
5353
|
-
const open = lightboxInstance2.open;
|
|
5334
|
+
const lightboxInstance = createLightboxInstance();
|
|
5335
|
+
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5336
|
+
const open = lightboxInstance.open;
|
|
5354
5337
|
open(item, groups[group]);
|
|
5355
5338
|
});
|
|
5339
|
+
},
|
|
5340
|
+
unmounted(el, binding) {
|
|
5356
5341
|
}
|
|
5357
5342
|
};
|
|
5343
|
+
const youtubeRegex = /youtube\.com|youtu\.be/;
|
|
5344
|
+
const vimeoRegex = /vimeo\.com/;
|
|
5358
5345
|
function determineFileType(url) {
|
|
5359
5346
|
var _a2;
|
|
5360
5347
|
const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
5361
5348
|
if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
|
|
5362
|
-
if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
|
|
5349
|
+
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
5363
5350
|
if (["pdf"].includes(extension)) return "pdf";
|
|
5364
5351
|
return "unknown";
|
|
5365
5352
|
}
|
|
@@ -5787,8 +5774,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
5787
5774
|
});
|
|
5788
5775
|
const _hoisted_1$M = { class: "full-nav" };
|
|
5789
5776
|
const _hoisted_2$B = { class: "nav-scroll" };
|
|
5790
|
-
const _hoisted_3$
|
|
5791
|
-
const _hoisted_4$
|
|
5777
|
+
const _hoisted_3$p = { class: "nav-links-wrapper" };
|
|
5778
|
+
const _hoisted_4$h = { class: "tooltip" };
|
|
5792
5779
|
const _hoisted_5$f = { class: "bot-buttons-wrapper" };
|
|
5793
5780
|
const _hoisted_6$a = { class: "tooltip" };
|
|
5794
5781
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -5823,7 +5810,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
5823
5810
|
], 32),
|
|
5824
5811
|
vue.createElementVNode("div", _hoisted_1$M, [
|
|
5825
5812
|
vue.createElementVNode("div", _hoisted_2$B, [
|
|
5826
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
5813
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
|
5827
5814
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
|
|
5828
5815
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
5829
5816
|
key: link.label,
|
|
@@ -5838,7 +5825,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
5838
5825
|
vue.createVNode(vue.unref(_sfc_main$Q), {
|
|
5839
5826
|
icon: link.icon
|
|
5840
5827
|
}, null, 8, ["icon"]),
|
|
5841
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
5828
|
+
vue.createElementVNode("div", _hoisted_4$h, vue.toDisplayString(link.label), 1)
|
|
5842
5829
|
]),
|
|
5843
5830
|
_: 2
|
|
5844
5831
|
}, 1032, ["to", "onClick"]);
|
|
@@ -6004,7 +5991,7 @@ const _hoisted_2$z = {
|
|
|
6004
5991
|
key: 1,
|
|
6005
5992
|
class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
|
|
6006
5993
|
};
|
|
6007
|
-
const _hoisted_3$
|
|
5994
|
+
const _hoisted_3$o = {
|
|
6008
5995
|
key: 2,
|
|
6009
5996
|
class: "modal-footer mt-1"
|
|
6010
5997
|
};
|
|
@@ -6097,7 +6084,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6097
6084
|
})
|
|
6098
6085
|
])),
|
|
6099
6086
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
6100
|
-
vue.unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$
|
|
6087
|
+
vue.unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$o, [
|
|
6101
6088
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i2) => {
|
|
6102
6089
|
return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
|
|
6103
6090
|
key: i2,
|
|
@@ -6232,8 +6219,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
6232
6219
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
|
|
6233
6220
|
const _hoisted_1$J = { class: "accordion-item" };
|
|
6234
6221
|
const _hoisted_2$y = ["aria-expanded", "aria-controls"];
|
|
6235
|
-
const _hoisted_3$
|
|
6236
|
-
const _hoisted_4$
|
|
6222
|
+
const _hoisted_3$n = { class: "accordion-label" };
|
|
6223
|
+
const _hoisted_4$g = ["id", "aria-hidden"];
|
|
6237
6224
|
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
6238
6225
|
__name: "AccordionItem",
|
|
6239
6226
|
props: {
|
|
@@ -6279,7 +6266,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
6279
6266
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle())
|
|
6280
6267
|
}, [
|
|
6281
6268
|
vue.renderSlot(_ctx.$slots, "head", {}, () => [
|
|
6282
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
6269
|
+
vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.label), 1)
|
|
6283
6270
|
], true),
|
|
6284
6271
|
vue.createElementVNode("div", {
|
|
6285
6272
|
class: vue.normalizeClass(["accordion-icon", { open: vue.unref(isOpen) }])
|
|
@@ -6296,7 +6283,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
6296
6283
|
"aria-hidden": vue.unref(isOpen) ? "false" : "true"
|
|
6297
6284
|
}, [
|
|
6298
6285
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6299
|
-
], 8, _hoisted_4$
|
|
6286
|
+
], 8, _hoisted_4$g)) : vue.createCommentVNode("", true)
|
|
6300
6287
|
]),
|
|
6301
6288
|
_: 3
|
|
6302
6289
|
})
|
|
@@ -6308,13 +6295,13 @@ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "d
|
|
|
6308
6295
|
const _sfc_main$K = {};
|
|
6309
6296
|
const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
6310
6297
|
const _hoisted_2$x = { class: "p-1" };
|
|
6311
|
-
const _hoisted_3$
|
|
6298
|
+
const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
6312
6299
|
function _sfc_render$2(_ctx, _cache) {
|
|
6313
6300
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
6314
6301
|
vue.createElementVNode("div", _hoisted_2$x, [
|
|
6315
6302
|
vue.renderSlot(_ctx.$slots, "header")
|
|
6316
6303
|
]),
|
|
6317
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6304
|
+
vue.createElementVNode("div", _hoisted_3$m, [
|
|
6318
6305
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6319
6306
|
])
|
|
6320
6307
|
]);
|
|
@@ -6711,10 +6698,10 @@ const _hoisted_1$F = {
|
|
|
6711
6698
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
6712
6699
|
};
|
|
6713
6700
|
const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
|
|
6714
|
-
const _hoisted_3$
|
|
6701
|
+
const _hoisted_3$l = [
|
|
6715
6702
|
_hoisted_2$u
|
|
6716
6703
|
];
|
|
6717
|
-
const _hoisted_4$
|
|
6704
|
+
const _hoisted_4$f = { class: "infinite-wrapper" };
|
|
6718
6705
|
const _hoisted_5$e = { class: "row first-row" };
|
|
6719
6706
|
const _hoisted_6$9 = { key: 0 };
|
|
6720
6707
|
const _hoisted_7$4 = ["onClick"];
|
|
@@ -6860,8 +6847,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
6860
6847
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
|
|
6861
6848
|
class: { "loading-table": loading.value }
|
|
6862
6849
|
}), [
|
|
6863
|
-
loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, _hoisted_3$
|
|
6864
|
-
vue.createElementVNode("table", _hoisted_4$
|
|
6850
|
+
loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, _hoisted_3$l)) : (vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.mergeProps({ key: 1 }, vue.unref(wrapperProps))), [
|
|
6851
|
+
vue.createElementVNode("table", _hoisted_4$f, [
|
|
6865
6852
|
vue.createElementVNode("thead", _hoisted_5$e, [
|
|
6866
6853
|
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_6$9, [
|
|
6867
6854
|
vue.createElementVNode("input", {
|
|
@@ -6982,8 +6969,8 @@ const _hoisted_2$t = {
|
|
|
6982
6969
|
key: 0,
|
|
6983
6970
|
class: "data-row m_py-05"
|
|
6984
6971
|
};
|
|
6985
|
-
const _hoisted_3$
|
|
6986
|
-
const _hoisted_4$
|
|
6972
|
+
const _hoisted_3$k = { class: "key" };
|
|
6973
|
+
const _hoisted_4$e = { class: "m-0" };
|
|
6987
6974
|
const _hoisted_5$d = { key: 1 };
|
|
6988
6975
|
const _hoisted_6$8 = {
|
|
6989
6976
|
key: 0,
|
|
@@ -7041,8 +7028,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7041
7028
|
key: field.id
|
|
7042
7029
|
}, [
|
|
7043
7030
|
vue.unref(iffer)(field, itemData.value) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$t, [
|
|
7044
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
7045
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
7031
|
+
vue.createElementVNode("div", _hoisted_3$k, [
|
|
7032
|
+
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
|
|
7046
7033
|
]),
|
|
7047
7034
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
7048
7035
|
modelValue: itemData.value,
|
|
@@ -7280,10 +7267,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7280
7267
|
}
|
|
7281
7268
|
);
|
|
7282
7269
|
const embedType = vue.computed(() => {
|
|
7283
|
-
const
|
|
7284
|
-
if (
|
|
7285
|
-
const
|
|
7286
|
-
if (
|
|
7270
|
+
const youtubeRegex2 = /youtube\.com|youtu\.be/;
|
|
7271
|
+
if (youtubeRegex2.test(props2.src || "")) return "YouTube";
|
|
7272
|
+
const vimeoRegex2 = /vimeo\.com/;
|
|
7273
|
+
if (vimeoRegex2.test(props2.src || "")) return "Vimeo";
|
|
7287
7274
|
return null;
|
|
7288
7275
|
});
|
|
7289
7276
|
const videoUrl = vue.computed(() => {
|
|
@@ -7291,17 +7278,19 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7291
7278
|
if (embedType.value) {
|
|
7292
7279
|
if (embedType.value === "YouTube") {
|
|
7293
7280
|
const videoId = (_c = (_b = (_a2 = props2.src) == null ? void 0 : _a2.split(/v=|youtu\.be\//)[1]) == null ? void 0 : _b.split("&")) == null ? void 0 : _c[0];
|
|
7294
|
-
|
|
7281
|
+
const queryParams = new URLSearchParams({
|
|
7282
|
+
autoplay: props2.autoplay ? "1" : "0"
|
|
7283
|
+
});
|
|
7284
|
+
return `https://www.youtube.com/embed/${videoId}?${queryParams}`;
|
|
7295
7285
|
}
|
|
7296
7286
|
if (embedType.value === "Vimeo") {
|
|
7297
|
-
const
|
|
7298
|
-
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(
|
|
7287
|
+
const vimeoRegex2 = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
|
|
7288
|
+
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(vimeoRegex2)) == null ? void 0 : _e2[3];
|
|
7299
7289
|
return `https://player.vimeo.com/video/${videoId}`;
|
|
7300
7290
|
}
|
|
7301
7291
|
}
|
|
7302
7292
|
return props2.src;
|
|
7303
7293
|
});
|
|
7304
|
-
console.log("Video URL:", videoUrl.value);
|
|
7305
7294
|
return (_ctx, _cache) => {
|
|
7306
7295
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
7307
7296
|
class: vue.normalizeClass(["bgl_vid", { vid_empty: !_ctx.src }])
|
|
@@ -7312,7 +7301,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7312
7301
|
style: vue.normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
7313
7302
|
frameborder: "0",
|
|
7314
7303
|
allowfullscreen: "",
|
|
7315
|
-
title: "Video"
|
|
7304
|
+
title: "Video",
|
|
7305
|
+
allow: "autoplay"
|
|
7316
7306
|
}, null, 12, _hoisted_1$z)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
7317
7307
|
key: 1,
|
|
7318
7308
|
src: _ctx.src,
|
|
@@ -7327,7 +7317,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7327
7317
|
};
|
|
7328
7318
|
}
|
|
7329
7319
|
});
|
|
7330
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
7320
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-8495afe2"]]);
|
|
7331
7321
|
const _hoisted_1$y = {
|
|
7332
7322
|
key: 0,
|
|
7333
7323
|
class: "blocker"
|
|
@@ -7939,7 +7929,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
7939
7929
|
});
|
|
7940
7930
|
const _hoisted_1$u = ["title"];
|
|
7941
7931
|
const _hoisted_2$o = ["id", "required"];
|
|
7942
|
-
const _hoisted_3$
|
|
7932
|
+
const _hoisted_3$j = ["for"];
|
|
7943
7933
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
7944
7934
|
__name: "CheckInput",
|
|
7945
7935
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -7979,7 +7969,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7979
7969
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
7980
7970
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
7981
7971
|
], true)
|
|
7982
|
-
], 8, _hoisted_3$
|
|
7972
|
+
], 8, _hoisted_3$j)
|
|
7983
7973
|
], 10, _hoisted_1$u);
|
|
7984
7974
|
};
|
|
7985
7975
|
}
|
|
@@ -16490,7 +16480,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
16490
16480
|
});
|
|
16491
16481
|
const _hoisted_1$s = ["title"];
|
|
16492
16482
|
const _hoisted_2$m = { key: 0 };
|
|
16493
|
-
const _hoisted_3$
|
|
16483
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
16494
16484
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
16495
16485
|
__name: "JSONInput",
|
|
16496
16486
|
props: {
|
|
@@ -16522,7 +16512,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
16522
16512
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
16523
16513
|
placeholder: _ctx.placeholder,
|
|
16524
16514
|
onInput: handleInput
|
|
16525
|
-
}, null, 42, _hoisted_3$
|
|
16515
|
+
}, null, 42, _hoisted_3$i)
|
|
16526
16516
|
], 10, _hoisted_1$s);
|
|
16527
16517
|
};
|
|
16528
16518
|
}
|
|
@@ -16530,8 +16520,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
16530
16520
|
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
16531
16521
|
const _hoisted_1$r = { class: "flex gap-05" };
|
|
16532
16522
|
const _hoisted_2$l = ["disabled"];
|
|
16533
|
-
const _hoisted_3$
|
|
16534
|
-
const _hoisted_4$
|
|
16523
|
+
const _hoisted_3$h = { key: 1 };
|
|
16524
|
+
const _hoisted_4$d = {
|
|
16535
16525
|
key: 2,
|
|
16536
16526
|
class: "ms-auto ps-05 me-05"
|
|
16537
16527
|
};
|
|
@@ -16749,8 +16739,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
16749
16739
|
key: 0,
|
|
16750
16740
|
icon: _ctx.icon
|
|
16751
16741
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
16752
|
-
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$
|
|
16753
|
-
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
16742
|
+
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$h, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
16743
|
+
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, [
|
|
16754
16744
|
vue.createVNode(vue.unref(Btn), {
|
|
16755
16745
|
flat: "",
|
|
16756
16746
|
thin: "",
|
|
@@ -19265,8 +19255,8 @@ const VueDraggableNext = vue.defineComponent({
|
|
|
19265
19255
|
});
|
|
19266
19256
|
const _hoisted_1$q = ["title"];
|
|
19267
19257
|
const _hoisted_2$k = { class: "bagel-input" };
|
|
19268
|
-
const _hoisted_3$
|
|
19269
|
-
const _hoisted_4$
|
|
19258
|
+
const _hoisted_3$g = { class: "table-side-scroll" };
|
|
19259
|
+
const _hoisted_4$c = { class: "table-header" };
|
|
19270
19260
|
const _hoisted_5$b = { class: "table-reorder" };
|
|
19271
19261
|
const _hoisted_6$6 = { class: "table-action" };
|
|
19272
19262
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -19337,8 +19327,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
19337
19327
|
vue.createElementVNode("div", _hoisted_2$k, [
|
|
19338
19328
|
vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
19339
19329
|
]),
|
|
19340
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19341
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
19330
|
+
vue.createElementVNode("div", _hoisted_3$g, [
|
|
19331
|
+
vue.createElementVNode("div", _hoisted_4$c, [
|
|
19342
19332
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
19343
19333
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19344
19334
|
key: `${field.fieldname}header`,
|
|
@@ -19416,8 +19406,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
19416
19406
|
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-515f5dc9"]]);
|
|
19417
19407
|
const _hoisted_1$p = ["title"];
|
|
19418
19408
|
const _hoisted_2$j = ["for"];
|
|
19419
|
-
const _hoisted_3$
|
|
19420
|
-
const _hoisted_4$
|
|
19409
|
+
const _hoisted_3$f = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
19410
|
+
const _hoisted_4$b = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
19421
19411
|
const _hoisted_5$a = { key: 2 };
|
|
19422
19412
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
19423
19413
|
__name: "TextInput",
|
|
@@ -19511,7 +19501,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19511
19501
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
19512
19502
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
19513
19503
|
onInput: updateInputVal
|
|
19514
|
-
}), null, 16, _hoisted_3$
|
|
19504
|
+
}), null, 16, _hoisted_3$f)), [
|
|
19515
19505
|
[
|
|
19516
19506
|
vue.vModelDynamic,
|
|
19517
19507
|
vue.unref(inputVal),
|
|
@@ -19535,7 +19525,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19535
19525
|
onInput: updateInputVal,
|
|
19536
19526
|
onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
|
|
19537
19527
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
|
|
19538
|
-
}), null, 16, _hoisted_4$
|
|
19528
|
+
}), null, 16, _hoisted_4$b)), [
|
|
19539
19529
|
[vue.vModelText, vue.unref(inputVal)]
|
|
19540
19530
|
]),
|
|
19541
19531
|
_ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$a, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
|
|
@@ -19628,11 +19618,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
19628
19618
|
});
|
|
19629
19619
|
const _hoisted_1$m = { class: "datetime-wrap" };
|
|
19630
19620
|
const _hoisted_2$h = { class: "date-wrap" };
|
|
19631
|
-
const _hoisted_3$
|
|
19621
|
+
const _hoisted_3$e = {
|
|
19632
19622
|
key: 0,
|
|
19633
19623
|
class: "time-wrap"
|
|
19634
19624
|
};
|
|
19635
|
-
const _hoisted_4$
|
|
19625
|
+
const _hoisted_4$a = ["id", "name", "value"];
|
|
19636
19626
|
const _hoisted_5$9 = ["for"];
|
|
19637
19627
|
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
19638
19628
|
__name: "DatePicker",
|
|
@@ -19682,7 +19672,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19682
19672
|
_: 1
|
|
19683
19673
|
}, 16, ["modelValue", "allowed-dates", "disabled-dates"])
|
|
19684
19674
|
]),
|
|
19685
|
-
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
19675
|
+
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
|
|
19686
19676
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hours), (hr2) => {
|
|
19687
19677
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: hr2 }, [
|
|
19688
19678
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -19691,7 +19681,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19691
19681
|
type: "radio",
|
|
19692
19682
|
name: _ctx.label,
|
|
19693
19683
|
value: hr2
|
|
19694
|
-
}, null, 8, _hoisted_4$
|
|
19684
|
+
}, null, 8, _hoisted_4$a), [
|
|
19695
19685
|
[vue.vModelRadio, selectedHour.value]
|
|
19696
19686
|
]),
|
|
19697
19687
|
vue.createElementVNode("label", {
|
|
@@ -19706,8 +19696,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19706
19696
|
});
|
|
19707
19697
|
const _hoisted_1$l = { class: "bagel-input" };
|
|
19708
19698
|
const _hoisted_2$g = { class: "pb-025" };
|
|
19709
|
-
const _hoisted_3$
|
|
19710
|
-
const _hoisted_4$
|
|
19699
|
+
const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
|
|
19700
|
+
const _hoisted_4$9 = ["id", "name", "value", "checked"];
|
|
19711
19701
|
const _hoisted_5$8 = ["for"];
|
|
19712
19702
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
19713
19703
|
__name: "RadioPillsInput",
|
|
@@ -19752,7 +19742,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19752
19742
|
return (_ctx, _cache) => {
|
|
19753
19743
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
|
|
19754
19744
|
vue.createElementVNode("label", _hoisted_2$g, vue.toDisplayString(_ctx.label), 1),
|
|
19755
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19745
|
+
vue.createElementVNode("div", _hoisted_3$d, [
|
|
19756
19746
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
|
|
19757
19747
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19758
19748
|
key: index2,
|
|
@@ -19765,7 +19755,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19765
19755
|
value: getValue(option2),
|
|
19766
19756
|
checked: vue.unref(selectedValue) === getValue(option2),
|
|
19767
19757
|
onChange: handleSelect
|
|
19768
|
-
}, null, 40, _hoisted_4$
|
|
19758
|
+
}, null, 40, _hoisted_4$9),
|
|
19769
19759
|
vue.createElementVNode("label", {
|
|
19770
19760
|
for: `${_ctx.id}-${getValue(option2)}`
|
|
19771
19761
|
}, vue.toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
|
|
@@ -19782,8 +19772,8 @@ const _hoisted_2$f = {
|
|
|
19782
19772
|
key: 0,
|
|
19783
19773
|
class: "bgl-multi-preview"
|
|
19784
19774
|
};
|
|
19785
|
-
const _hoisted_3$
|
|
19786
|
-
const _hoisted_4$
|
|
19775
|
+
const _hoisted_3$c = ["src"];
|
|
19776
|
+
const _hoisted_4$8 = { class: "m-0" };
|
|
19787
19777
|
const _hoisted_5$7 = ["width", "src"];
|
|
19788
19778
|
const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
|
|
19789
19779
|
const _hoisted_7$2 = {
|
|
@@ -19966,14 +19956,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19966
19956
|
class: "multi-preview",
|
|
19967
19957
|
src: file.url,
|
|
19968
19958
|
alt: ""
|
|
19969
|
-
}, null, 8, _hoisted_3$
|
|
19959
|
+
}, null, 8, _hoisted_3$c)), [
|
|
19970
19960
|
[_directive_lightbox]
|
|
19971
19961
|
]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
|
|
19972
19962
|
key: 1,
|
|
19973
19963
|
icon: "draft",
|
|
19974
19964
|
class: "multi-preview"
|
|
19975
19965
|
})),
|
|
19976
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
19966
|
+
vue.createElementVNode("p", _hoisted_4$8, vue.toDisplayString(file.name), 1),
|
|
19977
19967
|
vue.createVNode(vue.unref(Btn), {
|
|
19978
19968
|
thin: "",
|
|
19979
19969
|
flat: "",
|
|
@@ -20082,10 +20072,10 @@ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a1
|
|
|
20082
20072
|
const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
|
|
20083
20073
|
const _hoisted_1$j = ["title"];
|
|
20084
20074
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
|
20085
|
-
const _hoisted_3$
|
|
20075
|
+
const _hoisted_3$b = [
|
|
20086
20076
|
_hoisted_2$e
|
|
20087
20077
|
];
|
|
20088
|
-
const _hoisted_4$
|
|
20078
|
+
const _hoisted_4$7 = ["id", "required"];
|
|
20089
20079
|
const _hoisted_5$6 = ["for"];
|
|
20090
20080
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
20091
20081
|
__name: "ToggleInput",
|
|
@@ -20115,13 +20105,13 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
20115
20105
|
}, [
|
|
20116
20106
|
vue.createElementVNode("div", {
|
|
20117
20107
|
class: vue.normalizeClass(["switch", { checked: checked.value }])
|
|
20118
|
-
}, _hoisted_3$
|
|
20108
|
+
}, _hoisted_3$b, 2),
|
|
20119
20109
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
20120
20110
|
id: inputId.value,
|
|
20121
20111
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
20122
20112
|
type: "checkbox",
|
|
20123
20113
|
required: _ctx.required
|
|
20124
|
-
}, null, 8, _hoisted_4$
|
|
20114
|
+
}, null, 8, _hoisted_4$7), [
|
|
20125
20115
|
[vue.vModelCheckbox, checked.value]
|
|
20126
20116
|
]),
|
|
20127
20117
|
vue.createElementVNode("label", { for: inputId.value }, [
|
|
@@ -46288,8 +46278,8 @@ function parsePhoneNumber() {
|
|
|
46288
46278
|
}
|
|
46289
46279
|
const _hoisted_1$h = ["aria-expanded"];
|
|
46290
46280
|
const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
|
|
46291
|
-
const _hoisted_3$
|
|
46292
|
-
const _hoisted_4$
|
|
46281
|
+
const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
|
|
46282
|
+
const _hoisted_4$6 = { class: "tel-country" };
|
|
46293
46283
|
const _hoisted_5$5 = { key: 1 };
|
|
46294
46284
|
const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
46295
46285
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -46589,9 +46579,9 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
46589
46579
|
key: 0,
|
|
46590
46580
|
country: pb.iso2
|
|
46591
46581
|
}, null, 8, ["country"])) : vue.createCommentVNode("", true),
|
|
46592
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
46582
|
+
vue.createElementVNode("p", _hoisted_4$6, vue.toDisplayString(pb.name), 1),
|
|
46593
46583
|
computedDropDownOptions.value.showDialCodeInList ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$5, " +" + vue.toDisplayString(pb.dialCode), 1)) : vue.createCommentVNode("", true)
|
|
46594
|
-
], 40, _hoisted_3$
|
|
46584
|
+
], 40, _hoisted_3$a);
|
|
46595
46585
|
}), 128))
|
|
46596
46586
|
], 2)
|
|
46597
46587
|
])
|
|
@@ -47389,23 +47379,22 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
47389
47379
|
emits: ["action"],
|
|
47390
47380
|
setup(__props, { emit: __emit }) {
|
|
47391
47381
|
const emit2 = __emit;
|
|
47392
|
-
vue.ref(null);
|
|
47393
|
-
vue.ref(null);
|
|
47394
47382
|
const toolbarOptions = [
|
|
47395
47383
|
{ name: "separator" },
|
|
47396
|
-
{ name: "bold", icon: "format_bold" },
|
|
47397
|
-
{ name: "italic", icon: "format_italic" },
|
|
47398
|
-
{ name: "underline", icon: "format_underlined" },
|
|
47384
|
+
{ name: "bold", label: "Bold", icon: "format_bold" },
|
|
47385
|
+
{ name: "italic", label: "Italic", icon: "format_italic" },
|
|
47386
|
+
{ name: "underline", label: "Underline", icon: "format_underlined" },
|
|
47399
47387
|
{ name: "separator" },
|
|
47400
|
-
{ name: "orderedList", icon: "format_list_numbered" },
|
|
47401
|
-
{ name: "unorderedList", icon: "format_list_bulleted" },
|
|
47388
|
+
{ name: "orderedList", label: "Ordered List", icon: "format_list_numbered" },
|
|
47389
|
+
{ name: "unorderedList", label: "Unordered List", icon: "format_list_bulleted" },
|
|
47402
47390
|
{ name: "separator" },
|
|
47403
|
-
{ name: "link", icon: "add_link" },
|
|
47404
|
-
{ name: "image", icon: "add_photo_alternate" },
|
|
47405
|
-
{ name: "youtube", icon: "youtube_activity" },
|
|
47391
|
+
{ name: "link", label: "Link", icon: "add_link" },
|
|
47392
|
+
{ name: "image", label: "Image", icon: "add_photo_alternate" },
|
|
47393
|
+
{ name: "youtube", label: "YouTube", icon: "youtube_activity" },
|
|
47406
47394
|
{ name: "separator" },
|
|
47407
|
-
{ name: "splitView", icon: "code" },
|
|
47408
|
-
{ name: "clear", icon: "format_clear" }
|
|
47395
|
+
{ name: "splitView", label: "Split View", icon: "code" },
|
|
47396
|
+
{ name: "clear", label: "Clear Formatting", icon: "format_clear" },
|
|
47397
|
+
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
47409
47398
|
];
|
|
47410
47399
|
function handleSelectChange(selectedOption) {
|
|
47411
47400
|
emit2("action", "formatBlock", selectedOption);
|
|
@@ -47424,12 +47413,12 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
47424
47413
|
key: action.name,
|
|
47425
47414
|
thin: "",
|
|
47426
47415
|
flat: "",
|
|
47427
|
-
class: "rounded",
|
|
47416
|
+
class: vue.normalizeClass([action.class, "rounded"]),
|
|
47428
47417
|
"aria-label": action.name,
|
|
47429
47418
|
icon: action.icon,
|
|
47430
47419
|
onClick: ($event) => emit2("action", action.name)
|
|
47431
|
-
}, null, 8, ["aria-label", "icon", "onClick"])), [
|
|
47432
|
-
[_directive_tooltip, action.
|
|
47420
|
+
}, null, 8, ["class", "aria-label", "icon", "onClick"])), [
|
|
47421
|
+
[_directive_tooltip, action.label]
|
|
47433
47422
|
]) : vue.createCommentVNode("", true),
|
|
47434
47423
|
action.name === "separator" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
47435
47424
|
key: `separator-${index2}`,
|
|
@@ -47614,7 +47603,9 @@ function createTable() {
|
|
|
47614
47603
|
}
|
|
47615
47604
|
}
|
|
47616
47605
|
const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
|
|
47617
|
-
const _hoisted_2$b = {
|
|
47606
|
+
const _hoisted_2$b = { class: "editor-container flex flex-stretch gap-1 m_column" };
|
|
47607
|
+
const _hoisted_3$9 = { class: "content-area rounded p-1 bg-white shadow-light w-100 grid" };
|
|
47608
|
+
const _hoisted_4$5 = {
|
|
47618
47609
|
key: 0,
|
|
47619
47610
|
class: "preview-area bg-black color-white w-100 rounded p-1"
|
|
47620
47611
|
};
|
|
@@ -47653,7 +47644,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47653
47644
|
"splitView",
|
|
47654
47645
|
"youtube",
|
|
47655
47646
|
"codeView",
|
|
47656
|
-
"clear"
|
|
47647
|
+
"clear",
|
|
47648
|
+
"fullScreen"
|
|
47657
47649
|
];
|
|
47658
47650
|
const config = vue.ref(props2.toolbarConfig || defaultConfig2);
|
|
47659
47651
|
let contentHtml = vue.ref(props2.modelValue);
|
|
@@ -47689,12 +47681,21 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47689
47681
|
case "codeView":
|
|
47690
47682
|
isCodeView.value = !isCodeView.value;
|
|
47691
47683
|
break;
|
|
47684
|
+
case "fullScreen":
|
|
47685
|
+
toggleFullScreen();
|
|
47686
|
+
break;
|
|
47692
47687
|
default:
|
|
47693
47688
|
applyFormatting(action, value);
|
|
47694
47689
|
break;
|
|
47695
47690
|
}
|
|
47696
47691
|
updateContent();
|
|
47697
47692
|
}
|
|
47693
|
+
function toggleFullScreen() {
|
|
47694
|
+
const editor = document.querySelector(".rich-text-editor");
|
|
47695
|
+
if (editor) {
|
|
47696
|
+
editor.classList.toggle("fullscreen-mode");
|
|
47697
|
+
}
|
|
47698
|
+
}
|
|
47698
47699
|
vue.watch(() => props2.modelValue, (newValue) => {
|
|
47699
47700
|
if (newValue !== contentHtml.value) {
|
|
47700
47701
|
contentHtml.value = newValue;
|
|
@@ -47740,12 +47741,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47740
47741
|
config: config.value,
|
|
47741
47742
|
onAction: handleToolbarAction
|
|
47742
47743
|
}, null, 8, ["config"]),
|
|
47743
|
-
vue.createElementVNode("div",
|
|
47744
|
-
|
|
47745
|
-
}, [
|
|
47746
|
-
vue.createElementVNode("div", {
|
|
47747
|
-
class: vue.normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": vue.unref(isCodeView) }])
|
|
47748
|
-
}, [
|
|
47744
|
+
vue.createElementVNode("div", _hoisted_2$b, [
|
|
47745
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
47749
47746
|
vue.unref(isCodeView) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
47750
47747
|
key: 0,
|
|
47751
47748
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
|
|
@@ -47764,14 +47761,14 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47764
47761
|
onInput: updateContent,
|
|
47765
47762
|
onKeydown: handleKeyDown2
|
|
47766
47763
|
}, null, 544))
|
|
47767
|
-
]
|
|
47768
|
-
vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("code",
|
|
47769
|
-
]
|
|
47764
|
+
]),
|
|
47765
|
+
vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("code", _hoisted_4$5, vue.toDisplayString(vue.unref(contentHtml)), 1)) : vue.createCommentVNode("", true)
|
|
47766
|
+
])
|
|
47770
47767
|
]);
|
|
47771
47768
|
};
|
|
47772
47769
|
}
|
|
47773
47770
|
});
|
|
47774
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
47771
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-c9729efd"]]);
|
|
47775
47772
|
const _hoisted_1$d = ["for"];
|
|
47776
47773
|
const _hoisted_2$a = ["id", "name", "value"];
|
|
47777
47774
|
const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|