@bagelink/vue 0.0.1182 → 0.0.1188
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/Carousel.vue.d.ts.map +1 -1
- package/dist/components/ComboBox.vue.d.ts +3 -3
- package/dist/components/Comments.vue.d.ts +2 -2
- package/dist/components/ContactSubmissions.vue.d.ts +2 -2
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- 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 +2 -0
- package/dist/components/form/BagelForm.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/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/TextArea.vue.d.ts +3 -3
- 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/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/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 +110 -112
- package/dist/index.mjs +110 -112
- 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 +10 -10
- 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/Carousel.vue +18 -4
- package/src/components/form/BagelForm.vue +2 -0
- 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/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
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
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({
|
|
@@ -879,7 +879,10 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
879
879
|
if (autoPlayInterval) clearInterval(autoPlayInterval);
|
|
880
880
|
}
|
|
881
881
|
function preventDefaultClick(e) {
|
|
882
|
-
if (isDragging.value)
|
|
882
|
+
if (isDragging.value) {
|
|
883
|
+
e.preventDefault();
|
|
884
|
+
e.stopPropagation();
|
|
885
|
+
}
|
|
883
886
|
}
|
|
884
887
|
async function disableDrag() {
|
|
885
888
|
await nextTick();
|
|
@@ -887,13 +890,15 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
887
890
|
const elements = Array.from(bglSlider.value.querySelectorAll("img, a"));
|
|
888
891
|
elements.forEach((el) => {
|
|
889
892
|
el.setAttribute("draggable", "false");
|
|
893
|
+
el.removeEventListener("click", preventDefaultClick, true);
|
|
894
|
+
el.addEventListener("click", preventDefaultClick, true);
|
|
890
895
|
});
|
|
891
896
|
const slides = Array.from(bglSlider.value.children);
|
|
892
897
|
slides.forEach((slide) => {
|
|
893
898
|
const element = slide;
|
|
894
899
|
element.setAttribute("draggable", "false");
|
|
895
|
-
element.removeEventListener("click", preventDefaultClick);
|
|
896
|
-
element.addEventListener("click", preventDefaultClick);
|
|
900
|
+
element.removeEventListener("click", preventDefaultClick, true);
|
|
901
|
+
element.addEventListener("click", preventDefaultClick, true);
|
|
897
902
|
});
|
|
898
903
|
}
|
|
899
904
|
function startDrag(e) {
|
|
@@ -903,6 +908,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
903
908
|
startX.value = e.pageX;
|
|
904
909
|
translateX2.value = getCurrentTransform();
|
|
905
910
|
isPressed.value = true;
|
|
911
|
+
isDragging.value = false;
|
|
906
912
|
document.addEventListener("mousemove", onDrag);
|
|
907
913
|
document.addEventListener("mouseup", endDrag);
|
|
908
914
|
}
|
|
@@ -942,7 +948,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
942
948
|
}
|
|
943
949
|
targetPanel = Math.max(0, Math.min(targetPanel, slideCount.value - 1));
|
|
944
950
|
goToSlide(targetPanel, true);
|
|
945
|
-
|
|
951
|
+
if (isDragging.value) {
|
|
952
|
+
setTimeout(() => {
|
|
953
|
+
isDragging.value = false;
|
|
954
|
+
}, 10);
|
|
955
|
+
}
|
|
946
956
|
}
|
|
947
957
|
let hasScrollDirectionLock = ref(false);
|
|
948
958
|
let isHorizontalScroll = ref(false);
|
|
@@ -1170,7 +1180,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1170
1180
|
};
|
|
1171
1181
|
}
|
|
1172
1182
|
});
|
|
1173
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
1183
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-3a1530dc"]]);
|
|
1174
1184
|
function _isPlaceholder(a2) {
|
|
1175
1185
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
1176
1186
|
}
|
|
@@ -11642,6 +11652,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
11642
11652
|
key: field.id
|
|
11643
11653
|
});
|
|
11644
11654
|
}), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
11655
|
+
renderSlot(_ctx.$slots, "success"),
|
|
11656
|
+
renderSlot(_ctx.$slots, "error"),
|
|
11645
11657
|
renderSlot(_ctx.$slots, "submit", {
|
|
11646
11658
|
submit: handleSubmit,
|
|
11647
11659
|
isDirty: isDirty.value,
|
|
@@ -13773,7 +13785,7 @@ function transpose(fromDate, constructor) {
|
|
|
13773
13785
|
const TIMEZONE_UNIT_PRIORITY = 10;
|
|
13774
13786
|
class Setter {
|
|
13775
13787
|
constructor() {
|
|
13776
|
-
|
|
13788
|
+
__publicField(this, "subPriority", 0);
|
|
13777
13789
|
}
|
|
13778
13790
|
validate(_utcDate, _options) {
|
|
13779
13791
|
return true;
|
|
@@ -13800,8 +13812,8 @@ class ValueSetter extends Setter {
|
|
|
13800
13812
|
class DateToSystemTimezoneSetter extends Setter {
|
|
13801
13813
|
constructor() {
|
|
13802
13814
|
super(...arguments);
|
|
13803
|
-
|
|
13804
|
-
|
|
13815
|
+
__publicField(this, "priority", TIMEZONE_UNIT_PRIORITY);
|
|
13816
|
+
__publicField(this, "subPriority", -1);
|
|
13805
13817
|
}
|
|
13806
13818
|
set(date2, flags) {
|
|
13807
13819
|
if (flags.timestampIsSet) return date2;
|
|
@@ -13832,8 +13844,8 @@ class Parser {
|
|
|
13832
13844
|
class EraParser extends Parser {
|
|
13833
13845
|
constructor() {
|
|
13834
13846
|
super(...arguments);
|
|
13835
|
-
|
|
13836
|
-
|
|
13847
|
+
__publicField(this, "priority", 140);
|
|
13848
|
+
__publicField(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
13837
13849
|
}
|
|
13838
13850
|
parse(dateString, token, match2) {
|
|
13839
13851
|
switch (token) {
|
|
@@ -14011,8 +14023,8 @@ function isLeapYearIndex(year) {
|
|
|
14011
14023
|
class YearParser extends Parser {
|
|
14012
14024
|
constructor() {
|
|
14013
14025
|
super(...arguments);
|
|
14014
|
-
|
|
14015
|
-
|
|
14026
|
+
__publicField(this, "priority", 130);
|
|
14027
|
+
__publicField(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
14016
14028
|
}
|
|
14017
14029
|
parse(dateString, token, match2) {
|
|
14018
14030
|
const valueCallback = (year) => ({
|
|
@@ -14056,8 +14068,8 @@ class YearParser extends Parser {
|
|
|
14056
14068
|
class LocalWeekYearParser extends Parser {
|
|
14057
14069
|
constructor() {
|
|
14058
14070
|
super(...arguments);
|
|
14059
|
-
|
|
14060
|
-
|
|
14071
|
+
__publicField(this, "priority", 130);
|
|
14072
|
+
__publicField(this, "incompatibleTokens", [
|
|
14061
14073
|
"y",
|
|
14062
14074
|
"R",
|
|
14063
14075
|
"u",
|
|
@@ -14119,8 +14131,8 @@ class LocalWeekYearParser extends Parser {
|
|
|
14119
14131
|
class ISOWeekYearParser extends Parser {
|
|
14120
14132
|
constructor() {
|
|
14121
14133
|
super(...arguments);
|
|
14122
|
-
|
|
14123
|
-
|
|
14134
|
+
__publicField(this, "priority", 130);
|
|
14135
|
+
__publicField(this, "incompatibleTokens", [
|
|
14124
14136
|
"G",
|
|
14125
14137
|
"y",
|
|
14126
14138
|
"Y",
|
|
@@ -14154,8 +14166,8 @@ class ISOWeekYearParser extends Parser {
|
|
|
14154
14166
|
class ExtendedYearParser extends Parser {
|
|
14155
14167
|
constructor() {
|
|
14156
14168
|
super(...arguments);
|
|
14157
|
-
|
|
14158
|
-
|
|
14169
|
+
__publicField(this, "priority", 130);
|
|
14170
|
+
__publicField(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
14159
14171
|
}
|
|
14160
14172
|
parse(dateString, token) {
|
|
14161
14173
|
if (token === "u") {
|
|
@@ -14172,8 +14184,8 @@ class ExtendedYearParser extends Parser {
|
|
|
14172
14184
|
class QuarterParser extends Parser {
|
|
14173
14185
|
constructor() {
|
|
14174
14186
|
super(...arguments);
|
|
14175
|
-
|
|
14176
|
-
|
|
14187
|
+
__publicField(this, "priority", 120);
|
|
14188
|
+
__publicField(this, "incompatibleTokens", [
|
|
14177
14189
|
"Y",
|
|
14178
14190
|
"R",
|
|
14179
14191
|
"q",
|
|
@@ -14241,8 +14253,8 @@ class QuarterParser extends Parser {
|
|
|
14241
14253
|
class StandAloneQuarterParser extends Parser {
|
|
14242
14254
|
constructor() {
|
|
14243
14255
|
super(...arguments);
|
|
14244
|
-
|
|
14245
|
-
|
|
14256
|
+
__publicField(this, "priority", 120);
|
|
14257
|
+
__publicField(this, "incompatibleTokens", [
|
|
14246
14258
|
"Y",
|
|
14247
14259
|
"R",
|
|
14248
14260
|
"Q",
|
|
@@ -14310,7 +14322,7 @@ class StandAloneQuarterParser extends Parser {
|
|
|
14310
14322
|
class MonthParser extends Parser {
|
|
14311
14323
|
constructor() {
|
|
14312
14324
|
super(...arguments);
|
|
14313
|
-
|
|
14325
|
+
__publicField(this, "incompatibleTokens", [
|
|
14314
14326
|
"Y",
|
|
14315
14327
|
"R",
|
|
14316
14328
|
"q",
|
|
@@ -14325,7 +14337,7 @@ class MonthParser extends Parser {
|
|
|
14325
14337
|
"t",
|
|
14326
14338
|
"T"
|
|
14327
14339
|
]);
|
|
14328
|
-
|
|
14340
|
+
__publicField(this, "priority", 110);
|
|
14329
14341
|
}
|
|
14330
14342
|
parse(dateString, token, match2) {
|
|
14331
14343
|
const valueCallback = (value) => value - 1;
|
|
@@ -14380,8 +14392,8 @@ class MonthParser extends Parser {
|
|
|
14380
14392
|
class StandAloneMonthParser extends Parser {
|
|
14381
14393
|
constructor() {
|
|
14382
14394
|
super(...arguments);
|
|
14383
|
-
|
|
14384
|
-
|
|
14395
|
+
__publicField(this, "priority", 110);
|
|
14396
|
+
__publicField(this, "incompatibleTokens", [
|
|
14385
14397
|
"Y",
|
|
14386
14398
|
"R",
|
|
14387
14399
|
"q",
|
|
@@ -14456,8 +14468,8 @@ function setWeek(date2, week, options) {
|
|
|
14456
14468
|
class LocalWeekParser extends Parser {
|
|
14457
14469
|
constructor() {
|
|
14458
14470
|
super(...arguments);
|
|
14459
|
-
|
|
14460
|
-
|
|
14471
|
+
__publicField(this, "priority", 100);
|
|
14472
|
+
__publicField(this, "incompatibleTokens", [
|
|
14461
14473
|
"y",
|
|
14462
14474
|
"R",
|
|
14463
14475
|
"u",
|
|
@@ -14499,8 +14511,8 @@ function setISOWeek(date2, week) {
|
|
|
14499
14511
|
class ISOWeekParser extends Parser {
|
|
14500
14512
|
constructor() {
|
|
14501
14513
|
super(...arguments);
|
|
14502
|
-
|
|
14503
|
-
|
|
14514
|
+
__publicField(this, "priority", 100);
|
|
14515
|
+
__publicField(this, "incompatibleTokens", [
|
|
14504
14516
|
"y",
|
|
14505
14517
|
"Y",
|
|
14506
14518
|
"u",
|
|
@@ -14552,9 +14564,9 @@ const DAYS_IN_MONTH_LEAP_YEAR = [
|
|
|
14552
14564
|
class DateParser extends Parser {
|
|
14553
14565
|
constructor() {
|
|
14554
14566
|
super(...arguments);
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14567
|
+
__publicField(this, "priority", 90);
|
|
14568
|
+
__publicField(this, "subPriority", 1);
|
|
14569
|
+
__publicField(this, "incompatibleTokens", [
|
|
14558
14570
|
"Y",
|
|
14559
14571
|
"R",
|
|
14560
14572
|
"q",
|
|
@@ -14598,9 +14610,9 @@ class DateParser extends Parser {
|
|
|
14598
14610
|
class DayOfYearParser extends Parser {
|
|
14599
14611
|
constructor() {
|
|
14600
14612
|
super(...arguments);
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14613
|
+
__publicField(this, "priority", 90);
|
|
14614
|
+
__publicField(this, "subpriority", 1);
|
|
14615
|
+
__publicField(this, "incompatibleTokens", [
|
|
14604
14616
|
"Y",
|
|
14605
14617
|
"R",
|
|
14606
14618
|
"q",
|
|
@@ -14659,8 +14671,8 @@ function setDay(date2, day, options) {
|
|
|
14659
14671
|
class DayParser extends Parser {
|
|
14660
14672
|
constructor() {
|
|
14661
14673
|
super(...arguments);
|
|
14662
|
-
|
|
14663
|
-
|
|
14674
|
+
__publicField(this, "priority", 90);
|
|
14675
|
+
__publicField(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
14664
14676
|
}
|
|
14665
14677
|
parse(dateString, token, match2) {
|
|
14666
14678
|
switch (token) {
|
|
@@ -14702,8 +14714,8 @@ class DayParser extends Parser {
|
|
|
14702
14714
|
class LocalDayParser extends Parser {
|
|
14703
14715
|
constructor() {
|
|
14704
14716
|
super(...arguments);
|
|
14705
|
-
|
|
14706
|
-
|
|
14717
|
+
__publicField(this, "priority", 90);
|
|
14718
|
+
__publicField(this, "incompatibleTokens", [
|
|
14707
14719
|
"y",
|
|
14708
14720
|
"R",
|
|
14709
14721
|
"u",
|
|
@@ -14775,8 +14787,8 @@ class LocalDayParser extends Parser {
|
|
|
14775
14787
|
class StandAloneLocalDayParser extends Parser {
|
|
14776
14788
|
constructor() {
|
|
14777
14789
|
super(...arguments);
|
|
14778
|
-
|
|
14779
|
-
|
|
14790
|
+
__publicField(this, "priority", 90);
|
|
14791
|
+
__publicField(this, "incompatibleTokens", [
|
|
14780
14792
|
"y",
|
|
14781
14793
|
"R",
|
|
14782
14794
|
"u",
|
|
@@ -14854,8 +14866,8 @@ function setISODay(date2, day) {
|
|
|
14854
14866
|
class ISODayParser extends Parser {
|
|
14855
14867
|
constructor() {
|
|
14856
14868
|
super(...arguments);
|
|
14857
|
-
|
|
14858
|
-
|
|
14869
|
+
__publicField(this, "priority", 90);
|
|
14870
|
+
__publicField(this, "incompatibleTokens", [
|
|
14859
14871
|
"y",
|
|
14860
14872
|
"Y",
|
|
14861
14873
|
"u",
|
|
@@ -14957,8 +14969,8 @@ class ISODayParser extends Parser {
|
|
|
14957
14969
|
class AMPMParser extends Parser {
|
|
14958
14970
|
constructor() {
|
|
14959
14971
|
super(...arguments);
|
|
14960
|
-
|
|
14961
|
-
|
|
14972
|
+
__publicField(this, "priority", 80);
|
|
14973
|
+
__publicField(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
14962
14974
|
}
|
|
14963
14975
|
parse(dateString, token, match2) {
|
|
14964
14976
|
switch (token) {
|
|
@@ -14999,8 +15011,8 @@ class AMPMParser extends Parser {
|
|
|
14999
15011
|
class AMPMMidnightParser extends Parser {
|
|
15000
15012
|
constructor() {
|
|
15001
15013
|
super(...arguments);
|
|
15002
|
-
|
|
15003
|
-
|
|
15014
|
+
__publicField(this, "priority", 80);
|
|
15015
|
+
__publicField(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
15004
15016
|
}
|
|
15005
15017
|
parse(dateString, token, match2) {
|
|
15006
15018
|
switch (token) {
|
|
@@ -15041,8 +15053,8 @@ class AMPMMidnightParser extends Parser {
|
|
|
15041
15053
|
class DayPeriodParser extends Parser {
|
|
15042
15054
|
constructor() {
|
|
15043
15055
|
super(...arguments);
|
|
15044
|
-
|
|
15045
|
-
|
|
15056
|
+
__publicField(this, "priority", 80);
|
|
15057
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
15046
15058
|
}
|
|
15047
15059
|
parse(dateString, token, match2) {
|
|
15048
15060
|
switch (token) {
|
|
@@ -15083,8 +15095,8 @@ class DayPeriodParser extends Parser {
|
|
|
15083
15095
|
class Hour1to12Parser extends Parser {
|
|
15084
15096
|
constructor() {
|
|
15085
15097
|
super(...arguments);
|
|
15086
|
-
|
|
15087
|
-
|
|
15098
|
+
__publicField(this, "priority", 70);
|
|
15099
|
+
__publicField(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
15088
15100
|
}
|
|
15089
15101
|
parse(dateString, token, match2) {
|
|
15090
15102
|
switch (token) {
|
|
@@ -15114,8 +15126,8 @@ class Hour1to12Parser extends Parser {
|
|
|
15114
15126
|
class Hour0to23Parser extends Parser {
|
|
15115
15127
|
constructor() {
|
|
15116
15128
|
super(...arguments);
|
|
15117
|
-
|
|
15118
|
-
|
|
15129
|
+
__publicField(this, "priority", 70);
|
|
15130
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
15119
15131
|
}
|
|
15120
15132
|
parse(dateString, token, match2) {
|
|
15121
15133
|
switch (token) {
|
|
@@ -15138,8 +15150,8 @@ class Hour0to23Parser extends Parser {
|
|
|
15138
15150
|
class Hour0To11Parser extends Parser {
|
|
15139
15151
|
constructor() {
|
|
15140
15152
|
super(...arguments);
|
|
15141
|
-
|
|
15142
|
-
|
|
15153
|
+
__publicField(this, "priority", 70);
|
|
15154
|
+
__publicField(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
15143
15155
|
}
|
|
15144
15156
|
parse(dateString, token, match2) {
|
|
15145
15157
|
switch (token) {
|
|
@@ -15167,8 +15179,8 @@ class Hour0To11Parser extends Parser {
|
|
|
15167
15179
|
class Hour1To24Parser extends Parser {
|
|
15168
15180
|
constructor() {
|
|
15169
15181
|
super(...arguments);
|
|
15170
|
-
|
|
15171
|
-
|
|
15182
|
+
__publicField(this, "priority", 70);
|
|
15183
|
+
__publicField(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
15172
15184
|
}
|
|
15173
15185
|
parse(dateString, token, match2) {
|
|
15174
15186
|
switch (token) {
|
|
@@ -15192,8 +15204,8 @@ class Hour1To24Parser extends Parser {
|
|
|
15192
15204
|
class MinuteParser extends Parser {
|
|
15193
15205
|
constructor() {
|
|
15194
15206
|
super(...arguments);
|
|
15195
|
-
|
|
15196
|
-
|
|
15207
|
+
__publicField(this, "priority", 60);
|
|
15208
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
15197
15209
|
}
|
|
15198
15210
|
parse(dateString, token, match2) {
|
|
15199
15211
|
switch (token) {
|
|
@@ -15216,8 +15228,8 @@ class MinuteParser extends Parser {
|
|
|
15216
15228
|
class SecondParser extends Parser {
|
|
15217
15229
|
constructor() {
|
|
15218
15230
|
super(...arguments);
|
|
15219
|
-
|
|
15220
|
-
|
|
15231
|
+
__publicField(this, "priority", 50);
|
|
15232
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
15221
15233
|
}
|
|
15222
15234
|
parse(dateString, token, match2) {
|
|
15223
15235
|
switch (token) {
|
|
@@ -15240,8 +15252,8 @@ class SecondParser extends Parser {
|
|
|
15240
15252
|
class FractionOfSecondParser extends Parser {
|
|
15241
15253
|
constructor() {
|
|
15242
15254
|
super(...arguments);
|
|
15243
|
-
|
|
15244
|
-
|
|
15255
|
+
__publicField(this, "priority", 30);
|
|
15256
|
+
__publicField(this, "incompatibleTokens", ["t", "T"]);
|
|
15245
15257
|
}
|
|
15246
15258
|
parse(dateString, token) {
|
|
15247
15259
|
const valueCallback = (value) => Math.trunc(value * Math.pow(10, -token.length + 3));
|
|
@@ -15255,8 +15267,8 @@ class FractionOfSecondParser extends Parser {
|
|
|
15255
15267
|
class ISOTimezoneWithZParser extends Parser {
|
|
15256
15268
|
constructor() {
|
|
15257
15269
|
super(...arguments);
|
|
15258
|
-
|
|
15259
|
-
|
|
15270
|
+
__publicField(this, "priority", 10);
|
|
15271
|
+
__publicField(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
15260
15272
|
}
|
|
15261
15273
|
parse(dateString, token) {
|
|
15262
15274
|
switch (token) {
|
|
@@ -15293,8 +15305,8 @@ class ISOTimezoneWithZParser extends Parser {
|
|
|
15293
15305
|
class ISOTimezoneParser extends Parser {
|
|
15294
15306
|
constructor() {
|
|
15295
15307
|
super(...arguments);
|
|
15296
|
-
|
|
15297
|
-
|
|
15308
|
+
__publicField(this, "priority", 10);
|
|
15309
|
+
__publicField(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
15298
15310
|
}
|
|
15299
15311
|
parse(dateString, token) {
|
|
15300
15312
|
switch (token) {
|
|
@@ -15331,8 +15343,8 @@ class ISOTimezoneParser extends Parser {
|
|
|
15331
15343
|
class TimestampSecondsParser extends Parser {
|
|
15332
15344
|
constructor() {
|
|
15333
15345
|
super(...arguments);
|
|
15334
|
-
|
|
15335
|
-
|
|
15346
|
+
__publicField(this, "priority", 40);
|
|
15347
|
+
__publicField(this, "incompatibleTokens", "*");
|
|
15336
15348
|
}
|
|
15337
15349
|
parse(dateString) {
|
|
15338
15350
|
return parseAnyDigitsSigned(dateString);
|
|
@@ -15344,8 +15356,8 @@ class TimestampSecondsParser extends Parser {
|
|
|
15344
15356
|
class TimestampMillisecondsParser extends Parser {
|
|
15345
15357
|
constructor() {
|
|
15346
15358
|
super(...arguments);
|
|
15347
|
-
|
|
15348
|
-
|
|
15359
|
+
__publicField(this, "priority", 20);
|
|
15360
|
+
__publicField(this, "incompatibleTokens", "*");
|
|
15349
15361
|
}
|
|
15350
15362
|
parse(dateString) {
|
|
15351
15363
|
return parseAnyDigitsSigned(dateString);
|
|
@@ -38649,39 +38661,39 @@ function _sfc_render(_ctx, _cache) {
|
|
|
38649
38661
|
const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]);
|
|
38650
38662
|
class TapDetector {
|
|
38651
38663
|
constructor() {
|
|
38652
|
-
|
|
38653
|
-
|
|
38654
|
-
|
|
38655
|
-
|
|
38656
|
-
|
|
38657
|
-
|
|
38658
|
-
|
|
38659
|
-
|
|
38660
|
-
|
|
38664
|
+
__publicField(this, "singleTapCallbacks", []);
|
|
38665
|
+
__publicField(this, "doubleTapCallbacks", []);
|
|
38666
|
+
__publicField(this, "isTouchMode", false);
|
|
38667
|
+
__publicField(this, "lastTapTimestamp", 0);
|
|
38668
|
+
__publicField(this, "tappedCount", 0);
|
|
38669
|
+
__publicField(this, "touchMovedLength", 0);
|
|
38670
|
+
__publicField(this, "lastPointerX", 0);
|
|
38671
|
+
__publicField(this, "lastPointerY", 0);
|
|
38672
|
+
__publicField(this, "onTouchStart", (event) => {
|
|
38661
38673
|
this.isTouchMode = true;
|
|
38662
38674
|
if (event.touches.length === 1) {
|
|
38663
38675
|
this.onPointerDown(event.touches[0].clientX, event.touches[0].clientY);
|
|
38664
38676
|
}
|
|
38665
38677
|
});
|
|
38666
|
-
|
|
38678
|
+
__publicField(this, "onTouchMove", (event) => {
|
|
38667
38679
|
if (event.touches.length === 1) {
|
|
38668
38680
|
this.onPointerMove(event.touches[0].clientX, event.touches[0].clientY);
|
|
38669
38681
|
}
|
|
38670
38682
|
});
|
|
38671
|
-
|
|
38683
|
+
__publicField(this, "onTouchEnd", () => {
|
|
38672
38684
|
if (this.isTouchMode) this.onPointerUp();
|
|
38673
38685
|
});
|
|
38674
|
-
|
|
38686
|
+
__publicField(this, "onMouseDown", (event) => {
|
|
38675
38687
|
if (!this.isTouchMode) {
|
|
38676
38688
|
this.onPointerDown(event.clientX, event.clientY);
|
|
38677
38689
|
}
|
|
38678
38690
|
});
|
|
38679
|
-
|
|
38691
|
+
__publicField(this, "onMouseMove", (event) => {
|
|
38680
38692
|
if (!this.isTouchMode && event.button === 0) {
|
|
38681
38693
|
this.onPointerMove(event.clientX, event.clientY);
|
|
38682
38694
|
}
|
|
38683
38695
|
});
|
|
38684
|
-
|
|
38696
|
+
__publicField(this, "onMouseUp", () => {
|
|
38685
38697
|
if (!this.isTouchMode) this.onPointerUp();
|
|
38686
38698
|
});
|
|
38687
38699
|
}
|
|
@@ -39154,12 +39166,6 @@ function localRef(key, initialValue) {
|
|
|
39154
39166
|
return value;
|
|
39155
39167
|
}
|
|
39156
39168
|
const useLocalStorage = localRef;
|
|
39157
|
-
var __defProp = Object.defineProperty;
|
|
39158
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
39159
|
-
var __publicField = (obj, key, value) => {
|
|
39160
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
39161
|
-
return value;
|
|
39162
|
-
};
|
|
39163
39169
|
const axios = axios$1.create({
|
|
39164
39170
|
withCredentials: true
|
|
39165
39171
|
});
|
|
@@ -39174,8 +39180,7 @@ class DataRequest {
|
|
|
39174
39180
|
this.itemID = "";
|
|
39175
39181
|
}
|
|
39176
39182
|
async post(item) {
|
|
39177
|
-
if (!this.data_table)
|
|
39178
|
-
throw new Error("Data table not set");
|
|
39183
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
39179
39184
|
const { data: data2 } = await axios.post(`/data/${this.data_table}`, item);
|
|
39180
39185
|
return data2;
|
|
39181
39186
|
}
|
|
@@ -39185,8 +39190,7 @@ class DataRequest {
|
|
|
39185
39190
|
}
|
|
39186
39191
|
async get() {
|
|
39187
39192
|
var _a2, _b;
|
|
39188
|
-
if (!this.data_table)
|
|
39189
|
-
throw new Error("Data table not set");
|
|
39193
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
39190
39194
|
const filterStr = Object.keys(this._filter).length > 0 ? `?filter={${Object.entries(this._filter).map(([k2, v2]) => `${k2}:${v2}`).join(",")}}` : "";
|
|
39191
39195
|
const url = `/data/${this.data_table}${this.itemID ? `/${this.itemID}` : ""}${filterStr}`;
|
|
39192
39196
|
try {
|
|
@@ -39203,8 +39207,7 @@ class DataRequest {
|
|
|
39203
39207
|
return this;
|
|
39204
39208
|
}
|
|
39205
39209
|
async delete() {
|
|
39206
|
-
if (!this.data_table)
|
|
39207
|
-
throw new Error("Data table not set");
|
|
39210
|
+
if (!this.data_table) throw new Error("Data table not set");
|
|
39208
39211
|
const { data: data2 } = await axios.delete(
|
|
39209
39212
|
`/data/${this.data_table}/${this.itemID}`
|
|
39210
39213
|
);
|
|
@@ -39212,10 +39215,8 @@ class DataRequest {
|
|
|
39212
39215
|
}
|
|
39213
39216
|
async put(updatedItem) {
|
|
39214
39217
|
const { data_table, itemID } = this;
|
|
39215
|
-
if (!data_table)
|
|
39216
|
-
|
|
39217
|
-
if (!itemID)
|
|
39218
|
-
throw new Error("Item ID not set");
|
|
39218
|
+
if (!data_table) throw new Error("Data table not set");
|
|
39219
|
+
if (!itemID) throw new Error("Item ID not set");
|
|
39219
39220
|
const { data: data2 } = await axios.put(
|
|
39220
39221
|
`/data/${data_table}/${itemID}`,
|
|
39221
39222
|
updatedItem
|
|
@@ -39232,9 +39233,9 @@ function responses(key) {
|
|
|
39232
39233
|
}
|
|
39233
39234
|
class BagelAuth {
|
|
39234
39235
|
constructor(bagel) {
|
|
39235
|
-
this.bagel = bagel;
|
|
39236
39236
|
__publicField(this, "user");
|
|
39237
39237
|
this.bagel = bagel;
|
|
39238
|
+
this.bagel = bagel;
|
|
39238
39239
|
}
|
|
39239
39240
|
async validateUser() {
|
|
39240
39241
|
try {
|
|
@@ -39336,12 +39337,10 @@ class Bagel {
|
|
|
39336
39337
|
async get(endpoint, query) {
|
|
39337
39338
|
this._setAuthorization();
|
|
39338
39339
|
endpoint = this._endpointCleaner(endpoint);
|
|
39339
|
-
if (/undefined|null/.test(endpoint))
|
|
39340
|
-
throw new Error(`Invalid endpoint: ${endpoint}`);
|
|
39340
|
+
if (/undefined|null/.test(endpoint)) throw new Error(`Invalid endpoint: ${endpoint}`);
|
|
39341
39341
|
if (query) {
|
|
39342
39342
|
const queryParams = Object.entries(query).filter(([_2, value]) => !!value).map(([key, value]) => `${key}=${value}`).join("&");
|
|
39343
|
-
if (queryParams)
|
|
39344
|
-
endpoint = `${endpoint}?${queryParams}`;
|
|
39343
|
+
if (queryParams) endpoint = `${endpoint}?${queryParams}`;
|
|
39345
39344
|
}
|
|
39346
39345
|
const url = `/${endpoint}`;
|
|
39347
39346
|
return axios.get(url).then(({ data: data2 }) => data2).catch((err) => {
|
|
@@ -39396,8 +39395,7 @@ class Bagel {
|
|
|
39396
39395
|
const formData = new FormData();
|
|
39397
39396
|
formData.append("file", file);
|
|
39398
39397
|
let url = "/static_files/upload";
|
|
39399
|
-
if (options == null ? void 0 : options.topic)
|
|
39400
|
-
url = `/static_files/upload?topic=${options.topic}`;
|
|
39398
|
+
if (options == null ? void 0 : options.topic) url = `/static_files/upload?topic=${options.topic}`;
|
|
39401
39399
|
const { data: data2 } = await axios.post(url, formData, {
|
|
39402
39400
|
headers: {
|
|
39403
39401
|
"Content-Type": "multipart/form-data"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draggable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/draggable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,KAAK,CAAA;AAQ5D,QAAA,MAAM,kBAAkB,EAAE,eAKzB,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"droppable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/droppable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,KAAK,CAAA;AAQ5D,QAAA,MAAM,kBAAkB,EAAE,eAKzB,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/index.ts"],"names":[],"mappings":";iBAIc,GAAG;;AADjB,wBAKC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface DraggableOptions {
|
|
3
|
+
handle?: string;
|
|
4
|
+
onGenerateDragPreview?: (args: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useDraggable(el: Ref<HTMLElement | null>, data: any, options?: DraggableOptions): void;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=useDraggable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDraggable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/useDraggable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,UAAU,gBAAgB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;CAE3C;AAED,wBAAgB,YAAY,CAC3B,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3B,IAAI,EAAE,GAAG,EACT,OAAO,GAAE,gBAAqB,GAC5B,IAAI,CA0BN"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface DroppableOptions {
|
|
3
|
+
canDrop?: (args: any) => boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useDroppable(el: Ref<HTMLElement | null>, data: any, onDrop?: (event: any) => void, options?: DroppableOptions): void;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=useDroppable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDroppable.d.ts","sourceRoot":"","sources":["../../../src/plugins/drag-n-drop/useDroppable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAK9B,UAAU,gBAAgB;IACzB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAA;CAEhC;AAED,wBAAgB,YAAY,CAC3B,EAAE,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC3B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,EAC7B,OAAO,GAAE,gBAAqB,GAC5B,IAAI,CAqBN"}
|