@bagelink/vue 0.0.1109 → 0.0.1111
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/form/inputs/FileUpload.vue.d.ts +2 -6
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/index.cjs +237 -237
- package/dist/index.mjs +237 -237
- package/dist/style.css +41 -41
- package/package.json +1 -1
- package/src/components/form/inputs/FileUpload.vue +6 -8
package/dist/index.cjs
CHANGED
|
@@ -19756,114 +19756,15 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
19756
19756
|
};
|
|
19757
19757
|
}
|
|
19758
19758
|
});
|
|
19759
|
-
const _hoisted_1$A = {
|
|
19760
|
-
const _hoisted_2$p =
|
|
19761
|
-
const _hoisted_3$k = ["src", "alt", "width", "height"];
|
|
19762
|
-
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
19763
|
-
__name: "Image",
|
|
19764
|
-
props: {
|
|
19765
|
-
src: {},
|
|
19766
|
-
pathKey: {},
|
|
19767
|
-
alt: { default: "" },
|
|
19768
|
-
width: {},
|
|
19769
|
-
height: {},
|
|
19770
|
-
caption: {}
|
|
19771
|
-
},
|
|
19772
|
-
setup(__props) {
|
|
19773
|
-
let imageSrc = vue.ref(null);
|
|
19774
|
-
const fileBaseUrl = vue.computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19775
|
-
function pathToUrl() {
|
|
19776
|
-
var _a2;
|
|
19777
|
-
if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
|
|
19778
|
-
return `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19779
|
-
}
|
|
19780
|
-
async function loadImage() {
|
|
19781
|
-
var _a2;
|
|
19782
|
-
const url = __props.src || pathToUrl();
|
|
19783
|
-
console.log(url);
|
|
19784
|
-
if (!url) {
|
|
19785
|
-
imageSrc.value = null;
|
|
19786
|
-
return;
|
|
19787
|
-
}
|
|
19788
|
-
const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
|
|
19789
|
-
if (ext === "heic") {
|
|
19790
|
-
if (!("caches" in window)) {
|
|
19791
|
-
console.warn("Caching is not available. Proceeding without cache.");
|
|
19792
|
-
} else {
|
|
19793
|
-
try {
|
|
19794
|
-
const imgCache = await window.caches.open("img-cache");
|
|
19795
|
-
const cachedResponse = await imgCache.match(url);
|
|
19796
|
-
if (cachedResponse) {
|
|
19797
|
-
imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
|
|
19798
|
-
return;
|
|
19799
|
-
}
|
|
19800
|
-
} catch (error) {
|
|
19801
|
-
console.warn("Error accessing cache:", error);
|
|
19802
|
-
}
|
|
19803
|
-
}
|
|
19804
|
-
try {
|
|
19805
|
-
await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
|
|
19806
|
-
const response = await fetch(url);
|
|
19807
|
-
const blob = await response.blob();
|
|
19808
|
-
const convertedBlob = await window.heic2any({ blob });
|
|
19809
|
-
imageSrc.value = URL.createObjectURL(convertedBlob);
|
|
19810
|
-
if ("caches" in window) {
|
|
19811
|
-
try {
|
|
19812
|
-
const imgCache = await window.caches.open("img-cache");
|
|
19813
|
-
imgCache.put(url, new Response(convertedBlob));
|
|
19814
|
-
} catch (cacheError) {
|
|
19815
|
-
console.warn("Failed to cache the image:", cacheError);
|
|
19816
|
-
}
|
|
19817
|
-
}
|
|
19818
|
-
} catch (error) {
|
|
19819
|
-
console.error("Error converting HEIC file:", error);
|
|
19820
|
-
}
|
|
19821
|
-
} else {
|
|
19822
|
-
imageSrc.value = url;
|
|
19823
|
-
}
|
|
19824
|
-
}
|
|
19825
|
-
vue.watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
|
|
19826
|
-
return (_ctx, _cache) => {
|
|
19827
|
-
return _ctx.caption ? (vue.openBlock(), vue.createElementBlock("figcaption", _hoisted_1$A, [
|
|
19828
|
-
vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
19829
|
-
key: 0,
|
|
19830
|
-
src: vue.unref(imageSrc)
|
|
19831
|
-
}, _ctx.$attrs, {
|
|
19832
|
-
alt: _ctx.alt,
|
|
19833
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19834
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19835
|
-
}), null, 16, _hoisted_2$p)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
19836
|
-
key: 1,
|
|
19837
|
-
class: "img-web-kit",
|
|
19838
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19839
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19840
|
-
}, null, 8, ["width", "height"]))
|
|
19841
|
-
])) : vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
19842
|
-
key: 1,
|
|
19843
|
-
src: vue.unref(imageSrc)
|
|
19844
|
-
}, _ctx.$attrs, {
|
|
19845
|
-
alt: _ctx.alt,
|
|
19846
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19847
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19848
|
-
}), null, 16, _hoisted_3$k)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
19849
|
-
key: 2,
|
|
19850
|
-
class: "img-web-kit",
|
|
19851
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19852
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19853
|
-
}, null, 8, ["width", "height"]));
|
|
19854
|
-
};
|
|
19855
|
-
}
|
|
19856
|
-
});
|
|
19857
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-29509e85"]]);
|
|
19858
|
-
const _hoisted_1$z = { class: "bagel-input" };
|
|
19859
|
-
const _hoisted_2$o = {
|
|
19759
|
+
const _hoisted_1$A = { class: "bagel-input" };
|
|
19760
|
+
const _hoisted_2$p = {
|
|
19860
19761
|
key: 0,
|
|
19861
19762
|
placeholder: "required",
|
|
19862
19763
|
type: "text",
|
|
19863
19764
|
required: "",
|
|
19864
19765
|
class: "pixel"
|
|
19865
19766
|
};
|
|
19866
|
-
const _hoisted_3$
|
|
19767
|
+
const _hoisted_3$k = { class: "m-05 flex opacity-7 z-99" };
|
|
19867
19768
|
const _hoisted_4$d = { class: "ellipsis-1 word-break-all h-20 m-0" };
|
|
19868
19769
|
const _hoisted_5$c = {
|
|
19869
19770
|
key: 1,
|
|
@@ -19893,7 +19794,7 @@ const _hoisted_13$2 = {
|
|
|
19893
19794
|
class: "progress"
|
|
19894
19795
|
};
|
|
19895
19796
|
const _hoisted_14$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
19896
|
-
const _sfc_main$
|
|
19797
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
19897
19798
|
__name: "FileUpload",
|
|
19898
19799
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
19899
19800
|
label: {},
|
|
@@ -20065,9 +19966,9 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20065
19966
|
return (_ctx, _cache) => {
|
|
20066
19967
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
20067
19968
|
const _directive_lightbox = vue.resolveDirective("lightbox");
|
|
20068
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19969
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
20069
19970
|
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
20070
|
-
_ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$
|
|
19971
|
+
_ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$p)) : vue.createCommentVNode("", true),
|
|
20071
19972
|
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
20072
19973
|
key: 1,
|
|
20073
19974
|
outline: "",
|
|
@@ -20093,7 +19994,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20093
19994
|
key: file.id,
|
|
20094
19995
|
class: "txt-gray txt-12 flex"
|
|
20095
19996
|
}, [
|
|
20096
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19997
|
+
vue.createElementVNode("div", _hoisted_3$k, [
|
|
20097
19998
|
vue.withDirectives(vue.createVNode(vue.unref(Btn), {
|
|
20098
19999
|
color: "gray",
|
|
20099
20000
|
thin: "",
|
|
@@ -20163,7 +20064,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20163
20064
|
key: file.id,
|
|
20164
20065
|
class: "multi-image-item-preview"
|
|
20165
20066
|
}, [
|
|
20166
|
-
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createBlock(Image$1, {
|
|
20067
|
+
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createBlock(vue.unref(Image$1), {
|
|
20167
20068
|
key: 0,
|
|
20168
20069
|
class: "multi-preview",
|
|
20169
20070
|
src: file.url,
|
|
@@ -20191,7 +20092,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20191
20092
|
class: "multi-image-item-preview"
|
|
20192
20093
|
}, [
|
|
20193
20094
|
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
20194
|
-
_ctx.multiple ? (vue.openBlock(), vue.createBlock(Image$1, {
|
|
20095
|
+
_ctx.multiple ? (vue.openBlock(), vue.createBlock(vue.unref(Image$1), {
|
|
20195
20096
|
key: 0,
|
|
20196
20097
|
width: _ctx.width || "220",
|
|
20197
20098
|
class: "multi-preview",
|
|
@@ -20254,7 +20155,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20254
20155
|
])
|
|
20255
20156
|
]),
|
|
20256
20157
|
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
|
|
20257
|
-
vue.withDirectives(vue.createVNode(Image$1, {
|
|
20158
|
+
vue.withDirectives(vue.createVNode(vue.unref(Image$1), {
|
|
20258
20159
|
class: "single-preview",
|
|
20259
20160
|
src: file.url,
|
|
20260
20161
|
alt: ""
|
|
@@ -20287,7 +20188,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20287
20188
|
icon: "check"
|
|
20288
20189
|
})
|
|
20289
20190
|
], 6),
|
|
20290
|
-
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createBlock(Image$1, {
|
|
20191
|
+
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createBlock(vue.unref(Image$1), {
|
|
20291
20192
|
key: 0,
|
|
20292
20193
|
class: "single-preview",
|
|
20293
20194
|
src: fileToUrl(fileQ.file),
|
|
@@ -20313,11 +20214,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20313
20214
|
};
|
|
20314
20215
|
}
|
|
20315
20216
|
});
|
|
20316
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20317
|
-
const _hoisted_1$
|
|
20318
|
-
const _hoisted_2$
|
|
20319
|
-
const _hoisted_3$
|
|
20320
|
-
const _sfc_main$
|
|
20217
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-133a8c7a"]]);
|
|
20218
|
+
const _hoisted_1$z = ["title"];
|
|
20219
|
+
const _hoisted_2$o = { key: 0 };
|
|
20220
|
+
const _hoisted_3$j = ["value", "placeholder"];
|
|
20221
|
+
const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
20321
20222
|
__name: "JSONInput",
|
|
20322
20223
|
props: {
|
|
20323
20224
|
description: { default: "" },
|
|
@@ -20340,7 +20241,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
20340
20241
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
20341
20242
|
title: _ctx.description
|
|
20342
20243
|
}, [
|
|
20343
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
20244
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$o, [
|
|
20344
20245
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
20345
20246
|
])) : vue.createCommentVNode("", true),
|
|
20346
20247
|
vue.createElementVNode("textarea", {
|
|
@@ -20348,20 +20249,20 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
20348
20249
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
20349
20250
|
placeholder: _ctx.placeholder,
|
|
20350
20251
|
onInput: handleInput
|
|
20351
|
-
}, null, 42, _hoisted_3$
|
|
20352
|
-
], 10, _hoisted_1$
|
|
20252
|
+
}, null, 42, _hoisted_3$j)
|
|
20253
|
+
], 10, _hoisted_1$z);
|
|
20353
20254
|
};
|
|
20354
20255
|
}
|
|
20355
20256
|
});
|
|
20356
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20357
|
-
const _hoisted_1$
|
|
20358
|
-
const _hoisted_2$
|
|
20359
|
-
const _hoisted_3$
|
|
20257
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
20258
|
+
const _hoisted_1$y = ["for"];
|
|
20259
|
+
const _hoisted_2$n = ["id", "placeholder", "disabled", "required", "readonly", "onKeydown"];
|
|
20260
|
+
const _hoisted_3$i = { key: 1 };
|
|
20360
20261
|
const _hoisted_4$c = {
|
|
20361
20262
|
key: 5,
|
|
20362
20263
|
class: "flex column spinner"
|
|
20363
20264
|
};
|
|
20364
|
-
const _sfc_main$
|
|
20265
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
20365
20266
|
__name: "NumberInput",
|
|
20366
20267
|
props: {
|
|
20367
20268
|
modelValue: {},
|
|
@@ -20464,7 +20365,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20464
20365
|
vue.withKeys(vue.withModifiers(increment, ["prevent"]), ["up"]),
|
|
20465
20366
|
vue.withKeys(vue.withModifiers(decrement, ["prevent"]), ["down"])
|
|
20466
20367
|
]
|
|
20467
|
-
}, null, 42, _hoisted_2$
|
|
20368
|
+
}, null, 42, _hoisted_2$n), [
|
|
20468
20369
|
[
|
|
20469
20370
|
vue.vModelText,
|
|
20470
20371
|
vue.unref(formattedValue),
|
|
@@ -20478,7 +20379,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20478
20379
|
{ number: true }
|
|
20479
20380
|
]
|
|
20480
20381
|
]),
|
|
20481
|
-
_ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$
|
|
20382
|
+
_ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$i, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true),
|
|
20482
20383
|
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
|
|
20483
20384
|
key: 2,
|
|
20484
20385
|
class: "iconStart",
|
|
@@ -20517,14 +20418,14 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20517
20418
|
}, null, 8, ["disabled"])
|
|
20518
20419
|
])) : vue.createCommentVNode("", true)
|
|
20519
20420
|
], 2)
|
|
20520
|
-
], 8, _hoisted_1$
|
|
20421
|
+
], 8, _hoisted_1$y)
|
|
20521
20422
|
], 2);
|
|
20522
20423
|
};
|
|
20523
20424
|
}
|
|
20524
20425
|
});
|
|
20525
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20526
|
-
const _hoisted_1$
|
|
20527
|
-
const _sfc_main$
|
|
20426
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f265687e"]]);
|
|
20427
|
+
const _hoisted_1$x = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
20428
|
+
const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
20528
20429
|
__name: "OTP",
|
|
20529
20430
|
props: {
|
|
20530
20431
|
digitCount: {},
|
|
@@ -20622,16 +20523,16 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
20622
20523
|
oninput: "this.value = this.value.slice(0, 1);",
|
|
20623
20524
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
20624
20525
|
onPaste: ($event) => handlePaste($event, ind)
|
|
20625
|
-
}, null, 40, _hoisted_1$
|
|
20526
|
+
}, null, 40, _hoisted_1$x);
|
|
20626
20527
|
}), 128))
|
|
20627
20528
|
], 512);
|
|
20628
20529
|
};
|
|
20629
20530
|
}
|
|
20630
20531
|
});
|
|
20631
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20632
|
-
const _hoisted_1$
|
|
20633
|
-
const _hoisted_2$
|
|
20634
|
-
const _sfc_main$
|
|
20532
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-5c22c199"]]);
|
|
20533
|
+
const _hoisted_1$w = { class: "relative" };
|
|
20534
|
+
const _hoisted_2$m = { class: "m-password position-bottom-end flex column justify-content-center" };
|
|
20535
|
+
const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
20635
20536
|
__name: "PasswordInput",
|
|
20636
20537
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
20637
20538
|
id: {},
|
|
@@ -20672,7 +20573,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20672
20573
|
);
|
|
20673
20574
|
const inputType = vue.computed(() => showPwd.value ? "text" : "password");
|
|
20674
20575
|
return (_ctx, _cache) => {
|
|
20675
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20576
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
20676
20577
|
vue.createVNode(vue.unref(TextInput), vue.mergeProps({
|
|
20677
20578
|
modelValue: password.value,
|
|
20678
20579
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
|
|
@@ -20680,7 +20581,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20680
20581
|
type: inputType.value,
|
|
20681
20582
|
class: "mb-0"
|
|
20682
20583
|
}), null, 16, ["modelValue", "type"]),
|
|
20683
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
20584
|
+
vue.createElementVNode("div", _hoisted_2$m, [
|
|
20684
20585
|
vue.createVNode(vue.unref(Btn), {
|
|
20685
20586
|
flat: "",
|
|
20686
20587
|
thin: "",
|
|
@@ -20693,9 +20594,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20693
20594
|
};
|
|
20694
20595
|
}
|
|
20695
20596
|
});
|
|
20696
|
-
const _hoisted_1$
|
|
20697
|
-
const _hoisted_2$
|
|
20698
|
-
const _hoisted_3$
|
|
20597
|
+
const _hoisted_1$v = ["for"];
|
|
20598
|
+
const _hoisted_2$l = ["id", "name", "value", "required"];
|
|
20599
|
+
const _hoisted_3$h = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|
|
20699
20600
|
const _hoisted_4$b = ["src", "alt"];
|
|
20700
20601
|
const _hoisted_5$b = { class: "" };
|
|
20701
20602
|
const _hoisted_6$9 = {
|
|
@@ -20706,7 +20607,7 @@ const _hoisted_7$6 = {
|
|
|
20706
20607
|
key: 1,
|
|
20707
20608
|
class: "txt-gray txt-12 m-0"
|
|
20708
20609
|
};
|
|
20709
|
-
const _sfc_main$
|
|
20610
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
20710
20611
|
__name: "RadioGroup",
|
|
20711
20612
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
20712
20613
|
groupName: {},
|
|
@@ -20736,10 +20637,10 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
20736
20637
|
name: _ctx.groupName,
|
|
20737
20638
|
value: opt.value,
|
|
20738
20639
|
required: _ctx.required
|
|
20739
|
-
}, null, 8, _hoisted_2$
|
|
20640
|
+
}, null, 8, _hoisted_2$l), [
|
|
20740
20641
|
[vue.vModelRadio, selectedOption.value]
|
|
20741
20642
|
]),
|
|
20742
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
20643
|
+
vue.createElementVNode("div", _hoisted_3$h, [
|
|
20743
20644
|
opt.imgSrc ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
20744
20645
|
key: 0,
|
|
20745
20646
|
class: "bg-popup shadow-light py-025 radius-05 m_w40",
|
|
@@ -20761,19 +20662,19 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
20761
20662
|
icon: "delete",
|
|
20762
20663
|
onClick: ($event) => _ctx.$emit("delete", opt)
|
|
20763
20664
|
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
20764
|
-
], 8, _hoisted_1$
|
|
20665
|
+
], 8, _hoisted_1$v);
|
|
20765
20666
|
}), 128))
|
|
20766
20667
|
]);
|
|
20767
20668
|
};
|
|
20768
20669
|
}
|
|
20769
20670
|
});
|
|
20770
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20771
|
-
const _hoisted_1$
|
|
20772
|
-
const _hoisted_2$
|
|
20773
|
-
const _hoisted_3$
|
|
20671
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-3c77be46"]]);
|
|
20672
|
+
const _hoisted_1$u = { class: "bagel-input" };
|
|
20673
|
+
const _hoisted_2$k = { class: "pb-025" };
|
|
20674
|
+
const _hoisted_3$g = { class: "flex gap-05 flex-wrap" };
|
|
20774
20675
|
const _hoisted_4$a = ["id", "name", "value", "checked"];
|
|
20775
20676
|
const _hoisted_5$a = ["for"];
|
|
20776
|
-
const _sfc_main$
|
|
20677
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
20777
20678
|
__name: "RadioPillsInput",
|
|
20778
20679
|
props: {
|
|
20779
20680
|
options: {},
|
|
@@ -20814,9 +20715,9 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
20814
20715
|
selectedValue.value = props2.modelValue;
|
|
20815
20716
|
});
|
|
20816
20717
|
return (_ctx, _cache) => {
|
|
20817
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20818
|
-
vue.createElementVNode("label", _hoisted_2$
|
|
20819
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
20718
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
|
|
20719
|
+
vue.createElementVNode("label", _hoisted_2$k, vue.toDisplayString(_ctx.label), 1),
|
|
20720
|
+
vue.createElementVNode("div", _hoisted_3$g, [
|
|
20820
20721
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
|
|
20821
20722
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20822
20723
|
key: index2,
|
|
@@ -20840,18 +20741,18 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
20840
20741
|
};
|
|
20841
20742
|
}
|
|
20842
20743
|
});
|
|
20843
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20844
|
-
const _hoisted_1$
|
|
20845
|
-
const _hoisted_2$
|
|
20744
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-cf892d71"]]);
|
|
20745
|
+
const _hoisted_1$t = ["dir"];
|
|
20746
|
+
const _hoisted_2$j = {
|
|
20846
20747
|
key: 0,
|
|
20847
20748
|
class: "label"
|
|
20848
20749
|
};
|
|
20849
|
-
const _hoisted_3$
|
|
20750
|
+
const _hoisted_3$f = { class: "range-slider relative w-100" };
|
|
20850
20751
|
const _hoisted_4$9 = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
|
|
20851
20752
|
const _hoisted_5$9 = ["value", "min", "max", "step", "required", "disabled"];
|
|
20852
20753
|
const _hoisted_6$8 = { class: "track absolute pointer-events-none overflow-hidden round" };
|
|
20853
20754
|
const _hoisted_7$5 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
|
|
20854
|
-
const _sfc_main$
|
|
20755
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
20855
20756
|
__name: "RangeInput",
|
|
20856
20757
|
props: {
|
|
20857
20758
|
modelValue: {},
|
|
@@ -20919,8 +20820,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
20919
20820
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20920
20821
|
dir: vue.unref(rtl) ? "rtl" : "ltr"
|
|
20921
20822
|
}, [
|
|
20922
|
-
vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
20923
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
20823
|
+
vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$j, vue.toDisplayString(vue.unref(label)), 1)) : vue.createCommentVNode("", true),
|
|
20824
|
+
vue.createElementVNode("div", _hoisted_3$f, [
|
|
20924
20825
|
vue.createElementVNode("input", {
|
|
20925
20826
|
id: vue.unref(id),
|
|
20926
20827
|
value: validFrom.value,
|
|
@@ -21011,11 +20912,11 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
21011
20912
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(formatValue)(vue.unref(max2))), 1)
|
|
21012
20913
|
], true)
|
|
21013
20914
|
])
|
|
21014
|
-
], 8, _hoisted_1$
|
|
20915
|
+
], 8, _hoisted_1$t);
|
|
21015
20916
|
};
|
|
21016
20917
|
}
|
|
21017
20918
|
});
|
|
21018
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20919
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-e606435a"]]);
|
|
21019
20920
|
const tableTools = [
|
|
21020
20921
|
"mergeCells",
|
|
21021
20922
|
"splitCells",
|
|
@@ -21105,12 +21006,12 @@ const toolbarOptions = [
|
|
|
21105
21006
|
{ name: "separator" },
|
|
21106
21007
|
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
21107
21008
|
];
|
|
21108
|
-
const _hoisted_1$
|
|
21109
|
-
const _hoisted_2$
|
|
21110
|
-
const _hoisted_3$
|
|
21009
|
+
const _hoisted_1$s = { class: "grid grid-wrap p-05" };
|
|
21010
|
+
const _hoisted_2$i = ["onMousemove", "onClick"];
|
|
21011
|
+
const _hoisted_3$e = { class: "txt-center txt-12 color-gray" };
|
|
21111
21012
|
const fb = 1;
|
|
21112
21013
|
const base = 5;
|
|
21113
|
-
const _sfc_main$
|
|
21014
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
21114
21015
|
__name: "gridBox",
|
|
21115
21016
|
emits: ["select"],
|
|
21116
21017
|
setup(__props, { emit: __emit }) {
|
|
@@ -21126,7 +21027,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21126
21027
|
return hoveredCol.value > base - 1 ? enlarge : base;
|
|
21127
21028
|
});
|
|
21128
21029
|
return (_ctx, _cache) => {
|
|
21129
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21030
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
|
|
21130
21031
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(rowSize.value, (row) => {
|
|
21131
21032
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21132
21033
|
key: `row-${row}`,
|
|
@@ -21153,21 +21054,21 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21153
21054
|
hoveredCol.value = col;
|
|
21154
21055
|
},
|
|
21155
21056
|
onClick: ($event) => emit2("select", `${row}x${col}`)
|
|
21156
|
-
}, null, 42, _hoisted_2$
|
|
21057
|
+
}, null, 42, _hoisted_2$i);
|
|
21157
21058
|
}), 128))
|
|
21158
21059
|
], 32);
|
|
21159
21060
|
}), 128)),
|
|
21160
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
21061
|
+
vue.createElementVNode("p", _hoisted_3$e, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
|
|
21161
21062
|
]);
|
|
21162
21063
|
};
|
|
21163
21064
|
}
|
|
21164
21065
|
});
|
|
21165
|
-
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21166
|
-
const _hoisted_1$
|
|
21066
|
+
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4548b70f"]]);
|
|
21067
|
+
const _hoisted_1$r = {
|
|
21167
21068
|
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
21168
21069
|
role: "toolbar"
|
|
21169
21070
|
};
|
|
21170
|
-
const _sfc_main$
|
|
21071
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
21171
21072
|
__name: "EditorToolbar",
|
|
21172
21073
|
props: {
|
|
21173
21074
|
config: { default: defaultToolbarConfig },
|
|
@@ -21182,7 +21083,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
21182
21083
|
}
|
|
21183
21084
|
return (_ctx, _cache) => {
|
|
21184
21085
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
21185
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21086
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
|
|
21186
21087
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
21187
21088
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
21188
21089
|
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
@@ -21224,7 +21125,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
21224
21125
|
};
|
|
21225
21126
|
}
|
|
21226
21127
|
});
|
|
21227
|
-
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21128
|
+
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-33dff8fa"]]);
|
|
21228
21129
|
function createCommandExecutor(state2, commands) {
|
|
21229
21130
|
return {
|
|
21230
21131
|
execute(command, value) {
|
|
@@ -22144,12 +22045,12 @@ function useEditorKeyboard(doc, handleToolbarAction) {
|
|
|
22144
22045
|
}
|
|
22145
22046
|
});
|
|
22146
22047
|
}
|
|
22147
|
-
const _hoisted_1$
|
|
22148
|
-
const _hoisted_2$
|
|
22048
|
+
const _hoisted_1$q = { class: "content-area radius-05" };
|
|
22049
|
+
const _hoisted_2$h = {
|
|
22149
22050
|
key: 1,
|
|
22150
22051
|
class: "flex"
|
|
22151
22052
|
};
|
|
22152
|
-
const _sfc_main$
|
|
22053
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
22153
22054
|
__name: "index",
|
|
22154
22055
|
props: {
|
|
22155
22056
|
modelValue: {},
|
|
@@ -22233,7 +22134,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22233
22134
|
vue.createElementVNode("div", {
|
|
22234
22135
|
class: vue.normalizeClass(["editor-container", { "split-view": vue.unref(editor).state.isSplitView }])
|
|
22235
22136
|
}, [
|
|
22236
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
22137
|
+
vue.createElementVNode("div", _hoisted_1$q, [
|
|
22237
22138
|
vue.createElementVNode("iframe", {
|
|
22238
22139
|
id: "rich-text-iframe",
|
|
22239
22140
|
ref_key: "iframe",
|
|
@@ -22253,7 +22154,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22253
22154
|
language: "html"
|
|
22254
22155
|
}, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)
|
|
22255
22156
|
], 2),
|
|
22256
|
-
_ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
22157
|
+
_ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
|
|
22257
22158
|
_cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
|
|
22258
22159
|
vue.createVNode(vue.unref(Btn), {
|
|
22259
22160
|
thin: "",
|
|
@@ -22296,10 +22197,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22296
22197
|
};
|
|
22297
22198
|
}
|
|
22298
22199
|
});
|
|
22299
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22300
|
-
const _hoisted_1$
|
|
22301
|
-
const _hoisted_2$
|
|
22302
|
-
const _hoisted_3$
|
|
22200
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-2e74943d"]]);
|
|
22201
|
+
const _hoisted_1$p = { class: "flex gap-05" };
|
|
22202
|
+
const _hoisted_2$g = ["disabled"];
|
|
22203
|
+
const _hoisted_3$d = { key: 1 };
|
|
22303
22204
|
const _hoisted_4$8 = {
|
|
22304
22205
|
key: 2,
|
|
22305
22206
|
class: "ms-auto ps-05 me-05"
|
|
@@ -22307,7 +22208,7 @@ const _hoisted_4$8 = {
|
|
|
22307
22208
|
const _hoisted_5$8 = ["value"];
|
|
22308
22209
|
const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
|
|
22309
22210
|
const _hoisted_7$4 = { class: "block" };
|
|
22310
|
-
const _sfc_main$
|
|
22211
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
22311
22212
|
__name: "SelectInput",
|
|
22312
22213
|
props: {
|
|
22313
22214
|
options: {},
|
|
@@ -22495,7 +22396,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22495
22396
|
trigger: vue.withCtx(() => [
|
|
22496
22397
|
vue.createElementVNode("label", null, [
|
|
22497
22398
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
22498
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
22399
|
+
vue.createElementVNode("div", _hoisted_1$p, [
|
|
22499
22400
|
_ctx.searchable && vue.unref(open) ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
|
|
22500
22401
|
key: 0,
|
|
22501
22402
|
ref_key: "searchInput",
|
|
@@ -22526,7 +22427,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22526
22427
|
key: 0,
|
|
22527
22428
|
icon: _ctx.icon
|
|
22528
22429
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
22529
|
-
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$
|
|
22430
|
+
!_ctx.hideLabel ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$d, vue.toDisplayString(selectedLabel.value), 1)) : vue.createCommentVNode("", true),
|
|
22530
22431
|
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8, [
|
|
22531
22432
|
vue.createVNode(vue.unref(Btn), {
|
|
22532
22433
|
flat: "",
|
|
@@ -22543,7 +22444,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22543
22444
|
key: 3,
|
|
22544
22445
|
thin: ""
|
|
22545
22446
|
}, { icon: vue.unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : vue.createCommentVNode("", true)
|
|
22546
|
-
], 42, _hoisted_2$
|
|
22447
|
+
], 42, _hoisted_2$g)),
|
|
22547
22448
|
_ctx.required ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
22548
22449
|
key: 2,
|
|
22549
22450
|
tabindex: "-1",
|
|
@@ -22613,7 +22514,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22613
22514
|
};
|
|
22614
22515
|
}
|
|
22615
22516
|
});
|
|
22616
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22517
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-77b2541f"]]);
|
|
22617
22518
|
/*!
|
|
22618
22519
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
22619
22520
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -23210,15 +23111,15 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
23210
23111
|
return svg.outerHTML;
|
|
23211
23112
|
}
|
|
23212
23113
|
}
|
|
23213
|
-
const _hoisted_1$
|
|
23214
|
-
const _hoisted_2$
|
|
23114
|
+
const _hoisted_1$o = ["disabled"];
|
|
23115
|
+
const _hoisted_2$f = {
|
|
23215
23116
|
key: 1,
|
|
23216
23117
|
placeholder: "required",
|
|
23217
23118
|
type: "text",
|
|
23218
23119
|
required: "",
|
|
23219
23120
|
class: "pixel"
|
|
23220
23121
|
};
|
|
23221
|
-
const _sfc_main$
|
|
23122
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
23222
23123
|
__name: "SignaturePad",
|
|
23223
23124
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
23224
23125
|
sigOption: {},
|
|
@@ -23371,8 +23272,8 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
23371
23272
|
ref: vCanvas,
|
|
23372
23273
|
class: "canvas",
|
|
23373
23274
|
disabled: _ctx.disabled
|
|
23374
|
-
}, null, 8, _hoisted_1$
|
|
23375
|
-
_ctx.required && vue.unref(_isEmpty) ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$
|
|
23275
|
+
}, null, 8, _hoisted_1$o),
|
|
23276
|
+
_ctx.required && vue.unref(_isEmpty) ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$f)) : vue.createCommentVNode("", true)
|
|
23376
23277
|
], 34);
|
|
23377
23278
|
};
|
|
23378
23279
|
}
|
|
@@ -25856,13 +25757,13 @@ const VueDraggableNext = vue.defineComponent({
|
|
|
25856
25757
|
}
|
|
25857
25758
|
}
|
|
25858
25759
|
});
|
|
25859
|
-
const _hoisted_1$
|
|
25860
|
-
const _hoisted_2$
|
|
25861
|
-
const _hoisted_3$
|
|
25760
|
+
const _hoisted_1$n = ["title"];
|
|
25761
|
+
const _hoisted_2$e = { class: "bagel-input" };
|
|
25762
|
+
const _hoisted_3$c = { class: "table-side-scroll" };
|
|
25862
25763
|
const _hoisted_4$7 = { class: "table-header" };
|
|
25863
25764
|
const _hoisted_5$7 = { class: "table-reorder" };
|
|
25864
25765
|
const _hoisted_6$6 = { class: "table-action" };
|
|
25865
|
-
const _sfc_main$
|
|
25766
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
25866
25767
|
__name: "TableField",
|
|
25867
25768
|
props: {
|
|
25868
25769
|
description: { default: "" },
|
|
@@ -25927,10 +25828,10 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
25927
25828
|
class: "table-field-wrap",
|
|
25928
25829
|
title: _ctx.description
|
|
25929
25830
|
}, [
|
|
25930
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25831
|
+
vue.createElementVNode("div", _hoisted_2$e, [
|
|
25931
25832
|
vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
25932
25833
|
]),
|
|
25933
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
25834
|
+
vue.createElementVNode("div", _hoisted_3$c, [
|
|
25934
25835
|
vue.createElementVNode("div", _hoisted_4$7, [
|
|
25935
25836
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
25936
25837
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -26002,11 +25903,11 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
26002
25903
|
])),
|
|
26003
25904
|
_: 1
|
|
26004
25905
|
})
|
|
26005
|
-
], 8, _hoisted_1$
|
|
25906
|
+
], 8, _hoisted_1$n);
|
|
26006
25907
|
};
|
|
26007
25908
|
}
|
|
26008
25909
|
});
|
|
26009
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25910
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-a65c658c"]]);
|
|
26010
25911
|
function bind(fn2, thisArg) {
|
|
26011
25912
|
return function wrap() {
|
|
26012
25913
|
return fn2.apply(thisArg, arguments);
|
|
@@ -30453,13 +30354,13 @@ function parsePhoneNumber$1() {
|
|
|
30453
30354
|
function parsePhoneNumber() {
|
|
30454
30355
|
return withMetadataArgument(parsePhoneNumber$1, arguments);
|
|
30455
30356
|
}
|
|
30456
|
-
const _hoisted_1$
|
|
30457
|
-
const _hoisted_2$
|
|
30458
|
-
const _hoisted_3$
|
|
30357
|
+
const _hoisted_1$m = ["aria-expanded"];
|
|
30358
|
+
const _hoisted_2$d = { class: "p-075 tel-countryp-dropdown" };
|
|
30359
|
+
const _hoisted_3$b = ["aria-selected", "onClick", "onMousemove"];
|
|
30459
30360
|
const _hoisted_4$6 = { class: "tel-country" };
|
|
30460
30361
|
const _hoisted_5$6 = { key: 1 };
|
|
30461
30362
|
const _hoisted_6$5 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
30462
|
-
const _sfc_main$
|
|
30363
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
30463
30364
|
__name: "TelInput",
|
|
30464
30365
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
30465
30366
|
label: {},
|
|
@@ -30744,7 +30645,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30744
30645
|
])
|
|
30745
30646
|
]),
|
|
30746
30647
|
default: vue.withCtx(() => [
|
|
30747
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
30648
|
+
vue.createElementVNode("div", _hoisted_2$d, [
|
|
30748
30649
|
_ctx.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
|
|
30749
30650
|
key: 0,
|
|
30750
30651
|
modelValue: searchQuery.value,
|
|
@@ -30774,7 +30675,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30774
30675
|
}, null, 8, ["country"])) : vue.createCommentVNode("", true),
|
|
30775
30676
|
vue.createElementVNode("p", _hoisted_4$6, vue.toDisplayString(pb.name), 1),
|
|
30776
30677
|
computedDropDownOptions.value.showDialCodeInList ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, " +" + vue.toDisplayString(pb.dialCode), 1)) : vue.createCommentVNode("", true)
|
|
30777
|
-
], 40, _hoisted_3$
|
|
30678
|
+
], 40, _hoisted_3$b);
|
|
30778
30679
|
}), 128))
|
|
30779
30680
|
], 2)
|
|
30780
30681
|
])
|
|
@@ -30808,19 +30709,19 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30808
30709
|
}, null, 44, _hoisted_6$5), [
|
|
30809
30710
|
[vue.vModelText, phone.value]
|
|
30810
30711
|
])
|
|
30811
|
-
], 40, _hoisted_1$
|
|
30712
|
+
], 40, _hoisted_1$m)
|
|
30812
30713
|
])
|
|
30813
30714
|
], 2);
|
|
30814
30715
|
};
|
|
30815
30716
|
}
|
|
30816
30717
|
});
|
|
30817
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30818
|
-
const _hoisted_1$
|
|
30819
|
-
const _hoisted_2$
|
|
30820
|
-
const _hoisted_3$
|
|
30718
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-cfcf054d"]]);
|
|
30719
|
+
const _hoisted_1$l = ["title"];
|
|
30720
|
+
const _hoisted_2$c = ["for"];
|
|
30721
|
+
const _hoisted_3$a = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
30821
30722
|
const _hoisted_4$5 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
30822
30723
|
const _hoisted_5$5 = { key: 2 };
|
|
30823
|
-
const _sfc_main$
|
|
30724
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
30824
30725
|
__name: "TextInput",
|
|
30825
30726
|
props: {
|
|
30826
30727
|
id: {},
|
|
@@ -30918,7 +30819,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
30918
30819
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
30919
30820
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
30920
30821
|
onInput: updateInputVal
|
|
30921
|
-
}), null, 16, _hoisted_3$
|
|
30822
|
+
}), null, 16, _hoisted_3$a)), [
|
|
30922
30823
|
[
|
|
30923
30824
|
vue.vModelDynamic,
|
|
30924
30825
|
vue.unref(inputVal),
|
|
@@ -30955,16 +30856,16 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
30955
30856
|
key: 4,
|
|
30956
30857
|
icon: _ctx.icon
|
|
30957
30858
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
30958
|
-
], 8, _hoisted_2$
|
|
30959
|
-
], 10, _hoisted_1$
|
|
30859
|
+
], 8, _hoisted_2$c)
|
|
30860
|
+
], 10, _hoisted_1$l);
|
|
30960
30861
|
};
|
|
30961
30862
|
}
|
|
30962
30863
|
});
|
|
30963
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30964
|
-
const _hoisted_1$
|
|
30965
|
-
const _hoisted_2$
|
|
30966
|
-
const _hoisted_3$
|
|
30967
|
-
const _sfc_main$
|
|
30864
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-52ac6dc3"]]);
|
|
30865
|
+
const _hoisted_1$k = ["title"];
|
|
30866
|
+
const _hoisted_2$b = ["id", "required"];
|
|
30867
|
+
const _hoisted_3$9 = ["for"];
|
|
30868
|
+
const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
30968
30869
|
__name: "ToggleInput",
|
|
30969
30870
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
30970
30871
|
label: {},
|
|
@@ -31000,19 +30901,19 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
31000
30901
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
31001
30902
|
type: "checkbox",
|
|
31002
30903
|
required: _ctx.required
|
|
31003
|
-
}, null, 8, _hoisted_2$
|
|
30904
|
+
}, null, 8, _hoisted_2$b), [
|
|
31004
30905
|
[vue.vModelCheckbox, checked.value]
|
|
31005
30906
|
]),
|
|
31006
30907
|
vue.createElementVNode("label", { for: inputId.value }, [
|
|
31007
30908
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
31008
30909
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
31009
30910
|
], true)
|
|
31010
|
-
], 8, _hoisted_3$
|
|
31011
|
-
], 10, _hoisted_1$
|
|
30911
|
+
], 8, _hoisted_3$9)
|
|
30912
|
+
], 10, _hoisted_1$k);
|
|
31012
30913
|
};
|
|
31013
30914
|
}
|
|
31014
30915
|
});
|
|
31015
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30916
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ebe691ee"]]);
|
|
31016
30917
|
const files = {
|
|
31017
30918
|
setBaseUrl: (baseUrl) => {
|
|
31018
30919
|
if (!baseUrl) return;
|
|
@@ -31038,9 +30939,9 @@ const files = {
|
|
|
31038
30939
|
});
|
|
31039
30940
|
}
|
|
31040
30941
|
};
|
|
31041
|
-
const _hoisted_1$
|
|
31042
|
-
const _hoisted_2$
|
|
31043
|
-
const _hoisted_3$
|
|
30942
|
+
const _hoisted_1$j = { class: "bagel-input" };
|
|
30943
|
+
const _hoisted_2$a = { key: 0 };
|
|
30944
|
+
const _hoisted_3$8 = {
|
|
31044
30945
|
key: 1,
|
|
31045
30946
|
placeholder: "required",
|
|
31046
30947
|
type: "text",
|
|
@@ -31077,7 +30978,7 @@ const _hoisted_14 = {
|
|
|
31077
30978
|
class: "progress"
|
|
31078
30979
|
};
|
|
31079
30980
|
const _hoisted_15 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
31080
|
-
const _sfc_main$
|
|
30981
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
31081
30982
|
__name: "UploadInput",
|
|
31082
30983
|
props: {
|
|
31083
30984
|
label: {},
|
|
@@ -31185,9 +31086,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
31185
31086
|
return (_ctx, _cache) => {
|
|
31186
31087
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
31187
31088
|
const _directive_lightbox = vue.resolveDirective("lightbox");
|
|
31188
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
31189
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
31190
|
-
_ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$
|
|
31089
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
|
|
31090
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$a, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
|
|
31091
|
+
_ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$8)) : vue.createCommentVNode("", true),
|
|
31191
31092
|
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
31192
31093
|
key: 2,
|
|
31193
31094
|
outline: "",
|
|
@@ -31411,9 +31312,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
31411
31312
|
};
|
|
31412
31313
|
}
|
|
31413
31314
|
});
|
|
31414
|
-
const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31415
|
-
const _hoisted_1$
|
|
31416
|
-
const _sfc_main$
|
|
31315
|
+
const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bd972fe8"]]);
|
|
31316
|
+
const _hoisted_1$i = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
|
|
31317
|
+
const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
31417
31318
|
__name: "IframeVue",
|
|
31418
31319
|
props: {
|
|
31419
31320
|
src: {},
|
|
@@ -31472,10 +31373,109 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
31472
31373
|
scrolling: _ctx.scrolling,
|
|
31473
31374
|
srcset: _ctx.srcset,
|
|
31474
31375
|
onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
|
|
31475
|
-
}, null, 40, _hoisted_1$
|
|
31376
|
+
}, null, 40, _hoisted_1$i);
|
|
31377
|
+
};
|
|
31378
|
+
}
|
|
31379
|
+
});
|
|
31380
|
+
const _hoisted_1$h = { key: 0 };
|
|
31381
|
+
const _hoisted_2$9 = ["src", "alt", "width", "height"];
|
|
31382
|
+
const _hoisted_3$7 = ["src", "alt", "width", "height"];
|
|
31383
|
+
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
31384
|
+
__name: "Image",
|
|
31385
|
+
props: {
|
|
31386
|
+
src: {},
|
|
31387
|
+
pathKey: {},
|
|
31388
|
+
alt: { default: "" },
|
|
31389
|
+
width: {},
|
|
31390
|
+
height: {},
|
|
31391
|
+
caption: {}
|
|
31392
|
+
},
|
|
31393
|
+
setup(__props) {
|
|
31394
|
+
let imageSrc = vue.ref(null);
|
|
31395
|
+
const fileBaseUrl = vue.computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
31396
|
+
function pathToUrl() {
|
|
31397
|
+
var _a2;
|
|
31398
|
+
if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
|
|
31399
|
+
return `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
31400
|
+
}
|
|
31401
|
+
async function loadImage() {
|
|
31402
|
+
var _a2;
|
|
31403
|
+
const url = __props.src || pathToUrl();
|
|
31404
|
+
console.log(url);
|
|
31405
|
+
if (!url) {
|
|
31406
|
+
imageSrc.value = null;
|
|
31407
|
+
return;
|
|
31408
|
+
}
|
|
31409
|
+
const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
|
|
31410
|
+
if (ext === "heic") {
|
|
31411
|
+
if (!("caches" in window)) {
|
|
31412
|
+
console.warn("Caching is not available. Proceeding without cache.");
|
|
31413
|
+
} else {
|
|
31414
|
+
try {
|
|
31415
|
+
const imgCache = await window.caches.open("img-cache");
|
|
31416
|
+
const cachedResponse = await imgCache.match(url);
|
|
31417
|
+
if (cachedResponse) {
|
|
31418
|
+
imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
|
|
31419
|
+
return;
|
|
31420
|
+
}
|
|
31421
|
+
} catch (error) {
|
|
31422
|
+
console.warn("Error accessing cache:", error);
|
|
31423
|
+
}
|
|
31424
|
+
}
|
|
31425
|
+
try {
|
|
31426
|
+
await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
|
|
31427
|
+
const response = await fetch(url);
|
|
31428
|
+
const blob = await response.blob();
|
|
31429
|
+
const convertedBlob = await window.heic2any({ blob });
|
|
31430
|
+
imageSrc.value = URL.createObjectURL(convertedBlob);
|
|
31431
|
+
if ("caches" in window) {
|
|
31432
|
+
try {
|
|
31433
|
+
const imgCache = await window.caches.open("img-cache");
|
|
31434
|
+
imgCache.put(url, new Response(convertedBlob));
|
|
31435
|
+
} catch (cacheError) {
|
|
31436
|
+
console.warn("Failed to cache the image:", cacheError);
|
|
31437
|
+
}
|
|
31438
|
+
}
|
|
31439
|
+
} catch (error) {
|
|
31440
|
+
console.error("Error converting HEIC file:", error);
|
|
31441
|
+
}
|
|
31442
|
+
} else {
|
|
31443
|
+
imageSrc.value = url;
|
|
31444
|
+
}
|
|
31445
|
+
}
|
|
31446
|
+
vue.watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
|
|
31447
|
+
return (_ctx, _cache) => {
|
|
31448
|
+
return _ctx.caption ? (vue.openBlock(), vue.createElementBlock("figcaption", _hoisted_1$h, [
|
|
31449
|
+
vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
31450
|
+
key: 0,
|
|
31451
|
+
src: vue.unref(imageSrc)
|
|
31452
|
+
}, _ctx.$attrs, {
|
|
31453
|
+
alt: _ctx.alt,
|
|
31454
|
+
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
31455
|
+
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
31456
|
+
}), null, 16, _hoisted_2$9)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
31457
|
+
key: 1,
|
|
31458
|
+
class: "img-web-kit",
|
|
31459
|
+
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
31460
|
+
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
31461
|
+
}, null, 8, ["width", "height"]))
|
|
31462
|
+
])) : vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
31463
|
+
key: 1,
|
|
31464
|
+
src: vue.unref(imageSrc)
|
|
31465
|
+
}, _ctx.$attrs, {
|
|
31466
|
+
alt: _ctx.alt,
|
|
31467
|
+
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
31468
|
+
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
31469
|
+
}), null, 16, _hoisted_3$7)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
31470
|
+
key: 2,
|
|
31471
|
+
class: "img-web-kit",
|
|
31472
|
+
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
31473
|
+
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
31474
|
+
}, null, 8, ["width", "height"]));
|
|
31476
31475
|
};
|
|
31477
31476
|
}
|
|
31478
31477
|
});
|
|
31478
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-29509e85"]]);
|
|
31479
31479
|
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
31480
31480
|
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
31481
31481
|
__name: "BottomMenu",
|
|
@@ -35562,7 +35562,7 @@ exports.Flag = Flag;
|
|
|
35562
35562
|
exports.IMAGE_FORMATS = IMAGE_FORMATS;
|
|
35563
35563
|
exports.IMAGE_FORMATS_REGEXP = IMAGE_FORMATS_REGEXP;
|
|
35564
35564
|
exports.Icon = _sfc_main$d;
|
|
35565
|
-
exports.IframeVue = _sfc_main$
|
|
35565
|
+
exports.IframeVue = _sfc_main$q;
|
|
35566
35566
|
exports.Image = Image$1;
|
|
35567
35567
|
exports.JSONInput = JSONInput;
|
|
35568
35568
|
exports.Layout = Layout;
|
|
@@ -35580,7 +35580,7 @@ exports.NavBar = NavBar;
|
|
|
35580
35580
|
exports.NumberInput = NumberInput;
|
|
35581
35581
|
exports.OTP = OTP;
|
|
35582
35582
|
exports.PageTitle = _sfc_main$8;
|
|
35583
|
-
exports.PasswordInput = _sfc_main$
|
|
35583
|
+
exports.PasswordInput = _sfc_main$E;
|
|
35584
35584
|
exports.Pill = Pill;
|
|
35585
35585
|
exports.RadioGroup = RadioGroup;
|
|
35586
35586
|
exports.RadioPillsInput = RadioPillsInput;
|
|
@@ -35589,7 +35589,7 @@ exports.RichText = RichText;
|
|
|
35589
35589
|
exports.RouterWrapper = RouterWrapper;
|
|
35590
35590
|
exports.SelectInput = SelectInput;
|
|
35591
35591
|
exports.SidebarMenu = SidebarMenu;
|
|
35592
|
-
exports.SignaturePad = _sfc_main$
|
|
35592
|
+
exports.SignaturePad = _sfc_main$w;
|
|
35593
35593
|
exports.Skeleton = Skeleton;
|
|
35594
35594
|
exports.TabbedLayout = TabbedLayout;
|
|
35595
35595
|
exports.TableField = TableField;
|