@bagelink/vue 0.0.673 → 0.0.675
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/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/DropDown.vue.d.ts +3 -3
- package/dist/components/FormSchema.vue.d.ts +4 -5
- package/dist/components/LangText.vue.d.ts +2 -2
- package/dist/components/ModalBglForm.vue.d.ts +20 -21
- package/dist/components/ModalConfirm.vue.d.ts +10 -1
- package/dist/components/ModalConfirm.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/TabbedLayout.vue.d.ts +4 -5
- package/dist/components/charts/BarChart.vue.d.ts +2 -2
- package/dist/components/form/BglForm.vue.d.ts +1 -0
- 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/CurrencyInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DatetimeInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DurationInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/DynamicLinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/EmailInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/FloatInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/IntInput.vue.d.ts +3 -3
- package/dist/components/form/inputs/LinkField.vue.d.ts +3 -3
- package/dist/components/form/inputs/Password.vue.d.ts +3 -3
- package/dist/components/form/inputs/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 +2 -2
- package/dist/components/form/inputs/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +2 -2
- package/dist/components/form/inputs/RichTextEditor.vue.d.ts +3 -3
- package/dist/components/form/inputs/SelectField.vue.d.ts +8 -6
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextArea.vue.d.ts +3 -3
- package/dist/components/form/inputs/TextInput.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/TabbedLayout.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/index.cjs +88 -138
- package/dist/index.mjs +88 -138
- package/dist/style.css +65 -65
- package/dist/types/materialIcon.d.ts +2 -0
- package/dist/types/materialIcon.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +0 -1
- package/package.json +1 -1
- package/src/components/ModalConfirm.vue +1 -0
- package/src/components/TableSchema.vue +0 -2
- package/src/components/form/BglForm.vue +1 -0
- package/src/components/form/inputs/RadioGroup.vue +1 -2
- package/src/components/form/inputs/TextInput.vue +1 -0
- package/src/components/form/inputs/index.ts +1 -1
- package/src/components/layout/TabbedLayout.vue +1 -1
- package/dist/components/Accordion.d.ts +0 -12
- package/dist/components/Accordion.d.ts.map +0 -1
- package/dist/components/AccordionItem.d.ts +0 -34
- package/dist/components/AccordionItem.d.ts.map +0 -1
- package/dist/components/Alert.d.ts +0 -34
- package/dist/components/Alert.d.ts.map +0 -1
- package/dist/components/Avatar.d.ts +0 -36
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Badge.d.ts +0 -22
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/BglVideo.d.ts +0 -20
- package/dist/components/BglVideo.d.ts.map +0 -1
- package/dist/components/Btn.d.ts +0 -99
- package/dist/components/Btn.d.ts.map +0 -1
- package/dist/components/Card.d.ts +0 -39
- package/dist/components/Card.d.ts.map +0 -1
- package/dist/components/Carousel.d.ts +0 -74
- package/dist/components/Carousel.d.ts.map +0 -1
- package/dist/components/DataPreview.d.ts +0 -42
- package/dist/components/DataPreview.d.ts.map +0 -1
- package/dist/components/Drop.vue.d.ts +0 -34
- package/dist/components/Drop.vue.d.ts.map +0 -1
- package/dist/components/FileUploader.vue.d.ts +0 -60
- package/dist/components/FileUploader.vue.d.ts.map +0 -1
- package/dist/components/Flag.d.ts +0 -20
- package/dist/components/Flag.d.ts.map +0 -1
- package/dist/components/ListItem.d.ts +0 -34
- package/dist/components/ListItem.d.ts.map +0 -1
- package/dist/components/ListView.d.ts +0 -13
- package/dist/components/ListView.d.ts.map +0 -1
- package/dist/components/MapEmbed.d.ts +0 -3
- package/dist/components/MapEmbed.d.ts.map +0 -1
- package/dist/components/MaterialIcon.d.ts +0 -26
- package/dist/components/MaterialIcon.d.ts.map +0 -1
- package/dist/components/Modal.d.ts +0 -46
- package/dist/components/Modal.d.ts.map +0 -1
- package/dist/components/ModalConfirm.d.ts +0 -24
- package/dist/components/ModalConfirm.d.ts.map +0 -1
- package/dist/components/ModalForm.d.ts +0 -78
- package/dist/components/ModalForm.d.ts.map +0 -1
- package/dist/components/NavBar.d.ts +0 -64
- package/dist/components/NavBar.d.ts.map +0 -1
- package/dist/components/PageTitle.d.ts +0 -24
- package/dist/components/PageTitle.d.ts.map +0 -1
- package/dist/components/RouterWrapper.d.ts +0 -3
- package/dist/components/RouterWrapper.d.ts.map +0 -1
- package/dist/components/TableSchema.d.ts +0 -35
- package/dist/components/TableSchema.d.ts.map +0 -1
- package/dist/components/Title.d.ts +0 -42
- package/dist/components/Title.d.ts.map +0 -1
- package/dist/components/TopBar.d.ts +0 -12
- package/dist/components/TopBar.d.ts.map +0 -1
- package/dist/components/dashboard/Lineart.d.ts +0 -20
- package/dist/components/dashboard/Lineart.d.ts.map +0 -1
- package/dist/components/form/BglField.d.ts +0 -25
- package/dist/components/form/BglField.d.ts.map +0 -1
- package/dist/components/form/BglForm.d.ts +0 -75
- package/dist/components/form/BglForm.d.ts.map +0 -1
- package/dist/components/form/inputs/CheckInput.d.ts +0 -56
- package/dist/components/form/inputs/CheckInput.d.ts.map +0 -1
- package/dist/components/form/inputs/Checkbox.d.ts +0 -16
- package/dist/components/form/inputs/Checkbox.d.ts.map +0 -1
- package/dist/components/form/inputs/ColorPicker.d.ts +0 -48
- package/dist/components/form/inputs/ColorPicker.d.ts.map +0 -1
- package/dist/components/form/inputs/DateInput.d.ts +0 -64
- package/dist/components/form/inputs/DateInput.d.ts.map +0 -1
- package/dist/components/form/inputs/DatePicker.d.ts +0 -33
- package/dist/components/form/inputs/DatePicker.d.ts.map +0 -1
- package/dist/components/form/inputs/FileUpload.d.ts +0 -108
- package/dist/components/form/inputs/FileUpload.d.ts.map +0 -1
- package/dist/components/form/inputs/JSONInput.d.ts +0 -53
- package/dist/components/form/inputs/JSONInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioGroup.d.ts +0 -42
- package/dist/components/form/inputs/RadioGroup.d.ts.map +0 -1
- package/dist/components/form/inputs/RadioPillsInput.d.ts +0 -48
- package/dist/components/form/inputs/RadioPillsInput.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText.d.ts +0 -20
- package/dist/components/form/inputs/RichText.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts +0 -22
- package/dist/components/form/inputs/RichText2/Toolbar.d.ts.map +0 -1
- package/dist/components/form/inputs/RichText2/index.d.ts +0 -24
- package/dist/components/form/inputs/RichText2/index.d.ts.map +0 -1
- package/dist/components/form/inputs/SelectInput.d.ts +0 -55
- package/dist/components/form/inputs/SelectInput.d.ts.map +0 -1
- package/dist/components/form/inputs/SignaturePad.d.ts +0 -72
- package/dist/components/form/inputs/SignaturePad.d.ts.map +0 -1
- package/dist/components/form/inputs/TableField.d.ts +0 -45
- package/dist/components/form/inputs/TableField.d.ts.map +0 -1
- package/dist/components/form/inputs/TelInput.d.ts +0 -241
- package/dist/components/form/inputs/TelInput.d.ts.map +0 -1
- package/dist/components/form/inputs/TextInput.d.ts +0 -90
- package/dist/components/form/inputs/TextInput.d.ts.map +0 -1
- package/dist/components/form/inputs/ToggleInput.d.ts +0 -58
- package/dist/components/form/inputs/ToggleInput.d.ts.map +0 -1
- package/dist/components/layout/BottomMenu.d.ts +0 -27
- package/dist/components/layout/BottomMenu.d.ts.map +0 -1
- package/dist/components/layout/Layout.d.ts +0 -58
- package/dist/components/layout/Layout.d.ts.map +0 -1
- package/dist/components/layout/SidebarMenu.d.ts +0 -38
- package/dist/components/layout/SidebarMenu.d.ts.map +0 -1
- package/dist/components/layout/TabbedLayout.d.ts +0 -42
- package/dist/components/layout/TabbedLayout.d.ts.map +0 -1
- package/dist/components/layout/Tabs.d.ts +0 -31
- package/dist/components/layout/Tabs.d.ts.map +0 -1
- package/dist/components/layout/TabsBody.d.ts +0 -23
- package/dist/components/layout/TabsBody.d.ts.map +0 -1
- package/dist/components/layout/TabsNav.d.ts +0 -35
- package/dist/components/layout/TabsNav.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2847,26 +2847,6 @@ const toJSONObject = (obj) => {
|
|
|
2847
2847
|
};
|
|
2848
2848
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
2849
2849
|
const isThenable = (thing) => thing && (isObject$1(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
2850
|
-
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
2851
|
-
if (setImmediateSupported) {
|
|
2852
|
-
return setImmediate;
|
|
2853
|
-
}
|
|
2854
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
2855
|
-
_global.addEventListener("message", ({ source, data: data2 }) => {
|
|
2856
|
-
if (source === _global && data2 === token) {
|
|
2857
|
-
callbacks.length && callbacks.shift()();
|
|
2858
|
-
}
|
|
2859
|
-
}, false);
|
|
2860
|
-
return (cb) => {
|
|
2861
|
-
callbacks.push(cb);
|
|
2862
|
-
_global.postMessage(token, "*");
|
|
2863
|
-
};
|
|
2864
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
2865
|
-
})(
|
|
2866
|
-
typeof setImmediate === "function",
|
|
2867
|
-
isFunction$1(_global.postMessage)
|
|
2868
|
-
);
|
|
2869
|
-
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
2870
2850
|
const utils$1 = {
|
|
2871
2851
|
isArray,
|
|
2872
2852
|
isArrayBuffer,
|
|
@@ -2923,9 +2903,7 @@ const utils$1 = {
|
|
|
2923
2903
|
isSpecCompliantForm,
|
|
2924
2904
|
toJSONObject,
|
|
2925
2905
|
isAsyncFn,
|
|
2926
|
-
isThenable
|
|
2927
|
-
setImmediate: _setImmediate,
|
|
2928
|
-
asap
|
|
2906
|
+
isThenable
|
|
2929
2907
|
};
|
|
2930
2908
|
function AxiosError(message2, code2, config, request, response) {
|
|
2931
2909
|
Error.call(this);
|
|
@@ -3760,35 +3738,27 @@ function speedometer(samplesCount, min2) {
|
|
|
3760
3738
|
}
|
|
3761
3739
|
function throttle$2(fn3, freq) {
|
|
3762
3740
|
let timestamp = 0;
|
|
3763
|
-
|
|
3764
|
-
let
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
timestamp = now;
|
|
3768
|
-
lastArgs = null;
|
|
3769
|
-
if (timer) {
|
|
3770
|
-
clearTimeout(timer);
|
|
3771
|
-
timer = null;
|
|
3772
|
-
}
|
|
3773
|
-
fn3.apply(null, args);
|
|
3774
|
-
};
|
|
3775
|
-
const throttled = (...args) => {
|
|
3741
|
+
const threshold = 1e3 / freq;
|
|
3742
|
+
let timer = null;
|
|
3743
|
+
return function throttled() {
|
|
3744
|
+
const force = this === true;
|
|
3776
3745
|
const now = Date.now();
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
lastArgs = args;
|
|
3782
|
-
if (!timer) {
|
|
3783
|
-
timer = setTimeout(() => {
|
|
3784
|
-
timer = null;
|
|
3785
|
-
invoke(lastArgs);
|
|
3786
|
-
}, threshold - passed);
|
|
3746
|
+
if (force || now - timestamp > threshold) {
|
|
3747
|
+
if (timer) {
|
|
3748
|
+
clearTimeout(timer);
|
|
3749
|
+
timer = null;
|
|
3787
3750
|
}
|
|
3751
|
+
timestamp = now;
|
|
3752
|
+
return fn3.apply(null, arguments);
|
|
3753
|
+
}
|
|
3754
|
+
if (!timer) {
|
|
3755
|
+
timer = setTimeout(() => {
|
|
3756
|
+
timer = null;
|
|
3757
|
+
timestamp = Date.now();
|
|
3758
|
+
return fn3.apply(null, arguments);
|
|
3759
|
+
}, threshold - (now - timestamp));
|
|
3788
3760
|
}
|
|
3789
3761
|
};
|
|
3790
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
3791
|
-
return [throttled, flush];
|
|
3792
3762
|
}
|
|
3793
3763
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
3794
3764
|
let bytesNotified = 0;
|
|
@@ -3808,21 +3778,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
3808
3778
|
rate: rate ? rate : void 0,
|
|
3809
3779
|
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
3810
3780
|
event: e,
|
|
3811
|
-
lengthComputable: total != null
|
|
3812
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
3781
|
+
lengthComputable: total != null
|
|
3813
3782
|
};
|
|
3783
|
+
data2[isDownloadStream ? "download" : "upload"] = true;
|
|
3814
3784
|
listener(data2);
|
|
3815
3785
|
}, freq);
|
|
3816
3786
|
};
|
|
3817
|
-
const progressEventDecorator = (total, throttled) => {
|
|
3818
|
-
const lengthComputable = total != null;
|
|
3819
|
-
return [(loaded) => throttled[0]({
|
|
3820
|
-
lengthComputable,
|
|
3821
|
-
total,
|
|
3822
|
-
loaded
|
|
3823
|
-
}), throttled[1]];
|
|
3824
|
-
};
|
|
3825
|
-
const asyncDecorator = (fn3) => (...args) => utils$1.asap(() => fn3(...args));
|
|
3826
3787
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
3827
3788
|
// Standard browser envs have full support of the APIs needed to test
|
|
3828
3789
|
// whether the request URL is of the same origin as current location.
|
|
@@ -4020,15 +3981,15 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4020
3981
|
const _config = resolveConfig(config);
|
|
4021
3982
|
let requestData = _config.data;
|
|
4022
3983
|
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
4023
|
-
let { responseType
|
|
3984
|
+
let { responseType } = _config;
|
|
4024
3985
|
let onCanceled;
|
|
4025
|
-
let uploadThrottled, downloadThrottled;
|
|
4026
|
-
let flushUpload, flushDownload;
|
|
4027
3986
|
function done() {
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
3987
|
+
if (_config.cancelToken) {
|
|
3988
|
+
_config.cancelToken.unsubscribe(onCanceled);
|
|
3989
|
+
}
|
|
3990
|
+
if (_config.signal) {
|
|
3991
|
+
_config.signal.removeEventListener("abort", onCanceled);
|
|
3992
|
+
}
|
|
4032
3993
|
}
|
|
4033
3994
|
let request = new XMLHttpRequest();
|
|
4034
3995
|
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
@@ -4075,11 +4036,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4075
4036
|
if (!request) {
|
|
4076
4037
|
return;
|
|
4077
4038
|
}
|
|
4078
|
-
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED,
|
|
4039
|
+
reject3(new AxiosError("Request aborted", AxiosError.ECONNABORTED, _config, request));
|
|
4079
4040
|
request = null;
|
|
4080
4041
|
};
|
|
4081
4042
|
request.onerror = function handleError() {
|
|
4082
|
-
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK,
|
|
4043
|
+
reject3(new AxiosError("Network Error", AxiosError.ERR_NETWORK, _config, request));
|
|
4083
4044
|
request = null;
|
|
4084
4045
|
};
|
|
4085
4046
|
request.ontimeout = function handleTimeout() {
|
|
@@ -4091,7 +4052,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4091
4052
|
reject3(new AxiosError(
|
|
4092
4053
|
timeoutErrorMessage,
|
|
4093
4054
|
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
4094
|
-
|
|
4055
|
+
_config,
|
|
4095
4056
|
request
|
|
4096
4057
|
));
|
|
4097
4058
|
request = null;
|
|
@@ -4108,14 +4069,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
4108
4069
|
if (responseType && responseType !== "json") {
|
|
4109
4070
|
request.responseType = _config.responseType;
|
|
4110
4071
|
}
|
|
4111
|
-
if (onDownloadProgress) {
|
|
4112
|
-
|
|
4113
|
-
request.addEventListener("progress", downloadThrottled);
|
|
4072
|
+
if (typeof _config.onDownloadProgress === "function") {
|
|
4073
|
+
request.addEventListener("progress", progressEventReducer(_config.onDownloadProgress, true));
|
|
4114
4074
|
}
|
|
4115
|
-
if (onUploadProgress && request.upload) {
|
|
4116
|
-
|
|
4117
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
4118
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
4075
|
+
if (typeof _config.onUploadProgress === "function" && request.upload) {
|
|
4076
|
+
request.upload.addEventListener("progress", progressEventReducer(_config.onUploadProgress));
|
|
4119
4077
|
}
|
|
4120
4078
|
if (_config.cancelToken || _config.signal) {
|
|
4121
4079
|
onCanceled = (cancel) => {
|
|
@@ -4193,52 +4151,39 @@ const readBytes = async function* (iterable, chunkSize, encode2) {
|
|
|
4193
4151
|
const trackStream = (stream, chunkSize, onProgress, onFinish, encode2) => {
|
|
4194
4152
|
const iterator = readBytes(stream, chunkSize, encode2);
|
|
4195
4153
|
let bytes = 0;
|
|
4196
|
-
let done;
|
|
4197
|
-
let _onFinish = (e) => {
|
|
4198
|
-
if (!done) {
|
|
4199
|
-
done = true;
|
|
4200
|
-
onFinish && onFinish(e);
|
|
4201
|
-
}
|
|
4202
|
-
};
|
|
4203
4154
|
return new ReadableStream({
|
|
4155
|
+
type: "bytes",
|
|
4204
4156
|
async pull(controller) {
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
return;
|
|
4211
|
-
}
|
|
4212
|
-
let len = value.byteLength;
|
|
4213
|
-
if (onProgress) {
|
|
4214
|
-
let loadedBytes = bytes += len;
|
|
4215
|
-
onProgress(loadedBytes);
|
|
4216
|
-
}
|
|
4217
|
-
controller.enqueue(new Uint8Array(value));
|
|
4218
|
-
} catch (err) {
|
|
4219
|
-
_onFinish(err);
|
|
4220
|
-
throw err;
|
|
4157
|
+
const { done, value } = await iterator.next();
|
|
4158
|
+
if (done) {
|
|
4159
|
+
controller.close();
|
|
4160
|
+
onFinish();
|
|
4161
|
+
return;
|
|
4221
4162
|
}
|
|
4163
|
+
let len = value.byteLength;
|
|
4164
|
+
onProgress && onProgress(bytes += len);
|
|
4165
|
+
controller.enqueue(new Uint8Array(value));
|
|
4222
4166
|
},
|
|
4223
4167
|
cancel(reason) {
|
|
4224
|
-
|
|
4168
|
+
onFinish(reason);
|
|
4225
4169
|
return iterator.return();
|
|
4226
4170
|
}
|
|
4227
4171
|
}, {
|
|
4228
4172
|
highWaterMark: 2
|
|
4229
4173
|
});
|
|
4230
4174
|
};
|
|
4175
|
+
const fetchProgressDecorator = (total, fn3) => {
|
|
4176
|
+
const lengthComputable = total != null;
|
|
4177
|
+
return (loaded) => setTimeout(() => fn3({
|
|
4178
|
+
lengthComputable,
|
|
4179
|
+
total,
|
|
4180
|
+
loaded
|
|
4181
|
+
}));
|
|
4182
|
+
};
|
|
4231
4183
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
4232
4184
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
4233
4185
|
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
4234
|
-
const
|
|
4235
|
-
try {
|
|
4236
|
-
return !!fn3(...args);
|
|
4237
|
-
} catch (e) {
|
|
4238
|
-
return false;
|
|
4239
|
-
}
|
|
4240
|
-
};
|
|
4241
|
-
const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
4186
|
+
const supportsRequestStream = isReadableStreamSupported && (() => {
|
|
4242
4187
|
let duplexAccessed = false;
|
|
4243
4188
|
const hasContentType = new Request(platform.origin, {
|
|
4244
4189
|
body: new ReadableStream(),
|
|
@@ -4249,9 +4194,14 @@ const supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
|
4249
4194
|
}
|
|
4250
4195
|
}).headers.has("Content-Type");
|
|
4251
4196
|
return duplexAccessed && !hasContentType;
|
|
4252
|
-
});
|
|
4197
|
+
})();
|
|
4253
4198
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
4254
|
-
const supportsResponseStream = isReadableStreamSupported &&
|
|
4199
|
+
const supportsResponseStream = isReadableStreamSupported && !!(() => {
|
|
4200
|
+
try {
|
|
4201
|
+
return utils$1.isReadableStream(new Response("").body);
|
|
4202
|
+
} catch (err) {
|
|
4203
|
+
}
|
|
4204
|
+
})();
|
|
4255
4205
|
const resolvers = {
|
|
4256
4206
|
stream: supportsResponseStream && ((res) => res.body)
|
|
4257
4207
|
};
|
|
@@ -4272,7 +4222,7 @@ const getBodyLength = async (body) => {
|
|
|
4272
4222
|
if (utils$1.isSpecCompliantForm(body)) {
|
|
4273
4223
|
return (await new Request(body).arrayBuffer()).byteLength;
|
|
4274
4224
|
}
|
|
4275
|
-
if (utils$1.isArrayBufferView(body)
|
|
4225
|
+
if (utils$1.isArrayBufferView(body)) {
|
|
4276
4226
|
return body.byteLength;
|
|
4277
4227
|
}
|
|
4278
4228
|
if (utils$1.isURLSearchParams(body)) {
|
|
@@ -4323,15 +4273,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4323
4273
|
headers.setContentType(contentTypeHeader);
|
|
4324
4274
|
}
|
|
4325
4275
|
if (_request.body) {
|
|
4326
|
-
|
|
4276
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, fetchProgressDecorator(
|
|
4327
4277
|
requestContentLength,
|
|
4328
|
-
progressEventReducer(
|
|
4329
|
-
);
|
|
4330
|
-
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);
|
|
4278
|
+
progressEventReducer(onUploadProgress)
|
|
4279
|
+
), null, encodeText);
|
|
4331
4280
|
}
|
|
4332
4281
|
}
|
|
4333
4282
|
if (!utils$1.isString(withCredentials)) {
|
|
4334
|
-
withCredentials = withCredentials ? "
|
|
4283
|
+
withCredentials = withCredentials ? "cors" : "omit";
|
|
4335
4284
|
}
|
|
4336
4285
|
request = new Request(url, {
|
|
4337
4286
|
...fetchOptions,
|
|
@@ -4340,7 +4289,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4340
4289
|
headers: headers.normalize().toJSON(),
|
|
4341
4290
|
body: data2,
|
|
4342
4291
|
duplex: "half",
|
|
4343
|
-
|
|
4292
|
+
withCredentials
|
|
4344
4293
|
});
|
|
4345
4294
|
let response = await fetch(request);
|
|
4346
4295
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
@@ -4350,15 +4299,11 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
4350
4299
|
options[prop3] = response[prop3];
|
|
4351
4300
|
});
|
|
4352
4301
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
4353
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
4354
|
-
responseContentLength,
|
|
4355
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
4356
|
-
) || [];
|
|
4357
4302
|
response = new Response(
|
|
4358
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4303
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onDownloadProgress && fetchProgressDecorator(
|
|
4304
|
+
responseContentLength,
|
|
4305
|
+
progressEventReducer(onDownloadProgress, true)
|
|
4306
|
+
), isStreamResponse && onFinish, encodeText),
|
|
4362
4307
|
options
|
|
4363
4308
|
);
|
|
4364
4309
|
}
|
|
@@ -4484,7 +4429,7 @@ function dispatchRequest(config) {
|
|
|
4484
4429
|
return Promise.reject(reason);
|
|
4485
4430
|
});
|
|
4486
4431
|
}
|
|
4487
|
-
const VERSION = "1.7.
|
|
4432
|
+
const VERSION = "1.7.2";
|
|
4488
4433
|
const validators$1 = {};
|
|
4489
4434
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type3, i2) => {
|
|
4490
4435
|
validators$1[type3] = function validator2(thing) {
|
|
@@ -5136,7 +5081,6 @@ class Bagel {
|
|
|
5136
5081
|
const formData = new FormData();
|
|
5137
5082
|
formData.append("file", file);
|
|
5138
5083
|
let url = "/static_files/upload";
|
|
5139
|
-
console.log(options == null ? void 0 : options.topic);
|
|
5140
5084
|
if (options == null ? void 0 : options.topic)
|
|
5141
5085
|
url = `/static_files/upload?topic=${options.topic}`;
|
|
5142
5086
|
const { data: data2 } = await axios.post(url, formData, {
|
|
@@ -6419,7 +6363,7 @@ function useVerticalVirtualList(options, list) {
|
|
|
6419
6363
|
containerRef
|
|
6420
6364
|
};
|
|
6421
6365
|
}
|
|
6422
|
-
const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-
|
|
6366
|
+
const _withScopeId$3 = (n2) => (vue.pushScopeId("data-v-6653fb41"), n2 = n2(), vue.popScopeId(), n2);
|
|
6423
6367
|
const _hoisted_1$D = {
|
|
6424
6368
|
key: 0,
|
|
6425
6369
|
class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
|
|
@@ -6453,7 +6397,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
6453
6397
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight"]),
|
|
6454
6398
|
setup(__props, { emit: __emit }) {
|
|
6455
6399
|
vue.useCssVars((_ctx) => ({
|
|
6456
|
-
"
|
|
6400
|
+
"96a68704": vue.unref(computedItemHiehgt)
|
|
6457
6401
|
}));
|
|
6458
6402
|
const props2 = __props;
|
|
6459
6403
|
const emit2 = __emit;
|
|
@@ -6658,7 +6602,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
6658
6602
|
};
|
|
6659
6603
|
}
|
|
6660
6604
|
});
|
|
6661
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
6605
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-6653fb41"]]);
|
|
6662
6606
|
const _sfc_main$F = {};
|
|
6663
6607
|
const _hoisted_1$C = { class: "flex space-between" };
|
|
6664
6608
|
function _sfc_render$1(_ctx, _cache) {
|
|
@@ -7253,9 +7197,10 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
7253
7197
|
})
|
|
7254
7198
|
]),
|
|
7255
7199
|
default: vue.withCtx(() => [
|
|
7256
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.message) + " ", 1)
|
|
7200
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.message) + " ", 1),
|
|
7201
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
7257
7202
|
]),
|
|
7258
|
-
_:
|
|
7203
|
+
_: 3
|
|
7259
7204
|
}, 8, ["title"]);
|
|
7260
7205
|
};
|
|
7261
7206
|
}
|
|
@@ -7380,6 +7325,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
7380
7325
|
);
|
|
7381
7326
|
}
|
|
7382
7327
|
__expose({
|
|
7328
|
+
submit: runSubmit,
|
|
7383
7329
|
validateForm,
|
|
7384
7330
|
deleteItem,
|
|
7385
7331
|
isDirty: isDirty.value,
|
|
@@ -19110,7 +19056,11 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19110
19056
|
disabled: _ctx.disabled,
|
|
19111
19057
|
required: _ctx.required,
|
|
19112
19058
|
pattern: _ctx.pattern
|
|
19113
|
-
}, _ctx.nativeInputAttrs, {
|
|
19059
|
+
}, _ctx.nativeInputAttrs, {
|
|
19060
|
+
onInput: updateInputVal,
|
|
19061
|
+
onFocusout: _cache[3] || (_cache[3] = //@ts-ignore
|
|
19062
|
+
(...args) => _ctx.onFocusout && _ctx.onFocusout(...args))
|
|
19063
|
+
}), null, 16, _hoisted_4$a)), [
|
|
19114
19064
|
[vue.vModelText, vue.unref(inputVal)]
|
|
19115
19065
|
]),
|
|
19116
19066
|
_ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$a, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true)
|
|
@@ -19128,7 +19078,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
19128
19078
|
};
|
|
19129
19079
|
}
|
|
19130
19080
|
});
|
|
19131
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
19081
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-edac341b"]]);
|
|
19132
19082
|
const _hoisted_1$o = { class: "primary-checkbox" };
|
|
19133
19083
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
19134
19084
|
__name: "Checkbox",
|
|
@@ -47350,7 +47300,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
47350
47300
|
};
|
|
47351
47301
|
}
|
|
47352
47302
|
});
|
|
47353
|
-
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
47303
|
+
const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-ac3dc0e2"]]);
|
|
47354
47304
|
function _isPlaceholder(a2) {
|
|
47355
47305
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
47356
47306
|
}
|
|
@@ -48156,10 +48106,10 @@ var omit = /* @__PURE__ */ _curry2(function omit2(names, obj) {
|
|
|
48156
48106
|
return result2;
|
|
48157
48107
|
});
|
|
48158
48108
|
var omit$1 = omit;
|
|
48159
|
-
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(
|
|
48109
|
+
var pickBy = /* @__PURE__ */ _curry2(function pickBy2(test, obj) {
|
|
48160
48110
|
var result2 = {};
|
|
48161
48111
|
for (var prop3 in obj) {
|
|
48162
|
-
if (
|
|
48112
|
+
if (test(obj[prop3], prop3, obj)) {
|
|
48163
48113
|
result2[prop3] = obj[prop3];
|
|
48164
48114
|
}
|
|
48165
48115
|
}
|
|
@@ -53829,7 +53779,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53829
53779
|
};
|
|
53830
53780
|
}
|
|
53831
53781
|
});
|
|
53832
|
-
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
53782
|
+
const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0a54cdeb"]]);
|
|
53833
53783
|
const countryArray = [
|
|
53834
53784
|
["Afghanistan (افغانستان)", "AF", "93"],
|
|
53835
53785
|
["Albania (Shqipëri)", "AL", "355"],
|