@bagelink/vue 0.0.726 → 0.0.732
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/FileUpload.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/components/lightbox/lightbox.types.d.ts +1 -0
- package/dist/components/lightbox/lightbox.types.d.ts.map +1 -1
- package/dist/index.cjs +245 -223
- package/dist/index.mjs +246 -224
- package/dist/style.css +104 -91
- package/package.json +1 -1
- package/src/components/BglVideo.vue +6 -3
- package/src/components/form/inputs/FileUpload.vue +15 -1
- 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 +34 -32
- package/src/components/lightbox/lightbox.types.ts +1 -0
- 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) && vue.unref(group).length > 1 ? (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,49 @@ 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-c3c26420"]]);
|
|
5324
5320
|
const groups = {};
|
|
5325
5321
|
const lightboxDirective = {
|
|
5326
5322
|
mounted(el, binding) {
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
if (
|
|
5330
|
-
if (!groups[
|
|
5331
|
-
const
|
|
5332
|
-
groups[
|
|
5333
|
-
src,
|
|
5334
|
-
type: binding.value.type || determineFileType(src),
|
|
5335
|
-
name: binding.value.name || ""
|
|
5336
|
-
});
|
|
5323
|
+
el.classList.add("hover");
|
|
5324
|
+
const item = bindingToItem(binding, el);
|
|
5325
|
+
if (item.group) {
|
|
5326
|
+
if (!groups[item.group]) groups[item.group] = [];
|
|
5327
|
+
const currentIndex = groups[item.group].findIndex((i2) => i2.src === item.src);
|
|
5328
|
+
if (currentIndex === -1) groups[item.group].push(item);
|
|
5337
5329
|
}
|
|
5338
5330
|
el.addEventListener("click", (e) => {
|
|
5339
|
-
e
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
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;
|
|
5354
|
-
open(item, groups[group]);
|
|
5331
|
+
openClickHandler(e, el, binding);
|
|
5332
|
+
});
|
|
5333
|
+
},
|
|
5334
|
+
unmounted(el, binding) {
|
|
5335
|
+
el.removeEventListener("click", (e) => {
|
|
5336
|
+
openClickHandler(e, el, binding);
|
|
5355
5337
|
});
|
|
5356
5338
|
}
|
|
5357
5339
|
};
|
|
5340
|
+
function openClickHandler(e, el, binding) {
|
|
5341
|
+
e.stopPropagation();
|
|
5342
|
+
const item = bindingToItem(binding, el);
|
|
5343
|
+
const lightboxInstance = createLightboxInstance();
|
|
5344
|
+
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5345
|
+
const open = lightboxInstance.open;
|
|
5346
|
+
const group = item && item.group ? groups[item.group] : void 0;
|
|
5347
|
+
open(item, group);
|
|
5348
|
+
}
|
|
5349
|
+
function bindingToItem(binding, el) {
|
|
5350
|
+
let { group, src, type: type3, name, thumbnail } = binding.value || {};
|
|
5351
|
+
src = src || binding.value || el.getAttribute("src") || "";
|
|
5352
|
+
type3 = type3 || determineFileType(src);
|
|
5353
|
+
return { src, type: type3, name, thumbnail, group };
|
|
5354
|
+
}
|
|
5355
|
+
const youtubeRegex = /youtube\.com|youtu\.be/;
|
|
5356
|
+
const vimeoRegex = /vimeo\.com/;
|
|
5358
5357
|
function determineFileType(url) {
|
|
5359
5358
|
var _a2;
|
|
5360
5359
|
const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
5361
5360
|
if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
|
|
5362
|
-
if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
|
|
5361
|
+
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
5363
5362
|
if (["pdf"].includes(extension)) return "pdf";
|
|
5364
5363
|
return "unknown";
|
|
5365
5364
|
}
|
|
@@ -5787,8 +5786,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
|
|
|
5787
5786
|
});
|
|
5788
5787
|
const _hoisted_1$M = { class: "full-nav" };
|
|
5789
5788
|
const _hoisted_2$B = { class: "nav-scroll" };
|
|
5790
|
-
const _hoisted_3$
|
|
5791
|
-
const _hoisted_4$
|
|
5789
|
+
const _hoisted_3$p = { class: "nav-links-wrapper" };
|
|
5790
|
+
const _hoisted_4$h = { class: "tooltip" };
|
|
5792
5791
|
const _hoisted_5$f = { class: "bot-buttons-wrapper" };
|
|
5793
5792
|
const _hoisted_6$a = { class: "tooltip" };
|
|
5794
5793
|
const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -5823,7 +5822,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
5823
5822
|
], 32),
|
|
5824
5823
|
vue.createElementVNode("div", _hoisted_1$M, [
|
|
5825
5824
|
vue.createElementVNode("div", _hoisted_2$B, [
|
|
5826
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
5825
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
|
5827
5826
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
|
|
5828
5827
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
5829
5828
|
key: link.label,
|
|
@@ -5838,7 +5837,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
|
|
|
5838
5837
|
vue.createVNode(vue.unref(_sfc_main$Q), {
|
|
5839
5838
|
icon: link.icon
|
|
5840
5839
|
}, null, 8, ["icon"]),
|
|
5841
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
5840
|
+
vue.createElementVNode("div", _hoisted_4$h, vue.toDisplayString(link.label), 1)
|
|
5842
5841
|
]),
|
|
5843
5842
|
_: 2
|
|
5844
5843
|
}, 1032, ["to", "onClick"]);
|
|
@@ -6004,7 +6003,7 @@ const _hoisted_2$z = {
|
|
|
6004
6003
|
key: 1,
|
|
6005
6004
|
class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
|
|
6006
6005
|
};
|
|
6007
|
-
const _hoisted_3$
|
|
6006
|
+
const _hoisted_3$o = {
|
|
6008
6007
|
key: 2,
|
|
6009
6008
|
class: "modal-footer mt-1"
|
|
6010
6009
|
};
|
|
@@ -6097,7 +6096,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
6097
6096
|
})
|
|
6098
6097
|
])),
|
|
6099
6098
|
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$
|
|
6099
|
+
vue.unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$o, [
|
|
6101
6100
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i2) => {
|
|
6102
6101
|
return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
|
|
6103
6102
|
key: i2,
|
|
@@ -6232,8 +6231,8 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
6232
6231
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
|
|
6233
6232
|
const _hoisted_1$J = { class: "accordion-item" };
|
|
6234
6233
|
const _hoisted_2$y = ["aria-expanded", "aria-controls"];
|
|
6235
|
-
const _hoisted_3$
|
|
6236
|
-
const _hoisted_4$
|
|
6234
|
+
const _hoisted_3$n = { class: "accordion-label" };
|
|
6235
|
+
const _hoisted_4$g = ["id", "aria-hidden"];
|
|
6237
6236
|
const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
6238
6237
|
__name: "AccordionItem",
|
|
6239
6238
|
props: {
|
|
@@ -6279,7 +6278,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
6279
6278
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle())
|
|
6280
6279
|
}, [
|
|
6281
6280
|
vue.renderSlot(_ctx.$slots, "head", {}, () => [
|
|
6282
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
6281
|
+
vue.createElementVNode("span", _hoisted_3$n, vue.toDisplayString(_ctx.label), 1)
|
|
6283
6282
|
], true),
|
|
6284
6283
|
vue.createElementVNode("div", {
|
|
6285
6284
|
class: vue.normalizeClass(["accordion-icon", { open: vue.unref(isOpen) }])
|
|
@@ -6296,7 +6295,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
6296
6295
|
"aria-hidden": vue.unref(isOpen) ? "false" : "true"
|
|
6297
6296
|
}, [
|
|
6298
6297
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6299
|
-
], 8, _hoisted_4$
|
|
6298
|
+
], 8, _hoisted_4$g)) : vue.createCommentVNode("", true)
|
|
6300
6299
|
]),
|
|
6301
6300
|
_: 3
|
|
6302
6301
|
})
|
|
@@ -6308,13 +6307,13 @@ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "d
|
|
|
6308
6307
|
const _sfc_main$K = {};
|
|
6309
6308
|
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
6309
|
const _hoisted_2$x = { class: "p-1" };
|
|
6311
|
-
const _hoisted_3$
|
|
6310
|
+
const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
6312
6311
|
function _sfc_render$2(_ctx, _cache) {
|
|
6313
6312
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
|
|
6314
6313
|
vue.createElementVNode("div", _hoisted_2$x, [
|
|
6315
6314
|
vue.renderSlot(_ctx.$slots, "header")
|
|
6316
6315
|
]),
|
|
6317
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
6316
|
+
vue.createElementVNode("div", _hoisted_3$m, [
|
|
6318
6317
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6319
6318
|
])
|
|
6320
6319
|
]);
|
|
@@ -6711,10 +6710,10 @@ const _hoisted_1$F = {
|
|
|
6711
6710
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
6712
6711
|
};
|
|
6713
6712
|
const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
|
|
6714
|
-
const _hoisted_3$
|
|
6713
|
+
const _hoisted_3$l = [
|
|
6715
6714
|
_hoisted_2$u
|
|
6716
6715
|
];
|
|
6717
|
-
const _hoisted_4$
|
|
6716
|
+
const _hoisted_4$f = { class: "infinite-wrapper" };
|
|
6718
6717
|
const _hoisted_5$e = { class: "row first-row" };
|
|
6719
6718
|
const _hoisted_6$9 = { key: 0 };
|
|
6720
6719
|
const _hoisted_7$4 = ["onClick"];
|
|
@@ -6860,8 +6859,8 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
6860
6859
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
|
|
6861
6860
|
class: { "loading-table": loading.value }
|
|
6862
6861
|
}), [
|
|
6863
|
-
loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, _hoisted_3$
|
|
6864
|
-
vue.createElementVNode("table", _hoisted_4$
|
|
6862
|
+
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))), [
|
|
6863
|
+
vue.createElementVNode("table", _hoisted_4$f, [
|
|
6865
6864
|
vue.createElementVNode("thead", _hoisted_5$e, [
|
|
6866
6865
|
vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_6$9, [
|
|
6867
6866
|
vue.createElementVNode("input", {
|
|
@@ -6982,8 +6981,8 @@ const _hoisted_2$t = {
|
|
|
6982
6981
|
key: 0,
|
|
6983
6982
|
class: "data-row m_py-05"
|
|
6984
6983
|
};
|
|
6985
|
-
const _hoisted_3$
|
|
6986
|
-
const _hoisted_4$
|
|
6984
|
+
const _hoisted_3$k = { class: "key" };
|
|
6985
|
+
const _hoisted_4$e = { class: "m-0" };
|
|
6987
6986
|
const _hoisted_5$d = { key: 1 };
|
|
6988
6987
|
const _hoisted_6$8 = {
|
|
6989
6988
|
key: 0,
|
|
@@ -7041,8 +7040,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
7041
7040
|
key: field.id
|
|
7042
7041
|
}, [
|
|
7043
7042
|
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$
|
|
7043
|
+
vue.createElementVNode("div", _hoisted_3$k, [
|
|
7044
|
+
vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1)
|
|
7046
7045
|
]),
|
|
7047
7046
|
vue.createVNode(vue.unref(_sfc_main$r), {
|
|
7048
7047
|
modelValue: itemData.value,
|
|
@@ -7280,10 +7279,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7280
7279
|
}
|
|
7281
7280
|
);
|
|
7282
7281
|
const embedType = vue.computed(() => {
|
|
7283
|
-
const
|
|
7284
|
-
if (
|
|
7285
|
-
const
|
|
7286
|
-
if (
|
|
7282
|
+
const youtubeRegex2 = /youtube\.com|youtu\.be/;
|
|
7283
|
+
if (youtubeRegex2.test(props2.src || "")) return "YouTube";
|
|
7284
|
+
const vimeoRegex2 = /vimeo\.com/;
|
|
7285
|
+
if (vimeoRegex2.test(props2.src || "")) return "Vimeo";
|
|
7287
7286
|
return null;
|
|
7288
7287
|
});
|
|
7289
7288
|
const videoUrl = vue.computed(() => {
|
|
@@ -7291,17 +7290,19 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7291
7290
|
if (embedType.value) {
|
|
7292
7291
|
if (embedType.value === "YouTube") {
|
|
7293
7292
|
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
|
-
|
|
7293
|
+
const queryParams = new URLSearchParams({
|
|
7294
|
+
autoplay: props2.autoplay ? "1" : "0"
|
|
7295
|
+
});
|
|
7296
|
+
return `https://www.youtube.com/embed/${videoId}?${queryParams}`;
|
|
7295
7297
|
}
|
|
7296
7298
|
if (embedType.value === "Vimeo") {
|
|
7297
|
-
const
|
|
7298
|
-
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(
|
|
7299
|
+
const vimeoRegex2 = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
|
|
7300
|
+
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(vimeoRegex2)) == null ? void 0 : _e2[3];
|
|
7299
7301
|
return `https://player.vimeo.com/video/${videoId}`;
|
|
7300
7302
|
}
|
|
7301
7303
|
}
|
|
7302
7304
|
return props2.src;
|
|
7303
7305
|
});
|
|
7304
|
-
console.log("Video URL:", videoUrl.value);
|
|
7305
7306
|
return (_ctx, _cache) => {
|
|
7306
7307
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
7307
7308
|
class: vue.normalizeClass(["bgl_vid", { vid_empty: !_ctx.src }])
|
|
@@ -7312,7 +7313,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7312
7313
|
style: vue.normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
7313
7314
|
frameborder: "0",
|
|
7314
7315
|
allowfullscreen: "",
|
|
7315
|
-
title: "Video"
|
|
7316
|
+
title: "Video",
|
|
7317
|
+
allow: "autoplay"
|
|
7316
7318
|
}, null, 12, _hoisted_1$z)) : _ctx.src ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
7317
7319
|
key: 1,
|
|
7318
7320
|
src: _ctx.src,
|
|
@@ -7327,7 +7329,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
7327
7329
|
};
|
|
7328
7330
|
}
|
|
7329
7331
|
});
|
|
7330
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
7332
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-8495afe2"]]);
|
|
7331
7333
|
const _hoisted_1$y = {
|
|
7332
7334
|
key: 0,
|
|
7333
7335
|
class: "blocker"
|
|
@@ -7939,7 +7941,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
7939
7941
|
});
|
|
7940
7942
|
const _hoisted_1$u = ["title"];
|
|
7941
7943
|
const _hoisted_2$o = ["id", "required"];
|
|
7942
|
-
const _hoisted_3$
|
|
7944
|
+
const _hoisted_3$j = ["for"];
|
|
7943
7945
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
7944
7946
|
__name: "CheckInput",
|
|
7945
7947
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
@@ -7979,7 +7981,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
7979
7981
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
7980
7982
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
7981
7983
|
], true)
|
|
7982
|
-
], 8, _hoisted_3$
|
|
7984
|
+
], 8, _hoisted_3$j)
|
|
7983
7985
|
], 10, _hoisted_1$u);
|
|
7984
7986
|
};
|
|
7985
7987
|
}
|
|
@@ -16490,7 +16492,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
16490
16492
|
});
|
|
16491
16493
|
const _hoisted_1$s = ["title"];
|
|
16492
16494
|
const _hoisted_2$m = { key: 0 };
|
|
16493
|
-
const _hoisted_3$
|
|
16495
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
16494
16496
|
const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
16495
16497
|
__name: "JSONInput",
|
|
16496
16498
|
props: {
|
|
@@ -16522,7 +16524,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
16522
16524
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
16523
16525
|
placeholder: _ctx.placeholder,
|
|
16524
16526
|
onInput: handleInput
|
|
16525
|
-
}, null, 42, _hoisted_3$
|
|
16527
|
+
}, null, 42, _hoisted_3$i)
|
|
16526
16528
|
], 10, _hoisted_1$s);
|
|
16527
16529
|
};
|
|
16528
16530
|
}
|
|
@@ -16530,8 +16532,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
16530
16532
|
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
16531
16533
|
const _hoisted_1$r = { class: "flex gap-05" };
|
|
16532
16534
|
const _hoisted_2$l = ["disabled"];
|
|
16533
|
-
const _hoisted_3$
|
|
16534
|
-
const _hoisted_4$
|
|
16535
|
+
const _hoisted_3$h = { key: 1 };
|
|
16536
|
+
const _hoisted_4$d = {
|
|
16535
16537
|
key: 2,
|
|
16536
16538
|
class: "ms-auto ps-05 me-05"
|
|
16537
16539
|
};
|
|
@@ -16749,8 +16751,8 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
16749
16751
|
key: 0,
|
|
16750
16752
|
icon: _ctx.icon
|
|
16751
16753
|
}, 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$
|
|
16754
|
+
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$h, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
16755
|
+
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$d, [
|
|
16754
16756
|
vue.createVNode(vue.unref(Btn), {
|
|
16755
16757
|
flat: "",
|
|
16756
16758
|
thin: "",
|
|
@@ -19265,8 +19267,8 @@ const VueDraggableNext = vue.defineComponent({
|
|
|
19265
19267
|
});
|
|
19266
19268
|
const _hoisted_1$q = ["title"];
|
|
19267
19269
|
const _hoisted_2$k = { class: "bagel-input" };
|
|
19268
|
-
const _hoisted_3$
|
|
19269
|
-
const _hoisted_4$
|
|
19270
|
+
const _hoisted_3$g = { class: "table-side-scroll" };
|
|
19271
|
+
const _hoisted_4$c = { class: "table-header" };
|
|
19270
19272
|
const _hoisted_5$b = { class: "table-reorder" };
|
|
19271
19273
|
const _hoisted_6$6 = { class: "table-action" };
|
|
19272
19274
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -19337,8 +19339,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
19337
19339
|
vue.createElementVNode("div", _hoisted_2$k, [
|
|
19338
19340
|
vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
19339
19341
|
]),
|
|
19340
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19341
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
19342
|
+
vue.createElementVNode("div", _hoisted_3$g, [
|
|
19343
|
+
vue.createElementVNode("div", _hoisted_4$c, [
|
|
19342
19344
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
19343
19345
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19344
19346
|
key: `${field.fieldname}header`,
|
|
@@ -19416,8 +19418,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
19416
19418
|
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-515f5dc9"]]);
|
|
19417
19419
|
const _hoisted_1$p = ["title"];
|
|
19418
19420
|
const _hoisted_2$j = ["for"];
|
|
19419
|
-
const _hoisted_3$
|
|
19420
|
-
const _hoisted_4$
|
|
19421
|
+
const _hoisted_3$f = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
19422
|
+
const _hoisted_4$b = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
19421
19423
|
const _hoisted_5$a = { key: 2 };
|
|
19422
19424
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
19423
19425
|
__name: "TextInput",
|
|
@@ -19511,7 +19513,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19511
19513
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
19512
19514
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
19513
19515
|
onInput: updateInputVal
|
|
19514
|
-
}), null, 16, _hoisted_3$
|
|
19516
|
+
}), null, 16, _hoisted_3$f)), [
|
|
19515
19517
|
[
|
|
19516
19518
|
vue.vModelDynamic,
|
|
19517
19519
|
vue.unref(inputVal),
|
|
@@ -19535,7 +19537,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19535
19537
|
onInput: updateInputVal,
|
|
19536
19538
|
onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
|
|
19537
19539
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
|
|
19538
|
-
}), null, 16, _hoisted_4$
|
|
19540
|
+
}), null, 16, _hoisted_4$b)), [
|
|
19539
19541
|
[vue.vModelText, vue.unref(inputVal)]
|
|
19540
19542
|
]),
|
|
19541
19543
|
_ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$a, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
|
|
@@ -19628,11 +19630,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
19628
19630
|
});
|
|
19629
19631
|
const _hoisted_1$m = { class: "datetime-wrap" };
|
|
19630
19632
|
const _hoisted_2$h = { class: "date-wrap" };
|
|
19631
|
-
const _hoisted_3$
|
|
19633
|
+
const _hoisted_3$e = {
|
|
19632
19634
|
key: 0,
|
|
19633
19635
|
class: "time-wrap"
|
|
19634
19636
|
};
|
|
19635
|
-
const _hoisted_4$
|
|
19637
|
+
const _hoisted_4$a = ["id", "name", "value"];
|
|
19636
19638
|
const _hoisted_5$9 = ["for"];
|
|
19637
19639
|
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
19638
19640
|
__name: "DatePicker",
|
|
@@ -19682,7 +19684,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19682
19684
|
_: 1
|
|
19683
19685
|
}, 16, ["modelValue", "allowed-dates", "disabled-dates"])
|
|
19684
19686
|
]),
|
|
19685
|
-
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
19687
|
+
_ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
|
|
19686
19688
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hours), (hr2) => {
|
|
19687
19689
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: hr2 }, [
|
|
19688
19690
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -19691,7 +19693,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19691
19693
|
type: "radio",
|
|
19692
19694
|
name: _ctx.label,
|
|
19693
19695
|
value: hr2
|
|
19694
|
-
}, null, 8, _hoisted_4$
|
|
19696
|
+
}, null, 8, _hoisted_4$a), [
|
|
19695
19697
|
[vue.vModelRadio, selectedHour.value]
|
|
19696
19698
|
]),
|
|
19697
19699
|
vue.createElementVNode("label", {
|
|
@@ -19706,8 +19708,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
19706
19708
|
});
|
|
19707
19709
|
const _hoisted_1$l = { class: "bagel-input" };
|
|
19708
19710
|
const _hoisted_2$g = { class: "pb-025" };
|
|
19709
|
-
const _hoisted_3$
|
|
19710
|
-
const _hoisted_4$
|
|
19711
|
+
const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
|
|
19712
|
+
const _hoisted_4$9 = ["id", "name", "value", "checked"];
|
|
19711
19713
|
const _hoisted_5$8 = ["for"];
|
|
19712
19714
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
19713
19715
|
__name: "RadioPillsInput",
|
|
@@ -19752,7 +19754,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19752
19754
|
return (_ctx, _cache) => {
|
|
19753
19755
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
|
|
19754
19756
|
vue.createElementVNode("label", _hoisted_2$g, vue.toDisplayString(_ctx.label), 1),
|
|
19755
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19757
|
+
vue.createElementVNode("div", _hoisted_3$d, [
|
|
19756
19758
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
|
|
19757
19759
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19758
19760
|
key: index2,
|
|
@@ -19765,7 +19767,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19765
19767
|
value: getValue(option2),
|
|
19766
19768
|
checked: vue.unref(selectedValue) === getValue(option2),
|
|
19767
19769
|
onChange: handleSelect
|
|
19768
|
-
}, null, 40, _hoisted_4$
|
|
19770
|
+
}, null, 40, _hoisted_4$9),
|
|
19769
19771
|
vue.createElementVNode("label", {
|
|
19770
19772
|
for: `${_ctx.id}-${getValue(option2)}`
|
|
19771
19773
|
}, vue.toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
|
|
@@ -19782,8 +19784,8 @@ const _hoisted_2$f = {
|
|
|
19782
19784
|
key: 0,
|
|
19783
19785
|
class: "bgl-multi-preview"
|
|
19784
19786
|
};
|
|
19785
|
-
const _hoisted_3$
|
|
19786
|
-
const _hoisted_4$
|
|
19787
|
+
const _hoisted_3$c = ["src"];
|
|
19788
|
+
const _hoisted_4$8 = { class: "m-0" };
|
|
19787
19789
|
const _hoisted_5$7 = ["width", "src"];
|
|
19788
19790
|
const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
|
|
19789
19791
|
const _hoisted_7$2 = {
|
|
@@ -19858,6 +19860,19 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19858
19860
|
},
|
|
19859
19861
|
{ immediate: true }
|
|
19860
19862
|
);
|
|
19863
|
+
vue.watch(() => props2.modelValue, () => {
|
|
19864
|
+
const newModelValue = props2.modelValue || [];
|
|
19865
|
+
const currentValue = [file_bindkeys.value].flat();
|
|
19866
|
+
const newValue = [newModelValue].flat();
|
|
19867
|
+
const isSame = currentValue.every((id) => newValue.includes(id)) && newValue.every((id) => currentValue.includes(id)) && currentValue.length === newValue.length;
|
|
19868
|
+
if (!isSame) {
|
|
19869
|
+
file_bindkeys.value = newModelValue;
|
|
19870
|
+
for (const fle of storageFiles.value) {
|
|
19871
|
+
const index2 = [file_bindkeys.value].flat().findIndex((key) => fle[bindKey2] === key);
|
|
19872
|
+
if (index2 === -1) storageFiles.value.splice(index2, 1);
|
|
19873
|
+
}
|
|
19874
|
+
}
|
|
19875
|
+
});
|
|
19861
19876
|
function updateModelValue() {
|
|
19862
19877
|
let idValue;
|
|
19863
19878
|
if (props2.multiple) {
|
|
@@ -19966,14 +19981,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19966
19981
|
class: "multi-preview",
|
|
19967
19982
|
src: file.url,
|
|
19968
19983
|
alt: ""
|
|
19969
|
-
}, null, 8, _hoisted_3$
|
|
19984
|
+
}, null, 8, _hoisted_3$c)), [
|
|
19970
19985
|
[_directive_lightbox]
|
|
19971
19986
|
]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
|
|
19972
19987
|
key: 1,
|
|
19973
19988
|
icon: "draft",
|
|
19974
19989
|
class: "multi-preview"
|
|
19975
19990
|
})),
|
|
19976
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
19991
|
+
vue.createElementVNode("p", _hoisted_4$8, vue.toDisplayString(file.name), 1),
|
|
19977
19992
|
vue.createVNode(vue.unref(Btn), {
|
|
19978
19993
|
thin: "",
|
|
19979
19994
|
flat: "",
|
|
@@ -20078,14 +20093,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
20078
20093
|
};
|
|
20079
20094
|
}
|
|
20080
20095
|
});
|
|
20081
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
20096
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a0ae528d"]]);
|
|
20082
20097
|
const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
|
|
20083
20098
|
const _hoisted_1$j = ["title"];
|
|
20084
20099
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
|
20085
|
-
const _hoisted_3$
|
|
20100
|
+
const _hoisted_3$b = [
|
|
20086
20101
|
_hoisted_2$e
|
|
20087
20102
|
];
|
|
20088
|
-
const _hoisted_4$
|
|
20103
|
+
const _hoisted_4$7 = ["id", "required"];
|
|
20089
20104
|
const _hoisted_5$6 = ["for"];
|
|
20090
20105
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
20091
20106
|
__name: "ToggleInput",
|
|
@@ -20115,13 +20130,13 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
20115
20130
|
}, [
|
|
20116
20131
|
vue.createElementVNode("div", {
|
|
20117
20132
|
class: vue.normalizeClass(["switch", { checked: checked.value }])
|
|
20118
|
-
}, _hoisted_3$
|
|
20133
|
+
}, _hoisted_3$b, 2),
|
|
20119
20134
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
20120
20135
|
id: inputId.value,
|
|
20121
20136
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
20122
20137
|
type: "checkbox",
|
|
20123
20138
|
required: _ctx.required
|
|
20124
|
-
}, null, 8, _hoisted_4$
|
|
20139
|
+
}, null, 8, _hoisted_4$7), [
|
|
20125
20140
|
[vue.vModelCheckbox, checked.value]
|
|
20126
20141
|
]),
|
|
20127
20142
|
vue.createElementVNode("label", { for: inputId.value }, [
|
|
@@ -46288,8 +46303,8 @@ function parsePhoneNumber() {
|
|
|
46288
46303
|
}
|
|
46289
46304
|
const _hoisted_1$h = ["aria-expanded"];
|
|
46290
46305
|
const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
|
|
46291
|
-
const _hoisted_3$
|
|
46292
|
-
const _hoisted_4$
|
|
46306
|
+
const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
|
|
46307
|
+
const _hoisted_4$6 = { class: "tel-country" };
|
|
46293
46308
|
const _hoisted_5$5 = { key: 1 };
|
|
46294
46309
|
const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
46295
46310
|
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -46589,9 +46604,9 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
46589
46604
|
key: 0,
|
|
46590
46605
|
country: pb.iso2
|
|
46591
46606
|
}, null, 8, ["country"])) : vue.createCommentVNode("", true),
|
|
46592
|
-
vue.createElementVNode("p", _hoisted_4$
|
|
46607
|
+
vue.createElementVNode("p", _hoisted_4$6, vue.toDisplayString(pb.name), 1),
|
|
46593
46608
|
computedDropDownOptions.value.showDialCodeInList ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$5, " +" + vue.toDisplayString(pb.dialCode), 1)) : vue.createCommentVNode("", true)
|
|
46594
|
-
], 40, _hoisted_3$
|
|
46609
|
+
], 40, _hoisted_3$a);
|
|
46595
46610
|
}), 128))
|
|
46596
46611
|
], 2)
|
|
46597
46612
|
])
|
|
@@ -47389,23 +47404,22 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
47389
47404
|
emits: ["action"],
|
|
47390
47405
|
setup(__props, { emit: __emit }) {
|
|
47391
47406
|
const emit2 = __emit;
|
|
47392
|
-
vue.ref(null);
|
|
47393
|
-
vue.ref(null);
|
|
47394
47407
|
const toolbarOptions = [
|
|
47395
47408
|
{ name: "separator" },
|
|
47396
|
-
{ name: "bold", icon: "format_bold" },
|
|
47397
|
-
{ name: "italic", icon: "format_italic" },
|
|
47398
|
-
{ name: "underline", icon: "format_underlined" },
|
|
47409
|
+
{ name: "bold", label: "Bold", icon: "format_bold" },
|
|
47410
|
+
{ name: "italic", label: "Italic", icon: "format_italic" },
|
|
47411
|
+
{ name: "underline", label: "Underline", icon: "format_underlined" },
|
|
47399
47412
|
{ name: "separator" },
|
|
47400
|
-
{ name: "orderedList", icon: "format_list_numbered" },
|
|
47401
|
-
{ name: "unorderedList", icon: "format_list_bulleted" },
|
|
47413
|
+
{ name: "orderedList", label: "Ordered List", icon: "format_list_numbered" },
|
|
47414
|
+
{ name: "unorderedList", label: "Unordered List", icon: "format_list_bulleted" },
|
|
47402
47415
|
{ name: "separator" },
|
|
47403
|
-
{ name: "link", icon: "add_link" },
|
|
47404
|
-
{ name: "image", icon: "add_photo_alternate" },
|
|
47405
|
-
{ name: "youtube", icon: "youtube_activity" },
|
|
47416
|
+
{ name: "link", label: "Link", icon: "add_link" },
|
|
47417
|
+
{ name: "image", label: "Image", icon: "add_photo_alternate" },
|
|
47418
|
+
{ name: "youtube", label: "YouTube", icon: "youtube_activity" },
|
|
47406
47419
|
{ name: "separator" },
|
|
47407
|
-
{ name: "splitView", icon: "code" },
|
|
47408
|
-
{ name: "clear", icon: "format_clear" }
|
|
47420
|
+
{ name: "splitView", label: "Split View", icon: "code" },
|
|
47421
|
+
{ name: "clear", label: "Clear Formatting", icon: "format_clear" },
|
|
47422
|
+
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
47409
47423
|
];
|
|
47410
47424
|
function handleSelectChange(selectedOption) {
|
|
47411
47425
|
emit2("action", "formatBlock", selectedOption);
|
|
@@ -47424,12 +47438,12 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
47424
47438
|
key: action.name,
|
|
47425
47439
|
thin: "",
|
|
47426
47440
|
flat: "",
|
|
47427
|
-
class: "rounded",
|
|
47441
|
+
class: vue.normalizeClass([action.class, "rounded"]),
|
|
47428
47442
|
"aria-label": action.name,
|
|
47429
47443
|
icon: action.icon,
|
|
47430
47444
|
onClick: ($event) => emit2("action", action.name)
|
|
47431
|
-
}, null, 8, ["aria-label", "icon", "onClick"])), [
|
|
47432
|
-
[_directive_tooltip, action.
|
|
47445
|
+
}, null, 8, ["class", "aria-label", "icon", "onClick"])), [
|
|
47446
|
+
[_directive_tooltip, action.label]
|
|
47433
47447
|
]) : vue.createCommentVNode("", true),
|
|
47434
47448
|
action.name === "separator" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
47435
47449
|
key: `separator-${index2}`,
|
|
@@ -47614,7 +47628,9 @@ function createTable() {
|
|
|
47614
47628
|
}
|
|
47615
47629
|
}
|
|
47616
47630
|
const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
|
|
47617
|
-
const _hoisted_2$b = {
|
|
47631
|
+
const _hoisted_2$b = { class: "editor-container flex flex-stretch gap-1 m_column" };
|
|
47632
|
+
const _hoisted_3$9 = { class: "content-area rounded p-1 bg-white shadow-light w-100 grid" };
|
|
47633
|
+
const _hoisted_4$5 = {
|
|
47618
47634
|
key: 0,
|
|
47619
47635
|
class: "preview-area bg-black color-white w-100 rounded p-1"
|
|
47620
47636
|
};
|
|
@@ -47653,7 +47669,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47653
47669
|
"splitView",
|
|
47654
47670
|
"youtube",
|
|
47655
47671
|
"codeView",
|
|
47656
|
-
"clear"
|
|
47672
|
+
"clear",
|
|
47673
|
+
"fullScreen"
|
|
47657
47674
|
];
|
|
47658
47675
|
const config = vue.ref(props2.toolbarConfig || defaultConfig2);
|
|
47659
47676
|
let contentHtml = vue.ref(props2.modelValue);
|
|
@@ -47689,12 +47706,21 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47689
47706
|
case "codeView":
|
|
47690
47707
|
isCodeView.value = !isCodeView.value;
|
|
47691
47708
|
break;
|
|
47709
|
+
case "fullScreen":
|
|
47710
|
+
toggleFullScreen();
|
|
47711
|
+
break;
|
|
47692
47712
|
default:
|
|
47693
47713
|
applyFormatting(action, value);
|
|
47694
47714
|
break;
|
|
47695
47715
|
}
|
|
47696
47716
|
updateContent();
|
|
47697
47717
|
}
|
|
47718
|
+
function toggleFullScreen() {
|
|
47719
|
+
const editor = document.querySelector(".rich-text-editor");
|
|
47720
|
+
if (editor) {
|
|
47721
|
+
editor.classList.toggle("fullscreen-mode");
|
|
47722
|
+
}
|
|
47723
|
+
}
|
|
47698
47724
|
vue.watch(() => props2.modelValue, (newValue) => {
|
|
47699
47725
|
if (newValue !== contentHtml.value) {
|
|
47700
47726
|
contentHtml.value = newValue;
|
|
@@ -47740,12 +47766,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47740
47766
|
config: config.value,
|
|
47741
47767
|
onAction: handleToolbarAction
|
|
47742
47768
|
}, 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
|
-
}, [
|
|
47769
|
+
vue.createElementVNode("div", _hoisted_2$b, [
|
|
47770
|
+
vue.createElementVNode("div", _hoisted_3$9, [
|
|
47749
47771
|
vue.unref(isCodeView) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", {
|
|
47750
47772
|
key: 0,
|
|
47751
47773
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
|
|
@@ -47764,14 +47786,14 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47764
47786
|
onInput: updateContent,
|
|
47765
47787
|
onKeydown: handleKeyDown2
|
|
47766
47788
|
}, null, 544))
|
|
47767
|
-
]
|
|
47768
|
-
vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("code",
|
|
47769
|
-
]
|
|
47789
|
+
]),
|
|
47790
|
+
vue.unref(isSplitView) ? (vue.openBlock(), vue.createElementBlock("code", _hoisted_4$5, vue.toDisplayString(vue.unref(contentHtml)), 1)) : vue.createCommentVNode("", true)
|
|
47791
|
+
])
|
|
47770
47792
|
]);
|
|
47771
47793
|
};
|
|
47772
47794
|
}
|
|
47773
47795
|
});
|
|
47774
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
47796
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-c9729efd"]]);
|
|
47775
47797
|
const _hoisted_1$d = ["for"];
|
|
47776
47798
|
const _hoisted_2$a = ["id", "name", "value"];
|
|
47777
47799
|
const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|