@bagelink/vue 0.0.683 → 0.0.689
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion.vue.d.ts.map +1 -1
- package/dist/components/AccordionItem.vue.d.ts +8 -8
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/Alert.vue.d.ts +12 -11
- package/dist/components/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar.vue.d.ts +11 -11
- package/dist/components/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Badge.vue.d.ts +3 -2
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/BglVideo.vue.d.ts +2 -2
- package/dist/components/BglVideo.vue.d.ts.map +1 -1
- package/dist/components/Btn.vue.d.ts +13 -12
- package/dist/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Card.vue.d.ts +8 -8
- package/dist/components/Card.vue.d.ts.map +1 -1
- 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/DataPreview.vue.d.ts +30 -23
- package/dist/components/DataPreview.vue.d.ts.map +1 -1
- package/dist/components/DropDown.vue.d.ts +3 -3
- package/dist/components/Flag.vue.d.ts +3 -2
- package/dist/components/Flag.vue.d.ts.map +1 -1
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ListItem.vue.d.ts +8 -8
- package/dist/components/ListItem.vue.d.ts.map +1 -1
- package/dist/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/MapEmbed.vue.d.ts.map +1 -1
- package/dist/components/MaterialIcon.vue.d.ts +4 -4
- package/dist/components/MaterialIcon.vue.d.ts.map +1 -1
- package/dist/components/Modal.vue.d.ts +9 -8
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/ModalBglForm.vue.d.ts +20 -21
- package/dist/components/ModalConfirm.vue.d.ts +8 -8
- package/dist/components/ModalConfirm.vue.d.ts.map +1 -1
- package/dist/components/ModalForm.vue.d.ts +69 -29
- package/dist/components/ModalForm.vue.d.ts.map +1 -1
- package/dist/components/NavBar.vue.d.ts +12 -11
- package/dist/components/NavBar.vue.d.ts.map +1 -1
- package/dist/components/PageTitle.vue.d.ts.map +1 -1
- 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/RouterWrapper.vue.d.ts.map +1 -1
- package/dist/components/TabbedLayout.vue.d.ts +4 -5
- package/dist/components/TableSchema.vue.d.ts +9 -15
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/components/Title.vue.d.ts +1 -1
- package/dist/components/Title.vue.d.ts.map +1 -1
- package/dist/components/TopBar.vue.d.ts.map +1 -1
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/dashboard/Lineart.vue.d.ts +4 -3
- package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
- package/dist/components/form/BglField.vue.d.ts +6 -5
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts +13 -12
- package/dist/components/form/BglForm.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/CheckInput.vue.d.ts +43 -37
- package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkbox.vue.d.ts +5 -17
- package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ColorPicker.vue.d.ts +11 -11
- package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DateInput.vue.d.ts +12 -11
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts +4 -3
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FileUpload.vue.d.ts +11 -8
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/JSONInput.vue.d.ts +11 -11
- package/dist/components/form/inputs/JSONInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/PasswordInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/PlainText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RadioGroup.vue.d.ts +7 -12
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +13 -12
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichText.vue.d.ts +3 -3
- package/dist/components/form/inputs/RichText.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +4 -3
- package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText2/index.vue.d.ts +4 -3
- 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 +9 -8
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SignaturePad.vue.d.ts +12 -11
- package/dist/components/form/inputs/SignaturePad.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TableField.vue.d.ts +11 -11
- package/dist/components/form/inputs/TableField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TelInput.vue.d.ts +206 -112
- package/dist/components/form/inputs/TelInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.vue.d.ts +12 -11
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ToggleInput.vue.d.ts +45 -37
- package/dist/components/form/inputs/ToggleInput.vue.d.ts.map +1 -1
- package/dist/components/formkit/AddressArray.vue.d.ts +2 -2
- package/dist/components/formkit/BankDetailsArray.vue.d.ts +2 -2
- package/dist/components/formkit/ContactArrayFormKit.vue.d.ts +2 -2
- package/dist/components/formkit/FileUploader.vue.d.ts +2 -2
- package/dist/components/formkit/MiscFields.vue.d.ts +2 -2
- package/dist/components/formkit/Toggle.vue.d.ts +2 -2
- package/dist/components/layout/BottomMenu.vue.d.ts +9 -8
- package/dist/components/layout/BottomMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/Layout.vue.d.ts +11 -11
- package/dist/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarMenu.vue.d.ts +9 -8
- package/dist/components/layout/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/components/layout/TabbedLayout.vue.d.ts +9 -8
- package/dist/components/layout/TabbedLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/Tabs.vue.d.ts +9 -8
- package/dist/components/layout/Tabs.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsBody.vue.d.ts +8 -8
- package/dist/components/layout/TabsBody.vue.d.ts.map +1 -1
- package/dist/components/layout/TabsNav.vue.d.ts +4 -3
- package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
- 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/index.d.ts +1 -0
- package/dist/index.cjs +90 -161
- package/dist/index.mjs +90 -161
- package/dist/plugins/bagel.d.ts +1 -0
- package/dist/plugins/modal.d.ts +1 -0
- package/dist/style.css +18 -17
- package/dist/types/BagelForm.d.ts +1 -0
- package/dist/types/BtnOptions.d.ts +1 -0
- package/dist/types/NavLink.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/BagelFormUtils.d.ts +1 -0
- package/dist/utils/allCountries.d.ts +1 -0
- package/dist/utils/clickOutside.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/lang.d.ts +1 -3
- package/dist/utils/lang.d.ts.map +1 -1
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +11 -11
- package/src/components/form/inputs/FileUpload.vue +3 -1
- package/src/types/index.ts +0 -1
- package/src/utils/lang.ts +2 -9
- package/dist/components/Accordion.d.ts +0 -12
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/AccordionItem.d.ts +0 -34
- package/dist/components/AccordionItem.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -34
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Avatar.d.ts +0 -36
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -22
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/BglVideo.d.ts +0 -20
- package/dist/components/BglVideo.d.ts.map +0 -1
- package/dist/components/Btn.d.ts +0 -99
- package/dist/components/Btn.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -39
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Carousel.d.ts +0 -74
- package/dist/components/Carousel.d.ts.map +0 -1
- package/dist/components/DataPreview.d.ts +0 -42
- package/dist/components/DataPreview.d.ts.map +0 -1
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/Flag.d.ts +0 -20
- package/dist/components/Flag.d.ts.map +0 -1
- package/dist/components/ListItem.d.ts +0 -34
- package/dist/components/ListItem.d.ts.map +0 -1
- package/dist/components/ListView.d.ts +0 -13
- package/dist/components/ListView.d.ts.map +0 -1
- package/dist/components/MapEmbed.d.ts +0 -3
- package/dist/components/MapEmbed.d.ts.map +0 -1
- package/dist/components/MaterialIcon.d.ts +0 -26
- package/dist/components/MaterialIcon.d.ts.map +0 -1
- package/dist/components/Modal.d.ts +0 -46
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/ModalConfirm.d.ts +0 -24
- package/dist/components/ModalConfirm.d.ts.map +0 -1
- package/dist/components/ModalForm.d.ts +0 -78
- package/dist/components/ModalForm.d.ts.map +0 -1
- package/dist/components/NavBar.d.ts +0 -64
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/PageTitle.d.ts +0 -24
- package/dist/components/PageTitle.d.ts.map +0 -1
- package/dist/components/RouterWrapper.d.ts +0 -3
- package/dist/components/RouterWrapper.d.ts.map +0 -1
- package/dist/components/TableSchema.d.ts +0 -35
- package/dist/components/TableSchema.d.ts.map +0 -1
- package/dist/components/Title.d.ts +0 -42
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/TopBar.d.ts +0 -12
- package/dist/components/TopBar.d.ts.map +0 -1
- package/dist/components/dashboard/Lineart.d.ts +0 -20
- package/dist/components/dashboard/Lineart.d.ts.map +0 -1
- package/dist/components/form/BglField.d.ts +0 -25
- package/dist/components/form/BglField.d.ts.map +0 -1
- package/dist/components/form/BglForm.d.ts +0 -75
- package/dist/components/form/BglForm.d.ts.map +0 -1
- package/dist/components/form/inputs/CheckInput.d.ts +0 -56
- package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
- package/dist/components/form/inputs/Checkbox.d.ts +0 -16
- package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
- package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
- package/dist/components/form/inputs/DateInput.d.ts +0 -64
- package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
- package/dist/components/form/inputs/DatePicker.d.ts +0 -33
- package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
- package/dist/components/form/inputs/FileUpload.d.ts +0 -108
- package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
- package/dist/components/form/inputs/JSONInput.d.ts +0 -53
- package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
- package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText.d.ts +0 -20
- package/dist/components/form/inputs/RichText.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
- package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectInput.d.ts +0 -55
- package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
- package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
- package/dist/components/form/inputs/TableField.d.ts +0 -45
- package/dist/components/form/inputs/TableField.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.d.ts +0 -241
- package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
- package/dist/components/form/inputs/TextInput.d.ts +0 -90
- package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
- package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
- package/dist/components/layout/BottomMenu.d.ts +0 -27
- package/dist/components/layout/BottomMenu.d.ts.map +0 -1
- package/dist/components/layout/Layout.d.ts +0 -58
- package/dist/components/layout/Layout.d.ts.map +0 -1
- package/dist/components/layout/SidebarMenu.d.ts +0 -38
- package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
- package/dist/components/layout/TabbedLayout.d.ts +0 -42
- package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
- package/dist/components/layout/Tabs.d.ts +0 -31
- package/dist/components/layout/Tabs.d.ts.map +0 -1
- package/dist/components/layout/TabsBody.d.ts +0 -23
- package/dist/components/layout/TabsBody.d.ts.map +0 -1
- package/dist/components/layout/TabsNav.d.ts +0 -35
- package/dist/components/layout/TabsNav.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2847,26 +2847,6 @@ const toJSONObject = (obj) => {
|
|
|
2847
2847
|
};
|
|
2848
2848
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2849
2849
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2850
|
-
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2851
|
-
if (setImmediateSupported) {
|
|
2852
|
-
return setImmediate;
|
|
2853
|
-
}
|
|
2854
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
2855
|
-
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2856
|
-
if (source === _global && data2 === token) {
|
|
2857
|
-
callbacks.length && callbacks.shift()();
|
|
2858
|
-
}
|
|
2859
|
-
}, false);
|
|
2860
|
-
return (cb) => {
|
|
2861
|
-
callbacks.push(cb);
|
|
2862
|
-
_global.postMessage(token, "*");
|
|
2863
|
-
};
|
|
2864
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2865
|
-
})(
|
|
2866
|
-
typeof setImmediate === "function",
|
|
2867
|
-
isFunction$1(_global.postMessage)
|
|
2868
|
-
);
|
|
2869
|
-
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2870
2850
|
const utils$1 = {
|
|
2871
2851
|
isArray,
|
|
2872
2852
|
isArrayBuffer,
|
|
@@ -2923,9 +2903,7 @@ const utils$1 = {
|
|
|
2923
2903
|
isSpecCompliantForm,
|
|
2924
2904
|
toJSONObject,
|
|
2925
2905
|
isAsyncFn,
|
|
2926
|
-
isThenable
|
|
2927
|
-
setImmediate: _setImmediate,
|
|
2928
|
-
asap
|
|
2906
|
+
isThenable
|
|
2929
2907
|
};
|
|
2930
2908
|
function AxiosError(message2, code2, config, request, response) {
|
|
2931
2909
|
Error.call(this);
|
|
@@ -3760,35 +3738,27 @@ function speedometer(samplesCount, min2) {
|
|
|
3760
3738
|
}
|
|
3761
3739
|
function throttle$2(fn3, freq) {
|
|
3762
3740
|
let timestamp = 0;
|
|
3763
|
-
|
|
3764
|
-
let
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
timestamp = now;
|
|
3768
|
-
lastArgs = null;
|
|
3769
|
-
if (timer) {
|
|
3770
|
-
clearTimeout(timer);
|
|
3771
|
-
timer = null;
|
|
3772
|
-
}
|
|
3773
|
-
fn3.apply(null, args);
|
|
3774
|
-
};
|
|
3775
|
-
const throttled = (...args) => {
|
|
3741
|
+
const threshold = 1e3 / freq;
|
|
3742
|
+
let timer = null;
|
|
3743
|
+
return function throttled() {
|
|
3744
|
+
const force = this === true;
|
|
3776
3745
|
const now = Date.now();
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
lastArgs = args;
|
|
3782
|
-
if (!timer) {
|
|
3783
|
-
timer = setTimeout(() => {
|
|
3784
|
-
timer = null;
|
|
3785
|
-
invoke(lastArgs);
|
|
3786
|
-
}, threshold - passed);
|
|
3746
|
+
if (force || now - timestamp > threshold) {
|
|
3747
|
+
if (timer) {
|
|
3748
|
+
clearTimeout(timer);
|
|
3749
|
+
timer = null;
|
|
3787
3750
|
}
|
|
3751
|
+
timestamp = now;
|
|
3752
|
+
return fn3.apply(null, arguments);
|
|
3753
|
+
}
|
|
3754
|
+
if (!timer) {
|
|
3755
|
+
timer = setTimeout(() => {
|
|
3756
|
+
timer = null;
|
|
3757
|
+
timestamp = Date.now();
|
|
3758
|
+
return fn3.apply(null, arguments);
|
|
3759
|
+
}, threshold - (now - timestamp));
|
|
3788
3760
|
}
|
|
3789
3761
|
};
|
|
3790
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
3791
|
-
return [throttled, flush];
|
|
3792
3762
|
}
|
|
3793
3763
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3794
3764
|
let bytesNotified = 0;
|
|
@@ -3808,21 +3778,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3808
3778
|
rate: rate ? rate : void 0,
|
|
3809
3779
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3810
3780
|
event: e,
|
|
3811
|
-
lengthComputable: total != null
|
|
3812
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
3781
|
+
lengthComputable: total != null
|
|
3813
3782
|
};
|
|
3783
|
+
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3814
3784
|
listener(data2);
|
|
3815
3785
|
}, freq);
|
|
3816
3786
|
};
|
|
3817
|
-
const progressEventDecorator = (total, throttled) => {
|
|
3818
|
-
const lengthComputable = total != null;
|
|
3819
|
-
return [(loaded) => throttled[0]({
|
|
3820
|
-
lengthComputable,
|
|
3821
|
-
total,
|
|
3822
|
-
loaded
|
|
3823
|
-
}), throttled[1]];
|
|
3824
|
-
};
|
|
3825
|
-
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3826
3787
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3827
3788
|
// Standard browser envs have full support of the APIs needed to test
|
|
3828
3789
|
// whether the request URL is of the same origin as current location.
|
|
@@ -4020,15 +3981,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4020
3981
|
const _config = resolveConfig(config);
|
|
4021
3982
|
let requestData = _config.data;
|
|
4022
3983
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
4023
|
-
let { responseType
|
|
3984
|
+
let { responseType } = _config;
|
|
4024
3985
|
let onCanceled;
|
|
4025
|
-
let uploadThrottled, downloadThrottled;
|
|
4026
|
-
let flushUpload, flushDownload;
|
|
4027
3986
|
function done() {
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
3987
|
+
if (_config.cancelToken) {
|
|
3988
|
+
_config.cancelToken.unsubscribe(onCanceled);
|
|
3989
|
+
}
|
|
3990
|
+
if (_config.signal) {
|
|
3991
|
+
_config.signal.removeEventListener("abort", onCanceled);
|
|
3992
|
+
}
|
|
4032
3993
|
}
|
|
4033
3994
|
let request = new XMLHttpRequest();
|
|
4034
3995
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4075,11 +4036,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4075
4036
|
if (!request) {
|
|
4076
4037
|
return;
|
|
4077
4038
|
}
|
|
4078
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4039
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, _config, request));
|
|
4079
4040
|
request = null;
|
|
4080
4041
|
};
|
|
4081
4042
|
request.onerror = function handleError() {
|
|
4082
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4043
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, _config, request));
|
|
4083
4044
|
request = null;
|
|
4084
4045
|
};
|
|
4085
4046
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4091,7 +4052,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4091
4052
|
reject3(new AxiosError(
|
|
4092
4053
|
timeoutErrorMessage,
|
|
4093
4054
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4094
|
-
|
|
4055
|
+
_config,
|
|
4095
4056
|
request
|
|
4096
4057
|
));
|
|
4097
4058
|
request = null;
|
|
@@ -4108,14 +4069,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4108
4069
|
if (responseType && responseType !== "json") {
|
|
4109
4070
|
request.responseType = _config.responseType;
|
|
4110
4071
|
}
|
|
4111
|
-
if (onDownloadProgress) {
|
|
4112
|
-
|
|
4113
|
-
request.addEventListener("progress", downloadThrottled);
|
|
4072
|
+
if (typeof _config.onDownloadProgress === "function") {
|
|
4073
|
+
request.addEventListener("progress", progressEventReducer(_config.onDownloadProgress, true));
|
|
4114
4074
|
}
|
|
4115
|
-
if (onUploadProgress && request.upload) {
|
|
4116
|
-
|
|
4117
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
4118
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
4075
|
+
if (typeof _config.onUploadProgress === "function" && request.upload) {
|
|
4076
|
+
request.upload.addEventListener("progress", progressEventReducer(_config.onUploadProgress));
|
|
4119
4077
|
}
|
|
4120
4078
|
if (_config.cancelToken || _config.signal) {
|
|
4121
4079
|
onCanceled = (cancel) => {
|
|
@@ -4193,52 +4151,39 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4193
4151
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4194
4152
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4195
4153
|
let bytes = 0;
|
|
4196
|
-
let done;
|
|
4197
|
-
let _onFinish = (e) => {
|
|
4198
|
-
if (!done) {
|
|
4199
|
-
done = true;
|
|
4200
|
-
onFinish && onFinish(e);
|
|
4201
|
-
}
|
|
4202
|
-
};
|
|
4203
4154
|
return new ReadableStream({
|
|
4155
|
+
type: "bytes",
|
|
4204
4156
|
async pull(controller) {
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
return;
|
|
4211
|
-
}
|
|
4212
|
-
let len = value.byteLength;
|
|
4213
|
-
if (onProgress) {
|
|
4214
|
-
let loadedBytes = bytes += len;
|
|
4215
|
-
onProgress(loadedBytes);
|
|
4216
|
-
}
|
|
4217
|
-
controller.enqueue(new Uint8Array(value));
|
|
4218
|
-
} catch (err) {
|
|
4219
|
-
_onFinish(err);
|
|
4220
|
-
throw err;
|
|
4157
|
+
const { done, value } = await iterator.next();
|
|
4158
|
+
if (done) {
|
|
4159
|
+
controller.close();
|
|
4160
|
+
onFinish();
|
|
4161
|
+
return;
|
|
4221
4162
|
}
|
|
4163
|
+
let len = value.byteLength;
|
|
4164
|
+
onProgress && onProgress(bytes += len);
|
|
4165
|
+
controller.enqueue(new Uint8Array(value));
|
|
4222
4166
|
},
|
|
4223
4167
|
cancel(reason) {
|
|
4224
|
-
|
|
4168
|
+
onFinish(reason);
|
|
4225
4169
|
return iterator.return();
|
|
4226
4170
|
}
|
|
4227
4171
|
}, {
|
|
4228
4172
|
highWaterMark: 2
|
|
4229
4173
|
});
|
|
4230
4174
|
};
|
|
4175
|
+
const fetchProgressDecorator = (total, fn3) => {
|
|
4176
|
+
const lengthComputable = total != null;
|
|
4177
|
+
return (loaded) => setTimeout(() => fn3({
|
|
4178
|
+
lengthComputable,
|
|
4179
|
+
total,
|
|
4180
|
+
loaded
|
|
4181
|
+
}));
|
|
4182
|
+
};
|
|
4231
4183
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4232
4184
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4233
4185
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4234
|
-
const
|
|
4235
|
-
try {
|
|
4236
|
-
return !!fn3(...args);
|
|
4237
|
-
} catch (e) {
|
|
4238
|
-
return false;
|
|
4239
|
-
}
|
|
4240
|
-
};
|
|
4241
|
-
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4186
|
+
const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
4242
4187
|
let duplexAccessed = false;
|
|
4243
4188
|
const hasContentType = new Request(platform.origin, {
|
|
4244
4189
|
body: new ReadableStream(),
|
|
@@ -4249,9 +4194,14 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
|
4249
4194
|
}
|
|
4250
4195
|
}).headers.has("Content-Type");
|
|
4251
4196
|
return duplexAccessed && !hasContentType;
|
|
4252
|
-
});
|
|
4197
|
+
})();
|
|
4253
4198
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4254
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4199
|
+
const supportsResponseStream = isReadableStreamSupported && !!(() => {
|
|
4200
|
+
try {
|
|
4201
|
+
return utils$1.isReadableStream(new Response("").body);
|
|
4202
|
+
} catch (err) {
|
|
4203
|
+
}
|
|
4204
|
+
})();
|
|
4255
4205
|
const resolvers = {
|
|
4256
4206
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4257
4207
|
};
|
|
@@ -4272,7 +4222,7 @@ const getBodyLength = async (body) => {
|
|
|
4272
4222
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4273
4223
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4274
4224
|
}
|
|
4275
|
-
if (utils$1.isArrayBufferView(body)
|
|
4225
|
+
if (utils$1.isArrayBufferView(body)) {
|
|
4276
4226
|
return body.byteLength;
|
|
4277
4227
|
}
|
|
4278
4228
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4323,15 +4273,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4323
4273
|
headers.setContentType(contentTypeHeader);
|
|
4324
4274
|
}
|
|
4325
4275
|
if (_request.body) {
|
|
4326
|
-
|
|
4276
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
|
|
4327
4277
|
requestContentLength,
|
|
4328
|
-
progressEventReducer(
|
|
4329
|
-
);
|
|
4330
|
-
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4278
|
+
progressEventReducer(onUploadProgress)
|
|
4279
|
+
), null, encodeText);
|
|
4331
4280
|
}
|
|
4332
4281
|
}
|
|
4333
4282
|
if (!utils$1.isString(withCredentials)) {
|
|
4334
|
-
withCredentials = withCredentials ? "
|
|
4283
|
+
withCredentials = withCredentials ? "cors" : "omit";
|
|
4335
4284
|
}
|
|
4336
4285
|
request = new Request(url, {
|
|
4337
4286
|
...fetchOptions,
|
|
@@ -4340,7 +4289,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4340
4289
|
headers: headers.normalize().toJSON(),
|
|
4341
4290
|
body: data2,
|
|
4342
4291
|
duplex: "half",
|
|
4343
|
-
|
|
4292
|
+
withCredentials
|
|
4344
4293
|
});
|
|
4345
4294
|
let response = await fetch(request);
|
|
4346
4295
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4350,15 +4299,11 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4350
4299
|
options[prop3] = response[prop3];
|
|
4351
4300
|
});
|
|
4352
4301
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4353
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4354
|
-
responseContentLength,
|
|
4355
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4356
|
-
) || [];
|
|
4357
4302
|
response = new Response(
|
|
4358
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4303
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
|
|
4304
|
+
responseContentLength,
|
|
4305
|
+
progressEventReducer(onDownloadProgress, true)
|
|
4306
|
+
), isStreamResponse && onFinish, encodeText),
|
|
4362
4307
|
options
|
|
4363
4308
|
);
|
|
4364
4309
|
}
|
|
@@ -4484,7 +4429,7 @@ function dispatchRequest(config) {
|
|
|
4484
4429
|
return Promise.reject(reason);
|
|
4485
4430
|
});
|
|
4486
4431
|
}
|
|
4487
|
-
const VERSION = "1.7.
|
|
4432
|
+
const VERSION = "1.7.2";
|
|
4488
4433
|
const validators$1 = {};
|
|
4489
4434
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4490
4435
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5136,7 +5081,6 @@ class Bagel {
|
|
|
5136
5081
|
const formData = new FormData();
|
|
5137
5082
|
formData.append("file", file);
|
|
5138
5083
|
let url = "/static_files/upload";
|
|
5139
|
-
console.log(options == null ? void 0 : options.topic);
|
|
5140
5084
|
if (options == null ? void 0 : options.topic)
|
|
5141
5085
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
5142
5086
|
const { data: data2 } = await axios.post(url, formData, {
|
|
@@ -5297,18 +5241,12 @@ const state$1 = vue.reactive({
|
|
|
5297
5241
|
availableLangs: [],
|
|
5298
5242
|
lang: "en"
|
|
5299
5243
|
});
|
|
5300
|
-
function $tdb(langEl) {
|
|
5301
|
-
if (!langEl) {
|
|
5302
|
-
console.warn("No language element provided for $tdb function");
|
|
5303
|
-
return "";
|
|
5304
|
-
}
|
|
5305
|
-
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5306
|
-
}
|
|
5307
5244
|
function useLang() {
|
|
5308
5245
|
const lang = vue.computed({
|
|
5309
5246
|
get: () => state$1.lang,
|
|
5310
5247
|
set: (val) => state$1.lang = val
|
|
5311
5248
|
});
|
|
5249
|
+
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5312
5250
|
const availableLangs = vue.computed({
|
|
5313
5251
|
get: () => state$1.availableLangs,
|
|
5314
5252
|
set: (val) => state$1.availableLangs = val
|
|
@@ -19364,7 +19302,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
19364
19302
|
}
|
|
19365
19303
|
});
|
|
19366
19304
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
|
|
19367
|
-
const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-
|
|
19305
|
+
const _withScopeId$2 = (n2) => (vue.pushScopeId("data-v-4c71cd49"), n2 = n2(), vue.popScopeId(), n2);
|
|
19368
19306
|
const _hoisted_1$k = { class: "bagel-input" };
|
|
19369
19307
|
const _hoisted_2$f = {
|
|
19370
19308
|
key: 0,
|
|
@@ -19401,7 +19339,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19401
19339
|
width: {},
|
|
19402
19340
|
topic: {}
|
|
19403
19341
|
},
|
|
19404
|
-
emits: ["update:modelValue"],
|
|
19342
|
+
emits: ["update:modelValue", "addFileStart"],
|
|
19405
19343
|
setup(__props, { emit: __emit }) {
|
|
19406
19344
|
const props2 = __props;
|
|
19407
19345
|
const emit2 = __emit;
|
|
@@ -19470,6 +19408,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19470
19408
|
updateModelValue();
|
|
19471
19409
|
}
|
|
19472
19410
|
async function flushQueue() {
|
|
19411
|
+
emit2("addFileStart");
|
|
19473
19412
|
for (const file of fileQueue.value) {
|
|
19474
19413
|
file.uploading = true;
|
|
19475
19414
|
if (!props2.multiple) storageFiles.value.splice(0, 1);
|
|
@@ -19611,7 +19550,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19611
19550
|
};
|
|
19612
19551
|
}
|
|
19613
19552
|
});
|
|
19614
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
19553
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
|
|
19615
19554
|
const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
|
|
19616
19555
|
const _hoisted_1$j = ["title"];
|
|
19617
19556
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -32309,7 +32248,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32309
32248
|
}
|
|
32310
32249
|
function findDuplicates(items) {
|
|
32311
32250
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32312
|
-
return
|
|
32251
|
+
return [...new Set(filtered)];
|
|
32313
32252
|
}
|
|
32314
32253
|
class ExtensionManager {
|
|
32315
32254
|
constructor(extensions, editor) {
|
|
@@ -33500,7 +33439,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33500
33439
|
const marks = [];
|
|
33501
33440
|
if (from2 === to2) {
|
|
33502
33441
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33503
|
-
const $pos = doc2.resolve(from2);
|
|
33442
|
+
const $pos = doc2.resolve(from2 - 1);
|
|
33504
33443
|
const range2 = getMarkRange($pos, mark.type);
|
|
33505
33444
|
if (!range2) {
|
|
33506
33445
|
return;
|
|
@@ -33614,36 +33553,27 @@ function isList(name, extensions) {
|
|
|
33614
33553
|
}
|
|
33615
33554
|
return group.split(" ").includes("list");
|
|
33616
33555
|
}
|
|
33617
|
-
function isNodeEmpty(node, { checkChildren
|
|
33618
|
-
var _a2;
|
|
33619
|
-
if (ignoreWhitespace) {
|
|
33620
|
-
if (node.type.name === "hardBreak") {
|
|
33621
|
-
return true;
|
|
33622
|
-
}
|
|
33623
|
-
if (node.isText) {
|
|
33624
|
-
return /^\s*$/m.test((_a2 = node.text) !== null && _a2 !== void 0 ? _a2 : "");
|
|
33625
|
-
}
|
|
33626
|
-
}
|
|
33556
|
+
function isNodeEmpty(node, { checkChildren } = { checkChildren: true }) {
|
|
33627
33557
|
if (node.isText) {
|
|
33628
33558
|
return !node.text;
|
|
33629
33559
|
}
|
|
33630
|
-
if (node.isAtom || node.isLeaf) {
|
|
33631
|
-
return false;
|
|
33632
|
-
}
|
|
33633
33560
|
if (node.content.childCount === 0) {
|
|
33634
33561
|
return true;
|
|
33635
33562
|
}
|
|
33563
|
+
if (node.isLeaf) {
|
|
33564
|
+
return false;
|
|
33565
|
+
}
|
|
33636
33566
|
if (checkChildren) {
|
|
33637
|
-
let
|
|
33567
|
+
let hasSameContent = true;
|
|
33638
33568
|
node.content.forEach((childNode) => {
|
|
33639
|
-
if (
|
|
33569
|
+
if (hasSameContent === false) {
|
|
33640
33570
|
return;
|
|
33641
33571
|
}
|
|
33642
|
-
if (!isNodeEmpty(childNode
|
|
33643
|
-
|
|
33572
|
+
if (!isNodeEmpty(childNode)) {
|
|
33573
|
+
hasSameContent = false;
|
|
33644
33574
|
}
|
|
33645
33575
|
});
|
|
33646
|
-
return
|
|
33576
|
+
return hasSameContent;
|
|
33647
33577
|
}
|
|
33648
33578
|
return false;
|
|
33649
33579
|
}
|
|
@@ -35639,7 +35569,6 @@ const CodeBlock = Node$2.create({
|
|
|
35639
35569
|
languageClassPrefix: "language-",
|
|
35640
35570
|
exitOnTripleEnter: true,
|
|
35641
35571
|
exitOnArrowDown: true,
|
|
35642
|
-
defaultLanguage: null,
|
|
35643
35572
|
HTMLAttributes: {}
|
|
35644
35573
|
};
|
|
35645
35574
|
},
|
|
@@ -35651,7 +35580,7 @@ const CodeBlock = Node$2.create({
|
|
|
35651
35580
|
addAttributes() {
|
|
35652
35581
|
return {
|
|
35653
35582
|
language: {
|
|
35654
|
-
default:
|
|
35583
|
+
default: null,
|
|
35655
35584
|
parseHTML: (element) => {
|
|
35656
35585
|
var _a2;
|
|
35657
35586
|
const { languageClassPrefix } = this.options;
|
|
@@ -48186,10 +48115,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48186
48115
|
return result2;
|
|
48187
48116
|
});
|
|
48188
48117
|
var omit$1 = omit;
|
|
48189
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48118
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test, obj) {
|
|
48190
48119
|
var result2 = {};
|
|
48191
48120
|
for (var prop3 in obj) {
|
|
48192
|
-
if (
|
|
48121
|
+
if (test(obj[prop3], prop3, obj)) {
|
|
48193
48122
|
result2[prop3] = obj[prop3];
|
|
48194
48123
|
}
|
|
48195
48124
|
}
|