@bagelink/vue 0.0.714 → 0.0.724
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/Btn.vue.d.ts +3 -3
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Carousel.vue.d.ts +1 -1
- 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/DropDown.vue.d.ts +3 -3
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/MaterialIcon.vue.d.ts +0 -1
- package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
- package/dist/components/ModalBglForm.vue.d.ts +20 -21
- package/dist/components/PersonPreview.vue.d.ts +4 -5
- package/dist/components/PersonPreviewFormkit.vue.d.ts +3 -4
- package/dist/components/Popover.vue.d.ts +10 -0
- package/dist/components/Popover.vue.d.ts.map +1 -0
- package/dist/components/RTXEditor.vue.d.ts +3 -3
- package/dist/components/TabbedLayout.vue.d.ts +4 -5
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/form/BglForm.vue.d.ts +1 -1
- package/dist/components/form/BglMultiStepForm.vue.d.ts +11 -11
- package/dist/components/form/ItemRef.vue.d.ts +3 -5
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/MaterialIcon.vue.d.ts +3 -4
- package/dist/components/form/PlainInputField.vue.d.ts +3 -3
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- 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/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/JSONInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- 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/RadioPillsInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +5 -5
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- 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/lightbox/Lightbox.vue.d.ts +10 -0
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -0
- package/dist/components/lightbox/index.d.ts +6 -0
- package/dist/components/lightbox/index.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.types.d.ts +7 -0
- package/dist/components/lightbox/lightbox.types.d.ts.map +1 -0
- package/dist/components/whatsapp/form/MsgTemplate.vue.d.ts +3 -4
- package/dist/components/whatsapp/form/TextVariableExamples.vue.d.ts +2 -2
- package/dist/index.cjs +334 -141
- package/dist/index.mjs +335 -142
- package/dist/plugins/bagel.d.ts.map +1 -1
- package/dist/style.css +157 -49
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/BagelFormUtils.d.ts +48 -48
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/form/inputs/RichText2/FontWithASyntaxHighlighter-Regular.woff2 +0 -0
- package/src/components/form/inputs/RichText2/Toolbar.vue +39 -62
- package/src/components/form/inputs/RichText2/index.vue +54 -16
- package/src/components/form/inputs/SelectInput.vue +20 -9
- package/src/components/lightbox/Lightbox.vue +228 -0
- package/src/components/lightbox/index.ts +61 -0
- package/src/components/lightbox/lightbox.types.ts +6 -0
- package/src/plugins/bagel.ts +2 -2
- package/dist/components/Accordion.d.ts +0 -12
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/AccordionItem.d.ts +0 -34
- package/dist/components/AccordionItem.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -34
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Avatar.d.ts +0 -36
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -22
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/BglVideo.d.ts +0 -20
- package/dist/components/BglVideo.d.ts.map +0 -1
- package/dist/components/Btn.d.ts +0 -99
- package/dist/components/Btn.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -39
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Carousel.d.ts +0 -74
- package/dist/components/Carousel.d.ts.map +0 -1
- package/dist/components/DataPreview.d.ts +0 -42
- package/dist/components/DataPreview.d.ts.map +0 -1
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/Flag.d.ts +0 -20
- package/dist/components/Flag.d.ts.map +0 -1
- package/dist/components/ListItem.d.ts +0 -34
- package/dist/components/ListItem.d.ts.map +0 -1
- package/dist/components/ListView.d.ts +0 -13
- package/dist/components/ListView.d.ts.map +0 -1
- package/dist/components/MapEmbed.d.ts +0 -3
- package/dist/components/MapEmbed.d.ts.map +0 -1
- package/dist/components/MaterialIcon.d.ts +0 -26
- package/dist/components/MaterialIcon.d.ts.map +0 -1
- package/dist/components/Modal.d.ts +0 -46
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/ModalConfirm.d.ts +0 -24
- package/dist/components/ModalConfirm.d.ts.map +0 -1
- package/dist/components/ModalForm.d.ts +0 -78
- package/dist/components/ModalForm.d.ts.map +0 -1
- package/dist/components/NavBar.d.ts +0 -64
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/PageTitle.d.ts +0 -24
- package/dist/components/PageTitle.d.ts.map +0 -1
- package/dist/components/RouterWrapper.d.ts +0 -3
- package/dist/components/RouterWrapper.d.ts.map +0 -1
- package/dist/components/TableSchema.d.ts +0 -35
- package/dist/components/TableSchema.d.ts.map +0 -1
- package/dist/components/Title.d.ts +0 -42
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/TopBar.d.ts +0 -12
- package/dist/components/TopBar.d.ts.map +0 -1
- package/dist/components/dashboard/Lineart.d.ts +0 -20
- package/dist/components/dashboard/Lineart.d.ts.map +0 -1
- package/dist/components/form/BglField.d.ts +0 -25
- package/dist/components/form/BglField.d.ts.map +0 -1
- package/dist/components/form/BglForm.d.ts +0 -75
- package/dist/components/form/BglForm.d.ts.map +0 -1
- package/dist/components/form/inputs/CheckInput.d.ts +0 -56
- package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
- package/dist/components/form/inputs/Checkbox.d.ts +0 -16
- package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
- package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
- package/dist/components/form/inputs/DateInput.d.ts +0 -64
- package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
- package/dist/components/form/inputs/DatePicker.d.ts +0 -33
- package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
- package/dist/components/form/inputs/FileUpload.d.ts +0 -108
- package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
- package/dist/components/form/inputs/JSONInput.d.ts +0 -53
- package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
- package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText.d.ts +0 -20
- package/dist/components/form/inputs/RichText.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
- package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectInput.d.ts +0 -55
- package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
- package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
- package/dist/components/form/inputs/TableField.d.ts +0 -45
- package/dist/components/form/inputs/TableField.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.d.ts +0 -241
- package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
- package/dist/components/form/inputs/TextInput.d.ts +0 -90
- package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
- package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
- package/dist/components/layout/BottomMenu.d.ts +0 -27
- package/dist/components/layout/BottomMenu.d.ts.map +0 -1
- package/dist/components/layout/Layout.d.ts +0 -58
- package/dist/components/layout/Layout.d.ts.map +0 -1
- package/dist/components/layout/SidebarMenu.d.ts +0 -38
- package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
- package/dist/components/layout/TabbedLayout.d.ts +0 -42
- package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
- package/dist/components/layout/Tabs.d.ts +0 -31
- package/dist/components/layout/Tabs.d.ts.map +0 -1
- package/dist/components/layout/TabsBody.d.ts +0 -23
- package/dist/components/layout/TabsBody.d.ts.map +0 -1
- package/dist/components/layout/TabsNav.d.ts +0 -35
- package/dist/components/layout/TabsNav.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp2 = Object.defineProperty;
|
|
2
2
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString,
|
|
4
|
+
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount, watchEffect, customRef, resolveDirective } from "vue";
|
|
5
5
|
const sides = ["top", "right", "bottom", "left"];
|
|
6
6
|
const alignments = ["start", "end"];
|
|
7
7
|
const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -2937,10 +2937,7 @@ 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
|
-
|
|
2941
|
-
this.response = response;
|
|
2942
|
-
this.status = response.status ? response.status : null;
|
|
2943
|
-
}
|
|
2940
|
+
response && (this.response = response);
|
|
2944
2941
|
}
|
|
2945
2942
|
utils$1.inherits(AxiosError, Error, {
|
|
2946
2943
|
toJSON: function toJSON() {
|
|
@@ -2959,7 +2956,7 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
2959
2956
|
// Axios
|
|
2960
2957
|
config: utils$1.toJSONObject(this.config),
|
|
2961
2958
|
code: this.code,
|
|
2962
|
-
status: this.status
|
|
2959
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
2963
2960
|
};
|
|
2964
2961
|
}
|
|
2965
2962
|
});
|
|
@@ -3240,8 +3237,9 @@ const platform$1 = {
|
|
|
3240
3237
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
3241
3238
|
};
|
|
3242
3239
|
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3240
|
+
const hasStandardBrowserEnv = ((product) => {
|
|
3241
|
+
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
3242
|
+
})(typeof navigator !== "undefined" && navigator.product);
|
|
3245
3243
|
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
3246
3244
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
3247
3245
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
@@ -3252,7 +3250,6 @@ const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
3252
3250
|
hasBrowserEnv,
|
|
3253
3251
|
hasStandardBrowserEnv,
|
|
3254
3252
|
hasStandardBrowserWebWorkerEnv,
|
|
3255
|
-
navigator: _navigator,
|
|
3256
3253
|
origin
|
|
3257
3254
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3258
3255
|
const platform = {
|
|
@@ -3828,7 +3825,7 @@ const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
|
3828
3825
|
// Standard browser envs have full support of the APIs needed to test
|
|
3829
3826
|
// whether the request URL is of the same origin as current location.
|
|
3830
3827
|
function standardBrowserEnv() {
|
|
3831
|
-
const msie =
|
|
3828
|
+
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
3832
3829
|
const urlParsingNode = document.createElement("a");
|
|
3833
3830
|
let originURL;
|
|
3834
3831
|
function resolveURL(url) {
|
|
@@ -4334,7 +4331,6 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4334
4331
|
if (!utils$1.isString(withCredentials)) {
|
|
4335
4332
|
withCredentials = withCredentials ? "include" : "omit";
|
|
4336
4333
|
}
|
|
4337
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
4338
4334
|
request = new Request(url, {
|
|
4339
4335
|
...fetchOptions,
|
|
4340
4336
|
signal: composedSignal,
|
|
@@ -4342,7 +4338,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4342
4338
|
headers: headers.normalize().toJSON(),
|
|
4343
4339
|
body: data2,
|
|
4344
4340
|
duplex: "half",
|
|
4345
|
-
credentials:
|
|
4341
|
+
credentials: withCredentials
|
|
4346
4342
|
});
|
|
4347
4343
|
let response = await fetch(request);
|
|
4348
4344
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4486,7 +4482,7 @@ function dispatchRequest(config) {
|
|
|
4486
4482
|
return Promise.reject(reason);
|
|
4487
4483
|
});
|
|
4488
4484
|
}
|
|
4489
|
-
const VERSION = "1.7.
|
|
4485
|
+
const VERSION = "1.7.4";
|
|
4490
4486
|
const validators$1 = {};
|
|
4491
4487
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4492
4488
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5149,6 +5145,231 @@ class Bagel {
|
|
|
5149
5145
|
return data2;
|
|
5150
5146
|
}
|
|
5151
5147
|
}
|
|
5148
|
+
const _withScopeId$3 = (n2) => (pushScopeId("data-v-c003c59a"), n2 = n2(), popScopeId(), n2);
|
|
5149
|
+
const _hoisted_1$N = { class: "lightbox-item" };
|
|
5150
|
+
const _hoisted_2$C = ["src"];
|
|
5151
|
+
const _hoisted_3$p = {
|
|
5152
|
+
key: 1,
|
|
5153
|
+
controls: "",
|
|
5154
|
+
autoplay: ""
|
|
5155
|
+
};
|
|
5156
|
+
const _hoisted_4$h = ["src"];
|
|
5157
|
+
const _hoisted_5$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("track", {
|
|
5158
|
+
kind: "captions",
|
|
5159
|
+
src: "#",
|
|
5160
|
+
srclang: "en",
|
|
5161
|
+
label: "English"
|
|
5162
|
+
}, null, -1));
|
|
5163
|
+
const _hoisted_6$b = ["src", "title"];
|
|
5164
|
+
const _hoisted_7$5 = {
|
|
5165
|
+
key: 3,
|
|
5166
|
+
class: "file-info txt-white"
|
|
5167
|
+
};
|
|
5168
|
+
const _hoisted_8$3 = ["href"];
|
|
5169
|
+
const _hoisted_9$3 = { class: "navigation" };
|
|
5170
|
+
const _hoisted_10$2 = {
|
|
5171
|
+
key: 0,
|
|
5172
|
+
class: "thumbnails"
|
|
5173
|
+
};
|
|
5174
|
+
const _hoisted_11$2 = ["src", "onClick"];
|
|
5175
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
5176
|
+
__name: "Lightbox",
|
|
5177
|
+
setup(__props, { expose: __expose }) {
|
|
5178
|
+
let isOpen = ref(false);
|
|
5179
|
+
let currentItem = ref();
|
|
5180
|
+
let group = ref([]);
|
|
5181
|
+
let currentIndex = ref(0);
|
|
5182
|
+
function open(item, groupItems = []) {
|
|
5183
|
+
isOpen.value = true;
|
|
5184
|
+
currentItem.value = item;
|
|
5185
|
+
if (!groupItems.length) return;
|
|
5186
|
+
group.value = groupItems;
|
|
5187
|
+
currentIndex.value = groupItems.indexOf(item);
|
|
5188
|
+
document.addEventListener("keydown", handleKeydown);
|
|
5189
|
+
}
|
|
5190
|
+
function close2() {
|
|
5191
|
+
isOpen.value = false;
|
|
5192
|
+
document.removeEventListener("keydown", handleKeydown);
|
|
5193
|
+
}
|
|
5194
|
+
function next() {
|
|
5195
|
+
if (group.value.length > 1) {
|
|
5196
|
+
currentIndex.value = (currentIndex.value + 1) % group.value.length;
|
|
5197
|
+
currentItem.value = group.value[currentIndex.value];
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
function prev() {
|
|
5201
|
+
if (group.value.length > 1) {
|
|
5202
|
+
currentIndex.value = (currentIndex.value - 1 + group.value.length) % group.value.length;
|
|
5203
|
+
currentItem.value = group.value[currentIndex.value];
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
function selectItem(index2) {
|
|
5207
|
+
currentIndex.value = index2;
|
|
5208
|
+
currentItem.value = group.value[index2];
|
|
5209
|
+
}
|
|
5210
|
+
watch(() => isOpen.value, (val) => {
|
|
5211
|
+
if (val) document.body.style.overflow = "hidden";
|
|
5212
|
+
else document.body.style.overflow = "";
|
|
5213
|
+
});
|
|
5214
|
+
function normalizeURL(url) {
|
|
5215
|
+
if (url.startsWith("https://")) return url;
|
|
5216
|
+
url = url.replace(/http:\/\//, "");
|
|
5217
|
+
return `//${url}`;
|
|
5218
|
+
}
|
|
5219
|
+
function handleKeydown(event) {
|
|
5220
|
+
if (event.key === "Escape") {
|
|
5221
|
+
close2();
|
|
5222
|
+
} else if (event.key === "ArrowLeft") {
|
|
5223
|
+
prev();
|
|
5224
|
+
} else if (event.key === "ArrowRight") {
|
|
5225
|
+
next();
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
__expose({ open, close: close2 });
|
|
5229
|
+
return (_ctx, _cache) => {
|
|
5230
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j;
|
|
5231
|
+
return unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
5232
|
+
key: 0,
|
|
5233
|
+
class: "lightbox-overlay",
|
|
5234
|
+
onKeydown: [
|
|
5235
|
+
withKeys(close2, ["esc"]),
|
|
5236
|
+
withKeys(prev, ["left"]),
|
|
5237
|
+
withKeys(next, ["right"])
|
|
5238
|
+
],
|
|
5239
|
+
onClick: close2
|
|
5240
|
+
}, [
|
|
5241
|
+
createElementVNode("div", {
|
|
5242
|
+
class: "lightbox",
|
|
5243
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
5244
|
+
}, ["stop"]))
|
|
5245
|
+
}, [
|
|
5246
|
+
createVNode(unref(Btn), {
|
|
5247
|
+
flat: "",
|
|
5248
|
+
class: "close-button color-white",
|
|
5249
|
+
icon: "close",
|
|
5250
|
+
onClick: close2
|
|
5251
|
+
}),
|
|
5252
|
+
createElementVNode("div", _hoisted_1$N, [
|
|
5253
|
+
((_a2 = unref(currentItem)) == null ? void 0 : _a2.type) === "image" ? (openBlock(), createElementBlock("img", {
|
|
5254
|
+
key: 0,
|
|
5255
|
+
src: (_b = unref(currentItem)) == null ? void 0 : _b.src,
|
|
5256
|
+
alt: "Preview"
|
|
5257
|
+
}, null, 8, _hoisted_2$C)) : ((_c = unref(currentItem)) == null ? void 0 : _c.type) === "video" ? (openBlock(), createElementBlock("video", _hoisted_3$p, [
|
|
5258
|
+
createElementVNode("source", {
|
|
5259
|
+
src: (_d = unref(currentItem)) == null ? void 0 : _d.src,
|
|
5260
|
+
type: "video/mp4"
|
|
5261
|
+
}, null, 8, _hoisted_4$h),
|
|
5262
|
+
_hoisted_5$g
|
|
5263
|
+
])) : ((_e2 = unref(currentItem)) == null ? void 0 : _e2.type) === "pdf" ? (openBlock(), createElementBlock("embed", {
|
|
5264
|
+
key: 2,
|
|
5265
|
+
src: normalizeURL((_f = unref(currentItem)) == null ? void 0 : _f.src),
|
|
5266
|
+
type: "application/pdf",
|
|
5267
|
+
width: "100%",
|
|
5268
|
+
height: "1080",
|
|
5269
|
+
title: (_g = unref(currentItem)) == null ? void 0 : _g.name
|
|
5270
|
+
}, null, 8, _hoisted_6$b)) : (openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
5271
|
+
createElementVNode("p", null, "File: " + toDisplayString((_h = unref(currentItem)) == null ? void 0 : _h.name), 1),
|
|
5272
|
+
createElementVNode("p", null, "Type: " + toDisplayString((_i = unref(currentItem)) == null ? void 0 : _i.type), 1),
|
|
5273
|
+
createElementVNode("a", {
|
|
5274
|
+
href: (_j = unref(currentItem)) == null ? void 0 : _j.src,
|
|
5275
|
+
target: "_blank"
|
|
5276
|
+
}, "Open file", 8, _hoisted_8$3)
|
|
5277
|
+
]))
|
|
5278
|
+
]),
|
|
5279
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
5280
|
+
createVNode(unref(Btn), {
|
|
5281
|
+
class: "navigation-btn",
|
|
5282
|
+
icon: "arrow_back",
|
|
5283
|
+
onClick: prev
|
|
5284
|
+
}),
|
|
5285
|
+
createVNode(unref(Btn), {
|
|
5286
|
+
class: "navigation-btn",
|
|
5287
|
+
icon: "arrow_forward",
|
|
5288
|
+
onClick: next
|
|
5289
|
+
})
|
|
5290
|
+
]),
|
|
5291
|
+
unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
|
|
5292
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(group), (item, index2) => {
|
|
5293
|
+
return openBlock(), createElementBlock(Fragment$1, { key: index2 }, [
|
|
5294
|
+
item.type === "image" ? (openBlock(), createElementBlock("img", {
|
|
5295
|
+
key: 0,
|
|
5296
|
+
class: "thumbnail",
|
|
5297
|
+
src: item.src,
|
|
5298
|
+
alt: "",
|
|
5299
|
+
onClick: ($event) => selectItem(index2)
|
|
5300
|
+
}, null, 8, _hoisted_11$2)) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
5301
|
+
key: 1,
|
|
5302
|
+
class: "thumbnail",
|
|
5303
|
+
icon: "description",
|
|
5304
|
+
onClick: ($event) => selectItem(index2)
|
|
5305
|
+
}, null, 8, ["onClick"]))
|
|
5306
|
+
], 64);
|
|
5307
|
+
}), 128))
|
|
5308
|
+
])) : createCommentVNode("", true)
|
|
5309
|
+
])
|
|
5310
|
+
], 32)) : createCommentVNode("", true);
|
|
5311
|
+
};
|
|
5312
|
+
}
|
|
5313
|
+
});
|
|
5314
|
+
const _export_sfc = (sfc, props2) => {
|
|
5315
|
+
const target = sfc.__vccOpts || sfc;
|
|
5316
|
+
for (const [key, val] of props2) {
|
|
5317
|
+
target[key] = val;
|
|
5318
|
+
}
|
|
5319
|
+
return target;
|
|
5320
|
+
};
|
|
5321
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-c003c59a"]]);
|
|
5322
|
+
const groups = {};
|
|
5323
|
+
const lightboxDirective = {
|
|
5324
|
+
mounted(el, binding) {
|
|
5325
|
+
const lightboxInstance = createLightboxInstance();
|
|
5326
|
+
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5327
|
+
if (binding.value.group) {
|
|
5328
|
+
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5329
|
+
groups[binding.value.group].push({
|
|
5330
|
+
src: binding.value.src || binding.value,
|
|
5331
|
+
type: binding.value.type || determineFileType(binding.value.src || binding.value),
|
|
5332
|
+
name: binding.value.name || ""
|
|
5333
|
+
});
|
|
5334
|
+
}
|
|
5335
|
+
el.addEventListener("click", () => {
|
|
5336
|
+
const group = binding.value.group || null;
|
|
5337
|
+
const item = {
|
|
5338
|
+
src: binding.value.src || binding.value,
|
|
5339
|
+
type: binding.value.type || determineFileType(binding.value.src || binding.value),
|
|
5340
|
+
name: binding.value.name || "",
|
|
5341
|
+
thumbnail: binding.value.thumbnail || ""
|
|
5342
|
+
};
|
|
5343
|
+
const lightboxInstance2 = createLightboxInstance();
|
|
5344
|
+
if (!lightboxInstance2 || !lightboxInstance2.open) return;
|
|
5345
|
+
if (binding.value.group) {
|
|
5346
|
+
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5347
|
+
groups[binding.value.group].push(item);
|
|
5348
|
+
}
|
|
5349
|
+
const open = lightboxInstance2.open;
|
|
5350
|
+
open(item, groups[group]);
|
|
5351
|
+
});
|
|
5352
|
+
}
|
|
5353
|
+
};
|
|
5354
|
+
function determineFileType(url) {
|
|
5355
|
+
var _a2;
|
|
5356
|
+
const extension = ((_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) || "";
|
|
5357
|
+
if (IMAGE_FORMATS_REGEXP.test(extension)) return "image";
|
|
5358
|
+
if (VIDEO_FORMATS_REGEXP.test(extension)) return "video";
|
|
5359
|
+
if (["pdf"].includes(extension)) return "pdf";
|
|
5360
|
+
return "unknown";
|
|
5361
|
+
}
|
|
5362
|
+
function createLightboxInstance() {
|
|
5363
|
+
const lightboxEl = document.createElement("div");
|
|
5364
|
+
document.body.prepend(lightboxEl);
|
|
5365
|
+
const app = createApp(Lightbox$1);
|
|
5366
|
+
return app.mount(lightboxEl);
|
|
5367
|
+
}
|
|
5368
|
+
const Lightbox = {
|
|
5369
|
+
install(app) {
|
|
5370
|
+
app.directive("lightbox", lightboxDirective);
|
|
5371
|
+
}
|
|
5372
|
+
};
|
|
5152
5373
|
const clickOutside = {
|
|
5153
5374
|
beforeMount(el, binding) {
|
|
5154
5375
|
el.clickOutsideEvent = (event) => {
|
|
@@ -5440,6 +5661,7 @@ const BagelVue = {
|
|
|
5440
5661
|
install: (app, options) => {
|
|
5441
5662
|
const bagel = new Bagel({ host: options.host, onError: options.onError });
|
|
5442
5663
|
app.directive("click-outside", clickOutside);
|
|
5664
|
+
app.use(Lightbox);
|
|
5443
5665
|
app.use(Gt$1, {
|
|
5444
5666
|
themes: {
|
|
5445
5667
|
"bgl-theme": {
|
|
@@ -5646,13 +5868,6 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
5646
5868
|
};
|
|
5647
5869
|
}
|
|
5648
5870
|
});
|
|
5649
|
-
const _export_sfc = (sfc, props2) => {
|
|
5650
|
-
const target = sfc.__vccOpts || sfc;
|
|
5651
|
-
for (const [key, val] of props2) {
|
|
5652
|
-
target[key] = val;
|
|
5653
|
-
}
|
|
5654
|
-
return target;
|
|
5655
|
-
};
|
|
5656
5871
|
const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-776cab4a"]]);
|
|
5657
5872
|
const _hoisted_1$L = {
|
|
5658
5873
|
key: 0,
|
|
@@ -6498,7 +6713,7 @@ const _hoisted_3$k = [
|
|
|
6498
6713
|
const _hoisted_4$e = { class: "infinite-wrapper" };
|
|
6499
6714
|
const _hoisted_5$e = { class: "row first-row" };
|
|
6500
6715
|
const _hoisted_6$9 = { key: 0 };
|
|
6501
|
-
const _hoisted_7$
|
|
6716
|
+
const _hoisted_7$4 = ["onClick"];
|
|
6502
6717
|
const _hoisted_8$2 = { class: "flex" };
|
|
6503
6718
|
const _hoisted_9$2 = ["onClick"];
|
|
6504
6719
|
const _hoisted_10$1 = { key: 0 };
|
|
@@ -6671,7 +6886,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
6671
6886
|
}, null, 8, ["class"])
|
|
6672
6887
|
], 2)
|
|
6673
6888
|
])
|
|
6674
|
-
], 8, _hoisted_7$
|
|
6889
|
+
], 8, _hoisted_7$4);
|
|
6675
6890
|
}), 128))
|
|
6676
6891
|
]),
|
|
6677
6892
|
createElementVNode("tbody", null, [
|
|
@@ -6770,7 +6985,7 @@ const _hoisted_6$8 = {
|
|
|
6770
6985
|
key: 0,
|
|
6771
6986
|
class: "data-row"
|
|
6772
6987
|
};
|
|
6773
|
-
const _hoisted_7$
|
|
6988
|
+
const _hoisted_7$3 = { class: "key" };
|
|
6774
6989
|
const _hoisted_8$1 = { class: "m-0" };
|
|
6775
6990
|
const _hoisted_9$1 = {
|
|
6776
6991
|
key: 0,
|
|
@@ -6839,7 +7054,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6839
7054
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, ({ id, label }) => {
|
|
6840
7055
|
return openBlock(), createElementBlock(Fragment$1, { key: id }, [
|
|
6841
7056
|
!isUnset(itemData.value[id]) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
|
|
6842
|
-
createElementVNode("div", _hoisted_7$
|
|
7057
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
6843
7058
|
createElementVNode("p", _hoisted_8$1, toDisplayString(label), 1)
|
|
6844
7059
|
]),
|
|
6845
7060
|
createElementVNode("div", null, [
|
|
@@ -16317,8 +16532,7 @@ const _hoisted_4$c = {
|
|
|
16317
16532
|
class: "ms-auto ps-05 me-05"
|
|
16318
16533
|
};
|
|
16319
16534
|
const _hoisted_5$c = ["value"];
|
|
16320
|
-
const _hoisted_6$7 =
|
|
16321
|
-
const _hoisted_7$3 = ["aria-selected", "onClick", "onKeydown"];
|
|
16535
|
+
const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
|
|
16322
16536
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16323
16537
|
__name: "SelectInput",
|
|
16324
16538
|
props: {
|
|
@@ -16483,7 +16697,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16483
16697
|
placeholder: "Search",
|
|
16484
16698
|
icon: "search"
|
|
16485
16699
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
16486
|
-
createElementVNode("div",
|
|
16700
|
+
createElementVNode("div", {
|
|
16701
|
+
class: normalizeClass(["selectinput-options", { multiselect: _ctx.multiselect }])
|
|
16702
|
+
}, [
|
|
16487
16703
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(filteredOptions.value, (option2, i2) => {
|
|
16488
16704
|
return openBlock(), createElementBlock("div", {
|
|
16489
16705
|
key: `${option2}${i2}`,
|
|
@@ -16494,19 +16710,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16494
16710
|
onClick: ($event) => select2(option2),
|
|
16495
16711
|
onKeydown: withKeys(($event) => select2(option2), ["enter"])
|
|
16496
16712
|
}, [
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16713
|
+
_ctx.multiselect ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
16714
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
16715
|
+
key: 0,
|
|
16716
|
+
icon: "select_check_box"
|
|
16717
|
+
})) : createCommentVNode("", true),
|
|
16718
|
+
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
16719
|
+
key: 1,
|
|
16720
|
+
class: "opacity-3",
|
|
16721
|
+
icon: "check_box_outline_blank"
|
|
16722
|
+
})) : createCommentVNode("", true)
|
|
16723
|
+
], 64)) : createCommentVNode("", true),
|
|
16506
16724
|
createElementVNode("span", null, toDisplayString(getLabel(option2)), 1)
|
|
16507
|
-
], 42,
|
|
16725
|
+
], 42, _hoisted_6$7);
|
|
16508
16726
|
}), 128))
|
|
16509
|
-
]),
|
|
16727
|
+
], 2),
|
|
16510
16728
|
renderSlot(_ctx.$slots, "last", {}, void 0, true)
|
|
16511
16729
|
]),
|
|
16512
16730
|
_: 3
|
|
@@ -16530,9 +16748,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16530
16748
|
!_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$g, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
|
|
16531
16749
|
_ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
16532
16750
|
createVNode(unref(Btn), {
|
|
16751
|
+
flat: "",
|
|
16533
16752
|
thin: "",
|
|
16534
16753
|
icon: "clear",
|
|
16535
|
-
class: "color-
|
|
16754
|
+
class: "color-gray",
|
|
16536
16755
|
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
16537
16756
|
isRef(selectedItems) ? selectedItems.value = [] : selectedItems = [];
|
|
16538
16757
|
emitUpdate();
|
|
@@ -16560,7 +16779,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16560
16779
|
};
|
|
16561
16780
|
}
|
|
16562
16781
|
});
|
|
16563
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16782
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-25fde24f"]]);
|
|
16564
16783
|
/*!
|
|
16565
16784
|
* vue-draggable-next v2.2.0
|
|
16566
16785
|
* (c) 2023 Anish George
|
|
@@ -33240,11 +33459,7 @@ function createNodeFromContent(content, schema, options) {
|
|
|
33240
33459
|
if (isArrayContent) {
|
|
33241
33460
|
return Fragment.fromArray(content.map((item) => schema.nodeFromJSON(item)));
|
|
33242
33461
|
}
|
|
33243
|
-
|
|
33244
|
-
if (options.errorOnInvalidContent) {
|
|
33245
|
-
node.check();
|
|
33246
|
-
}
|
|
33247
|
-
return node;
|
|
33462
|
+
return schema.nodeFromJSON(content);
|
|
33248
33463
|
} catch (error) {
|
|
33249
33464
|
if (options.errorOnInvalidContent) {
|
|
33250
33465
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: error });
|
|
@@ -46423,7 +46638,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46423
46638
|
});
|
|
46424
46639
|
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-9d176183"]]);
|
|
46425
46640
|
/*!
|
|
46426
|
-
* Signature Pad v5.0.
|
|
46641
|
+
* Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
|
|
46427
46642
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
46428
46643
|
*/
|
|
46429
46644
|
class Point {
|
|
@@ -46463,7 +46678,7 @@ class Bezier {
|
|
|
46463
46678
|
const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
|
|
46464
46679
|
const dxm = m1.x - m2.x;
|
|
46465
46680
|
const dym = m1.y - m2.y;
|
|
46466
|
-
const k2 =
|
|
46681
|
+
const k2 = l2 / (l1 + l2);
|
|
46467
46682
|
const cm = { x: m2.x + dxm * k2, y: m2.y + dym * k2 };
|
|
46468
46683
|
const tx = s2.x - cm.x;
|
|
46469
46684
|
const ty = s2.y - cm.y;
|
|
@@ -47154,7 +47369,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
47154
47369
|
}
|
|
47155
47370
|
});
|
|
47156
47371
|
const _hoisted_1$f = {
|
|
47157
|
-
class: "toolbar",
|
|
47372
|
+
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
47158
47373
|
role: "toolbar"
|
|
47159
47374
|
};
|
|
47160
47375
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -47165,82 +47380,58 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
47165
47380
|
emits: ["action"],
|
|
47166
47381
|
setup(__props, { emit: __emit }) {
|
|
47167
47382
|
const emit2 = __emit;
|
|
47168
|
-
|
|
47169
|
-
|
|
47383
|
+
ref(null);
|
|
47384
|
+
ref(null);
|
|
47170
47385
|
const toolbarOptions = [
|
|
47386
|
+
{ name: "separator" },
|
|
47171
47387
|
{ name: "bold", icon: "format_bold" },
|
|
47172
47388
|
{ name: "italic", icon: "format_italic" },
|
|
47173
47389
|
{ name: "underline", icon: "format_underlined" },
|
|
47174
|
-
{ name: "
|
|
47175
|
-
{ name: "fontFamily", icon: "font_download" },
|
|
47176
|
-
{ name: "textColor", icon: "text_format" },
|
|
47177
|
-
{ name: "backgroundColor", icon: "format_color_fill" },
|
|
47178
|
-
{ name: "alignLeft", icon: "format_align_left" },
|
|
47179
|
-
{ name: "alignCenter", icon: "format_align_center" },
|
|
47180
|
-
{ name: "alignRight", icon: "format_align_right" },
|
|
47181
|
-
{ name: "alignJustify", icon: "format_align_justify" },
|
|
47390
|
+
{ name: "separator" },
|
|
47182
47391
|
{ name: "orderedList", icon: "format_list_numbered" },
|
|
47183
47392
|
{ name: "unorderedList", icon: "format_list_bulleted" },
|
|
47184
|
-
{ name: "
|
|
47185
|
-
{ name: "
|
|
47186
|
-
{ name: "
|
|
47187
|
-
{ name: "
|
|
47188
|
-
{ name: "
|
|
47189
|
-
{ name: "
|
|
47190
|
-
{ name: "
|
|
47191
|
-
{ name: "splitView", icon: "splitscreen_right" },
|
|
47192
|
-
{ name: "codeView", icon: "code" }
|
|
47393
|
+
{ name: "separator" },
|
|
47394
|
+
{ name: "link", icon: "add_link" },
|
|
47395
|
+
{ name: "image", icon: "add_photo_alternate" },
|
|
47396
|
+
{ name: "youtube", icon: "youtube_activity" },
|
|
47397
|
+
{ name: "separator" },
|
|
47398
|
+
{ name: "splitView", icon: "code" },
|
|
47399
|
+
{ name: "clear", icon: "format_clear" }
|
|
47193
47400
|
];
|
|
47194
|
-
function
|
|
47195
|
-
|
|
47196
|
-
const color2 = (_a2 = colorPicker.value) == null ? void 0 : _a2.value;
|
|
47197
|
-
if (color2) {
|
|
47198
|
-
emit2("action", type3, color2);
|
|
47199
|
-
}
|
|
47200
|
-
}
|
|
47201
|
-
function handleFontSizeChange() {
|
|
47202
|
-
var _a2;
|
|
47203
|
-
const size2 = (_a2 = fontSizeInput.value) == null ? void 0 : _a2.value;
|
|
47204
|
-
if (size2) {
|
|
47205
|
-
emit2("action", "fontSize", size2);
|
|
47206
|
-
}
|
|
47401
|
+
function handleSelectChange(selectedOption) {
|
|
47402
|
+
emit2("action", "formatBlock", selectedOption);
|
|
47207
47403
|
}
|
|
47208
47404
|
return (_ctx, _cache) => {
|
|
47209
47405
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
47210
47406
|
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
47211
|
-
(
|
|
47212
|
-
|
|
47213
|
-
|
|
47214
|
-
|
|
47215
|
-
|
|
47216
|
-
|
|
47217
|
-
|
|
47218
|
-
|
|
47219
|
-
|
|
47220
|
-
|
|
47221
|
-
|
|
47222
|
-
|
|
47223
|
-
|
|
47224
|
-
|
|
47225
|
-
|
|
47226
|
-
|
|
47227
|
-
|
|
47228
|
-
|
|
47229
|
-
|
|
47230
|
-
|
|
47231
|
-
|
|
47232
|
-
|
|
47233
|
-
|
|
47234
|
-
|
|
47235
|
-
min: "1",
|
|
47236
|
-
max: "7",
|
|
47237
|
-
onChange: handleFontSizeChange
|
|
47238
|
-
}, null, 544)) : createCommentVNode("", true)
|
|
47407
|
+
createVNode(SelectInput, {
|
|
47408
|
+
class: "m-0 w150",
|
|
47409
|
+
options: ["Text", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Blockquote", "Code"],
|
|
47410
|
+
onChange: handleSelectChange
|
|
47411
|
+
}),
|
|
47412
|
+
(openBlock(), createElementBlock(Fragment$1, null, renderList(toolbarOptions, (action, index2) => {
|
|
47413
|
+
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
47414
|
+
action.name !== "separator" && _ctx.config.includes(action.name) ? withDirectives((openBlock(), createBlock(unref(Btn), {
|
|
47415
|
+
key: action.name,
|
|
47416
|
+
thin: "",
|
|
47417
|
+
flat: "",
|
|
47418
|
+
class: "rounded",
|
|
47419
|
+
"aria-label": action.name,
|
|
47420
|
+
icon: action.icon,
|
|
47421
|
+
onClick: ($event) => emit2("action", action.name)
|
|
47422
|
+
}, null, 8, ["aria-label", "icon", "onClick"])), [
|
|
47423
|
+
[_directive_tooltip, action.name]
|
|
47424
|
+
]) : createCommentVNode("", true),
|
|
47425
|
+
action.name === "separator" ? (openBlock(), createElementBlock("span", {
|
|
47426
|
+
key: `separator-${index2}`,
|
|
47427
|
+
class: "opacity-2 mb-025"
|
|
47428
|
+
}, "|")) : createCommentVNode("", true)
|
|
47429
|
+
], 64);
|
|
47430
|
+
}), 64))
|
|
47239
47431
|
]);
|
|
47240
47432
|
};
|
|
47241
47433
|
}
|
|
47242
47434
|
});
|
|
47243
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4c741194"]]);
|
|
47244
47435
|
function applyFormatting(command2, value = "") {
|
|
47245
47436
|
const selection = window.getSelection();
|
|
47246
47437
|
if (selection && selection.rangeCount > 0) {
|
|
@@ -47413,8 +47604,11 @@ function createTable() {
|
|
|
47413
47604
|
}
|
|
47414
47605
|
}
|
|
47415
47606
|
}
|
|
47416
|
-
const _hoisted_1$e = { class: "rich-text-editor" };
|
|
47417
|
-
const _hoisted_2$b =
|
|
47607
|
+
const _hoisted_1$e = { class: "rich-text-editor round pt-05 px-1 pb-1" };
|
|
47608
|
+
const _hoisted_2$b = {
|
|
47609
|
+
key: 0,
|
|
47610
|
+
class: "preview-area bg-black color-white w-100 rounded p-1"
|
|
47611
|
+
};
|
|
47418
47612
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
47419
47613
|
__name: "index",
|
|
47420
47614
|
props: {
|
|
@@ -47448,7 +47642,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47448
47642
|
"blockquote",
|
|
47449
47643
|
"codeBlock",
|
|
47450
47644
|
"splitView",
|
|
47451
|
-
"
|
|
47645
|
+
"youtube",
|
|
47646
|
+
"codeView",
|
|
47647
|
+
"clear"
|
|
47452
47648
|
];
|
|
47453
47649
|
const config = ref(props2.toolbarConfig || defaultConfig2);
|
|
47454
47650
|
let contentHtml = ref(props2.modelValue);
|
|
@@ -47531,15 +47727,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47531
47727
|
}
|
|
47532
47728
|
return (_ctx, _cache) => {
|
|
47533
47729
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
47534
|
-
createVNode(
|
|
47730
|
+
createVNode(_sfc_main$a, {
|
|
47535
47731
|
config: config.value,
|
|
47536
47732
|
onAction: handleToolbarAction
|
|
47537
47733
|
}, null, 8, ["config"]),
|
|
47538
47734
|
createElementVNode("div", {
|
|
47539
|
-
class: normalizeClass(["editor-container", { "split-view": unref(isSplitView) }])
|
|
47735
|
+
class: normalizeClass(["editor-container flex flex-stretch", { "split-view": unref(isSplitView) }])
|
|
47540
47736
|
}, [
|
|
47541
47737
|
createElementVNode("div", {
|
|
47542
|
-
class: normalizeClass(["content-area", { "code-view": unref(isCodeView) }])
|
|
47738
|
+
class: normalizeClass(["content-area rounded p-1 bg-white shadow-light w-100 grid", { "code-view": unref(isCodeView) }])
|
|
47543
47739
|
}, [
|
|
47544
47740
|
unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
47545
47741
|
key: 0,
|
|
@@ -47552,6 +47748,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47552
47748
|
ref_key: "editableContent",
|
|
47553
47749
|
ref: editableContent,
|
|
47554
47750
|
contenteditable: "true",
|
|
47751
|
+
class: "editableContent",
|
|
47555
47752
|
role: "textbox",
|
|
47556
47753
|
"aria-multiline": "true",
|
|
47557
47754
|
tabindex: "0",
|
|
@@ -47559,17 +47756,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
47559
47756
|
onKeydown: handleKeyDown2
|
|
47560
47757
|
}, null, 544))
|
|
47561
47758
|
], 2),
|
|
47562
|
-
unref(isSplitView) ? (openBlock(), createElementBlock("
|
|
47563
|
-
key: 0,
|
|
47564
|
-
class: "preview-area",
|
|
47565
|
-
innerHTML: unref(contentHtml)
|
|
47566
|
-
}, null, 8, _hoisted_2$b)) : createCommentVNode("", true)
|
|
47759
|
+
unref(isSplitView) ? (openBlock(), createElementBlock("code", _hoisted_2$b, toDisplayString(unref(contentHtml)), 1)) : createCommentVNode("", true)
|
|
47567
47760
|
], 2)
|
|
47568
47761
|
]);
|
|
47569
47762
|
};
|
|
47570
47763
|
}
|
|
47571
47764
|
});
|
|
47572
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
47765
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ee96aa53"]]);
|
|
47573
47766
|
const _hoisted_1$d = ["for"];
|
|
47574
47767
|
const _hoisted_2$a = ["id", "name", "value"];
|
|
47575
47768
|
const _hoisted_3$8 = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|
|
@@ -50738,8 +50931,8 @@ function selector(selector2) {
|
|
|
50738
50931
|
}
|
|
50739
50932
|
function selection_select(select2) {
|
|
50740
50933
|
if (typeof select2 !== "function") select2 = selector(select2);
|
|
50741
|
-
for (var
|
|
50742
|
-
for (var group =
|
|
50934
|
+
for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
50935
|
+
for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = new Array(n2), node, subnode, i2 = 0; i2 < n2; ++i2) {
|
|
50743
50936
|
if ((node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group))) {
|
|
50744
50937
|
if ("__data__" in node) subnode.__data__ = node.__data__;
|
|
50745
50938
|
subgroup[i2] = subnode;
|
|
@@ -50767,8 +50960,8 @@ function arrayAll(select2) {
|
|
|
50767
50960
|
function selection_selectAll(select2) {
|
|
50768
50961
|
if (typeof select2 === "function") select2 = arrayAll(select2);
|
|
50769
50962
|
else select2 = selectorAll(select2);
|
|
50770
|
-
for (var
|
|
50771
|
-
for (var group =
|
|
50963
|
+
for (var groups2 = this._groups, m2 = groups2.length, subgroups = [], parents = [], j2 = 0; j2 < m2; ++j2) {
|
|
50964
|
+
for (var group = groups2[j2], n2 = group.length, node, i2 = 0; i2 < n2; ++i2) {
|
|
50772
50965
|
if (node = group[i2]) {
|
|
50773
50966
|
subgroups.push(select2.call(node, node.__data__, i2, group));
|
|
50774
50967
|
parents.push(node);
|
|
@@ -50813,8 +51006,8 @@ function selection_selectChildren(match2) {
|
|
|
50813
51006
|
}
|
|
50814
51007
|
function selection_filter(match2) {
|
|
50815
51008
|
if (typeof match2 !== "function") match2 = matcher(match2);
|
|
50816
|
-
for (var
|
|
50817
|
-
for (var group =
|
|
51009
|
+
for (var groups2 = this._groups, m2 = groups2.length, subgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
51010
|
+
for (var group = groups2[j2], n2 = group.length, subgroup = subgroups[j2] = [], node, i2 = 0; i2 < n2; ++i2) {
|
|
50818
51011
|
if ((node = group[i2]) && match2.call(node, node.__data__, i2, group)) {
|
|
50819
51012
|
subgroup.push(node);
|
|
50820
51013
|
}
|
|
@@ -50904,10 +51097,10 @@ function datum(node) {
|
|
|
50904
51097
|
}
|
|
50905
51098
|
function selection_data(value, key) {
|
|
50906
51099
|
if (!arguments.length) return Array.from(this, datum);
|
|
50907
|
-
var bind3 = key ? bindKey : bindIndex, parents = this._parents,
|
|
51100
|
+
var bind3 = key ? bindKey : bindIndex, parents = this._parents, groups2 = this._groups;
|
|
50908
51101
|
if (typeof value !== "function") value = constant$1(value);
|
|
50909
|
-
for (var m2 =
|
|
50910
|
-
var parent = parents[j2], group =
|
|
51102
|
+
for (var m2 = groups2.length, update = new Array(m2), enter2 = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
51103
|
+
var parent = parents[j2], group = groups2[j2], groupLength = group.length, data2 = arraylike(value.call(parent, parent && parent.__data__, j2, parents)), dataLength = data2.length, enterGroup = enter2[j2] = new Array(dataLength), updateGroup = update[j2] = new Array(dataLength), exitGroup = exit[j2] = new Array(groupLength);
|
|
50911
51104
|
bind3(parent, group, enterGroup, updateGroup, exitGroup, data2, key);
|
|
50912
51105
|
for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {
|
|
50913
51106
|
if (previous = enterGroup[i0]) {
|
|
@@ -50959,8 +51152,8 @@ function selection_merge(context) {
|
|
|
50959
51152
|
return new Selection(merges, this._parents);
|
|
50960
51153
|
}
|
|
50961
51154
|
function selection_order() {
|
|
50962
|
-
for (var
|
|
50963
|
-
for (var group =
|
|
51155
|
+
for (var groups2 = this._groups, j2 = -1, m2 = groups2.length; ++j2 < m2; ) {
|
|
51156
|
+
for (var group = groups2[j2], i2 = group.length - 1, next = group[i2], node; --i2 >= 0; ) {
|
|
50964
51157
|
if (node = group[i2]) {
|
|
50965
51158
|
if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
|
|
50966
51159
|
next = node;
|
|
@@ -50974,8 +51167,8 @@ function selection_sort(compare2) {
|
|
|
50974
51167
|
function compareNode(a2, b2) {
|
|
50975
51168
|
return a2 && b2 ? compare2(a2.__data__, b2.__data__) : !a2 - !b2;
|
|
50976
51169
|
}
|
|
50977
|
-
for (var
|
|
50978
|
-
for (var group =
|
|
51170
|
+
for (var groups2 = this._groups, m2 = groups2.length, sortgroups = new Array(m2), j2 = 0; j2 < m2; ++j2) {
|
|
51171
|
+
for (var group = groups2[j2], n2 = group.length, sortgroup = sortgroups[j2] = new Array(n2), node, i2 = 0; i2 < n2; ++i2) {
|
|
50979
51172
|
if (node = group[i2]) {
|
|
50980
51173
|
sortgroup[i2] = node;
|
|
50981
51174
|
}
|
|
@@ -50997,8 +51190,8 @@ function selection_nodes() {
|
|
|
50997
51190
|
return Array.from(this);
|
|
50998
51191
|
}
|
|
50999
51192
|
function selection_node() {
|
|
51000
|
-
for (var
|
|
51001
|
-
for (var group =
|
|
51193
|
+
for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
|
|
51194
|
+
for (var group = groups2[j2], i2 = 0, n2 = group.length; i2 < n2; ++i2) {
|
|
51002
51195
|
var node = group[i2];
|
|
51003
51196
|
if (node) return node;
|
|
51004
51197
|
}
|
|
@@ -51014,8 +51207,8 @@ function selection_empty() {
|
|
|
51014
51207
|
return !this.node();
|
|
51015
51208
|
}
|
|
51016
51209
|
function selection_each(callback) {
|
|
51017
|
-
for (var
|
|
51018
|
-
for (var group =
|
|
51210
|
+
for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
|
|
51211
|
+
for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
|
|
51019
51212
|
if (node = group[i2]) callback.call(node, node.__data__, i2, group);
|
|
51020
51213
|
}
|
|
51021
51214
|
}
|
|
@@ -51338,15 +51531,15 @@ function selection_dispatch(type3, params) {
|
|
|
51338
51531
|
return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type3, params));
|
|
51339
51532
|
}
|
|
51340
51533
|
function* selection_iterator() {
|
|
51341
|
-
for (var
|
|
51342
|
-
for (var group =
|
|
51534
|
+
for (var groups2 = this._groups, j2 = 0, m2 = groups2.length; j2 < m2; ++j2) {
|
|
51535
|
+
for (var group = groups2[j2], i2 = 0, n2 = group.length, node; i2 < n2; ++i2) {
|
|
51343
51536
|
if (node = group[i2]) yield node;
|
|
51344
51537
|
}
|
|
51345
51538
|
}
|
|
51346
51539
|
}
|
|
51347
51540
|
var root = [null];
|
|
51348
|
-
function Selection(
|
|
51349
|
-
this._groups =
|
|
51541
|
+
function Selection(groups2, parents) {
|
|
51542
|
+
this._groups = groups2;
|
|
51350
51543
|
this._parents = parents;
|
|
51351
51544
|
}
|
|
51352
51545
|
function selection_selection() {
|