@bagelink/vue 0.0.1147 → 0.0.1155
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/common-C_IH8b5S.cjs +12580 -0
- package/dist/common-DoeNgx31.js +12579 -0
- package/dist/components/AddressSaerch.vue.d.ts +7 -0
- package/dist/components/AddressSaerch.vue.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.vue.d.ts +12 -35
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/useTableData.d.ts +10 -2
- package/dist/components/DataTable/useTableData.d.ts.map +1 -1
- package/dist/components/Draggable/Draggable.vue.d.ts +45 -0
- package/dist/components/Draggable/Draggable.vue.d.ts.map +1 -0
- package/dist/components/Draggable/index.d.ts +5 -0
- package/dist/components/Draggable/index.d.ts.map +1 -0
- package/dist/components/Draggable/useDraggable.d.ts +31 -0
- package/dist/components/Draggable/useDraggable.d.ts.map +1 -0
- package/dist/components/Draggable/vDraggable.d.ts +4 -0
- package/dist/components/Draggable/vDraggable.d.ts.map +1 -0
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ListView.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/TableSchema.vue.d.ts +2 -2
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
- package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
- 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/index.d.ts +0 -1
- package/dist/components/form/index.d.ts.map +1 -1
- 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/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts +14 -0
- package/dist/components/form/inputs/RichText/Toolbar.vue.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText/formatting.d.ts +11 -0
- package/dist/components/form/inputs/RichText/formatting.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText/richtext-types.d.ts +3 -0
- package/dist/components/form/inputs/RichText/richtext-types.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.vue.d.ts +0 -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 +4 -4
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.vue.d.ts +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/UploadFile.vue.d.ts +86 -0
- package/dist/components/form/inputs/Upload/UploadFile.vue.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/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts +1 -1
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/sortable/Animation.d.ts +43 -0
- package/dist/components/sortable/Animation.d.ts.map +1 -0
- package/dist/components/sortable/BrowserInfo.d.ts +7 -0
- package/dist/components/sortable/BrowserInfo.d.ts.map +1 -0
- package/dist/components/sortable/EventDispatcher.d.ts +13 -0
- package/dist/components/sortable/EventDispatcher.d.ts.map +1 -0
- package/dist/components/sortable/PluginManager.d.ts +27 -0
- package/dist/components/sortable/PluginManager.d.ts.map +1 -0
- package/dist/components/sortable/Sortable.d.ts +81 -0
- package/dist/components/sortable/Sortable.d.ts.map +1 -0
- package/dist/components/sortable/index.d.ts +5 -0
- package/dist/components/sortable/index.d.ts.map +1 -0
- package/dist/components/sortable/utils.d.ts +49 -0
- package/dist/components/sortable/utils.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/composables/drag-n-drop/useDraggable.d.ts +2 -0
- package/dist/composables/drag-n-drop/useDraggable.d.ts.map +1 -0
- package/dist/composables/useSchemaField.d.ts +15 -0
- package/dist/composables/useSchemaField.d.ts.map +1 -0
- package/dist/editor-CUDRLdmS.js +4 -0
- package/dist/editor-Cu374vEW.cjs +4 -0
- package/dist/editor-a8DSbb6P.js +4 -0
- package/dist/editor-xBt_vIha.cjs +4 -0
- package/dist/heic2any-8wMqMfB_.js +933 -0
- package/dist/heic2any-BrqcNzfV.js +935 -0
- package/dist/heic2any-C8KwH72N.cjs +934 -0
- package/dist/heic2any-k9wDCKka.cjs +932 -0
- package/dist/index-DiG-xM9T.cjs +35016 -0
- package/dist/index-nGuSAiY2.js +35017 -0
- package/dist/index.cjs +1322 -884
- package/dist/index.mjs +1324 -886
- package/dist/plugins/drag-n-drop/draggable.d.ts +4 -0
- package/dist/plugins/drag-n-drop/draggable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/droppable.d.ts +4 -0
- package/dist/plugins/drag-n-drop/droppable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/index.d.ts +5 -0
- package/dist/plugins/drag-n-drop/index.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/useDraggable.d.ts +8 -0
- package/dist/plugins/drag-n-drop/useDraggable.d.ts.map +1 -0
- package/dist/plugins/drag-n-drop/useDroppable.d.ts +7 -0
- package/dist/plugins/drag-n-drop/useDroppable.d.ts.map +1 -0
- package/dist/style.css +186 -208
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/DataPreview.vue +45 -116
- package/src/components/DataTable/DataTable.vue +18 -12
- package/src/components/DataTable/useTableData.ts +50 -16
- package/src/components/Draggable/Draggable.vue +64 -0
- package/src/components/Draggable/index.ts +4 -0
- package/src/components/Draggable/useDraggable.ts +632 -0
- package/src/components/Draggable/vDraggable.ts +17 -0
- package/src/components/ListView.vue +6 -2
- package/src/components/Pill.vue +1 -1
- package/src/components/form/BagelForm.vue +16 -101
- package/src/components/form/FieldArray.vue +21 -3
- package/src/components/form/index.ts +0 -1
- package/src/components/form/inputs/TextInput.vue +5 -5
- package/src/components/index.ts +5 -1
- package/src/composables/useSchemaField.ts +193 -0
- package/src/styles/text.css +15 -11
- 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/styles.css +0 -14073
- package/dist/vue.css +0 -14073
- package/src/components/form/BglField.vue +0 -132
- package/src/components/form/BglForm.vue +0 -157
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, resolveComponent, onMounted, onUnmounted, nextTick,
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, resolveComponent, onMounted, onUnmounted, nextTick, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useCssVars, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, vModelText, toRef, createSlots, Teleport, render as render$e, onBeforeUpdate, vShow, vModelRadio, TransitionGroup, vModelDynamic, onBeforeUnmount, markRaw } from "vue";
|
|
5
5
|
import { RouterLink } from "vue-router";
|
|
6
6
|
const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -59,9 +59,9 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
const _hoisted_1$
|
|
63
|
-
const _hoisted_2$
|
|
64
|
-
const _hoisted_3$
|
|
62
|
+
const _hoisted_1$W = ["aria-expanded", "aria-controls"];
|
|
63
|
+
const _hoisted_2$D = { class: "accordion-label" };
|
|
64
|
+
const _hoisted_3$u = ["id", "aria-hidden"];
|
|
65
65
|
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
66
66
|
__name: "AccordionItem",
|
|
67
67
|
props: {
|
|
@@ -125,18 +125,18 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
key: 0,
|
|
126
126
|
class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
|
|
127
127
|
}, [
|
|
128
|
-
createVNode(unref(_sfc_main$
|
|
128
|
+
createVNode(unref(_sfc_main$q), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
129
129
|
], 2)) : createCommentVNode("", true),
|
|
130
130
|
renderSlot(_ctx.$slots, "head", {}, () => [
|
|
131
|
-
createElementVNode("span", _hoisted_2$
|
|
131
|
+
createElementVNode("span", _hoisted_2$D, toDisplayString(_ctx.label), 1)
|
|
132
132
|
], true),
|
|
133
133
|
iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
|
|
134
134
|
key: 1,
|
|
135
135
|
class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
|
|
136
136
|
}, [
|
|
137
|
-
createVNode(unref(_sfc_main$
|
|
137
|
+
createVNode(unref(_sfc_main$q), { icon: computedIcon.value }, null, 8, ["icon"])
|
|
138
138
|
], 2)) : createCommentVNode("", true)
|
|
139
|
-
], 8, _hoisted_1$
|
|
139
|
+
], 8, _hoisted_1$W),
|
|
140
140
|
createVNode(Transition, { name: "expand" }, {
|
|
141
141
|
default: withCtx(() => [
|
|
142
142
|
unref(isOpen) ? (openBlock(), createElementBlock("div", {
|
|
@@ -146,7 +146,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
146
146
|
"aria-hidden": unref(isOpen) ? "false" : "true"
|
|
147
147
|
}, [
|
|
148
148
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
149
|
-
], 8, _hoisted_3$
|
|
149
|
+
], 8, _hoisted_3$u)) : createCommentVNode("", true)
|
|
150
150
|
]),
|
|
151
151
|
_: 3
|
|
152
152
|
})
|
|
@@ -162,7 +162,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
162
162
|
return target;
|
|
163
163
|
};
|
|
164
164
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-3334f637"]]);
|
|
165
|
-
const _hoisted_1$
|
|
165
|
+
const _hoisted_1$V = { class: "relative" };
|
|
166
166
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
167
167
|
__name: "AddressSearch",
|
|
168
168
|
emits: ["addressSelected"],
|
|
@@ -185,8 +185,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
185
185
|
(_a2 = suggestion.value) == null ? void 0 : _a2.show();
|
|
186
186
|
}
|
|
187
187
|
return (_ctx, _cache) => {
|
|
188
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
189
|
-
createVNode(unref(_sfc_main$
|
|
188
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
189
|
+
createVNode(unref(_sfc_main$U), {
|
|
190
190
|
ref_key: "suggestion",
|
|
191
191
|
ref: suggestion,
|
|
192
192
|
noAutoFocus: true,
|
|
@@ -201,7 +201,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
201
201
|
}, null, 8, ["modelValue"])
|
|
202
202
|
]),
|
|
203
203
|
default: withCtx(() => [
|
|
204
|
-
createVNode(unref(
|
|
204
|
+
createVNode(unref(_sfc_main$e), { class: "-mt-2 hm-300px" }, {
|
|
205
205
|
default: withCtx(() => [
|
|
206
206
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(searchResults), (result2, index2) => {
|
|
207
207
|
return openBlock(), createBlock(unref(_sfc_main$f), {
|
|
@@ -221,7 +221,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
const _hoisted_1$
|
|
224
|
+
const _hoisted_1$U = {
|
|
225
225
|
key: 1,
|
|
226
226
|
class: "bgl_btn-flex"
|
|
227
227
|
};
|
|
@@ -291,8 +291,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "h-100p",
|
|
293
293
|
size: "15"
|
|
294
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
295
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
294
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$U, [
|
|
295
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
296
296
|
key: 0,
|
|
297
297
|
icon: _ctx.icon,
|
|
298
298
|
class: "transition-400"
|
|
@@ -301,7 +301,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
301
301
|
!unref(slots).default && _ctx.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
302
302
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
303
303
|
], 64)) : createCommentVNode("", true),
|
|
304
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$
|
|
304
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
305
305
|
key: 2,
|
|
306
306
|
icon: _ctx.iconEnd,
|
|
307
307
|
class: "transition-400"
|
|
@@ -316,8 +316,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
318
|
const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-7b18a02c"]]);
|
|
319
|
-
const _hoisted_1$
|
|
320
|
-
const _hoisted_2$
|
|
319
|
+
const _hoisted_1$T = ["dismissable"];
|
|
320
|
+
const _hoisted_2$C = { class: "m-0" };
|
|
321
321
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
322
322
|
__name: "Alert",
|
|
323
323
|
props: {
|
|
@@ -339,14 +339,14 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
339
339
|
class: normalizeClass(["alert", [_ctx.type]]),
|
|
340
340
|
dismissable: _ctx.dismissable
|
|
341
341
|
}, [
|
|
342
|
-
_ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
342
|
+
_ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
343
343
|
key: 0,
|
|
344
344
|
class: "alert_icon",
|
|
345
345
|
icon: _ctx.icon || _ctx.type,
|
|
346
346
|
size: 2,
|
|
347
347
|
color: color2[_ctx.type]
|
|
348
348
|
}, null, 8, ["icon", "color"])) : createCommentVNode("", true),
|
|
349
|
-
createElementVNode("p", _hoisted_2$
|
|
349
|
+
createElementVNode("p", _hoisted_2$C, toDisplayString(_ctx.message), 1),
|
|
350
350
|
createVNode(Btn, {
|
|
351
351
|
flat: "",
|
|
352
352
|
thin: "",
|
|
@@ -354,12 +354,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
icon: "close",
|
|
355
355
|
onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
|
|
356
356
|
})
|
|
357
|
-
], 10, _hoisted_1$
|
|
357
|
+
], 10, _hoisted_1$T)) : createCommentVNode("", true);
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-064bdd20"]]);
|
|
362
|
-
const _hoisted_1$
|
|
362
|
+
const _hoisted_1$S = ["src", "alt"];
|
|
363
363
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
364
364
|
__name: "Avatar",
|
|
365
365
|
props: {
|
|
@@ -378,7 +378,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
378
378
|
key: 0,
|
|
379
379
|
src: _ctx.src,
|
|
380
380
|
alt: _ctx.name
|
|
381
|
-
}, null, 8, _hoisted_1$
|
|
381
|
+
}, null, 8, _hoisted_1$S)) : (openBlock(), createElementBlock("p", {
|
|
382
382
|
key: 1,
|
|
383
383
|
style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
|
|
384
384
|
}, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
|
|
@@ -401,13 +401,13 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
401
401
|
return openBlock(), createElementBlock("div", {
|
|
402
402
|
class: normalizeClass(["pill", [_ctx.color]])
|
|
403
403
|
}, [
|
|
404
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
404
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
405
405
|
key: 0,
|
|
406
406
|
class: "inline",
|
|
407
407
|
icon: _ctx.icon
|
|
408
408
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
409
409
|
createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
|
|
410
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$
|
|
410
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
411
411
|
key: 1,
|
|
412
412
|
class: "inline",
|
|
413
413
|
icon: _ctx.iconEnd
|
|
@@ -417,7 +417,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-689f051f"]]);
|
|
420
|
-
const _hoisted_1$
|
|
420
|
+
const _hoisted_1$R = { key: 1 };
|
|
421
421
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
422
422
|
__name: "BglComponent",
|
|
423
423
|
props: {
|
|
@@ -438,16 +438,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
438
438
|
return TextInput;
|
|
439
439
|
}
|
|
440
440
|
if (props2.field.$el === "number") return NumberInput;
|
|
441
|
-
if (props2.field.$el === "array") return _sfc_main$
|
|
441
|
+
if (props2.field.$el === "array") return _sfc_main$Q;
|
|
442
442
|
if (props2.field.$el === "select") return SelectInput;
|
|
443
443
|
if (props2.field.$el === "toggle") return ToggleInput;
|
|
444
444
|
if (props2.field.$el === "check") return CheckInput;
|
|
445
445
|
if (props2.field.$el === "richtext") return RichText;
|
|
446
446
|
if (props2.field.$el === "upload") return UploadInput;
|
|
447
447
|
if (props2.field.$el === "file") return FileUpload;
|
|
448
|
-
if (props2.field.$el === "date") return _sfc_main$
|
|
448
|
+
if (props2.field.$el === "date") return _sfc_main$L;
|
|
449
449
|
if (props2.field.$el === "tabs") return TabsNav;
|
|
450
|
-
if (props2.field.$el === "form") return _sfc_main$
|
|
450
|
+
if (props2.field.$el === "form") return _sfc_main$R;
|
|
451
451
|
return props2.field.$el ?? "div";
|
|
452
452
|
});
|
|
453
453
|
function getFieldData(path) {
|
|
@@ -564,7 +564,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
564
564
|
id: [props2.id, child.id].filter(Boolean).join("."),
|
|
565
565
|
field: child,
|
|
566
566
|
"parent-path": props2.id
|
|
567
|
-
}, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$
|
|
567
|
+
}, null, 8, ["id", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$R, toDisplayString(child), 1))
|
|
568
568
|
], 64);
|
|
569
569
|
}), 128))
|
|
570
570
|
], 64))
|
|
@@ -574,9 +574,9 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
|
-
const _hoisted_1$
|
|
578
|
-
const _hoisted_2$
|
|
579
|
-
const _hoisted_3$
|
|
577
|
+
const _hoisted_1$Q = ["src"];
|
|
578
|
+
const _hoisted_2$B = ["autoplay", "muted", "loop", "controls", "playsinline"];
|
|
579
|
+
const _hoisted_3$t = ["src", "type"];
|
|
580
580
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
581
581
|
__name: "BglVideo",
|
|
582
582
|
props: {
|
|
@@ -654,7 +654,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
654
654
|
allowfullscreen: "",
|
|
655
655
|
title: "Video",
|
|
656
656
|
allow: "autoplay"
|
|
657
|
-
}, null, 12, _hoisted_1$
|
|
657
|
+
}, null, 12, _hoisted_1$Q)) : _ctx.src ? (openBlock(), createElementBlock("video", {
|
|
658
658
|
key: 1,
|
|
659
659
|
ref_key: "video",
|
|
660
660
|
ref: video,
|
|
@@ -668,14 +668,14 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
668
668
|
createElementVNode("source", {
|
|
669
669
|
src: _ctx.src,
|
|
670
670
|
type: `video/${videoFormat.value}`
|
|
671
|
-
}, null, 8, _hoisted_3$
|
|
672
|
-
], 12, _hoisted_2$
|
|
671
|
+
}, null, 8, _hoisted_3$t)
|
|
672
|
+
], 12, _hoisted_2$B)) : createCommentVNode("", true)
|
|
673
673
|
], 2);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-006552f6"]]);
|
|
678
|
-
const _hoisted_1$
|
|
678
|
+
const _hoisted_1$P = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "card_label"
|
|
681
681
|
};
|
|
@@ -708,7 +708,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
708
708
|
}])
|
|
709
709
|
}, {
|
|
710
710
|
default: withCtx(() => [
|
|
711
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
711
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$P, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
712
712
|
renderSlot(_ctx.$slots, "default")
|
|
713
713
|
]),
|
|
714
714
|
_: 3
|
|
@@ -718,13 +718,13 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
|
-
const _hoisted_1$
|
|
722
|
-
const _hoisted_2$
|
|
721
|
+
const _hoisted_1$O = ["dir"];
|
|
722
|
+
const _hoisted_2$A = {
|
|
723
723
|
key: 0,
|
|
724
724
|
class: "dots"
|
|
725
725
|
};
|
|
726
|
-
const _hoisted_3$
|
|
727
|
-
const _hoisted_4$
|
|
726
|
+
const _hoisted_3$s = ["onClick"];
|
|
727
|
+
const _hoisted_4$i = { class: "Handlers" };
|
|
728
728
|
const GAP_PERCENT = 1;
|
|
729
729
|
const VELOCITY_SAMPLE_DURATION = 100;
|
|
730
730
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
@@ -1147,16 +1147,16 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1147
1147
|
}, [
|
|
1148
1148
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1149
1149
|
], 38),
|
|
1150
|
-
props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1150
|
+
props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
|
|
1151
1151
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
|
|
1152
1152
|
return openBlock(), createElementBlock("span", {
|
|
1153
1153
|
key: i2,
|
|
1154
1154
|
class: normalizeClass(["dot", { current: unref(activeSlideIndex) === i2 - 1 }]),
|
|
1155
1155
|
onClick: ($event) => goToSlide(i2 - 1)
|
|
1156
|
-
}, null, 10, _hoisted_3$
|
|
1156
|
+
}, null, 10, _hoisted_3$s);
|
|
1157
1157
|
}), 128))
|
|
1158
1158
|
])) : createCommentVNode("", true),
|
|
1159
|
-
createElementVNode("div", _hoisted_4$
|
|
1159
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
1160
1160
|
createElementVNode("span", { onClick: prev }, [
|
|
1161
1161
|
renderSlot(_ctx.$slots, "prev", {
|
|
1162
1162
|
index: unref(activeSlideIndex),
|
|
@@ -1170,7 +1170,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1170
1170
|
}, void 0, true)
|
|
1171
1171
|
])
|
|
1172
1172
|
])
|
|
1173
|
-
], 14, _hoisted_1$
|
|
1173
|
+
], 14, _hoisted_1$O);
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
});
|
|
@@ -5498,21 +5498,21 @@ function styleInject(css2, ref2) {
|
|
|
5498
5498
|
return;
|
|
5499
5499
|
}
|
|
5500
5500
|
var head = document.head || document.getElementsByTagName("head")[0];
|
|
5501
|
-
var
|
|
5502
|
-
|
|
5501
|
+
var style2 = document.createElement("style");
|
|
5502
|
+
style2.type = "text/css";
|
|
5503
5503
|
if (insertAt === "top") {
|
|
5504
5504
|
if (head.firstChild) {
|
|
5505
|
-
head.insertBefore(
|
|
5505
|
+
head.insertBefore(style2, head.firstChild);
|
|
5506
5506
|
} else {
|
|
5507
|
-
head.appendChild(
|
|
5507
|
+
head.appendChild(style2);
|
|
5508
5508
|
}
|
|
5509
5509
|
} else {
|
|
5510
|
-
head.appendChild(
|
|
5510
|
+
head.appendChild(style2);
|
|
5511
5511
|
}
|
|
5512
|
-
if (
|
|
5513
|
-
|
|
5512
|
+
if (style2.styleSheet) {
|
|
5513
|
+
style2.styleSheet.cssText = css2;
|
|
5514
5514
|
} else {
|
|
5515
|
-
|
|
5515
|
+
style2.appendChild(document.createTextNode(css2));
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
5518
5518
|
var css_248z$1 = "\n.chart {\n position: relative;\n}\n";
|
|
@@ -5686,8 +5686,8 @@ var script$9 = defineComponent({
|
|
|
5686
5686
|
}
|
|
5687
5687
|
function computeDotStyle(active) {
|
|
5688
5688
|
const dotStyle = props2.dotStyle;
|
|
5689
|
-
const
|
|
5690
|
-
return Object.assign({ r: active ? 5 : 3, stroke:
|
|
5689
|
+
const style2 = getStyle.value();
|
|
5690
|
+
return Object.assign({ r: active ? 5 : 3, stroke: style2.stroke, strokeWidth: style2.strokeWidth, fill: "white" }, dotStyle);
|
|
5691
5691
|
}
|
|
5692
5692
|
const getStyle = computed(() => {
|
|
5693
5693
|
if (is$1(Function, props2.lineStyle)) {
|
|
@@ -5890,11 +5890,11 @@ var script$7 = defineComponent({
|
|
|
5890
5890
|
const getStyle = computed(() => {
|
|
5891
5891
|
return () => Object.assign({ colors: ["#4daf4a", "#377eb8", "#ff7f00", "#984ea3", "#e41a1c"], innerRadius: 2, cornerRadius: 0, padAngle: 0.01 }, props2.pieStyle);
|
|
5892
5892
|
});
|
|
5893
|
-
const
|
|
5893
|
+
const style2 = getStyle.value();
|
|
5894
5894
|
const arcs = ref([]);
|
|
5895
5895
|
const colors = ordinal(getStyle.value().colors);
|
|
5896
5896
|
const arcGen = () => {
|
|
5897
|
-
return arc().outerRadius(size2.value).innerRadius(
|
|
5897
|
+
return arc().outerRadius(size2.value).innerRadius(style2.innerRadius).cornerRadius(style2.cornerRadius).padAngle(style2.padAngle);
|
|
5898
5898
|
};
|
|
5899
5899
|
const transform = ref(`translate(${size2.value + chart.canvas.x}, ${size2.value + chart.canvas.y})`);
|
|
5900
5900
|
let pieSort;
|
|
@@ -6085,7 +6085,7 @@ const _hoisted_4$2$1 = {
|
|
|
6085
6085
|
};
|
|
6086
6086
|
const _hoisted_5$2$1 = ["x1", "y1", "x2", "y2"];
|
|
6087
6087
|
const _hoisted_6$2$1 = ["x1", "y1", "x2", "y2"];
|
|
6088
|
-
const _hoisted_7$
|
|
6088
|
+
const _hoisted_7$9 = ["x1", "y1", "x2", "y2"];
|
|
6089
6089
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6090
6090
|
return _ctx.data.length ? (openBlock(), createElementBlock("g", {
|
|
6091
6091
|
key: 0,
|
|
@@ -6141,7 +6141,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6141
6141
|
y1: _ctx.canvas.y,
|
|
6142
6142
|
x2: _ctx.canvas.width - 1,
|
|
6143
6143
|
y2: _ctx.canvas.height
|
|
6144
|
-
}, null, 8, _hoisted_7$
|
|
6144
|
+
}, null, 8, _hoisted_7$9)
|
|
6145
6145
|
])
|
|
6146
6146
|
], 8, _hoisted_1$4$1)) : createCommentVNode("v-if", true);
|
|
6147
6147
|
}
|
|
@@ -6177,7 +6177,7 @@ var script$4 = defineComponent({
|
|
|
6177
6177
|
const isRight = computed(() => {
|
|
6178
6178
|
return position.value.x >= canvas.value.width / 4 * 3;
|
|
6179
6179
|
});
|
|
6180
|
-
const
|
|
6180
|
+
const style2 = computed(() => {
|
|
6181
6181
|
if (direction.value === "vertical") {
|
|
6182
6182
|
return {
|
|
6183
6183
|
top: position.value.y - 0.5 + "px",
|
|
@@ -6233,7 +6233,7 @@ var script$4 = defineComponent({
|
|
|
6233
6233
|
direction.value = chart.config.direction;
|
|
6234
6234
|
canvas.value = chart.canvas;
|
|
6235
6235
|
});
|
|
6236
|
-
return { el, show, canvas, direction, style, styleContent, position, items, isRight };
|
|
6236
|
+
return { el, show, canvas, direction, style: style2, styleContent, position, items, isRight };
|
|
6237
6237
|
}
|
|
6238
6238
|
});
|
|
6239
6239
|
const _hoisted_1$3$1 = { key: 0 };
|
|
@@ -6973,16 +6973,16 @@ var script$1 = defineComponent({
|
|
|
6973
6973
|
}
|
|
6974
6974
|
const toKebabCase = (data3) => mapKeys(kebabize, data3);
|
|
6975
6975
|
const getStyle = (r2) => {
|
|
6976
|
-
const
|
|
6976
|
+
const style2 = {
|
|
6977
6977
|
stroke: r2.color,
|
|
6978
6978
|
strokeWidth: 5,
|
|
6979
6979
|
fill: r2.color,
|
|
6980
6980
|
fillOpacity: 0.9
|
|
6981
6981
|
};
|
|
6982
6982
|
if (props2.rcStyle && typeof props2.rcStyle === "function") {
|
|
6983
|
-
return Object.assign(Object.assign({},
|
|
6983
|
+
return Object.assign(Object.assign({}, style2), props2.rcStyle(r2));
|
|
6984
6984
|
}
|
|
6985
|
-
return
|
|
6985
|
+
return style2;
|
|
6986
6986
|
};
|
|
6987
6987
|
function onMouseOver(i2) {
|
|
6988
6988
|
selected.value = i2;
|
|
@@ -7008,10 +7008,10 @@ const _hoisted_1$1$1 = {
|
|
|
7008
7008
|
style: { display: "flex", position: "relative" }
|
|
7009
7009
|
};
|
|
7010
7010
|
const _hoisted_2$1$1 = ["width", "height", "viewBox"];
|
|
7011
|
-
const _hoisted_3$
|
|
7012
|
-
const _hoisted_4$
|
|
7013
|
-
const _hoisted_5$
|
|
7014
|
-
const _hoisted_6$
|
|
7011
|
+
const _hoisted_3$r = { class: "layer-rectangles" };
|
|
7012
|
+
const _hoisted_4$h = ["transform", "onMouseover"];
|
|
7013
|
+
const _hoisted_5$g = ["width", "height"];
|
|
7014
|
+
const _hoisted_6$d = {
|
|
7015
7015
|
x: 0 + 10,
|
|
7016
7016
|
y: 0 + 20,
|
|
7017
7017
|
"font-size": `15px`,
|
|
@@ -7026,7 +7026,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7026
7026
|
viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
|
|
7027
7027
|
ref: "el"
|
|
7028
7028
|
}, [
|
|
7029
|
-
createElementVNode("g", _hoisted_3$
|
|
7029
|
+
createElementVNode("g", _hoisted_3$r, [
|
|
7030
7030
|
(openBlock(true), createElementBlock(
|
|
7031
7031
|
Fragment,
|
|
7032
7032
|
null,
|
|
@@ -7047,21 +7047,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7047
7047
|
y: 0,
|
|
7048
7048
|
width: r2.width,
|
|
7049
7049
|
height: r2.height
|
|
7050
|
-
}), null, 16, _hoisted_5$
|
|
7050
|
+
}), null, 16, _hoisted_5$g),
|
|
7051
7051
|
renderSlot(_ctx.$slots, "text", {
|
|
7052
7052
|
r: r2,
|
|
7053
7053
|
selected: _ctx.selected === i2
|
|
7054
7054
|
}, () => [
|
|
7055
7055
|
createElementVNode(
|
|
7056
7056
|
"text",
|
|
7057
|
-
_hoisted_6$
|
|
7057
|
+
_hoisted_6$d,
|
|
7058
7058
|
toDisplayString(r2.data.name),
|
|
7059
7059
|
1
|
|
7060
7060
|
/* TEXT */
|
|
7061
7061
|
)
|
|
7062
7062
|
])
|
|
7063
7063
|
])
|
|
7064
|
-
], 42, _hoisted_4$
|
|
7064
|
+
], 42, _hoisted_4$h);
|
|
7065
7065
|
}),
|
|
7066
7066
|
128
|
|
7067
7067
|
/* KEYED_FRAGMENT */
|
|
@@ -7118,19 +7118,19 @@ var script = defineComponent({
|
|
|
7118
7118
|
return { bar, canvas, direction, mouse };
|
|
7119
7119
|
}
|
|
7120
7120
|
});
|
|
7121
|
-
const _hoisted_1$
|
|
7121
|
+
const _hoisted_1$N = {
|
|
7122
7122
|
key: 0,
|
|
7123
7123
|
class: "layer-hover-bar"
|
|
7124
7124
|
};
|
|
7125
|
-
const _hoisted_2$
|
|
7125
|
+
const _hoisted_2$z = ["x", "y", "width", "height"];
|
|
7126
7126
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7127
|
-
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$
|
|
7127
|
+
return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$N, [
|
|
7128
7128
|
createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
|
|
7129
7129
|
x: _ctx.bar.x,
|
|
7130
7130
|
y: _ctx.bar.y,
|
|
7131
7131
|
width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
|
|
7132
7132
|
height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
|
|
7133
|
-
}), null, 16, _hoisted_2$
|
|
7133
|
+
}), null, 16, _hoisted_2$z)
|
|
7134
7134
|
])) : createCommentVNode("v-if", true);
|
|
7135
7135
|
}
|
|
7136
7136
|
script.render = render;
|
|
@@ -7276,107 +7276,125 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
7276
7276
|
};
|
|
7277
7277
|
}
|
|
7278
7278
|
});
|
|
7279
|
-
const
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
};
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
};
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7279
|
+
const SLOT_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["div", "span", "p"]);
|
|
7280
|
+
const SRC_VALUE_COMPONENTS$1 = /* @__PURE__ */ new Set(["img", "iframe"]);
|
|
7281
|
+
function useSchemaField(options) {
|
|
7282
|
+
const { mode = "form", getRowData, onUpdate } = options;
|
|
7283
|
+
function getComponent(field) {
|
|
7284
|
+
var _a2;
|
|
7285
|
+
const componentMap = {
|
|
7286
|
+
text: TextInput,
|
|
7287
|
+
textarea: TextInput,
|
|
7288
|
+
number: NumberInput,
|
|
7289
|
+
array: _sfc_main$Q,
|
|
7290
|
+
select: SelectInput,
|
|
7291
|
+
toggle: ToggleInput,
|
|
7292
|
+
check: CheckInput,
|
|
7293
|
+
richtext: RichText,
|
|
7294
|
+
upload: UploadInput,
|
|
7295
|
+
file: FileUpload,
|
|
7296
|
+
date: _sfc_main$L,
|
|
7297
|
+
tabs: TabsNav,
|
|
7298
|
+
form: _sfc_main$R
|
|
7299
|
+
};
|
|
7300
|
+
if (field.$el === "textarea" && !((_a2 = field.attrs) == null ? void 0 : _a2.multiline)) {
|
|
7301
|
+
field.attrs = { ...field.attrs, multiline: true };
|
|
7302
|
+
}
|
|
7303
|
+
return typeof field.$el === "object" ? field.$el : componentMap[field.$el] ?? field.$el ?? "div";
|
|
7304
|
+
}
|
|
7305
|
+
function renderField(field, slots) {
|
|
7306
|
+
const Component = getComponent(field);
|
|
7307
|
+
if (!Component) return null;
|
|
7308
|
+
const rowData = (getRowData == null ? void 0 : getRowData()) || {};
|
|
7309
|
+
const {
|
|
7310
|
+
$el,
|
|
7311
|
+
children: children2,
|
|
7312
|
+
options: options2,
|
|
7313
|
+
attrs,
|
|
7314
|
+
class: fieldClass,
|
|
7315
|
+
id,
|
|
7316
|
+
transform,
|
|
7317
|
+
slots: fieldSlots,
|
|
7318
|
+
required: required2,
|
|
7319
|
+
label,
|
|
7320
|
+
placeholder,
|
|
7321
|
+
disabled,
|
|
7322
|
+
...fieldProps
|
|
7323
|
+
} = field;
|
|
7324
|
+
const currentValue = field.id ? rowData[field.id] : void 0;
|
|
7325
|
+
const transformedValue = transform ? transform(currentValue, rowData) : currentValue;
|
|
7326
|
+
const boundFieldProps = bindAttrs(fieldProps, currentValue, rowData);
|
|
7327
|
+
const isSlotValueComponent = typeof Component === "string" && SLOT_VALUE_COMPONENTS$1.has(Component);
|
|
7328
|
+
const isSrcValueComponent = typeof Component === "string" && SRC_VALUE_COMPONENTS$1.has(Component);
|
|
7329
|
+
const props2 = {
|
|
7330
|
+
...boundFieldProps,
|
|
7331
|
+
required: required2,
|
|
7332
|
+
label,
|
|
7333
|
+
placeholder,
|
|
7334
|
+
disabled
|
|
7335
|
+
};
|
|
7336
|
+
if (mode === "form") {
|
|
7337
|
+
props2.modelValue = currentValue;
|
|
7338
|
+
props2["onUpdate:modelValue"] = (value) => {
|
|
7339
|
+
onUpdate == null ? void 0 : onUpdate(field, value);
|
|
7340
|
+
};
|
|
7341
|
+
} else {
|
|
7342
|
+
if (isSlotValueComponent) ;
|
|
7343
|
+
else if (isSrcValueComponent) {
|
|
7344
|
+
props2.src = transformedValue;
|
|
7345
|
+
} else {
|
|
7346
|
+
props2.modelValue = transformedValue;
|
|
7326
7347
|
}
|
|
7327
|
-
return dataValue;
|
|
7328
7348
|
}
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7349
|
+
Object.keys(props2).forEach((key) => props2[key] === void 0 && delete props2[key]);
|
|
7350
|
+
if (field.options) {
|
|
7351
|
+
props2.options = typeof field.options === "function" ? field.options(currentValue, rowData) : field.options;
|
|
7332
7352
|
}
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
}
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
])) : createCommentVNode("", true)
|
|
7370
|
-
], 64);
|
|
7371
|
-
}), 128))
|
|
7372
|
-
])) : createCommentVNode("", true),
|
|
7373
|
-
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
7374
|
-
])) : createCommentVNode("", true);
|
|
7375
|
-
};
|
|
7353
|
+
if (field.attrs) {
|
|
7354
|
+
const boundAttrs = bindAttrs(field.attrs, currentValue, rowData);
|
|
7355
|
+
Object.entries(boundAttrs).forEach(([key, value]) => {
|
|
7356
|
+
if (typeof value === "function") {
|
|
7357
|
+
props2[key] = value(currentValue, rowData);
|
|
7358
|
+
} else {
|
|
7359
|
+
props2[key] = value;
|
|
7360
|
+
}
|
|
7361
|
+
});
|
|
7362
|
+
}
|
|
7363
|
+
props2.class = classify(currentValue, rowData, fieldClass, props2.class);
|
|
7364
|
+
const componentSlots = {};
|
|
7365
|
+
if (children2 == null ? void 0 : children2.length) {
|
|
7366
|
+
componentSlots.default = () => children2.map((child) => {
|
|
7367
|
+
if (typeof child === "string") return child;
|
|
7368
|
+
return renderField(child, slots);
|
|
7369
|
+
});
|
|
7370
|
+
}
|
|
7371
|
+
if (isSlotValueComponent && transformedValue !== void 0) {
|
|
7372
|
+
componentSlots.default = () => (transformedValue == null ? void 0 : transformedValue.toString()) || "";
|
|
7373
|
+
}
|
|
7374
|
+
if (fieldSlots) {
|
|
7375
|
+
Object.entries(fieldSlots).forEach(([name, slot]) => {
|
|
7376
|
+
componentSlots[name] = typeof slot === "function" ? () => slot(currentValue, rowData) : () => slot;
|
|
7377
|
+
});
|
|
7378
|
+
}
|
|
7379
|
+
const slotContent = field.id && (slots == null ? void 0 : slots[field.id]) ? slots[field.id]({ row: rowData, field }) : void 0;
|
|
7380
|
+
if (mode === "preview") {
|
|
7381
|
+
return h$2("div", { class: "preview-field" }, [
|
|
7382
|
+
h$2("div", { class: "field-label" }, field.label || keyToLabel(field.id || "")),
|
|
7383
|
+
h$2("div", { class: "field-value" }, [
|
|
7384
|
+
slotContent || (typeof field.$el === "object" ? h$2(Component, props2, componentSlots) : (transformedValue == null ? void 0 : transformedValue.toString()) || "")
|
|
7385
|
+
])
|
|
7386
|
+
]);
|
|
7387
|
+
}
|
|
7388
|
+
return slotContent || h$2(Component, props2, componentSlots);
|
|
7376
7389
|
}
|
|
7377
|
-
|
|
7378
|
-
|
|
7390
|
+
return {
|
|
7391
|
+
renderField,
|
|
7392
|
+
getComponent
|
|
7393
|
+
};
|
|
7394
|
+
}
|
|
7379
7395
|
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
7396
|
+
const SLOT_VALUE_COMPONENTS = /* @__PURE__ */ new Set(["div", "span", "p"]);
|
|
7397
|
+
const SRC_VALUE_COMPONENTS = /* @__PURE__ */ new Set(["img", "iframe"]);
|
|
7380
7398
|
function useTableData(options) {
|
|
7381
7399
|
const sortField = ref("");
|
|
7382
7400
|
const sortDirection = ref("ASC");
|
|
@@ -7386,41 +7404,50 @@ function useTableData(options) {
|
|
|
7386
7404
|
data: options.data.value
|
|
7387
7405
|
}));
|
|
7388
7406
|
function transform(rowData) {
|
|
7389
|
-
var _a2;
|
|
7390
7407
|
const transformed = { ...rowData };
|
|
7391
7408
|
const schemaFields = computedSchema.value.filter((f2) => f2.id);
|
|
7392
7409
|
for (const field of schemaFields) {
|
|
7393
|
-
const
|
|
7394
|
-
const
|
|
7395
|
-
|
|
7410
|
+
const fieldId = field.id;
|
|
7411
|
+
const fieldData = rowData[fieldId];
|
|
7412
|
+
const transformKey = `_transformed_${String(fieldId)}`;
|
|
7413
|
+
const slotKey = `_slot_${String(fieldId)}`;
|
|
7414
|
+
const srcKey = `_src_${String(fieldId)}`;
|
|
7415
|
+
const originalKey = `_original_${String(fieldId)}`;
|
|
7416
|
+
transformed[originalKey] = fieldData;
|
|
7417
|
+
const isSlotValueComponent = typeof field.$el === "string" && SLOT_VALUE_COMPONENTS.has(field.$el);
|
|
7418
|
+
const isSrcValueComponent = typeof field.$el === "string" && SRC_VALUE_COMPONENTS.has(field.$el);
|
|
7419
|
+
transformed[slotKey] = isSlotValueComponent;
|
|
7420
|
+
transformed[srcKey] = isSrcValueComponent;
|
|
7421
|
+
if (field.transform) {
|
|
7422
|
+
const newFieldVal = field.transform(fieldData, rowData);
|
|
7423
|
+
transformed[transformKey] = newFieldVal;
|
|
7424
|
+
} else {
|
|
7425
|
+
transformed[transformKey] = fieldData;
|
|
7426
|
+
}
|
|
7396
7427
|
}
|
|
7397
7428
|
return transformed;
|
|
7398
7429
|
}
|
|
7399
|
-
const computedSortField = computed(() => `_transformed_${sortField.value}`);
|
|
7430
|
+
const computedSortField = computed(() => sortField.value ? `_transformed_${sortField.value}` : "");
|
|
7400
7431
|
const computedData = computed(() => {
|
|
7401
7432
|
const currentData = options.data.value;
|
|
7402
7433
|
if (!sortField.value || options.useServerSort === true) {
|
|
7403
7434
|
return currentData.map(transform);
|
|
7404
7435
|
}
|
|
7405
7436
|
return currentData.map(transform).sort((a2, z2) => {
|
|
7406
|
-
|
|
7407
|
-
|
|
7437
|
+
const aValue = a2[computedSortField.value] ?? "";
|
|
7438
|
+
const bValue = z2[computedSortField.value] ?? "";
|
|
7408
7439
|
if (isDate(aValue) && isDate(bValue)) {
|
|
7409
|
-
aValue
|
|
7410
|
-
bValue = new Date(bValue).getTime();
|
|
7440
|
+
return sortDirection.value === "ASC" ? new Date(aValue).getTime() - new Date(bValue).getTime() : new Date(bValue).getTime() - new Date(aValue).getTime();
|
|
7411
7441
|
}
|
|
7412
7442
|
const numAValue = Number.parseInt(`${aValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
7413
7443
|
const numBValue = Number.parseInt(`${bValue}`.replaceAll(NON_DIGIT_REGEX, ""), 10);
|
|
7414
7444
|
if (!Number.isNaN(numAValue) && !Number.isNaN(numBValue)) {
|
|
7415
|
-
|
|
7416
|
-
return numBValue - numAValue;
|
|
7445
|
+
return sortDirection.value === "ASC" ? numAValue - numBValue : numBValue - numAValue;
|
|
7417
7446
|
}
|
|
7418
7447
|
if (typeof aValue === "string") {
|
|
7419
|
-
|
|
7420
|
-
return bValue.localeCompare(aValue);
|
|
7448
|
+
return sortDirection.value === "ASC" ? aValue.localeCompare(bValue) : bValue.localeCompare(aValue);
|
|
7421
7449
|
}
|
|
7422
|
-
|
|
7423
|
-
return aValue < bValue ? 1 : -1;
|
|
7450
|
+
return sortDirection.value === "ASC" ? aValue < bValue ? -1 : 1 : aValue < bValue ? 1 : -1;
|
|
7424
7451
|
});
|
|
7425
7452
|
});
|
|
7426
7453
|
function toggleSort(fieldname) {
|
|
@@ -7446,6 +7473,47 @@ function useTableData(options) {
|
|
|
7446
7473
|
toggleSort
|
|
7447
7474
|
};
|
|
7448
7475
|
}
|
|
7476
|
+
const _hoisted_1$M = { class: "data-preview" };
|
|
7477
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
7478
|
+
__name: "DataPreview",
|
|
7479
|
+
props: {
|
|
7480
|
+
data: {},
|
|
7481
|
+
schema: { type: Function },
|
|
7482
|
+
showFields: {},
|
|
7483
|
+
useServerSort: { type: Boolean },
|
|
7484
|
+
selectable: { type: Boolean },
|
|
7485
|
+
onLastItemVisible: { type: Function }
|
|
7486
|
+
},
|
|
7487
|
+
setup(__props) {
|
|
7488
|
+
const props2 = __props;
|
|
7489
|
+
const slots = useSlots();
|
|
7490
|
+
const data2 = computed(() => Array.isArray(props2.data) ? props2.data : [props2.data]);
|
|
7491
|
+
const {
|
|
7492
|
+
computedSchema,
|
|
7493
|
+
computedData
|
|
7494
|
+
} = useTableData({
|
|
7495
|
+
data: data2,
|
|
7496
|
+
schema: props2.schema,
|
|
7497
|
+
showFields: props2.showFields,
|
|
7498
|
+
useServerSort: false
|
|
7499
|
+
});
|
|
7500
|
+
const firstItem = computed(() => computedData.value[0] || {});
|
|
7501
|
+
const { renderField } = useSchemaField({
|
|
7502
|
+
mode: "preview",
|
|
7503
|
+
getRowData: () => firstItem.value
|
|
7504
|
+
});
|
|
7505
|
+
return (_ctx, _cache) => {
|
|
7506
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
7507
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedSchema), (field) => {
|
|
7508
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)(field, unref(slots))), {
|
|
7509
|
+
key: field.id
|
|
7510
|
+
});
|
|
7511
|
+
}), 128))
|
|
7512
|
+
]);
|
|
7513
|
+
};
|
|
7514
|
+
}
|
|
7515
|
+
});
|
|
7516
|
+
const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-ad78731b"]]);
|
|
7449
7517
|
function useTableSelection(options) {
|
|
7450
7518
|
const allSelectorEl = ref();
|
|
7451
7519
|
const computedSelectedItems = computed(() => options.selectedItems.value);
|
|
@@ -8074,7 +8142,7 @@ function useTableVirtualization(options) {
|
|
|
8074
8142
|
registerLastItemObserver
|
|
8075
8143
|
};
|
|
8076
8144
|
}
|
|
8077
|
-
const _hoisted_1$
|
|
8145
|
+
const _hoisted_1$L = {
|
|
8078
8146
|
key: 0,
|
|
8079
8147
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
8080
8148
|
};
|
|
@@ -8109,7 +8177,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8109
8177
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
8110
8178
|
setup(__props, { emit: __emit }) {
|
|
8111
8179
|
useCssVars((_ctx) => ({
|
|
8112
|
-
"
|
|
8180
|
+
"0984904d": unref(computedItemHeight)
|
|
8113
8181
|
}));
|
|
8114
8182
|
const props2 = __props;
|
|
8115
8183
|
const emit2 = __emit;
|
|
@@ -8124,6 +8192,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8124
8192
|
}
|
|
8125
8193
|
);
|
|
8126
8194
|
const data2 = computed(() => props2.data);
|
|
8195
|
+
ref("");
|
|
8127
8196
|
const {
|
|
8128
8197
|
computedSchema,
|
|
8129
8198
|
computedData,
|
|
@@ -8169,6 +8238,13 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8169
8238
|
(_a2 = props2.onLastItemVisible) == null ? void 0 : _a2.call(props2);
|
|
8170
8239
|
}
|
|
8171
8240
|
});
|
|
8241
|
+
function renderFieldForRow(field, row) {
|
|
8242
|
+
const { renderField } = useSchemaField({
|
|
8243
|
+
mode: "table",
|
|
8244
|
+
getRowData: () => row
|
|
8245
|
+
});
|
|
8246
|
+
return renderField(field, slots);
|
|
8247
|
+
}
|
|
8172
8248
|
const computedItemHeight = computed(() => `${itemHeight.value}px`);
|
|
8173
8249
|
watch(
|
|
8174
8250
|
() => loading.value,
|
|
@@ -8195,7 +8271,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8195
8271
|
return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
|
|
8196
8272
|
class: { "loading-table": loading.value }
|
|
8197
8273
|
}), [
|
|
8198
|
-
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8274
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$L, _cache[4] || (_cache[4] = [
|
|
8199
8275
|
createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
|
|
8200
8276
|
]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
|
|
8201
8277
|
createElementVNode("table", _hoisted_2$y, [
|
|
@@ -8222,7 +8298,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8222
8298
|
createElementVNode("div", {
|
|
8223
8299
|
class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
|
|
8224
8300
|
}, [
|
|
8225
|
-
createVNode(unref(_sfc_main$
|
|
8301
|
+
createVNode(unref(_sfc_main$q), {
|
|
8226
8302
|
class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
|
|
8227
8303
|
icon: "keyboard_arrow_up"
|
|
8228
8304
|
}, null, 8, ["class"])
|
|
@@ -8262,13 +8338,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8262
8338
|
row,
|
|
8263
8339
|
field
|
|
8264
8340
|
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$4, [
|
|
8265
|
-
|
|
8266
|
-
id: field.id,
|
|
8267
|
-
class: "embedded-field",
|
|
8268
|
-
field,
|
|
8269
|
-
modelValue: row,
|
|
8270
|
-
label: ""
|
|
8271
|
-
}, null, 8, ["id", "field", "modelValue"])
|
|
8341
|
+
(openBlock(), createBlock(resolveDynamicComponent(renderFieldForRow(field, row))))
|
|
8272
8342
|
]))
|
|
8273
8343
|
]);
|
|
8274
8344
|
}), 128))
|
|
@@ -8287,7 +8357,539 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
8287
8357
|
};
|
|
8288
8358
|
}
|
|
8289
8359
|
});
|
|
8290
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-
|
|
8360
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-18572328"]]);
|
|
8361
|
+
function useDraggable(options = {}) {
|
|
8362
|
+
const isDragging = ref(false);
|
|
8363
|
+
const dragElement = ref(null);
|
|
8364
|
+
const ghostElement = ref(null);
|
|
8365
|
+
const dropIndicator = ref(null);
|
|
8366
|
+
const dropTarget = ref(null);
|
|
8367
|
+
const defaultOptions2 = {
|
|
8368
|
+
animation: 150,
|
|
8369
|
+
mode: "line",
|
|
8370
|
+
ghostClass: "draggable-ghost",
|
|
8371
|
+
dragClass: "draggable-dragging",
|
|
8372
|
+
dropIndicatorClass: "draggable-drop-indicator",
|
|
8373
|
+
...options
|
|
8374
|
+
};
|
|
8375
|
+
let startX = 0;
|
|
8376
|
+
let startY = 0;
|
|
8377
|
+
let initialX = 0;
|
|
8378
|
+
let initialY = 0;
|
|
8379
|
+
let shiftAmount = 0;
|
|
8380
|
+
let cleanupFn;
|
|
8381
|
+
let scrollRAF = null;
|
|
8382
|
+
let lastDropIndex = -1;
|
|
8383
|
+
let lastUpdateTime = 0;
|
|
8384
|
+
const UPDATE_THRESHOLD = 150;
|
|
8385
|
+
const POSITION_CACHE = /* @__PURE__ */ new Map();
|
|
8386
|
+
function createGhost(el) {
|
|
8387
|
+
const ghost = el.cloneNode(true);
|
|
8388
|
+
const rect = el.getBoundingClientRect();
|
|
8389
|
+
ghost.style.position = "fixed";
|
|
8390
|
+
ghost.style.margin = "0";
|
|
8391
|
+
ghost.style.top = `${rect.top}px`;
|
|
8392
|
+
ghost.style.left = `${rect.left}px`;
|
|
8393
|
+
ghost.style.width = `${rect.width}px`;
|
|
8394
|
+
ghost.style.height = `${rect.height}px`;
|
|
8395
|
+
ghost.style.transform = "translate3d(0, 0, 0)";
|
|
8396
|
+
ghost.style.pointerEvents = "none";
|
|
8397
|
+
ghost.style.zIndex = "9999";
|
|
8398
|
+
ghost.style.cursor = "grabbing";
|
|
8399
|
+
ghost.style.willChange = "transform";
|
|
8400
|
+
ghost.classList.add(defaultOptions2.ghostClass);
|
|
8401
|
+
document.body.appendChild(ghost);
|
|
8402
|
+
return ghost;
|
|
8403
|
+
}
|
|
8404
|
+
function createDropIndicator(el) {
|
|
8405
|
+
const line2 = document.createElement("div");
|
|
8406
|
+
line2.classList.add(defaultOptions2.dropIndicatorClass);
|
|
8407
|
+
line2.style.position = "fixed";
|
|
8408
|
+
line2.style.pointerEvents = "none";
|
|
8409
|
+
line2.style.zIndex = "9999";
|
|
8410
|
+
line2.style.height = "2px";
|
|
8411
|
+
line2.style.background = "var(--primary-color, #0066ff)";
|
|
8412
|
+
line2.style.boxShadow = "0 0 4px rgba(0, 102, 255, 0.5)";
|
|
8413
|
+
line2.style.transition = "all 0.15s ease";
|
|
8414
|
+
line2.style.display = "none";
|
|
8415
|
+
const dot = document.createElement("div");
|
|
8416
|
+
dot.style.position = "absolute";
|
|
8417
|
+
dot.style.left = "-4px";
|
|
8418
|
+
dot.style.top = "-3px";
|
|
8419
|
+
dot.style.width = "8px";
|
|
8420
|
+
dot.style.height = "8px";
|
|
8421
|
+
dot.style.borderRadius = "50%";
|
|
8422
|
+
dot.style.background = "var(--primary-color, #0066ff)";
|
|
8423
|
+
line2.appendChild(dot);
|
|
8424
|
+
document.body.appendChild(line2);
|
|
8425
|
+
return line2;
|
|
8426
|
+
}
|
|
8427
|
+
function updateDropIndicator(target, isAfter2) {
|
|
8428
|
+
if (!dropIndicator.value) return;
|
|
8429
|
+
const rect = target.getBoundingClientRect();
|
|
8430
|
+
dropIndicator.value.style.display = "block";
|
|
8431
|
+
dropIndicator.value.style.width = `${rect.width}px`;
|
|
8432
|
+
dropIndicator.value.style.left = `${rect.left}px`;
|
|
8433
|
+
if (isAfter2) {
|
|
8434
|
+
dropIndicator.value.style.top = `${rect.bottom}px`;
|
|
8435
|
+
} else {
|
|
8436
|
+
dropIndicator.value.style.top = `${rect.top}px`;
|
|
8437
|
+
}
|
|
8438
|
+
}
|
|
8439
|
+
function findDraggableParent(element) {
|
|
8440
|
+
let current = element;
|
|
8441
|
+
while (current && (!("__drag_group" in current) || current.dataset.draggable === "false")) {
|
|
8442
|
+
current = current.parentElement;
|
|
8443
|
+
}
|
|
8444
|
+
return current;
|
|
8445
|
+
}
|
|
8446
|
+
function handleGhostMode(dragEl2) {
|
|
8447
|
+
dragEl2.style.opacity = "0.4";
|
|
8448
|
+
dragEl2.style.transform = "scale(0.95)";
|
|
8449
|
+
return dragEl2.offsetHeight;
|
|
8450
|
+
}
|
|
8451
|
+
function handleLineMode(dragEl2) {
|
|
8452
|
+
dragEl2.style.opacity = "0.5";
|
|
8453
|
+
return 2;
|
|
8454
|
+
}
|
|
8455
|
+
function cacheElementPositions(draggedList) {
|
|
8456
|
+
POSITION_CACHE.clear();
|
|
8457
|
+
draggedList.forEach((el, index2) => {
|
|
8458
|
+
const rect = el.getBoundingClientRect();
|
|
8459
|
+
POSITION_CACHE.set(index2, {
|
|
8460
|
+
top: rect.top,
|
|
8461
|
+
bottom: rect.bottom
|
|
8462
|
+
});
|
|
8463
|
+
});
|
|
8464
|
+
}
|
|
8465
|
+
function calculateDropIndex(e, draggedList, dragIndex, newDropTarget) {
|
|
8466
|
+
const now = Date.now();
|
|
8467
|
+
if (now - lastUpdateTime < UPDATE_THRESHOLD) {
|
|
8468
|
+
return lastDropIndex !== -1 ? lastDropIndex : dragIndex;
|
|
8469
|
+
}
|
|
8470
|
+
if (POSITION_CACHE.size === 0) {
|
|
8471
|
+
cacheElementPositions(draggedList);
|
|
8472
|
+
}
|
|
8473
|
+
const mouseY = e.clientY;
|
|
8474
|
+
const targetIndex = draggedList.indexOf(newDropTarget);
|
|
8475
|
+
const targetPos = POSITION_CACHE.get(targetIndex);
|
|
8476
|
+
if (!targetPos) return dragIndex;
|
|
8477
|
+
const elementHeight = targetPos.bottom - targetPos.top;
|
|
8478
|
+
const relativeY = mouseY - targetPos.top;
|
|
8479
|
+
const upperSticky = elementHeight * 0.3;
|
|
8480
|
+
const lowerSticky = elementHeight * 0.7;
|
|
8481
|
+
let dropIndex = targetIndex;
|
|
8482
|
+
if (targetIndex === dragIndex) {
|
|
8483
|
+
if (relativeY > lowerSticky) dropIndex += 1;
|
|
8484
|
+
} else if (targetIndex === lastDropIndex) {
|
|
8485
|
+
if (targetIndex > dragIndex) {
|
|
8486
|
+
if (relativeY < upperSticky) dropIndex = targetIndex;
|
|
8487
|
+
else dropIndex = targetIndex + 1;
|
|
8488
|
+
} else {
|
|
8489
|
+
if (relativeY > lowerSticky) dropIndex = targetIndex + 1;
|
|
8490
|
+
else dropIndex = targetIndex;
|
|
8491
|
+
}
|
|
8492
|
+
} else {
|
|
8493
|
+
if (relativeY > elementHeight * 0.6) dropIndex += 1;
|
|
8494
|
+
}
|
|
8495
|
+
lastDropIndex = dropIndex;
|
|
8496
|
+
lastUpdateTime = now;
|
|
8497
|
+
return dropIndex;
|
|
8498
|
+
}
|
|
8499
|
+
function cleanup() {
|
|
8500
|
+
document.removeEventListener("mousemove", onDragMove);
|
|
8501
|
+
document.removeEventListener("mouseup", onDragEnd);
|
|
8502
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
8503
|
+
document.removeEventListener("touchmove", onTouchMove);
|
|
8504
|
+
document.removeEventListener("touchend", onTouchEnd);
|
|
8505
|
+
document.removeEventListener("touchcancel", onTouchEnd);
|
|
8506
|
+
window.removeEventListener("blur", cleanup);
|
|
8507
|
+
if (ghostElement.value) {
|
|
8508
|
+
ghostElement.value.style.opacity = "0";
|
|
8509
|
+
ghostElement.value.style.transform += " scale(0.8)";
|
|
8510
|
+
setTimeout(() => {
|
|
8511
|
+
var _a2, _b;
|
|
8512
|
+
(_b = (_a2 = ghostElement.value) == null ? void 0 : _a2.parentNode) == null ? void 0 : _b.removeChild(ghostElement.value);
|
|
8513
|
+
ghostElement.value = null;
|
|
8514
|
+
}, 150);
|
|
8515
|
+
}
|
|
8516
|
+
if (dropIndicator.value) {
|
|
8517
|
+
dropIndicator.value.style.opacity = "0";
|
|
8518
|
+
setTimeout(() => {
|
|
8519
|
+
var _a2, _b;
|
|
8520
|
+
(_b = (_a2 = dropIndicator.value) == null ? void 0 : _a2.parentNode) == null ? void 0 : _b.removeChild(dropIndicator.value);
|
|
8521
|
+
dropIndicator.value = null;
|
|
8522
|
+
}, 150);
|
|
8523
|
+
}
|
|
8524
|
+
if (dragElement.value) {
|
|
8525
|
+
const list = dragElement.value.__drag_list;
|
|
8526
|
+
list == null ? void 0 : list.forEach((el) => {
|
|
8527
|
+
el.style.transition = "";
|
|
8528
|
+
el.style.transform = "";
|
|
8529
|
+
el.style.opacity = "";
|
|
8530
|
+
});
|
|
8531
|
+
dragElement.value.classList.remove(defaultOptions2.dragClass);
|
|
8532
|
+
dragElement.value = null;
|
|
8533
|
+
}
|
|
8534
|
+
isDragging.value = false;
|
|
8535
|
+
dropTarget.value = null;
|
|
8536
|
+
document.body.style.userSelect = "";
|
|
8537
|
+
document.body.style.webkitUserSelect = "";
|
|
8538
|
+
document.body.style.cursor = "";
|
|
8539
|
+
if (scrollRAF) {
|
|
8540
|
+
cancelAnimationFrame(scrollRAF);
|
|
8541
|
+
scrollRAF = null;
|
|
8542
|
+
}
|
|
8543
|
+
lastDropIndex = -1;
|
|
8544
|
+
lastUpdateTime = 0;
|
|
8545
|
+
POSITION_CACHE.clear();
|
|
8546
|
+
}
|
|
8547
|
+
function onKeyDown(e) {
|
|
8548
|
+
if (e.key === "Escape" && isDragging.value) {
|
|
8549
|
+
cleanup();
|
|
8550
|
+
}
|
|
8551
|
+
}
|
|
8552
|
+
function onDragStart(e) {
|
|
8553
|
+
var _a2;
|
|
8554
|
+
if (defaultOptions2.disabled) return;
|
|
8555
|
+
if (e.button !== 0) return;
|
|
8556
|
+
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;
|
|
8557
|
+
const dragEl2 = findDraggableParent(e.target);
|
|
8558
|
+
if (!dragEl2 || dragEl2.dataset.draggable === "false") return;
|
|
8559
|
+
if (defaultOptions2.handle) {
|
|
8560
|
+
const handleEl = e.target.closest(defaultOptions2.handle);
|
|
8561
|
+
if (!handleEl || !dragEl2.contains(handleEl)) return;
|
|
8562
|
+
}
|
|
8563
|
+
e.preventDefault();
|
|
8564
|
+
isDragging.value = true;
|
|
8565
|
+
dragElement.value = dragEl2;
|
|
8566
|
+
startX = e.clientX;
|
|
8567
|
+
startY = e.clientY;
|
|
8568
|
+
const rect = dragEl2.getBoundingClientRect();
|
|
8569
|
+
initialX = rect.left;
|
|
8570
|
+
initialY = rect.top;
|
|
8571
|
+
ghostElement.value = createGhost(dragEl2);
|
|
8572
|
+
if (ghostElement.value) {
|
|
8573
|
+
ghostElement.value.style.left = `${initialX}px`;
|
|
8574
|
+
ghostElement.value.style.top = `${initialY}px`;
|
|
8575
|
+
}
|
|
8576
|
+
if (defaultOptions2.mode === "line") {
|
|
8577
|
+
dropIndicator.value = createDropIndicator();
|
|
8578
|
+
}
|
|
8579
|
+
dragEl2.classList.add(defaultOptions2.dragClass);
|
|
8580
|
+
shiftAmount = defaultOptions2.mode === "ghost" ? handleGhostMode(dragEl2) : handleLineMode(dragEl2);
|
|
8581
|
+
(_a2 = defaultOptions2.onStart) == null ? void 0 : _a2.call(defaultOptions2, e);
|
|
8582
|
+
document.body.style.userSelect = "none";
|
|
8583
|
+
document.body.style.webkitUserSelect = "none";
|
|
8584
|
+
document.body.style.cursor = "grabbing";
|
|
8585
|
+
window.addEventListener("blur", cleanup);
|
|
8586
|
+
document.addEventListener("mousemove", onDragMove);
|
|
8587
|
+
document.addEventListener("mouseup", onDragEnd);
|
|
8588
|
+
document.addEventListener("keydown", onKeyDown);
|
|
8589
|
+
}
|
|
8590
|
+
function findScrollParent(element) {
|
|
8591
|
+
let parent = element.parentElement;
|
|
8592
|
+
while (parent) {
|
|
8593
|
+
const { overflow, overflowY } = window.getComputedStyle(parent);
|
|
8594
|
+
if (/auto|scroll/.test(overflow + overflowY)) {
|
|
8595
|
+
return parent;
|
|
8596
|
+
}
|
|
8597
|
+
parent = parent.parentElement;
|
|
8598
|
+
}
|
|
8599
|
+
return document.scrollingElement || document.documentElement || document.body;
|
|
8600
|
+
}
|
|
8601
|
+
function autoScroll2(e) {
|
|
8602
|
+
if (!dragElement.value) return;
|
|
8603
|
+
if (scrollRAF) cancelAnimationFrame(scrollRAF);
|
|
8604
|
+
scrollRAF = requestAnimationFrame(() => {
|
|
8605
|
+
const scrollParent = findScrollParent(dragElement.value);
|
|
8606
|
+
const rect = scrollParent.getBoundingClientRect();
|
|
8607
|
+
const margin = 50;
|
|
8608
|
+
const speed = Math.min(20, rect.height * 0.1);
|
|
8609
|
+
const { scrollTop } = scrollParent;
|
|
8610
|
+
const maxScroll = scrollParent.scrollHeight - scrollParent.clientHeight;
|
|
8611
|
+
if (e.clientY - rect.top < margin) {
|
|
8612
|
+
const newScroll = Math.max(0, scrollTop - speed);
|
|
8613
|
+
scrollParent.scrollTop = newScroll;
|
|
8614
|
+
} else if (rect.bottom - e.clientY < margin) {
|
|
8615
|
+
const newScroll = Math.min(maxScroll, scrollTop + speed);
|
|
8616
|
+
scrollParent.scrollTop = newScroll;
|
|
8617
|
+
}
|
|
8618
|
+
});
|
|
8619
|
+
}
|
|
8620
|
+
function onDragMove(e) {
|
|
8621
|
+
if (!isDragging.value || !dragElement.value) return;
|
|
8622
|
+
if (ghostElement.value) {
|
|
8623
|
+
const dx = e.clientX - startX;
|
|
8624
|
+
const dy = e.clientY - startY;
|
|
8625
|
+
ghostElement.value.style.transform = `translate3d(${dx}px, ${dy}px, 0)`;
|
|
8626
|
+
}
|
|
8627
|
+
const list = dragElement.value.__drag_list;
|
|
8628
|
+
const draggedList = list.filter((el) => el.dataset.draggable !== "false");
|
|
8629
|
+
const dragIndex = draggedList.indexOf(dragElement.value);
|
|
8630
|
+
const elementAtPoint = document.elementFromPoint(e.clientX, e.clientY);
|
|
8631
|
+
const newDropTarget = findDraggableParent(elementAtPoint);
|
|
8632
|
+
if (!newDropTarget || newDropTarget.__drag_group !== dragElement.value.__drag_group) {
|
|
8633
|
+
if (dropIndicator.value) {
|
|
8634
|
+
dropIndicator.value.style.display = "none";
|
|
8635
|
+
}
|
|
8636
|
+
return;
|
|
8637
|
+
}
|
|
8638
|
+
const dropIndex = calculateDropIndex(e, draggedList, dragIndex, newDropTarget);
|
|
8639
|
+
if (dropTarget.value !== newDropTarget || dropTarget.value.__intended_index !== dropIndex) {
|
|
8640
|
+
dropTarget.value = newDropTarget;
|
|
8641
|
+
dropTarget.value.__intended_index = dropIndex;
|
|
8642
|
+
if (dropIndicator.value && defaultOptions2.mode === "line") {
|
|
8643
|
+
const isAfter2 = dropIndex > dragIndex;
|
|
8644
|
+
updateDropIndicator(newDropTarget, isAfter2);
|
|
8645
|
+
}
|
|
8646
|
+
const shift2 = shiftAmount;
|
|
8647
|
+
draggedList.forEach((el) => {
|
|
8648
|
+
el.style.transition = `transform ${defaultOptions2.animation}ms cubic-bezier(0.2, 0, 0, 1)`;
|
|
8649
|
+
el.style.transform = "translate3d(0, 0, 0)";
|
|
8650
|
+
if (el === dragElement.value) {
|
|
8651
|
+
if (defaultOptions2.mode === "ghost") {
|
|
8652
|
+
const offset2 = (dropIndex - dragIndex) * shift2;
|
|
8653
|
+
el.style.transform = `translate3d(0, ${offset2}px, 0)`;
|
|
8654
|
+
}
|
|
8655
|
+
} else {
|
|
8656
|
+
const currentIndex = draggedList.indexOf(el);
|
|
8657
|
+
if (dragIndex < dropIndex) {
|
|
8658
|
+
if (currentIndex > dragIndex && currentIndex <= dropIndex) {
|
|
8659
|
+
el.style.transform = `translate3d(0, -${shift2}px, 0)`;
|
|
8660
|
+
}
|
|
8661
|
+
} else if (dragIndex > dropIndex) {
|
|
8662
|
+
if (currentIndex >= dropIndex && currentIndex < dragIndex) {
|
|
8663
|
+
el.style.transform = `translate3d(0, ${shift2}px, 0)`;
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8666
|
+
}
|
|
8667
|
+
});
|
|
8668
|
+
}
|
|
8669
|
+
autoScroll2(e);
|
|
8670
|
+
}
|
|
8671
|
+
function onDragEnd(e) {
|
|
8672
|
+
var _a2;
|
|
8673
|
+
if (!isDragging.value || !dragElement.value || !dropTarget.value) {
|
|
8674
|
+
cleanup();
|
|
8675
|
+
return;
|
|
8676
|
+
}
|
|
8677
|
+
const list = dragElement.value.__drag_list;
|
|
8678
|
+
if (!list || !list.length) {
|
|
8679
|
+
cleanup();
|
|
8680
|
+
return;
|
|
8681
|
+
}
|
|
8682
|
+
const draggedList = list.filter((el) => el.dataset.draggable !== "false");
|
|
8683
|
+
const actualDragIndex = draggedList.indexOf(dragElement.value);
|
|
8684
|
+
const actualDropIndex = dropTarget.value.__intended_index;
|
|
8685
|
+
if (actualDragIndex !== -1 && actualDropIndex !== -1) {
|
|
8686
|
+
list.forEach((el) => {
|
|
8687
|
+
el.style.transition = "none";
|
|
8688
|
+
el.style.transform = "";
|
|
8689
|
+
});
|
|
8690
|
+
void document.body.offsetHeight;
|
|
8691
|
+
const dragEvent = new MouseEvent("mouseup", e);
|
|
8692
|
+
dragEvent.oldIndex = actualDragIndex;
|
|
8693
|
+
dragEvent.newIndex = actualDropIndex;
|
|
8694
|
+
dragEvent.item = dragElement.value.__drag_data;
|
|
8695
|
+
(_a2 = defaultOptions2.onEnd) == null ? void 0 : _a2.call(defaultOptions2, dragEvent);
|
|
8696
|
+
}
|
|
8697
|
+
cleanup();
|
|
8698
|
+
}
|
|
8699
|
+
function onTouchStart(e) {
|
|
8700
|
+
var _a2;
|
|
8701
|
+
if (defaultOptions2.disabled || !e.target) return;
|
|
8702
|
+
const touch = e.touches[0];
|
|
8703
|
+
if (!touch) return;
|
|
8704
|
+
const target = e.target;
|
|
8705
|
+
const draggableParent = findDraggableParent(target);
|
|
8706
|
+
if (!draggableParent) return;
|
|
8707
|
+
const { handle } = defaultOptions2;
|
|
8708
|
+
if (handle && !target.closest(handle)) return;
|
|
8709
|
+
e.preventDefault();
|
|
8710
|
+
isDragging.value = true;
|
|
8711
|
+
dragElement.value = draggableParent;
|
|
8712
|
+
startX = touch.clientX;
|
|
8713
|
+
startY = touch.clientY;
|
|
8714
|
+
const rect = draggableParent.getBoundingClientRect();
|
|
8715
|
+
initialX = rect.left;
|
|
8716
|
+
initialY = rect.top;
|
|
8717
|
+
ghostElement.value = createGhost(draggableParent);
|
|
8718
|
+
if (ghostElement.value) {
|
|
8719
|
+
ghostElement.value.style.left = `${initialX}px`;
|
|
8720
|
+
ghostElement.value.style.top = `${initialY}px`;
|
|
8721
|
+
}
|
|
8722
|
+
if (defaultOptions2.mode === "line") {
|
|
8723
|
+
dropIndicator.value = createDropIndicator();
|
|
8724
|
+
}
|
|
8725
|
+
dragElement.value.classList.add(defaultOptions2.dragClass);
|
|
8726
|
+
shiftAmount = defaultOptions2.mode === "ghost" ? handleGhostMode(dragElement.value) : handleLineMode(dragElement.value);
|
|
8727
|
+
(_a2 = defaultOptions2.onStart) == null ? void 0 : _a2.call(defaultOptions2, e);
|
|
8728
|
+
document.body.style.userSelect = "none";
|
|
8729
|
+
document.body.style.webkitUserSelect = "none";
|
|
8730
|
+
document.body.style.cursor = "grabbing";
|
|
8731
|
+
window.addEventListener("blur", cleanup);
|
|
8732
|
+
document.addEventListener("touchmove", onTouchMove, { passive: false });
|
|
8733
|
+
document.addEventListener("touchend", onTouchEnd);
|
|
8734
|
+
document.addEventListener("touchcancel", onTouchEnd);
|
|
8735
|
+
}
|
|
8736
|
+
function onTouchMove(e) {
|
|
8737
|
+
e.preventDefault();
|
|
8738
|
+
const touch = e.touches[0];
|
|
8739
|
+
if (!touch) return;
|
|
8740
|
+
const mouseEvent = {
|
|
8741
|
+
clientX: touch.clientX,
|
|
8742
|
+
clientY: touch.clientY,
|
|
8743
|
+
target: document.elementFromPoint(touch.clientX, touch.clientY)
|
|
8744
|
+
};
|
|
8745
|
+
onDragMove(mouseEvent);
|
|
8746
|
+
autoScroll2(mouseEvent);
|
|
8747
|
+
}
|
|
8748
|
+
function onTouchEnd(e) {
|
|
8749
|
+
const touch = e.changedTouches[0];
|
|
8750
|
+
if (!touch) return;
|
|
8751
|
+
const mouseEvent = {
|
|
8752
|
+
clientX: touch.clientX,
|
|
8753
|
+
clientY: touch.clientY,
|
|
8754
|
+
target: document.elementFromPoint(touch.clientX, touch.clientY)
|
|
8755
|
+
};
|
|
8756
|
+
onDragEnd(mouseEvent);
|
|
8757
|
+
document.removeEventListener("touchmove", onTouchMove);
|
|
8758
|
+
document.removeEventListener("touchend", onTouchEnd);
|
|
8759
|
+
document.removeEventListener("touchcancel", onTouchEnd);
|
|
8760
|
+
}
|
|
8761
|
+
function initDraggableContainer(container) {
|
|
8762
|
+
cleanupFn == null ? void 0 : cleanupFn();
|
|
8763
|
+
isDragging.value = false;
|
|
8764
|
+
dragElement.value = null;
|
|
8765
|
+
ghostElement.value = null;
|
|
8766
|
+
dropIndicator.value = null;
|
|
8767
|
+
dropTarget.value = null;
|
|
8768
|
+
const elements = Array.from(container.children);
|
|
8769
|
+
elements.forEach((el) => {
|
|
8770
|
+
delete el.__drag_group;
|
|
8771
|
+
delete el.__drag_index;
|
|
8772
|
+
delete el.__drag_list;
|
|
8773
|
+
});
|
|
8774
|
+
let currentIndex = 0;
|
|
8775
|
+
elements.forEach((el, index2) => {
|
|
8776
|
+
if (el.dataset.draggable !== "false") {
|
|
8777
|
+
el.style.userSelect = "none";
|
|
8778
|
+
el.style.webkitUserSelect = "none";
|
|
8779
|
+
el.__drag_group = options.group;
|
|
8780
|
+
el.__drag_index = currentIndex++;
|
|
8781
|
+
el.__drag_list = elements.filter((e) => e.dataset.draggable !== "false");
|
|
8782
|
+
if (options.items) {
|
|
8783
|
+
el.__drag_data = options.items[index2];
|
|
8784
|
+
}
|
|
8785
|
+
el.addEventListener("mousedown", onDragStart);
|
|
8786
|
+
el.addEventListener("touchstart", onTouchStart);
|
|
8787
|
+
}
|
|
8788
|
+
});
|
|
8789
|
+
cleanupFn = () => {
|
|
8790
|
+
elements.forEach((el) => {
|
|
8791
|
+
el.removeEventListener("mousedown", onDragStart);
|
|
8792
|
+
el.removeEventListener("touchstart", onTouchStart);
|
|
8793
|
+
delete el.__drag_group;
|
|
8794
|
+
delete el.__drag_index;
|
|
8795
|
+
delete el.__drag_list;
|
|
8796
|
+
});
|
|
8797
|
+
cleanup();
|
|
8798
|
+
};
|
|
8799
|
+
}
|
|
8800
|
+
onUnmounted(() => {
|
|
8801
|
+
cleanupFn == null ? void 0 : cleanupFn();
|
|
8802
|
+
});
|
|
8803
|
+
return {
|
|
8804
|
+
isDragging,
|
|
8805
|
+
dragElement,
|
|
8806
|
+
initDraggableContainer
|
|
8807
|
+
};
|
|
8808
|
+
}
|
|
8809
|
+
const style = document.createElement("style");
|
|
8810
|
+
style.textContent = `
|
|
8811
|
+
.draggable-ghost {
|
|
8812
|
+
opacity: 0.5;
|
|
8813
|
+
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
8814
|
+
transition: transform 0.1s;
|
|
8815
|
+
|
|
8816
|
+
}
|
|
8817
|
+
`;
|
|
8818
|
+
document.head.appendChild(style);
|
|
8819
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8820
|
+
__name: "Draggable",
|
|
8821
|
+
props: {
|
|
8822
|
+
modelValue: {},
|
|
8823
|
+
group: {},
|
|
8824
|
+
handle: {},
|
|
8825
|
+
mode: { default: "line" },
|
|
8826
|
+
disabled: { type: Boolean, default: false }
|
|
8827
|
+
},
|
|
8828
|
+
emits: ["update:modelValue", "start", "end"],
|
|
8829
|
+
setup(__props, { emit: __emit }) {
|
|
8830
|
+
const props2 = __props;
|
|
8831
|
+
const emit2 = __emit;
|
|
8832
|
+
const dragContainer = ref();
|
|
8833
|
+
const { initDraggableContainer } = useDraggable({
|
|
8834
|
+
group: props2.group,
|
|
8835
|
+
handle: props2.handle,
|
|
8836
|
+
mode: props2.mode,
|
|
8837
|
+
disabled: props2.disabled,
|
|
8838
|
+
items: props2.modelValue,
|
|
8839
|
+
onStart: (event) => {
|
|
8840
|
+
emit2("start", event);
|
|
8841
|
+
},
|
|
8842
|
+
onEnd: (event) => {
|
|
8843
|
+
const newList = [...props2.modelValue];
|
|
8844
|
+
const [removed] = newList.splice(event.oldIndex, 1);
|
|
8845
|
+
newList.splice(event.newIndex, 0, removed);
|
|
8846
|
+
emit2("update:modelValue", newList);
|
|
8847
|
+
emit2("end", event);
|
|
8848
|
+
nextTick(() => {
|
|
8849
|
+
if (dragContainer.value) {
|
|
8850
|
+
initDraggableContainer(dragContainer.value);
|
|
8851
|
+
}
|
|
8852
|
+
});
|
|
8853
|
+
}
|
|
8854
|
+
});
|
|
8855
|
+
watch(() => props2.modelValue, () => {
|
|
8856
|
+
if (dragContainer.value) {
|
|
8857
|
+
initDraggableContainer(dragContainer.value);
|
|
8858
|
+
}
|
|
8859
|
+
}, { deep: true });
|
|
8860
|
+
onMounted(() => {
|
|
8861
|
+
if (dragContainer.value) {
|
|
8862
|
+
initDraggableContainer(dragContainer.value);
|
|
8863
|
+
}
|
|
8864
|
+
});
|
|
8865
|
+
return (_ctx, _cache) => {
|
|
8866
|
+
return openBlock(), createElementBlock("div", {
|
|
8867
|
+
ref_key: "dragContainer",
|
|
8868
|
+
ref: dragContainer
|
|
8869
|
+
}, [
|
|
8870
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (item, index2) => {
|
|
8871
|
+
return renderSlot(_ctx.$slots, "default", {
|
|
8872
|
+
key: index2,
|
|
8873
|
+
item,
|
|
8874
|
+
index: index2
|
|
8875
|
+
});
|
|
8876
|
+
}), 128))
|
|
8877
|
+
], 512);
|
|
8878
|
+
};
|
|
8879
|
+
}
|
|
8880
|
+
});
|
|
8881
|
+
const vDraggable = {
|
|
8882
|
+
mounted(el, binding) {
|
|
8883
|
+
const { initDraggableContainer } = useDraggable(binding.value || {});
|
|
8884
|
+
initDraggableContainer(el);
|
|
8885
|
+
},
|
|
8886
|
+
updated(el, binding) {
|
|
8887
|
+
if (binding.value !== binding.oldValue) {
|
|
8888
|
+
const { initDraggableContainer } = useDraggable(binding.value || {});
|
|
8889
|
+
initDraggableContainer(el);
|
|
8890
|
+
}
|
|
8891
|
+
}
|
|
8892
|
+
};
|
|
8291
8893
|
const sides = ["top", "right", "bottom", "left"];
|
|
8292
8894
|
const alignments = ["start", "end"];
|
|
8293
8895
|
const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -10834,7 +11436,7 @@ const Gt$1 = {
|
|
|
10834
11436
|
install: Ct$1,
|
|
10835
11437
|
options: h
|
|
10836
11438
|
};
|
|
10837
|
-
const _sfc_main$
|
|
11439
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
10838
11440
|
__name: "Dropdown",
|
|
10839
11441
|
props: /* @__PURE__ */ mergeModels({
|
|
10840
11442
|
value: {},
|
|
@@ -10912,9 +11514,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10912
11514
|
};
|
|
10913
11515
|
}
|
|
10914
11516
|
});
|
|
10915
|
-
const _hoisted_1$
|
|
11517
|
+
const _hoisted_1$K = { class: "px-1 pt-025 pb-1" };
|
|
10916
11518
|
const _hoisted_2$x = { class: "ms-1" };
|
|
10917
|
-
const _sfc_main$
|
|
11519
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10918
11520
|
__name: "FieldSetVue",
|
|
10919
11521
|
props: {
|
|
10920
11522
|
label: {},
|
|
@@ -10922,15 +11524,15 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
10922
11524
|
},
|
|
10923
11525
|
setup(__props) {
|
|
10924
11526
|
return (_ctx, _cache) => {
|
|
10925
|
-
return openBlock(), createElementBlock("fieldset", _hoisted_1$
|
|
11527
|
+
return openBlock(), createElementBlock("fieldset", _hoisted_1$K, [
|
|
10926
11528
|
createElementVNode("legend", _hoisted_2$x, toDisplayString(_ctx.legend || _ctx.label), 1),
|
|
10927
11529
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
10928
11530
|
]);
|
|
10929
11531
|
};
|
|
10930
11532
|
}
|
|
10931
11533
|
});
|
|
10932
|
-
const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10933
|
-
const _sfc_main$
|
|
11534
|
+
const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-f7e758e5"]]);
|
|
11535
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10934
11536
|
__name: "Flag",
|
|
10935
11537
|
props: {
|
|
10936
11538
|
country: {},
|
|
@@ -10960,8 +11562,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10960
11562
|
};
|
|
10961
11563
|
}
|
|
10962
11564
|
});
|
|
10963
|
-
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10964
|
-
const _sfc_main$
|
|
11565
|
+
const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-f99f1900"]]);
|
|
11566
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10965
11567
|
__name: "BagelForm",
|
|
10966
11568
|
props: {
|
|
10967
11569
|
modelValue: { default: () => ({}) },
|
|
@@ -10986,28 +11588,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10986
11588
|
const initial = JSON.stringify(initialFormData.value);
|
|
10987
11589
|
return current !== initial;
|
|
10988
11590
|
});
|
|
10989
|
-
function getComponent(field) {
|
|
10990
|
-
var _a2;
|
|
10991
|
-
const componentMap = {
|
|
10992
|
-
text: TextInput,
|
|
10993
|
-
textarea: TextInput,
|
|
10994
|
-
number: NumberInput,
|
|
10995
|
-
array: _sfc_main$P,
|
|
10996
|
-
select: SelectInput,
|
|
10997
|
-
toggle: ToggleInput,
|
|
10998
|
-
check: CheckInput,
|
|
10999
|
-
richtext: RichText,
|
|
11000
|
-
upload: UploadInput,
|
|
11001
|
-
file: FileUpload,
|
|
11002
|
-
date: _sfc_main$K,
|
|
11003
|
-
tabs: TabsNav,
|
|
11004
|
-
bglform: _sfc_main$S
|
|
11005
|
-
};
|
|
11006
|
-
if (field.$el === "textarea" && !((_a2 = field.attrs) == null ? void 0 : _a2.multiline)) {
|
|
11007
|
-
field.attrs = { ...field.attrs, multiline: true };
|
|
11008
|
-
}
|
|
11009
|
-
return componentMap[field.$el] ?? field.$el ?? "div";
|
|
11010
|
-
}
|
|
11011
11591
|
function updateFormData(fieldId, value) {
|
|
11012
11592
|
formData.value = {
|
|
11013
11593
|
...formData.value,
|
|
@@ -11019,61 +11599,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11019
11599
|
emit2("submit", formData.value);
|
|
11020
11600
|
initialFormData.value = { ...formData.value };
|
|
11021
11601
|
}
|
|
11022
|
-
function renderSchemaField(field) {
|
|
11023
|
-
var _a2;
|
|
11024
|
-
const Component = getComponent(field);
|
|
11025
|
-
if (!Component) return null;
|
|
11026
|
-
if (!shouldRenderField(field)) return null;
|
|
11027
|
-
const {
|
|
11028
|
-
$el,
|
|
11029
|
-
vIf,
|
|
11030
|
-
"v-if": vIf2,
|
|
11031
|
-
children: children2,
|
|
11032
|
-
options,
|
|
11033
|
-
attrs,
|
|
11034
|
-
class: fieldClass,
|
|
11035
|
-
id,
|
|
11036
|
-
onUpdate,
|
|
11037
|
-
// Common form field props that need special handling
|
|
11038
|
-
required: required2,
|
|
11039
|
-
label,
|
|
11040
|
-
placeholder,
|
|
11041
|
-
disabled,
|
|
11042
|
-
...fieldProps
|
|
11043
|
-
} = field;
|
|
11044
|
-
const currentValue = field.id ? formData.value[field.id] : void 0;
|
|
11045
|
-
const props22 = {
|
|
11046
|
-
...fieldProps,
|
|
11047
|
-
required: required2,
|
|
11048
|
-
label,
|
|
11049
|
-
placeholder,
|
|
11050
|
-
disabled,
|
|
11051
|
-
"modelValue": currentValue,
|
|
11052
|
-
"onUpdate:modelValue": (value) => {
|
|
11053
|
-
var _a3;
|
|
11054
|
-
if (!field.id) return;
|
|
11055
|
-
updateFormData(field.id, value);
|
|
11056
|
-
(_a3 = field.onUpdate) == null ? void 0 : _a3.call(field, value, formData.value);
|
|
11057
|
-
}
|
|
11058
|
-
};
|
|
11059
|
-
Object.keys(props22).forEach((key) => props22[key] === void 0 && delete props22[key]);
|
|
11060
|
-
if (field.options) {
|
|
11061
|
-
props22.options = typeof field.options === "function" ? field.options(formData.value[field.id], formData.value) : field.options;
|
|
11062
|
-
}
|
|
11063
|
-
if (field.attrs) {
|
|
11064
|
-
Object.entries(field.attrs).forEach(([key, value]) => {
|
|
11065
|
-
props22[key] = typeof value === "function" ? value(formData.value[field.id], formData.value) : value;
|
|
11066
|
-
});
|
|
11067
|
-
}
|
|
11068
|
-
if (field.class) {
|
|
11069
|
-
props22.class = typeof field.class === "function" ? field.class(formData.value[field.id], formData.value) : field.class;
|
|
11070
|
-
}
|
|
11071
|
-
const slots = ((_a2 = field.children) == null ? void 0 : _a2.length) ? {
|
|
11072
|
-
default: () => field.children.map((child) => typeof child === "string" ? child : renderSchemaField(child)).filter(Boolean),
|
|
11073
|
-
...field.slots
|
|
11074
|
-
} : field.slots;
|
|
11075
|
-
return h$2(Component, props22, slots);
|
|
11076
|
-
}
|
|
11077
11602
|
function shouldRenderField(field) {
|
|
11078
11603
|
const condition = field.vIf ?? field["v-if"];
|
|
11079
11604
|
if (condition === void 0) return true;
|
|
@@ -11083,6 +11608,20 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11083
11608
|
if (!form.value) return false;
|
|
11084
11609
|
return form.value.reportValidity();
|
|
11085
11610
|
}
|
|
11611
|
+
const { renderField } = useSchemaField({
|
|
11612
|
+
mode: "form",
|
|
11613
|
+
getRowData: () => formData.value,
|
|
11614
|
+
onUpdate: (field, value) => {
|
|
11615
|
+
var _a2;
|
|
11616
|
+
if (!field.id) return;
|
|
11617
|
+
updateFormData(field.id, value);
|
|
11618
|
+
(_a2 = field.onUpdate) == null ? void 0 : _a2.call(field, value, formData.value);
|
|
11619
|
+
}
|
|
11620
|
+
});
|
|
11621
|
+
function renderSchemaField(field) {
|
|
11622
|
+
if (!shouldRenderField(field)) return null;
|
|
11623
|
+
return renderField(field);
|
|
11624
|
+
}
|
|
11086
11625
|
__expose({ form: form.value, isDirty: isDirty.value, validateForm });
|
|
11087
11626
|
return (_ctx, _cache) => {
|
|
11088
11627
|
return openBlock(), createElementBlock("form", {
|
|
@@ -11104,283 +11643,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
11104
11643
|
};
|
|
11105
11644
|
}
|
|
11106
11645
|
});
|
|
11107
|
-
const
|
|
11108
|
-
function useTabs(group) {
|
|
11109
|
-
if (!state$1.has(group)) {
|
|
11110
|
-
state$1.set(group, reactive({ currentTab: void 0 }));
|
|
11111
|
-
}
|
|
11112
|
-
const currentTab = computed({
|
|
11113
|
-
get: () => state$1.get(group).currentTab,
|
|
11114
|
-
set: (val) => {
|
|
11115
|
-
state$1.get(group).currentTab = val;
|
|
11116
|
-
}
|
|
11117
|
-
});
|
|
11118
|
-
return { currentTab };
|
|
11119
|
-
}
|
|
11120
|
-
const _hoisted_1$K = ["onClick"];
|
|
11121
|
-
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
11122
|
-
__name: "TabsNav",
|
|
11123
|
-
props: {
|
|
11124
|
-
title: {},
|
|
11125
|
-
tabs: {},
|
|
11126
|
-
modelValue: {},
|
|
11127
|
-
sideTabs: { type: Boolean },
|
|
11128
|
-
group: {},
|
|
11129
|
-
flat: { type: Boolean },
|
|
11130
|
-
vertical: { type: Boolean }
|
|
11131
|
-
},
|
|
11132
|
-
emits: ["update:modelValue"],
|
|
11133
|
-
setup(__props, { emit: __emit }) {
|
|
11134
|
-
const props2 = __props;
|
|
11135
|
-
const emit2 = __emit;
|
|
11136
|
-
const { currentTab } = useTabs(props2.group);
|
|
11137
|
-
currentTab.value = props2.modelValue || typeof props2.tabs[0] === "string" ? props2.tabs[0] : props2.tabs[0].id;
|
|
11138
|
-
const tabsWrap = ref(void 0);
|
|
11139
|
-
const tabs = ref([]);
|
|
11140
|
-
function updateIndicator() {
|
|
11141
|
-
const activeTab = tabs.value.find((tab) => tab.classList.contains("active"));
|
|
11142
|
-
if (activeTab && tabsWrap.value) {
|
|
11143
|
-
const { offsetLeft, offsetWidth } = activeTab;
|
|
11144
|
-
tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
|
|
11145
|
-
if (tabsWrap.value) {
|
|
11146
|
-
tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
|
|
11147
|
-
}
|
|
11148
|
-
}
|
|
11149
|
-
}
|
|
11150
|
-
function selectTab(tab) {
|
|
11151
|
-
currentTab.value = typeof tab === "string" ? tab : tab.id;
|
|
11152
|
-
emit2("update:modelValue", currentTab.value);
|
|
11153
|
-
nextTick(() => {
|
|
11154
|
-
updateIndicator();
|
|
11155
|
-
});
|
|
11156
|
-
}
|
|
11157
|
-
function isActive(tab) {
|
|
11158
|
-
if (typeof tab === "string") return currentTab.value === tab;
|
|
11159
|
-
return currentTab.value === tab.id;
|
|
11160
|
-
}
|
|
11161
|
-
function tabLabel(tab) {
|
|
11162
|
-
if (typeof tab === "string") return tab;
|
|
11163
|
-
return tab.label;
|
|
11164
|
-
}
|
|
11165
|
-
watch(
|
|
11166
|
-
() => props2.modelValue,
|
|
11167
|
-
(value) => {
|
|
11168
|
-
if (value && !isActive(value)) currentTab.value = value;
|
|
11169
|
-
nextTick(() => {
|
|
11170
|
-
updateIndicator();
|
|
11171
|
-
});
|
|
11172
|
-
},
|
|
11173
|
-
{ immediate: true }
|
|
11174
|
-
);
|
|
11175
|
-
onMounted(() => {
|
|
11176
|
-
var _a2;
|
|
11177
|
-
tabs.value = Array.from(((_a2 = tabsWrap.value) == null ? void 0 : _a2.querySelectorAll(".bgl_tab")) || []);
|
|
11178
|
-
updateIndicator();
|
|
11179
|
-
window.addEventListener("resize", updateIndicator);
|
|
11180
|
-
});
|
|
11181
|
-
onBeforeUnmount(() => {
|
|
11182
|
-
window.removeEventListener("resize", updateIndicator);
|
|
11183
|
-
});
|
|
11184
|
-
return (_ctx, _cache) => {
|
|
11185
|
-
return openBlock(), createElementBlock("div", {
|
|
11186
|
-
ref_key: "tabsWrap",
|
|
11187
|
-
ref: tabsWrap,
|
|
11188
|
-
class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
|
|
11189
|
-
}, [
|
|
11190
|
-
renderSlot(_ctx.$slots, "tabs", normalizeProps(guardReactiveProps({ selectTab, isActive, tabLabel, tabs: tabs.value })), () => [
|
|
11191
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
|
|
11192
|
-
return openBlock(), createElementBlock("button", {
|
|
11193
|
-
key: i2,
|
|
11194
|
-
type: "button",
|
|
11195
|
-
class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
|
|
11196
|
-
onClick: ($event) => selectTab(tab)
|
|
11197
|
-
}, [
|
|
11198
|
-
typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
11199
|
-
key: 0,
|
|
11200
|
-
icon: tab.icon
|
|
11201
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
11202
|
-
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
11203
|
-
], 10, _hoisted_1$K);
|
|
11204
|
-
}), 128))
|
|
11205
|
-
], true)
|
|
11206
|
-
], 2);
|
|
11207
|
-
};
|
|
11208
|
-
}
|
|
11209
|
-
});
|
|
11210
|
-
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-e680c2a4"]]);
|
|
11211
|
-
const FORM_STATE_KEY = Symbol("bagelFormState");
|
|
11212
|
-
function safeClone(obj) {
|
|
11213
|
-
if (obj === null || typeof obj !== "object") return obj;
|
|
11214
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
11215
|
-
return JSON.parse(JSON.stringify(obj, (key, value) => {
|
|
11216
|
-
if (typeof value === "object" && value !== null) {
|
|
11217
|
-
if (seen.has(value)) {
|
|
11218
|
-
return void 0;
|
|
11219
|
-
}
|
|
11220
|
-
seen.add(value);
|
|
11221
|
-
}
|
|
11222
|
-
return value;
|
|
11223
|
-
}));
|
|
11224
|
-
}
|
|
11225
|
-
function provideBagelFormState(initialData) {
|
|
11226
|
-
const data2 = ref(initialData);
|
|
11227
|
-
const isDirty = ref(false);
|
|
11228
|
-
const getFieldData = (path) => {
|
|
11229
|
-
if (!path) return "";
|
|
11230
|
-
const keys4 = path.split(/[.[]/);
|
|
11231
|
-
let current = data2.value;
|
|
11232
|
-
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
11233
|
-
const key = keys4[i2];
|
|
11234
|
-
if (!current || typeof current !== "object" || !(key in current)) {
|
|
11235
|
-
return "";
|
|
11236
|
-
}
|
|
11237
|
-
current = current[key];
|
|
11238
|
-
}
|
|
11239
|
-
return current ?? "";
|
|
11240
|
-
};
|
|
11241
|
-
const updateField = (path, value) => {
|
|
11242
|
-
const keys4 = path.split(/[.[]/);
|
|
11243
|
-
if (typeof data2.value !== "object" || data2.value === null) {
|
|
11244
|
-
data2.value = {};
|
|
11245
|
-
}
|
|
11246
|
-
let current = data2.value;
|
|
11247
|
-
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
11248
|
-
const key = keys4[i2];
|
|
11249
|
-
if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
|
|
11250
|
-
current[key] = {};
|
|
11251
|
-
}
|
|
11252
|
-
current = current[key];
|
|
11253
|
-
}
|
|
11254
|
-
const safeValue = safeClone(value);
|
|
11255
|
-
current[keys4[keys4.length - 1]] = safeValue;
|
|
11256
|
-
isDirty.value = true;
|
|
11257
|
-
};
|
|
11258
|
-
const state2 = {
|
|
11259
|
-
data: data2,
|
|
11260
|
-
getFieldData,
|
|
11261
|
-
updateField,
|
|
11262
|
-
isDirty
|
|
11263
|
-
};
|
|
11264
|
-
provide(FORM_STATE_KEY, state2);
|
|
11265
|
-
return state2;
|
|
11266
|
-
}
|
|
11267
|
-
function useBagelFormState() {
|
|
11268
|
-
const state2 = inject(FORM_STATE_KEY);
|
|
11269
|
-
if (!state2) throw new Error("BagelFormState must be provided");
|
|
11270
|
-
return state2;
|
|
11271
|
-
}
|
|
11272
|
-
const _hoisted_1$J = { key: 1 };
|
|
11273
|
-
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11274
|
-
__name: "BglField",
|
|
11275
|
-
props: {
|
|
11276
|
-
field: {},
|
|
11277
|
-
fieldID: {},
|
|
11278
|
-
modelValue: {},
|
|
11279
|
-
parentPath: {}
|
|
11280
|
-
},
|
|
11281
|
-
emits: ["update:modelValue"],
|
|
11282
|
-
setup(__props, { emit: __emit }) {
|
|
11283
|
-
const props2 = __props;
|
|
11284
|
-
const emit2 = __emit;
|
|
11285
|
-
const formState = inject(FORM_STATE_KEY) ?? provideBagelFormState(props2.modelValue);
|
|
11286
|
-
const customAttrs = ref({});
|
|
11287
|
-
const is4 = computed(() => {
|
|
11288
|
-
if (props2.field.$el === "text") return TextInput;
|
|
11289
|
-
if (props2.field.$el === "textarea") {
|
|
11290
|
-
customAttrs.value.multiline = true;
|
|
11291
|
-
return TextInput;
|
|
11292
|
-
}
|
|
11293
|
-
if (props2.field.$el === "number") return NumberInput;
|
|
11294
|
-
if (props2.field.$el === "array") return _sfc_main$P;
|
|
11295
|
-
if (props2.field.$el === "select") return SelectInput;
|
|
11296
|
-
if (props2.field.$el === "toggle") return ToggleInput;
|
|
11297
|
-
if (props2.field.$el === "check") return CheckInput;
|
|
11298
|
-
if (props2.field.$el === "richtext") return RichText;
|
|
11299
|
-
if (props2.field.$el === "upload") return UploadInput;
|
|
11300
|
-
if (props2.field.$el === "file") return FileUpload;
|
|
11301
|
-
if (props2.field.$el === "date") return _sfc_main$K;
|
|
11302
|
-
if (props2.field.$el === "tabs") return TabsNav;
|
|
11303
|
-
if (props2.field.$el === "bglform") return _sfc_main$S;
|
|
11304
|
-
return props2.field.$el ?? "div";
|
|
11305
|
-
});
|
|
11306
|
-
const fieldData = computed({
|
|
11307
|
-
get: () => {
|
|
11308
|
-
if (!props2.fieldID) return props2.field.defaultValue ?? (props2.field.$el === "form" ? {} : "");
|
|
11309
|
-
const value = formState.getFieldData(props2.fieldID);
|
|
11310
|
-
if (props2.field.$el === "form" && !value) return {};
|
|
11311
|
-
return value ?? "";
|
|
11312
|
-
},
|
|
11313
|
-
set: (val) => {
|
|
11314
|
-
if (!props2.fieldID) return;
|
|
11315
|
-
const currentValue = formState.getFieldData(props2.fieldID);
|
|
11316
|
-
if (JSON.stringify(val) === JSON.stringify(currentValue)) return;
|
|
11317
|
-
emit2("update:modelValue", val);
|
|
11318
|
-
if (props2.field.onUpdate) {
|
|
11319
|
-
props2.field.onUpdate(val, currentValue);
|
|
11320
|
-
}
|
|
11321
|
-
formState.updateField(props2.fieldID, val);
|
|
11322
|
-
}
|
|
11323
|
-
});
|
|
11324
|
-
const vIf = computed(() => {
|
|
11325
|
-
if (props2.field["v-if"] === void 0 && props2.field.vIf === void 0) return true;
|
|
11326
|
-
if (typeof props2.field["v-if"] === "boolean" || typeof props2.field.vIf === "boolean") return props2.field["v-if"];
|
|
11327
|
-
if (typeof props2.field["v-if"] === "string" || typeof props2.field.vIf === "string") return true;
|
|
11328
|
-
if (typeof props2.field["v-if"] === "function") return props2.field["v-if"](fieldData.value, formState.data.value);
|
|
11329
|
-
if (typeof props2.field.vIf === "function") return props2.field.vIf(fieldData.value, formState.data.value);
|
|
11330
|
-
return true;
|
|
11331
|
-
});
|
|
11332
|
-
const computedOptions = computed(
|
|
11333
|
-
() => bindAttrs({ options: props2.field.options }, fieldData.value, formState.data.value).options
|
|
11334
|
-
);
|
|
11335
|
-
const computedAttrs = computed(() => {
|
|
11336
|
-
const attrs = { ...customAttrs.value, ...props2.field.attrs };
|
|
11337
|
-
return bindAttrs(attrs, fieldData.value, formState.data.value);
|
|
11338
|
-
});
|
|
11339
|
-
const computedClass = computed(
|
|
11340
|
-
() => {
|
|
11341
|
-
var _a2;
|
|
11342
|
-
return classify(fieldData.value, formState.data.value, props2.field.class, (_a2 = props2.field.attrs) == null ? void 0 : _a2.class);
|
|
11343
|
-
}
|
|
11344
|
-
);
|
|
11345
|
-
return (_ctx, _cache) => {
|
|
11346
|
-
const _component_BglField = resolveComponent("BglField", true);
|
|
11347
|
-
return vIf.value ? (openBlock(), createBlock(resolveDynamicComponent(is4.value), mergeProps({ key: 0 }, computedAttrs.value, {
|
|
11348
|
-
modelValue: fieldData.value,
|
|
11349
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fieldData.value = $event),
|
|
11350
|
-
fieldID: props2.fieldID,
|
|
11351
|
-
required: _ctx.field.required,
|
|
11352
|
-
class: computedClass.value,
|
|
11353
|
-
label: _ctx.field.label,
|
|
11354
|
-
placeholder: _ctx.field.placeholder || _ctx.field.label,
|
|
11355
|
-
defaultValue: _ctx.field.defaultValue,
|
|
11356
|
-
disabled: _ctx.field.disabled,
|
|
11357
|
-
options: computedOptions.value,
|
|
11358
|
-
helptext: _ctx.field.helptext
|
|
11359
|
-
}), {
|
|
11360
|
-
default: withCtx(() => [
|
|
11361
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.field.children, (child, ii) => {
|
|
11362
|
-
return openBlock(), createElementBlock(Fragment, { key: ii }, [
|
|
11363
|
-
typeof child !== "string" ? (openBlock(), createBlock(_component_BglField, {
|
|
11364
|
-
key: 0,
|
|
11365
|
-
fieldID: [props2.fieldID, child.id].filter(Boolean).join("."),
|
|
11366
|
-
field: child,
|
|
11367
|
-
"parent-path": props2.fieldID
|
|
11368
|
-
}, null, 8, ["fieldID", "field", "parent-path"])) : (openBlock(), createElementBlock("span", _hoisted_1$J, toDisplayString(child), 1))
|
|
11369
|
-
], 64);
|
|
11370
|
-
}), 128))
|
|
11371
|
-
]),
|
|
11372
|
-
_: 1
|
|
11373
|
-
}, 16, ["modelValue", "fieldID", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext"])) : createCommentVNode("", true);
|
|
11374
|
-
};
|
|
11375
|
-
}
|
|
11376
|
-
});
|
|
11377
|
-
const _hoisted_1$I = { class: "label mb-05" };
|
|
11646
|
+
const _hoisted_1$J = { class: "label mb-05" };
|
|
11378
11647
|
const _hoisted_2$w = {
|
|
11379
11648
|
key: 0,
|
|
11380
11649
|
class: "ps-025 border-start"
|
|
11381
11650
|
};
|
|
11382
11651
|
const _hoisted_3$p = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
|
|
11383
|
-
const _sfc_main$
|
|
11652
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
11384
11653
|
__name: "FieldArray",
|
|
11385
11654
|
props: {
|
|
11386
11655
|
el: { default: "div" },
|
|
@@ -11433,11 +11702,22 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11433
11702
|
$el: props2.el
|
|
11434
11703
|
})
|
|
11435
11704
|
);
|
|
11705
|
+
const { renderField } = useSchemaField({
|
|
11706
|
+
mode: "form",
|
|
11707
|
+
getRowData: () => data2.value,
|
|
11708
|
+
onUpdate: (field, value) => {
|
|
11709
|
+
if (!field.id) return;
|
|
11710
|
+
const index2 = Number.parseInt(field.id);
|
|
11711
|
+
if (Number.isNaN(index2)) return;
|
|
11712
|
+
data2.value[index2] = value;
|
|
11713
|
+
emitValue();
|
|
11714
|
+
}
|
|
11715
|
+
});
|
|
11436
11716
|
return (_ctx, _cache) => {
|
|
11437
11717
|
return openBlock(), createElementBlock("div", {
|
|
11438
11718
|
class: normalizeClass(props2.class)
|
|
11439
11719
|
}, [
|
|
11440
|
-
createElementVNode("p", _hoisted_1$
|
|
11720
|
+
createElementVNode("p", _hoisted_1$J, toDisplayString(_ctx.label), 1),
|
|
11441
11721
|
_ctx.schema ? (openBlock(), createElementBlock("div", _hoisted_2$w, [
|
|
11442
11722
|
(openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
|
|
11443
11723
|
return openBlock(), createElementBlock("div", {
|
|
@@ -11446,7 +11726,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11446
11726
|
thin: "",
|
|
11447
11727
|
class: "mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden"
|
|
11448
11728
|
}, [
|
|
11449
|
-
createVNode(unref(_sfc_main$
|
|
11729
|
+
createVNode(unref(_sfc_main$R), {
|
|
11450
11730
|
modelValue: data2.value[i2],
|
|
11451
11731
|
"onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
|
|
11452
11732
|
schema: _ctx.schema
|
|
@@ -11477,19 +11757,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
11477
11757
|
_: 1
|
|
11478
11758
|
})) : createCommentVNode("", true)
|
|
11479
11759
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(data2.value, (_2, i2) => {
|
|
11480
|
-
return openBlock(), createBlock(unref(
|
|
11760
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)({ ...computedField.value, id: String(i2) })), {
|
|
11481
11761
|
key: i2,
|
|
11482
|
-
modelValue:
|
|
11483
|
-
|
|
11484
|
-
field: computedField.value
|
|
11485
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "field"]);
|
|
11762
|
+
"onUpdate:modelValue": emitValue
|
|
11763
|
+
});
|
|
11486
11764
|
}), 128))
|
|
11487
11765
|
], 2);
|
|
11488
11766
|
};
|
|
11489
11767
|
}
|
|
11490
11768
|
});
|
|
11491
|
-
const _hoisted_1$
|
|
11492
|
-
const _sfc_main$
|
|
11769
|
+
const _hoisted_1$I = { class: "primary-checkbox" };
|
|
11770
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
11493
11771
|
__name: "Checkbox",
|
|
11494
11772
|
props: {
|
|
11495
11773
|
"modelValue": { type: Boolean, ...{ default: false } },
|
|
@@ -11499,7 +11777,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11499
11777
|
setup(__props) {
|
|
11500
11778
|
const val = useModel(__props, "modelValue");
|
|
11501
11779
|
return (_ctx, _cache) => {
|
|
11502
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
11780
|
+
return openBlock(), createElementBlock("label", _hoisted_1$I, [
|
|
11503
11781
|
renderSlot(_ctx.$slots, "label", {}, void 0, true),
|
|
11504
11782
|
withDirectives(createElementVNode("input", {
|
|
11505
11783
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
|
|
@@ -11511,11 +11789,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
11511
11789
|
};
|
|
11512
11790
|
}
|
|
11513
11791
|
});
|
|
11514
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11515
|
-
const _hoisted_1$
|
|
11792
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-73f1d9ad"]]);
|
|
11793
|
+
const _hoisted_1$H = ["title"];
|
|
11516
11794
|
const _hoisted_2$v = ["id", "value", "required"];
|
|
11517
11795
|
const _hoisted_3$o = ["for"];
|
|
11518
|
-
const _sfc_main$
|
|
11796
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
11519
11797
|
__name: "CheckInput",
|
|
11520
11798
|
props: /* @__PURE__ */ mergeModels({
|
|
11521
11799
|
label: {},
|
|
@@ -11557,12 +11835,12 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
11557
11835
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
11558
11836
|
], true)
|
|
11559
11837
|
], 8, _hoisted_3$o)
|
|
11560
|
-
], 10, _hoisted_1$
|
|
11838
|
+
], 10, _hoisted_1$H);
|
|
11561
11839
|
};
|
|
11562
11840
|
}
|
|
11563
11841
|
});
|
|
11564
|
-
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11565
|
-
const _hoisted_1$
|
|
11842
|
+
const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-03ed2982"]]);
|
|
11843
|
+
const _hoisted_1$G = { class: "mb-05" };
|
|
11566
11844
|
const _hoisted_2$u = {
|
|
11567
11845
|
key: 0,
|
|
11568
11846
|
class: "label txt-start"
|
|
@@ -11574,7 +11852,7 @@ const _hoisted_3$n = {
|
|
|
11574
11852
|
const _hoisted_4$f = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
|
|
11575
11853
|
const _hoisted_5$e = ["innerHTML"];
|
|
11576
11854
|
const _hoisted_6$b = ["onKeydown"];
|
|
11577
|
-
const _sfc_main$
|
|
11855
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
11578
11856
|
__name: "Index",
|
|
11579
11857
|
props: {
|
|
11580
11858
|
language: {},
|
|
@@ -11656,7 +11934,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
11656
11934
|
}
|
|
11657
11935
|
}, { immediate: true });
|
|
11658
11936
|
return (_ctx, _cache) => {
|
|
11659
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11937
|
+
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
11660
11938
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$u, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
11661
11939
|
unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
11662
11940
|
createElementVNode("div", {
|
|
@@ -11692,10 +11970,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
11692
11970
|
};
|
|
11693
11971
|
}
|
|
11694
11972
|
});
|
|
11695
|
-
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11696
|
-
const _hoisted_1$
|
|
11973
|
+
const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1fbc9b61"]]);
|
|
11974
|
+
const _hoisted_1$F = ["title"];
|
|
11697
11975
|
const _hoisted_2$t = ["id", "placeholder", "required"];
|
|
11698
|
-
const _sfc_main$
|
|
11976
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
11699
11977
|
__name: "ColorPicker",
|
|
11700
11978
|
props: {
|
|
11701
11979
|
label: {},
|
|
@@ -11737,7 +12015,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
11737
12015
|
[vModelText, inputVal.value]
|
|
11738
12016
|
])
|
|
11739
12017
|
])
|
|
11740
|
-
], 10, _hoisted_1$
|
|
12018
|
+
], 10, _hoisted_1$F)) : createCommentVNode("", true);
|
|
11741
12019
|
};
|
|
11742
12020
|
}
|
|
11743
12021
|
});
|
|
@@ -13483,7 +13761,7 @@ function transpose(fromDate, constructor) {
|
|
|
13483
13761
|
const TIMEZONE_UNIT_PRIORITY = 10;
|
|
13484
13762
|
class Setter {
|
|
13485
13763
|
constructor() {
|
|
13486
|
-
|
|
13764
|
+
__publicField(this, "subPriority", 0);
|
|
13487
13765
|
}
|
|
13488
13766
|
validate(_utcDate, _options) {
|
|
13489
13767
|
return true;
|
|
@@ -13510,8 +13788,8 @@ class ValueSetter extends Setter {
|
|
|
13510
13788
|
class DateToSystemTimezoneSetter extends Setter {
|
|
13511
13789
|
constructor() {
|
|
13512
13790
|
super(...arguments);
|
|
13513
|
-
|
|
13514
|
-
|
|
13791
|
+
__publicField(this, "priority", TIMEZONE_UNIT_PRIORITY);
|
|
13792
|
+
__publicField(this, "subPriority", -1);
|
|
13515
13793
|
}
|
|
13516
13794
|
set(date2, flags) {
|
|
13517
13795
|
if (flags.timestampIsSet) return date2;
|
|
@@ -13542,8 +13820,8 @@ class Parser {
|
|
|
13542
13820
|
class EraParser extends Parser {
|
|
13543
13821
|
constructor() {
|
|
13544
13822
|
super(...arguments);
|
|
13545
|
-
|
|
13546
|
-
|
|
13823
|
+
__publicField(this, "priority", 140);
|
|
13824
|
+
__publicField(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
13547
13825
|
}
|
|
13548
13826
|
parse(dateString, token, match2) {
|
|
13549
13827
|
switch (token) {
|
|
@@ -13721,8 +13999,8 @@ function isLeapYearIndex(year) {
|
|
|
13721
13999
|
class YearParser extends Parser {
|
|
13722
14000
|
constructor() {
|
|
13723
14001
|
super(...arguments);
|
|
13724
|
-
|
|
13725
|
-
|
|
14002
|
+
__publicField(this, "priority", 130);
|
|
14003
|
+
__publicField(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
13726
14004
|
}
|
|
13727
14005
|
parse(dateString, token, match2) {
|
|
13728
14006
|
const valueCallback = (year) => ({
|
|
@@ -13766,8 +14044,8 @@ class YearParser extends Parser {
|
|
|
13766
14044
|
class LocalWeekYearParser extends Parser {
|
|
13767
14045
|
constructor() {
|
|
13768
14046
|
super(...arguments);
|
|
13769
|
-
|
|
13770
|
-
|
|
14047
|
+
__publicField(this, "priority", 130);
|
|
14048
|
+
__publicField(this, "incompatibleTokens", [
|
|
13771
14049
|
"y",
|
|
13772
14050
|
"R",
|
|
13773
14051
|
"u",
|
|
@@ -13829,8 +14107,8 @@ class LocalWeekYearParser extends Parser {
|
|
|
13829
14107
|
class ISOWeekYearParser extends Parser {
|
|
13830
14108
|
constructor() {
|
|
13831
14109
|
super(...arguments);
|
|
13832
|
-
|
|
13833
|
-
|
|
14110
|
+
__publicField(this, "priority", 130);
|
|
14111
|
+
__publicField(this, "incompatibleTokens", [
|
|
13834
14112
|
"G",
|
|
13835
14113
|
"y",
|
|
13836
14114
|
"Y",
|
|
@@ -13864,8 +14142,8 @@ class ISOWeekYearParser extends Parser {
|
|
|
13864
14142
|
class ExtendedYearParser extends Parser {
|
|
13865
14143
|
constructor() {
|
|
13866
14144
|
super(...arguments);
|
|
13867
|
-
|
|
13868
|
-
|
|
14145
|
+
__publicField(this, "priority", 130);
|
|
14146
|
+
__publicField(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
13869
14147
|
}
|
|
13870
14148
|
parse(dateString, token) {
|
|
13871
14149
|
if (token === "u") {
|
|
@@ -13882,8 +14160,8 @@ class ExtendedYearParser extends Parser {
|
|
|
13882
14160
|
class QuarterParser extends Parser {
|
|
13883
14161
|
constructor() {
|
|
13884
14162
|
super(...arguments);
|
|
13885
|
-
|
|
13886
|
-
|
|
14163
|
+
__publicField(this, "priority", 120);
|
|
14164
|
+
__publicField(this, "incompatibleTokens", [
|
|
13887
14165
|
"Y",
|
|
13888
14166
|
"R",
|
|
13889
14167
|
"q",
|
|
@@ -13951,8 +14229,8 @@ class QuarterParser extends Parser {
|
|
|
13951
14229
|
class StandAloneQuarterParser extends Parser {
|
|
13952
14230
|
constructor() {
|
|
13953
14231
|
super(...arguments);
|
|
13954
|
-
|
|
13955
|
-
|
|
14232
|
+
__publicField(this, "priority", 120);
|
|
14233
|
+
__publicField(this, "incompatibleTokens", [
|
|
13956
14234
|
"Y",
|
|
13957
14235
|
"R",
|
|
13958
14236
|
"Q",
|
|
@@ -14020,7 +14298,7 @@ class StandAloneQuarterParser extends Parser {
|
|
|
14020
14298
|
class MonthParser extends Parser {
|
|
14021
14299
|
constructor() {
|
|
14022
14300
|
super(...arguments);
|
|
14023
|
-
|
|
14301
|
+
__publicField(this, "incompatibleTokens", [
|
|
14024
14302
|
"Y",
|
|
14025
14303
|
"R",
|
|
14026
14304
|
"q",
|
|
@@ -14035,7 +14313,7 @@ class MonthParser extends Parser {
|
|
|
14035
14313
|
"t",
|
|
14036
14314
|
"T"
|
|
14037
14315
|
]);
|
|
14038
|
-
|
|
14316
|
+
__publicField(this, "priority", 110);
|
|
14039
14317
|
}
|
|
14040
14318
|
parse(dateString, token, match2) {
|
|
14041
14319
|
const valueCallback = (value) => value - 1;
|
|
@@ -14090,8 +14368,8 @@ class MonthParser extends Parser {
|
|
|
14090
14368
|
class StandAloneMonthParser extends Parser {
|
|
14091
14369
|
constructor() {
|
|
14092
14370
|
super(...arguments);
|
|
14093
|
-
|
|
14094
|
-
|
|
14371
|
+
__publicField(this, "priority", 110);
|
|
14372
|
+
__publicField(this, "incompatibleTokens", [
|
|
14095
14373
|
"Y",
|
|
14096
14374
|
"R",
|
|
14097
14375
|
"q",
|
|
@@ -14166,8 +14444,8 @@ function setWeek(date2, week, options) {
|
|
|
14166
14444
|
class LocalWeekParser extends Parser {
|
|
14167
14445
|
constructor() {
|
|
14168
14446
|
super(...arguments);
|
|
14169
|
-
|
|
14170
|
-
|
|
14447
|
+
__publicField(this, "priority", 100);
|
|
14448
|
+
__publicField(this, "incompatibleTokens", [
|
|
14171
14449
|
"y",
|
|
14172
14450
|
"R",
|
|
14173
14451
|
"u",
|
|
@@ -14209,8 +14487,8 @@ function setISOWeek(date2, week) {
|
|
|
14209
14487
|
class ISOWeekParser extends Parser {
|
|
14210
14488
|
constructor() {
|
|
14211
14489
|
super(...arguments);
|
|
14212
|
-
|
|
14213
|
-
|
|
14490
|
+
__publicField(this, "priority", 100);
|
|
14491
|
+
__publicField(this, "incompatibleTokens", [
|
|
14214
14492
|
"y",
|
|
14215
14493
|
"Y",
|
|
14216
14494
|
"u",
|
|
@@ -14262,9 +14540,9 @@ const DAYS_IN_MONTH_LEAP_YEAR = [
|
|
|
14262
14540
|
class DateParser extends Parser {
|
|
14263
14541
|
constructor() {
|
|
14264
14542
|
super(...arguments);
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
|
|
14543
|
+
__publicField(this, "priority", 90);
|
|
14544
|
+
__publicField(this, "subPriority", 1);
|
|
14545
|
+
__publicField(this, "incompatibleTokens", [
|
|
14268
14546
|
"Y",
|
|
14269
14547
|
"R",
|
|
14270
14548
|
"q",
|
|
@@ -14308,9 +14586,9 @@ class DateParser extends Parser {
|
|
|
14308
14586
|
class DayOfYearParser extends Parser {
|
|
14309
14587
|
constructor() {
|
|
14310
14588
|
super(...arguments);
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14589
|
+
__publicField(this, "priority", 90);
|
|
14590
|
+
__publicField(this, "subpriority", 1);
|
|
14591
|
+
__publicField(this, "incompatibleTokens", [
|
|
14314
14592
|
"Y",
|
|
14315
14593
|
"R",
|
|
14316
14594
|
"q",
|
|
@@ -14369,8 +14647,8 @@ function setDay(date2, day, options) {
|
|
|
14369
14647
|
class DayParser extends Parser {
|
|
14370
14648
|
constructor() {
|
|
14371
14649
|
super(...arguments);
|
|
14372
|
-
|
|
14373
|
-
|
|
14650
|
+
__publicField(this, "priority", 90);
|
|
14651
|
+
__publicField(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
14374
14652
|
}
|
|
14375
14653
|
parse(dateString, token, match2) {
|
|
14376
14654
|
switch (token) {
|
|
@@ -14412,8 +14690,8 @@ class DayParser extends Parser {
|
|
|
14412
14690
|
class LocalDayParser extends Parser {
|
|
14413
14691
|
constructor() {
|
|
14414
14692
|
super(...arguments);
|
|
14415
|
-
|
|
14416
|
-
|
|
14693
|
+
__publicField(this, "priority", 90);
|
|
14694
|
+
__publicField(this, "incompatibleTokens", [
|
|
14417
14695
|
"y",
|
|
14418
14696
|
"R",
|
|
14419
14697
|
"u",
|
|
@@ -14485,8 +14763,8 @@ class LocalDayParser extends Parser {
|
|
|
14485
14763
|
class StandAloneLocalDayParser extends Parser {
|
|
14486
14764
|
constructor() {
|
|
14487
14765
|
super(...arguments);
|
|
14488
|
-
|
|
14489
|
-
|
|
14766
|
+
__publicField(this, "priority", 90);
|
|
14767
|
+
__publicField(this, "incompatibleTokens", [
|
|
14490
14768
|
"y",
|
|
14491
14769
|
"R",
|
|
14492
14770
|
"u",
|
|
@@ -14564,8 +14842,8 @@ function setISODay(date2, day) {
|
|
|
14564
14842
|
class ISODayParser extends Parser {
|
|
14565
14843
|
constructor() {
|
|
14566
14844
|
super(...arguments);
|
|
14567
|
-
|
|
14568
|
-
|
|
14845
|
+
__publicField(this, "priority", 90);
|
|
14846
|
+
__publicField(this, "incompatibleTokens", [
|
|
14569
14847
|
"y",
|
|
14570
14848
|
"Y",
|
|
14571
14849
|
"u",
|
|
@@ -14667,8 +14945,8 @@ class ISODayParser extends Parser {
|
|
|
14667
14945
|
class AMPMParser extends Parser {
|
|
14668
14946
|
constructor() {
|
|
14669
14947
|
super(...arguments);
|
|
14670
|
-
|
|
14671
|
-
|
|
14948
|
+
__publicField(this, "priority", 80);
|
|
14949
|
+
__publicField(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
14672
14950
|
}
|
|
14673
14951
|
parse(dateString, token, match2) {
|
|
14674
14952
|
switch (token) {
|
|
@@ -14709,8 +14987,8 @@ class AMPMParser extends Parser {
|
|
|
14709
14987
|
class AMPMMidnightParser extends Parser {
|
|
14710
14988
|
constructor() {
|
|
14711
14989
|
super(...arguments);
|
|
14712
|
-
|
|
14713
|
-
|
|
14990
|
+
__publicField(this, "priority", 80);
|
|
14991
|
+
__publicField(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
14714
14992
|
}
|
|
14715
14993
|
parse(dateString, token, match2) {
|
|
14716
14994
|
switch (token) {
|
|
@@ -14751,8 +15029,8 @@ class AMPMMidnightParser extends Parser {
|
|
|
14751
15029
|
class DayPeriodParser extends Parser {
|
|
14752
15030
|
constructor() {
|
|
14753
15031
|
super(...arguments);
|
|
14754
|
-
|
|
14755
|
-
|
|
15032
|
+
__publicField(this, "priority", 80);
|
|
15033
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
14756
15034
|
}
|
|
14757
15035
|
parse(dateString, token, match2) {
|
|
14758
15036
|
switch (token) {
|
|
@@ -14793,8 +15071,8 @@ class DayPeriodParser extends Parser {
|
|
|
14793
15071
|
class Hour1to12Parser extends Parser {
|
|
14794
15072
|
constructor() {
|
|
14795
15073
|
super(...arguments);
|
|
14796
|
-
|
|
14797
|
-
|
|
15074
|
+
__publicField(this, "priority", 70);
|
|
15075
|
+
__publicField(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
14798
15076
|
}
|
|
14799
15077
|
parse(dateString, token, match2) {
|
|
14800
15078
|
switch (token) {
|
|
@@ -14824,8 +15102,8 @@ class Hour1to12Parser extends Parser {
|
|
|
14824
15102
|
class Hour0to23Parser extends Parser {
|
|
14825
15103
|
constructor() {
|
|
14826
15104
|
super(...arguments);
|
|
14827
|
-
|
|
14828
|
-
|
|
15105
|
+
__publicField(this, "priority", 70);
|
|
15106
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
14829
15107
|
}
|
|
14830
15108
|
parse(dateString, token, match2) {
|
|
14831
15109
|
switch (token) {
|
|
@@ -14848,8 +15126,8 @@ class Hour0to23Parser extends Parser {
|
|
|
14848
15126
|
class Hour0To11Parser extends Parser {
|
|
14849
15127
|
constructor() {
|
|
14850
15128
|
super(...arguments);
|
|
14851
|
-
|
|
14852
|
-
|
|
15129
|
+
__publicField(this, "priority", 70);
|
|
15130
|
+
__publicField(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
14853
15131
|
}
|
|
14854
15132
|
parse(dateString, token, match2) {
|
|
14855
15133
|
switch (token) {
|
|
@@ -14877,8 +15155,8 @@ class Hour0To11Parser extends Parser {
|
|
|
14877
15155
|
class Hour1To24Parser extends Parser {
|
|
14878
15156
|
constructor() {
|
|
14879
15157
|
super(...arguments);
|
|
14880
|
-
|
|
14881
|
-
|
|
15158
|
+
__publicField(this, "priority", 70);
|
|
15159
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
14882
15160
|
}
|
|
14883
15161
|
parse(dateString, token, match2) {
|
|
14884
15162
|
switch (token) {
|
|
@@ -14902,8 +15180,8 @@ class Hour1To24Parser extends Parser {
|
|
|
14902
15180
|
class MinuteParser extends Parser {
|
|
14903
15181
|
constructor() {
|
|
14904
15182
|
super(...arguments);
|
|
14905
|
-
|
|
14906
|
-
|
|
15183
|
+
__publicField(this, "priority", 60);
|
|
15184
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
14907
15185
|
}
|
|
14908
15186
|
parse(dateString, token, match2) {
|
|
14909
15187
|
switch (token) {
|
|
@@ -14926,8 +15204,8 @@ class MinuteParser extends Parser {
|
|
|
14926
15204
|
class SecondParser extends Parser {
|
|
14927
15205
|
constructor() {
|
|
14928
15206
|
super(...arguments);
|
|
14929
|
-
|
|
14930
|
-
|
|
15207
|
+
__publicField(this, "priority", 50);
|
|
15208
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
14931
15209
|
}
|
|
14932
15210
|
parse(dateString, token, match2) {
|
|
14933
15211
|
switch (token) {
|
|
@@ -14950,8 +15228,8 @@ class SecondParser extends Parser {
|
|
|
14950
15228
|
class FractionOfSecondParser extends Parser {
|
|
14951
15229
|
constructor() {
|
|
14952
15230
|
super(...arguments);
|
|
14953
|
-
|
|
14954
|
-
|
|
15231
|
+
__publicField(this, "priority", 30);
|
|
15232
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
14955
15233
|
}
|
|
14956
15234
|
parse(dateString, token) {
|
|
14957
15235
|
const valueCallback = (value) => Math.trunc(value * Math.pow(10, -token.length + 3));
|
|
@@ -14965,8 +15243,8 @@ class FractionOfSecondParser extends Parser {
|
|
|
14965
15243
|
class ISOTimezoneWithZParser extends Parser {
|
|
14966
15244
|
constructor() {
|
|
14967
15245
|
super(...arguments);
|
|
14968
|
-
|
|
14969
|
-
|
|
15246
|
+
__publicField(this, "priority", 10);
|
|
15247
|
+
__publicField(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
14970
15248
|
}
|
|
14971
15249
|
parse(dateString, token) {
|
|
14972
15250
|
switch (token) {
|
|
@@ -15003,8 +15281,8 @@ class ISOTimezoneWithZParser extends Parser {
|
|
|
15003
15281
|
class ISOTimezoneParser extends Parser {
|
|
15004
15282
|
constructor() {
|
|
15005
15283
|
super(...arguments);
|
|
15006
|
-
|
|
15007
|
-
|
|
15284
|
+
__publicField(this, "priority", 10);
|
|
15285
|
+
__publicField(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
15008
15286
|
}
|
|
15009
15287
|
parse(dateString, token) {
|
|
15010
15288
|
switch (token) {
|
|
@@ -15041,8 +15319,8 @@ class ISOTimezoneParser extends Parser {
|
|
|
15041
15319
|
class TimestampSecondsParser extends Parser {
|
|
15042
15320
|
constructor() {
|
|
15043
15321
|
super(...arguments);
|
|
15044
|
-
|
|
15045
|
-
|
|
15322
|
+
__publicField(this, "priority", 40);
|
|
15323
|
+
__publicField(this, "incompatibleTokens", "*");
|
|
15046
15324
|
}
|
|
15047
15325
|
parse(dateString) {
|
|
15048
15326
|
return parseAnyDigitsSigned(dateString);
|
|
@@ -15054,8 +15332,8 @@ class TimestampSecondsParser extends Parser {
|
|
|
15054
15332
|
class TimestampMillisecondsParser extends Parser {
|
|
15055
15333
|
constructor() {
|
|
15056
15334
|
super(...arguments);
|
|
15057
|
-
|
|
15058
|
-
|
|
15335
|
+
__publicField(this, "priority", 20);
|
|
15336
|
+
__publicField(this, "incompatibleTokens", "*");
|
|
15059
15337
|
}
|
|
15060
15338
|
parse(dateString) {
|
|
15061
15339
|
return parseAnyDigitsSigned(dateString);
|
|
@@ -20295,9 +20573,9 @@ const eo = ({
|
|
|
20295
20573
|
Object.entries(go).forEach(([e, t]) => {
|
|
20296
20574
|
e !== "default" && (Hn[e] = t);
|
|
20297
20575
|
});
|
|
20298
|
-
const _hoisted_1$
|
|
20576
|
+
const _hoisted_1$E = ["title"];
|
|
20299
20577
|
const _hoisted_2$s = { key: 0 };
|
|
20300
|
-
const _sfc_main$
|
|
20578
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
20301
20579
|
__name: "DateInput",
|
|
20302
20580
|
props: {
|
|
20303
20581
|
required: { type: Boolean },
|
|
@@ -20355,11 +20633,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20355
20633
|
"minutes-grid-increment": _ctx.minutesGridIncrement,
|
|
20356
20634
|
"start-time": { hours: 8, minutes: 0 }
|
|
20357
20635
|
}), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
|
|
20358
|
-
], 10, _hoisted_1$
|
|
20636
|
+
], 10, _hoisted_1$E);
|
|
20359
20637
|
};
|
|
20360
20638
|
}
|
|
20361
20639
|
});
|
|
20362
|
-
const _hoisted_1$
|
|
20640
|
+
const _hoisted_1$D = ["title"];
|
|
20363
20641
|
const _hoisted_2$r = { key: 0 };
|
|
20364
20642
|
const _hoisted_3$m = {
|
|
20365
20643
|
key: 0,
|
|
@@ -20393,7 +20671,7 @@ const _hoisted_17$2 = {
|
|
|
20393
20671
|
};
|
|
20394
20672
|
const _hoisted_18 = { class: "flex gap-025" };
|
|
20395
20673
|
const _hoisted_19 = { class: "txt-center opacity-6 txt14" };
|
|
20396
|
-
const _sfc_main$
|
|
20674
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
20397
20675
|
__name: "DatePick",
|
|
20398
20676
|
props: {
|
|
20399
20677
|
required: { type: Boolean },
|
|
@@ -20730,12 +21008,12 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20730
21008
|
]),
|
|
20731
21009
|
_: 1
|
|
20732
21010
|
}, 8, ["shown"])
|
|
20733
|
-
], 10, _hoisted_1$
|
|
21011
|
+
], 10, _hoisted_1$D);
|
|
20734
21012
|
};
|
|
20735
21013
|
}
|
|
20736
21014
|
});
|
|
20737
|
-
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20738
|
-
const _hoisted_1$
|
|
21015
|
+
const DatePick = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-8de3f3c6"]]);
|
|
21016
|
+
const _hoisted_1$C = { class: "datetime-wrap" };
|
|
20739
21017
|
const _hoisted_2$q = { class: "date-wrap" };
|
|
20740
21018
|
const _hoisted_3$l = {
|
|
20741
21019
|
key: 0,
|
|
@@ -20743,7 +21021,7 @@ const _hoisted_3$l = {
|
|
|
20743
21021
|
};
|
|
20744
21022
|
const _hoisted_4$d = ["id", "name", "value"];
|
|
20745
21023
|
const _hoisted_5$c = ["for"];
|
|
20746
|
-
const _sfc_main$
|
|
21024
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
20747
21025
|
__name: "DatePicker",
|
|
20748
21026
|
props: {
|
|
20749
21027
|
label: {},
|
|
@@ -20771,7 +21049,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20771
21049
|
return `${hour}:${minute}`;
|
|
20772
21050
|
});
|
|
20773
21051
|
return (_ctx, _cache) => {
|
|
20774
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21052
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
20775
21053
|
createElementVNode("div", _hoisted_2$q, [
|
|
20776
21054
|
createVNode(unref(Hn), mergeProps({
|
|
20777
21055
|
modelValue: selectedDate.value,
|
|
@@ -20812,7 +21090,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20812
21090
|
};
|
|
20813
21091
|
}
|
|
20814
21092
|
});
|
|
20815
|
-
const _hoisted_1$
|
|
21093
|
+
const _hoisted_1$B = { class: "bagel-input" };
|
|
20816
21094
|
const _hoisted_2$p = {
|
|
20817
21095
|
key: 0,
|
|
20818
21096
|
placeholder: "required",
|
|
@@ -20853,7 +21131,7 @@ const _hoisted_15$1 = {
|
|
|
20853
21131
|
};
|
|
20854
21132
|
const _hoisted_16$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
20855
21133
|
const _hoisted_17$1 = { class: "pretty balance" };
|
|
20856
|
-
const _sfc_main$
|
|
21134
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
20857
21135
|
__name: "FileUpload",
|
|
20858
21136
|
props: /* @__PURE__ */ mergeModels({
|
|
20859
21137
|
label: {},
|
|
@@ -21028,7 +21306,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21028
21306
|
return (_ctx, _cache) => {
|
|
21029
21307
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
21030
21308
|
const _directive_lightbox = resolveDirective("lightbox");
|
|
21031
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21309
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
21032
21310
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
21033
21311
|
_ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$p)) : createCommentVNode("", true),
|
|
21034
21312
|
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$_), {
|
|
@@ -21087,7 +21365,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21087
21365
|
[_directive_lightbox, { src: file.url, download: true }]
|
|
21088
21366
|
]),
|
|
21089
21367
|
createElementVNode("div", _hoisted_5$b, [
|
|
21090
|
-
createVNode(unref(_sfc_main$
|
|
21368
|
+
createVNode(unref(_sfc_main$q), {
|
|
21091
21369
|
icon: "draft",
|
|
21092
21370
|
size: 1.5
|
|
21093
21371
|
}),
|
|
@@ -21138,7 +21416,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21138
21416
|
class: "multi-preview",
|
|
21139
21417
|
src: file.url,
|
|
21140
21418
|
alt: ""
|
|
21141
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
21419
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
21142
21420
|
key: 1,
|
|
21143
21421
|
icon: "draft",
|
|
21144
21422
|
class: "multi-preview"
|
|
@@ -21168,7 +21446,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21168
21446
|
src: fileToUrl(fileQ.file),
|
|
21169
21447
|
alt: ""
|
|
21170
21448
|
}, null, 8, ["width", "src"])) : createCommentVNode("", true)
|
|
21171
|
-
], 64)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
21449
|
+
], 64)) : (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
21172
21450
|
key: 1,
|
|
21173
21451
|
icon: "draft",
|
|
21174
21452
|
class: "multi-preview"
|
|
@@ -21179,7 +21457,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21179
21457
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
21180
21458
|
}, [
|
|
21181
21459
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
21182
|
-
createVNode(unref(_sfc_main$
|
|
21460
|
+
createVNode(unref(_sfc_main$q), {
|
|
21183
21461
|
class: "success",
|
|
21184
21462
|
icon: "check"
|
|
21185
21463
|
})
|
|
@@ -21231,7 +21509,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21231
21509
|
}, null, 8, ["src"]), [
|
|
21232
21510
|
[_directive_lightbox, { src: file.url, download: true }]
|
|
21233
21511
|
])
|
|
21234
|
-
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
21512
|
+
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$q), {
|
|
21235
21513
|
key: 1,
|
|
21236
21514
|
size: 4,
|
|
21237
21515
|
weight: "2",
|
|
@@ -21252,7 +21530,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21252
21530
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
21253
21531
|
}, [
|
|
21254
21532
|
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
21255
|
-
createVNode(unref(_sfc_main$
|
|
21533
|
+
createVNode(unref(_sfc_main$q), {
|
|
21256
21534
|
class: "success",
|
|
21257
21535
|
icon: "check"
|
|
21258
21536
|
})
|
|
@@ -21276,7 +21554,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21276
21554
|
browse
|
|
21277
21555
|
}, () => [
|
|
21278
21556
|
createElementVNode("p", _hoisted_16$1, [
|
|
21279
|
-
createVNode(unref(_sfc_main$
|
|
21557
|
+
createVNode(unref(_sfc_main$q), { icon: "upload_2" }),
|
|
21280
21558
|
createElementVNode("span", _hoisted_17$1, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
|
|
21281
21559
|
])
|
|
21282
21560
|
], true) : createCommentVNode("", true)
|
|
@@ -21285,11 +21563,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21285
21563
|
};
|
|
21286
21564
|
}
|
|
21287
21565
|
});
|
|
21288
|
-
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21289
|
-
const _hoisted_1$
|
|
21566
|
+
const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-9939a5fb"]]);
|
|
21567
|
+
const _hoisted_1$A = ["title"];
|
|
21290
21568
|
const _hoisted_2$o = { key: 0 };
|
|
21291
21569
|
const _hoisted_3$j = ["value", "placeholder"];
|
|
21292
|
-
const _sfc_main$
|
|
21570
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
21293
21571
|
__name: "JSONInput",
|
|
21294
21572
|
props: {
|
|
21295
21573
|
description: { default: "" },
|
|
@@ -21321,19 +21599,19 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
21321
21599
|
placeholder: _ctx.placeholder,
|
|
21322
21600
|
onInput: handleInput
|
|
21323
21601
|
}, null, 42, _hoisted_3$j)
|
|
21324
|
-
], 10, _hoisted_1$
|
|
21602
|
+
], 10, _hoisted_1$A);
|
|
21325
21603
|
};
|
|
21326
21604
|
}
|
|
21327
21605
|
});
|
|
21328
|
-
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21329
|
-
const _hoisted_1$
|
|
21606
|
+
const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1cbaeab2"]]);
|
|
21607
|
+
const _hoisted_1$z = ["for"];
|
|
21330
21608
|
const _hoisted_2$n = ["id", "placeholder", "disabled", "required", "readonly", "onKeydown"];
|
|
21331
21609
|
const _hoisted_3$i = { key: 1 };
|
|
21332
21610
|
const _hoisted_4$b = {
|
|
21333
21611
|
key: 5,
|
|
21334
21612
|
class: "flex column spinner"
|
|
21335
21613
|
};
|
|
21336
|
-
const _sfc_main$
|
|
21614
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21337
21615
|
__name: "NumberInput",
|
|
21338
21616
|
props: {
|
|
21339
21617
|
modelValue: {},
|
|
@@ -21451,12 +21729,12 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21451
21729
|
]
|
|
21452
21730
|
]),
|
|
21453
21731
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_3$i, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
|
|
21454
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
21732
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
21455
21733
|
key: 2,
|
|
21456
21734
|
class: "iconStart",
|
|
21457
21735
|
icon: _ctx.iconStart
|
|
21458
21736
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
21459
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
21737
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
21460
21738
|
key: 3,
|
|
21461
21739
|
icon: _ctx.icon
|
|
21462
21740
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -21489,14 +21767,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21489
21767
|
}, null, 8, ["disabled"])
|
|
21490
21768
|
])) : createCommentVNode("", true)
|
|
21491
21769
|
], 2)
|
|
21492
|
-
], 8, _hoisted_1$
|
|
21770
|
+
], 8, _hoisted_1$z)
|
|
21493
21771
|
], 2);
|
|
21494
21772
|
};
|
|
21495
21773
|
}
|
|
21496
21774
|
});
|
|
21497
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21498
|
-
const _hoisted_1$
|
|
21499
|
-
const _sfc_main$
|
|
21775
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-8ae5f930"]]);
|
|
21776
|
+
const _hoisted_1$y = ["value", "autofocus", "onKeydown", "onPaste"];
|
|
21777
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21500
21778
|
__name: "OTP",
|
|
21501
21779
|
props: {
|
|
21502
21780
|
digitCount: {},
|
|
@@ -21594,16 +21872,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21594
21872
|
oninput: "this.value = this.value.slice(0, 1);",
|
|
21595
21873
|
onKeydown: ($event) => handleKeyDown($event, ind),
|
|
21596
21874
|
onPaste: ($event) => handlePaste($event, ind)
|
|
21597
|
-
}, null, 40, _hoisted_1$
|
|
21875
|
+
}, null, 40, _hoisted_1$y);
|
|
21598
21876
|
}), 128))
|
|
21599
21877
|
], 512);
|
|
21600
21878
|
};
|
|
21601
21879
|
}
|
|
21602
21880
|
});
|
|
21603
|
-
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21604
|
-
const _hoisted_1$
|
|
21881
|
+
const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-5c22c199"]]);
|
|
21882
|
+
const _hoisted_1$x = { class: "relative" };
|
|
21605
21883
|
const _hoisted_2$m = { class: "m-password position-bottom-end flex column justify-content-center" };
|
|
21606
|
-
const _sfc_main$
|
|
21884
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
21607
21885
|
__name: "PasswordInput",
|
|
21608
21886
|
props: /* @__PURE__ */ mergeModels({
|
|
21609
21887
|
id: {},
|
|
@@ -21644,7 +21922,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21644
21922
|
);
|
|
21645
21923
|
const inputType = computed(() => showPwd.value ? "text" : "password");
|
|
21646
21924
|
return (_ctx, _cache) => {
|
|
21647
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21925
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
21648
21926
|
createVNode(unref(TextInput), mergeProps({
|
|
21649
21927
|
modelValue: password.value,
|
|
21650
21928
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
|
|
@@ -21665,7 +21943,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21665
21943
|
};
|
|
21666
21944
|
}
|
|
21667
21945
|
});
|
|
21668
|
-
const _hoisted_1$
|
|
21946
|
+
const _hoisted_1$w = ["for"];
|
|
21669
21947
|
const _hoisted_2$l = ["id", "name", "value", "required"];
|
|
21670
21948
|
const _hoisted_3$h = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
|
|
21671
21949
|
const _hoisted_4$a = ["src", "alt"];
|
|
@@ -21678,7 +21956,7 @@ const _hoisted_7$5 = {
|
|
|
21678
21956
|
key: 1,
|
|
21679
21957
|
class: "txt-gray txt-12 m-0"
|
|
21680
21958
|
};
|
|
21681
|
-
const _sfc_main$
|
|
21959
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
21682
21960
|
__name: "RadioGroup",
|
|
21683
21961
|
props: /* @__PURE__ */ mergeModels({
|
|
21684
21962
|
groupName: {},
|
|
@@ -21733,19 +22011,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
21733
22011
|
icon: "delete",
|
|
21734
22012
|
onClick: ($event) => _ctx.$emit("delete", opt)
|
|
21735
22013
|
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
21736
|
-
], 8, _hoisted_1$
|
|
22014
|
+
], 8, _hoisted_1$w);
|
|
21737
22015
|
}), 128))
|
|
21738
22016
|
]);
|
|
21739
22017
|
};
|
|
21740
22018
|
}
|
|
21741
22019
|
});
|
|
21742
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21743
|
-
const _hoisted_1$
|
|
22020
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-3c77be46"]]);
|
|
22021
|
+
const _hoisted_1$v = { class: "bagel-input" };
|
|
21744
22022
|
const _hoisted_2$k = { class: "pb-025" };
|
|
21745
22023
|
const _hoisted_3$g = { class: "flex gap-05 flex-wrap" };
|
|
21746
22024
|
const _hoisted_4$9 = ["id", "name", "value", "checked"];
|
|
21747
22025
|
const _hoisted_5$9 = ["for"];
|
|
21748
|
-
const _sfc_main$
|
|
22026
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
21749
22027
|
__name: "RadioPillsInput",
|
|
21750
22028
|
props: {
|
|
21751
22029
|
options: {},
|
|
@@ -21786,7 +22064,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
21786
22064
|
selectedValue.value = props2.modelValue;
|
|
21787
22065
|
});
|
|
21788
22066
|
return (_ctx, _cache) => {
|
|
21789
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22067
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
21790
22068
|
createElementVNode("label", _hoisted_2$k, toDisplayString(_ctx.label), 1),
|
|
21791
22069
|
createElementVNode("div", _hoisted_3$g, [
|
|
21792
22070
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option2, index2) => {
|
|
@@ -21812,8 +22090,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
21812
22090
|
};
|
|
21813
22091
|
}
|
|
21814
22092
|
});
|
|
21815
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21816
|
-
const _hoisted_1$
|
|
22093
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-cf892d71"]]);
|
|
22094
|
+
const _hoisted_1$u = ["dir"];
|
|
21817
22095
|
const _hoisted_2$j = {
|
|
21818
22096
|
key: 0,
|
|
21819
22097
|
class: "label"
|
|
@@ -21823,7 +22101,7 @@ const _hoisted_4$8 = ["id", "value", "min", "max", "step", "required", "disabled
|
|
|
21823
22101
|
const _hoisted_5$8 = ["value", "min", "max", "step", "required", "disabled"];
|
|
21824
22102
|
const _hoisted_6$7 = { class: "track absolute pointer-events-none overflow-hidden round" };
|
|
21825
22103
|
const _hoisted_7$4 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
|
|
21826
|
-
const _sfc_main$
|
|
22104
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
21827
22105
|
__name: "RangeInput",
|
|
21828
22106
|
props: {
|
|
21829
22107
|
modelValue: {},
|
|
@@ -21983,11 +22261,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
21983
22261
|
createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(max2))), 1)
|
|
21984
22262
|
], true)
|
|
21985
22263
|
])
|
|
21986
|
-
], 8, _hoisted_1$
|
|
22264
|
+
], 8, _hoisted_1$u);
|
|
21987
22265
|
};
|
|
21988
22266
|
}
|
|
21989
22267
|
});
|
|
21990
|
-
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22268
|
+
const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-25d991e5"]]);
|
|
21991
22269
|
const tableTools = [
|
|
21992
22270
|
"mergeCells",
|
|
21993
22271
|
"splitCells",
|
|
@@ -22077,12 +22355,12 @@ const toolbarOptions = [
|
|
|
22077
22355
|
{ name: "separator" },
|
|
22078
22356
|
{ name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
|
|
22079
22357
|
];
|
|
22080
|
-
const _hoisted_1$
|
|
22358
|
+
const _hoisted_1$t = { class: "grid grid-wrap p-05" };
|
|
22081
22359
|
const _hoisted_2$i = ["onMousemove", "onClick"];
|
|
22082
22360
|
const _hoisted_3$e = { class: "txt-center txt-12 color-gray" };
|
|
22083
22361
|
const fb = 1;
|
|
22084
22362
|
const base = 5;
|
|
22085
|
-
const _sfc_main$
|
|
22363
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
22086
22364
|
__name: "gridBox",
|
|
22087
22365
|
emits: ["select"],
|
|
22088
22366
|
setup(__props, { emit: __emit }) {
|
|
@@ -22098,7 +22376,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22098
22376
|
return hoveredCol.value > base - 1 ? enlarge : base;
|
|
22099
22377
|
});
|
|
22100
22378
|
return (_ctx, _cache) => {
|
|
22101
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22379
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
22102
22380
|
(openBlock(true), createElementBlock(Fragment, null, renderList(rowSize.value, (row) => {
|
|
22103
22381
|
return openBlock(), createElementBlock("div", {
|
|
22104
22382
|
key: `row-${row}`,
|
|
@@ -22134,12 +22412,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22134
22412
|
};
|
|
22135
22413
|
}
|
|
22136
22414
|
});
|
|
22137
|
-
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22138
|
-
const _hoisted_1$
|
|
22415
|
+
const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4548b70f"]]);
|
|
22416
|
+
const _hoisted_1$s = {
|
|
22139
22417
|
class: "toolbar flex gap-025 pb-05 flex-wrap",
|
|
22140
22418
|
role: "toolbar"
|
|
22141
22419
|
};
|
|
22142
|
-
const _sfc_main$
|
|
22420
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
22143
22421
|
__name: "EditorToolbar",
|
|
22144
22422
|
props: {
|
|
22145
22423
|
config: { default: defaultToolbarConfig },
|
|
@@ -22154,10 +22432,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22154
22432
|
}
|
|
22155
22433
|
return (_ctx, _cache) => {
|
|
22156
22434
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
22157
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22435
|
+
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
22158
22436
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
|
|
22159
22437
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
22160
|
-
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
22438
|
+
action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$U), {
|
|
22161
22439
|
key: 0,
|
|
22162
22440
|
placement: "bottom-start",
|
|
22163
22441
|
thin: "",
|
|
@@ -22197,7 +22475,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22197
22475
|
};
|
|
22198
22476
|
}
|
|
22199
22477
|
});
|
|
22200
|
-
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22478
|
+
const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-bcd681b9"]]);
|
|
22201
22479
|
function createCommandExecutor(state2, commands) {
|
|
22202
22480
|
return {
|
|
22203
22481
|
execute(command, value) {
|
|
@@ -22218,7 +22496,7 @@ function createCommandExecutor(state2, commands) {
|
|
|
22218
22496
|
}
|
|
22219
22497
|
};
|
|
22220
22498
|
}
|
|
22221
|
-
function isStyleActive(
|
|
22499
|
+
function isStyleActive(style2, doc) {
|
|
22222
22500
|
const selection = doc.getSelection();
|
|
22223
22501
|
if (!selection || !selection.rangeCount) return false;
|
|
22224
22502
|
const range2 = selection.getRangeAt(0);
|
|
@@ -22235,7 +22513,7 @@ function isStyleActive(style, doc) {
|
|
|
22235
22513
|
italic: ["em", "i"],
|
|
22236
22514
|
underline: ["u"]
|
|
22237
22515
|
};
|
|
22238
|
-
return checkParent(parent, styleTags[
|
|
22516
|
+
return checkParent(parent, styleTags[style2] ?? [style2]);
|
|
22239
22517
|
}
|
|
22240
22518
|
function analyzeSelection(doc, range2) {
|
|
22241
22519
|
const container = range2.commonAncestorContainer;
|
|
@@ -22789,9 +23067,9 @@ function useEditor() {
|
|
|
22789
23067
|
"ol",
|
|
22790
23068
|
"li"
|
|
22791
23069
|
];
|
|
22792
|
-
styleTypes.forEach((
|
|
22793
|
-
if (state2.doc && isStyleActive(
|
|
22794
|
-
styles.add(
|
|
23070
|
+
styleTypes.forEach((style2) => {
|
|
23071
|
+
if (state2.doc && isStyleActive(style2, state2.doc)) {
|
|
23072
|
+
styles.add(style2);
|
|
22795
23073
|
}
|
|
22796
23074
|
});
|
|
22797
23075
|
state2.selectedStyles = styles;
|
|
@@ -23117,13 +23395,13 @@ function useEditorKeyboard(doc, handleToolbarAction) {
|
|
|
23117
23395
|
}
|
|
23118
23396
|
});
|
|
23119
23397
|
}
|
|
23120
|
-
const _hoisted_1$
|
|
23398
|
+
const _hoisted_1$r = { class: "bagel-input" };
|
|
23121
23399
|
const _hoisted_2$h = { class: "content-area radius-05" };
|
|
23122
23400
|
const _hoisted_3$d = {
|
|
23123
23401
|
key: 1,
|
|
23124
23402
|
class: "flex"
|
|
23125
23403
|
};
|
|
23126
|
-
const _sfc_main$
|
|
23404
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23127
23405
|
__name: "index",
|
|
23128
23406
|
props: {
|
|
23129
23407
|
modelValue: {},
|
|
@@ -23152,9 +23430,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23152
23430
|
doc.designMode = "on";
|
|
23153
23431
|
doc.body.contentEditable = "true";
|
|
23154
23432
|
doc.body.dir = hasRTL.value ? "rtl" : "ltr";
|
|
23155
|
-
const
|
|
23156
|
-
|
|
23157
|
-
doc.head.appendChild(
|
|
23433
|
+
const style2 = doc.createElement("style");
|
|
23434
|
+
style2.textContent = (await import("./editor-BKPRpAjr.js")).default;
|
|
23435
|
+
doc.head.appendChild(style2);
|
|
23158
23436
|
editor.init(doc);
|
|
23159
23437
|
useEditorKeyboard(doc, commands.execute);
|
|
23160
23438
|
if (!doc.body.firstElementChild) {
|
|
@@ -23200,7 +23478,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23200
23478
|
});
|
|
23201
23479
|
return (_ctx, _cache) => {
|
|
23202
23480
|
var _a2, _b;
|
|
23203
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23481
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23204
23482
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
23205
23483
|
createElementVNode("div", {
|
|
23206
23484
|
class: normalizeClass(["rich-text-editor rounded pt-05 px-05 pb-075", { "fullscreen-mode": unref(editor).state.isFullscreen }])
|
|
@@ -23278,8 +23556,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
23278
23556
|
};
|
|
23279
23557
|
}
|
|
23280
23558
|
});
|
|
23281
|
-
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23282
|
-
const _hoisted_1$
|
|
23559
|
+
const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-08117333"]]);
|
|
23560
|
+
const _hoisted_1$q = { class: "flex gap-05" };
|
|
23283
23561
|
const _hoisted_2$g = ["disabled"];
|
|
23284
23562
|
const _hoisted_3$c = { key: 1 };
|
|
23285
23563
|
const _hoisted_4$7 = {
|
|
@@ -23289,7 +23567,7 @@ const _hoisted_4$7 = {
|
|
|
23289
23567
|
const _hoisted_5$7 = ["value"];
|
|
23290
23568
|
const _hoisted_6$6 = ["aria-selected", "onClick", "onKeydown"];
|
|
23291
23569
|
const _hoisted_7$3 = { class: "block" };
|
|
23292
|
-
const _sfc_main$
|
|
23570
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23293
23571
|
__name: "SelectInput",
|
|
23294
23572
|
props: {
|
|
23295
23573
|
options: {},
|
|
@@ -23465,7 +23743,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23465
23743
|
}
|
|
23466
23744
|
});
|
|
23467
23745
|
return (_ctx, _cache) => {
|
|
23468
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
23746
|
+
return openBlock(), createBlock(unref(_sfc_main$U), {
|
|
23469
23747
|
ref_key: "dropdown",
|
|
23470
23748
|
ref: dropdown,
|
|
23471
23749
|
shown: unref(open),
|
|
@@ -23477,7 +23755,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23477
23755
|
trigger: withCtx(() => [
|
|
23478
23756
|
createElementVNode("label", null, [
|
|
23479
23757
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
23480
|
-
createElementVNode("div", _hoisted_1$
|
|
23758
|
+
createElementVNode("div", _hoisted_1$q, [
|
|
23481
23759
|
_ctx.searchable && unref(open) ? (openBlock(), createBlock(unref(TextInput), {
|
|
23482
23760
|
key: 0,
|
|
23483
23761
|
ref_key: "searchInput",
|
|
@@ -23504,7 +23782,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23504
23782
|
_cache[6] || (_cache[6] = withKeys(withModifiers(($event) => navigate("up"), ["prevent"]), ["up"]))
|
|
23505
23783
|
]
|
|
23506
23784
|
}, [
|
|
23507
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
23785
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
23508
23786
|
key: 0,
|
|
23509
23787
|
icon: _ctx.icon
|
|
23510
23788
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -23521,7 +23799,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23521
23799
|
})
|
|
23522
23800
|
})
|
|
23523
23801
|
])) : createCommentVNode("", true),
|
|
23524
|
-
!_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$
|
|
23802
|
+
!_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$q), mergeProps({
|
|
23525
23803
|
key: 3,
|
|
23526
23804
|
thin: ""
|
|
23527
23805
|
}, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
|
|
@@ -23569,12 +23847,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23569
23847
|
]
|
|
23570
23848
|
}, [
|
|
23571
23849
|
_ctx.multiselect ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
23572
|
-
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
23850
|
+
isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
23573
23851
|
key: 0,
|
|
23574
23852
|
size: 1.1,
|
|
23575
23853
|
icon: "select_check_box"
|
|
23576
23854
|
})) : createCommentVNode("", true),
|
|
23577
|
-
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
23855
|
+
!isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
23578
23856
|
key: 1,
|
|
23579
23857
|
class: "opacity-3",
|
|
23580
23858
|
icon: "check_box_outline_blank",
|
|
@@ -23595,7 +23873,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23595
23873
|
};
|
|
23596
23874
|
}
|
|
23597
23875
|
});
|
|
23598
|
-
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23876
|
+
const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-70535216"]]);
|
|
23599
23877
|
/*!
|
|
23600
23878
|
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
|
|
23601
23879
|
* (c) 2024 Szymon Nowak | Released under the MIT license
|
|
@@ -24192,7 +24470,7 @@ class SignaturePad extends SignatureEventTarget {
|
|
|
24192
24470
|
return svg.outerHTML;
|
|
24193
24471
|
}
|
|
24194
24472
|
}
|
|
24195
|
-
const _hoisted_1$
|
|
24473
|
+
const _hoisted_1$p = ["disabled"];
|
|
24196
24474
|
const _hoisted_2$f = {
|
|
24197
24475
|
key: 1,
|
|
24198
24476
|
placeholder: "required",
|
|
@@ -24200,7 +24478,7 @@ const _hoisted_2$f = {
|
|
|
24200
24478
|
required: "",
|
|
24201
24479
|
class: "pixel"
|
|
24202
24480
|
};
|
|
24203
|
-
const _sfc_main$
|
|
24481
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
24204
24482
|
__name: "SignaturePad",
|
|
24205
24483
|
props: /* @__PURE__ */ mergeModels({
|
|
24206
24484
|
sigOption: {},
|
|
@@ -24353,7 +24631,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
24353
24631
|
ref: vCanvas,
|
|
24354
24632
|
class: "canvas",
|
|
24355
24633
|
disabled: _ctx.disabled
|
|
24356
|
-
}, null, 8, _hoisted_1$
|
|
24634
|
+
}, null, 8, _hoisted_1$p),
|
|
24357
24635
|
_ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$f)) : createCommentVNode("", true)
|
|
24358
24636
|
], 34);
|
|
24359
24637
|
};
|
|
@@ -24534,8 +24812,8 @@ function toggleClass(el, name, state2) {
|
|
|
24534
24812
|
}
|
|
24535
24813
|
}
|
|
24536
24814
|
function css(el, prop3, val) {
|
|
24537
|
-
var
|
|
24538
|
-
if (
|
|
24815
|
+
var style2 = el && el.style;
|
|
24816
|
+
if (style2) {
|
|
24539
24817
|
if (val === void 0) {
|
|
24540
24818
|
if (document.defaultView && document.defaultView.getComputedStyle) {
|
|
24541
24819
|
val = document.defaultView.getComputedStyle(el, "");
|
|
@@ -24544,10 +24822,10 @@ function css(el, prop3, val) {
|
|
|
24544
24822
|
}
|
|
24545
24823
|
return prop3 === void 0 ? val : val[prop3];
|
|
24546
24824
|
} else {
|
|
24547
|
-
if (!(prop3 in
|
|
24825
|
+
if (!(prop3 in style2) && prop3.indexOf("webkit") === -1) {
|
|
24548
24826
|
prop3 = "-webkit-" + prop3;
|
|
24549
24827
|
}
|
|
24550
|
-
|
|
24828
|
+
style2[prop3] = val + (typeof val === "string" ? "" : "px");
|
|
24551
24829
|
}
|
|
24552
24830
|
}
|
|
24553
24831
|
}
|
|
@@ -26838,13 +27116,13 @@ const VueDraggableNext = defineComponent({
|
|
|
26838
27116
|
}
|
|
26839
27117
|
}
|
|
26840
27118
|
});
|
|
26841
|
-
const _hoisted_1$
|
|
27119
|
+
const _hoisted_1$o = ["title"];
|
|
26842
27120
|
const _hoisted_2$e = { class: "bagel-input" };
|
|
26843
27121
|
const _hoisted_3$b = { class: "table-side-scroll" };
|
|
26844
27122
|
const _hoisted_4$6 = { class: "table-header" };
|
|
26845
27123
|
const _hoisted_5$6 = { class: "table-reorder" };
|
|
26846
27124
|
const _hoisted_6$5 = { class: "table-action" };
|
|
26847
|
-
const _sfc_main$
|
|
27125
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
26848
27126
|
__name: "TableField",
|
|
26849
27127
|
props: {
|
|
26850
27128
|
description: { default: "" },
|
|
@@ -26941,7 +27219,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
26941
27219
|
class: "flex table-row"
|
|
26942
27220
|
}, [
|
|
26943
27221
|
createElementVNode("div", _hoisted_5$6, [
|
|
26944
|
-
createVNode(unref(_sfc_main$
|
|
27222
|
+
createVNode(unref(_sfc_main$q), { icon: "more_vert" })
|
|
26945
27223
|
]),
|
|
26946
27224
|
(openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
|
|
26947
27225
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26958,7 +27236,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
26958
27236
|
], 2);
|
|
26959
27237
|
}), 128)),
|
|
26960
27238
|
createElementVNode("div", _hoisted_6$5, [
|
|
26961
|
-
createVNode(unref(_sfc_main$
|
|
27239
|
+
createVNode(unref(_sfc_main$q), {
|
|
26962
27240
|
icon: "delete",
|
|
26963
27241
|
onClick: ($event) => removeRow(index2)
|
|
26964
27242
|
}, null, 8, ["onClick"])
|
|
@@ -26984,11 +27262,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
26984
27262
|
])),
|
|
26985
27263
|
_: 1
|
|
26986
27264
|
})
|
|
26987
|
-
], 8, _hoisted_1$
|
|
27265
|
+
], 8, _hoisted_1$o);
|
|
26988
27266
|
};
|
|
26989
27267
|
}
|
|
26990
27268
|
});
|
|
26991
|
-
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27269
|
+
const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-e9632f79"]]);
|
|
26992
27270
|
function bind(fn2, thisArg) {
|
|
26993
27271
|
return function wrap() {
|
|
26994
27272
|
return fn2.apply(thisArg, arguments);
|
|
@@ -31435,13 +31713,13 @@ function parsePhoneNumber$1() {
|
|
|
31435
31713
|
function parsePhoneNumber() {
|
|
31436
31714
|
return withMetadataArgument(parsePhoneNumber$1, arguments);
|
|
31437
31715
|
}
|
|
31438
|
-
const _hoisted_1$
|
|
31716
|
+
const _hoisted_1$n = ["aria-expanded"];
|
|
31439
31717
|
const _hoisted_2$d = { class: "p-075 tel-countryp-dropdown" };
|
|
31440
31718
|
const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
|
|
31441
31719
|
const _hoisted_4$5 = { class: "tel-country" };
|
|
31442
31720
|
const _hoisted_5$5 = { key: 1 };
|
|
31443
31721
|
const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
|
|
31444
|
-
const _sfc_main$
|
|
31722
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
31445
31723
|
__name: "TelInput",
|
|
31446
31724
|
props: /* @__PURE__ */ mergeModels({
|
|
31447
31725
|
label: {},
|
|
@@ -31703,7 +31981,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31703
31981
|
withKeys(reset, ["tab"])
|
|
31704
31982
|
]
|
|
31705
31983
|
}, [
|
|
31706
|
-
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$
|
|
31984
|
+
!computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$U), {
|
|
31707
31985
|
key: 0,
|
|
31708
31986
|
ref_key: "phoneDropdown",
|
|
31709
31987
|
ref: phoneDropdown,
|
|
@@ -31716,7 +31994,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31716
31994
|
class: "flex gap-05",
|
|
31717
31995
|
onClick: _cache[0] || (_cache[0] = ($event) => isRef(open) ? open.value = true : open = true)
|
|
31718
31996
|
}, [
|
|
31719
|
-
createVNode(unref(_sfc_main$
|
|
31997
|
+
createVNode(unref(_sfc_main$q), {
|
|
31720
31998
|
icon: unref(open) ? "collapse_all" : "expand_all"
|
|
31721
31999
|
}, null, 8, ["icon"]),
|
|
31722
32000
|
computedDropDownOptions.value.showFlags && unref(activeCountryCode) ? (openBlock(), createBlock(unref(Flag), {
|
|
@@ -31790,19 +32068,19 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
31790
32068
|
}, null, 44, _hoisted_6$4), [
|
|
31791
32069
|
[vModelText, phone.value]
|
|
31792
32070
|
])
|
|
31793
|
-
], 40, _hoisted_1$
|
|
32071
|
+
], 40, _hoisted_1$n)
|
|
31794
32072
|
])
|
|
31795
32073
|
], 2);
|
|
31796
32074
|
};
|
|
31797
32075
|
}
|
|
31798
32076
|
});
|
|
31799
|
-
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31800
|
-
const _hoisted_1$
|
|
32077
|
+
const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-492fcc54"]]);
|
|
32078
|
+
const _hoisted_1$m = ["title"];
|
|
31801
32079
|
const _hoisted_2$c = ["for"];
|
|
31802
32080
|
const _hoisted_3$9 = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
|
|
31803
32081
|
const _hoisted_4$4 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
|
|
31804
32082
|
const _hoisted_5$4 = { key: 2 };
|
|
31805
|
-
const _sfc_main$
|
|
32083
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
31806
32084
|
__name: "TextInput",
|
|
31807
32085
|
props: {
|
|
31808
32086
|
id: {},
|
|
@@ -31824,7 +32102,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31824
32102
|
multiline: { type: Boolean },
|
|
31825
32103
|
autoheight: { type: Boolean },
|
|
31826
32104
|
code: { type: Boolean },
|
|
31827
|
-
|
|
32105
|
+
rows: {},
|
|
31828
32106
|
autocomplete: {},
|
|
31829
32107
|
autofocus: { type: Boolean },
|
|
31830
32108
|
onFocusout: {}
|
|
@@ -31835,9 +32113,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31835
32113
|
const emit2 = __emit;
|
|
31836
32114
|
let inputVal = ref();
|
|
31837
32115
|
const input = ref();
|
|
31838
|
-
const
|
|
31839
|
-
if (props2.
|
|
31840
|
-
if (props2.
|
|
32116
|
+
const inputRows = computed(() => {
|
|
32117
|
+
if (props2.autoheight) return `${inputVal.value}`.split("\n").length || props2.rows || 1;
|
|
32118
|
+
if (props2.rows) return props2.rows;
|
|
31841
32119
|
if (props2.multiline || props2.code) return 4;
|
|
31842
32120
|
return 1;
|
|
31843
32121
|
});
|
|
@@ -31915,7 +32193,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31915
32193
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
|
|
31916
32194
|
title: _ctx.title,
|
|
31917
32195
|
type: _ctx.type,
|
|
31918
|
-
rows:
|
|
32196
|
+
rows: inputRows.value,
|
|
31919
32197
|
placeholder: _ctx.placeholder || _ctx.label,
|
|
31920
32198
|
disabled: _ctx.disabled,
|
|
31921
32199
|
required: _ctx.required,
|
|
@@ -31928,25 +32206,25 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
31928
32206
|
[vModelText, unref(inputVal)]
|
|
31929
32207
|
]),
|
|
31930
32208
|
_ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$4, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
|
|
31931
|
-
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$
|
|
32209
|
+
_ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
31932
32210
|
key: 3,
|
|
31933
32211
|
class: "iconStart",
|
|
31934
32212
|
icon: _ctx.iconStart
|
|
31935
32213
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
31936
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
32214
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
31937
32215
|
key: 4,
|
|
31938
32216
|
icon: _ctx.icon
|
|
31939
32217
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
31940
32218
|
], 8, _hoisted_2$c)
|
|
31941
|
-
], 10, _hoisted_1$
|
|
32219
|
+
], 10, _hoisted_1$m);
|
|
31942
32220
|
};
|
|
31943
32221
|
}
|
|
31944
32222
|
});
|
|
31945
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
31946
|
-
const _hoisted_1$
|
|
32223
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c2bd3e03"]]);
|
|
32224
|
+
const _hoisted_1$l = ["title"];
|
|
31947
32225
|
const _hoisted_2$b = ["id", "required"];
|
|
31948
32226
|
const _hoisted_3$8 = ["for"];
|
|
31949
|
-
const _sfc_main$
|
|
32227
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
31950
32228
|
__name: "ToggleInput",
|
|
31951
32229
|
props: /* @__PURE__ */ mergeModels({
|
|
31952
32230
|
label: {},
|
|
@@ -31990,11 +32268,11 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
31990
32268
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
31991
32269
|
], true)
|
|
31992
32270
|
], 8, _hoisted_3$8)
|
|
31993
|
-
], 10, _hoisted_1$
|
|
32271
|
+
], 10, _hoisted_1$l);
|
|
31994
32272
|
};
|
|
31995
32273
|
}
|
|
31996
32274
|
});
|
|
31997
|
-
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32275
|
+
const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ebe691ee"]]);
|
|
31998
32276
|
const files = {
|
|
31999
32277
|
setBaseUrl: (baseUrl) => {
|
|
32000
32278
|
if (!baseUrl) return;
|
|
@@ -32020,7 +32298,7 @@ const files = {
|
|
|
32020
32298
|
});
|
|
32021
32299
|
}
|
|
32022
32300
|
};
|
|
32023
|
-
const _hoisted_1$
|
|
32301
|
+
const _hoisted_1$k = { class: "bagel-input" };
|
|
32024
32302
|
const _hoisted_2$a = { key: 0 };
|
|
32025
32303
|
const _hoisted_3$7 = {
|
|
32026
32304
|
key: 1,
|
|
@@ -32061,7 +32339,7 @@ const _hoisted_15 = {
|
|
|
32061
32339
|
};
|
|
32062
32340
|
const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
32063
32341
|
const _hoisted_17 = { class: "pretty balance" };
|
|
32064
|
-
const _sfc_main$
|
|
32342
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
32065
32343
|
__name: "UploadInput",
|
|
32066
32344
|
props: {
|
|
32067
32345
|
label: {},
|
|
@@ -32172,7 +32450,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32172
32450
|
return (_ctx, _cache) => {
|
|
32173
32451
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
32174
32452
|
const _directive_lightbox = resolveDirective("lightbox");
|
|
32175
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
32453
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
32176
32454
|
_ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$a, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
|
|
32177
32455
|
_ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$7)) : createCommentVNode("", true),
|
|
32178
32456
|
_ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$_), {
|
|
@@ -32221,7 +32499,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32221
32499
|
download: path_key.split("/").pop()
|
|
32222
32500
|
}, null, 8, ["href", "download"]),
|
|
32223
32501
|
createElementVNode("div", _hoisted_5$3, [
|
|
32224
|
-
createVNode(unref(_sfc_main$
|
|
32502
|
+
createVNode(unref(_sfc_main$q), {
|
|
32225
32503
|
icon: "draft",
|
|
32226
32504
|
size: 1.5
|
|
32227
32505
|
}),
|
|
@@ -32264,7 +32542,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32264
32542
|
key: 0,
|
|
32265
32543
|
pathKey: path_key,
|
|
32266
32544
|
class: "multi-preview"
|
|
32267
|
-
}, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
32545
|
+
}, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
32268
32546
|
key: 1,
|
|
32269
32547
|
icon: "description",
|
|
32270
32548
|
class: "multi-preview"
|
|
@@ -32291,7 +32569,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32291
32569
|
class: "multi-preview",
|
|
32292
32570
|
src: fileToUrl(file.file),
|
|
32293
32571
|
alt: ""
|
|
32294
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
32572
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
32295
32573
|
key: 1,
|
|
32296
32574
|
icon: "description",
|
|
32297
32575
|
class: "multi-preview"
|
|
@@ -32302,7 +32580,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32302
32580
|
style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
|
|
32303
32581
|
}, [
|
|
32304
32582
|
file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$1, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
|
|
32305
|
-
createVNode(unref(_sfc_main$
|
|
32583
|
+
createVNode(unref(_sfc_main$q), {
|
|
32306
32584
|
class: "success",
|
|
32307
32585
|
icon: "check_circle"
|
|
32308
32586
|
})
|
|
@@ -32350,7 +32628,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32350
32628
|
}, null, 8, ["pathKey"]), [
|
|
32351
32629
|
[_directive_lightbox, { src: pathToUrl(path_key), download: true }]
|
|
32352
32630
|
])
|
|
32353
|
-
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
32631
|
+
])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$q), {
|
|
32354
32632
|
key: 1,
|
|
32355
32633
|
size: 4,
|
|
32356
32634
|
weight: "2",
|
|
@@ -32371,7 +32649,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32371
32649
|
style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
|
|
32372
32650
|
}, [
|
|
32373
32651
|
file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
|
|
32374
|
-
createVNode(unref(_sfc_main$
|
|
32652
|
+
createVNode(unref(_sfc_main$q), {
|
|
32375
32653
|
class: "success",
|
|
32376
32654
|
icon: "check_circle"
|
|
32377
32655
|
})
|
|
@@ -32395,7 +32673,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32395
32673
|
browse
|
|
32396
32674
|
}, () => [
|
|
32397
32675
|
createElementVNode("p", _hoisted_16, [
|
|
32398
|
-
createVNode(unref(_sfc_main$
|
|
32676
|
+
createVNode(unref(_sfc_main$q), { icon: "upload_2" }),
|
|
32399
32677
|
createElementVNode("span", _hoisted_17, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
|
|
32400
32678
|
])
|
|
32401
32679
|
], true) : createCommentVNode("", true)
|
|
@@ -32404,7 +32682,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
32404
32682
|
};
|
|
32405
32683
|
}
|
|
32406
32684
|
});
|
|
32407
|
-
const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
32685
|
+
const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-d65d0a87"]]);
|
|
32408
32686
|
const FONT_AWESOME_ICONS = [
|
|
32409
32687
|
"trash-can",
|
|
32410
32688
|
"message",
|
|
@@ -36830,7 +37108,7 @@ const MATERIAL_ICONS = [
|
|
|
36830
37108
|
"zoom_out",
|
|
36831
37109
|
"zoom_out_map"
|
|
36832
37110
|
];
|
|
36833
|
-
const _sfc_main$
|
|
37111
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
36834
37112
|
__name: "Icon",
|
|
36835
37113
|
props: {
|
|
36836
37114
|
icon: {},
|
|
@@ -36861,8 +37139,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
36861
37139
|
};
|
|
36862
37140
|
}
|
|
36863
37141
|
});
|
|
36864
|
-
const _hoisted_1$
|
|
36865
|
-
const _sfc_main$
|
|
37142
|
+
const _hoisted_1$j = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
|
|
37143
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
36866
37144
|
__name: "IframeVue",
|
|
36867
37145
|
props: {
|
|
36868
37146
|
src: {},
|
|
@@ -36921,14 +37199,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
36921
37199
|
scrolling: _ctx.scrolling,
|
|
36922
37200
|
srcset: _ctx.srcset,
|
|
36923
37201
|
onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
|
|
36924
|
-
}, null, 40, _hoisted_1$
|
|
37202
|
+
}, null, 40, _hoisted_1$j);
|
|
36925
37203
|
};
|
|
36926
37204
|
}
|
|
36927
37205
|
});
|
|
36928
|
-
const _hoisted_1$
|
|
37206
|
+
const _hoisted_1$i = { key: 0 };
|
|
36929
37207
|
const _hoisted_2$9 = ["src", "alt", "width", "height"];
|
|
36930
37208
|
const _hoisted_3$6 = ["src", "alt", "width", "height"];
|
|
36931
|
-
const _sfc_main$
|
|
37209
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
36932
37210
|
__name: "Image",
|
|
36933
37211
|
props: {
|
|
36934
37212
|
src: {},
|
|
@@ -37010,7 +37288,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37010
37288
|
}
|
|
37011
37289
|
watch(() => [props2.src, props2.pathKey], loadImage, { immediate: true });
|
|
37012
37290
|
return (_ctx, _cache) => {
|
|
37013
|
-
return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$
|
|
37291
|
+
return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$i, [
|
|
37014
37292
|
unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
|
|
37015
37293
|
key: 0,
|
|
37016
37294
|
src: unref(imageSrc)
|
|
@@ -37039,7 +37317,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37039
37317
|
height: unref(normalizeDimension)(_ctx.height)
|
|
37040
37318
|
})
|
|
37041
37319
|
}, [
|
|
37042
|
-
createVNode(unref(_sfc_main$
|
|
37320
|
+
createVNode(unref(_sfc_main$q), { name: "broken_image" })
|
|
37043
37321
|
], 4)) : (openBlock(), createBlock(unref(Skeleton), {
|
|
37044
37322
|
key: 3,
|
|
37045
37323
|
class: "img-web-kit",
|
|
@@ -37049,9 +37327,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
37049
37327
|
};
|
|
37050
37328
|
}
|
|
37051
37329
|
});
|
|
37052
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37053
|
-
const _hoisted_1$
|
|
37054
|
-
const _sfc_main$
|
|
37330
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-6f277b5b"]]);
|
|
37331
|
+
const _hoisted_1$h = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
|
|
37332
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
37055
37333
|
__name: "BottomMenu",
|
|
37056
37334
|
props: {
|
|
37057
37335
|
navLinks: {}
|
|
@@ -37069,12 +37347,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
37069
37347
|
onClick: nav.onClick
|
|
37070
37348
|
}, {
|
|
37071
37349
|
default: withCtx(() => [
|
|
37072
|
-
createVNode(unref(_sfc_main$
|
|
37350
|
+
createVNode(unref(_sfc_main$q), {
|
|
37073
37351
|
icon: nav.icon,
|
|
37074
37352
|
size: 1.4,
|
|
37075
37353
|
class: "m-0 line-height-14"
|
|
37076
37354
|
}, null, 8, ["icon"]),
|
|
37077
|
-
createElementVNode("p", _hoisted_1$
|
|
37355
|
+
createElementVNode("p", _hoisted_1$h, toDisplayString(nav.label), 1)
|
|
37078
37356
|
]),
|
|
37079
37357
|
_: 2
|
|
37080
37358
|
}, 1032, ["to", "onClick"]);
|
|
@@ -37086,8 +37364,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
37086
37364
|
};
|
|
37087
37365
|
}
|
|
37088
37366
|
});
|
|
37089
|
-
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37090
|
-
const _sfc_main$
|
|
37367
|
+
const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-fe3a895e"]]);
|
|
37368
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
37091
37369
|
__name: "Layout",
|
|
37092
37370
|
props: {
|
|
37093
37371
|
gap: { default: 1 },
|
|
@@ -37128,9 +37406,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
37128
37406
|
};
|
|
37129
37407
|
}
|
|
37130
37408
|
});
|
|
37131
|
-
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37132
|
-
const _hoisted_1$
|
|
37133
|
-
const _sfc_main$
|
|
37409
|
+
const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1814129a"]]);
|
|
37410
|
+
const _hoisted_1$g = { key: 0 };
|
|
37411
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
37134
37412
|
__name: "SidebarMenu",
|
|
37135
37413
|
props: {
|
|
37136
37414
|
navLinks: {},
|
|
@@ -37171,13 +37449,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37171
37449
|
class: "nav-button px-075 me-auto w-100"
|
|
37172
37450
|
}, {
|
|
37173
37451
|
default: withCtx(() => [
|
|
37174
|
-
createVNode(unref(_sfc_main$
|
|
37452
|
+
createVNode(unref(_sfc_main$q), {
|
|
37175
37453
|
icon: nav.icon,
|
|
37176
37454
|
size: 1.4
|
|
37177
37455
|
}, null, 8, ["icon"]),
|
|
37178
37456
|
createVNode(Transition, { name: "showP" }, {
|
|
37179
37457
|
default: withCtx(() => [
|
|
37180
|
-
_ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$
|
|
37458
|
+
_ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$g, toDisplayString(nav.label), 1)) : createCommentVNode("", true)
|
|
37181
37459
|
]),
|
|
37182
37460
|
_: 2
|
|
37183
37461
|
}, 1024)
|
|
@@ -37204,8 +37482,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
37204
37482
|
};
|
|
37205
37483
|
}
|
|
37206
37484
|
});
|
|
37207
|
-
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37208
|
-
const _sfc_main$
|
|
37485
|
+
const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ac02125e"]]);
|
|
37486
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
37209
37487
|
__name: "Skeleton",
|
|
37210
37488
|
props: {
|
|
37211
37489
|
count: { default: 1 },
|
|
@@ -37236,11 +37514,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
37236
37514
|
};
|
|
37237
37515
|
}
|
|
37238
37516
|
});
|
|
37239
|
-
const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37240
|
-
const _hoisted_1$
|
|
37517
|
+
const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4da8c0d1"]]);
|
|
37518
|
+
const _hoisted_1$f = { class: "bgl_card tabs-top" };
|
|
37241
37519
|
const _hoisted_2$8 = { class: "tabs grid auto-flow-columns fit-content" };
|
|
37242
37520
|
const _hoisted_3$5 = ["onClick"];
|
|
37243
|
-
const _sfc_main$
|
|
37521
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
37244
37522
|
__name: "TabbedLayout",
|
|
37245
37523
|
props: {
|
|
37246
37524
|
title: {},
|
|
@@ -37273,7 +37551,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
37273
37551
|
return openBlock(), createElementBlock("div", {
|
|
37274
37552
|
class: normalizeClass(["h-100 grid list-view gap-1", { "side-tabs": _ctx.sideTabs }])
|
|
37275
37553
|
}, [
|
|
37276
|
-
createElementVNode("div", _hoisted_1$
|
|
37554
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
37277
37555
|
renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
|
|
37278
37556
|
createElementVNode("div", _hoisted_2$8, [
|
|
37279
37557
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
|
|
@@ -37300,9 +37578,22 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
37300
37578
|
};
|
|
37301
37579
|
}
|
|
37302
37580
|
});
|
|
37303
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37304
|
-
const
|
|
37305
|
-
|
|
37581
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-915732c1"]]);
|
|
37582
|
+
const state$1 = reactive(/* @__PURE__ */ new Map());
|
|
37583
|
+
function useTabs(group) {
|
|
37584
|
+
if (!state$1.has(group)) {
|
|
37585
|
+
state$1.set(group, reactive({ currentTab: void 0 }));
|
|
37586
|
+
}
|
|
37587
|
+
const currentTab = computed({
|
|
37588
|
+
get: () => state$1.get(group).currentTab,
|
|
37589
|
+
set: (val) => {
|
|
37590
|
+
state$1.get(group).currentTab = val;
|
|
37591
|
+
}
|
|
37592
|
+
});
|
|
37593
|
+
return { currentTab };
|
|
37594
|
+
}
|
|
37595
|
+
const _hoisted_1$e = { key: 0 };
|
|
37596
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
37306
37597
|
__name: "Tabs",
|
|
37307
37598
|
props: {
|
|
37308
37599
|
tabs: {},
|
|
@@ -37344,14 +37635,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
37344
37635
|
group: unref(group),
|
|
37345
37636
|
class: "mb-05"
|
|
37346
37637
|
}, null, 8, ["modelValue", "flat", "tabs", "group"]),
|
|
37347
|
-
unref(currentTab) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37638
|
+
unref(currentTab) ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
37348
37639
|
unref(slots)[unref(currentTab)] ? renderSlot(_ctx.$slots, unref(currentTab), { key: 0 }) : unref(currentTab) ? (openBlock(), createBlock(resolveDynamicComponent(unref(tabComponent)), { key: 1 })) : createCommentVNode("", true)
|
|
37349
37640
|
])) : createCommentVNode("", true)
|
|
37350
37641
|
], 64);
|
|
37351
37642
|
};
|
|
37352
37643
|
}
|
|
37353
37644
|
});
|
|
37354
|
-
const _sfc_main$
|
|
37645
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
37355
37646
|
__name: "TabsBody",
|
|
37356
37647
|
props: {
|
|
37357
37648
|
group: {}
|
|
@@ -37364,6 +37655,97 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
37364
37655
|
};
|
|
37365
37656
|
}
|
|
37366
37657
|
});
|
|
37658
|
+
const _hoisted_1$d = ["onClick"];
|
|
37659
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
37660
|
+
__name: "TabsNav",
|
|
37661
|
+
props: {
|
|
37662
|
+
title: {},
|
|
37663
|
+
tabs: {},
|
|
37664
|
+
modelValue: {},
|
|
37665
|
+
sideTabs: { type: Boolean },
|
|
37666
|
+
group: {},
|
|
37667
|
+
flat: { type: Boolean },
|
|
37668
|
+
vertical: { type: Boolean }
|
|
37669
|
+
},
|
|
37670
|
+
emits: ["update:modelValue"],
|
|
37671
|
+
setup(__props, { emit: __emit }) {
|
|
37672
|
+
const props2 = __props;
|
|
37673
|
+
const emit2 = __emit;
|
|
37674
|
+
const { currentTab } = useTabs(props2.group);
|
|
37675
|
+
currentTab.value = props2.modelValue || typeof props2.tabs[0] === "string" ? props2.tabs[0] : props2.tabs[0].id;
|
|
37676
|
+
const tabsWrap = ref(void 0);
|
|
37677
|
+
const tabs = ref([]);
|
|
37678
|
+
function updateIndicator() {
|
|
37679
|
+
const activeTab = tabs.value.find((tab) => tab.classList.contains("active"));
|
|
37680
|
+
if (activeTab && tabsWrap.value) {
|
|
37681
|
+
const { offsetLeft, offsetWidth } = activeTab;
|
|
37682
|
+
tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
|
|
37683
|
+
if (tabsWrap.value) {
|
|
37684
|
+
tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
|
|
37685
|
+
}
|
|
37686
|
+
}
|
|
37687
|
+
}
|
|
37688
|
+
function selectTab(tab) {
|
|
37689
|
+
currentTab.value = typeof tab === "string" ? tab : tab.id;
|
|
37690
|
+
emit2("update:modelValue", currentTab.value);
|
|
37691
|
+
nextTick(() => {
|
|
37692
|
+
updateIndicator();
|
|
37693
|
+
});
|
|
37694
|
+
}
|
|
37695
|
+
function isActive(tab) {
|
|
37696
|
+
if (typeof tab === "string") return currentTab.value === tab;
|
|
37697
|
+
return currentTab.value === tab.id;
|
|
37698
|
+
}
|
|
37699
|
+
function tabLabel(tab) {
|
|
37700
|
+
if (typeof tab === "string") return tab;
|
|
37701
|
+
return tab.label;
|
|
37702
|
+
}
|
|
37703
|
+
watch(
|
|
37704
|
+
() => props2.modelValue,
|
|
37705
|
+
(value) => {
|
|
37706
|
+
if (value && !isActive(value)) currentTab.value = value;
|
|
37707
|
+
nextTick(() => {
|
|
37708
|
+
updateIndicator();
|
|
37709
|
+
});
|
|
37710
|
+
},
|
|
37711
|
+
{ immediate: true }
|
|
37712
|
+
);
|
|
37713
|
+
onMounted(() => {
|
|
37714
|
+
var _a2;
|
|
37715
|
+
tabs.value = Array.from(((_a2 = tabsWrap.value) == null ? void 0 : _a2.querySelectorAll(".bgl_tab")) || []);
|
|
37716
|
+
updateIndicator();
|
|
37717
|
+
window.addEventListener("resize", updateIndicator);
|
|
37718
|
+
});
|
|
37719
|
+
onBeforeUnmount(() => {
|
|
37720
|
+
window.removeEventListener("resize", updateIndicator);
|
|
37721
|
+
});
|
|
37722
|
+
return (_ctx, _cache) => {
|
|
37723
|
+
return openBlock(), createElementBlock("div", {
|
|
37724
|
+
ref_key: "tabsWrap",
|
|
37725
|
+
ref: tabsWrap,
|
|
37726
|
+
class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
|
|
37727
|
+
}, [
|
|
37728
|
+
renderSlot(_ctx.$slots, "tabs", normalizeProps(guardReactiveProps({ selectTab, isActive, tabLabel, tabs: tabs.value })), () => [
|
|
37729
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
|
|
37730
|
+
return openBlock(), createElementBlock("button", {
|
|
37731
|
+
key: i2,
|
|
37732
|
+
type: "button",
|
|
37733
|
+
class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
|
|
37734
|
+
onClick: ($event) => selectTab(tab)
|
|
37735
|
+
}, [
|
|
37736
|
+
typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
37737
|
+
key: 0,
|
|
37738
|
+
icon: tab.icon
|
|
37739
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
37740
|
+
createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
|
|
37741
|
+
], 10, _hoisted_1$d);
|
|
37742
|
+
}), 128))
|
|
37743
|
+
], true)
|
|
37744
|
+
], 2);
|
|
37745
|
+
};
|
|
37746
|
+
}
|
|
37747
|
+
});
|
|
37748
|
+
const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-e680c2a4"]]);
|
|
37367
37749
|
const _hoisted_1$c = { class: "no-margin ellipsis line-height-14 pb-025" };
|
|
37368
37750
|
const _hoisted_2$7 = { class: "txt12 no-margin txt-gray ellipsis" };
|
|
37369
37751
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
@@ -37393,7 +37775,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
37393
37775
|
src: _ctx.src,
|
|
37394
37776
|
size: 40
|
|
37395
37777
|
}, null, 8, ["name", "src"])) : createCommentVNode("", true),
|
|
37396
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
37778
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
37397
37779
|
key: 1,
|
|
37398
37780
|
size: "1.2",
|
|
37399
37781
|
class: "color-primary",
|
|
@@ -37415,21 +37797,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
37415
37797
|
};
|
|
37416
37798
|
}
|
|
37417
37799
|
});
|
|
37418
|
-
const _sfc_main$e = {};
|
|
37419
37800
|
const _hoisted_1$b = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0 m_pb-0" };
|
|
37420
|
-
const _hoisted_2$6 = {
|
|
37801
|
+
const _hoisted_2$6 = {
|
|
37802
|
+
key: 0,
|
|
37803
|
+
class: "p-1"
|
|
37804
|
+
};
|
|
37421
37805
|
const _hoisted_3$4 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
37422
|
-
|
|
37423
|
-
|
|
37424
|
-
|
|
37425
|
-
|
|
37426
|
-
|
|
37427
|
-
|
|
37428
|
-
|
|
37429
|
-
|
|
37430
|
-
|
|
37431
|
-
|
|
37432
|
-
|
|
37806
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
37807
|
+
__name: "ListView",
|
|
37808
|
+
setup(__props) {
|
|
37809
|
+
const slots = useSlots();
|
|
37810
|
+
return (_ctx, _cache) => {
|
|
37811
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
37812
|
+
unref(slots).header ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
37813
|
+
renderSlot(_ctx.$slots, "header")
|
|
37814
|
+
])) : createCommentVNode("", true),
|
|
37815
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
37816
|
+
renderSlot(_ctx.$slots, "default")
|
|
37817
|
+
])
|
|
37818
|
+
]);
|
|
37819
|
+
};
|
|
37820
|
+
}
|
|
37821
|
+
});
|
|
37433
37822
|
const _hoisted_1$a = { class: "flex-center" };
|
|
37434
37823
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
37435
37824
|
__name: "Loading",
|
|
@@ -37846,7 +38235,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37846
38235
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
|
|
37847
38236
|
}, createSlots({
|
|
37848
38237
|
default: withCtx(() => [
|
|
37849
|
-
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38238
|
+
_ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$R), {
|
|
37850
38239
|
key: 0,
|
|
37851
38240
|
ref_key: "form",
|
|
37852
38241
|
ref: form,
|
|
@@ -37942,7 +38331,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37942
38331
|
onClick: toggleMenu,
|
|
37943
38332
|
onKeypress: withKeys(toggleMenu, ["enter"])
|
|
37944
38333
|
}, [
|
|
37945
|
-
createVNode(unref(_sfc_main$
|
|
38334
|
+
createVNode(unref(_sfc_main$q), {
|
|
37946
38335
|
icon: "chevron_right",
|
|
37947
38336
|
class: "top-arrow"
|
|
37948
38337
|
})
|
|
@@ -37961,7 +38350,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37961
38350
|
}
|
|
37962
38351
|
}, {
|
|
37963
38352
|
default: withCtx(() => [
|
|
37964
|
-
createVNode(unref(_sfc_main$
|
|
38353
|
+
createVNode(unref(_sfc_main$q), {
|
|
37965
38354
|
icon: link.icon
|
|
37966
38355
|
}, null, 8, ["icon"]),
|
|
37967
38356
|
createElementVNode("div", _hoisted_4$2, toDisplayString(link.label), 1)
|
|
@@ -37983,7 +38372,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37983
38372
|
}
|
|
37984
38373
|
}, {
|
|
37985
38374
|
default: withCtx(() => [
|
|
37986
|
-
createVNode(unref(_sfc_main$
|
|
38375
|
+
createVNode(unref(_sfc_main$q), {
|
|
37987
38376
|
icon: link.icon
|
|
37988
38377
|
}, null, 8, ["icon"]),
|
|
37989
38378
|
createElementVNode("div", _hoisted_6$2, toDisplayString(link.label), 1)
|
|
@@ -38060,8 +38449,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
38060
38449
|
},
|
|
38061
38450
|
setup(__props) {
|
|
38062
38451
|
useCssVars((_ctx) => ({
|
|
38063
|
-
"
|
|
38064
|
-
"
|
|
38452
|
+
"2a89394f": computedBackgroundColor.value,
|
|
38453
|
+
"369cf12c": cumputedTextColor.value
|
|
38065
38454
|
}));
|
|
38066
38455
|
const props2 = __props;
|
|
38067
38456
|
const slots = useSlots();
|
|
@@ -38128,15 +38517,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
38128
38517
|
}, _ctx.btn), null, 16)
|
|
38129
38518
|
])) : createCommentVNode("", true)
|
|
38130
38519
|
])),
|
|
38131
|
-
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38520
|
+
_ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
38132
38521
|
key: 2,
|
|
38133
38522
|
icon: _ctx.icon
|
|
38134
38523
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
38135
38524
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
38136
|
-
!unref(slots).default
|
|
38525
|
+
!unref(slots).default ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
38137
38526
|
createTextVNode(toDisplayString(_ctx.value || _ctx.modelValue), 1)
|
|
38138
38527
|
], 64)) : createCommentVNode("", true),
|
|
38139
|
-
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$
|
|
38528
|
+
_ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
38140
38529
|
key: 4,
|
|
38141
38530
|
icon: _ctx.iconEnd
|
|
38142
38531
|
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
@@ -38154,7 +38543,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
38154
38543
|
};
|
|
38155
38544
|
}
|
|
38156
38545
|
});
|
|
38157
|
-
const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
38546
|
+
const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-2ca4d3a1"]]);
|
|
38158
38547
|
const _sfc_main$5 = {};
|
|
38159
38548
|
function _sfc_render$2(_ctx, _cache) {
|
|
38160
38549
|
const _component_router_view = resolveComponent("router-view");
|
|
@@ -38222,39 +38611,39 @@ function _sfc_render(_ctx, _cache) {
|
|
|
38222
38611
|
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]);
|
|
38223
38612
|
class TapDetector {
|
|
38224
38613
|
constructor() {
|
|
38225
|
-
|
|
38226
|
-
|
|
38227
|
-
|
|
38228
|
-
|
|
38229
|
-
|
|
38230
|
-
|
|
38231
|
-
|
|
38232
|
-
|
|
38233
|
-
|
|
38614
|
+
__publicField(this, "singleTapCallbacks", []);
|
|
38615
|
+
__publicField(this, "doubleTapCallbacks", []);
|
|
38616
|
+
__publicField(this, "isTouchMode", false);
|
|
38617
|
+
__publicField(this, "lastTapTimestamp", 0);
|
|
38618
|
+
__publicField(this, "tappedCount", 0);
|
|
38619
|
+
__publicField(this, "touchMovedLength", 0);
|
|
38620
|
+
__publicField(this, "lastPointerX", 0);
|
|
38621
|
+
__publicField(this, "lastPointerY", 0);
|
|
38622
|
+
__publicField(this, "onTouchStart", (event) => {
|
|
38234
38623
|
this.isTouchMode = true;
|
|
38235
38624
|
if (event.touches.length === 1) {
|
|
38236
38625
|
this.onPointerDown(event.touches[0].clientX, event.touches[0].clientY);
|
|
38237
38626
|
}
|
|
38238
38627
|
});
|
|
38239
|
-
|
|
38628
|
+
__publicField(this, "onTouchMove", (event) => {
|
|
38240
38629
|
if (event.touches.length === 1) {
|
|
38241
38630
|
this.onPointerMove(event.touches[0].clientX, event.touches[0].clientY);
|
|
38242
38631
|
}
|
|
38243
38632
|
});
|
|
38244
|
-
|
|
38633
|
+
__publicField(this, "onTouchEnd", () => {
|
|
38245
38634
|
if (this.isTouchMode) this.onPointerUp();
|
|
38246
38635
|
});
|
|
38247
|
-
|
|
38636
|
+
__publicField(this, "onMouseDown", (event) => {
|
|
38248
38637
|
if (!this.isTouchMode) {
|
|
38249
38638
|
this.onPointerDown(event.clientX, event.clientY);
|
|
38250
38639
|
}
|
|
38251
38640
|
});
|
|
38252
|
-
|
|
38641
|
+
__publicField(this, "onMouseMove", (event) => {
|
|
38253
38642
|
if (!this.isTouchMode && event.button === 0) {
|
|
38254
38643
|
this.onPointerMove(event.clientX, event.clientY);
|
|
38255
38644
|
}
|
|
38256
38645
|
});
|
|
38257
|
-
|
|
38646
|
+
__publicField(this, "onMouseUp", () => {
|
|
38258
38647
|
if (!this.isTouchMode) this.onPointerUp();
|
|
38259
38648
|
});
|
|
38260
38649
|
}
|
|
@@ -38646,6 +39035,67 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
38646
39035
|
}
|
|
38647
39036
|
});
|
|
38648
39037
|
const Zoomer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-379819e1"]]);
|
|
39038
|
+
const FORM_STATE_KEY = Symbol("bagelFormState");
|
|
39039
|
+
function safeClone(obj) {
|
|
39040
|
+
if (obj === null || typeof obj !== "object") return obj;
|
|
39041
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
39042
|
+
return JSON.parse(JSON.stringify(obj, (key, value) => {
|
|
39043
|
+
if (typeof value === "object" && value !== null) {
|
|
39044
|
+
if (seen.has(value)) {
|
|
39045
|
+
return void 0;
|
|
39046
|
+
}
|
|
39047
|
+
seen.add(value);
|
|
39048
|
+
}
|
|
39049
|
+
return value;
|
|
39050
|
+
}));
|
|
39051
|
+
}
|
|
39052
|
+
function provideBagelFormState(initialData) {
|
|
39053
|
+
const data2 = ref(initialData);
|
|
39054
|
+
const isDirty = ref(false);
|
|
39055
|
+
const getFieldData = (path) => {
|
|
39056
|
+
if (!path) return "";
|
|
39057
|
+
const keys4 = path.split(/[.[]/);
|
|
39058
|
+
let current = data2.value;
|
|
39059
|
+
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
39060
|
+
const key = keys4[i2];
|
|
39061
|
+
if (!current || typeof current !== "object" || !(key in current)) {
|
|
39062
|
+
return "";
|
|
39063
|
+
}
|
|
39064
|
+
current = current[key];
|
|
39065
|
+
}
|
|
39066
|
+
return current ?? "";
|
|
39067
|
+
};
|
|
39068
|
+
const updateField = (path, value) => {
|
|
39069
|
+
const keys4 = path.split(/[.[]/);
|
|
39070
|
+
if (typeof data2.value !== "object" || data2.value === null) {
|
|
39071
|
+
data2.value = {};
|
|
39072
|
+
}
|
|
39073
|
+
let current = data2.value;
|
|
39074
|
+
for (let i2 = 0; i2 < keys4.length - 1; i2++) {
|
|
39075
|
+
const key = keys4[i2];
|
|
39076
|
+
if (!(key in current) || typeof current[key] !== "object" || current[key] === null) {
|
|
39077
|
+
current[key] = {};
|
|
39078
|
+
}
|
|
39079
|
+
current = current[key];
|
|
39080
|
+
}
|
|
39081
|
+
const safeValue = safeClone(value);
|
|
39082
|
+
current[keys4[keys4.length - 1]] = safeValue;
|
|
39083
|
+
isDirty.value = true;
|
|
39084
|
+
};
|
|
39085
|
+
const state2 = {
|
|
39086
|
+
data: data2,
|
|
39087
|
+
getFieldData,
|
|
39088
|
+
updateField,
|
|
39089
|
+
isDirty
|
|
39090
|
+
};
|
|
39091
|
+
provide(FORM_STATE_KEY, state2);
|
|
39092
|
+
return state2;
|
|
39093
|
+
}
|
|
39094
|
+
function useBagelFormState() {
|
|
39095
|
+
const state2 = inject(FORM_STATE_KEY);
|
|
39096
|
+
if (!state2) throw new Error("BagelFormState must be provided");
|
|
39097
|
+
return state2;
|
|
39098
|
+
}
|
|
38649
39099
|
function useBglSchema({ schema, showFields, data: data2 } = {}) {
|
|
38650
39100
|
let _schema = schema;
|
|
38651
39101
|
if (typeof _schema === "function") {
|
|
@@ -38666,12 +39116,6 @@ function localRef(key, initialValue) {
|
|
|
38666
39116
|
return value;
|
|
38667
39117
|
}
|
|
38668
39118
|
const useLocalStorage = localRef;
|
|
38669
|
-
var __defProp = Object.defineProperty;
|
|
38670
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
38671
|
-
var __publicField = (obj, key, value) => {
|
|
38672
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38673
|
-
return value;
|
|
38674
|
-
};
|
|
38675
39119
|
const axios = axios$1.create({
|
|
38676
39120
|
withCredentials: true
|
|
38677
39121
|
});
|
|
@@ -38686,8 +39130,7 @@ class DataRequest {
|
|
|
38686
39130
|
this.itemID = "";
|
|
38687
39131
|
}
|
|
38688
39132
|
async post(item) {
|
|
38689
|
-
if (!this.data_table)
|
|
38690
|
-
throw new Error("Data table not set");
|
|
39133
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
38691
39134
|
const { data: data2 } = await axios.post(`/data/${this.data_table}`, item);
|
|
38692
39135
|
return data2;
|
|
38693
39136
|
}
|
|
@@ -38697,8 +39140,7 @@ class DataRequest {
|
|
|
38697
39140
|
}
|
|
38698
39141
|
async get() {
|
|
38699
39142
|
var _a2, _b;
|
|
38700
|
-
if (!this.data_table)
|
|
38701
|
-
throw new Error("Data table not set");
|
|
39143
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
38702
39144
|
const filterStr = Object.keys(this._filter).length > 0 ? `?filter={${Object.entries(this._filter).map(([k2, v2]) => `${k2}:${v2}`).join(",")}}` : "";
|
|
38703
39145
|
const url = `/data/${this.data_table}${this.itemID ? `/${this.itemID}` : ""}${filterStr}`;
|
|
38704
39146
|
try {
|
|
@@ -38715,8 +39157,7 @@ class DataRequest {
|
|
|
38715
39157
|
return this;
|
|
38716
39158
|
}
|
|
38717
39159
|
async delete() {
|
|
38718
|
-
if (!this.data_table)
|
|
38719
|
-
throw new Error("Data table not set");
|
|
39160
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
38720
39161
|
const { data: data2 } = await axios.delete(
|
|
38721
39162
|
`/data/${this.data_table}/${this.itemID}`
|
|
38722
39163
|
);
|
|
@@ -38724,10 +39165,8 @@ class DataRequest {
|
|
|
38724
39165
|
}
|
|
38725
39166
|
async put(updatedItem) {
|
|
38726
39167
|
const { data_table, itemID } = this;
|
|
38727
|
-
if (!data_table)
|
|
38728
|
-
|
|
38729
|
-
if (!itemID)
|
|
38730
|
-
throw new Error("Item ID not set");
|
|
39168
|
+
if (!data_table) throw new Error("Data table not set");
|
|
39169
|
+
if (!itemID) throw new Error("Item ID not set");
|
|
38731
39170
|
const { data: data2 } = await axios.put(
|
|
38732
39171
|
`/data/${data_table}/${itemID}`,
|
|
38733
39172
|
updatedItem
|
|
@@ -38744,9 +39183,9 @@ function responses(key) {
|
|
|
38744
39183
|
}
|
|
38745
39184
|
class BagelAuth {
|
|
38746
39185
|
constructor(bagel) {
|
|
38747
|
-
this.bagel = bagel;
|
|
38748
39186
|
__publicField(this, "user");
|
|
38749
39187
|
this.bagel = bagel;
|
|
39188
|
+
this.bagel = bagel;
|
|
38750
39189
|
}
|
|
38751
39190
|
async validateUser() {
|
|
38752
39191
|
try {
|
|
@@ -38848,12 +39287,10 @@ class Bagel {
|
|
|
38848
39287
|
async get(endpoint, query) {
|
|
38849
39288
|
this._setAuthorization();
|
|
38850
39289
|
endpoint = this._endpointCleaner(endpoint);
|
|
38851
|
-
if (/undefined|null/.test(endpoint))
|
|
38852
|
-
throw new Error(`Invalid endpoint: ${endpoint}`);
|
|
39290
|
+
if (/undefined|null/.test(endpoint)) throw new Error(`Invalid endpoint: ${endpoint}`);
|
|
38853
39291
|
if (query) {
|
|
38854
39292
|
const queryParams = Object.entries(query).filter(([_2, value]) => !!value).map(([key, value]) => `${key}=${value}`).join("&");
|
|
38855
|
-
if (queryParams)
|
|
38856
|
-
endpoint = `${endpoint}?${queryParams}`;
|
|
39293
|
+
if (queryParams) endpoint = `${endpoint}?${queryParams}`;
|
|
38857
39294
|
}
|
|
38858
39295
|
const url = `/${endpoint}`;
|
|
38859
39296
|
return axios.get(url).then(({ data: data2 }) => data2).catch((err) => {
|
|
@@ -38908,8 +39345,7 @@ class Bagel {
|
|
|
38908
39345
|
const formData = new FormData();
|
|
38909
39346
|
formData.append("file", file);
|
|
38910
39347
|
let url = "/static_files/upload";
|
|
38911
|
-
if (options == null ? void 0 : options.topic)
|
|
38912
|
-
url = `/static_files/upload?topic=${options.topic}`;
|
|
39348
|
+
if (options == null ? void 0 : options.topic) url = `/static_files/upload?topic=${options.topic}`;
|
|
38913
39349
|
const { data: data2 } = await axios.post(url, formData, {
|
|
38914
39350
|
headers: {
|
|
38915
39351
|
"Content-Type": "multipart/form-data"
|
|
@@ -39126,13 +39562,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39126
39562
|
title: item == null ? void 0 : item.name,
|
|
39127
39563
|
class: "vw90"
|
|
39128
39564
|
}, null, 8, _hoisted_5)) : (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
39129
|
-
createVNode(unref(_sfc_main$
|
|
39565
|
+
createVNode(unref(_sfc_main$q), {
|
|
39130
39566
|
class: "m-0 m_none",
|
|
39131
39567
|
icon: "draft",
|
|
39132
39568
|
size: 10,
|
|
39133
39569
|
weight: "12"
|
|
39134
39570
|
}),
|
|
39135
|
-
createVNode(unref(_sfc_main$
|
|
39571
|
+
createVNode(unref(_sfc_main$q), {
|
|
39136
39572
|
class: "m-0 none m_block m_-mb-1",
|
|
39137
39573
|
icon: "draft",
|
|
39138
39574
|
size: 4,
|
|
@@ -39171,7 +39607,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39171
39607
|
src: item.src,
|
|
39172
39608
|
alt: "",
|
|
39173
39609
|
onClick: ($event) => selectItem(index2)
|
|
39174
|
-
}, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
39610
|
+
}, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(_sfc_main$q), {
|
|
39175
39611
|
key: 1,
|
|
39176
39612
|
class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
|
|
39177
39613
|
icon: "description",
|
|
@@ -40311,11 +40747,10 @@ export {
|
|
|
40311
40747
|
Alert,
|
|
40312
40748
|
Avatar,
|
|
40313
40749
|
Badge,
|
|
40314
|
-
_sfc_main$
|
|
40750
|
+
_sfc_main$R as BagelForm,
|
|
40315
40751
|
BagelVue,
|
|
40316
40752
|
_sfc_main$10 as BglComponent,
|
|
40317
|
-
_sfc_main$
|
|
40318
|
-
_sfc_main$S as BglForm,
|
|
40753
|
+
_sfc_main$R as BglForm,
|
|
40319
40754
|
BglVideo,
|
|
40320
40755
|
BottomMenu,
|
|
40321
40756
|
Btn,
|
|
@@ -40324,28 +40759,29 @@ export {
|
|
|
40324
40759
|
CheckInput,
|
|
40325
40760
|
Checkbox,
|
|
40326
40761
|
CodeEditor,
|
|
40327
|
-
_sfc_main$
|
|
40762
|
+
_sfc_main$M as ColorPicker,
|
|
40328
40763
|
DataPreview,
|
|
40329
40764
|
DataTable,
|
|
40330
|
-
_sfc_main$
|
|
40765
|
+
_sfc_main$L as DateInput,
|
|
40331
40766
|
DatePick,
|
|
40332
|
-
_sfc_main$
|
|
40333
|
-
_sfc_main$V as
|
|
40767
|
+
_sfc_main$J as DatePicker,
|
|
40768
|
+
_sfc_main$V as Draggable,
|
|
40769
|
+
_sfc_main$U as Dropdown,
|
|
40334
40770
|
FORM_STATE_KEY,
|
|
40335
|
-
_sfc_main$
|
|
40771
|
+
_sfc_main$Q as FieldArray,
|
|
40336
40772
|
FieldSetVue,
|
|
40337
40773
|
FileUpload,
|
|
40338
40774
|
Flag,
|
|
40339
40775
|
IMAGE_FORMATS,
|
|
40340
40776
|
IMAGE_FORMATS_REGEXP,
|
|
40341
|
-
_sfc_main$
|
|
40342
|
-
_sfc_main$
|
|
40777
|
+
_sfc_main$q as Icon,
|
|
40778
|
+
_sfc_main$p as IframeVue,
|
|
40343
40779
|
Image$1 as Image,
|
|
40344
40780
|
JSONInput,
|
|
40345
40781
|
Layout,
|
|
40346
40782
|
_sfc_main$Y as Lineart,
|
|
40347
40783
|
_sfc_main$f as ListItem,
|
|
40348
|
-
ListView,
|
|
40784
|
+
_sfc_main$e as ListView,
|
|
40349
40785
|
Loading,
|
|
40350
40786
|
_sfc_main$c as MapEmbed,
|
|
40351
40787
|
_sfc_main$b as Modal,
|
|
@@ -40356,7 +40792,7 @@ export {
|
|
|
40356
40792
|
NumberInput,
|
|
40357
40793
|
OTP,
|
|
40358
40794
|
_sfc_main$7 as PageTitle,
|
|
40359
|
-
_sfc_main$
|
|
40795
|
+
_sfc_main$E as PasswordInput,
|
|
40360
40796
|
Pill,
|
|
40361
40797
|
RadioGroup,
|
|
40362
40798
|
RadioPillsInput,
|
|
@@ -40365,13 +40801,13 @@ export {
|
|
|
40365
40801
|
RouterWrapper,
|
|
40366
40802
|
SelectInput,
|
|
40367
40803
|
SidebarMenu,
|
|
40368
|
-
_sfc_main$
|
|
40804
|
+
_sfc_main$w as SignaturePad,
|
|
40369
40805
|
Skeleton,
|
|
40370
40806
|
TabbedLayout,
|
|
40371
40807
|
TableField,
|
|
40372
40808
|
DataTable as TableSchema,
|
|
40373
|
-
_sfc_main$
|
|
40374
|
-
_sfc_main$
|
|
40809
|
+
_sfc_main$i as Tabs,
|
|
40810
|
+
_sfc_main$h as TabsBody,
|
|
40375
40811
|
TabsNav,
|
|
40376
40812
|
TelInput,
|
|
40377
40813
|
TextInput,
|
|
@@ -40411,9 +40847,11 @@ export {
|
|
|
40411
40847
|
useBagelFormState,
|
|
40412
40848
|
useBglSchema,
|
|
40413
40849
|
useDebounceFn,
|
|
40850
|
+
useDraggable,
|
|
40414
40851
|
useEscape,
|
|
40415
40852
|
useI18nT,
|
|
40416
40853
|
useLang,
|
|
40417
40854
|
useLocalStorage,
|
|
40418
|
-
useModal
|
|
40855
|
+
useModal,
|
|
40856
|
+
vDraggable
|
|
40419
40857
|
};
|