@bagelink/vue 0.0.712 → 0.0.716
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/Accordion.d.ts +12 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/AccordionItem.d.ts +34 -0
- package/dist/components/AccordionItem.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +34 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +36 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +22 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/BglVideo.d.ts +20 -0
- package/dist/components/BglVideo.d.ts.map +1 -0
- package/dist/components/Btn.d.ts +99 -0
- package/dist/components/Btn.d.ts.map +1 -0
- package/dist/components/Card.d.ts +39 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Carousel.d.ts +74 -0
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/DataPreview.d.ts +42 -0
- package/dist/components/DataPreview.d.ts.map +1 -0
- package/dist/components/Drop.vue.d.ts +34 -0
- package/dist/components/Drop.vue.d.ts.map +1 -0
- package/dist/components/DropDown.vue.d.ts +3 -3
- package/dist/components/FileUploader.vue.d.ts +60 -0
- package/dist/components/FileUploader.vue.d.ts.map +1 -0
- package/dist/components/Flag.d.ts +20 -0
- package/dist/components/Flag.d.ts.map +1 -0
- package/dist/components/FormSchema.vue.d.ts +5 -4
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ListItem.d.ts +34 -0
- package/dist/components/ListItem.d.ts.map +1 -0
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListView.d.ts +13 -0
- package/dist/components/ListView.d.ts.map +1 -0
- package/dist/components/MapEmbed.d.ts +3 -0
- package/dist/components/MapEmbed.d.ts.map +1 -0
- package/dist/components/MaterialIcon.d.ts +26 -0
- package/dist/components/MaterialIcon.d.ts.map +1 -0
- package/dist/components/Modal.d.ts +46 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/ModalBglForm.vue.d.ts +21 -20
- package/dist/components/ModalConfirm.d.ts +24 -0
- package/dist/components/ModalConfirm.d.ts.map +1 -0
- package/dist/components/ModalForm.d.ts +78 -0
- package/dist/components/ModalForm.d.ts.map +1 -0
- package/dist/components/NavBar.d.ts +64 -0
- package/dist/components/NavBar.d.ts.map +1 -0
- package/dist/components/PageTitle.d.ts +24 -0
- package/dist/components/PageTitle.d.ts.map +1 -0
- package/dist/components/PersonPreview.vue.d.ts +5 -4
- package/dist/components/PersonPreviewFormkit.vue.d.ts +4 -3
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/RouterWrapper.d.ts +3 -0
- package/dist/components/RouterWrapper.d.ts.map +1 -0
- package/dist/components/TabbedLayout.vue.d.ts +5 -4
- package/dist/components/TableSchema.d.ts +35 -0
- package/dist/components/TableSchema.d.ts.map +1 -0
- package/dist/components/Title.d.ts +42 -0
- package/dist/components/Title.d.ts.map +1 -0
- package/dist/components/TopBar.d.ts +12 -0
- package/dist/components/TopBar.d.ts.map +1 -0
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/dashboard/Lineart.d.ts +20 -0
- package/dist/components/dashboard/Lineart.d.ts.map +1 -0
- package/dist/components/form/BglField.d.ts +25 -0
- package/dist/components/form/BglField.d.ts.map +1 -0
- package/dist/components/form/BglForm.d.ts +75 -0
- package/dist/components/form/BglForm.d.ts.map +1 -0
- package/dist/components/form/ItemRef.vue.d.ts +5 -3
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +4 -3
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CheckInput.d.ts +56 -0
- package/dist/components/form/inputs/CheckInput.d.ts.map +1 -0
- package/dist/components/form/inputs/Checkbox.d.ts +16 -0
- package/dist/components/form/inputs/Checkbox.d.ts.map +1 -0
- package/dist/components/form/inputs/ColorPicker.d.ts +48 -0
- package/dist/components/form/inputs/ColorPicker.d.ts.map +1 -0
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.d.ts +64 -0
- package/dist/components/form/inputs/DateInput.d.ts.map +1 -0
- package/dist/components/form/inputs/DatePicker.d.ts +33 -0
- package/dist/components/form/inputs/DatePicker.d.ts.map +1 -0
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FileUpload.d.ts +108 -0
- package/dist/components/form/inputs/FileUpload.d.ts.map +1 -0
- package/dist/components/form/inputs/FileUpload.vue.d.ts +6 -0
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/JSONInput.d.ts +53 -0
- package/dist/components/form/inputs/JSONInput.d.ts.map +1 -0
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioGroup.d.ts +42 -0
- package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
- package/dist/components/form/inputs/RadioPillsInput.d.ts +48 -0
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +1 -0
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText.d.ts +20 -0
- package/dist/components/form/inputs/RichText.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +22 -0
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +24 -0
- package/dist/components/form/inputs/RichText2/index.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +6 -8
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.d.ts +55 -0
- package/dist/components/form/inputs/SelectInput.d.ts.map +1 -0
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +72 -0
- package/dist/components/form/inputs/SignaturePad.d.ts.map +1 -0
- package/dist/components/form/inputs/TableField.d.ts +45 -0
- package/dist/components/form/inputs/TableField.d.ts.map +1 -0
- package/dist/components/form/inputs/TelInput.d.ts +241 -0
- package/dist/components/form/inputs/TelInput.d.ts.map +1 -0
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.d.ts +90 -0
- package/dist/components/form/inputs/TextInput.d.ts.map +1 -0
- package/dist/components/form/inputs/ToggleInput.d.ts +58 -0
- package/dist/components/form/inputs/ToggleInput.d.ts.map +1 -0
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/layout/BottomMenu.d.ts +27 -0
- package/dist/components/layout/BottomMenu.d.ts.map +1 -0
- package/dist/components/layout/Layout.d.ts +58 -0
- package/dist/components/layout/Layout.d.ts.map +1 -0
- package/dist/components/layout/SidebarMenu.d.ts +38 -0
- package/dist/components/layout/SidebarMenu.d.ts.map +1 -0
- package/dist/components/layout/TabbedLayout.d.ts +42 -0
- package/dist/components/layout/TabbedLayout.d.ts.map +1 -0
- package/dist/components/layout/Tabs.d.ts +31 -0
- package/dist/components/layout/Tabs.d.ts.map +1 -0
- package/dist/components/layout/TabsBody.d.ts +23 -0
- package/dist/components/layout/TabsBody.d.ts.map +1 -0
- package/dist/components/layout/TabsNav.d.ts +35 -0
- package/dist/components/layout/TabsNav.d.ts.map +1 -0
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +4 -3
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/index.cjs +240 -184
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +240 -184
- package/dist/plugins/modal.d.ts.map +1 -1
- package/dist/style.css +178 -89
- package/dist/utils/constants.d.ts +5 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +1 -0
- package/package.json +13 -13
- package/src/components/ListItem.vue +6 -3
- package/src/components/form/inputs/FileUpload.vue +185 -64
- package/src/components/form/inputs/RichText2/Toolbar.vue +39 -62
- package/src/components/form/inputs/RichText2/index.vue +34 -16
- package/src/components/form/inputs/SelectInput.vue +20 -9
- package/src/index.ts +1 -0
- package/src/plugins/modal.ts +48 -16
- package/src/utils/constants.ts +4 -0
- package/dist/components/Popover.vue.d.ts +0 -10
- package/dist/components/Popover.vue.d.ts.map +0 -1
- package/dist/types/materialIcon.d.ts +0 -2
- package/dist/types/materialIcon.d.ts.map +0 -1
- package/src/components/form/inputs/FileUploadURL.vue +0 -300
package/dist/index.mjs
CHANGED
|
@@ -2937,7 +2937,10 @@ function AxiosError(message2, code2, config, request, response) {
|
|
|
2937
2937
|
code2 && (this.code = code2);
|
|
2938
2938
|
config && (this.config = config);
|
|
2939
2939
|
request && (this.request = request);
|
|
2940
|
-
|
|
2940
|
+
if (response) {
|
|
2941
|
+
this.response = response;
|
|
2942
|
+
this.status = response.status ? response.status : null;
|
|
2943
|
+
}
|
|
2941
2944
|
}
|
|
2942
2945
|
utils$1.inherits(AxiosError, Error, {
|
|
2943
2946
|
toJSON: function toJSON() {
|
|
@@ -2956,7 +2959,7 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
2956
2959
|
// Axios
|
|
2957
2960
|
config: utils$1.toJSONObject(this.config),
|
|
2958
2961
|
code: this.code,
|
|
2959
|
-
status: this.
|
|
2962
|
+
status: this.status
|
|
2960
2963
|
};
|
|
2961
2964
|
}
|
|
2962
2965
|
});
|
|
@@ -3237,9 +3240,8 @@ const platform$1 = {
|
|
|
3237
3240
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
3238
3241
|
};
|
|
3239
3242
|
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
3240
|
-
const
|
|
3241
|
-
|
|
3242
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
3243
|
+
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
3244
|
+
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
3243
3245
|
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
3244
3246
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
3245
3247
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
@@ -3250,6 +3252,7 @@ const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
3250
3252
|
hasBrowserEnv,
|
|
3251
3253
|
hasStandardBrowserEnv,
|
|
3252
3254
|
hasStandardBrowserWebWorkerEnv,
|
|
3255
|
+
navigator: _navigator,
|
|
3253
3256
|
origin
|
|
3254
3257
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3255
3258
|
const platform = {
|
|
@@ -3825,7 +3828,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
|
3825
3828
|
// Standard browser envs have full support of the APIs needed to test
|
|
3826
3829
|
// whether the request URL is of the same origin as current location.
|
|
3827
3830
|
function standardBrowserEnv() {
|
|
3828
|
-
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
3831
|
+
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
3829
3832
|
const urlParsingNode = document.createElement("a");
|
|
3830
3833
|
let originURL;
|
|
3831
3834
|
function resolveURL(url) {
|
|
@@ -4331,6 +4334,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4331
4334
|
if (!utils$1.isString(withCredentials)) {
|
|
4332
4335
|
withCredentials = withCredentials ? "include" : "omit";
|
|
4333
4336
|
}
|
|
4337
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
4334
4338
|
request = new Request(url, {
|
|
4335
4339
|
...fetchOptions,
|
|
4336
4340
|
signal: composedSignal,
|
|
@@ -4338,7 +4342,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4338
4342
|
headers: headers.normalize().toJSON(),
|
|
4339
4343
|
body: data2,
|
|
4340
4344
|
duplex: "half",
|
|
4341
|
-
credentials: withCredentials
|
|
4345
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
4342
4346
|
});
|
|
4343
4347
|
let response = await fetch(request);
|
|
4344
4348
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4482,7 +4486,7 @@ function dispatchRequest(config) {
|
|
|
4482
4486
|
return Promise.reject(reason);
|
|
4483
4487
|
});
|
|
4484
4488
|
}
|
|
4485
|
-
const VERSION = "1.7.
|
|
4489
|
+
const VERSION = "1.7.5";
|
|
4486
4490
|
const validators$1 = {};
|
|
4487
4491
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4488
4492
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5467,14 +5471,16 @@ const ModalPlugin = {
|
|
|
5467
5471
|
const hideModal = (index2) => {
|
|
5468
5472
|
modalStack.value.splice(index2, 1);
|
|
5469
5473
|
};
|
|
5470
|
-
const modalConfirm = async (options) => new Promise(
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5474
|
+
const modalConfirm = async (options) => new Promise(
|
|
5475
|
+
(resolve) => {
|
|
5476
|
+
if (typeof options === "string") options = { title: "", message: options };
|
|
5477
|
+
modalStack.value.push({
|
|
5478
|
+
modalOptions: { ...options, resolve },
|
|
5479
|
+
modalType: "confirm",
|
|
5480
|
+
componentSlots: {}
|
|
5481
|
+
});
|
|
5482
|
+
}
|
|
5483
|
+
);
|
|
5478
5484
|
const showModal = (modalType, options, slots = {}) => {
|
|
5479
5485
|
modalStack.value.push({
|
|
5480
5486
|
modalOptions: options,
|
|
@@ -5496,11 +5502,19 @@ const ModalPlugin = {
|
|
|
5496
5502
|
data: () => ({ modalStack: modalStack.value }),
|
|
5497
5503
|
render() {
|
|
5498
5504
|
return this.modalStack.map((modal, index2) => {
|
|
5499
|
-
const props2 = {
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5505
|
+
const props2 = {
|
|
5506
|
+
...modal.modalOptions,
|
|
5507
|
+
"visible": true,
|
|
5508
|
+
"onUpdate:visible": () => {
|
|
5509
|
+
hideModal(index2);
|
|
5510
|
+
}
|
|
5511
|
+
};
|
|
5512
|
+
if (modal.modalType === "modalForm") {
|
|
5513
|
+
return h$2(ModalForm, props2, modal.componentSlots);
|
|
5514
|
+
}
|
|
5515
|
+
if (modal.modalType === "confirm") {
|
|
5516
|
+
return h$2(_sfc_main$v, props2, {});
|
|
5517
|
+
}
|
|
5504
5518
|
return h$2(_sfc_main$N, props2, modal.componentSlots);
|
|
5505
5519
|
});
|
|
5506
5520
|
}
|
|
@@ -6105,7 +6119,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
6105
6119
|
return (_ctx, _cache) => {
|
|
6106
6120
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "RouterLink" : "div"), {
|
|
6107
6121
|
to: _ctx.to,
|
|
6108
|
-
class: normalizeClass(["flex gap-1", { "
|
|
6122
|
+
class: normalizeClass(["flex gap-1 list-item", { "notClickable": !(_ctx.to || _ctx.onClick), "no-border-list": _ctx.flat }])
|
|
6109
6123
|
}, {
|
|
6110
6124
|
default: withCtx(() => [
|
|
6111
6125
|
_ctx.src || _ctx.showAvatar ? (openBlock(), createBlock(unref(Avatar), {
|
|
@@ -6472,19 +6486,19 @@ function useVerticalVirtualList(options, list) {
|
|
|
6472
6486
|
containerRef
|
|
6473
6487
|
};
|
|
6474
6488
|
}
|
|
6475
|
-
const _withScopeId$
|
|
6489
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-5441d9cd"), n2 = n2(), popScopeId(), n2);
|
|
6476
6490
|
const _hoisted_1$F = {
|
|
6477
6491
|
key: 0,
|
|
6478
6492
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
6479
6493
|
};
|
|
6480
|
-
const _hoisted_2$u = /* @__PURE__ */ _withScopeId$
|
|
6494
|
+
const _hoisted_2$u = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1));
|
|
6481
6495
|
const _hoisted_3$k = [
|
|
6482
6496
|
_hoisted_2$u
|
|
6483
6497
|
];
|
|
6484
6498
|
const _hoisted_4$e = { class: "infinite-wrapper" };
|
|
6485
6499
|
const _hoisted_5$e = { class: "row first-row" };
|
|
6486
6500
|
const _hoisted_6$9 = { key: 0 };
|
|
6487
|
-
const _hoisted_7$
|
|
6501
|
+
const _hoisted_7$4 = ["onClick"];
|
|
6488
6502
|
const _hoisted_8$2 = { class: "flex" };
|
|
6489
6503
|
const _hoisted_9$2 = ["onClick"];
|
|
6490
6504
|
const _hoisted_10$1 = { key: 0 };
|
|
@@ -6657,7 +6671,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6657
6671
|
}, null, 8, ["class"])
|
|
6658
6672
|
], 2)
|
|
6659
6673
|
])
|
|
6660
|
-
], 8, _hoisted_7$
|
|
6674
|
+
], 8, _hoisted_7$4);
|
|
6661
6675
|
}), 128))
|
|
6662
6676
|
]),
|
|
6663
6677
|
createElementVNode("tbody", null, [
|
|
@@ -6756,7 +6770,7 @@ const _hoisted_6$8 = {
|
|
|
6756
6770
|
key: 0,
|
|
6757
6771
|
class: "data-row"
|
|
6758
6772
|
};
|
|
6759
|
-
const _hoisted_7$
|
|
6773
|
+
const _hoisted_7$3 = { class: "key" };
|
|
6760
6774
|
const _hoisted_8$1 = { class: "m-0" };
|
|
6761
6775
|
const _hoisted_9$1 = {
|
|
6762
6776
|
key: 0,
|
|
@@ -6825,7 +6839,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6825
6839
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, ({ id, label }) => {
|
|
6826
6840
|
return openBlock(), createElementBlock(Fragment$1, { key: id }, [
|
|
6827
6841
|
!isUnset(itemData.value[id]) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
6828
|
-
createElementVNode("div", _hoisted_7$
|
|
6842
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
6829
6843
|
createElementVNode("p", _hoisted_8$1, toDisplayString(label), 1)
|
|
6830
6844
|
]),
|
|
6831
6845
|
createElementVNode("div", null, [
|
|
@@ -16303,8 +16317,7 @@ const _hoisted_4$c = {
|
|
|
16303
16317
|
class: "ms-auto ps-05 me-05"
|
|
16304
16318
|
};
|
|
16305
16319
|
const _hoisted_5$c = ["value"];
|
|
16306
|
-
const _hoisted_6$7 =
|
|
16307
|
-
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16320
|
+
const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
|
|
16308
16321
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16309
16322
|
__name: "SelectInput",
|
|
16310
16323
|
props: {
|
|
@@ -16469,7 +16482,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16469
16482
|
placeholder: "Search",
|
|
16470
16483
|
icon: "search"
|
|
16471
16484
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
16472
|
-
createElementVNode("div",
|
|
16485
|
+
createElementVNode("div", {
|
|
16486
|
+
class: normalizeClass(["selectinput-options", { multiselect: _ctx.multiselect }])
|
|
16487
|
+
}, [
|
|
16473
16488
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(filteredOptions.value, (option2, i2) => {
|
|
16474
16489
|
return openBlock(), createElementBlock("div", {
|
|
16475
16490
|
key: `${option2}${i2}`,
|
|
@@ -16480,19 +16495,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16480
16495
|
onClick: ($event) => select2(option2),
|
|
16481
16496
|
onKeydown: withKeys(($event) => select2(option2), ["enter"])
|
|
16482
16497
|
}, [
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16498
|
+
_ctx.multiselect ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
16499
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
16500
|
+
key: 0,
|
|
16501
|
+
icon: "select_check_box"
|
|
16502
|
+
})) : createCommentVNode("", true),
|
|
16503
|
+
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
16504
|
+
key: 1,
|
|
16505
|
+
class: "opacity-3",
|
|
16506
|
+
icon: "check_box_outline_blank"
|
|
16507
|
+
})) : createCommentVNode("", true)
|
|
16508
|
+
], 64)) : createCommentVNode("", true),
|
|
16492
16509
|
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
16493
|
-
], 42,
|
|
16510
|
+
], 42, _hoisted_6$7);
|
|
16494
16511
|
}), 128))
|
|
16495
|
-
]),
|
|
16512
|
+
], 2),
|
|
16496
16513
|
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
16497
16514
|
]),
|
|
16498
16515
|
_: 3
|
|
@@ -16516,9 +16533,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16516
16533
|
!_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
|
|
16517
16534
|
_ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
16518
16535
|
createVNode(unref(Btn), {
|
|
16536
|
+
flat: "",
|
|
16519
16537
|
thin: "",
|
|
16520
16538
|
icon: "clear",
|
|
16521
|
-
class: "color-
|
|
16539
|
+
class: "color-gray",
|
|
16522
16540
|
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
16523
16541
|
isRef(selectedItems) ? selectedItems.value = [] : selectedItems = [];
|
|
16524
16542
|
emitUpdate();
|
|
@@ -16546,7 +16564,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16546
16564
|
};
|
|
16547
16565
|
}
|
|
16548
16566
|
});
|
|
16549
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16567
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-25fde24f"]]);
|
|
16550
16568
|
/*!
|
|
16551
16569
|
* vue-draggable-next v2.2.0
|
|
16552
16570
|
* (c) 2023 Anish George
|
|
@@ -19540,32 +19558,30 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19540
19558
|
}
|
|
19541
19559
|
});
|
|
19542
19560
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
|
|
19543
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-4c71cd49"), n2 = n2(), popScopeId(), n2);
|
|
19544
19561
|
const _hoisted_1$k = { class: "bagel-input" };
|
|
19545
19562
|
const _hoisted_2$f = {
|
|
19546
19563
|
key: 0,
|
|
19547
|
-
class: "
|
|
19564
|
+
class: "bgl-multi-preview"
|
|
19548
19565
|
};
|
|
19549
19566
|
const _hoisted_3$b = ["src"];
|
|
19550
|
-
const _hoisted_4$7 = {
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
};
|
|
19554
|
-
const _hoisted_5$7 = ["src"];
|
|
19555
|
-
const _hoisted_6$5 = { class: "no-margin" };
|
|
19567
|
+
const _hoisted_4$7 = { class: "m-0" };
|
|
19568
|
+
const _hoisted_5$7 = ["width", "src"];
|
|
19569
|
+
const _hoisted_6$5 = { class: "no-margin multi-preview-txt" };
|
|
19556
19570
|
const _hoisted_7$2 = {
|
|
19557
19571
|
key: 0,
|
|
19558
|
-
class: "
|
|
19572
|
+
class: "progress"
|
|
19559
19573
|
};
|
|
19560
|
-
const _hoisted_8 =
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
const
|
|
19574
|
+
const _hoisted_8 = {
|
|
19575
|
+
key: 1,
|
|
19576
|
+
class: "bgl-single-preview"
|
|
19577
|
+
};
|
|
19578
|
+
const _hoisted_9 = ["src"];
|
|
19579
|
+
const _hoisted_10 = {
|
|
19565
19580
|
key: 0,
|
|
19566
19581
|
class: "progress"
|
|
19567
19582
|
};
|
|
19568
|
-
const
|
|
19583
|
+
const _hoisted_11 = ["src"];
|
|
19584
|
+
const _hoisted_12 = { class: "p-1 flex column hover fileUploadPlaceHolder" };
|
|
19569
19585
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
19570
19586
|
__name: "FileUpload",
|
|
19571
19587
|
props: {
|
|
@@ -19575,7 +19591,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19575
19591
|
bindkey: {},
|
|
19576
19592
|
modelValue: {},
|
|
19577
19593
|
width: {},
|
|
19578
|
-
|
|
19594
|
+
height: {},
|
|
19595
|
+
topic: {},
|
|
19596
|
+
fill: { type: Boolean },
|
|
19597
|
+
oval: { type: Boolean }
|
|
19579
19598
|
},
|
|
19580
19599
|
emits: ["update:modelValue", "addFileStart"],
|
|
19581
19600
|
setup(__props, { emit: __emit }) {
|
|
@@ -19583,6 +19602,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19583
19602
|
const emit2 = __emit;
|
|
19584
19603
|
const bagel = useBagel();
|
|
19585
19604
|
const bindKey2 = props2.bindkey || "id";
|
|
19605
|
+
const isImage = (str) => IMAGE_FORMATS_REGEXP.test(str);
|
|
19586
19606
|
let file_bindkeys = ref(props2.modelValue || []);
|
|
19587
19607
|
const storageFiles = ref([]);
|
|
19588
19608
|
async function fetchFiles() {
|
|
@@ -19701,9 +19721,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19701
19721
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
19702
19722
|
createElementVNode("div", {
|
|
19703
19723
|
class: normalizeClass(["fileUploadWrap", {
|
|
19704
|
-
fileDropZone: !storageFiles.value.length && !fileQueue.value.length,
|
|
19705
|
-
dragover: unref(isDragOver)
|
|
19724
|
+
"fileDropZone": !storageFiles.value.length && !fileQueue.value.length,
|
|
19725
|
+
"dragover": unref(isDragOver),
|
|
19726
|
+
"bgl_oval-upload": _ctx.oval
|
|
19706
19727
|
}]),
|
|
19728
|
+
style: normalizeStyle({ width: props2.width, height: props2.height || "215px" }),
|
|
19707
19729
|
onClick: browse,
|
|
19708
19730
|
onDragover: dragover,
|
|
19709
19731
|
onDrop: drop3,
|
|
@@ -19713,24 +19735,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19713
19735
|
files: storageFiles.value,
|
|
19714
19736
|
fileQueue: fileQueue.value
|
|
19715
19737
|
}, () => [
|
|
19716
|
-
(openBlock(
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
19723
|
-
|
|
19724
|
-
|
|
19725
|
-
}, null, 8, _hoisted_3$b)
|
|
19726
|
-
])) : createCommentVNode("", true),
|
|
19727
|
-
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
19728
|
-
createElementVNode("img", {
|
|
19729
|
-
class: "preview",
|
|
19738
|
+
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
19739
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
|
|
19740
|
+
return openBlock(), createElementBlock("div", {
|
|
19741
|
+
key: file.id,
|
|
19742
|
+
class: "multi-image-item-preview"
|
|
19743
|
+
}, [
|
|
19744
|
+
isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
|
|
19745
|
+
key: 0,
|
|
19746
|
+
class: "multi-preview",
|
|
19730
19747
|
src: file.url,
|
|
19731
19748
|
alt: ""
|
|
19732
|
-
}, null, 8,
|
|
19733
|
-
|
|
19749
|
+
}, null, 8, _hoisted_3$b)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
19750
|
+
key: 1,
|
|
19751
|
+
icon: "draft",
|
|
19752
|
+
class: "multi-preview"
|
|
19753
|
+
})),
|
|
19754
|
+
createElementVNode("p", _hoisted_4$7, toDisplayString(file.name), 1),
|
|
19734
19755
|
createVNode(unref(Btn), {
|
|
19735
19756
|
thin: "",
|
|
19736
19757
|
flat: "",
|
|
@@ -19738,42 +19759,84 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19738
19759
|
color: "red",
|
|
19739
19760
|
onClick: withModifiers(($event) => removeFile(file), ["stop"])
|
|
19740
19761
|
}, null, 8, ["onClick"])
|
|
19741
|
-
])
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19762
|
+
]);
|
|
19763
|
+
}), 128)),
|
|
19764
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(fileQueue.value, (fileQ) => {
|
|
19765
|
+
return openBlock(), createElementBlock("div", {
|
|
19766
|
+
key: fileQ.file.name,
|
|
19767
|
+
class: "multi-image-item-preview"
|
|
19768
|
+
}, [
|
|
19769
|
+
isImage(fileQ.file.type) ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
19770
|
+
_ctx.multiple ? (openBlock(), createElementBlock("img", {
|
|
19771
|
+
key: 0,
|
|
19772
|
+
width: _ctx.width || "220",
|
|
19773
|
+
class: "multi-preview",
|
|
19774
|
+
src: fileToUrl(fileQ.file),
|
|
19775
|
+
alt: ""
|
|
19776
|
+
}, null, 8, _hoisted_5$7)) : createCommentVNode("", true)
|
|
19777
|
+
], 64)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
19778
|
+
key: 1,
|
|
19779
|
+
icon: "draft",
|
|
19780
|
+
class: "multi-preview"
|
|
19781
|
+
})),
|
|
19782
|
+
createElementVNode("p", _hoisted_6$5, toDisplayString(fileQ.name), 1),
|
|
19783
|
+
createElementVNode("div", {
|
|
19784
|
+
class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
|
|
19785
|
+
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
19786
|
+
}, [
|
|
19787
|
+
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
19788
|
+
createVNode(unref(_sfc_main$Q), {
|
|
19789
|
+
class: "success",
|
|
19790
|
+
icon: "check"
|
|
19791
|
+
})
|
|
19792
|
+
], 6)
|
|
19793
|
+
]);
|
|
19794
|
+
}), 128))
|
|
19795
|
+
])) : createCommentVNode("", true),
|
|
19796
|
+
!_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
19797
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
|
|
19798
|
+
return openBlock(), createElementBlock("div", {
|
|
19799
|
+
key: file.id,
|
|
19800
|
+
class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
|
|
19801
|
+
}, [
|
|
19802
|
+
isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
|
|
19757
19803
|
key: 0,
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
src: fileToUrl(fileQ.file),
|
|
19804
|
+
class: "single-preview",
|
|
19805
|
+
src: file.url,
|
|
19761
19806
|
alt: ""
|
|
19762
|
-
}, null, 8,
|
|
19763
|
-
|
|
19807
|
+
}, null, 8, _hoisted_9)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
19808
|
+
key: 1,
|
|
19809
|
+
size: 4,
|
|
19810
|
+
weight: "2",
|
|
19811
|
+
icon: "draft",
|
|
19812
|
+
class: "color-primary w-100"
|
|
19813
|
+
}))
|
|
19814
|
+
], 2);
|
|
19815
|
+
}), 128)),
|
|
19816
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(fileQueue.value, (fileQ) => {
|
|
19817
|
+
return openBlock(), createElementBlock("div", {
|
|
19818
|
+
key: fileQ.file.name,
|
|
19819
|
+
class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
|
|
19820
|
+
}, [
|
|
19764
19821
|
createElementVNode("div", {
|
|
19765
19822
|
class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
|
|
19766
19823
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
19767
19824
|
}, [
|
|
19768
|
-
fileQ.progress < 100 ? (openBlock(), createElementBlock("span",
|
|
19825
|
+
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
19769
19826
|
createVNode(unref(_sfc_main$Q), {
|
|
19770
19827
|
class: "success",
|
|
19771
19828
|
icon: "check"
|
|
19772
19829
|
})
|
|
19773
|
-
], 6)
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19830
|
+
], 6),
|
|
19831
|
+
isImage(fileQ.file.type) ? (openBlock(), createElementBlock("img", {
|
|
19832
|
+
key: 0,
|
|
19833
|
+
class: "single-preview",
|
|
19834
|
+
src: fileToUrl(fileQ.file),
|
|
19835
|
+
alt: ""
|
|
19836
|
+
}, null, 8, _hoisted_11)) : createCommentVNode("", true)
|
|
19837
|
+
], 2);
|
|
19838
|
+
}), 128))
|
|
19839
|
+
])) : createCommentVNode("", true)
|
|
19777
19840
|
], true),
|
|
19778
19841
|
!storageFiles.value.length && !fileQueue.value.length || _ctx.multiple ? renderSlot(_ctx.$slots, "placeholder", {
|
|
19779
19842
|
key: 0,
|
|
@@ -19781,14 +19844,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19781
19844
|
fileQueue: fileQueue.value,
|
|
19782
19845
|
browse
|
|
19783
19846
|
}, () => [
|
|
19784
|
-
|
|
19847
|
+
createElementVNode("p", _hoisted_12, [
|
|
19848
|
+
createVNode(unref(_sfc_main$Q), { icon: "upload_2" }),
|
|
19849
|
+
createTextVNode(" Drop files here or click to upload ")
|
|
19850
|
+
])
|
|
19785
19851
|
], true) : createCommentVNode("", true)
|
|
19786
|
-
],
|
|
19852
|
+
], 38)
|
|
19787
19853
|
]);
|
|
19788
19854
|
};
|
|
19789
19855
|
}
|
|
19790
19856
|
});
|
|
19791
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
19857
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5911e10d"]]);
|
|
19792
19858
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
19793
19859
|
const _hoisted_1$j = ["title"];
|
|
19794
19860
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -33178,7 +33244,11 @@ function createNodeFromContent(content, schema, options) {
|
|
|
33178
33244
|
if (isArrayContent) {
|
|
33179
33245
|
return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
|
|
33180
33246
|
}
|
|
33181
|
-
|
|
33247
|
+
const node = schema.nodeFromJSON(content);
|
|
33248
|
+
if (options.errorOnInvalidContent) {
|
|
33249
|
+
node.check();
|
|
33250
|
+
}
|
|
33251
|
+
return node;
|
|
33182
33252
|
} catch (error) {
|
|
33183
33253
|
if (options.errorOnInvalidContent) {
|
|
33184
33254
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
|
|
@@ -46357,7 +46427,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46357
46427
|
});
|
|
46358
46428
|
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
|
|
46359
46429
|
/*!
|
|
46360
|
-
* Signature Pad v5.0.
|
|
46430
|
+
* Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
|
|
46361
46431
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
46362
46432
|
*/
|
|
46363
46433
|
class Point {
|
|
@@ -46397,7 +46467,7 @@ class Bezier {
|
|
|
46397
46467
|
const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
|
|
46398
46468
|
const dxm = m1.x - m2.x;
|
|
46399
46469
|
const dym = m1.y - m2.y;
|
|
46400
|
-
const k2 = l2 / (l1 + l2);
|
|
46470
|
+
const k2 = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
|
|
46401
46471
|
const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
|
|
46402
46472
|
const tx = s2.x - cm.x;
|
|
46403
46473
|
const ty = s2.y - cm.y;
|
|
@@ -47088,7 +47158,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
47088
47158
|
}
|
|
47089
47159
|
});
|
|
47090
47160
|
const _hoisted_1$f = {
|
|
47091
|
-
class: "toolbar",
|
|
47161
|
+
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
47092
47162
|
role: "toolbar"
|
|
47093
47163
|
};
|
|
47094
47164
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -47099,82 +47169,58 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
47099
47169
|
emits: ["action"],
|
|
47100
47170
|
setup(__props, { emit: __emit }) {
|
|
47101
47171
|
const emit2 = __emit;
|
|
47102
|
-
|
|
47103
|
-
|
|
47172
|
+
ref(null);
|
|
47173
|
+
ref(null);
|
|
47104
47174
|
const toolbarOptions = [
|
|
47175
|
+
{ name: "separator" },
|
|
47105
47176
|
{ name: "bold", icon: "format_bold" },
|
|
47106
47177
|
{ name: "italic", icon: "format_italic" },
|
|
47107
47178
|
{ name: "underline", icon: "format_underlined" },
|
|
47108
|
-
{ name: "
|
|
47109
|
-
{ name: "fontFamily", icon: "font_download" },
|
|
47110
|
-
{ name: "textColor", icon: "text_format" },
|
|
47111
|
-
{ name: "backgroundColor", icon: "format_color_fill" },
|
|
47112
|
-
{ name: "alignLeft", icon: "format_align_left" },
|
|
47113
|
-
{ name: "alignCenter", icon: "format_align_center" },
|
|
47114
|
-
{ name: "alignRight", icon: "format_align_right" },
|
|
47115
|
-
{ name: "alignJustify", icon: "format_align_justify" },
|
|
47179
|
+
{ name: "separator" },
|
|
47116
47180
|
{ name: "orderedList", icon: "format_list_numbered" },
|
|
47117
47181
|
{ name: "unorderedList", icon: "format_list_bulleted" },
|
|
47118
|
-
{ name: "
|
|
47119
|
-
{ name: "
|
|
47120
|
-
{ name: "
|
|
47121
|
-
{ name: "
|
|
47122
|
-
{ name: "
|
|
47123
|
-
{ name: "
|
|
47124
|
-
{ name: "
|
|
47125
|
-
{ name: "splitView", icon: "splitscreen_right" },
|
|
47126
|
-
{ name: "codeView", icon: "code" }
|
|
47182
|
+
{ name: "separator" },
|
|
47183
|
+
{ name: "link", icon: "add_link" },
|
|
47184
|
+
{ name: "image", icon: "add_photo_alternate" },
|
|
47185
|
+
{ name: "youtube", icon: "youtube_activity" },
|
|
47186
|
+
{ name: "separator" },
|
|
47187
|
+
{ name: "splitView", icon: "code" },
|
|
47188
|
+
{ name: "clear", icon: "format_clear" }
|
|
47127
47189
|
];
|
|
47128
|
-
function
|
|
47129
|
-
|
|
47130
|
-
const color2 = (_a2 = colorPicker.value) == null ? void 0 : _a2.value;
|
|
47131
|
-
if (color2) {
|
|
47132
|
-
emit2("action", type3, color2);
|
|
47133
|
-
}
|
|
47134
|
-
}
|
|
47135
|
-
function handleFontSizeChange() {
|
|
47136
|
-
var _a2;
|
|
47137
|
-
const size2 = (_a2 = fontSizeInput.value) == null ? void 0 : _a2.value;
|
|
47138
|
-
if (size2) {
|
|
47139
|
-
emit2("action", "fontSize", size2);
|
|
47140
|
-
}
|
|
47190
|
+
function handleSelectChange(selectedOption) {
|
|
47191
|
+
emit2("action", "formatBlock", selectedOption);
|
|
47141
47192
|
}
|
|
47142
47193
|
return (_ctx, _cache) => {
|
|
47143
47194
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
47144
47195
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
47145
|
-
(
|
|
47146
|
-
|
|
47147
|
-
|
|
47148
|
-
|
|
47149
|
-
|
|
47150
|
-
|
|
47151
|
-
|
|
47152
|
-
|
|
47153
|
-
|
|
47154
|
-
|
|
47155
|
-
|
|
47156
|
-
|
|
47157
|
-
|
|
47158
|
-
|
|
47159
|
-
|
|
47160
|
-
|
|
47161
|
-
|
|
47162
|
-
|
|
47163
|
-
|
|
47164
|
-
|
|
47165
|
-
|
|
47166
|
-
|
|
47167
|
-
|
|
47168
|
-
|
|
47169
|
-
min: "1",
|
|
47170
|
-
max: "7",
|
|
47171
|
-
onChange: handleFontSizeChange
|
|
47172
|
-
}, null, 544)) : createCommentVNode("", true)
|
|
47196
|
+
createVNode(SelectInput, {
|
|
47197
|
+
class: "m-0 w150",
|
|
47198
|
+
options: ["Text", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Blockquote", "Code"],
|
|
47199
|
+
onChange: handleSelectChange
|
|
47200
|
+
}),
|
|
47201
|
+
(openBlock(), createElementBlock(Fragment$1, null, renderList(toolbarOptions, (action, index2) => {
|
|
47202
|
+
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
47203
|
+
action.name !== "separator" && _ctx.config.includes(action.name) ? withDirectives((openBlock(), createBlock(unref(Btn), {
|
|
47204
|
+
key: action.name,
|
|
47205
|
+
thin: "",
|
|
47206
|
+
flat: "",
|
|
47207
|
+
class: "rounded",
|
|
47208
|
+
"aria-label": action.name,
|
|
47209
|
+
icon: action.icon,
|
|
47210
|
+
onClick: ($event) => emit2("action", action.name)
|
|
47211
|
+
}, null, 8, ["aria-label", "icon", "onClick"])), [
|
|
47212
|
+
[_directive_tooltip, action.name]
|
|
47213
|
+
]) : createCommentVNode("", true),
|
|
47214
|
+
action.name === "separator" ? (openBlock(), createElementBlock("span", {
|
|
47215
|
+
key: `separator-${index2}`,
|
|
47216
|
+
class: "opacity-2 mb-025"
|
|
47217
|
+
}, "|")) : createCommentVNode("", true)
|
|
47218
|
+
], 64);
|
|
47219
|
+
}), 64))
|
|
47173
47220
|
]);
|
|
47174
47221
|
};
|
|
47175
47222
|
}
|
|
47176
47223
|
});
|
|
47177
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4c741194"]]);
|
|
47178
47224
|
function applyFormatting(command2, value = "") {
|
|
47179
47225
|
const selection = window.getSelection();
|
|
47180
47226
|
if (selection && selection.rangeCount > 0) {
|
|
@@ -47347,8 +47393,11 @@ function createTable() {
|
|
|
47347
47393
|
}
|
|
47348
47394
|
}
|
|
47349
47395
|
}
|
|
47350
|
-
const _hoisted_1$e = { class: "rich-text-editor" };
|
|
47351
|
-
const _hoisted_2$b =
|
|
47396
|
+
const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
|
|
47397
|
+
const _hoisted_2$b = {
|
|
47398
|
+
key: 0,
|
|
47399
|
+
class: "preview-area bg-black color-white w-100 rounded p-1"
|
|
47400
|
+
};
|
|
47352
47401
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
47353
47402
|
__name: "index",
|
|
47354
47403
|
props: {
|
|
@@ -47382,7 +47431,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47382
47431
|
"blockquote",
|
|
47383
47432
|
"codeBlock",
|
|
47384
47433
|
"splitView",
|
|
47385
|
-
"
|
|
47434
|
+
"youtube",
|
|
47435
|
+
"codeView",
|
|
47436
|
+
"clear"
|
|
47386
47437
|
];
|
|
47387
47438
|
const config = ref(props2.toolbarConfig || defaultConfig2);
|
|
47388
47439
|
let contentHtml = ref(props2.modelValue);
|
|
@@ -47465,15 +47516,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47465
47516
|
}
|
|
47466
47517
|
return (_ctx, _cache) => {
|
|
47467
47518
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
47468
|
-
createVNode(
|
|
47519
|
+
createVNode(_sfc_main$a, {
|
|
47469
47520
|
config: config.value,
|
|
47470
47521
|
onAction: handleToolbarAction
|
|
47471
47522
|
}, null, 8, ["config"]),
|
|
47472
47523
|
createElementVNode("div", {
|
|
47473
|
-
class: normalizeClass(["editor-container", { "split-view": unref(isSplitView) }])
|
|
47524
|
+
class: normalizeClass(["editor-container flex flex-stretch", { "split-view": unref(isSplitView) }])
|
|
47474
47525
|
}, [
|
|
47475
47526
|
createElementVNode("div", {
|
|
47476
|
-
class: normalizeClass(["content-area", { "code-view": unref(isCodeView) }])
|
|
47527
|
+
class: normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": unref(isCodeView) }])
|
|
47477
47528
|
}, [
|
|
47478
47529
|
unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
47479
47530
|
key: 0,
|
|
@@ -47486,6 +47537,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47486
47537
|
ref_key: "editableContent",
|
|
47487
47538
|
ref: editableContent,
|
|
47488
47539
|
contenteditable: "true",
|
|
47540
|
+
class: "editableContent",
|
|
47489
47541
|
role: "textbox",
|
|
47490
47542
|
"aria-multiline": "true",
|
|
47491
47543
|
tabindex: "0",
|
|
@@ -47493,17 +47545,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47493
47545
|
onKeydown: handleKeyDown2
|
|
47494
47546
|
}, null, 544))
|
|
47495
47547
|
], 2),
|
|
47496
|
-
unref(isSplitView) ? (openBlock(), createElementBlock("
|
|
47497
|
-
key: 0,
|
|
47498
|
-
class: "preview-area",
|
|
47499
|
-
innerHTML: unref(contentHtml)
|
|
47500
|
-
}, null, 8, _hoisted_2$b)) : createCommentVNode("", true)
|
|
47548
|
+
unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_2$b, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
|
|
47501
47549
|
], 2)
|
|
47502
47550
|
]);
|
|
47503
47551
|
};
|
|
47504
47552
|
}
|
|
47505
47553
|
});
|
|
47506
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
47554
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-d3f64de7"]]);
|
|
47507
47555
|
const _hoisted_1$d = ["for"];
|
|
47508
47556
|
const _hoisted_2$a = ["id", "name", "value"];
|
|
47509
47557
|
const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|
|
@@ -54380,6 +54428,10 @@ const allCountries = countryArray.map(
|
|
|
54380
54428
|
areaCodes
|
|
54381
54429
|
})
|
|
54382
54430
|
);
|
|
54431
|
+
const IMAGE_FORMATS = ["jpeg", "png", "webp", "avif", "apng", "gif", "avifs", "svg", "bmp", "jpg"];
|
|
54432
|
+
const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
|
|
54433
|
+
const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
|
|
54434
|
+
const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
|
|
54383
54435
|
export {
|
|
54384
54436
|
_sfc_main$A as Accordion,
|
|
54385
54437
|
AccordionItem,
|
|
@@ -54405,6 +54457,8 @@ export {
|
|
|
54405
54457
|
kt$1 as Dropdown,
|
|
54406
54458
|
$el as FileUpload,
|
|
54407
54459
|
Flag,
|
|
54460
|
+
IMAGE_FORMATS,
|
|
54461
|
+
IMAGE_FORMATS_REGEXP,
|
|
54408
54462
|
_sfc_main$Q as Icon,
|
|
54409
54463
|
JSONInput,
|
|
54410
54464
|
Layout,
|
|
@@ -54438,6 +54492,8 @@ export {
|
|
|
54438
54492
|
_sfc_main$B as Title,
|
|
54439
54493
|
ToggleInput,
|
|
54440
54494
|
TopBar,
|
|
54495
|
+
VIDEO_FORMATS,
|
|
54496
|
+
VIDEO_FORMATS_REGEXP,
|
|
54441
54497
|
allCountries,
|
|
54442
54498
|
bagelFormUtils,
|
|
54443
54499
|
bagelInjectionKey,
|