@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.mjs
CHANGED
|
@@ -2845,6 +2845,26 @@ const toJSONObject = (obj) => {
|
|
|
2845
2845
|
};
|
|
2846
2846
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2847
2847
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2848
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2849
|
+
if (setImmediateSupported) {
|
|
2850
|
+
return setImmediate;
|
|
2851
|
+
}
|
|
2852
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
2853
|
+
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2854
|
+
if (source === _global && data2 === token) {
|
|
2855
|
+
callbacks.length && callbacks.shift()();
|
|
2856
|
+
}
|
|
2857
|
+
}, false);
|
|
2858
|
+
return (cb) => {
|
|
2859
|
+
callbacks.push(cb);
|
|
2860
|
+
_global.postMessage(token, "*");
|
|
2861
|
+
};
|
|
2862
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2863
|
+
})(
|
|
2864
|
+
typeof setImmediate === "function",
|
|
2865
|
+
isFunction$1(_global.postMessage)
|
|
2866
|
+
);
|
|
2867
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2848
2868
|
const utils$1 = {
|
|
2849
2869
|
isArray,
|
|
2850
2870
|
isArrayBuffer,
|
|
@@ -2901,7 +2921,9 @@ const utils$1 = {
|
|
|
2901
2921
|
isSpecCompliantForm,
|
|
2902
2922
|
toJSONObject,
|
|
2903
2923
|
isAsyncFn,
|
|
2904
|
-
isThenable
|
|
2924
|
+
isThenable,
|
|
2925
|
+
setImmediate: _setImmediate,
|
|
2926
|
+
asap
|
|
2905
2927
|
};
|
|
2906
2928
|
function AxiosError(message2, code2, config, request, response) {
|
|
2907
2929
|
Error.call(this);
|
|
@@ -3736,27 +3758,35 @@ function speedometer(samplesCount, min2) {
|
|
|
3736
3758
|
}
|
|
3737
3759
|
function throttle$2(fn3, freq) {
|
|
3738
3760
|
let timestamp = 0;
|
|
3739
|
-
|
|
3740
|
-
let
|
|
3741
|
-
|
|
3742
|
-
|
|
3761
|
+
let threshold = 1e3 / freq;
|
|
3762
|
+
let lastArgs;
|
|
3763
|
+
let timer;
|
|
3764
|
+
const invoke = (args, now = Date.now()) => {
|
|
3765
|
+
timestamp = now;
|
|
3766
|
+
lastArgs = null;
|
|
3767
|
+
if (timer) {
|
|
3768
|
+
clearTimeout(timer);
|
|
3769
|
+
timer = null;
|
|
3770
|
+
}
|
|
3771
|
+
fn3.apply(null, args);
|
|
3772
|
+
};
|
|
3773
|
+
const throttled = (...args) => {
|
|
3743
3774
|
const now = Date.now();
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3775
|
+
const passed = now - timestamp;
|
|
3776
|
+
if (passed >= threshold) {
|
|
3777
|
+
invoke(args, now);
|
|
3778
|
+
} else {
|
|
3779
|
+
lastArgs = args;
|
|
3780
|
+
if (!timer) {
|
|
3781
|
+
timer = setTimeout(() => {
|
|
3782
|
+
timer = null;
|
|
3783
|
+
invoke(lastArgs);
|
|
3784
|
+
}, threshold - passed);
|
|
3748
3785
|
}
|
|
3749
|
-
timestamp = now;
|
|
3750
|
-
return fn3.apply(null, arguments);
|
|
3751
|
-
}
|
|
3752
|
-
if (!timer) {
|
|
3753
|
-
timer = setTimeout(() => {
|
|
3754
|
-
timer = null;
|
|
3755
|
-
timestamp = Date.now();
|
|
3756
|
-
return fn3.apply(null, arguments);
|
|
3757
|
-
}, threshold - (now - timestamp));
|
|
3758
3786
|
}
|
|
3759
3787
|
};
|
|
3788
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
3789
|
+
return [throttled, flush];
|
|
3760
3790
|
}
|
|
3761
3791
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3762
3792
|
let bytesNotified = 0;
|
|
@@ -3776,12 +3806,21 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3776
3806
|
rate: rate ? rate : void 0,
|
|
3777
3807
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3778
3808
|
event: e,
|
|
3779
|
-
lengthComputable: total != null
|
|
3809
|
+
lengthComputable: total != null,
|
|
3810
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
3780
3811
|
};
|
|
3781
|
-
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3782
3812
|
listener(data2);
|
|
3783
3813
|
}, freq);
|
|
3784
3814
|
};
|
|
3815
|
+
const progressEventDecorator = (total, throttled) => {
|
|
3816
|
+
const lengthComputable = total != null;
|
|
3817
|
+
return [(loaded) => throttled[0]({
|
|
3818
|
+
lengthComputable,
|
|
3819
|
+
total,
|
|
3820
|
+
loaded
|
|
3821
|
+
}), throttled[1]];
|
|
3822
|
+
};
|
|
3823
|
+
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3785
3824
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3786
3825
|
// Standard browser envs have full support of the APIs needed to test
|
|
3787
3826
|
// whether the request URL is of the same origin as current location.
|
|
@@ -3979,15 +4018,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
3979
4018
|
const _config = resolveConfig(config);
|
|
3980
4019
|
let requestData = _config.data;
|
|
3981
4020
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
3982
|
-
let { responseType } = _config;
|
|
4021
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3983
4022
|
let onCanceled;
|
|
4023
|
+
let uploadThrottled, downloadThrottled;
|
|
4024
|
+
let flushUpload, flushDownload;
|
|
3984
4025
|
function done() {
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
_config.signal.removeEventListener("abort", onCanceled);
|
|
3990
|
-
}
|
|
4026
|
+
flushUpload && flushUpload();
|
|
4027
|
+
flushDownload && flushDownload();
|
|
4028
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
4029
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
3991
4030
|
}
|
|
3992
4031
|
let request = new XMLHttpRequest();
|
|
3993
4032
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4034,11 +4073,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4034
4073
|
if (!request) {
|
|
4035
4074
|
return;
|
|
4036
4075
|
}
|
|
4037
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4076
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
4038
4077
|
request = null;
|
|
4039
4078
|
};
|
|
4040
4079
|
request.onerror = function handleError() {
|
|
4041
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4080
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
4042
4081
|
request = null;
|
|
4043
4082
|
};
|
|
4044
4083
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4050,7 +4089,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4050
4089
|
reject3(new AxiosError(
|
|
4051
4090
|
timeoutErrorMessage,
|
|
4052
4091
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4053
|
-
|
|
4092
|
+
config,
|
|
4054
4093
|
request
|
|
4055
4094
|
));
|
|
4056
4095
|
request = null;
|
|
@@ -4067,11 +4106,14 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4067
4106
|
if (responseType && responseType !== "json") {
|
|
4068
4107
|
request.responseType = _config.responseType;
|
|
4069
4108
|
}
|
|
4070
|
-
if (
|
|
4071
|
-
|
|
4109
|
+
if (onDownloadProgress) {
|
|
4110
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
4111
|
+
request.addEventListener("progress", downloadThrottled);
|
|
4072
4112
|
}
|
|
4073
|
-
if (
|
|
4074
|
-
|
|
4113
|
+
if (onUploadProgress && request.upload) {
|
|
4114
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
4115
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
4116
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
4075
4117
|
}
|
|
4076
4118
|
if (_config.cancelToken || _config.signal) {
|
|
4077
4119
|
onCanceled = (cancel) => {
|
|
@@ -4149,39 +4191,52 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4149
4191
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4150
4192
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4151
4193
|
let bytes = 0;
|
|
4194
|
+
let done;
|
|
4195
|
+
let _onFinish = (e) => {
|
|
4196
|
+
if (!done) {
|
|
4197
|
+
done = true;
|
|
4198
|
+
onFinish && onFinish(e);
|
|
4199
|
+
}
|
|
4200
|
+
};
|
|
4152
4201
|
return new ReadableStream({
|
|
4153
|
-
type: "bytes",
|
|
4154
4202
|
async pull(controller) {
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4203
|
+
try {
|
|
4204
|
+
const { done: done2, value } = await iterator.next();
|
|
4205
|
+
if (done2) {
|
|
4206
|
+
_onFinish();
|
|
4207
|
+
controller.close();
|
|
4208
|
+
return;
|
|
4209
|
+
}
|
|
4210
|
+
let len = value.byteLength;
|
|
4211
|
+
if (onProgress) {
|
|
4212
|
+
let loadedBytes = bytes += len;
|
|
4213
|
+
onProgress(loadedBytes);
|
|
4214
|
+
}
|
|
4215
|
+
controller.enqueue(new Uint8Array(value));
|
|
4216
|
+
} catch (err) {
|
|
4217
|
+
_onFinish(err);
|
|
4218
|
+
throw err;
|
|
4160
4219
|
}
|
|
4161
|
-
let len = value.byteLength;
|
|
4162
|
-
onProgress && onProgress(bytes += len);
|
|
4163
|
-
controller.enqueue(new Uint8Array(value));
|
|
4164
4220
|
},
|
|
4165
4221
|
cancel(reason) {
|
|
4166
|
-
|
|
4222
|
+
_onFinish(reason);
|
|
4167
4223
|
return iterator.return();
|
|
4168
4224
|
}
|
|
4169
4225
|
}, {
|
|
4170
4226
|
highWaterMark: 2
|
|
4171
4227
|
});
|
|
4172
4228
|
};
|
|
4173
|
-
const fetchProgressDecorator = (total, fn3) => {
|
|
4174
|
-
const lengthComputable = total != null;
|
|
4175
|
-
return (loaded) => setTimeout(() => fn3({
|
|
4176
|
-
lengthComputable,
|
|
4177
|
-
total,
|
|
4178
|
-
loaded
|
|
4179
|
-
}));
|
|
4180
|
-
};
|
|
4181
4229
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4182
4230
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4183
4231
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4184
|
-
const
|
|
4232
|
+
const test = (fn3, ...args) => {
|
|
4233
|
+
try {
|
|
4234
|
+
return !!fn3(...args);
|
|
4235
|
+
} catch (e) {
|
|
4236
|
+
return false;
|
|
4237
|
+
}
|
|
4238
|
+
};
|
|
4239
|
+
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4185
4240
|
let duplexAccessed = false;
|
|
4186
4241
|
const hasContentType = new Request(platform.origin, {
|
|
4187
4242
|
body: new ReadableStream(),
|
|
@@ -4192,14 +4247,9 @@ const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
|
4192
4247
|
}
|
|
4193
4248
|
}).headers.has("Content-Type");
|
|
4194
4249
|
return duplexAccessed && !hasContentType;
|
|
4195
|
-
})
|
|
4250
|
+
});
|
|
4196
4251
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4197
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4198
|
-
try {
|
|
4199
|
-
return utils$1.isReadableStream(new Response("").body);
|
|
4200
|
-
} catch (err) {
|
|
4201
|
-
}
|
|
4202
|
-
})();
|
|
4252
|
+
const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
4203
4253
|
const resolvers = {
|
|
4204
4254
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4205
4255
|
};
|
|
@@ -4220,7 +4270,7 @@ const getBodyLength = async (body) => {
|
|
|
4220
4270
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4221
4271
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4222
4272
|
}
|
|
4223
|
-
if (utils$1.isArrayBufferView(body)) {
|
|
4273
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
4224
4274
|
return body.byteLength;
|
|
4225
4275
|
}
|
|
4226
4276
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4271,14 +4321,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4271
4321
|
headers.setContentType(contentTypeHeader);
|
|
4272
4322
|
}
|
|
4273
4323
|
if (_request.body) {
|
|
4274
|
-
|
|
4324
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
4275
4325
|
requestContentLength,
|
|
4276
|
-
progressEventReducer(onUploadProgress)
|
|
4277
|
-
)
|
|
4326
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
4327
|
+
);
|
|
4328
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4278
4329
|
}
|
|
4279
4330
|
}
|
|
4280
4331
|
if (!utils$1.isString(withCredentials)) {
|
|
4281
|
-
withCredentials = withCredentials ? "
|
|
4332
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
4282
4333
|
}
|
|
4283
4334
|
request = new Request(url, {
|
|
4284
4335
|
...fetchOptions,
|
|
@@ -4287,7 +4338,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4287
4338
|
headers: headers.normalize().toJSON(),
|
|
4288
4339
|
body: data2,
|
|
4289
4340
|
duplex: "half",
|
|
4290
|
-
withCredentials
|
|
4341
|
+
credentials: withCredentials
|
|
4291
4342
|
});
|
|
4292
4343
|
let response = await fetch(request);
|
|
4293
4344
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4297,11 +4348,15 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4297
4348
|
options[prop3] = response[prop3];
|
|
4298
4349
|
});
|
|
4299
4350
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4351
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4352
|
+
responseContentLength,
|
|
4353
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4354
|
+
) || [];
|
|
4300
4355
|
response = new Response(
|
|
4301
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4356
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
4357
|
+
flush && flush();
|
|
4358
|
+
isStreamResponse && onFinish();
|
|
4359
|
+
}, encodeText),
|
|
4305
4360
|
options
|
|
4306
4361
|
);
|
|
4307
4362
|
}
|
|
@@ -4427,7 +4482,7 @@ function dispatchRequest(config) {
|
|
|
4427
4482
|
return Promise.reject(reason);
|
|
4428
4483
|
});
|
|
4429
4484
|
}
|
|
4430
|
-
const VERSION = "1.7.
|
|
4485
|
+
const VERSION = "1.7.3";
|
|
4431
4486
|
const validators$1 = {};
|
|
4432
4487
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4433
4488
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5079,6 +5134,7 @@ class Bagel {
|
|
|
5079
5134
|
const formData = new FormData();
|
|
5080
5135
|
formData.append("file", file);
|
|
5081
5136
|
let url = "/static_files/upload";
|
|
5137
|
+
console.log(options == null ? void 0 : options.topic);
|
|
5082
5138
|
if (options == null ? void 0 : options.topic)
|
|
5083
5139
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
5084
5140
|
const { data: data2 } = await axios.post(url, formData, {
|
|
@@ -5239,12 +5295,18 @@ const state$1 = reactive({
|
|
|
5239
5295
|
availableLangs: [],
|
|
5240
5296
|
lang: "en"
|
|
5241
5297
|
});
|
|
5298
|
+
function $tdb(langEl) {
|
|
5299
|
+
if (!langEl) {
|
|
5300
|
+
console.warn("No language element provided for $tdb function");
|
|
5301
|
+
return "";
|
|
5302
|
+
}
|
|
5303
|
+
return langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5304
|
+
}
|
|
5242
5305
|
function useLang() {
|
|
5243
5306
|
const lang = computed({
|
|
5244
5307
|
get: () => state$1.lang,
|
|
5245
5308
|
set: (val) => state$1.lang = val
|
|
5246
5309
|
});
|
|
5247
|
-
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5248
5310
|
const availableLangs = computed({
|
|
5249
5311
|
get: () => state$1.availableLangs,
|
|
5250
5312
|
set: (val) => state$1.availableLangs = val
|
|
@@ -19300,7 +19362,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19300
19362
|
}
|
|
19301
19363
|
});
|
|
19302
19364
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
|
|
19303
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
19365
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-1506863e"), n2 = n2(), popScopeId(), n2);
|
|
19304
19366
|
const _hoisted_1$k = { class: "bagel-input" };
|
|
19305
19367
|
const _hoisted_2$f = {
|
|
19306
19368
|
key: 0,
|
|
@@ -19547,7 +19609,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19547
19609
|
};
|
|
19548
19610
|
}
|
|
19549
19611
|
});
|
|
19550
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
19612
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-1506863e"]]);
|
|
19551
19613
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
19552
19614
|
const _hoisted_1$j = ["title"];
|
|
19553
19615
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -32245,7 +32307,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32245
32307
|
}
|
|
32246
32308
|
function findDuplicates(items) {
|
|
32247
32309
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32248
|
-
return
|
|
32310
|
+
return Array.from(new Set(filtered));
|
|
32249
32311
|
}
|
|
32250
32312
|
class ExtensionManager {
|
|
32251
32313
|
constructor(extensions, editor) {
|
|
@@ -33436,7 +33498,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33436
33498
|
const marks = [];
|
|
33437
33499
|
if (from2 === to2) {
|
|
33438
33500
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33439
|
-
const $pos = doc2.resolve(from2
|
|
33501
|
+
const $pos = doc2.resolve(from2);
|
|
33440
33502
|
const range2 = getMarkRange($pos, mark.type);
|
|
33441
33503
|
if (!range2) {
|
|
33442
33504
|
return;
|
|
@@ -33550,27 +33612,36 @@ function isList(name, extensions) {
|
|
|
33550
33612
|
}
|
|
33551
33613
|
return group.split(" ").includes("list");
|
|
33552
33614
|
}
|
|
33553
|
-
function isNodeEmpty(node, { checkChildren
|
|
33615
|
+
function isNodeEmpty(node, { checkChildren = true, ignoreWhitespace = false } = {}) {
|
|
33616
|
+
var _a2;
|
|
33617
|
+
if (ignoreWhitespace) {
|
|
33618
|
+
if (node.type.name === "hardBreak") {
|
|
33619
|
+
return true;
|
|
33620
|
+
}
|
|
33621
|
+
if (node.isText) {
|
|
33622
|
+
return /^\s*$/m.test((_a2 = node.text) !== null && _a2 !== void 0 ? _a2 : "");
|
|
33623
|
+
}
|
|
33624
|
+
}
|
|
33554
33625
|
if (node.isText) {
|
|
33555
33626
|
return !node.text;
|
|
33556
33627
|
}
|
|
33628
|
+
if (node.isAtom || node.isLeaf) {
|
|
33629
|
+
return false;
|
|
33630
|
+
}
|
|
33557
33631
|
if (node.content.childCount === 0) {
|
|
33558
33632
|
return true;
|
|
33559
33633
|
}
|
|
33560
|
-
if (node.isLeaf) {
|
|
33561
|
-
return false;
|
|
33562
|
-
}
|
|
33563
33634
|
if (checkChildren) {
|
|
33564
|
-
let
|
|
33635
|
+
let isContentEmpty = true;
|
|
33565
33636
|
node.content.forEach((childNode) => {
|
|
33566
|
-
if (
|
|
33637
|
+
if (isContentEmpty === false) {
|
|
33567
33638
|
return;
|
|
33568
33639
|
}
|
|
33569
|
-
if (!isNodeEmpty(childNode)) {
|
|
33570
|
-
|
|
33640
|
+
if (!isNodeEmpty(childNode, { ignoreWhitespace, checkChildren })) {
|
|
33641
|
+
isContentEmpty = false;
|
|
33571
33642
|
}
|
|
33572
33643
|
});
|
|
33573
|
-
return
|
|
33644
|
+
return isContentEmpty;
|
|
33574
33645
|
}
|
|
33575
33646
|
return false;
|
|
33576
33647
|
}
|
|
@@ -35566,6 +35637,7 @@ const CodeBlock = Node$2.create({
|
|
|
35566
35637
|
languageClassPrefix: "language-",
|
|
35567
35638
|
exitOnTripleEnter: true,
|
|
35568
35639
|
exitOnArrowDown: true,
|
|
35640
|
+
defaultLanguage: null,
|
|
35569
35641
|
HTMLAttributes: {}
|
|
35570
35642
|
};
|
|
35571
35643
|
},
|
|
@@ -35577,7 +35649,7 @@ const CodeBlock = Node$2.create({
|
|
|
35577
35649
|
addAttributes() {
|
|
35578
35650
|
return {
|
|
35579
35651
|
language: {
|
|
35580
|
-
default:
|
|
35652
|
+
default: this.options.defaultLanguage,
|
|
35581
35653
|
parseHTML: (element) => {
|
|
35582
35654
|
var _a2;
|
|
35583
35655
|
const { languageClassPrefix } = this.options;
|
|
@@ -48112,10 +48184,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48112
48184
|
return result2;
|
|
48113
48185
|
});
|
|
48114
48186
|
var omit$1 = omit;
|
|
48115
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48187
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test2, obj) {
|
|
48116
48188
|
var result2 = {};
|
|
48117
48189
|
for (var prop3 in obj) {
|
|
48118
|
-
if (
|
|
48190
|
+
if (test2(obj[prop3], prop3, obj)) {
|
|
48119
48191
|
result2[prop3] = obj[prop3];
|
|
48120
48192
|
}
|
|
48121
48193
|
}
|
package/dist/plugins/bagel.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InjectionKey, Plugin } from 'vue';
|
|
2
2
|
import { Bagel } from '../../../sdk/src/index.ts';
|
|
3
|
-
|
|
4
3
|
export declare const bagelInjectionKey: InjectionKey<Bagel>;
|
|
5
4
|
export declare const i18nTInjectionKey: InjectionKey<(key: string) => string>;
|
|
6
5
|
export declare function useBagel(): Bagel;
|
package/dist/plugins/modal.d.ts
CHANGED
package/dist/style.css
CHANGED
|
@@ -1716,7 +1716,7 @@ display: block;
|
|
|
1716
1716
|
color: var(--bgl-white);
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
|
-
.bagel-input .fileUploadWrap[data-v-
|
|
1719
|
+
.bagel-input .fileUploadWrap[data-v-1506863e] {
|
|
1720
1720
|
--width: 320px;
|
|
1721
1721
|
outline: 1px solid var(--border-color);
|
|
1722
1722
|
border-radius: var(--input-border-radius);
|
|
@@ -1729,7 +1729,7 @@ display: block;
|
|
|
1729
1729
|
overflow-y: auto;
|
|
1730
1730
|
background: var(--input-bg);
|
|
1731
1731
|
}
|
|
1732
|
-
.previewName[data-v-
|
|
1732
|
+
.previewName[data-v-1506863e] {
|
|
1733
1733
|
padding: 0.5rem;
|
|
1734
1734
|
text-align: start;
|
|
1735
1735
|
color: var(--input-color);
|
|
@@ -1739,18 +1739,18 @@ display: block;
|
|
|
1739
1739
|
align-items: center;
|
|
1740
1740
|
padding-inline: 14px;
|
|
1741
1741
|
}
|
|
1742
|
-
.previewName p[data-v-
|
|
1742
|
+
.previewName p[data-v-1506863e] {
|
|
1743
1743
|
overflow: hidden;
|
|
1744
1744
|
text-overflow: ellipsis;
|
|
1745
1745
|
white-space: nowrap;
|
|
1746
1746
|
}
|
|
1747
|
-
.imagePreviewWrap[data-v-
|
|
1747
|
+
.imagePreviewWrap[data-v-1506863e] {
|
|
1748
1748
|
background: var(--input-bg);
|
|
1749
1749
|
border-radius: var(--input-border-radius);
|
|
1750
1750
|
padding: 5px;
|
|
1751
1751
|
min-height: 90px;
|
|
1752
1752
|
}
|
|
1753
|
-
img.preview[data-v-
|
|
1753
|
+
img.preview[data-v-1506863e] {
|
|
1754
1754
|
/* max-height: calc(var(--width) / 2); */
|
|
1755
1755
|
/* max-width: calc(var(--width) * 2); */
|
|
1756
1756
|
width: 40px;
|
|
@@ -1760,19 +1760,18 @@ img.preview[data-v-21c953c3] {
|
|
|
1760
1760
|
background: var(--bgl-gray-light);
|
|
1761
1761
|
box-shadow: 0 0 10px #00000012;
|
|
1762
1762
|
}
|
|
1763
|
-
img.preview.single[data-v-
|
|
1763
|
+
img.preview.single[data-v-1506863e] {
|
|
1764
1764
|
max-width: var(--width);
|
|
1765
1765
|
width: calc(100% - 2.75rem);
|
|
1766
1766
|
object-fit: contain;
|
|
1767
1767
|
height: auto;
|
|
1768
|
-
max-height: calc(var(--width) / 2);
|
|
1769
1768
|
margin: 1rem;
|
|
1770
1769
|
}
|
|
1771
|
-
.fileUploadWrap.dragover[data-v-
|
|
1772
|
-
.fileUploadWrap[data-v-
|
|
1770
|
+
.fileUploadWrap.dragover[data-v-1506863e],
|
|
1771
|
+
.fileUploadWrap[data-v-1506863e]:hover {
|
|
1773
1772
|
box-shadow: inset 0 0 10px #00000012;
|
|
1774
1773
|
}
|
|
1775
|
-
.bagel-input .fileUploadWrap.fileDropZone[data-v-
|
|
1774
|
+
.bagel-input .fileUploadWrap.fileDropZone[data-v-1506863e] {
|
|
1776
1775
|
background: var(--input-bg);
|
|
1777
1776
|
display: flex;
|
|
1778
1777
|
align-items: center;
|
|
@@ -1780,7 +1779,7 @@ img.preview.single[data-v-21c953c3] {
|
|
|
1780
1779
|
color: var(--bgl-gray);
|
|
1781
1780
|
flex-direction: column;
|
|
1782
1781
|
}
|
|
1783
|
-
.pie[data-v-
|
|
1782
|
+
.pie[data-v-1506863e] {
|
|
1784
1783
|
width: 30px;
|
|
1785
1784
|
height: 30px;
|
|
1786
1785
|
position: relative;
|
|
@@ -1788,7 +1787,7 @@ img.preview.single[data-v-21c953c3] {
|
|
|
1788
1787
|
align-items: center;
|
|
1789
1788
|
justify-content: center;
|
|
1790
1789
|
}
|
|
1791
|
-
.pie[data-v-
|
|
1790
|
+
.pie[data-v-1506863e]:before {
|
|
1792
1791
|
content: '';
|
|
1793
1792
|
position: absolute;
|
|
1794
1793
|
border-radius: 50%;
|
|
@@ -1806,26 +1805,26 @@ img.preview.single[data-v-21c953c3] {
|
|
|
1806
1805
|
#000 calc(100% - var(--b))
|
|
1807
1806
|
);
|
|
1808
1807
|
}
|
|
1809
|
-
.pie .success[data-v-
|
|
1808
|
+
.pie .success[data-v-1506863e] {
|
|
1810
1809
|
transform: scale(0);
|
|
1811
1810
|
opacity: 0;
|
|
1812
1811
|
transition: all 0.3s ease-in-out;
|
|
1813
1812
|
}
|
|
1814
|
-
.pie .progress[data-v-
|
|
1813
|
+
.pie .progress[data-v-1506863e] {
|
|
1815
1814
|
position: absolute;
|
|
1816
1815
|
font-size: 10px;
|
|
1817
1816
|
}
|
|
1818
|
-
.pie.complete .progress[data-v-
|
|
1817
|
+
.pie.complete .progress[data-v-1506863e] {
|
|
1819
1818
|
display: none;
|
|
1820
1819
|
}
|
|
1821
|
-
.pie.complete .success[data-v-
|
|
1820
|
+
.pie.complete .success[data-v-1506863e] {
|
|
1822
1821
|
transform: scale(1.3);
|
|
1823
1822
|
opacity: 1;
|
|
1824
1823
|
}
|
|
1825
|
-
.pie.complete[data-v-
|
|
1824
|
+
.pie.complete[data-v-1506863e]:before {
|
|
1826
1825
|
background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
|
|
1827
1826
|
}
|
|
1828
|
-
.pie.complete[data-v-
|
|
1827
|
+
.pie.complete[data-v-1506863e] {
|
|
1829
1828
|
color: var(--bgl-green);
|
|
1830
1829
|
}
|
|
1831
1830
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SelectInput, TextInput } from '..';
|
|
2
|
-
|
|
3
2
|
export type AttributeValue = string | number | boolean | null | undefined | Record<string, any>;
|
|
4
3
|
export type AttributeFn<T = Record<string, any>> = (field: any, row: T) => AttributeValue;
|
|
5
4
|
export interface Attributes<T = any> {
|
package/dist/types/NavLink.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,GACZ,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAE3B,MAAM,MAAM,GAAG,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,aAAa,CAAA;CACpB,GAAG,MAAM,CAAA;AAEV,MAAM,MAAM,SAAS,GACpB,OAAO,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,GACZ,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,YAAY,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAE3B,MAAM,MAAM,GAAG,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,aAAa,CAAA;CACpB,GAAG,MAAM,CAAA;AAEV,MAAM,MAAM,SAAS,GACpB,OAAO,GACL,OAAO,GACP,KAAK,GACL,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,GACP,SAAS,GACT,MAAM,CAAA;AAGT,MAAM,MAAM,MAAM,GACf,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAA"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Attributes, BglFormSchemaT } from '..';
|
|
2
|
-
|
|
3
2
|
export declare function debounce(fn: () => void, delay?: number): void;
|
|
4
3
|
export declare function keyToLabel(key?: string): string | undefined;
|
|
5
4
|
export declare function copyText(text: string, cb?: (msg: string) => void): Promise<void>;
|
package/dist/utils/lang.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
declare function $tdb<T extends Record<string, any>>(langEl?: T): string;
|
|
1
2
|
export declare function useLang(): {
|
|
2
3
|
lang: import('vue').WritableComputedRef<string>;
|
|
3
|
-
$tdb:
|
|
4
|
+
$tdb: typeof $tdb;
|
|
4
5
|
availableLangs: import('vue').WritableComputedRef<string[]>;
|
|
5
6
|
defaultLang: import('vue').WritableComputedRef<string>;
|
|
6
7
|
};
|
|
8
|
+
export {};
|
|
7
9
|
//# sourceMappingURL=lang.d.ts.map
|
package/dist/utils/lang.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../src/utils/lang.ts"],"names":[],"mappings":"AAcA,
|
|
1
|
+
{"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../src/utils/lang.ts"],"names":[],"mappings":"AAcA,iBAAS,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,CAO/D;AAED,wBAAgB,OAAO;;;;;EAsBtB"}
|