@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.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp2 = Object.defineProperty;
|
|
2
2
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots,
|
|
4
|
+
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, Transition, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, resolveDirective, onBeforeUnmount, watchEffect, customRef } from "vue";
|
|
5
5
|
const sides = ["top", "right", "bottom", "left"];
|
|
6
6
|
const alignments = ["start", "end"];
|
|
7
7
|
const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -5145,33 +5145,23 @@ class Bagel {
|
|
|
5145
5145
|
return data2;
|
|
5146
5146
|
}
|
|
5147
5147
|
}
|
|
5148
|
-
const
|
|
5149
|
-
const _hoisted_1$N = { class: "lightbox-item" };
|
|
5148
|
+
const _hoisted_1$N = { class: "bgl-lightbox-item" };
|
|
5150
5149
|
const _hoisted_2$C = ["src"];
|
|
5151
|
-
const _hoisted_3$
|
|
5152
|
-
|
|
5153
|
-
controls: "",
|
|
5154
|
-
autoplay: ""
|
|
5155
|
-
};
|
|
5156
|
-
const _hoisted_4$h = ["src"];
|
|
5157
|
-
const _hoisted_5$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("track", {
|
|
5158
|
-
kind: "captions",
|
|
5159
|
-
src: "#",
|
|
5160
|
-
srclang: "en",
|
|
5161
|
-
label: "English"
|
|
5162
|
-
}, null, -1));
|
|
5163
|
-
const _hoisted_6$b = ["src", "title"];
|
|
5164
|
-
const _hoisted_7$5 = {
|
|
5150
|
+
const _hoisted_3$q = ["src", "title"];
|
|
5151
|
+
const _hoisted_4$i = {
|
|
5165
5152
|
key: 3,
|
|
5166
5153
|
class: "file-info txt-white"
|
|
5167
5154
|
};
|
|
5168
|
-
const
|
|
5169
|
-
const
|
|
5170
|
-
const _hoisted_10$2 = {
|
|
5155
|
+
const _hoisted_5$g = ["href"];
|
|
5156
|
+
const _hoisted_6$b = {
|
|
5171
5157
|
key: 0,
|
|
5172
|
-
class: "
|
|
5158
|
+
class: "navigation flex space-between w-100 absolute"
|
|
5159
|
+
};
|
|
5160
|
+
const _hoisted_7$5 = {
|
|
5161
|
+
key: 1,
|
|
5162
|
+
class: "flex justify-content-center mt-2 overflow p-1 fixed bottom start end gap-1 m_justify-content-start"
|
|
5173
5163
|
};
|
|
5174
|
-
const
|
|
5164
|
+
const _hoisted_8$3 = ["src", "onClick"];
|
|
5175
5165
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5176
5166
|
__name: "Lightbox",
|
|
5177
5167
|
setup(__props, { expose: __expose }) {
|
|
@@ -5227,87 +5217,93 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
5227
5217
|
}
|
|
5228
5218
|
__expose({ open, close: close2 });
|
|
5229
5219
|
return (_ctx, _cache) => {
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
withKeys(close2, ["esc"]),
|
|
5236
|
-
withKeys(prev, ["left"]),
|
|
5237
|
-
withKeys(next, ["right"])
|
|
5238
|
-
],
|
|
5239
|
-
onClick: close2
|
|
5240
|
-
}, [
|
|
5241
|
-
createElementVNode("div", {
|
|
5242
|
-
class: "lightbox",
|
|
5243
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5244
|
-
}, ["stop"]))
|
|
5245
|
-
}, [
|
|
5246
|
-
createVNode(unref(Btn), {
|
|
5247
|
-
flat: "",
|
|
5248
|
-
class: "close-button color-white",
|
|
5249
|
-
icon: "close",
|
|
5250
|
-
onClick: close2
|
|
5251
|
-
}),
|
|
5252
|
-
createElementVNode("div", _hoisted_1$N, [
|
|
5253
|
-
((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
|
|
5220
|
+
return openBlock(), createBlock(Transition, { name: "fade" }, {
|
|
5221
|
+
default: withCtx(() => {
|
|
5222
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
|
|
5223
|
+
return [
|
|
5224
|
+
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
5254
5225
|
key: 0,
|
|
5255
|
-
|
|
5256
|
-
|
|
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
|
-
|
|
5226
|
+
class: "bgl-lightbox-overlay fixed w-100 h-100 flex justify-content-center z-999 inset mx-auto",
|
|
5227
|
+
onKeydown: [
|
|
5228
|
+
withKeys(close2, ["esc"]),
|
|
5229
|
+
withKeys(prev, ["left"]),
|
|
5230
|
+
withKeys(next, ["right"])
|
|
5231
|
+
],
|
|
5232
|
+
onClick: close2
|
|
5233
|
+
}, [
|
|
5234
|
+
createElementVNode("div", {
|
|
5235
|
+
class: "bgl-lightbox relative vw90 txt-center",
|
|
5236
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5237
|
+
}, ["stop"]))
|
|
5238
|
+
}, [
|
|
5239
|
+
createVNode(unref(Btn), {
|
|
5240
|
+
flat: "",
|
|
5241
|
+
class: "fixed top-1 end-1 color-white",
|
|
5242
|
+
icon: "close",
|
|
5243
|
+
onClick: close2
|
|
5244
|
+
}),
|
|
5245
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
5246
|
+
((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
|
|
5247
|
+
key: 0,
|
|
5248
|
+
src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
|
|
5249
|
+
alt: "Preview"
|
|
5250
|
+
}, null, 8, _hoisted_2$C)) : ((_c = unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (openBlock(), createBlock(unref(BglVideo), {
|
|
5251
|
+
key: 1,
|
|
5252
|
+
src: (_d = unref(currentItem)) == null ? void 0 : _d.src,
|
|
5253
|
+
autoplay: "",
|
|
5254
|
+
controls: ""
|
|
5255
|
+
}, null, 8, ["src"])) : ((_e2 = unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (openBlock(), createElementBlock("embed", {
|
|
5256
|
+
key: 2,
|
|
5257
|
+
src: normalizeURL((_f = unref(currentItem)) == null ? void 0 : _f.src),
|
|
5258
|
+
type: "application/pdf",
|
|
5259
|
+
width: "100%",
|
|
5260
|
+
height: "1080",
|
|
5261
|
+
title: (_g = unref(currentItem)) == null ? void 0 : _g.name
|
|
5262
|
+
}, null, 8, _hoisted_3$q)) : (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
5263
|
+
createElementVNode("p", null, "File: " + toDisplayString((_h = unref(currentItem)) == null ? void 0 : _h.name), 1),
|
|
5264
|
+
createElementVNode("p", null, "Type: " + toDisplayString((_i = unref(currentItem)) == null ? void 0 : _i.type), 1),
|
|
5265
|
+
createElementVNode("a", {
|
|
5266
|
+
href: (_j = unref(currentItem)) == null ? void 0 : _j.src,
|
|
5267
|
+
target: "_blank"
|
|
5268
|
+
}, "Open file", 8, _hoisted_5$g)
|
|
5269
|
+
]))
|
|
5270
|
+
]),
|
|
5271
|
+
unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
5272
|
+
createVNode(unref(Btn), {
|
|
5273
|
+
class: "navigation-btn oval user-select-none",
|
|
5274
|
+
icon: "arrow_back",
|
|
5275
|
+
onClick: prev
|
|
5276
|
+
}),
|
|
5277
|
+
createVNode(unref(Btn), {
|
|
5278
|
+
class: "navigation-btn oval user-select-none",
|
|
5279
|
+
icon: "arrow_forward",
|
|
5280
|
+
onClick: next
|
|
5281
|
+
})
|
|
5282
|
+
])) : createCommentVNode("", true),
|
|
5283
|
+
unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
5284
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(group), (item, index2) => {
|
|
5285
|
+
return openBlock(), createElementBlock(Fragment$1, { key: index2 }, [
|
|
5286
|
+
item.type === "image" ? (openBlock(), createElementBlock("img", {
|
|
5287
|
+
key: 0,
|
|
5288
|
+
class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
|
|
5289
|
+
src: item.src,
|
|
5290
|
+
alt: "",
|
|
5291
|
+
onClick: ($event) => selectItem(index2)
|
|
5292
|
+
}, null, 10, _hoisted_8$3)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
5293
|
+
key: 1,
|
|
5294
|
+
class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 round flex bg-white justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
|
|
5295
|
+
icon: "description",
|
|
5296
|
+
onClick: ($event) => selectItem(index2)
|
|
5297
|
+
}, null, 8, ["class", "onClick"]))
|
|
5298
|
+
], 64);
|
|
5299
|
+
}), 128))
|
|
5300
|
+
])) : createCommentVNode("", true)
|
|
5301
|
+
])
|
|
5302
|
+
], 32)) : createCommentVNode("", true)
|
|
5303
|
+
];
|
|
5304
|
+
}),
|
|
5305
|
+
_: 1
|
|
5306
|
+
});
|
|
5311
5307
|
};
|
|
5312
5308
|
}
|
|
5313
5309
|
});
|
|
@@ -5318,46 +5314,49 @@ const _export_sfc = (sfc, props2) => {
|
|
|
5318
5314
|
}
|
|
5319
5315
|
return target;
|
|
5320
5316
|
};
|
|
5321
|
-
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
5317
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-c3c26420"]]);
|
|
5322
5318
|
const groups = {};
|
|
5323
5319
|
const lightboxDirective = {
|
|
5324
5320
|
mounted(el, binding) {
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
if (
|
|
5328
|
-
if (!groups[
|
|
5329
|
-
const
|
|
5330
|
-
groups[
|
|
5331
|
-
src,
|
|
5332
|
-
type: binding.value.type || determineFileType(src),
|
|
5333
|
-
name: binding.value.name || ""
|
|
5334
|
-
});
|
|
5321
|
+
el.classList.add("hover");
|
|
5322
|
+
const item = bindingToItem(binding, el);
|
|
5323
|
+
if (item.group) {
|
|
5324
|
+
if (!groups[item.group]) groups[item.group] = [];
|
|
5325
|
+
const currentIndex = groups[item.group].findIndex((i2) => i2.src === item.src);
|
|
5326
|
+
if (currentIndex === -1) groups[item.group].push(item);
|
|
5335
5327
|
}
|
|
5336
5328
|
el.addEventListener("click", (e) => {
|
|
5337
|
-
e
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
thumbnail: binding.value.thumbnail || ""
|
|
5344
|
-
};
|
|
5345
|
-
const lightboxInstance2 = createLightboxInstance();
|
|
5346
|
-
if (!lightboxInstance2 || !lightboxInstance2.open) return;
|
|
5347
|
-
if (binding.value.group) {
|
|
5348
|
-
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5349
|
-
groups[binding.value.group].push(item);
|
|
5350
|
-
}
|
|
5351
|
-
const open = lightboxInstance2.open;
|
|
5352
|
-
open(item, groups[group]);
|
|
5329
|
+
openClickHandler(e, el, binding);
|
|
5330
|
+
});
|
|
5331
|
+
},
|
|
5332
|
+
unmounted(el, binding) {
|
|
5333
|
+
el.removeEventListener("click", (e) => {
|
|
5334
|
+
openClickHandler(e, el, binding);
|
|
5353
5335
|
});
|
|
5354
5336
|
}
|
|
5355
5337
|
};
|
|
5338
|
+
function openClickHandler(e, el, binding) {
|
|
5339
|
+
e.stopPropagation();
|
|
5340
|
+
const item = bindingToItem(binding, el);
|
|
5341
|
+
const lightboxInstance = createLightboxInstance();
|
|
5342
|
+
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5343
|
+
const open = lightboxInstance.open;
|
|
5344
|
+
const group = item && item.group ? groups[item.group] : void 0;
|
|
5345
|
+
open(item, group);
|
|
5346
|
+
}
|
|
5347
|
+
function bindingToItem(binding, el) {
|
|
5348
|
+
let { group, src, type: type3, name, thumbnail } = binding.value || {};
|
|
5349
|
+
src = src || binding.value || el.getAttribute("src") || "";
|
|
5350
|
+
type3 = type3 || determineFileType(src);
|
|
5351
|
+
return { src, type: type3, name, thumbnail, group };
|
|
5352
|
+
}
|
|
5353
|
+
const youtubeRegex = /youtube\.com|youtu\.be/;
|
|
5354
|
+
const vimeoRegex = /vimeo\.com/;
|
|
5356
5355
|
function determineFileType(url) {
|
|
5357
5356
|
var _a2;
|
|
5358
5357
|
const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
5359
5358
|
if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
|
|
5360
|
-
if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
|
|
5359
|
+
if (VIDEO_FORMATS_REGEXP.test(extension) || youtubeRegex.test(url) || vimeoRegex.test(url)) return "video";
|
|
5361
5360
|
if (["pdf"].includes(extension)) return "pdf";
|
|
5362
5361
|
return "unknown";
|
|
5363
5362
|
}
|
|
@@ -5785,8 +5784,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
5785
5784
|
});
|
|
5786
5785
|
const _hoisted_1$M = { class: "full-nav" };
|
|
5787
5786
|
const _hoisted_2$B = { class: "nav-scroll" };
|
|
5788
|
-
const _hoisted_3$
|
|
5789
|
-
const _hoisted_4$
|
|
5787
|
+
const _hoisted_3$p = { class: "nav-links-wrapper" };
|
|
5788
|
+
const _hoisted_4$h = { class: "tooltip" };
|
|
5790
5789
|
const _hoisted_5$f = { class: "bot-buttons-wrapper" };
|
|
5791
5790
|
const _hoisted_6$a = { class: "tooltip" };
|
|
5792
5791
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
@@ -5821,7 +5820,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5821
5820
|
], 32),
|
|
5822
5821
|
createElementVNode("div", _hoisted_1$M, [
|
|
5823
5822
|
createElementVNode("div", _hoisted_2$B, [
|
|
5824
|
-
createElementVNode("div", _hoisted_3$
|
|
5823
|
+
createElementVNode("div", _hoisted_3$p, [
|
|
5825
5824
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
|
|
5826
5825
|
return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
|
|
5827
5826
|
key: link.label,
|
|
@@ -5836,7 +5835,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5836
5835
|
createVNode(unref(_sfc_main$Q), {
|
|
5837
5836
|
icon: link.icon
|
|
5838
5837
|
}, null, 8, ["icon"]),
|
|
5839
|
-
createElementVNode("div", _hoisted_4$
|
|
5838
|
+
createElementVNode("div", _hoisted_4$h, toDisplayString(link.label), 1)
|
|
5840
5839
|
]),
|
|
5841
5840
|
_: 2
|
|
5842
5841
|
}, 1032, ["to", "onClick"]);
|
|
@@ -6002,7 +6001,7 @@ const _hoisted_2$z = {
|
|
|
6002
6001
|
key: 1,
|
|
6003
6002
|
class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
|
|
6004
6003
|
};
|
|
6005
|
-
const _hoisted_3$
|
|
6004
|
+
const _hoisted_3$o = {
|
|
6006
6005
|
key: 2,
|
|
6007
6006
|
class: "modal-footer mt-1"
|
|
6008
6007
|
};
|
|
@@ -6095,7 +6094,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
6095
6094
|
})
|
|
6096
6095
|
])),
|
|
6097
6096
|
renderSlot(_ctx.$slots, "default"),
|
|
6098
|
-
unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$
|
|
6097
|
+
unref(slots).footer || ((_a2 = _ctx.actions) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$o, [
|
|
6099
6098
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
|
|
6100
6099
|
return openBlock(), createBlock(unref(Btn), mergeProps({
|
|
6101
6100
|
key: i2,
|
|
@@ -6230,8 +6229,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
6230
6229
|
const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-083a1b2d"]]);
|
|
6231
6230
|
const _hoisted_1$J = { class: "accordion-item" };
|
|
6232
6231
|
const _hoisted_2$y = ["aria-expanded", "aria-controls"];
|
|
6233
|
-
const _hoisted_3$
|
|
6234
|
-
const _hoisted_4$
|
|
6232
|
+
const _hoisted_3$n = { class: "accordion-label" };
|
|
6233
|
+
const _hoisted_4$g = ["id", "aria-hidden"];
|
|
6235
6234
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
6236
6235
|
__name: "AccordionItem",
|
|
6237
6236
|
props: {
|
|
@@ -6277,7 +6276,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6277
6276
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle())
|
|
6278
6277
|
}, [
|
|
6279
6278
|
renderSlot(_ctx.$slots, "head", {}, () => [
|
|
6280
|
-
createElementVNode("span", _hoisted_3$
|
|
6279
|
+
createElementVNode("span", _hoisted_3$n, toDisplayString(_ctx.label), 1)
|
|
6281
6280
|
], true),
|
|
6282
6281
|
createElementVNode("div", {
|
|
6283
6282
|
class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
|
|
@@ -6294,7 +6293,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
6294
6293
|
"aria-hidden": unref(isOpen) ? "false" : "true"
|
|
6295
6294
|
}, [
|
|
6296
6295
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
6297
|
-
], 8, _hoisted_4$
|
|
6296
|
+
], 8, _hoisted_4$g)) : createCommentVNode("", true)
|
|
6298
6297
|
]),
|
|
6299
6298
|
_: 3
|
|
6300
6299
|
})
|
|
@@ -6306,13 +6305,13 @@ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "d
|
|
|
6306
6305
|
const _sfc_main$K = {};
|
|
6307
6306
|
const _hoisted_1$I = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
6308
6307
|
const _hoisted_2$x = { class: "p-1" };
|
|
6309
|
-
const _hoisted_3$
|
|
6308
|
+
const _hoisted_3$m = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
6310
6309
|
function _sfc_render$2(_ctx, _cache) {
|
|
6311
6310
|
return openBlock(), createElementBlock("div", _hoisted_1$I, [
|
|
6312
6311
|
createElementVNode("div", _hoisted_2$x, [
|
|
6313
6312
|
renderSlot(_ctx.$slots, "header")
|
|
6314
6313
|
]),
|
|
6315
|
-
createElementVNode("div", _hoisted_3$
|
|
6314
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
6316
6315
|
renderSlot(_ctx.$slots, "default")
|
|
6317
6316
|
])
|
|
6318
6317
|
]);
|
|
@@ -6709,10 +6708,10 @@ const _hoisted_1$F = {
|
|
|
6709
6708
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
6710
6709
|
};
|
|
6711
6710
|
const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
|
|
6712
|
-
const _hoisted_3$
|
|
6711
|
+
const _hoisted_3$l = [
|
|
6713
6712
|
_hoisted_2$u
|
|
6714
6713
|
];
|
|
6715
|
-
const _hoisted_4$
|
|
6714
|
+
const _hoisted_4$f = { class: "infinite-wrapper" };
|
|
6716
6715
|
const _hoisted_5$e = { class: "row first-row" };
|
|
6717
6716
|
const _hoisted_6$9 = { key: 0 };
|
|
6718
6717
|
const _hoisted_7$4 = ["onClick"];
|
|
@@ -6858,8 +6857,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6858
6857
|
return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
|
|
6859
6858
|
class: { "loading-table": loading.value }
|
|
6860
6859
|
}), [
|
|
6861
|
-
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$
|
|
6862
|
-
createElementVNode("table", _hoisted_4$
|
|
6860
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$F, _hoisted_3$l)) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
|
|
6861
|
+
createElementVNode("table", _hoisted_4$f, [
|
|
6863
6862
|
createElementVNode("thead", _hoisted_5$e, [
|
|
6864
6863
|
unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_6$9, [
|
|
6865
6864
|
createElementVNode("input", {
|
|
@@ -6980,8 +6979,8 @@ const _hoisted_2$t = {
|
|
|
6980
6979
|
key: 0,
|
|
6981
6980
|
class: "data-row m_py-05"
|
|
6982
6981
|
};
|
|
6983
|
-
const _hoisted_3$
|
|
6984
|
-
const _hoisted_4$
|
|
6982
|
+
const _hoisted_3$k = { class: "key" };
|
|
6983
|
+
const _hoisted_4$e = { class: "m-0" };
|
|
6985
6984
|
const _hoisted_5$d = { key: 1 };
|
|
6986
6985
|
const _hoisted_6$8 = {
|
|
6987
6986
|
key: 0,
|
|
@@ -7039,8 +7038,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
7039
7038
|
key: field.id
|
|
7040
7039
|
}, [
|
|
7041
7040
|
unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
|
|
7042
|
-
createElementVNode("div", _hoisted_3$
|
|
7043
|
-
createElementVNode("p", _hoisted_4$
|
|
7041
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
7042
|
+
createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
|
|
7044
7043
|
]),
|
|
7045
7044
|
createVNode(unref(_sfc_main$r), {
|
|
7046
7045
|
modelValue: itemData.value,
|
|
@@ -7278,10 +7277,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7278
7277
|
}
|
|
7279
7278
|
);
|
|
7280
7279
|
const embedType = computed(() => {
|
|
7281
|
-
const
|
|
7282
|
-
if (
|
|
7283
|
-
const
|
|
7284
|
-
if (
|
|
7280
|
+
const youtubeRegex2 = /youtube\.com|youtu\.be/;
|
|
7281
|
+
if (youtubeRegex2.test(props2.src || "")) return "YouTube";
|
|
7282
|
+
const vimeoRegex2 = /vimeo\.com/;
|
|
7283
|
+
if (vimeoRegex2.test(props2.src || "")) return "Vimeo";
|
|
7285
7284
|
return null;
|
|
7286
7285
|
});
|
|
7287
7286
|
const videoUrl = computed(() => {
|
|
@@ -7289,17 +7288,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7289
7288
|
if (embedType.value) {
|
|
7290
7289
|
if (embedType.value === "YouTube") {
|
|
7291
7290
|
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];
|
|
7292
|
-
|
|
7291
|
+
const queryParams = new URLSearchParams({
|
|
7292
|
+
autoplay: props2.autoplay ? "1" : "0"
|
|
7293
|
+
});
|
|
7294
|
+
return `https://www.youtube.com/embed/${videoId}?${queryParams}`;
|
|
7293
7295
|
}
|
|
7294
7296
|
if (embedType.value === "Vimeo") {
|
|
7295
|
-
const
|
|
7296
|
-
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(
|
|
7297
|
+
const vimeoRegex2 = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/;
|
|
7298
|
+
const videoId = (_e2 = (_d = props2.src) == null ? void 0 : _d.match(vimeoRegex2)) == null ? void 0 : _e2[3];
|
|
7297
7299
|
return `https://player.vimeo.com/video/${videoId}`;
|
|
7298
7300
|
}
|
|
7299
7301
|
}
|
|
7300
7302
|
return props2.src;
|
|
7301
7303
|
});
|
|
7302
|
-
console.log("Video URL:", videoUrl.value);
|
|
7303
7304
|
return (_ctx, _cache) => {
|
|
7304
7305
|
return openBlock(), createElementBlock("div", {
|
|
7305
7306
|
class: normalizeClass(["bgl_vid", { vid_empty: !_ctx.src }])
|
|
@@ -7310,7 +7311,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7310
7311
|
style: normalizeStyle({ aspectRatio: aspectRatio.value }),
|
|
7311
7312
|
frameborder: "0",
|
|
7312
7313
|
allowfullscreen: "",
|
|
7313
|
-
title: "Video"
|
|
7314
|
+
title: "Video",
|
|
7315
|
+
allow: "autoplay"
|
|
7314
7316
|
}, null, 12, _hoisted_1$z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
7315
7317
|
key: 1,
|
|
7316
7318
|
src: _ctx.src,
|
|
@@ -7325,7 +7327,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
7325
7327
|
};
|
|
7326
7328
|
}
|
|
7327
7329
|
});
|
|
7328
|
-
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-
|
|
7330
|
+
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-8495afe2"]]);
|
|
7329
7331
|
const _hoisted_1$y = {
|
|
7330
7332
|
key: 0,
|
|
7331
7333
|
class: "blocker"
|
|
@@ -7937,7 +7939,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
7937
7939
|
});
|
|
7938
7940
|
const _hoisted_1$u = ["title"];
|
|
7939
7941
|
const _hoisted_2$o = ["id", "required"];
|
|
7940
|
-
const _hoisted_3$
|
|
7942
|
+
const _hoisted_3$j = ["for"];
|
|
7941
7943
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
7942
7944
|
__name: "CheckInput",
|
|
7943
7945
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -7977,7 +7979,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
7977
7979
|
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
7978
7980
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
7979
7981
|
], true)
|
|
7980
|
-
], 8, _hoisted_3$
|
|
7982
|
+
], 8, _hoisted_3$j)
|
|
7981
7983
|
], 10, _hoisted_1$u);
|
|
7982
7984
|
};
|
|
7983
7985
|
}
|
|
@@ -16488,7 +16490,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
16488
16490
|
});
|
|
16489
16491
|
const _hoisted_1$s = ["title"];
|
|
16490
16492
|
const _hoisted_2$m = { key: 0 };
|
|
16491
|
-
const _hoisted_3$
|
|
16493
|
+
const _hoisted_3$i = ["value", "placeholder"];
|
|
16492
16494
|
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
16493
16495
|
__name: "JSONInput",
|
|
16494
16496
|
props: {
|
|
@@ -16520,7 +16522,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
16520
16522
|
class: normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
16521
16523
|
placeholder: _ctx.placeholder,
|
|
16522
16524
|
onInput: handleInput
|
|
16523
|
-
}, null, 42, _hoisted_3$
|
|
16525
|
+
}, null, 42, _hoisted_3$i)
|
|
16524
16526
|
], 10, _hoisted_1$s);
|
|
16525
16527
|
};
|
|
16526
16528
|
}
|
|
@@ -16528,8 +16530,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
16528
16530
|
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
16529
16531
|
const _hoisted_1$r = { class: "flex gap-05" };
|
|
16530
16532
|
const _hoisted_2$l = ["disabled"];
|
|
16531
|
-
const _hoisted_3$
|
|
16532
|
-
const _hoisted_4$
|
|
16533
|
+
const _hoisted_3$h = { key: 1 };
|
|
16534
|
+
const _hoisted_4$d = {
|
|
16533
16535
|
key: 2,
|
|
16534
16536
|
class: "ms-auto ps-05 me-05"
|
|
16535
16537
|
};
|
|
@@ -16747,8 +16749,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16747
16749
|
key: 0,
|
|
16748
16750
|
icon: _ctx.icon
|
|
16749
16751
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
16750
|
-
!_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
16751
|
-
_ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16752
|
+
!_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$h, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
|
|
16753
|
+
_ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
16752
16754
|
createVNode(unref(Btn), {
|
|
16753
16755
|
flat: "",
|
|
16754
16756
|
thin: "",
|
|
@@ -19263,8 +19265,8 @@ const VueDraggableNext = defineComponent({
|
|
|
19263
19265
|
});
|
|
19264
19266
|
const _hoisted_1$q = ["title"];
|
|
19265
19267
|
const _hoisted_2$k = { class: "bagel-input" };
|
|
19266
|
-
const _hoisted_3$
|
|
19267
|
-
const _hoisted_4$
|
|
19268
|
+
const _hoisted_3$g = { class: "table-side-scroll" };
|
|
19269
|
+
const _hoisted_4$c = { class: "table-header" };
|
|
19268
19270
|
const _hoisted_5$b = { class: "table-reorder" };
|
|
19269
19271
|
const _hoisted_6$6 = { class: "table-action" };
|
|
19270
19272
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
@@ -19335,8 +19337,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19335
19337
|
createElementVNode("div", _hoisted_2$k, [
|
|
19336
19338
|
createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
19337
19339
|
]),
|
|
19338
|
-
createElementVNode("div", _hoisted_3$
|
|
19339
|
-
createElementVNode("div", _hoisted_4$
|
|
19340
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
19341
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
19340
19342
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
19341
19343
|
return openBlock(), createElementBlock("div", {
|
|
19342
19344
|
key: `${field.fieldname}header`,
|
|
@@ -19414,8 +19416,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
19414
19416
|
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-515f5dc9"]]);
|
|
19415
19417
|
const _hoisted_1$p = ["title"];
|
|
19416
19418
|
const _hoisted_2$j = ["for"];
|
|
19417
|
-
const _hoisted_3$
|
|
19418
|
-
const _hoisted_4$
|
|
19419
|
+
const _hoisted_3$f = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
19420
|
+
const _hoisted_4$b = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
19419
19421
|
const _hoisted_5$a = { key: 2 };
|
|
19420
19422
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
19421
19423
|
__name: "TextInput",
|
|
@@ -19509,7 +19511,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19509
19511
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
19510
19512
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
19511
19513
|
onInput: updateInputVal
|
|
19512
|
-
}), null, 16, _hoisted_3$
|
|
19514
|
+
}), null, 16, _hoisted_3$f)), [
|
|
19513
19515
|
[
|
|
19514
19516
|
vModelDynamic,
|
|
19515
19517
|
unref(inputVal),
|
|
@@ -19533,7 +19535,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
19533
19535
|
onInput: updateInputVal,
|
|
19534
19536
|
onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
|
|
19535
19537
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
|
|
19536
|
-
}), null, 16, _hoisted_4$
|
|
19538
|
+
}), null, 16, _hoisted_4$b)), [
|
|
19537
19539
|
[vModelText, unref(inputVal)]
|
|
19538
19540
|
]),
|
|
19539
19541
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$a, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
|
|
@@ -19626,11 +19628,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
19626
19628
|
});
|
|
19627
19629
|
const _hoisted_1$m = { class: "datetime-wrap" };
|
|
19628
19630
|
const _hoisted_2$h = { class: "date-wrap" };
|
|
19629
|
-
const _hoisted_3$
|
|
19631
|
+
const _hoisted_3$e = {
|
|
19630
19632
|
key: 0,
|
|
19631
19633
|
class: "time-wrap"
|
|
19632
19634
|
};
|
|
19633
|
-
const _hoisted_4$
|
|
19635
|
+
const _hoisted_4$a = ["id", "name", "value"];
|
|
19634
19636
|
const _hoisted_5$9 = ["for"];
|
|
19635
19637
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
19636
19638
|
__name: "DatePicker",
|
|
@@ -19680,7 +19682,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19680
19682
|
_: 1
|
|
19681
19683
|
}, 16, ["modelValue", "allowed-dates", "disabled-dates"])
|
|
19682
19684
|
]),
|
|
19683
|
-
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
19685
|
+
_ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
|
|
19684
19686
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
|
|
19685
19687
|
return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
|
|
19686
19688
|
withDirectives(createElementVNode("input", {
|
|
@@ -19689,7 +19691,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19689
19691
|
type: "radio",
|
|
19690
19692
|
name: _ctx.label,
|
|
19691
19693
|
value: hr2
|
|
19692
|
-
}, null, 8, _hoisted_4$
|
|
19694
|
+
}, null, 8, _hoisted_4$a), [
|
|
19693
19695
|
[vModelRadio, selectedHour.value]
|
|
19694
19696
|
]),
|
|
19695
19697
|
createElementVNode("label", {
|
|
@@ -19704,8 +19706,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
19704
19706
|
});
|
|
19705
19707
|
const _hoisted_1$l = { class: "bagel-input" };
|
|
19706
19708
|
const _hoisted_2$g = { class: "pb-025" };
|
|
19707
|
-
const _hoisted_3$
|
|
19708
|
-
const _hoisted_4$
|
|
19709
|
+
const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
|
|
19710
|
+
const _hoisted_4$9 = ["id", "name", "value", "checked"];
|
|
19709
19711
|
const _hoisted_5$8 = ["for"];
|
|
19710
19712
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
19711
19713
|
__name: "RadioPillsInput",
|
|
@@ -19750,7 +19752,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19750
19752
|
return (_ctx, _cache) => {
|
|
19751
19753
|
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
19752
19754
|
createElementVNode("label", _hoisted_2$g, toDisplayString(_ctx.label), 1),
|
|
19753
|
-
createElementVNode("div", _hoisted_3$
|
|
19755
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
19754
19756
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
|
|
19755
19757
|
return openBlock(), createElementBlock("div", {
|
|
19756
19758
|
key: index2,
|
|
@@ -19763,7 +19765,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19763
19765
|
value: getValue(option2),
|
|
19764
19766
|
checked: unref(selectedValue) === getValue(option2),
|
|
19765
19767
|
onChange: handleSelect
|
|
19766
|
-
}, null, 40, _hoisted_4$
|
|
19768
|
+
}, null, 40, _hoisted_4$9),
|
|
19767
19769
|
createElementVNode("label", {
|
|
19768
19770
|
for: `${_ctx.id}-${getValue(option2)}`
|
|
19769
19771
|
}, toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
|
|
@@ -19780,8 +19782,8 @@ const _hoisted_2$f = {
|
|
|
19780
19782
|
key: 0,
|
|
19781
19783
|
class: "bgl-multi-preview"
|
|
19782
19784
|
};
|
|
19783
|
-
const _hoisted_3$
|
|
19784
|
-
const _hoisted_4$
|
|
19785
|
+
const _hoisted_3$c = ["src"];
|
|
19786
|
+
const _hoisted_4$8 = { class: "m-0" };
|
|
19785
19787
|
const _hoisted_5$7 = ["width", "src"];
|
|
19786
19788
|
const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
|
|
19787
19789
|
const _hoisted_7$2 = {
|
|
@@ -19856,6 +19858,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19856
19858
|
},
|
|
19857
19859
|
{ immediate: true }
|
|
19858
19860
|
);
|
|
19861
|
+
watch(() => props2.modelValue, () => {
|
|
19862
|
+
const newModelValue = props2.modelValue || [];
|
|
19863
|
+
const currentValue = [file_bindkeys.value].flat();
|
|
19864
|
+
const newValue = [newModelValue].flat();
|
|
19865
|
+
const isSame = currentValue.every((id) => newValue.includes(id)) && newValue.every((id) => currentValue.includes(id)) && currentValue.length === newValue.length;
|
|
19866
|
+
if (!isSame) {
|
|
19867
|
+
file_bindkeys.value = newModelValue;
|
|
19868
|
+
for (const fle of storageFiles.value) {
|
|
19869
|
+
const index2 = [file_bindkeys.value].flat().findIndex((key) => fle[bindKey2] === key);
|
|
19870
|
+
if (index2 === -1) storageFiles.value.splice(index2, 1);
|
|
19871
|
+
}
|
|
19872
|
+
}
|
|
19873
|
+
});
|
|
19859
19874
|
function updateModelValue() {
|
|
19860
19875
|
let idValue;
|
|
19861
19876
|
if (props2.multiple) {
|
|
@@ -19964,14 +19979,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19964
19979
|
class: "multi-preview",
|
|
19965
19980
|
src: file.url,
|
|
19966
19981
|
alt: ""
|
|
19967
|
-
}, null, 8, _hoisted_3$
|
|
19982
|
+
}, null, 8, _hoisted_3$c)), [
|
|
19968
19983
|
[_directive_lightbox]
|
|
19969
19984
|
]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
19970
19985
|
key: 1,
|
|
19971
19986
|
icon: "draft",
|
|
19972
19987
|
class: "multi-preview"
|
|
19973
19988
|
})),
|
|
19974
|
-
createElementVNode("p", _hoisted_4$
|
|
19989
|
+
createElementVNode("p", _hoisted_4$8, toDisplayString(file.name), 1),
|
|
19975
19990
|
createVNode(unref(Btn), {
|
|
19976
19991
|
thin: "",
|
|
19977
19992
|
flat: "",
|
|
@@ -20076,14 +20091,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20076
20091
|
};
|
|
20077
20092
|
}
|
|
20078
20093
|
});
|
|
20079
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
20094
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a0ae528d"]]);
|
|
20080
20095
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
20081
20096
|
const _hoisted_1$j = ["title"];
|
|
20082
20097
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
20083
|
-
const _hoisted_3$
|
|
20098
|
+
const _hoisted_3$b = [
|
|
20084
20099
|
_hoisted_2$e
|
|
20085
20100
|
];
|
|
20086
|
-
const _hoisted_4$
|
|
20101
|
+
const _hoisted_4$7 = ["id", "required"];
|
|
20087
20102
|
const _hoisted_5$6 = ["for"];
|
|
20088
20103
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
20089
20104
|
__name: "ToggleInput",
|
|
@@ -20113,13 +20128,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20113
20128
|
}, [
|
|
20114
20129
|
createElementVNode("div", {
|
|
20115
20130
|
class: normalizeClass(["switch", { checked: checked.value }])
|
|
20116
|
-
}, _hoisted_3$
|
|
20131
|
+
}, _hoisted_3$b, 2),
|
|
20117
20132
|
withDirectives(createElementVNode("input", {
|
|
20118
20133
|
id: inputId.value,
|
|
20119
20134
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
20120
20135
|
type: "checkbox",
|
|
20121
20136
|
required: _ctx.required
|
|
20122
|
-
}, null, 8, _hoisted_4$
|
|
20137
|
+
}, null, 8, _hoisted_4$7), [
|
|
20123
20138
|
[vModelCheckbox, checked.value]
|
|
20124
20139
|
]),
|
|
20125
20140
|
createElementVNode("label", { for: inputId.value }, [
|
|
@@ -46286,8 +46301,8 @@ function parsePhoneNumber() {
|
|
|
46286
46301
|
}
|
|
46287
46302
|
const _hoisted_1$h = ["aria-expanded"];
|
|
46288
46303
|
const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
|
|
46289
|
-
const _hoisted_3$
|
|
46290
|
-
const _hoisted_4$
|
|
46304
|
+
const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
|
|
46305
|
+
const _hoisted_4$6 = { class: "tel-country" };
|
|
46291
46306
|
const _hoisted_5$5 = { key: 1 };
|
|
46292
46307
|
const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
46293
46308
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
@@ -46587,9 +46602,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46587
46602
|
key: 0,
|
|
46588
46603
|
country: pb.iso2
|
|
46589
46604
|
}, null, 8, ["country"])) : createCommentVNode("", true),
|
|
46590
|
-
createElementVNode("p", _hoisted_4$
|
|
46605
|
+
createElementVNode("p", _hoisted_4$6, toDisplayString(pb.name), 1),
|
|
46591
46606
|
computedDropDownOptions.value.showDialCodeInList ? (openBlock(), createElementBlock("span", _hoisted_5$5, " +" + toDisplayString(pb.dialCode), 1)) : createCommentVNode("", true)
|
|
46592
|
-
], 40, _hoisted_3$
|
|
46607
|
+
], 40, _hoisted_3$a);
|
|
46593
46608
|
}), 128))
|
|
46594
46609
|
], 2)
|
|
46595
46610
|
])
|
|
@@ -47387,23 +47402,22 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
47387
47402
|
emits: ["action"],
|
|
47388
47403
|
setup(__props, { emit: __emit }) {
|
|
47389
47404
|
const emit2 = __emit;
|
|
47390
|
-
ref(null);
|
|
47391
|
-
ref(null);
|
|
47392
47405
|
const toolbarOptions = [
|
|
47393
47406
|
{ name: "separator" },
|
|
47394
|
-
{ name: "bold", icon: "format_bold" },
|
|
47395
|
-
{ name: "italic", icon: "format_italic" },
|
|
47396
|
-
{ name: "underline", icon: "format_underlined" },
|
|
47407
|
+
{ name: "bold", label: "Bold", icon: "format_bold" },
|
|
47408
|
+
{ name: "italic", label: "Italic", icon: "format_italic" },
|
|
47409
|
+
{ name: "underline", label: "Underline", icon: "format_underlined" },
|
|
47397
47410
|
{ name: "separator" },
|
|
47398
|
-
{ name: "orderedList", icon: "format_list_numbered" },
|
|
47399
|
-
{ name: "unorderedList", icon: "format_list_bulleted" },
|
|
47411
|
+
{ name: "orderedList", label: "Ordered List", icon: "format_list_numbered" },
|
|
47412
|
+
{ name: "unorderedList", label: "Unordered List", icon: "format_list_bulleted" },
|
|
47400
47413
|
{ name: "separator" },
|
|
47401
|
-
{ name: "link", icon: "add_link" },
|
|
47402
|
-
{ name: "image", icon: "add_photo_alternate" },
|
|
47403
|
-
{ name: "youtube", icon: "youtube_activity" },
|
|
47414
|
+
{ name: "link", label: "Link", icon: "add_link" },
|
|
47415
|
+
{ name: "image", label: "Image", icon: "add_photo_alternate" },
|
|
47416
|
+
{ name: "youtube", label: "YouTube", icon: "youtube_activity" },
|
|
47404
47417
|
{ name: "separator" },
|
|
47405
|
-
{ name: "splitView", icon: "code" },
|
|
47406
|
-
{ name: "clear", icon: "format_clear" }
|
|
47418
|
+
{ name: "splitView", label: "Split View", icon: "code" },
|
|
47419
|
+
{ name: "clear", label: "Clear Formatting", icon: "format_clear" },
|
|
47420
|
+
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
47407
47421
|
];
|
|
47408
47422
|
function handleSelectChange(selectedOption) {
|
|
47409
47423
|
emit2("action", "formatBlock", selectedOption);
|
|
@@ -47422,12 +47436,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
47422
47436
|
key: action.name,
|
|
47423
47437
|
thin: "",
|
|
47424
47438
|
flat: "",
|
|
47425
|
-
class: "rounded",
|
|
47439
|
+
class: normalizeClass([action.class, "rounded"]),
|
|
47426
47440
|
"aria-label": action.name,
|
|
47427
47441
|
icon: action.icon,
|
|
47428
47442
|
onClick: ($event) => emit2("action", action.name)
|
|
47429
|
-
}, null, 8, ["aria-label", "icon", "onClick"])), [
|
|
47430
|
-
[_directive_tooltip, action.
|
|
47443
|
+
}, null, 8, ["class", "aria-label", "icon", "onClick"])), [
|
|
47444
|
+
[_directive_tooltip, action.label]
|
|
47431
47445
|
]) : createCommentVNode("", true),
|
|
47432
47446
|
action.name === "separator" ? (openBlock(), createElementBlock("span", {
|
|
47433
47447
|
key: `separator-${index2}`,
|
|
@@ -47612,7 +47626,9 @@ function createTable() {
|
|
|
47612
47626
|
}
|
|
47613
47627
|
}
|
|
47614
47628
|
const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
|
|
47615
|
-
const _hoisted_2$b = {
|
|
47629
|
+
const _hoisted_2$b = { class: "editor-container flex flex-stretch gap-1 m_column" };
|
|
47630
|
+
const _hoisted_3$9 = { class: "content-area rounded p-1 bg-white shadow-light w-100 grid" };
|
|
47631
|
+
const _hoisted_4$5 = {
|
|
47616
47632
|
key: 0,
|
|
47617
47633
|
class: "preview-area bg-black color-white w-100 rounded p-1"
|
|
47618
47634
|
};
|
|
@@ -47651,7 +47667,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47651
47667
|
"splitView",
|
|
47652
47668
|
"youtube",
|
|
47653
47669
|
"codeView",
|
|
47654
|
-
"clear"
|
|
47670
|
+
"clear",
|
|
47671
|
+
"fullScreen"
|
|
47655
47672
|
];
|
|
47656
47673
|
const config = ref(props2.toolbarConfig || defaultConfig2);
|
|
47657
47674
|
let contentHtml = ref(props2.modelValue);
|
|
@@ -47687,12 +47704,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47687
47704
|
case "codeView":
|
|
47688
47705
|
isCodeView.value = !isCodeView.value;
|
|
47689
47706
|
break;
|
|
47707
|
+
case "fullScreen":
|
|
47708
|
+
toggleFullScreen();
|
|
47709
|
+
break;
|
|
47690
47710
|
default:
|
|
47691
47711
|
applyFormatting(action, value);
|
|
47692
47712
|
break;
|
|
47693
47713
|
}
|
|
47694
47714
|
updateContent();
|
|
47695
47715
|
}
|
|
47716
|
+
function toggleFullScreen() {
|
|
47717
|
+
const editor = document.querySelector(".rich-text-editor");
|
|
47718
|
+
if (editor) {
|
|
47719
|
+
editor.classList.toggle("fullscreen-mode");
|
|
47720
|
+
}
|
|
47721
|
+
}
|
|
47696
47722
|
watch(() => props2.modelValue, (newValue) => {
|
|
47697
47723
|
if (newValue !== contentHtml.value) {
|
|
47698
47724
|
contentHtml.value = newValue;
|
|
@@ -47738,12 +47764,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47738
47764
|
config: config.value,
|
|
47739
47765
|
onAction: handleToolbarAction
|
|
47740
47766
|
}, null, 8, ["config"]),
|
|
47741
|
-
createElementVNode("div",
|
|
47742
|
-
|
|
47743
|
-
}, [
|
|
47744
|
-
createElementVNode("div", {
|
|
47745
|
-
class: normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": unref(isCodeView) }])
|
|
47746
|
-
}, [
|
|
47767
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
47768
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
47747
47769
|
unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
47748
47770
|
key: 0,
|
|
47749
47771
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
|
|
@@ -47762,14 +47784,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47762
47784
|
onInput: updateContent,
|
|
47763
47785
|
onKeydown: handleKeyDown2
|
|
47764
47786
|
}, null, 544))
|
|
47765
|
-
]
|
|
47766
|
-
unref(isSplitView) ? (openBlock(), createElementBlock("code",
|
|
47767
|
-
]
|
|
47787
|
+
]),
|
|
47788
|
+
unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_4$5, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
|
|
47789
|
+
])
|
|
47768
47790
|
]);
|
|
47769
47791
|
};
|
|
47770
47792
|
}
|
|
47771
47793
|
});
|
|
47772
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
47794
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-c9729efd"]]);
|
|
47773
47795
|
const _hoisted_1$d = ["for"];
|
|
47774
47796
|
const _hoisted_2$a = ["id", "name", "value"];
|
|
47775
47797
|
const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|