@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.mjs
CHANGED
|
@@ -2845,26 +2845,6 @@ 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;
|
|
2868
2848
|
const utils$1 = {
|
|
2869
2849
|
isArray,
|
|
2870
2850
|
isArrayBuffer,
|
|
@@ -2921,9 +2901,7 @@ const utils$1 = {
|
|
|
2921
2901
|
isSpecCompliantForm,
|
|
2922
2902
|
toJSONObject,
|
|
2923
2903
|
isAsyncFn,
|
|
2924
|
-
isThenable
|
|
2925
|
-
setImmediate: _setImmediate,
|
|
2926
|
-
asap
|
|
2904
|
+
isThenable
|
|
2927
2905
|
};
|
|
2928
2906
|
function AxiosError(message2, code2, config, request, response) {
|
|
2929
2907
|
Error.call(this);
|
|
@@ -3758,35 +3736,27 @@ function speedometer(samplesCount, min2) {
|
|
|
3758
3736
|
}
|
|
3759
3737
|
function throttle$2(fn3, freq) {
|
|
3760
3738
|
let timestamp = 0;
|
|
3761
|
-
|
|
3762
|
-
let
|
|
3763
|
-
|
|
3764
|
-
|
|
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) => {
|
|
3739
|
+
const threshold = 1e3 / freq;
|
|
3740
|
+
let timer = null;
|
|
3741
|
+
return function throttled() {
|
|
3742
|
+
const force = this === true;
|
|
3774
3743
|
const now = Date.now();
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
lastArgs = args;
|
|
3780
|
-
if (!timer) {
|
|
3781
|
-
timer = setTimeout(() => {
|
|
3782
|
-
timer = null;
|
|
3783
|
-
invoke(lastArgs);
|
|
3784
|
-
}, threshold - passed);
|
|
3744
|
+
if (force || now - timestamp > threshold) {
|
|
3745
|
+
if (timer) {
|
|
3746
|
+
clearTimeout(timer);
|
|
3747
|
+
timer = null;
|
|
3785
3748
|
}
|
|
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));
|
|
3786
3758
|
}
|
|
3787
3759
|
};
|
|
3788
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
3789
|
-
return [throttled, flush];
|
|
3790
3760
|
}
|
|
3791
3761
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3792
3762
|
let bytesNotified = 0;
|
|
@@ -3806,21 +3776,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3806
3776
|
rate: rate ? rate : void 0,
|
|
3807
3777
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3808
3778
|
event: e,
|
|
3809
|
-
lengthComputable: total != null
|
|
3810
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
3779
|
+
lengthComputable: total != null
|
|
3811
3780
|
};
|
|
3781
|
+
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3812
3782
|
listener(data2);
|
|
3813
3783
|
}, freq);
|
|
3814
3784
|
};
|
|
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));
|
|
3824
3785
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3825
3786
|
// Standard browser envs have full support of the APIs needed to test
|
|
3826
3787
|
// whether the request URL is of the same origin as current location.
|
|
@@ -4018,15 +3979,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4018
3979
|
const _config = resolveConfig(config);
|
|
4019
3980
|
let requestData = _config.data;
|
|
4020
3981
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
4021
|
-
let { responseType
|
|
3982
|
+
let { responseType } = _config;
|
|
4022
3983
|
let onCanceled;
|
|
4023
|
-
let uploadThrottled, downloadThrottled;
|
|
4024
|
-
let flushUpload, flushDownload;
|
|
4025
3984
|
function done() {
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3985
|
+
if (_config.cancelToken) {
|
|
3986
|
+
_config.cancelToken.unsubscribe(onCanceled);
|
|
3987
|
+
}
|
|
3988
|
+
if (_config.signal) {
|
|
3989
|
+
_config.signal.removeEventListener("abort", onCanceled);
|
|
3990
|
+
}
|
|
4030
3991
|
}
|
|
4031
3992
|
let request = new XMLHttpRequest();
|
|
4032
3993
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4073,11 +4034,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4073
4034
|
if (!request) {
|
|
4074
4035
|
return;
|
|
4075
4036
|
}
|
|
4076
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4037
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, _config, request));
|
|
4077
4038
|
request = null;
|
|
4078
4039
|
};
|
|
4079
4040
|
request.onerror = function handleError() {
|
|
4080
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4041
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, _config, request));
|
|
4081
4042
|
request = null;
|
|
4082
4043
|
};
|
|
4083
4044
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4089,7 +4050,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4089
4050
|
reject3(new AxiosError(
|
|
4090
4051
|
timeoutErrorMessage,
|
|
4091
4052
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4092
|
-
|
|
4053
|
+
_config,
|
|
4093
4054
|
request
|
|
4094
4055
|
));
|
|
4095
4056
|
request = null;
|
|
@@ -4106,14 +4067,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4106
4067
|
if (responseType && responseType !== "json") {
|
|
4107
4068
|
request.responseType = _config.responseType;
|
|
4108
4069
|
}
|
|
4109
|
-
if (onDownloadProgress) {
|
|
4110
|
-
|
|
4111
|
-
request.addEventListener("progress", downloadThrottled);
|
|
4070
|
+
if (typeof _config.onDownloadProgress === "function") {
|
|
4071
|
+
request.addEventListener("progress", progressEventReducer(_config.onDownloadProgress, true));
|
|
4112
4072
|
}
|
|
4113
|
-
if (onUploadProgress && request.upload) {
|
|
4114
|
-
|
|
4115
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
4116
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
4073
|
+
if (typeof _config.onUploadProgress === "function" && request.upload) {
|
|
4074
|
+
request.upload.addEventListener("progress", progressEventReducer(_config.onUploadProgress));
|
|
4117
4075
|
}
|
|
4118
4076
|
if (_config.cancelToken || _config.signal) {
|
|
4119
4077
|
onCanceled = (cancel) => {
|
|
@@ -4191,52 +4149,39 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4191
4149
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4192
4150
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4193
4151
|
let bytes = 0;
|
|
4194
|
-
let done;
|
|
4195
|
-
let _onFinish = (e) => {
|
|
4196
|
-
if (!done) {
|
|
4197
|
-
done = true;
|
|
4198
|
-
onFinish && onFinish(e);
|
|
4199
|
-
}
|
|
4200
|
-
};
|
|
4201
4152
|
return new ReadableStream({
|
|
4153
|
+
type: "bytes",
|
|
4202
4154
|
async pull(controller) {
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
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;
|
|
4155
|
+
const { done, value } = await iterator.next();
|
|
4156
|
+
if (done) {
|
|
4157
|
+
controller.close();
|
|
4158
|
+
onFinish();
|
|
4159
|
+
return;
|
|
4219
4160
|
}
|
|
4161
|
+
let len = value.byteLength;
|
|
4162
|
+
onProgress && onProgress(bytes += len);
|
|
4163
|
+
controller.enqueue(new Uint8Array(value));
|
|
4220
4164
|
},
|
|
4221
4165
|
cancel(reason) {
|
|
4222
|
-
|
|
4166
|
+
onFinish(reason);
|
|
4223
4167
|
return iterator.return();
|
|
4224
4168
|
}
|
|
4225
4169
|
}, {
|
|
4226
4170
|
highWaterMark: 2
|
|
4227
4171
|
});
|
|
4228
4172
|
};
|
|
4173
|
+
const fetchProgressDecorator = (total, fn3) => {
|
|
4174
|
+
const lengthComputable = total != null;
|
|
4175
|
+
return (loaded) => setTimeout(() => fn3({
|
|
4176
|
+
lengthComputable,
|
|
4177
|
+
total,
|
|
4178
|
+
loaded
|
|
4179
|
+
}));
|
|
4180
|
+
};
|
|
4229
4181
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4230
4182
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4231
4183
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4232
|
-
const
|
|
4233
|
-
try {
|
|
4234
|
-
return !!fn3(...args);
|
|
4235
|
-
} catch (e) {
|
|
4236
|
-
return false;
|
|
4237
|
-
}
|
|
4238
|
-
};
|
|
4239
|
-
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4184
|
+
const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
4240
4185
|
let duplexAccessed = false;
|
|
4241
4186
|
const hasContentType = new Request(platform.origin, {
|
|
4242
4187
|
body: new ReadableStream(),
|
|
@@ -4247,9 +4192,14 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
|
4247
4192
|
}
|
|
4248
4193
|
}).headers.has("Content-Type");
|
|
4249
4194
|
return duplexAccessed && !hasContentType;
|
|
4250
|
-
});
|
|
4195
|
+
})();
|
|
4251
4196
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4252
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4197
|
+
const supportsResponseStream = isReadableStreamSupported && !!(() => {
|
|
4198
|
+
try {
|
|
4199
|
+
return utils$1.isReadableStream(new Response("").body);
|
|
4200
|
+
} catch (err) {
|
|
4201
|
+
}
|
|
4202
|
+
})();
|
|
4253
4203
|
const resolvers = {
|
|
4254
4204
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4255
4205
|
};
|
|
@@ -4270,7 +4220,7 @@ const getBodyLength = async (body) => {
|
|
|
4270
4220
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4271
4221
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4272
4222
|
}
|
|
4273
|
-
if (utils$1.isArrayBufferView(body)
|
|
4223
|
+
if (utils$1.isArrayBufferView(body)) {
|
|
4274
4224
|
return body.byteLength;
|
|
4275
4225
|
}
|
|
4276
4226
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4321,15 +4271,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4321
4271
|
headers.setContentType(contentTypeHeader);
|
|
4322
4272
|
}
|
|
4323
4273
|
if (_request.body) {
|
|
4324
|
-
|
|
4274
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
|
|
4325
4275
|
requestContentLength,
|
|
4326
|
-
progressEventReducer(
|
|
4327
|
-
);
|
|
4328
|
-
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4276
|
+
progressEventReducer(onUploadProgress)
|
|
4277
|
+
), null, encodeText);
|
|
4329
4278
|
}
|
|
4330
4279
|
}
|
|
4331
4280
|
if (!utils$1.isString(withCredentials)) {
|
|
4332
|
-
withCredentials = withCredentials ? "
|
|
4281
|
+
withCredentials = withCredentials ? "cors" : "omit";
|
|
4333
4282
|
}
|
|
4334
4283
|
request = new Request(url, {
|
|
4335
4284
|
...fetchOptions,
|
|
@@ -4338,7 +4287,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4338
4287
|
headers: headers.normalize().toJSON(),
|
|
4339
4288
|
body: data2,
|
|
4340
4289
|
duplex: "half",
|
|
4341
|
-
|
|
4290
|
+
withCredentials
|
|
4342
4291
|
});
|
|
4343
4292
|
let response = await fetch(request);
|
|
4344
4293
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4348,15 +4297,11 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4348
4297
|
options[prop3] = response[prop3];
|
|
4349
4298
|
});
|
|
4350
4299
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4351
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4352
|
-
responseContentLength,
|
|
4353
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4354
|
-
) || [];
|
|
4355
4300
|
response = new Response(
|
|
4356
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4301
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
|
|
4302
|
+
responseContentLength,
|
|
4303
|
+
progressEventReducer(onDownloadProgress, true)
|
|
4304
|
+
), isStreamResponse && onFinish, encodeText),
|
|
4360
4305
|
options
|
|
4361
4306
|
);
|
|
4362
4307
|
}
|
|
@@ -4482,7 +4427,7 @@ function dispatchRequest(config) {
|
|
|
4482
4427
|
return Promise.reject(reason);
|
|
4483
4428
|
});
|
|
4484
4429
|
}
|
|
4485
|
-
const VERSION = "1.7.
|
|
4430
|
+
const VERSION = "1.7.2";
|
|
4486
4431
|
const validators$1 = {};
|
|
4487
4432
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4488
4433
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5134,7 +5079,6 @@ class Bagel {
|
|
|
5134
5079
|
const formData = new FormData();
|
|
5135
5080
|
formData.append("file", file);
|
|
5136
5081
|
let url = "/static_files/upload";
|
|
5137
|
-
console.log(options == null ? void 0 : options.topic);
|
|
5138
5082
|
if (options == null ? void 0 : options.topic)
|
|
5139
5083
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
5140
5084
|
const { data: data2 } = await axios.post(url, formData, {
|
|
@@ -5295,18 +5239,12 @@ const state$1 = reactive({
|
|
|
5295
5239
|
availableLangs: [],
|
|
5296
5240
|
lang: "en"
|
|
5297
5241
|
});
|
|
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
|
-
}
|
|
5305
5242
|
function useLang() {
|
|
5306
5243
|
const lang = computed({
|
|
5307
5244
|
get: () => state$1.lang,
|
|
5308
5245
|
set: (val) => state$1.lang = val
|
|
5309
5246
|
});
|
|
5247
|
+
const $tdb = (langEl) => langEl[state$1.lang] || langEl[state$1.defaultLang] || "";
|
|
5310
5248
|
const availableLangs = computed({
|
|
5311
5249
|
get: () => state$1.availableLangs,
|
|
5312
5250
|
set: (val) => state$1.availableLangs = val
|
|
@@ -19362,7 +19300,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19362
19300
|
}
|
|
19363
19301
|
});
|
|
19364
19302
|
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-d86ce838"]]);
|
|
19365
|
-
const _withScopeId$2 = (n2) => (pushScopeId("data-v-
|
|
19303
|
+
const _withScopeId$2 = (n2) => (pushScopeId("data-v-4c71cd49"), n2 = n2(), popScopeId(), n2);
|
|
19366
19304
|
const _hoisted_1$k = { class: "bagel-input" };
|
|
19367
19305
|
const _hoisted_2$f = {
|
|
19368
19306
|
key: 0,
|
|
@@ -19399,7 +19337,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19399
19337
|
width: {},
|
|
19400
19338
|
topic: {}
|
|
19401
19339
|
},
|
|
19402
|
-
emits: ["update:modelValue"],
|
|
19340
|
+
emits: ["update:modelValue", "addFileStart"],
|
|
19403
19341
|
setup(__props, { emit: __emit }) {
|
|
19404
19342
|
const props2 = __props;
|
|
19405
19343
|
const emit2 = __emit;
|
|
@@ -19468,6 +19406,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19468
19406
|
updateModelValue();
|
|
19469
19407
|
}
|
|
19470
19408
|
async function flushQueue() {
|
|
19409
|
+
emit2("addFileStart");
|
|
19471
19410
|
for (const file of fileQueue.value) {
|
|
19472
19411
|
file.uploading = true;
|
|
19473
19412
|
if (!props2.multiple) storageFiles.value.splice(0, 1);
|
|
@@ -19609,7 +19548,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19609
19548
|
};
|
|
19610
19549
|
}
|
|
19611
19550
|
});
|
|
19612
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
19551
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-4c71cd49"]]);
|
|
19613
19552
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
19614
19553
|
const _hoisted_1$j = ["title"];
|
|
19615
19554
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
|
@@ -32307,7 +32246,7 @@ function pasteRulesPlugin(props2) {
|
|
|
32307
32246
|
}
|
|
32308
32247
|
function findDuplicates(items) {
|
|
32309
32248
|
const filtered = items.filter((el, index2) => items.indexOf(el) !== index2);
|
|
32310
|
-
return
|
|
32249
|
+
return [...new Set(filtered)];
|
|
32311
32250
|
}
|
|
32312
32251
|
class ExtensionManager {
|
|
32313
32252
|
constructor(extensions, editor) {
|
|
@@ -33498,7 +33437,7 @@ function getMarksBetween(from2, to2, doc2) {
|
|
|
33498
33437
|
const marks = [];
|
|
33499
33438
|
if (from2 === to2) {
|
|
33500
33439
|
doc2.resolve(from2).marks().forEach((mark) => {
|
|
33501
|
-
const $pos = doc2.resolve(from2);
|
|
33440
|
+
const $pos = doc2.resolve(from2 - 1);
|
|
33502
33441
|
const range2 = getMarkRange($pos, mark.type);
|
|
33503
33442
|
if (!range2) {
|
|
33504
33443
|
return;
|
|
@@ -33612,36 +33551,27 @@ function isList(name, extensions) {
|
|
|
33612
33551
|
}
|
|
33613
33552
|
return group.split(" ").includes("list");
|
|
33614
33553
|
}
|
|
33615
|
-
function isNodeEmpty(node, { checkChildren
|
|
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
|
+
function isNodeEmpty(node, { checkChildren } = { checkChildren: true }) {
|
|
33625
33555
|
if (node.isText) {
|
|
33626
33556
|
return !node.text;
|
|
33627
33557
|
}
|
|
33628
|
-
if (node.isAtom || node.isLeaf) {
|
|
33629
|
-
return false;
|
|
33630
|
-
}
|
|
33631
33558
|
if (node.content.childCount === 0) {
|
|
33632
33559
|
return true;
|
|
33633
33560
|
}
|
|
33561
|
+
if (node.isLeaf) {
|
|
33562
|
+
return false;
|
|
33563
|
+
}
|
|
33634
33564
|
if (checkChildren) {
|
|
33635
|
-
let
|
|
33565
|
+
let hasSameContent = true;
|
|
33636
33566
|
node.content.forEach((childNode) => {
|
|
33637
|
-
if (
|
|
33567
|
+
if (hasSameContent === false) {
|
|
33638
33568
|
return;
|
|
33639
33569
|
}
|
|
33640
|
-
if (!isNodeEmpty(childNode
|
|
33641
|
-
|
|
33570
|
+
if (!isNodeEmpty(childNode)) {
|
|
33571
|
+
hasSameContent = false;
|
|
33642
33572
|
}
|
|
33643
33573
|
});
|
|
33644
|
-
return
|
|
33574
|
+
return hasSameContent;
|
|
33645
33575
|
}
|
|
33646
33576
|
return false;
|
|
33647
33577
|
}
|
|
@@ -35637,7 +35567,6 @@ const CodeBlock = Node$2.create({
|
|
|
35637
35567
|
languageClassPrefix: "language-",
|
|
35638
35568
|
exitOnTripleEnter: true,
|
|
35639
35569
|
exitOnArrowDown: true,
|
|
35640
|
-
defaultLanguage: null,
|
|
35641
35570
|
HTMLAttributes: {}
|
|
35642
35571
|
};
|
|
35643
35572
|
},
|
|
@@ -35649,7 +35578,7 @@ const CodeBlock = Node$2.create({
|
|
|
35649
35578
|
addAttributes() {
|
|
35650
35579
|
return {
|
|
35651
35580
|
language: {
|
|
35652
|
-
default:
|
|
35581
|
+
default: null,
|
|
35653
35582
|
parseHTML: (element) => {
|
|
35654
35583
|
var _a2;
|
|
35655
35584
|
const { languageClassPrefix } = this.options;
|
|
@@ -48184,10 +48113,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48184
48113
|
return result2;
|
|
48185
48114
|
});
|
|
48186
48115
|
var omit$1 = omit;
|
|
48187
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48116
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test, obj) {
|
|
48188
48117
|
var result2 = {};
|
|
48189
48118
|
for (var prop3 in obj) {
|
|
48190
|
-
if (
|
|
48119
|
+
if (test(obj[prop3], prop3, obj)) {
|
|
48191
48120
|
result2[prop3] = obj[prop3];
|
|
48192
48121
|
}
|
|
48193
48122
|
}
|
package/dist/plugins/bagel.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionKey, Plugin } from 'vue';
|
|
2
2
|
import { Bagel } from '../../../sdk/src/index.ts';
|
|
3
|
+
|
|
3
4
|
export declare const bagelInjectionKey: InjectionKey<Bagel>;
|
|
4
5
|
export declare const i18nTInjectionKey: InjectionKey<(key: string) => string>;
|
|
5
6
|
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-4c71cd49] {
|
|
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-4c71cd49] {
|
|
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-4c71cd49] {
|
|
1743
1743
|
overflow: hidden;
|
|
1744
1744
|
text-overflow: ellipsis;
|
|
1745
1745
|
white-space: nowrap;
|
|
1746
1746
|
}
|
|
1747
|
-
.imagePreviewWrap[data-v-
|
|
1747
|
+
.imagePreviewWrap[data-v-4c71cd49] {
|
|
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-4c71cd49] {
|
|
1754
1754
|
/* max-height: calc(var(--width) / 2); */
|
|
1755
1755
|
/* max-width: calc(var(--width) * 2); */
|
|
1756
1756
|
width: 40px;
|
|
@@ -1760,18 +1760,19 @@ img.preview[data-v-1506863e] {
|
|
|
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-4c71cd49] {
|
|
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);
|
|
1768
1769
|
margin: 1rem;
|
|
1769
1770
|
}
|
|
1770
|
-
.fileUploadWrap.dragover[data-v-
|
|
1771
|
-
.fileUploadWrap[data-v-
|
|
1771
|
+
.fileUploadWrap.dragover[data-v-4c71cd49],
|
|
1772
|
+
.fileUploadWrap[data-v-4c71cd49]:hover {
|
|
1772
1773
|
box-shadow: inset 0 0 10px #00000012;
|
|
1773
1774
|
}
|
|
1774
|
-
.bagel-input .fileUploadWrap.fileDropZone[data-v-
|
|
1775
|
+
.bagel-input .fileUploadWrap.fileDropZone[data-v-4c71cd49] {
|
|
1775
1776
|
background: var(--input-bg);
|
|
1776
1777
|
display: flex;
|
|
1777
1778
|
align-items: center;
|
|
@@ -1779,7 +1780,7 @@ img.preview.single[data-v-1506863e] {
|
|
|
1779
1780
|
color: var(--bgl-gray);
|
|
1780
1781
|
flex-direction: column;
|
|
1781
1782
|
}
|
|
1782
|
-
.pie[data-v-
|
|
1783
|
+
.pie[data-v-4c71cd49] {
|
|
1783
1784
|
width: 30px;
|
|
1784
1785
|
height: 30px;
|
|
1785
1786
|
position: relative;
|
|
@@ -1787,7 +1788,7 @@ img.preview.single[data-v-1506863e] {
|
|
|
1787
1788
|
align-items: center;
|
|
1788
1789
|
justify-content: center;
|
|
1789
1790
|
}
|
|
1790
|
-
.pie[data-v-
|
|
1791
|
+
.pie[data-v-4c71cd49]:before {
|
|
1791
1792
|
content: '';
|
|
1792
1793
|
position: absolute;
|
|
1793
1794
|
border-radius: 50%;
|
|
@@ -1805,26 +1806,26 @@ img.preview.single[data-v-1506863e] {
|
|
|
1805
1806
|
#000 calc(100% - var(--b))
|
|
1806
1807
|
);
|
|
1807
1808
|
}
|
|
1808
|
-
.pie .success[data-v-
|
|
1809
|
+
.pie .success[data-v-4c71cd49] {
|
|
1809
1810
|
transform: scale(0);
|
|
1810
1811
|
opacity: 0;
|
|
1811
1812
|
transition: all 0.3s ease-in-out;
|
|
1812
1813
|
}
|
|
1813
|
-
.pie .progress[data-v-
|
|
1814
|
+
.pie .progress[data-v-4c71cd49] {
|
|
1814
1815
|
position: absolute;
|
|
1815
1816
|
font-size: 10px;
|
|
1816
1817
|
}
|
|
1817
|
-
.pie.complete .progress[data-v-
|
|
1818
|
+
.pie.complete .progress[data-v-4c71cd49] {
|
|
1818
1819
|
display: none;
|
|
1819
1820
|
}
|
|
1820
|
-
.pie.complete .success[data-v-
|
|
1821
|
+
.pie.complete .success[data-v-4c71cd49] {
|
|
1821
1822
|
transform: scale(1.3);
|
|
1822
1823
|
opacity: 1;
|
|
1823
1824
|
}
|
|
1824
|
-
.pie.complete[data-v-
|
|
1825
|
+
.pie.complete[data-v-4c71cd49]:before {
|
|
1825
1826
|
background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
|
|
1826
1827
|
}
|
|
1827
|
-
.pie.complete[data-v-
|
|
1828
|
+
.pie.complete[data-v-4c71cd49] {
|
|
1828
1829
|
color: var(--bgl-green);
|
|
1829
1830
|
}
|
|
1830
1831
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SelectInput, TextInput } from '..';
|
|
2
|
+
|
|
2
3
|
export type AttributeValue = string | number | boolean | null | undefined | Record<string, any>;
|
|
3
4
|
export type AttributeFn<T = Record<string, any>> = (field: any, row: T) => AttributeValue;
|
|
4
5
|
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;AAET,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"}
|