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