@eodash/eodash 5.0.0-rc.2.3 → 5.0.0-rc.2.4
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/core/client/composables/EodashMap.js +0 -1
- package/core/client/composables/EodashProcess.js +4 -0
- package/core/client/eodash.js +2 -2
- package/core/client/eodashSTAC/createLayers.js +0 -6
- package/core/client/types.ts +1 -1
- package/core/client/vite-env.d.ts +13 -0
- package/dist/client/{DashboardLayout-Reny_s87.js → DashboardLayout-D1UcB3RV.js} +3 -3
- package/dist/client/{DynamicWebComponent-DQPKIscC.js → DynamicWebComponent-DtZ_mHL9.js} +2 -2
- package/dist/client/{EodashDatePicker-E5GjnQQ2.js → EodashDatePicker-CYU0MZX5.js} +3 -3
- package/dist/client/{EodashItemFilter-DN77Uqgg.js → EodashItemFilter-SE9oW3oZ.js} +3 -3
- package/dist/client/{EodashLayerControl-DduVhg2O.js → EodashLayerControl-BuGe29Nt.js} +2 -2
- package/dist/client/{EodashLayoutSwitcher-CeNnYuaC.js → EodashLayoutSwitcher-6wLl-Gtd.js} +3 -3
- package/dist/client/{EodashMap-C3bgcNJk.js → EodashMap-DhVCoYMi.js} +3 -2
- package/dist/client/{EodashMapBtns-B73UApEn.js → EodashMapBtns-BWWu6eHG.js} +5 -5
- package/dist/client/{EodashProcess-IQPnj17j.js → EodashProcess-GSj_LMsK.js} +10 -5
- package/dist/client/{EodashStacInfo-CeZqI75-.js → EodashStacInfo-DjRSGLHM.js} +2 -2
- package/dist/client/{EodashTools-CAE604ZJ.js → EodashTools-CJ4hBH_X.js} +5 -5
- package/dist/client/{ExportState-DXw8Dwvk.js → ExportState-BqnlEpzR.js} +5 -5
- package/dist/client/{Footer-Bl9tQTyj.js → Footer-C_3WrfI4.js} +2 -2
- package/dist/client/{Header-qH_kBs-u.js → Header-D_hcGpNG.js} +4 -4
- package/dist/client/{IframeWrapper-BgM9aU8f.js → IframeWrapper-XzQDZy0T.js} +1 -1
- package/dist/client/{MobileLayout-Du5n5XyY.js → MobileLayout-CDbupC9v.js} +6 -6
- package/dist/client/{PopUp-B12NWJHU.js → PopUp-Ba6mY2jQ.js} +5 -4
- package/dist/client/{VImg-CjsuV4n9.js → VImg-Yc9F9pYq.js} +4 -4
- package/dist/client/{VMain-B11EjLm6.js → VMain-BiS7HPEk.js} +1 -1
- package/dist/client/{VOverlay-CLR2s8AQ.js → VOverlay-B9mxXaCv.js} +4 -4
- package/dist/client/{VTooltip-DqyE5_aG.js → VTooltip-XJLaLrZQ.js} +3 -3
- package/dist/client/{WidgetsContainer-YI9ZycgC.js → WidgetsContainer-DRVb_73N.js} +2 -2
- package/dist/client/{asWebComponent-DBkwthjq.js → asWebComponent-DZpMGxEY.js} +155 -154
- package/dist/client/eo-dash.css +1 -1
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-BTYtR3pq.js → forwardRefs-BtkfywIE.js} +1 -1
- package/dist/client/{index-BhfdO0rU.js → index-f55xuyof.js} +3 -1
- package/dist/client/{transition-B79onGGb.js → transition-CtL4BoVi.js} +2 -2
- package/dist/node/cli.js +2 -2
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +254 -241
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +6 -10
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +5 -5
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +2 -71
- package/dist/types/widgets/PopUp.vue.d.ts +2 -2
- package/package.json +20 -20
- package/widgets/EodashItemFilter.vue +1 -1
- package/widgets/EodashMap.vue +1 -0
- package/widgets/EodashProcess.vue +5 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref, reactive, watch, onScopeDispose, effectScope,
|
|
1
|
+
import { ref, reactive, watch, onScopeDispose, effectScope, capitalize, computed, watchEffect, toRefs, shallowRef, Fragment, warn, getCurrentInstance as getCurrentInstance$1, unref, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, toRaw, createVNode, mergeProps, onBeforeUnmount, readonly, onMounted, onDeactivated, onActivated, nextTick, shallowReactive, onUnmounted, isRef, toRef, onUpdated, Text, Transition, resolveDynamicComponent, withDirectives, useModel, createBlock, createCommentVNode, openBlock, withCtx, createTextVNode, createElementVNode, toDisplayString, defineAsyncComponent, onErrorCaptured, Suspense, createElementBlock, normalizeProps, withAsyncContext, normalizeStyle, defineCustomElement } from 'vue';
|
|
2
2
|
import { defineStore, storeToRefs, createPinia } from 'pinia';
|
|
3
3
|
import { setupCache } from 'axios-cache-interceptor';
|
|
4
4
|
import log from 'loglevel';
|
|
5
|
-
import { mdiViewDashboardVariant, mdiViewDashboard,
|
|
5
|
+
import { mdiViewDashboardVariant, mdiViewDashboard, mdiCurrencyEur, mdiWeatherWindy, mdiSetCenter, mdiHospitalBoxOutline, mdiImageFilterHdr, mdiWater, mdiBarley, mdiClose, mdiAlertCircle, mdiPlus, mdiMenuDown, mdiChevronLeft, mdiChevronRight } from '@mdi/js';
|
|
6
6
|
import { useEventBus, createSharedComposable } from '@vueuse/core';
|
|
7
7
|
import WebFontLoader from 'webfontloader';
|
|
8
8
|
import { toAbsolute } from 'stac-js/src/http.js';
|
|
@@ -783,7 +783,7 @@ const utils$1 = {
|
|
|
783
783
|
*
|
|
784
784
|
* @returns {Error} The created error.
|
|
785
785
|
*/
|
|
786
|
-
function AxiosError(message, code, config, request, response) {
|
|
786
|
+
function AxiosError$1(message, code, config, request, response) {
|
|
787
787
|
Error.call(this);
|
|
788
788
|
|
|
789
789
|
if (Error.captureStackTrace) {
|
|
@@ -803,7 +803,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
|
|
806
|
-
utils$1.inherits(AxiosError, Error, {
|
|
806
|
+
utils$1.inherits(AxiosError$1, Error, {
|
|
807
807
|
toJSON: function toJSON() {
|
|
808
808
|
return {
|
|
809
809
|
// Standard
|
|
@@ -825,7 +825,7 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
825
825
|
}
|
|
826
826
|
});
|
|
827
827
|
|
|
828
|
-
const prototype$1 = AxiosError.prototype;
|
|
828
|
+
const prototype$1 = AxiosError$1.prototype;
|
|
829
829
|
const descriptors = {};
|
|
830
830
|
|
|
831
831
|
[
|
|
@@ -846,11 +846,11 @@ const descriptors = {};
|
|
|
846
846
|
descriptors[code] = {value: code};
|
|
847
847
|
});
|
|
848
848
|
|
|
849
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
849
|
+
Object.defineProperties(AxiosError$1, descriptors);
|
|
850
850
|
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
851
851
|
|
|
852
852
|
// eslint-disable-next-line func-names
|
|
853
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
853
|
+
AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
854
854
|
const axiosError = Object.create(prototype$1);
|
|
855
855
|
|
|
856
856
|
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
@@ -859,7 +859,7 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
859
859
|
return prop !== 'isAxiosError';
|
|
860
860
|
});
|
|
861
861
|
|
|
862
|
-
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
862
|
+
AxiosError$1.call(axiosError, error.message, code, config, request, response);
|
|
863
863
|
|
|
864
864
|
axiosError.cause = error;
|
|
865
865
|
|
|
@@ -951,7 +951,7 @@ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop)
|
|
|
951
951
|
*
|
|
952
952
|
* @returns
|
|
953
953
|
*/
|
|
954
|
-
function toFormData(obj, formData, options) {
|
|
954
|
+
function toFormData$1(obj, formData, options) {
|
|
955
955
|
if (!utils$1.isObject(obj)) {
|
|
956
956
|
throw new TypeError('target must be an object');
|
|
957
957
|
}
|
|
@@ -989,7 +989,7 @@ function toFormData(obj, formData, options) {
|
|
|
989
989
|
}
|
|
990
990
|
|
|
991
991
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
992
|
-
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
992
|
+
throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
@@ -1118,7 +1118,7 @@ function encode$1(str) {
|
|
|
1118
1118
|
function AxiosURLSearchParams(params, options) {
|
|
1119
1119
|
this._pairs = [];
|
|
1120
1120
|
|
|
1121
|
-
params && toFormData(params, this, options);
|
|
1121
|
+
params && toFormData$1(params, this, options);
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
1124
|
const prototype = AxiosURLSearchParams.prototype;
|
|
@@ -1349,7 +1349,7 @@ const platform = {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
|
|
1351
1351
|
function toURLEncodedForm(data, options) {
|
|
1352
|
-
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
1352
|
+
return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
1353
1353
|
visitor: function(value, key, path, helpers) {
|
|
1354
1354
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1355
1355
|
this.append(key, value.toString('base64'));
|
|
@@ -1473,7 +1473,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
-
return (
|
|
1476
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
1477
1477
|
}
|
|
1478
1478
|
|
|
1479
1479
|
const defaults = {
|
|
@@ -1524,7 +1524,7 @@ const defaults = {
|
|
|
1524
1524
|
if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
1525
1525
|
const _FormData = this.env && this.env.FormData;
|
|
1526
1526
|
|
|
1527
|
-
return toFormData(
|
|
1527
|
+
return toFormData$1(
|
|
1528
1528
|
isFileList ? {'files[]': data} : data,
|
|
1529
1529
|
_FormData && new _FormData(),
|
|
1530
1530
|
this.formSerializer
|
|
@@ -1558,7 +1558,7 @@ const defaults = {
|
|
|
1558
1558
|
} catch (e) {
|
|
1559
1559
|
if (strictJSONParsing) {
|
|
1560
1560
|
if (e.name === 'SyntaxError') {
|
|
1561
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1561
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1562
1562
|
}
|
|
1563
1563
|
throw e;
|
|
1564
1564
|
}
|
|
@@ -1721,7 +1721,7 @@ function buildAccessors(obj, header) {
|
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
|
-
class AxiosHeaders {
|
|
1724
|
+
let AxiosHeaders$1 = class AxiosHeaders {
|
|
1725
1725
|
constructor(headers) {
|
|
1726
1726
|
headers && this.set(headers);
|
|
1727
1727
|
}
|
|
@@ -1932,12 +1932,12 @@ class AxiosHeaders {
|
|
|
1932
1932
|
|
|
1933
1933
|
return this;
|
|
1934
1934
|
}
|
|
1935
|
-
}
|
|
1935
|
+
};
|
|
1936
1936
|
|
|
1937
|
-
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
1937
|
+
AxiosHeaders$1.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
1938
1938
|
|
|
1939
1939
|
// reserved names hotfix
|
|
1940
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
1940
|
+
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({value}, key) => {
|
|
1941
1941
|
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
1942
1942
|
return {
|
|
1943
1943
|
get: () => value,
|
|
@@ -1947,7 +1947,7 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
|
|
1950
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
1950
|
+
utils$1.freezeMethods(AxiosHeaders$1);
|
|
1951
1951
|
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Transform the data for a request or a response
|
|
@@ -1960,7 +1960,7 @@ utils$1.freezeMethods(AxiosHeaders);
|
|
|
1960
1960
|
function transformData(fns, response) {
|
|
1961
1961
|
const config = this || defaults;
|
|
1962
1962
|
const context = response || config;
|
|
1963
|
-
const headers = AxiosHeaders.from(context.headers);
|
|
1963
|
+
const headers = AxiosHeaders$1.from(context.headers);
|
|
1964
1964
|
let data = context.data;
|
|
1965
1965
|
|
|
1966
1966
|
utils$1.forEach(fns, function transform(fn) {
|
|
@@ -1972,7 +1972,7 @@ function transformData(fns, response) {
|
|
|
1972
1972
|
return data;
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
|
-
function isCancel(value) {
|
|
1975
|
+
function isCancel$1(value) {
|
|
1976
1976
|
return !!(value && value.__CANCEL__);
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
@@ -1985,13 +1985,13 @@ function isCancel(value) {
|
|
|
1985
1985
|
*
|
|
1986
1986
|
* @returns {CanceledError} The created error.
|
|
1987
1987
|
*/
|
|
1988
|
-
function CanceledError(message, config, request) {
|
|
1988
|
+
function CanceledError$1(message, config, request) {
|
|
1989
1989
|
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1990
|
-
AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
1990
|
+
AxiosError$1.call(this, message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
1991
1991
|
this.name = 'CanceledError';
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
|
-
utils$1.inherits(CanceledError, AxiosError, {
|
|
1994
|
+
utils$1.inherits(CanceledError$1, AxiosError$1, {
|
|
1995
1995
|
__CANCEL__: true
|
|
1996
1996
|
});
|
|
1997
1997
|
|
|
@@ -2009,9 +2009,9 @@ function settle(resolve, reject, response) {
|
|
|
2009
2009
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2010
2010
|
resolve(response);
|
|
2011
2011
|
} else {
|
|
2012
|
-
reject(new AxiosError(
|
|
2012
|
+
reject(new AxiosError$1(
|
|
2013
2013
|
'Request failed with status code ' + response.status,
|
|
2014
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2014
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2015
2015
|
response.config,
|
|
2016
2016
|
response.request,
|
|
2017
2017
|
response
|
|
@@ -2257,7 +2257,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
2257
2257
|
return requestedURL;
|
|
2258
2258
|
}
|
|
2259
2259
|
|
|
2260
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
|
|
2260
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2261
2261
|
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -2268,7 +2268,7 @@ const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing }
|
|
|
2268
2268
|
*
|
|
2269
2269
|
* @returns {Object} New object resulting from merging config2 to config1
|
|
2270
2270
|
*/
|
|
2271
|
-
function mergeConfig(config1, config2) {
|
|
2271
|
+
function mergeConfig$1(config1, config2) {
|
|
2272
2272
|
// eslint-disable-next-line no-param-reassign
|
|
2273
2273
|
config2 = config2 || {};
|
|
2274
2274
|
const config = {};
|
|
@@ -2360,11 +2360,11 @@ function mergeConfig(config1, config2) {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
2362
|
const resolveConfig = (config) => {
|
|
2363
|
-
const newConfig = mergeConfig({}, config);
|
|
2363
|
+
const newConfig = mergeConfig$1({}, config);
|
|
2364
2364
|
|
|
2365
2365
|
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
2366
2366
|
|
|
2367
|
-
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2367
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2368
2368
|
|
|
2369
2369
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
2370
2370
|
|
|
@@ -2413,7 +2413,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2413
2413
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2414
2414
|
const _config = resolveConfig(config);
|
|
2415
2415
|
let requestData = _config.data;
|
|
2416
|
-
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
2416
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
2417
2417
|
let {responseType, onUploadProgress, onDownloadProgress} = _config;
|
|
2418
2418
|
let onCanceled;
|
|
2419
2419
|
let uploadThrottled, downloadThrottled;
|
|
@@ -2440,7 +2440,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2440
2440
|
return;
|
|
2441
2441
|
}
|
|
2442
2442
|
// Prepare the response
|
|
2443
|
-
const responseHeaders = AxiosHeaders.from(
|
|
2443
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
2444
2444
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
2445
2445
|
);
|
|
2446
2446
|
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
@@ -2495,7 +2495,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2495
2495
|
return;
|
|
2496
2496
|
}
|
|
2497
2497
|
|
|
2498
|
-
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
2498
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
2499
2499
|
|
|
2500
2500
|
// Clean up request
|
|
2501
2501
|
request = null;
|
|
@@ -2505,7 +2505,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2505
2505
|
request.onerror = function handleError() {
|
|
2506
2506
|
// Real errors are hidden from us by the browser
|
|
2507
2507
|
// onerror should only fire if it's a network error
|
|
2508
|
-
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
2508
|
+
reject(new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request));
|
|
2509
2509
|
|
|
2510
2510
|
// Clean up request
|
|
2511
2511
|
request = null;
|
|
@@ -2518,9 +2518,9 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2518
2518
|
if (_config.timeoutErrorMessage) {
|
|
2519
2519
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2520
2520
|
}
|
|
2521
|
-
reject(new AxiosError(
|
|
2521
|
+
reject(new AxiosError$1(
|
|
2522
2522
|
timeoutErrorMessage,
|
|
2523
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
2523
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
2524
2524
|
config,
|
|
2525
2525
|
request));
|
|
2526
2526
|
|
|
@@ -2570,7 +2570,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2570
2570
|
if (!request) {
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
2573
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
2574
2574
|
request.abort();
|
|
2575
2575
|
request = null;
|
|
2576
2576
|
};
|
|
@@ -2584,7 +2584,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2584
2584
|
const protocol = parseProtocol(_config.url);
|
|
2585
2585
|
|
|
2586
2586
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
2587
|
-
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
2587
|
+
reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
|
|
2588
2588
|
return;
|
|
2589
2589
|
}
|
|
2590
2590
|
|
|
@@ -2607,13 +2607,13 @@ const composeSignals = (signals, timeout) => {
|
|
|
2607
2607
|
aborted = true;
|
|
2608
2608
|
unsubscribe();
|
|
2609
2609
|
const err = reason instanceof Error ? reason : this.reason;
|
|
2610
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
2610
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
2611
2611
|
}
|
|
2612
2612
|
};
|
|
2613
2613
|
|
|
2614
2614
|
let timer = timeout && setTimeout(() => {
|
|
2615
2615
|
timer = null;
|
|
2616
|
-
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
2616
|
+
onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
2617
2617
|
}, timeout);
|
|
2618
2618
|
|
|
2619
2619
|
const unsubscribe = () => {
|
|
@@ -2770,7 +2770,7 @@ isFetchSupported && (((res) => {
|
|
|
2770
2770
|
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
2771
2771
|
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
|
|
2772
2772
|
(_, config) => {
|
|
2773
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2773
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
2774
2774
|
});
|
|
2775
2775
|
});
|
|
2776
2776
|
})(new Response));
|
|
@@ -2919,7 +2919,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
2919
2919
|
return await new Promise((resolve, reject) => {
|
|
2920
2920
|
settle(resolve, reject, {
|
|
2921
2921
|
data: responseData,
|
|
2922
|
-
headers: AxiosHeaders.from(response.headers),
|
|
2922
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
2923
2923
|
status: response.status,
|
|
2924
2924
|
statusText: response.statusText,
|
|
2925
2925
|
config,
|
|
@@ -2931,14 +2931,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
2931
2931
|
|
|
2932
2932
|
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
|
2933
2933
|
throw Object.assign(
|
|
2934
|
-
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
2934
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
2935
2935
|
{
|
|
2936
2936
|
cause: err.cause || err
|
|
2937
2937
|
}
|
|
2938
2938
|
)
|
|
2939
2939
|
}
|
|
2940
2940
|
|
|
2941
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
2941
|
+
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
2942
2942
|
}
|
|
2943
2943
|
});
|
|
2944
2944
|
|
|
@@ -2983,7 +2983,7 @@ const adapters = {
|
|
|
2983
2983
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
2984
2984
|
|
|
2985
2985
|
if (adapter === undefined) {
|
|
2986
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
2986
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
2987
2987
|
}
|
|
2988
2988
|
}
|
|
2989
2989
|
|
|
@@ -3005,7 +3005,7 @@ const adapters = {
|
|
|
3005
3005
|
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
3006
3006
|
'as no adapter specified';
|
|
3007
3007
|
|
|
3008
|
-
throw new AxiosError(
|
|
3008
|
+
throw new AxiosError$1(
|
|
3009
3009
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
3010
3010
|
'ERR_NOT_SUPPORT'
|
|
3011
3011
|
);
|
|
@@ -3029,7 +3029,7 @@ function throwIfCancellationRequested(config) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
3031
|
if (config.signal && config.signal.aborted) {
|
|
3032
|
-
throw new CanceledError(null, config);
|
|
3032
|
+
throw new CanceledError$1(null, config);
|
|
3033
3033
|
}
|
|
3034
3034
|
}
|
|
3035
3035
|
|
|
@@ -3043,7 +3043,7 @@ function throwIfCancellationRequested(config) {
|
|
|
3043
3043
|
function dispatchRequest(config) {
|
|
3044
3044
|
throwIfCancellationRequested(config);
|
|
3045
3045
|
|
|
3046
|
-
config.headers = AxiosHeaders.from(config.headers);
|
|
3046
|
+
config.headers = AxiosHeaders$1.from(config.headers);
|
|
3047
3047
|
|
|
3048
3048
|
// Transform request data
|
|
3049
3049
|
config.data = transformData.call(
|
|
@@ -3067,11 +3067,11 @@ function dispatchRequest(config) {
|
|
|
3067
3067
|
response
|
|
3068
3068
|
);
|
|
3069
3069
|
|
|
3070
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
3070
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3071
3071
|
|
|
3072
3072
|
return response;
|
|
3073
3073
|
}, function onAdapterRejection(reason) {
|
|
3074
|
-
if (!isCancel(reason)) {
|
|
3074
|
+
if (!isCancel$1(reason)) {
|
|
3075
3075
|
throwIfCancellationRequested(config);
|
|
3076
3076
|
|
|
3077
3077
|
// Transform response data
|
|
@@ -3081,7 +3081,7 @@ function dispatchRequest(config) {
|
|
|
3081
3081
|
config.transformResponse,
|
|
3082
3082
|
reason.response
|
|
3083
3083
|
);
|
|
3084
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
3084
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
|
|
@@ -3089,7 +3089,7 @@ function dispatchRequest(config) {
|
|
|
3089
3089
|
});
|
|
3090
3090
|
}
|
|
3091
3091
|
|
|
3092
|
-
const VERSION = "1.7.9";
|
|
3092
|
+
const VERSION$1 = "1.7.9";
|
|
3093
3093
|
|
|
3094
3094
|
const validators$1 = {};
|
|
3095
3095
|
|
|
@@ -3113,15 +3113,15 @@ const deprecatedWarnings = {};
|
|
|
3113
3113
|
*/
|
|
3114
3114
|
validators$1.transitional = function transitional(validator, version, message) {
|
|
3115
3115
|
function formatMessage(opt, desc) {
|
|
3116
|
-
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
3116
|
+
return '[Axios v' + VERSION$1 + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
3117
3117
|
}
|
|
3118
3118
|
|
|
3119
3119
|
// eslint-disable-next-line func-names
|
|
3120
3120
|
return (value, opt, opts) => {
|
|
3121
3121
|
if (validator === false) {
|
|
3122
|
-
throw new AxiosError(
|
|
3122
|
+
throw new AxiosError$1(
|
|
3123
3123
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
|
3124
|
-
AxiosError.ERR_DEPRECATED
|
|
3124
|
+
AxiosError$1.ERR_DEPRECATED
|
|
3125
3125
|
);
|
|
3126
3126
|
}
|
|
3127
3127
|
|
|
@@ -3160,7 +3160,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
3160
3160
|
|
|
3161
3161
|
function assertOptions(options, schema, allowUnknown) {
|
|
3162
3162
|
if (typeof options !== 'object') {
|
|
3163
|
-
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3163
|
+
throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3164
3164
|
}
|
|
3165
3165
|
const keys = Object.keys(options);
|
|
3166
3166
|
let i = keys.length;
|
|
@@ -3171,12 +3171,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3171
3171
|
const value = options[opt];
|
|
3172
3172
|
const result = value === undefined || validator(value, opt, options);
|
|
3173
3173
|
if (result !== true) {
|
|
3174
|
-
throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3174
|
+
throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3175
3175
|
}
|
|
3176
3176
|
continue;
|
|
3177
3177
|
}
|
|
3178
3178
|
if (allowUnknown !== true) {
|
|
3179
|
-
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
3179
|
+
throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
3180
3180
|
}
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
@@ -3195,7 +3195,7 @@ const validators = validator.validators;
|
|
|
3195
3195
|
*
|
|
3196
3196
|
* @return {Axios} A new instance of Axios
|
|
3197
3197
|
*/
|
|
3198
|
-
class Axios {
|
|
3198
|
+
let Axios$1 = class Axios {
|
|
3199
3199
|
constructor(instanceConfig) {
|
|
3200
3200
|
this.defaults = instanceConfig;
|
|
3201
3201
|
this.interceptors = {
|
|
@@ -3249,7 +3249,7 @@ class Axios {
|
|
|
3249
3249
|
config = configOrUrl || {};
|
|
3250
3250
|
}
|
|
3251
3251
|
|
|
3252
|
-
config = mergeConfig(this.defaults, config);
|
|
3252
|
+
config = mergeConfig$1(this.defaults, config);
|
|
3253
3253
|
|
|
3254
3254
|
const {transitional, paramsSerializer, headers} = config;
|
|
3255
3255
|
|
|
@@ -3295,7 +3295,7 @@ class Axios {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
);
|
|
3297
3297
|
|
|
3298
|
-
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
3298
|
+
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
3299
3299
|
|
|
3300
3300
|
// filter out skipped interceptors
|
|
3301
3301
|
const requestInterceptorChain = [];
|
|
@@ -3368,17 +3368,17 @@ class Axios {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
|
|
3370
3370
|
getUri(config) {
|
|
3371
|
-
config = mergeConfig(this.defaults, config);
|
|
3371
|
+
config = mergeConfig$1(this.defaults, config);
|
|
3372
3372
|
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
3373
3373
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
3374
3374
|
}
|
|
3375
|
-
}
|
|
3375
|
+
};
|
|
3376
3376
|
|
|
3377
3377
|
// Provide aliases for supported request methods
|
|
3378
3378
|
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
3379
3379
|
/*eslint func-names:0*/
|
|
3380
|
-
Axios.prototype[method] = function(url, config) {
|
|
3381
|
-
return this.request(mergeConfig(config || {}, {
|
|
3380
|
+
Axios$1.prototype[method] = function(url, config) {
|
|
3381
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
3382
3382
|
method,
|
|
3383
3383
|
url,
|
|
3384
3384
|
data: (config || {}).data
|
|
@@ -3391,7 +3391,7 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
|
3391
3391
|
|
|
3392
3392
|
function generateHTTPMethod(isForm) {
|
|
3393
3393
|
return function httpMethod(url, data, config) {
|
|
3394
|
-
return this.request(mergeConfig(config || {}, {
|
|
3394
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
3395
3395
|
method,
|
|
3396
3396
|
headers: isForm ? {
|
|
3397
3397
|
'Content-Type': 'multipart/form-data'
|
|
@@ -3402,9 +3402,9 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
3404
|
|
|
3405
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
3405
|
+
Axios$1.prototype[method] = generateHTTPMethod();
|
|
3406
3406
|
|
|
3407
|
-
Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
3407
|
+
Axios$1.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
3408
3408
|
});
|
|
3409
3409
|
|
|
3410
3410
|
/**
|
|
@@ -3414,7 +3414,7 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
|
3414
3414
|
*
|
|
3415
3415
|
* @returns {CancelToken}
|
|
3416
3416
|
*/
|
|
3417
|
-
class CancelToken {
|
|
3417
|
+
let CancelToken$1 = class CancelToken {
|
|
3418
3418
|
constructor(executor) {
|
|
3419
3419
|
if (typeof executor !== 'function') {
|
|
3420
3420
|
throw new TypeError('executor must be a function.');
|
|
@@ -3462,7 +3462,7 @@ class CancelToken {
|
|
|
3462
3462
|
return;
|
|
3463
3463
|
}
|
|
3464
3464
|
|
|
3465
|
-
token.reason = new CanceledError(message, config, request);
|
|
3465
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
3466
3466
|
resolvePromise(token.reason);
|
|
3467
3467
|
});
|
|
3468
3468
|
}
|
|
@@ -3535,7 +3535,7 @@ class CancelToken {
|
|
|
3535
3535
|
cancel
|
|
3536
3536
|
};
|
|
3537
3537
|
}
|
|
3538
|
-
}
|
|
3538
|
+
};
|
|
3539
3539
|
|
|
3540
3540
|
/**
|
|
3541
3541
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
@@ -3558,7 +3558,7 @@ class CancelToken {
|
|
|
3558
3558
|
*
|
|
3559
3559
|
* @returns {Function}
|
|
3560
3560
|
*/
|
|
3561
|
-
function spread(callback) {
|
|
3561
|
+
function spread$1(callback) {
|
|
3562
3562
|
return function wrap(arr) {
|
|
3563
3563
|
return callback.apply(null, arr);
|
|
3564
3564
|
};
|
|
@@ -3571,11 +3571,11 @@ function spread(callback) {
|
|
|
3571
3571
|
*
|
|
3572
3572
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
3573
3573
|
*/
|
|
3574
|
-
function isAxiosError(payload) {
|
|
3574
|
+
function isAxiosError$1(payload) {
|
|
3575
3575
|
return utils$1.isObject(payload) && (payload.isAxiosError === true);
|
|
3576
3576
|
}
|
|
3577
3577
|
|
|
3578
|
-
const HttpStatusCode = {
|
|
3578
|
+
const HttpStatusCode$1 = {
|
|
3579
3579
|
Continue: 100,
|
|
3580
3580
|
SwitchingProtocols: 101,
|
|
3581
3581
|
Processing: 102,
|
|
@@ -3641,8 +3641,8 @@ const HttpStatusCode = {
|
|
|
3641
3641
|
NetworkAuthenticationRequired: 511,
|
|
3642
3642
|
};
|
|
3643
3643
|
|
|
3644
|
-
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
3645
|
-
HttpStatusCode[value] = key;
|
|
3644
|
+
Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
3645
|
+
HttpStatusCode$1[value] = key;
|
|
3646
3646
|
});
|
|
3647
3647
|
|
|
3648
3648
|
/**
|
|
@@ -3653,18 +3653,18 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
3653
3653
|
* @returns {Axios} A new instance of Axios
|
|
3654
3654
|
*/
|
|
3655
3655
|
function createInstance$1(defaultConfig) {
|
|
3656
|
-
const context = new Axios(defaultConfig);
|
|
3657
|
-
const instance = bind(Axios.prototype.request, context);
|
|
3656
|
+
const context = new Axios$1(defaultConfig);
|
|
3657
|
+
const instance = bind(Axios$1.prototype.request, context);
|
|
3658
3658
|
|
|
3659
3659
|
// Copy axios.prototype to instance
|
|
3660
|
-
utils$1.extend(instance, Axios.prototype, context, {allOwnKeys: true});
|
|
3660
|
+
utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
|
|
3661
3661
|
|
|
3662
3662
|
// Copy context to instance
|
|
3663
3663
|
utils$1.extend(instance, context, null, {allOwnKeys: true});
|
|
3664
3664
|
|
|
3665
3665
|
// Factory for creating new instances
|
|
3666
3666
|
instance.create = function create(instanceConfig) {
|
|
3667
|
-
return createInstance$1(mergeConfig(defaultConfig, instanceConfig));
|
|
3667
|
+
return createInstance$1(mergeConfig$1(defaultConfig, instanceConfig));
|
|
3668
3668
|
};
|
|
3669
3669
|
|
|
3670
3670
|
return instance;
|
|
@@ -3674,17 +3674,17 @@ function createInstance$1(defaultConfig) {
|
|
|
3674
3674
|
const axios$1 = createInstance$1(defaults);
|
|
3675
3675
|
|
|
3676
3676
|
// Expose Axios class to allow class inheritance
|
|
3677
|
-
axios$1.Axios = Axios;
|
|
3677
|
+
axios$1.Axios = Axios$1;
|
|
3678
3678
|
|
|
3679
3679
|
// Expose Cancel & CancelToken
|
|
3680
|
-
axios$1.CanceledError = CanceledError;
|
|
3681
|
-
axios$1.CancelToken = CancelToken;
|
|
3682
|
-
axios$1.isCancel = isCancel;
|
|
3683
|
-
axios$1.VERSION = VERSION;
|
|
3684
|
-
axios$1.toFormData = toFormData;
|
|
3680
|
+
axios$1.CanceledError = CanceledError$1;
|
|
3681
|
+
axios$1.CancelToken = CancelToken$1;
|
|
3682
|
+
axios$1.isCancel = isCancel$1;
|
|
3683
|
+
axios$1.VERSION = VERSION$1;
|
|
3684
|
+
axios$1.toFormData = toFormData$1;
|
|
3685
3685
|
|
|
3686
3686
|
// Expose AxiosError class
|
|
3687
|
-
axios$1.AxiosError = AxiosError;
|
|
3687
|
+
axios$1.AxiosError = AxiosError$1;
|
|
3688
3688
|
|
|
3689
3689
|
// alias for CanceledError for backward compatibility
|
|
3690
3690
|
axios$1.Cancel = axios$1.CanceledError;
|
|
@@ -3694,24 +3694,46 @@ axios$1.all = function all(promises) {
|
|
|
3694
3694
|
return Promise.all(promises);
|
|
3695
3695
|
};
|
|
3696
3696
|
|
|
3697
|
-
axios$1.spread = spread;
|
|
3697
|
+
axios$1.spread = spread$1;
|
|
3698
3698
|
|
|
3699
3699
|
// Expose isAxiosError
|
|
3700
|
-
axios$1.isAxiosError = isAxiosError;
|
|
3700
|
+
axios$1.isAxiosError = isAxiosError$1;
|
|
3701
3701
|
|
|
3702
3702
|
// Expose mergeConfig
|
|
3703
|
-
axios$1.mergeConfig = mergeConfig;
|
|
3703
|
+
axios$1.mergeConfig = mergeConfig$1;
|
|
3704
3704
|
|
|
3705
|
-
axios$1.AxiosHeaders = AxiosHeaders;
|
|
3705
|
+
axios$1.AxiosHeaders = AxiosHeaders$1;
|
|
3706
3706
|
|
|
3707
3707
|
axios$1.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3708
3708
|
|
|
3709
3709
|
axios$1.getAdapter = adapters.getAdapter;
|
|
3710
3710
|
|
|
3711
|
-
axios$1.HttpStatusCode = HttpStatusCode;
|
|
3711
|
+
axios$1.HttpStatusCode = HttpStatusCode$1;
|
|
3712
3712
|
|
|
3713
3713
|
axios$1.default = axios$1;
|
|
3714
3714
|
|
|
3715
|
+
// This module is intended to unwrap Axios default export as named.
|
|
3716
|
+
// Keep top-level export same with static properties
|
|
3717
|
+
// so that it can keep same with es module or cjs
|
|
3718
|
+
const {
|
|
3719
|
+
Axios,
|
|
3720
|
+
AxiosError,
|
|
3721
|
+
CanceledError,
|
|
3722
|
+
isCancel,
|
|
3723
|
+
CancelToken,
|
|
3724
|
+
VERSION,
|
|
3725
|
+
all,
|
|
3726
|
+
Cancel,
|
|
3727
|
+
isAxiosError,
|
|
3728
|
+
spread,
|
|
3729
|
+
toFormData,
|
|
3730
|
+
AxiosHeaders,
|
|
3731
|
+
HttpStatusCode,
|
|
3732
|
+
formToJSON,
|
|
3733
|
+
getAdapter,
|
|
3734
|
+
mergeConfig
|
|
3735
|
+
} = axios$1;
|
|
3736
|
+
|
|
3715
3737
|
const instance = axios$1.create();
|
|
3716
3738
|
|
|
3717
3739
|
const axios = setupCache(instance, { cacheTakeover: false });
|
|
@@ -3774,14 +3796,14 @@ const states = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3774
3796
|
const eodash = reactive({
|
|
3775
3797
|
id: "demo",
|
|
3776
3798
|
stacEndpoint:
|
|
3777
|
-
"https://esa-eodash.github.io/RACE-catalog/RACE/catalog.json",
|
|
3799
|
+
// "https://esa-eodash.github.io/RACE-catalog/RACE/catalog.json",
|
|
3778
3800
|
// "https://gtif-cerulean.github.io/catalog/cerulean/catalog.json",
|
|
3779
3801
|
// "https://eodashcatalog.eox.at/samplecatalog/samples/catalog.json",
|
|
3780
3802
|
// "https://eodashcatalog.eox.at/test-style/trilateral/catalog.json",
|
|
3781
3803
|
// "https://gtif-cerulean.github.io/catalog/cerulean/catalog.json",
|
|
3782
3804
|
// "https://gtif-cerulean.github.io/deside-catalog/deside/catalog.json",
|
|
3783
3805
|
// "https://gtif-cerulean.github.io/cerulean-catalog/cerulean/catalog.json",
|
|
3784
|
-
|
|
3806
|
+
"https://gtif-austria.github.io/public-catalog/GTIF-Austria/catalog.json",
|
|
3785
3807
|
brand: {
|
|
3786
3808
|
noLayout: true,
|
|
3787
3809
|
name: "Demo",
|
|
@@ -4356,10 +4378,9 @@ function has(obj, key) {
|
|
|
4356
4378
|
// Array of keys
|
|
4357
4379
|
function pick(obj, paths) {
|
|
4358
4380
|
const found = {};
|
|
4359
|
-
const
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
found[path] = obj[path];
|
|
4381
|
+
for (const key of paths) {
|
|
4382
|
+
if (Object.hasOwn(obj, key)) {
|
|
4383
|
+
found[key] = obj[key];
|
|
4363
4384
|
}
|
|
4364
4385
|
}
|
|
4365
4386
|
return found;
|
|
@@ -6498,15 +6519,24 @@ const makeDisplayProps = propsFactory({
|
|
|
6498
6519
|
mobileBreakpoint: [Number, String]
|
|
6499
6520
|
}, 'display');
|
|
6500
6521
|
function useDisplay() {
|
|
6501
|
-
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
6522
|
+
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
6523
|
+
mobile: null
|
|
6524
|
+
};
|
|
6502
6525
|
let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
|
|
6503
6526
|
const display = inject$1(DisplaySymbol);
|
|
6504
6527
|
if (!display) throw new Error('Could not find Vuetify display injection');
|
|
6505
6528
|
const mobile = computed(() => {
|
|
6506
|
-
if (props.mobile
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6529
|
+
if (props.mobile) {
|
|
6530
|
+
return true;
|
|
6531
|
+
} else if (typeof props.mobileBreakpoint === 'number') {
|
|
6532
|
+
return display.width.value < props.mobileBreakpoint;
|
|
6533
|
+
} else if (props.mobileBreakpoint) {
|
|
6534
|
+
return display.width.value < display.thresholds.value[props.mobileBreakpoint];
|
|
6535
|
+
} else if (props.mobile === null) {
|
|
6536
|
+
return display.mobile.value;
|
|
6537
|
+
} else {
|
|
6538
|
+
return false;
|
|
6539
|
+
}
|
|
6510
6540
|
});
|
|
6511
6541
|
const displayClasses = computed(() => {
|
|
6512
6542
|
if (!name) return {};
|
|
@@ -7451,7 +7481,7 @@ function createLayout(props) {
|
|
|
7451
7481
|
}
|
|
7452
7482
|
|
|
7453
7483
|
function createVuetify() {
|
|
7454
|
-
let vuetify = arguments.length > 0 && arguments[0] !==
|
|
7484
|
+
let vuetify = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7455
7485
|
const {
|
|
7456
7486
|
blueprint,
|
|
7457
7487
|
...rest
|
|
@@ -7538,7 +7568,7 @@ function createVuetify() {
|
|
|
7538
7568
|
goTo
|
|
7539
7569
|
};
|
|
7540
7570
|
}
|
|
7541
|
-
const version$1 = "3.7.
|
|
7571
|
+
const version$1 = "3.7.13";
|
|
7542
7572
|
createVuetify.version = version$1;
|
|
7543
7573
|
function inject(key) {
|
|
7544
7574
|
const vm = this.$;
|
|
@@ -8653,12 +8683,6 @@ async function createLayersFromAssets(
|
|
|
8653
8683
|
layer.properties = { ...layer.properties, ...(extraProperties ?? {}) };
|
|
8654
8684
|
|
|
8655
8685
|
jsonArray.push(layer);
|
|
8656
|
-
const layer2 = structuredClone(layer);
|
|
8657
|
-
// temporary solution to avoid selection of the same layer
|
|
8658
|
-
// to be removed
|
|
8659
|
-
layer2.interactions = [];
|
|
8660
|
-
layer2.properties.id = layer2.properties.id + "_selection";
|
|
8661
|
-
jsonArray.push(layer2);
|
|
8662
8686
|
} else if (assets[ast]?.type === "image/tiff") {
|
|
8663
8687
|
geoTIFFIdx = idx;
|
|
8664
8688
|
geoTIFFSources.push({
|
|
@@ -10841,10 +10865,10 @@ function useBackButton(router, cb) {
|
|
|
10841
10865
|
let popped = false;
|
|
10842
10866
|
let removeBefore;
|
|
10843
10867
|
let removeAfter;
|
|
10844
|
-
if (IN_BROWSER) {
|
|
10868
|
+
if (IN_BROWSER && router?.beforeEach) {
|
|
10845
10869
|
nextTick(() => {
|
|
10846
10870
|
window.addEventListener('popstate', onPopstate);
|
|
10847
|
-
removeBefore = router
|
|
10871
|
+
removeBefore = router.beforeEach((to, from, next) => {
|
|
10848
10872
|
if (!inTransition) {
|
|
10849
10873
|
setTimeout(() => popped ? cb(next) : next());
|
|
10850
10874
|
} else {
|
|
@@ -10966,11 +10990,13 @@ const ripples = {
|
|
|
10966
10990
|
animation.classList.add('v-ripple__animation--visible');
|
|
10967
10991
|
transform(animation, `translate(${x}, ${y}) scale3d(${scale},${scale},${scale})`);
|
|
10968
10992
|
animation.dataset.activated = String(performance.now());
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10993
|
+
requestAnimationFrame(() => {
|
|
10994
|
+
requestAnimationFrame(() => {
|
|
10995
|
+
animation.classList.remove('v-ripple__animation--enter');
|
|
10996
|
+
animation.classList.add('v-ripple__animation--in');
|
|
10997
|
+
transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`);
|
|
10998
|
+
});
|
|
10999
|
+
});
|
|
10974
11000
|
},
|
|
10975
11001
|
hide(el) {
|
|
10976
11002
|
if (!el?._ripple?.enabled) return;
|
|
@@ -11627,7 +11653,7 @@ const ErrorAlert = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-a
|
|
|
11627
11653
|
const internalWidgets = (() => {
|
|
11628
11654
|
/** @type {Record<string, () => Promise<import("vue").Component>>} */
|
|
11629
11655
|
const importMap = {
|
|
11630
|
-
.../* #__PURE__ */ Object.assign({"/widgets/EodashDatePicker.vue": () => import('./EodashDatePicker-
|
|
11656
|
+
.../* #__PURE__ */ Object.assign({"/widgets/EodashDatePicker.vue": () => import('./EodashDatePicker-CYU0MZX5.js'),"/widgets/EodashItemFilter.vue": () => import('./EodashItemFilter-SE9oW3oZ.js'),"/widgets/EodashLayerControl.vue": () => import('./EodashLayerControl-BuGe29Nt.js'),"/widgets/EodashLayoutSwitcher.vue": () => import('./EodashLayoutSwitcher-6wLl-Gtd.js'),"/widgets/EodashMap.vue": () => import('./EodashMap-DhVCoYMi.js'),"/widgets/EodashMapBtns.vue": () => import('./EodashMapBtns-BWWu6eHG.js'),"/widgets/EodashProcess.vue": () => import('./EodashProcess-GSj_LMsK.js'),"/widgets/EodashStacInfo.vue": () => import('./EodashStacInfo-DjRSGLHM.js'),"/widgets/EodashTools.vue": () => import('./EodashTools-CJ4hBH_X.js'),"/widgets/ExportState.vue": () => import('./ExportState-BqnlEpzR.js'),"/widgets/PopUp.vue": () => import('./PopUp-Ba6mY2jQ.js'),"/widgets/WidgetsContainer.vue": () => import('./WidgetsContainer-DRVb_73N.js')}),
|
|
11631
11657
|
.../* #__PURE__ */ Object.assign({}),
|
|
11632
11658
|
};
|
|
11633
11659
|
for (const key in importMap) {
|
|
@@ -11740,7 +11766,7 @@ const getWidgetDefinition = (config) => {
|
|
|
11740
11766
|
|
|
11741
11767
|
case "web-component":
|
|
11742
11768
|
importedWidget.component = defineAsyncComponent({
|
|
11743
|
-
loader: () => import('./DynamicWebComponent-
|
|
11769
|
+
loader: () => import('./DynamicWebComponent-DtZ_mHL9.js'),
|
|
11744
11770
|
suspensible: true,
|
|
11745
11771
|
});
|
|
11746
11772
|
importedWidget.props = reactive(config.widget);
|
|
@@ -11748,7 +11774,7 @@ const getWidgetDefinition = (config) => {
|
|
|
11748
11774
|
break;
|
|
11749
11775
|
case "iframe":
|
|
11750
11776
|
importedWidget.component = defineAsyncComponent({
|
|
11751
|
-
loader: () => import('./IframeWrapper-
|
|
11777
|
+
loader: () => import('./IframeWrapper-XzQDZy0T.js'),
|
|
11752
11778
|
suspensible: true,
|
|
11753
11779
|
});
|
|
11754
11780
|
importedWidget.props = reactive(config.widget);
|
|
@@ -12135,34 +12161,9 @@ return (_ctx, _cache) => {
|
|
|
12135
12161
|
|
|
12136
12162
|
};
|
|
12137
12163
|
|
|
12138
|
-
const
|
|
12139
|
-
const version = "5.0.0-rc.2.3";
|
|
12140
|
-
const type = "module";
|
|
12141
|
-
const types = "./dist/types/core/client/types.d.ts";
|
|
12142
|
-
const files = ["core/client","widgets","dist"];
|
|
12143
|
-
const typesVersions = {"*":{".":["./dist/types/core/client/types.d.ts"],"webcomponent":["./dist/types/core/client/asWebComponent.d.ts"],"config":["./dist/node/types.d.ts"]}};
|
|
12144
|
-
const exports = {".":{"default":"./core/client/main.js"},"./webcomponent":{"default":"./dist/client/eo-dash.js"},"./webcomponent.css":"./dist/client/eo-dash.css","./config":{"default":"./dist/node/main.js"}};
|
|
12145
|
-
const browser = "./core/client/main.js";
|
|
12146
|
-
const scripts = {"start":"npx eodash dev --entryPoint core/client/eodash.js","prepare":"rollup -c","prepack":"npm run build:lib && npm run build:types","dev":"npx eodash dev --entryPoint core/client/eodash.js","dev:lib":"npx eodash dev --entryPoint core/client/eodash.js --lib","build":"npx eodash build --entryPoint core/client/eodash.js","build:lib":"npx eodash build --entryPoint core/client/eodash.js --lib --outDir dist/client","build:cli":"rollup -c","build:types":"vue-tsc --declaration --emitDeclarationOnly && tsc-alias","check":"vue-tsc --noEmit --skipLibCheck && eslint .","format":"prettier . --write --ignore-unknown","preview":"npx eodash preview","lint":"eslint . --fix","cypress":"cypress open --component ","vitest":"vitest --isolate --ui","test":"npm run test:client && npm run test:cli","test:cli":"vitest run tests/cli --isolate","test:client":"cypress run --component","docs:dev":"vitepress dev docs --port 3333","docs:build":"npm run docs:generate && vitepress build docs","docs:preview":"vitepress preview docs","docs:generate":"typedoc --options typedoc.config.json"};
|
|
12147
|
-
const dependencies = {"@eox/chart":"^0.3.1","@eox/drawtools":"^0.13.3","@eox/itemfilter":"^1.7.1","@eox/jsonform":"^0.12.2","@eox/layercontrol":"^0.29.0","@eox/layout":"^0.3.0","@eox/map":"^1.19.2","@eox/stacinfo":"^0.6.1","@eox/timecontrol":"^0.12.2","@mdi/js":"^7.4.47","@vitejs/plugin-vue":"^5.2.1","@vueuse/core":"^12.0.0","animated-details":"gist:2912bb049fa906671807415eb0e87188","axios":"^1.7.9","axios-cache-interceptor":"^1.6.2","color-legend-element":"^1.3.0","commander":"^12.1.0","core-js":"^3.40.0","loglevel":"^1.9.2","mustache":"^4.2.0","pinia":"^2.3.1","sass":"^1.83.4","stac-js":"^0.0.9","stac-ts":"^1.0.4","v-calendar":"3.0.0","vega":"^5.30.0","vega-embed":"^6.29.0","vega-lite":"^5.23.0","vite":"^6.0.11","vite-plugin-vuetify":"^2.0.4","vue":"^3.5.0","vuetify":"^3.7.7","webfontloader":"^1.6.28"};
|
|
12148
|
-
const devDependencies = {"@babel/types":"^7.26.5","@eox/eslint-config":"^2.0.0","@pinia/testing":"^0.1.7","@types/mustache":"^4.2.5","@types/node":"^22.10.7","@types/openlayers":"^4.6.23","@types/webfontloader":"^1.6.38","cypress":"^13.17.0","eslint":"^9.18.0","eslint-plugin-vue":"^9.32.0","pkg-pr-new":"^0.0.39","prettier":"^3.4.2","rollup":"^4.31.0","terminate":"^2.8.0","tsc-alias":"^1.8.10","typedoc":"^0.27.6","typedoc-plugin-markdown":"^4.4.1","typedoc-plugin-vue":"^1.3.0","typedoc-vitepress-theme":"^1.1.2","typescript":"^5.7.3","unplugin-fonts":"^1.3.1","vitepress":"^1.6.2","vitest":"^1.6.0","vue-tsc":"2.2.0"};
|
|
12149
|
-
const engines = {"node":">=20.15.1"};
|
|
12150
|
-
const bin = {"eodash":"./dist/node/cli.js"};
|
|
12164
|
+
const version = "5.0.0-rc.2.4";
|
|
12151
12165
|
const pkgJson = {
|
|
12152
|
-
|
|
12153
|
-
version,
|
|
12154
|
-
type,
|
|
12155
|
-
types,
|
|
12156
|
-
files,
|
|
12157
|
-
typesVersions,
|
|
12158
|
-
exports,
|
|
12159
|
-
browser,
|
|
12160
|
-
scripts,
|
|
12161
|
-
dependencies,
|
|
12162
|
-
devDependencies,
|
|
12163
|
-
engines,
|
|
12164
|
-
bin,
|
|
12165
|
-
};
|
|
12166
|
+
version};
|
|
12166
12167
|
|
|
12167
12168
|
const _hoisted_1$1 = {
|
|
12168
12169
|
key: 0,
|
|
@@ -12262,15 +12263,15 @@ const { loadSTAC } = useSTAcStore();
|
|
|
12262
12263
|
const { smAndDown } = useDisplay();
|
|
12263
12264
|
const TemplateComponent = computed(() =>
|
|
12264
12265
|
smAndDown.value
|
|
12265
|
-
? defineAsyncComponent(() => import('./MobileLayout-
|
|
12266
|
-
: defineAsyncComponent(() => import('./DashboardLayout-
|
|
12266
|
+
? defineAsyncComponent(() => import('./MobileLayout-CDbupC9v.js'))
|
|
12267
|
+
: defineAsyncComponent(() => import('./DashboardLayout-D1UcB3RV.js')),
|
|
12267
12268
|
);
|
|
12268
12269
|
|
|
12269
12270
|
const HeaderComponent = defineAsyncComponent(
|
|
12270
|
-
() => import('./Header-
|
|
12271
|
+
() => import('./Header-D_hcGpNG.js'),
|
|
12271
12272
|
);
|
|
12272
12273
|
const FooterComponent = defineAsyncComponent(
|
|
12273
|
-
() => import('./Footer-
|
|
12274
|
+
() => import('./Footer-C_3WrfI4.js'),
|
|
12274
12275
|
);
|
|
12275
12276
|
|
|
12276
12277
|
const templateHeight = props.isWebComponent ? "100%" : "100dvh";
|
|
@@ -12470,4 +12471,4 @@ function register() {
|
|
|
12470
12471
|
|
|
12471
12472
|
register();
|
|
12472
12473
|
|
|
12473
|
-
export { useSTAcStore as $,
|
|
12474
|
+
export { useSTAcStore as $, useDensity as A, useBackgroundColor as B, provideDefaults as C, makeDensityProps as D, isObject as E, useDefineTemplate as F, useLayout as G, useDimension as H, IN_BROWSER as I, makeDimensionProps as J, useBorder as K, useElevation as L, useRounded as M, VDefaultsProvider as N, makeRoundedProps as O, makeElevationProps as P, makeBorderProps as Q, clamp as R, consoleWarn as S, useToggleScope as T, useLayoutItem as U, VBtn as V, makeLayoutItemProps as W, eodashKey as X, consoleError as Y, datetime as Z, _export_sfc as _, useRender as a, eodashCollections as a0, collectionsPalette as a1, makePanelTransparent as a2, mapCompareEl as a3, mapEl as a4, eodashCompareCollections as a5, layerControlFormValue as a6, getColFromLayer as a7, eoxLayersKey as a8, setMapProjFromCol as a9, makeLocationProps as aA, makeLoaderProps as aB, LoaderSlot as aC, removeUnneededProperties as aD, VRow as aE, VCol as aF, copyToClipBoard as aG, SUPPORTS_INTERSECTION as aH, getCurrentInstance as aI, useDefineWidgets as aJ, isOn as aK, eventName as aL, destructComputed as aM, parseAnchor as aN, flipSide as aO, flipAlign as aP, flipCorner as aQ, getAxis as aR, defer as aS, templateRef as aT, matchesSelector as aU, useRouter as aV, useBackButton as aW, EodashConstructor as aX, register as aY, store as aZ, posIsSetFromUrl as aa, useOnLayersUpdate as ab, EodashCollection as ac, mapPosition as ad, availableMapProjection as ae, changeMapProjection as af, setActiveTemplate as ag, axios$1 as ah, getLayers as ai, extractLayerConfig as aj, currentUrl as ak, activeTemplate as al, getUid as am, createSimpleFunctional as an, useVariant as ao, useSize as ap, genOverlays as aq, makeVariantProps as ar, makeSizeProps as as, Ripple as at, useLoader as au, useLocation as av, usePosition as aw, useLink as ax, makeRouterProps as ay, makePositionProps as az, provideTheme as b, useRtl as c, useLocale as d, useGroup as e, makeThemeProps as f, genericComponent as g, makeTagProps as h, makeComponentProps as i, useProxiedModel as j, keys as k, useGroupItem as l, makeVBtnProps as m, makeGroupItemProps as n, omit as o, propsFactory as p, convertToUnit as q, useDisplay as r, useResizeObserver as s, useGoTo as t, useTextColor as u, VIcon as v, makeGroupProps as w, makeDisplayProps as x, IconValue as y, focusableChildren as z };
|