@bagelink/vue 0.0.1104 → 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/BglField.vue.d.ts.map +1 -1
- 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/components/form/inputs/NumberInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +336 -329
- package/dist/index.mjs +336 -329
- package/dist/style.css +47 -47
- package/package.json +1 -1
- package/src/components/form/BglField.vue +41 -6
- package/src/components/form/inputs/FileUpload.vue +6 -8
- package/src/components/form/inputs/NumberInput.vue +4 -4
package/dist/index.cjs
CHANGED
|
@@ -9811,91 +9811,6 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
|
|
|
9811
9811
|
}
|
|
9812
9812
|
});
|
|
9813
9813
|
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f99f1900"]]);
|
|
9814
|
-
const FORM_STATE_KEY = Symbol("bagelFormState");
|
|
9815
|
-
function safeClone(obj) {
|
|
9816
|
-
if (obj === null || typeof obj !== "object") return obj;
|
|
9817
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
9818
|
-
return JSON.parse(JSON.stringify(obj, (key, value) => {
|
|
9819
|
-
if (typeof value === "object" && value !== null) {
|
|
9820
|
-
if (seen.has(value)) {
|
|
9821
|
-
return void 0;
|
|
9822
|
-
}
|
|
9823
|
-
seen.add(value);
|
|
9824
|
-
}
|
|
9825
|
-
return value;
|
|
9826
|
-
}));
|
|
9827
|
-
}
|
|
9828
|
-
function provideBagelFormState(initialData) {
|
|
9829
|
-
const data2 = vue.ref(initialData);
|
|
9830
|
-
const isDirty = vue.ref(false);
|
|
9831
|
-
const getFieldData = (path) => {
|
|
9832
|
-
if (!path) return "";
|
|
9833
|
-
const keys4 = path.split(/[.[]/);
|
|
9834
|
-
let current = data2.value;
|
|
9835
|
-
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
9836
|
-
const key = keys4[i2];
|
|
9837
|
-
if (!current || typeof current !== "object" || !(key in current)) {
|
|
9838
|
-
return "";
|
|
9839
|
-
}
|
|
9840
|
-
current = current[key];
|
|
9841
|
-
}
|
|
9842
|
-
return current ?? "";
|
|
9843
|
-
};
|
|
9844
|
-
const updateField = (path, value) => {
|
|
9845
|
-
const keys4 = path.split(/[.[]/);
|
|
9846
|
-
if (typeof data2.value !== "object" || data2.value === null) {
|
|
9847
|
-
data2.value = {};
|
|
9848
|
-
}
|
|
9849
|
-
let current = data2.value;
|
|
9850
|
-
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
9851
|
-
const key = keys4[i2];
|
|
9852
|
-
if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
|
|
9853
|
-
current[key] = {};
|
|
9854
|
-
}
|
|
9855
|
-
current = current[key];
|
|
9856
|
-
}
|
|
9857
|
-
const safeValue = safeClone(value);
|
|
9858
|
-
current[keys4[keys4.length - 1]] = safeValue;
|
|
9859
|
-
isDirty.value = true;
|
|
9860
|
-
};
|
|
9861
|
-
const state2 = {
|
|
9862
|
-
data: data2,
|
|
9863
|
-
getFieldData,
|
|
9864
|
-
updateField,
|
|
9865
|
-
isDirty
|
|
9866
|
-
};
|
|
9867
|
-
vue.provide(FORM_STATE_KEY, state2);
|
|
9868
|
-
return state2;
|
|
9869
|
-
}
|
|
9870
|
-
function useBagelFormState() {
|
|
9871
|
-
const state2 = vue.inject(FORM_STATE_KEY);
|
|
9872
|
-
if (!state2) throw new Error("BagelFormState must be provided");
|
|
9873
|
-
return state2;
|
|
9874
|
-
}
|
|
9875
|
-
function useFormField(props2) {
|
|
9876
|
-
const formState = vue.inject(FORM_STATE_KEY);
|
|
9877
|
-
const fieldData = vue.computed({
|
|
9878
|
-
get: () => {
|
|
9879
|
-
if (!props2.fieldID || !formState) return props2.modelValue ?? props2.field.defaultValue ?? "";
|
|
9880
|
-
const value = formState.getFieldData(props2.fieldID);
|
|
9881
|
-
if (props2.field.$el === "form" && !value) return {};
|
|
9882
|
-
return value ?? "";
|
|
9883
|
-
},
|
|
9884
|
-
set: (val) => {
|
|
9885
|
-
if (!props2.fieldID || !formState) return;
|
|
9886
|
-
const currentValue = formState.getFieldData(props2.fieldID);
|
|
9887
|
-
if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
|
|
9888
|
-
if (props2.field.onUpdate) {
|
|
9889
|
-
props2.field.onUpdate(val, currentValue);
|
|
9890
|
-
}
|
|
9891
|
-
formState.updateField(props2.fieldID, val);
|
|
9892
|
-
}
|
|
9893
|
-
});
|
|
9894
|
-
return {
|
|
9895
|
-
fieldData,
|
|
9896
|
-
formState
|
|
9897
|
-
};
|
|
9898
|
-
}
|
|
9899
9814
|
const state$1 = vue.reactive(/* @__PURE__ */ new Map());
|
|
9900
9815
|
function useTabs(group) {
|
|
9901
9816
|
if (!state$1.has(group)) {
|
|
@@ -10000,6 +9915,67 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
10000
9915
|
}
|
|
10001
9916
|
});
|
|
10002
9917
|
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-307612a9"]]);
|
|
9918
|
+
const FORM_STATE_KEY = Symbol("bagelFormState");
|
|
9919
|
+
function safeClone(obj) {
|
|
9920
|
+
if (obj === null || typeof obj !== "object") return obj;
|
|
9921
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
9922
|
+
return JSON.parse(JSON.stringify(obj, (key, value) => {
|
|
9923
|
+
if (typeof value === "object" && value !== null) {
|
|
9924
|
+
if (seen.has(value)) {
|
|
9925
|
+
return void 0;
|
|
9926
|
+
}
|
|
9927
|
+
seen.add(value);
|
|
9928
|
+
}
|
|
9929
|
+
return value;
|
|
9930
|
+
}));
|
|
9931
|
+
}
|
|
9932
|
+
function provideBagelFormState(initialData) {
|
|
9933
|
+
const data2 = vue.ref(initialData);
|
|
9934
|
+
const isDirty = vue.ref(false);
|
|
9935
|
+
const getFieldData = (path) => {
|
|
9936
|
+
if (!path) return "";
|
|
9937
|
+
const keys4 = path.split(/[.[]/);
|
|
9938
|
+
let current = data2.value;
|
|
9939
|
+
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
9940
|
+
const key = keys4[i2];
|
|
9941
|
+
if (!current || typeof current !== "object" || !(key in current)) {
|
|
9942
|
+
return "";
|
|
9943
|
+
}
|
|
9944
|
+
current = current[key];
|
|
9945
|
+
}
|
|
9946
|
+
return current ?? "";
|
|
9947
|
+
};
|
|
9948
|
+
const updateField = (path, value) => {
|
|
9949
|
+
const keys4 = path.split(/[.[]/);
|
|
9950
|
+
if (typeof data2.value !== "object" || data2.value === null) {
|
|
9951
|
+
data2.value = {};
|
|
9952
|
+
}
|
|
9953
|
+
let current = data2.value;
|
|
9954
|
+
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
9955
|
+
const key = keys4[i2];
|
|
9956
|
+
if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
|
|
9957
|
+
current[key] = {};
|
|
9958
|
+
}
|
|
9959
|
+
current = current[key];
|
|
9960
|
+
}
|
|
9961
|
+
const safeValue = safeClone(value);
|
|
9962
|
+
current[keys4[keys4.length - 1]] = safeValue;
|
|
9963
|
+
isDirty.value = true;
|
|
9964
|
+
};
|
|
9965
|
+
const state2 = {
|
|
9966
|
+
data: data2,
|
|
9967
|
+
getFieldData,
|
|
9968
|
+
updateField,
|
|
9969
|
+
isDirty
|
|
9970
|
+
};
|
|
9971
|
+
vue.provide(FORM_STATE_KEY, state2);
|
|
9972
|
+
return state2;
|
|
9973
|
+
}
|
|
9974
|
+
function useBagelFormState() {
|
|
9975
|
+
const state2 = vue.inject(FORM_STATE_KEY);
|
|
9976
|
+
if (!state2) throw new Error("BagelFormState must be provided");
|
|
9977
|
+
return state2;
|
|
9978
|
+
}
|
|
10003
9979
|
const _hoisted_1$K = { key: 1 };
|
|
10004
9980
|
const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
10005
9981
|
__name: "BglField",
|
|
@@ -10012,7 +9988,8 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
10012
9988
|
emits: ["update:modelValue"],
|
|
10013
9989
|
setup(__props, { emit: __emit }) {
|
|
10014
9990
|
const props2 = __props;
|
|
10015
|
-
const
|
|
9991
|
+
const emit2 = __emit;
|
|
9992
|
+
const formState = vue.inject(FORM_STATE_KEY) ?? provideBagelFormState(props2.modelValue);
|
|
10016
9993
|
const customAttrs = vue.ref({});
|
|
10017
9994
|
const is4 = vue.computed(() => {
|
|
10018
9995
|
if (props2.field.$el === "text") return TextInput;
|
|
@@ -10033,24 +10010,50 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
10033
10010
|
if (props2.field.$el === "bglform") return _sfc_main$S;
|
|
10034
10011
|
return props2.field.$el ?? "div";
|
|
10035
10012
|
});
|
|
10013
|
+
const fieldData = vue.computed({
|
|
10014
|
+
get: () => {
|
|
10015
|
+
if (!props2.fieldID) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
|
|
10016
|
+
const value = formState.getFieldData(props2.fieldID);
|
|
10017
|
+
if (props2.field.$el === "form" && !value) return {};
|
|
10018
|
+
return value ?? "";
|
|
10019
|
+
},
|
|
10020
|
+
set: (val) => {
|
|
10021
|
+
if (!props2.fieldID) return;
|
|
10022
|
+
const currentValue = formState.getFieldData(props2.fieldID);
|
|
10023
|
+
if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
|
|
10024
|
+
emit2("update:modelValue", val);
|
|
10025
|
+
if (props2.field.onUpdate) {
|
|
10026
|
+
props2.field.onUpdate(val, currentValue);
|
|
10027
|
+
}
|
|
10028
|
+
formState.updateField(props2.fieldID, val);
|
|
10029
|
+
}
|
|
10030
|
+
});
|
|
10031
|
+
const vIf = vue.computed(() => {
|
|
10032
|
+
if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
|
|
10033
|
+
if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
|
|
10034
|
+
if (typeof props2.field["v-if"] === "string" || typeof props2.field.vIf === "string") return true;
|
|
10035
|
+
if (typeof props2.field["v-if"] === "function") return props2.field["v-if"](fieldData.value, formState.data.value);
|
|
10036
|
+
if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState.data.value);
|
|
10037
|
+
return true;
|
|
10038
|
+
});
|
|
10036
10039
|
const computedOptions = vue.computed(
|
|
10037
|
-
() => bindAttrs({ options: props2.field.options }, fieldData,
|
|
10040
|
+
() => bindAttrs({ options: props2.field.options }, fieldData.value, formState.data.value).options
|
|
10038
10041
|
);
|
|
10039
10042
|
const computedAttrs = vue.computed(() => {
|
|
10040
10043
|
const attrs = { ...customAttrs.value, ...props2.field.attrs };
|
|
10041
|
-
return bindAttrs(attrs, fieldData,
|
|
10044
|
+
return bindAttrs(attrs, fieldData.value, formState.data.value);
|
|
10042
10045
|
});
|
|
10043
10046
|
const computedClass = vue.computed(
|
|
10044
10047
|
() => {
|
|
10045
10048
|
var _a2;
|
|
10046
|
-
return classify(fieldData,
|
|
10049
|
+
return classify(fieldData.value, formState.data.value, props2.field.class, (_a2 = props2.field.attrs) == null ? void 0 : _a2.class);
|
|
10047
10050
|
}
|
|
10048
10051
|
);
|
|
10049
10052
|
return (_ctx, _cache) => {
|
|
10050
10053
|
const _component_BglField = vue.resolveComponent("BglField", true);
|
|
10051
|
-
return
|
|
10052
|
-
modelValue:
|
|
10053
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
10054
|
+
return vIf.value ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(is4.value), vue.mergeProps({ key: 0 }, computedAttrs.value, {
|
|
10055
|
+
modelValue: fieldData.value,
|
|
10056
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
|
|
10054
10057
|
fieldID: props2.fieldID,
|
|
10055
10058
|
required: _ctx.field.required,
|
|
10056
10059
|
class: computedClass.value,
|
|
@@ -19753,114 +19756,15 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
19753
19756
|
};
|
|
19754
19757
|
}
|
|
19755
19758
|
});
|
|
19756
|
-
const _hoisted_1$A = {
|
|
19757
|
-
const _hoisted_2$p =
|
|
19758
|
-
const _hoisted_3$k = ["src", "alt", "width", "height"];
|
|
19759
|
-
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
19760
|
-
__name: "Image",
|
|
19761
|
-
props: {
|
|
19762
|
-
src: {},
|
|
19763
|
-
pathKey: {},
|
|
19764
|
-
alt: { default: "" },
|
|
19765
|
-
width: {},
|
|
19766
|
-
height: {},
|
|
19767
|
-
caption: {}
|
|
19768
|
-
},
|
|
19769
|
-
setup(__props) {
|
|
19770
|
-
let imageSrc = vue.ref(null);
|
|
19771
|
-
const fileBaseUrl = vue.computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19772
|
-
function pathToUrl() {
|
|
19773
|
-
var _a2;
|
|
19774
|
-
if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
|
|
19775
|
-
return `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19776
|
-
}
|
|
19777
|
-
async function loadImage() {
|
|
19778
|
-
var _a2;
|
|
19779
|
-
const url = __props.src || pathToUrl();
|
|
19780
|
-
console.log(url);
|
|
19781
|
-
if (!url) {
|
|
19782
|
-
imageSrc.value = null;
|
|
19783
|
-
return;
|
|
19784
|
-
}
|
|
19785
|
-
const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
|
|
19786
|
-
if (ext === "heic") {
|
|
19787
|
-
if (!("caches" in window)) {
|
|
19788
|
-
console.warn("Caching is not available. Proceeding without cache.");
|
|
19789
|
-
} else {
|
|
19790
|
-
try {
|
|
19791
|
-
const imgCache = await window.caches.open("img-cache");
|
|
19792
|
-
const cachedResponse = await imgCache.match(url);
|
|
19793
|
-
if (cachedResponse) {
|
|
19794
|
-
imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
|
|
19795
|
-
return;
|
|
19796
|
-
}
|
|
19797
|
-
} catch (error) {
|
|
19798
|
-
console.warn("Error accessing cache:", error);
|
|
19799
|
-
}
|
|
19800
|
-
}
|
|
19801
|
-
try {
|
|
19802
|
-
await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
|
|
19803
|
-
const response = await fetch(url);
|
|
19804
|
-
const blob = await response.blob();
|
|
19805
|
-
const convertedBlob = await window.heic2any({ blob });
|
|
19806
|
-
imageSrc.value = URL.createObjectURL(convertedBlob);
|
|
19807
|
-
if ("caches" in window) {
|
|
19808
|
-
try {
|
|
19809
|
-
const imgCache = await window.caches.open("img-cache");
|
|
19810
|
-
imgCache.put(url, new Response(convertedBlob));
|
|
19811
|
-
} catch (cacheError) {
|
|
19812
|
-
console.warn("Failed to cache the image:", cacheError);
|
|
19813
|
-
}
|
|
19814
|
-
}
|
|
19815
|
-
} catch (error) {
|
|
19816
|
-
console.error("Error converting HEIC file:", error);
|
|
19817
|
-
}
|
|
19818
|
-
} else {
|
|
19819
|
-
imageSrc.value = url;
|
|
19820
|
-
}
|
|
19821
|
-
}
|
|
19822
|
-
vue.watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
|
|
19823
|
-
return (_ctx, _cache) => {
|
|
19824
|
-
return _ctx.caption ? (vue.openBlock(), vue.createElementBlock("figcaption", _hoisted_1$A, [
|
|
19825
|
-
vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
19826
|
-
key: 0,
|
|
19827
|
-
src: vue.unref(imageSrc)
|
|
19828
|
-
}, _ctx.$attrs, {
|
|
19829
|
-
alt: _ctx.alt,
|
|
19830
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19831
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19832
|
-
}), null, 16, _hoisted_2$p)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
19833
|
-
key: 1,
|
|
19834
|
-
class: "img-web-kit",
|
|
19835
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19836
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19837
|
-
}, null, 8, ["width", "height"]))
|
|
19838
|
-
])) : vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
19839
|
-
key: 1,
|
|
19840
|
-
src: vue.unref(imageSrc)
|
|
19841
|
-
}, _ctx.$attrs, {
|
|
19842
|
-
alt: _ctx.alt,
|
|
19843
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19844
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19845
|
-
}), null, 16, _hoisted_3$k)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
|
|
19846
|
-
key: 2,
|
|
19847
|
-
class: "img-web-kit",
|
|
19848
|
-
width: vue.unref(normalizeDimension)(_ctx.width),
|
|
19849
|
-
height: vue.unref(normalizeDimension)(_ctx.height)
|
|
19850
|
-
}, null, 8, ["width", "height"]));
|
|
19851
|
-
};
|
|
19852
|
-
}
|
|
19853
|
-
});
|
|
19854
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-29509e85"]]);
|
|
19855
|
-
const _hoisted_1$z = { class: "bagel-input" };
|
|
19856
|
-
const _hoisted_2$o = {
|
|
19759
|
+
const _hoisted_1$A = { class: "bagel-input" };
|
|
19760
|
+
const _hoisted_2$p = {
|
|
19857
19761
|
key: 0,
|
|
19858
19762
|
placeholder: "required",
|
|
19859
19763
|
type: "text",
|
|
19860
19764
|
required: "",
|
|
19861
19765
|
class: "pixel"
|
|
19862
19766
|
};
|
|
19863
|
-
const _hoisted_3$
|
|
19767
|
+
const _hoisted_3$k = { class: "m-05 flex opacity-7 z-99" };
|
|
19864
19768
|
const _hoisted_4$d = { class: "ellipsis-1 word-break-all h-20 m-0" };
|
|
19865
19769
|
const _hoisted_5$c = {
|
|
19866
19770
|
key: 1,
|
|
@@ -19890,7 +19794,7 @@ const _hoisted_13$2 = {
|
|
|
19890
19794
|
class: "progress"
|
|
19891
19795
|
};
|
|
19892
19796
|
const _hoisted_14$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
19893
|
-
const _sfc_main$
|
|
19797
|
+
const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
19894
19798
|
__name: "FileUpload",
|
|
19895
19799
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
19896
19800
|
label: {},
|
|
@@ -20062,9 +19966,9 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20062
19966
|
return (_ctx, _cache) => {
|
|
20063
19967
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
20064
19968
|
const _directive_lightbox = vue.resolveDirective("lightbox");
|
|
20065
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19969
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
20066
19970
|
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
20067
|
-
_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),
|
|
20068
19972
|
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
20069
19973
|
key: 1,
|
|
20070
19974
|
outline: "",
|
|
@@ -20090,7 +19994,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20090
19994
|
key: file.id,
|
|
20091
19995
|
class: "txt-gray txt-12 flex"
|
|
20092
19996
|
}, [
|
|
20093
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
19997
|
+
vue.createElementVNode("div", _hoisted_3$k, [
|
|
20094
19998
|
vue.withDirectives(vue.createVNode(vue.unref(Btn), {
|
|
20095
19999
|
color: "gray",
|
|
20096
20000
|
thin: "",
|
|
@@ -20160,7 +20064,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20160
20064
|
key: file.id,
|
|
20161
20065
|
class: "multi-image-item-preview"
|
|
20162
20066
|
}, [
|
|
20163
|
-
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), {
|
|
20164
20068
|
key: 0,
|
|
20165
20069
|
class: "multi-preview",
|
|
20166
20070
|
src: file.url,
|
|
@@ -20188,7 +20092,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20188
20092
|
class: "multi-image-item-preview"
|
|
20189
20093
|
}, [
|
|
20190
20094
|
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
20191
|
-
_ctx.multiple ? (vue.openBlock(), vue.createBlock(Image$1, {
|
|
20095
|
+
_ctx.multiple ? (vue.openBlock(), vue.createBlock(vue.unref(Image$1), {
|
|
20192
20096
|
key: 0,
|
|
20193
20097
|
width: _ctx.width || "220",
|
|
20194
20098
|
class: "multi-preview",
|
|
@@ -20251,7 +20155,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20251
20155
|
])
|
|
20252
20156
|
]),
|
|
20253
20157
|
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$2, [
|
|
20254
|
-
vue.withDirectives(vue.createVNode(Image$1, {
|
|
20158
|
+
vue.withDirectives(vue.createVNode(vue.unref(Image$1), {
|
|
20255
20159
|
class: "single-preview",
|
|
20256
20160
|
src: file.url,
|
|
20257
20161
|
alt: ""
|
|
@@ -20284,7 +20188,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20284
20188
|
icon: "check"
|
|
20285
20189
|
})
|
|
20286
20190
|
], 6),
|
|
20287
|
-
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createBlock(Image$1, {
|
|
20191
|
+
isImage(fileQ.file.type) ? (vue.openBlock(), vue.createBlock(vue.unref(Image$1), {
|
|
20288
20192
|
key: 0,
|
|
20289
20193
|
class: "single-preview",
|
|
20290
20194
|
src: fileToUrl(fileQ.file),
|
|
@@ -20310,11 +20214,11 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
20310
20214
|
};
|
|
20311
20215
|
}
|
|
20312
20216
|
});
|
|
20313
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20314
|
-
const _hoisted_1$
|
|
20315
|
-
const _hoisted_2$
|
|
20316
|
-
const _hoisted_3$
|
|
20317
|
-
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({
|
|
20318
20222
|
__name: "JSONInput",
|
|
20319
20223
|
props: {
|
|
20320
20224
|
description: { default: "" },
|
|
@@ -20337,7 +20241,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
20337
20241
|
class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
|
|
20338
20242
|
title: _ctx.description
|
|
20339
20243
|
}, [
|
|
20340
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
20244
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$o, [
|
|
20341
20245
|
vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
|
|
20342
20246
|
])) : vue.createCommentVNode("", true),
|
|
20343
20247
|
vue.createElementVNode("textarea", {
|
|
@@ -20345,20 +20249,20 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
20345
20249
|
class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
|
|
20346
20250
|
placeholder: _ctx.placeholder,
|
|
20347
20251
|
onInput: handleInput
|
|
20348
|
-
}, null, 42, _hoisted_3$
|
|
20349
|
-
], 10, _hoisted_1$
|
|
20252
|
+
}, null, 42, _hoisted_3$j)
|
|
20253
|
+
], 10, _hoisted_1$z);
|
|
20350
20254
|
};
|
|
20351
20255
|
}
|
|
20352
20256
|
});
|
|
20353
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20354
|
-
const _hoisted_1$
|
|
20355
|
-
const _hoisted_2$
|
|
20356
|
-
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 };
|
|
20357
20261
|
const _hoisted_4$c = {
|
|
20358
20262
|
key: 5,
|
|
20359
20263
|
class: "flex column spinner"
|
|
20360
20264
|
};
|
|
20361
|
-
const _sfc_main$
|
|
20265
|
+
const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
20362
20266
|
__name: "NumberInput",
|
|
20363
20267
|
props: {
|
|
20364
20268
|
modelValue: {},
|
|
@@ -20436,6 +20340,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20436
20340
|
flat: "",
|
|
20437
20341
|
icon: "add",
|
|
20438
20342
|
class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
|
|
20343
|
+
tabindex: "-1",
|
|
20439
20344
|
onClick: increment
|
|
20440
20345
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
20441
20346
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -20460,7 +20365,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20460
20365
|
vue.withKeys(vue.withModifiers(increment, ["prevent"]), ["up"]),
|
|
20461
20366
|
vue.withKeys(vue.withModifiers(decrement, ["prevent"]), ["down"])
|
|
20462
20367
|
]
|
|
20463
|
-
}, null, 42, _hoisted_2$
|
|
20368
|
+
}, null, 42, _hoisted_2$n), [
|
|
20464
20369
|
[
|
|
20465
20370
|
vue.vModelText,
|
|
20466
20371
|
vue.unref(formattedValue),
|
|
@@ -20474,7 +20379,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20474
20379
|
{ number: true }
|
|
20475
20380
|
]
|
|
20476
20381
|
]),
|
|
20477
|
-
_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),
|
|
20478
20383
|
_ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
|
|
20479
20384
|
key: 2,
|
|
20480
20385
|
class: "iconStart",
|
|
@@ -20489,6 +20394,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20489
20394
|
flat: "",
|
|
20490
20395
|
icon: "remove",
|
|
20491
20396
|
class: vue.normalizeClass(["radius", [{ "bgl-big-ctrl-num-btn": _ctx.layout === "vertical" }]]),
|
|
20397
|
+
tabindex: "-1",
|
|
20492
20398
|
onClick: decrement
|
|
20493
20399
|
}, null, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
20494
20400
|
_ctx.spinner && (!_ctx.layout || !btnLayouts.includes(_ctx.layout)) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$c, [
|
|
@@ -20498,6 +20404,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20498
20404
|
thin: "",
|
|
20499
20405
|
class: "bgl-ctrl-num-btn ctrl-add color-gray top-bgl-ctrl-num-btn",
|
|
20500
20406
|
disabled: !canAdd.value,
|
|
20407
|
+
tabindex: "-1",
|
|
20501
20408
|
onClick: increment
|
|
20502
20409
|
}, null, 8, ["disabled"]),
|
|
20503
20410
|
vue.createVNode(vue.unref(Btn), {
|
|
@@ -20506,18 +20413,19 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
20506
20413
|
thin: "",
|
|
20507
20414
|
class: "bgl-ctrl-num-btn ctrl-remove color-gray",
|
|
20508
20415
|
disabled: !canDecrement.value,
|
|
20416
|
+
tabindex: "-1",
|
|
20509
20417
|
onClick: decrement
|
|
20510
20418
|
}, null, 8, ["disabled"])
|
|
20511
20419
|
])) : vue.createCommentVNode("", true)
|
|
20512
20420
|
], 2)
|
|
20513
|
-
], 8, _hoisted_1$
|
|
20421
|
+
], 8, _hoisted_1$y)
|
|
20514
20422
|
], 2);
|
|
20515
20423
|
};
|
|
20516
20424
|
}
|
|
20517
20425
|
});
|
|
20518
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20519
|
-
const _hoisted_1$
|
|
20520
|
-
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({
|
|
20521
20429
|
__name: "OTP",
|
|
20522
20430
|
props: {
|
|
20523
20431
|
digitCount: {},
|
|
@@ -20615,16 +20523,16 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
20615
20523
|
oninput: "this.value = this.value.slice(0, 1);",
|
|
20616
20524
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
20617
20525
|
onPaste: ($event) => handlePaste($event, ind)
|
|
20618
|
-
}, null, 40, _hoisted_1$
|
|
20526
|
+
}, null, 40, _hoisted_1$x);
|
|
20619
20527
|
}), 128))
|
|
20620
20528
|
], 512);
|
|
20621
20529
|
};
|
|
20622
20530
|
}
|
|
20623
20531
|
});
|
|
20624
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20625
|
-
const _hoisted_1$
|
|
20626
|
-
const _hoisted_2$
|
|
20627
|
-
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({
|
|
20628
20536
|
__name: "PasswordInput",
|
|
20629
20537
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
20630
20538
|
id: {},
|
|
@@ -20665,7 +20573,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20665
20573
|
);
|
|
20666
20574
|
const inputType = vue.computed(() => showPwd.value ? "text" : "password");
|
|
20667
20575
|
return (_ctx, _cache) => {
|
|
20668
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20576
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
|
|
20669
20577
|
vue.createVNode(vue.unref(TextInput), vue.mergeProps({
|
|
20670
20578
|
modelValue: password.value,
|
|
20671
20579
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
|
|
@@ -20673,7 +20581,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20673
20581
|
type: inputType.value,
|
|
20674
20582
|
class: "mb-0"
|
|
20675
20583
|
}), null, 16, ["modelValue", "type"]),
|
|
20676
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
20584
|
+
vue.createElementVNode("div", _hoisted_2$m, [
|
|
20677
20585
|
vue.createVNode(vue.unref(Btn), {
|
|
20678
20586
|
flat: "",
|
|
20679
20587
|
thin: "",
|
|
@@ -20686,9 +20594,9 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
20686
20594
|
};
|
|
20687
20595
|
}
|
|
20688
20596
|
});
|
|
20689
|
-
const _hoisted_1$
|
|
20690
|
-
const _hoisted_2$
|
|
20691
|
-
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" };
|
|
20692
20600
|
const _hoisted_4$b = ["src", "alt"];
|
|
20693
20601
|
const _hoisted_5$b = { class: "" };
|
|
20694
20602
|
const _hoisted_6$9 = {
|
|
@@ -20699,7 +20607,7 @@ const _hoisted_7$6 = {
|
|
|
20699
20607
|
key: 1,
|
|
20700
20608
|
class: "txt-gray txt-12 m-0"
|
|
20701
20609
|
};
|
|
20702
|
-
const _sfc_main$
|
|
20610
|
+
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
20703
20611
|
__name: "RadioGroup",
|
|
20704
20612
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
20705
20613
|
groupName: {},
|
|
@@ -20729,10 +20637,10 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
20729
20637
|
name: _ctx.groupName,
|
|
20730
20638
|
value: opt.value,
|
|
20731
20639
|
required: _ctx.required
|
|
20732
|
-
}, null, 8, _hoisted_2$
|
|
20640
|
+
}, null, 8, _hoisted_2$l), [
|
|
20733
20641
|
[vue.vModelRadio, selectedOption.value]
|
|
20734
20642
|
]),
|
|
20735
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
20643
|
+
vue.createElementVNode("div", _hoisted_3$h, [
|
|
20736
20644
|
opt.imgSrc ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
20737
20645
|
key: 0,
|
|
20738
20646
|
class: "bg-popup shadow-light py-025 radius-05 m_w40",
|
|
@@ -20754,19 +20662,19 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
20754
20662
|
icon: "delete",
|
|
20755
20663
|
onClick: ($event) => _ctx.$emit("delete", opt)
|
|
20756
20664
|
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
20757
|
-
], 8, _hoisted_1$
|
|
20665
|
+
], 8, _hoisted_1$v);
|
|
20758
20666
|
}), 128))
|
|
20759
20667
|
]);
|
|
20760
20668
|
};
|
|
20761
20669
|
}
|
|
20762
20670
|
});
|
|
20763
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20764
|
-
const _hoisted_1$
|
|
20765
|
-
const _hoisted_2$
|
|
20766
|
-
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" };
|
|
20767
20675
|
const _hoisted_4$a = ["id", "name", "value", "checked"];
|
|
20768
20676
|
const _hoisted_5$a = ["for"];
|
|
20769
|
-
const _sfc_main$
|
|
20677
|
+
const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
20770
20678
|
__name: "RadioPillsInput",
|
|
20771
20679
|
props: {
|
|
20772
20680
|
options: {},
|
|
@@ -20807,9 +20715,9 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
20807
20715
|
selectedValue.value = props2.modelValue;
|
|
20808
20716
|
});
|
|
20809
20717
|
return (_ctx, _cache) => {
|
|
20810
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
20811
|
-
vue.createElementVNode("label", _hoisted_2$
|
|
20812
|
-
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, [
|
|
20813
20721
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
|
|
20814
20722
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20815
20723
|
key: index2,
|
|
@@ -20833,18 +20741,18 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
20833
20741
|
};
|
|
20834
20742
|
}
|
|
20835
20743
|
});
|
|
20836
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20837
|
-
const _hoisted_1$
|
|
20838
|
-
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 = {
|
|
20839
20747
|
key: 0,
|
|
20840
20748
|
class: "label"
|
|
20841
20749
|
};
|
|
20842
|
-
const _hoisted_3$
|
|
20750
|
+
const _hoisted_3$f = { class: "range-slider relative w-100" };
|
|
20843
20751
|
const _hoisted_4$9 = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
|
|
20844
20752
|
const _hoisted_5$9 = ["value", "min", "max", "step", "required", "disabled"];
|
|
20845
20753
|
const _hoisted_6$8 = { class: "track absolute pointer-events-none overflow-hidden round" };
|
|
20846
20754
|
const _hoisted_7$5 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
|
|
20847
|
-
const _sfc_main$
|
|
20755
|
+
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
20848
20756
|
__name: "RangeInput",
|
|
20849
20757
|
props: {
|
|
20850
20758
|
modelValue: {},
|
|
@@ -20912,8 +20820,8 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
20912
20820
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20913
20821
|
dir: vue.unref(rtl) ? "rtl" : "ltr"
|
|
20914
20822
|
}, [
|
|
20915
|
-
vue.unref(label) ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
20916
|
-
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, [
|
|
20917
20825
|
vue.createElementVNode("input", {
|
|
20918
20826
|
id: vue.unref(id),
|
|
20919
20827
|
value: validFrom.value,
|
|
@@ -21004,11 +20912,11 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
21004
20912
|
vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(formatValue)(vue.unref(max2))), 1)
|
|
21005
20913
|
], true)
|
|
21006
20914
|
])
|
|
21007
|
-
], 8, _hoisted_1$
|
|
20915
|
+
], 8, _hoisted_1$t);
|
|
21008
20916
|
};
|
|
21009
20917
|
}
|
|
21010
20918
|
});
|
|
21011
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20919
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-e606435a"]]);
|
|
21012
20920
|
const tableTools = [
|
|
21013
20921
|
"mergeCells",
|
|
21014
20922
|
"splitCells",
|
|
@@ -21098,12 +21006,12 @@ const toolbarOptions = [
|
|
|
21098
21006
|
{ name: "separator" },
|
|
21099
21007
|
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
21100
21008
|
];
|
|
21101
|
-
const _hoisted_1$
|
|
21102
|
-
const _hoisted_2$
|
|
21103
|
-
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" };
|
|
21104
21012
|
const fb = 1;
|
|
21105
21013
|
const base = 5;
|
|
21106
|
-
const _sfc_main$
|
|
21014
|
+
const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
21107
21015
|
__name: "gridBox",
|
|
21108
21016
|
emits: ["select"],
|
|
21109
21017
|
setup(__props, { emit: __emit }) {
|
|
@@ -21119,7 +21027,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21119
21027
|
return hoveredCol.value > base - 1 ? enlarge : base;
|
|
21120
21028
|
});
|
|
21121
21029
|
return (_ctx, _cache) => {
|
|
21122
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21030
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
|
|
21123
21031
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(rowSize.value, (row) => {
|
|
21124
21032
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21125
21033
|
key: `row-${row}`,
|
|
@@ -21146,21 +21054,21 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
21146
21054
|
hoveredCol.value = col;
|
|
21147
21055
|
},
|
|
21148
21056
|
onClick: ($event) => emit2("select", `${row}x${col}`)
|
|
21149
|
-
}, null, 42, _hoisted_2$
|
|
21057
|
+
}, null, 42, _hoisted_2$i);
|
|
21150
21058
|
}), 128))
|
|
21151
21059
|
], 32);
|
|
21152
21060
|
}), 128)),
|
|
21153
|
-
vue.createElementVNode("p", _hoisted_3$
|
|
21061
|
+
vue.createElementVNode("p", _hoisted_3$e, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
|
|
21154
21062
|
]);
|
|
21155
21063
|
};
|
|
21156
21064
|
}
|
|
21157
21065
|
});
|
|
21158
|
-
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21159
|
-
const _hoisted_1$
|
|
21066
|
+
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4548b70f"]]);
|
|
21067
|
+
const _hoisted_1$r = {
|
|
21160
21068
|
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
21161
21069
|
role: "toolbar"
|
|
21162
21070
|
};
|
|
21163
|
-
const _sfc_main$
|
|
21071
|
+
const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
21164
21072
|
__name: "EditorToolbar",
|
|
21165
21073
|
props: {
|
|
21166
21074
|
config: { default: defaultToolbarConfig },
|
|
@@ -21175,7 +21083,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
21175
21083
|
}
|
|
21176
21084
|
return (_ctx, _cache) => {
|
|
21177
21085
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
21178
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
21086
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
|
|
21179
21087
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
21180
21088
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
21181
21089
|
action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
|
|
@@ -21217,7 +21125,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
21217
21125
|
};
|
|
21218
21126
|
}
|
|
21219
21127
|
});
|
|
21220
|
-
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21128
|
+
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-33dff8fa"]]);
|
|
21221
21129
|
function createCommandExecutor(state2, commands) {
|
|
21222
21130
|
return {
|
|
21223
21131
|
execute(command, value) {
|
|
@@ -22137,12 +22045,12 @@ function useEditorKeyboard(doc, handleToolbarAction) {
|
|
|
22137
22045
|
}
|
|
22138
22046
|
});
|
|
22139
22047
|
}
|
|
22140
|
-
const _hoisted_1$
|
|
22141
|
-
const _hoisted_2$
|
|
22048
|
+
const _hoisted_1$q = { class: "content-area radius-05" };
|
|
22049
|
+
const _hoisted_2$h = {
|
|
22142
22050
|
key: 1,
|
|
22143
22051
|
class: "flex"
|
|
22144
22052
|
};
|
|
22145
|
-
const _sfc_main$
|
|
22053
|
+
const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
22146
22054
|
__name: "index",
|
|
22147
22055
|
props: {
|
|
22148
22056
|
modelValue: {},
|
|
@@ -22226,7 +22134,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22226
22134
|
vue.createElementVNode("div", {
|
|
22227
22135
|
class: vue.normalizeClass(["editor-container", { "split-view": vue.unref(editor).state.isSplitView }])
|
|
22228
22136
|
}, [
|
|
22229
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
22137
|
+
vue.createElementVNode("div", _hoisted_1$q, [
|
|
22230
22138
|
vue.createElementVNode("iframe", {
|
|
22231
22139
|
id: "rich-text-iframe",
|
|
22232
22140
|
ref_key: "iframe",
|
|
@@ -22246,7 +22154,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22246
22154
|
language: "html"
|
|
22247
22155
|
}, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)
|
|
22248
22156
|
], 2),
|
|
22249
|
-
_ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
22157
|
+
_ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$h, [
|
|
22250
22158
|
_cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
|
|
22251
22159
|
vue.createVNode(vue.unref(Btn), {
|
|
22252
22160
|
thin: "",
|
|
@@ -22289,10 +22197,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
22289
22197
|
};
|
|
22290
22198
|
}
|
|
22291
22199
|
});
|
|
22292
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22293
|
-
const _hoisted_1$
|
|
22294
|
-
const _hoisted_2$
|
|
22295
|
-
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 };
|
|
22296
22204
|
const _hoisted_4$8 = {
|
|
22297
22205
|
key: 2,
|
|
22298
22206
|
class: "ms-auto ps-05 me-05"
|
|
@@ -22300,7 +22208,7 @@ const _hoisted_4$8 = {
|
|
|
22300
22208
|
const _hoisted_5$8 = ["value"];
|
|
22301
22209
|
const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
|
|
22302
22210
|
const _hoisted_7$4 = { class: "block" };
|
|
22303
|
-
const _sfc_main$
|
|
22211
|
+
const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
22304
22212
|
__name: "SelectInput",
|
|
22305
22213
|
props: {
|
|
22306
22214
|
options: {},
|
|
@@ -22488,7 +22396,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22488
22396
|
trigger: vue.withCtx(() => [
|
|
22489
22397
|
vue.createElementVNode("label", null, [
|
|
22490
22398
|
vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
|
|
22491
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
22399
|
+
vue.createElementVNode("div", _hoisted_1$p, [
|
|
22492
22400
|
_ctx.searchable && vue.unref(open) ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
|
|
22493
22401
|
key: 0,
|
|
22494
22402
|
ref_key: "searchInput",
|
|
@@ -22519,7 +22427,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22519
22427
|
key: 0,
|
|
22520
22428
|
icon: _ctx.icon
|
|
22521
22429
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true),
|
|
22522
|
-
!_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),
|
|
22523
22431
|
_ctx.clearable && selectedItemCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8, [
|
|
22524
22432
|
vue.createVNode(vue.unref(Btn), {
|
|
22525
22433
|
flat: "",
|
|
@@ -22536,7 +22444,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22536
22444
|
key: 3,
|
|
22537
22445
|
thin: ""
|
|
22538
22446
|
}, { icon: vue.unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : vue.createCommentVNode("", true)
|
|
22539
|
-
], 42, _hoisted_2$
|
|
22447
|
+
], 42, _hoisted_2$g)),
|
|
22540
22448
|
_ctx.required ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
22541
22449
|
key: 2,
|
|
22542
22450
|
tabindex: "-1",
|
|
@@ -22606,7 +22514,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
22606
22514
|
};
|
|
22607
22515
|
}
|
|
22608
22516
|
});
|
|
22609
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22517
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-77b2541f"]]);
|
|
22610
22518
|
/*!
|
|
22611
22519
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
22612
22520
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -23203,15 +23111,15 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
23203
23111
|
return svg.outerHTML;
|
|
23204
23112
|
}
|
|
23205
23113
|
}
|
|
23206
|
-
const _hoisted_1$
|
|
23207
|
-
const _hoisted_2$
|
|
23114
|
+
const _hoisted_1$o = ["disabled"];
|
|
23115
|
+
const _hoisted_2$f = {
|
|
23208
23116
|
key: 1,
|
|
23209
23117
|
placeholder: "required",
|
|
23210
23118
|
type: "text",
|
|
23211
23119
|
required: "",
|
|
23212
23120
|
class: "pixel"
|
|
23213
23121
|
};
|
|
23214
|
-
const _sfc_main$
|
|
23122
|
+
const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
23215
23123
|
__name: "SignaturePad",
|
|
23216
23124
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
23217
23125
|
sigOption: {},
|
|
@@ -23364,8 +23272,8 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
23364
23272
|
ref: vCanvas,
|
|
23365
23273
|
class: "canvas",
|
|
23366
23274
|
disabled: _ctx.disabled
|
|
23367
|
-
}, null, 8, _hoisted_1$
|
|
23368
|
-
_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)
|
|
23369
23277
|
], 34);
|
|
23370
23278
|
};
|
|
23371
23279
|
}
|
|
@@ -25849,13 +25757,13 @@ const VueDraggableNext = vue.defineComponent({
|
|
|
25849
25757
|
}
|
|
25850
25758
|
}
|
|
25851
25759
|
});
|
|
25852
|
-
const _hoisted_1$
|
|
25853
|
-
const _hoisted_2$
|
|
25854
|
-
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" };
|
|
25855
25763
|
const _hoisted_4$7 = { class: "table-header" };
|
|
25856
25764
|
const _hoisted_5$7 = { class: "table-reorder" };
|
|
25857
25765
|
const _hoisted_6$6 = { class: "table-action" };
|
|
25858
|
-
const _sfc_main$
|
|
25766
|
+
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
25859
25767
|
__name: "TableField",
|
|
25860
25768
|
props: {
|
|
25861
25769
|
description: { default: "" },
|
|
@@ -25920,10 +25828,10 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
25920
25828
|
class: "table-field-wrap",
|
|
25921
25829
|
title: _ctx.description
|
|
25922
25830
|
}, [
|
|
25923
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
25831
|
+
vue.createElementVNode("div", _hoisted_2$e, [
|
|
25924
25832
|
vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
|
|
25925
25833
|
]),
|
|
25926
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
25834
|
+
vue.createElementVNode("div", _hoisted_3$c, [
|
|
25927
25835
|
vue.createElementVNode("div", _hoisted_4$7, [
|
|
25928
25836
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
|
|
25929
25837
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -25995,11 +25903,11 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
25995
25903
|
])),
|
|
25996
25904
|
_: 1
|
|
25997
25905
|
})
|
|
25998
|
-
], 8, _hoisted_1$
|
|
25906
|
+
], 8, _hoisted_1$n);
|
|
25999
25907
|
};
|
|
26000
25908
|
}
|
|
26001
25909
|
});
|
|
26002
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25910
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-a65c658c"]]);
|
|
26003
25911
|
function bind(fn2, thisArg) {
|
|
26004
25912
|
return function wrap() {
|
|
26005
25913
|
return fn2.apply(thisArg, arguments);
|
|
@@ -30446,13 +30354,13 @@ function parsePhoneNumber$1() {
|
|
|
30446
30354
|
function parsePhoneNumber() {
|
|
30447
30355
|
return withMetadataArgument(parsePhoneNumber$1, arguments);
|
|
30448
30356
|
}
|
|
30449
|
-
const _hoisted_1$
|
|
30450
|
-
const _hoisted_2$
|
|
30451
|
-
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"];
|
|
30452
30360
|
const _hoisted_4$6 = { class: "tel-country" };
|
|
30453
30361
|
const _hoisted_5$6 = { key: 1 };
|
|
30454
30362
|
const _hoisted_6$5 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
30455
|
-
const _sfc_main$
|
|
30363
|
+
const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
30456
30364
|
__name: "TelInput",
|
|
30457
30365
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
30458
30366
|
label: {},
|
|
@@ -30737,7 +30645,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30737
30645
|
])
|
|
30738
30646
|
]),
|
|
30739
30647
|
default: vue.withCtx(() => [
|
|
30740
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
30648
|
+
vue.createElementVNode("div", _hoisted_2$d, [
|
|
30741
30649
|
_ctx.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
|
|
30742
30650
|
key: 0,
|
|
30743
30651
|
modelValue: searchQuery.value,
|
|
@@ -30767,7 +30675,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30767
30675
|
}, null, 8, ["country"])) : vue.createCommentVNode("", true),
|
|
30768
30676
|
vue.createElementVNode("p", _hoisted_4$6, vue.toDisplayString(pb.name), 1),
|
|
30769
30677
|
computedDropDownOptions.value.showDialCodeInList ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$6, " +" + vue.toDisplayString(pb.dialCode), 1)) : vue.createCommentVNode("", true)
|
|
30770
|
-
], 40, _hoisted_3$
|
|
30678
|
+
], 40, _hoisted_3$b);
|
|
30771
30679
|
}), 128))
|
|
30772
30680
|
], 2)
|
|
30773
30681
|
])
|
|
@@ -30801,19 +30709,19 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
30801
30709
|
}, null, 44, _hoisted_6$5), [
|
|
30802
30710
|
[vue.vModelText, phone.value]
|
|
30803
30711
|
])
|
|
30804
|
-
], 40, _hoisted_1$
|
|
30712
|
+
], 40, _hoisted_1$m)
|
|
30805
30713
|
])
|
|
30806
30714
|
], 2);
|
|
30807
30715
|
};
|
|
30808
30716
|
}
|
|
30809
30717
|
});
|
|
30810
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30811
|
-
const _hoisted_1$
|
|
30812
|
-
const _hoisted_2$
|
|
30813
|
-
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"];
|
|
30814
30722
|
const _hoisted_4$5 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
30815
30723
|
const _hoisted_5$5 = { key: 2 };
|
|
30816
|
-
const _sfc_main$
|
|
30724
|
+
const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
30817
30725
|
__name: "TextInput",
|
|
30818
30726
|
props: {
|
|
30819
30727
|
id: {},
|
|
@@ -30911,7 +30819,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
30911
30819
|
onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
|
|
30912
30820
|
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
|
|
30913
30821
|
onInput: updateInputVal
|
|
30914
|
-
}), null, 16, _hoisted_3$
|
|
30822
|
+
}), null, 16, _hoisted_3$a)), [
|
|
30915
30823
|
[
|
|
30916
30824
|
vue.vModelDynamic,
|
|
30917
30825
|
vue.unref(inputVal),
|
|
@@ -30948,16 +30856,16 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
30948
30856
|
key: 4,
|
|
30949
30857
|
icon: _ctx.icon
|
|
30950
30858
|
}, null, 8, ["icon"])) : vue.createCommentVNode("", true)
|
|
30951
|
-
], 8, _hoisted_2$
|
|
30952
|
-
], 10, _hoisted_1$
|
|
30859
|
+
], 8, _hoisted_2$c)
|
|
30860
|
+
], 10, _hoisted_1$l);
|
|
30953
30861
|
};
|
|
30954
30862
|
}
|
|
30955
30863
|
});
|
|
30956
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30957
|
-
const _hoisted_1$
|
|
30958
|
-
const _hoisted_2$
|
|
30959
|
-
const _hoisted_3$
|
|
30960
|
-
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({
|
|
30961
30869
|
__name: "ToggleInput",
|
|
30962
30870
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
30963
30871
|
label: {},
|
|
@@ -30993,19 +30901,19 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
30993
30901
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
|
|
30994
30902
|
type: "checkbox",
|
|
30995
30903
|
required: _ctx.required
|
|
30996
|
-
}, null, 8, _hoisted_2$
|
|
30904
|
+
}, null, 8, _hoisted_2$b), [
|
|
30997
30905
|
[vue.vModelCheckbox, checked.value]
|
|
30998
30906
|
]),
|
|
30999
30907
|
vue.createElementVNode("label", { for: inputId.value }, [
|
|
31000
30908
|
vue.renderSlot(_ctx.$slots, "label", {}, () => [
|
|
31001
30909
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
31002
30910
|
], true)
|
|
31003
|
-
], 8, _hoisted_3$
|
|
31004
|
-
], 10, _hoisted_1$
|
|
30911
|
+
], 8, _hoisted_3$9)
|
|
30912
|
+
], 10, _hoisted_1$k);
|
|
31005
30913
|
};
|
|
31006
30914
|
}
|
|
31007
30915
|
});
|
|
31008
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
30916
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ebe691ee"]]);
|
|
31009
30917
|
const files = {
|
|
31010
30918
|
setBaseUrl: (baseUrl) => {
|
|
31011
30919
|
if (!baseUrl) return;
|
|
@@ -31031,9 +30939,9 @@ const files = {
|
|
|
31031
30939
|
});
|
|
31032
30940
|
}
|
|
31033
30941
|
};
|
|
31034
|
-
const _hoisted_1$
|
|
31035
|
-
const _hoisted_2$
|
|
31036
|
-
const _hoisted_3$
|
|
30942
|
+
const _hoisted_1$j = { class: "bagel-input" };
|
|
30943
|
+
const _hoisted_2$a = { key: 0 };
|
|
30944
|
+
const _hoisted_3$8 = {
|
|
31037
30945
|
key: 1,
|
|
31038
30946
|
placeholder: "required",
|
|
31039
30947
|
type: "text",
|
|
@@ -31070,7 +30978,7 @@ const _hoisted_14 = {
|
|
|
31070
30978
|
class: "progress"
|
|
31071
30979
|
};
|
|
31072
30980
|
const _hoisted_15 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
31073
|
-
const _sfc_main$
|
|
30981
|
+
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
31074
30982
|
__name: "UploadInput",
|
|
31075
30983
|
props: {
|
|
31076
30984
|
label: {},
|
|
@@ -31178,9 +31086,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
31178
31086
|
return (_ctx, _cache) => {
|
|
31179
31087
|
const _directive_tooltip = vue.resolveDirective("tooltip");
|
|
31180
31088
|
const _directive_lightbox = vue.resolveDirective("lightbox");
|
|
31181
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
31182
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$
|
|
31183
|
-
_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),
|
|
31184
31092
|
_ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$$), {
|
|
31185
31093
|
key: 2,
|
|
31186
31094
|
outline: "",
|
|
@@ -31404,9 +31312,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
31404
31312
|
};
|
|
31405
31313
|
}
|
|
31406
31314
|
});
|
|
31407
|
-
const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31408
|
-
const _hoisted_1$
|
|
31409
|
-
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({
|
|
31410
31318
|
__name: "IframeVue",
|
|
31411
31319
|
props: {
|
|
31412
31320
|
src: {},
|
|
@@ -31465,10 +31373,109 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
31465
31373
|
scrolling: _ctx.scrolling,
|
|
31466
31374
|
srcset: _ctx.srcset,
|
|
31467
31375
|
onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
|
|
31468
|
-
}, 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"]));
|
|
31469
31475
|
};
|
|
31470
31476
|
}
|
|
31471
31477
|
});
|
|
31478
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-29509e85"]]);
|
|
31472
31479
|
const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
31473
31480
|
const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
31474
31481
|
__name: "BottomMenu",
|
|
@@ -35555,7 +35562,7 @@ exports.Flag = Flag;
|
|
|
35555
35562
|
exports.IMAGE_FORMATS = IMAGE_FORMATS;
|
|
35556
35563
|
exports.IMAGE_FORMATS_REGEXP = IMAGE_FORMATS_REGEXP;
|
|
35557
35564
|
exports.Icon = _sfc_main$d;
|
|
35558
|
-
exports.IframeVue = _sfc_main$
|
|
35565
|
+
exports.IframeVue = _sfc_main$q;
|
|
35559
35566
|
exports.Image = Image$1;
|
|
35560
35567
|
exports.JSONInput = JSONInput;
|
|
35561
35568
|
exports.Layout = Layout;
|
|
@@ -35573,7 +35580,7 @@ exports.NavBar = NavBar;
|
|
|
35573
35580
|
exports.NumberInput = NumberInput;
|
|
35574
35581
|
exports.OTP = OTP;
|
|
35575
35582
|
exports.PageTitle = _sfc_main$8;
|
|
35576
|
-
exports.PasswordInput = _sfc_main$
|
|
35583
|
+
exports.PasswordInput = _sfc_main$E;
|
|
35577
35584
|
exports.Pill = Pill;
|
|
35578
35585
|
exports.RadioGroup = RadioGroup;
|
|
35579
35586
|
exports.RadioPillsInput = RadioPillsInput;
|
|
@@ -35582,7 +35589,7 @@ exports.RichText = RichText;
|
|
|
35582
35589
|
exports.RouterWrapper = RouterWrapper;
|
|
35583
35590
|
exports.SelectInput = SelectInput;
|
|
35584
35591
|
exports.SidebarMenu = SidebarMenu;
|
|
35585
|
-
exports.SignaturePad = _sfc_main$
|
|
35592
|
+
exports.SignaturePad = _sfc_main$w;
|
|
35586
35593
|
exports.Skeleton = Skeleton;
|
|
35587
35594
|
exports.TabbedLayout = TabbedLayout;
|
|
35588
35595
|
exports.TableField = TableField;
|