@eodash/eodash 5.4.0 → 5.5.0
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/asWebComponent.js +1 -1
- package/core/client/composables/DefineWidgets.js +12 -2
- package/core/client/eodashSTAC/EodashCollection.js +3 -3
- package/core/client/eodashSTAC/createLayers.js +44 -17
- package/core/client/eodashSTAC/helpers.js +12 -5
- package/core/client/eodashSTAC/parquet.js +2 -1
- package/core/client/eodashSTAC/triggers.js +1 -2
- package/core/client/store/actions.js +17 -17
- package/core/client/store/states.js +26 -4
- package/core/client/types.ts +9 -0
- package/core/client/utils/index.js +18 -1
- package/dist/client/{DashboardLayout-CQOGHPW_.js → DashboardLayout-CkSgvaFF.js} +2 -2
- package/dist/client/{DynamicWebComponent-CoLO8FEf.js → DynamicWebComponent-Ncsg6fb9.js} +1 -1
- package/dist/client/EodashChart-5v7adDpG.js +144 -0
- package/dist/client/{EodashDatePicker-BZeQ6bcu.js → EodashDatePicker-RoQJe6ss.js} +4 -4
- package/dist/client/{EodashItemFilter-CmZkk7GK.js → EodashItemFilter-CCoVC5BE.js} +2 -2
- package/dist/client/{EodashLayerControl-D54fY-bX.js → EodashLayerControl-weVj7aQA.js} +2 -2
- package/dist/client/{EodashLayoutSwitcher-BCP3FvDb.js → EodashLayoutSwitcher-CL-Z9d5_.js} +3 -3
- package/dist/client/EodashMapBtns-CXU8IuPO.js +433 -0
- package/dist/client/{EodashStacInfo-BZbmT8vT.js → EodashStacInfo-BbMnjf-n.js} +11 -15
- package/dist/client/{EodashTimeSlider-DIcAJr6D.js → EodashTimeSlider-BZXnqfax.js} +2 -2
- package/dist/client/{EodashTools-Cz6X6hsF.js → EodashTools-DUJlkkgx.js} +4 -4
- package/dist/client/{ExportState-DFVFAgKz.js → ExportState-CT3FQOHW.js} +46 -21
- package/dist/client/{Footer-DLzQcjkI.js → Footer-D_iqP-1K.js} +1 -1
- package/dist/client/{Header-_D9Z-zFJ.js → Header-Dzhnvsy-.js} +127 -17
- package/dist/client/MobileLayout-6Rg_PSO8.js +118 -0
- package/dist/client/{PopUp-DwI8V2gW.js → PopUp-DPPv_GSA.js} +8 -59
- package/dist/client/{ProcessList-C9eAg2Sb.js → ProcessList-BIN_Mb27.js} +9 -13
- package/dist/client/{VImg-COXTnCWE.js → VImg-DhbuvNrA.js} +2 -2
- package/dist/client/{VMain-C74l1bv-.js → VMain-CVabY_NY.js} +1 -1
- package/dist/client/{VTooltip-BLS-cQ9N.js → VTooltip-Cc6au3Sn.js} +3 -4
- package/dist/client/{WidgetsContainer-D-VfMRxE.js → WidgetsContainer-ChqTJS4h.js} +1 -1
- package/dist/client/asWebComponent-DaIxULaA.js +9207 -0
- package/dist/client/{async-D4G-FOIc.js → async-D6Lvv-fT.js} +4 -4
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-CRMFoNYN.js → forwardRefs--IccUBdR.js} +196 -37
- package/dist/client/{handling-DTAhQuPh.js → handling-DSA67d6E.js} +74 -35
- package/dist/client/{helpers-CsjKHAcK.js → helpers-BBSdbOmv.js} +187 -87
- package/dist/client/{index-DEmHaCL3.js → index-6LlXNkke.js} +5 -3
- package/dist/client/{index-BHilH1qx.js → index-BS-8Y5FE.js} +22 -69
- package/dist/client/{index-BIcmbjr0.js → index-CQihL_c6.js} +27 -14
- package/dist/client/{index-BoCcZ0l4.js → index-qsZhYR_6.js} +15 -16
- package/dist/client/templates.js +48 -2
- package/dist/client/{transition-6MJLK-_H.js → transition-DFr4cXu8.js} +1 -1
- package/dist/node/cli.js +1 -1
- package/dist/types/core/client/App.vue.d.ts +16 -6
- package/dist/types/core/client/asWebComponent.d.ts +2 -2
- package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -1
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +36 -16
- package/dist/types/core/client/components/EodashOverlay.vue.d.ts +2 -1
- package/dist/types/core/client/components/ErrorAlert.vue.d.ts +9 -1
- package/dist/types/core/client/components/Footer.vue.d.ts +2 -1
- package/dist/types/core/client/components/Header.vue.d.ts +2 -1
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +12 -6
- package/dist/types/core/client/components/Loading.vue.d.ts +2 -1
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -1
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +1 -0
- package/dist/types/core/client/store/actions.d.ts +1 -2
- package/dist/types/core/client/store/states.d.ts +22 -4
- package/dist/types/core/client/types.d.ts +6 -1
- package/dist/types/core/client/utils/index.d.ts +1 -0
- package/dist/types/core/client/views/Dashboard.vue.d.ts +20 -8
- package/dist/types/templates/compare.d.ts +20 -0
- package/dist/types/templates/expert.d.ts +30 -1
- package/dist/types/widgets/EodashChart.vue.d.ts +28 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +38 -9
- package/dist/types/widgets/EodashItemCatalog/index.vue.d.ts +88 -13
- package/dist/types/widgets/EodashItemCatalog/methods/map.d.ts +1 -1
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +169 -26
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +38 -10
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +22 -7
- package/dist/types/widgets/EodashMap/EodashMapBtns.vue.d.ts +94 -21
- package/dist/types/widgets/EodashMap/index.vue.d.ts +646 -93
- package/dist/types/widgets/EodashMap/methods/btns.d.ts +14 -0
- package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +24 -7
- package/dist/types/widgets/EodashProcess/index.vue.d.ts +26 -7
- package/dist/types/widgets/EodashProcess/methods/composables.d.ts +1 -2
- package/dist/types/widgets/EodashProcess/methods/handling.d.ts +5 -11
- package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +2 -2
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +67 -18
- package/dist/types/widgets/EodashTimeSlider.vue.d.ts +14 -6
- package/dist/types/widgets/EodashTools.vue.d.ts +437 -47
- package/dist/types/widgets/ExportState.vue.d.ts +26 -8
- package/dist/types/widgets/PopUp.vue.d.ts +61 -11
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +22 -6
- package/package.json +33 -34
- package/templates/baseConfig.js +2 -1
- package/templates/compare.js +28 -1
- package/templates/expert.js +19 -1
- package/widgets/EodashChart.vue +139 -0
- package/widgets/EodashItemCatalog/index.vue +2 -2
- package/widgets/EodashItemCatalog/methods/map.js +9 -10
- package/widgets/EodashMap/EodashMapBtns.vue +58 -93
- package/widgets/EodashMap/index.vue +10 -2
- package/widgets/EodashMap/methods/btns.js +155 -0
- package/widgets/EodashMap/methods/create-layers-config.js +3 -3
- package/widgets/EodashMap/methods/index.js +2 -1
- package/widgets/EodashProcess/ProcessList.vue +2 -3
- package/widgets/EodashProcess/index.vue +18 -61
- package/widgets/EodashProcess/methods/async.js +1 -1
- package/widgets/EodashProcess/methods/composables.js +0 -5
- package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +10 -6
- package/widgets/EodashProcess/methods/handling.js +23 -22
- package/widgets/EodashProcess/methods/outputs.js +44 -4
- package/widgets/EodashProcess/methods/utils.js +1 -1
- package/widgets/EodashStacInfo.vue +10 -23
- package/widgets/ExportState.vue +9 -15
- package/dist/client/EodashMapBtns-D-HulIl1.js +0 -306
- package/dist/client/MobileLayout-3Ko9XSfO.js +0 -118
- package/dist/client/asWebComponent-Bw03Jutr.js +0 -9090
|
@@ -3,6 +3,13 @@ import { setupCache } from 'axios-cache-interceptor';
|
|
|
3
3
|
import log from 'loglevel';
|
|
4
4
|
import { ref, shallowRef } from 'vue';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Create a bound version of a function with a specified `this` context
|
|
8
|
+
*
|
|
9
|
+
* @param {Function} fn - The function to bind
|
|
10
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
11
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
12
|
+
*/
|
|
6
13
|
function bind(fn, thisArg) {
|
|
7
14
|
return function wrap() {
|
|
8
15
|
return fn.apply(thisArg, arguments);
|
|
@@ -1255,7 +1262,7 @@ class InterceptorManager {
|
|
|
1255
1262
|
*
|
|
1256
1263
|
* @param {Number} id The ID that was returned by `use`
|
|
1257
1264
|
*
|
|
1258
|
-
* @returns {
|
|
1265
|
+
* @returns {void}
|
|
1259
1266
|
*/
|
|
1260
1267
|
eject(id) {
|
|
1261
1268
|
if (this.handlers[id]) {
|
|
@@ -2215,27 +2222,38 @@ const cookies = platform.hasStandardBrowserEnv ?
|
|
|
2215
2222
|
|
|
2216
2223
|
// Standard browser envs support document.cookie
|
|
2217
2224
|
{
|
|
2218
|
-
write(name, value, expires, path, domain, secure) {
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
2225
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
2226
|
+
if (typeof document === 'undefined') return;
|
|
2222
2227
|
|
|
2223
|
-
|
|
2228
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
2224
2229
|
|
|
2225
|
-
utils$1.
|
|
2226
|
-
|
|
2227
|
-
|
|
2230
|
+
if (utils$1.isNumber(expires)) {
|
|
2231
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
2232
|
+
}
|
|
2233
|
+
if (utils$1.isString(path)) {
|
|
2234
|
+
cookie.push(`path=${path}`);
|
|
2235
|
+
}
|
|
2236
|
+
if (utils$1.isString(domain)) {
|
|
2237
|
+
cookie.push(`domain=${domain}`);
|
|
2238
|
+
}
|
|
2239
|
+
if (secure === true) {
|
|
2240
|
+
cookie.push('secure');
|
|
2241
|
+
}
|
|
2242
|
+
if (utils$1.isString(sameSite)) {
|
|
2243
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
2244
|
+
}
|
|
2228
2245
|
|
|
2229
2246
|
document.cookie = cookie.join('; ');
|
|
2230
2247
|
},
|
|
2231
2248
|
|
|
2232
2249
|
read(name) {
|
|
2233
|
-
|
|
2234
|
-
|
|
2250
|
+
if (typeof document === 'undefined') return null;
|
|
2251
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
2252
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
2235
2253
|
},
|
|
2236
2254
|
|
|
2237
2255
|
remove(name) {
|
|
2238
|
-
this.write(name, '', Date.now() - 86400000);
|
|
2256
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
2239
2257
|
}
|
|
2240
2258
|
}
|
|
2241
2259
|
|
|
@@ -2324,11 +2342,11 @@ function mergeConfig(config1, config2) {
|
|
|
2324
2342
|
}
|
|
2325
2343
|
|
|
2326
2344
|
// eslint-disable-next-line consistent-return
|
|
2327
|
-
function mergeDeepProperties(a, b, prop
|
|
2345
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
2328
2346
|
if (!utils$1.isUndefined(b)) {
|
|
2329
|
-
return getMergedValue(a, b, prop
|
|
2347
|
+
return getMergedValue(a, b, prop, caseless);
|
|
2330
2348
|
} else if (!utils$1.isUndefined(a)) {
|
|
2331
|
-
return getMergedValue(undefined, a, prop
|
|
2349
|
+
return getMergedValue(undefined, a, prop, caseless);
|
|
2332
2350
|
}
|
|
2333
2351
|
}
|
|
2334
2352
|
|
|
@@ -2386,7 +2404,7 @@ function mergeConfig(config1, config2) {
|
|
|
2386
2404
|
socketPath: defaultToConfig2,
|
|
2387
2405
|
responseEncoding: defaultToConfig2,
|
|
2388
2406
|
validateStatus: mergeDirectKeys,
|
|
2389
|
-
headers: (a, b
|
|
2407
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
2390
2408
|
};
|
|
2391
2409
|
|
|
2392
2410
|
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
@@ -3024,7 +3042,7 @@ const factory = (env) => {
|
|
|
3024
3042
|
const seedCache = new Map();
|
|
3025
3043
|
|
|
3026
3044
|
const getFetch = (config) => {
|
|
3027
|
-
let env = config
|
|
3045
|
+
let env = (config && config.env) || {};
|
|
3028
3046
|
const {fetch, Request, Response} = env;
|
|
3029
3047
|
const seeds = [
|
|
3030
3048
|
Request, Response, fetch
|
|
@@ -3047,6 +3065,15 @@ const getFetch = (config) => {
|
|
|
3047
3065
|
|
|
3048
3066
|
getFetch();
|
|
3049
3067
|
|
|
3068
|
+
/**
|
|
3069
|
+
* Known adapters mapping.
|
|
3070
|
+
* Provides environment-specific adapters for Axios:
|
|
3071
|
+
* - `http` for Node.js
|
|
3072
|
+
* - `xhr` for browsers
|
|
3073
|
+
* - `fetch` for fetch API-based requests
|
|
3074
|
+
*
|
|
3075
|
+
* @type {Object<string, Function|Object>}
|
|
3076
|
+
*/
|
|
3050
3077
|
const knownAdapters = {
|
|
3051
3078
|
http: httpAdapter,
|
|
3052
3079
|
xhr: xhrAdapter,
|
|
@@ -3055,71 +3082,107 @@ const knownAdapters = {
|
|
|
3055
3082
|
}
|
|
3056
3083
|
};
|
|
3057
3084
|
|
|
3085
|
+
// Assign adapter names for easier debugging and identification
|
|
3058
3086
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
3059
3087
|
if (fn) {
|
|
3060
3088
|
try {
|
|
3061
|
-
Object.defineProperty(fn, 'name', {value});
|
|
3089
|
+
Object.defineProperty(fn, 'name', { value });
|
|
3062
3090
|
} catch (e) {
|
|
3063
3091
|
// eslint-disable-next-line no-empty
|
|
3064
3092
|
}
|
|
3065
|
-
Object.defineProperty(fn, 'adapterName', {value});
|
|
3093
|
+
Object.defineProperty(fn, 'adapterName', { value });
|
|
3066
3094
|
}
|
|
3067
3095
|
});
|
|
3068
3096
|
|
|
3097
|
+
/**
|
|
3098
|
+
* Render a rejection reason string for unknown or unsupported adapters
|
|
3099
|
+
*
|
|
3100
|
+
* @param {string} reason
|
|
3101
|
+
* @returns {string}
|
|
3102
|
+
*/
|
|
3069
3103
|
const renderReason = (reason) => `- ${reason}`;
|
|
3070
3104
|
|
|
3105
|
+
/**
|
|
3106
|
+
* Check if the adapter is resolved (function, null, or false)
|
|
3107
|
+
*
|
|
3108
|
+
* @param {Function|null|false} adapter
|
|
3109
|
+
* @returns {boolean}
|
|
3110
|
+
*/
|
|
3071
3111
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3072
3112
|
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3113
|
+
/**
|
|
3114
|
+
* Get the first suitable adapter from the provided list.
|
|
3115
|
+
* Tries each adapter in order until a supported one is found.
|
|
3116
|
+
* Throws an AxiosError if no adapter is suitable.
|
|
3117
|
+
*
|
|
3118
|
+
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
3119
|
+
* @param {Object} config - Axios request configuration
|
|
3120
|
+
* @throws {AxiosError} If no suitable adapter is available
|
|
3121
|
+
* @returns {Function} The resolved adapter function
|
|
3122
|
+
*/
|
|
3123
|
+
function getAdapter(adapters, config) {
|
|
3124
|
+
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
3080
3125
|
|
|
3081
|
-
|
|
3126
|
+
const { length } = adapters;
|
|
3127
|
+
let nameOrAdapter;
|
|
3128
|
+
let adapter;
|
|
3082
3129
|
|
|
3083
|
-
|
|
3084
|
-
nameOrAdapter = adapters[i];
|
|
3085
|
-
let id;
|
|
3130
|
+
const rejectedReasons = {};
|
|
3086
3131
|
|
|
3087
|
-
|
|
3132
|
+
for (let i = 0; i < length; i++) {
|
|
3133
|
+
nameOrAdapter = adapters[i];
|
|
3134
|
+
let id;
|
|
3088
3135
|
|
|
3089
|
-
|
|
3090
|
-
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3136
|
+
adapter = nameOrAdapter;
|
|
3091
3137
|
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
}
|
|
3095
|
-
}
|
|
3138
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3139
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3096
3140
|
|
|
3097
|
-
if (adapter
|
|
3098
|
-
|
|
3141
|
+
if (adapter === undefined) {
|
|
3142
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3099
3143
|
}
|
|
3144
|
+
}
|
|
3100
3145
|
|
|
3101
|
-
|
|
3146
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
3147
|
+
break;
|
|
3102
3148
|
}
|
|
3103
3149
|
|
|
3104
|
-
|
|
3150
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
3151
|
+
}
|
|
3105
3152
|
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
)
|
|
3153
|
+
if (!adapter) {
|
|
3154
|
+
const reasons = Object.entries(rejectedReasons)
|
|
3155
|
+
.map(([id, state]) => `adapter ${id} ` +
|
|
3156
|
+
(state === false ? 'is not supported by the environment' : 'is not available in the build')
|
|
3157
|
+
);
|
|
3110
3158
|
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3159
|
+
let s = length ?
|
|
3160
|
+
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
3161
|
+
'as no adapter specified';
|
|
3114
3162
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3163
|
+
throw new AxiosError(
|
|
3164
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
3165
|
+
'ERR_NOT_SUPPORT'
|
|
3166
|
+
);
|
|
3167
|
+
}
|
|
3120
3168
|
|
|
3121
|
-
|
|
3122
|
-
|
|
3169
|
+
return adapter;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* Exports Axios adapters and utility to resolve an adapter
|
|
3174
|
+
*/
|
|
3175
|
+
const adapters = {
|
|
3176
|
+
/**
|
|
3177
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
3178
|
+
* @type {Function}
|
|
3179
|
+
*/
|
|
3180
|
+
getAdapter,
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* Exposes all known adapters
|
|
3184
|
+
* @type {Object<string, Function|Object>}
|
|
3185
|
+
*/
|
|
3123
3186
|
adapters: knownAdapters
|
|
3124
3187
|
};
|
|
3125
3188
|
|
|
@@ -3196,7 +3259,7 @@ function dispatchRequest(config) {
|
|
|
3196
3259
|
});
|
|
3197
3260
|
}
|
|
3198
3261
|
|
|
3199
|
-
const VERSION = "1.
|
|
3262
|
+
const VERSION = "1.13.2";
|
|
3200
3263
|
|
|
3201
3264
|
const validators$1 = {};
|
|
3202
3265
|
|
|
@@ -3751,6 +3814,12 @@ const HttpStatusCode = {
|
|
|
3751
3814
|
LoopDetected: 508,
|
|
3752
3815
|
NotExtended: 510,
|
|
3753
3816
|
NetworkAuthenticationRequired: 511,
|
|
3817
|
+
WebServerIsDown: 521,
|
|
3818
|
+
ConnectionTimedOut: 522,
|
|
3819
|
+
OriginIsUnreachable: 523,
|
|
3820
|
+
TimeoutOccurred: 524,
|
|
3821
|
+
SslHandshakeFailed: 525,
|
|
3822
|
+
InvalidSslCertificate: 526,
|
|
3754
3823
|
};
|
|
3755
3824
|
|
|
3756
3825
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
@@ -3873,24 +3942,50 @@ const poi = ref("");
|
|
|
3873
3942
|
*/
|
|
3874
3943
|
const comparePoi = ref("");
|
|
3875
3944
|
|
|
3876
|
-
/**
|
|
3877
|
-
const
|
|
3945
|
+
/** Whether the map is in globe mode */
|
|
3946
|
+
const isGlobe = ref(false);
|
|
3878
3947
|
|
|
3879
|
-
/**
|
|
3880
|
-
|
|
3948
|
+
/** Whether the charts are in fullscreen mode
|
|
3949
|
+
* @type {import("vue").Ref<boolean>}
|
|
3950
|
+
*/
|
|
3951
|
+
const areChartsSeparateLayout = ref(false);
|
|
3952
|
+
|
|
3953
|
+
/** Holds main chart data
|
|
3954
|
+
* @type {import("vue").Ref<Record<string,any>|null>}
|
|
3955
|
+
*/
|
|
3956
|
+
const chartData = ref(null);
|
|
3957
|
+
|
|
3958
|
+
/** Holds compare chart data
|
|
3959
|
+
* @type {import("vue").Ref<Record<string,any>|null>}
|
|
3960
|
+
*/
|
|
3961
|
+
const compareChartData = ref(null);
|
|
3962
|
+
|
|
3963
|
+
/** Holds main chart spec
|
|
3964
|
+
* @type {import("vue").Ref<import("vega-embed").VisualizationSpec | null>}
|
|
3965
|
+
*/
|
|
3966
|
+
const chartSpec = ref(null);
|
|
3967
|
+
|
|
3968
|
+
/** Holds compare chart spec
|
|
3969
|
+
* @type {import("vue").Ref<import("vega-embed").VisualizationSpec | null>}
|
|
3970
|
+
*/
|
|
3971
|
+
const compareChartSpec = ref(null);
|
|
3881
3972
|
|
|
3882
3973
|
const states = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3883
3974
|
__proto__: null,
|
|
3884
3975
|
activeTemplate,
|
|
3976
|
+
areChartsSeparateLayout,
|
|
3885
3977
|
availableMapProjection,
|
|
3886
|
-
|
|
3887
|
-
|
|
3978
|
+
chartData,
|
|
3979
|
+
chartSpec,
|
|
3980
|
+
compareChartData,
|
|
3981
|
+
compareChartSpec,
|
|
3888
3982
|
compareIndicator,
|
|
3889
3983
|
comparePoi,
|
|
3890
3984
|
currentCompareUrl,
|
|
3891
3985
|
currentUrl,
|
|
3892
3986
|
datetime,
|
|
3893
3987
|
indicator,
|
|
3988
|
+
isGlobe,
|
|
3894
3989
|
mapCompareEl,
|
|
3895
3990
|
mapEl,
|
|
3896
3991
|
mapPosition,
|
|
@@ -3902,26 +3997,13 @@ const states = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3902
3997
|
* Returns the current layers of {@link mapEl}
|
|
3903
3998
|
* @returns {import("@eox/map").EoxLayer[]}
|
|
3904
3999
|
*/
|
|
3905
|
-
const getLayers = () => mapEl.value?.layers
|
|
4000
|
+
const getLayers = () => mapEl.value?.layers ?? [];
|
|
3906
4001
|
|
|
3907
4002
|
/**
|
|
3908
4003
|
* Returns the current layers of {@link mapCompareEl}
|
|
3909
4004
|
* * @returns {import("@eox/map").EoxLayer[]}
|
|
3910
4005
|
*/
|
|
3911
|
-
const getCompareLayers = () =>
|
|
3912
|
-
mapCompareEl.value?.layers.toReversed() ?? [];
|
|
3913
|
-
|
|
3914
|
-
/**
|
|
3915
|
-
* Returns the current chart spec from {@link chartEl}
|
|
3916
|
-
* @returns {import("vega-embed").VisualizationSpec | null}
|
|
3917
|
-
*/
|
|
3918
|
-
const getChartSpec = () => chartEl.value?.spec ?? null;
|
|
3919
|
-
|
|
3920
|
-
/**
|
|
3921
|
-
* Returns the current chart spec from {@link compareChartEl}
|
|
3922
|
-
* @returns {import("vega-embed").VisualizationSpec | null}
|
|
3923
|
-
*/
|
|
3924
|
-
const getCompareChartSpec = () => compareChartEl.value?.spec ?? null;
|
|
4006
|
+
const getCompareLayers = () => mapCompareEl.value?.layers ?? [];
|
|
3925
4007
|
|
|
3926
4008
|
/**
|
|
3927
4009
|
* Register EPSG projection in `eox-map`
|
|
@@ -3996,16 +4078,27 @@ const includesProcess = (collection, compare = false) => {
|
|
|
3996
4078
|
);
|
|
3997
4079
|
};
|
|
3998
4080
|
|
|
4081
|
+
/**
|
|
4082
|
+
* Check whether main or compare chart have data to show
|
|
4083
|
+
* @param {boolean} [compare=false] - Whether to check for compare collection
|
|
4084
|
+
* @returns
|
|
4085
|
+
*/
|
|
4086
|
+
const shouldShowChartWidget = (compare = false) => {
|
|
4087
|
+
return (
|
|
4088
|
+
areChartsSeparateLayout.value &&
|
|
4089
|
+
(compare ? compareChartData.value : chartData.value)
|
|
4090
|
+
);
|
|
4091
|
+
};
|
|
4092
|
+
|
|
3999
4093
|
const actions = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
4000
4094
|
__proto__: null,
|
|
4001
4095
|
changeMapProjection,
|
|
4002
|
-
getChartSpec,
|
|
4003
|
-
getCompareChartSpec,
|
|
4004
4096
|
getCompareLayers,
|
|
4005
4097
|
getLayers,
|
|
4006
4098
|
includesProcess,
|
|
4007
4099
|
registerProjection,
|
|
4008
|
-
setActiveTemplate
|
|
4100
|
+
setActiveTemplate,
|
|
4101
|
+
shouldShowChartWidget
|
|
4009
4102
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
4010
4103
|
|
|
4011
4104
|
/*
|
|
@@ -4091,7 +4184,7 @@ function getStyleVariablesState(collectionId, variables) {
|
|
|
4091
4184
|
).getStyle?.()?.variables ??
|
|
4092
4185
|
//@ts-expect-error (styleVariables_ is a private property)
|
|
4093
4186
|
/** @type {import("ol/layer").WebGLTile} */ (olLayer).styleVariables_;
|
|
4094
|
-
|
|
4187
|
+
|
|
4095
4188
|
if (!oldVariablesState) {
|
|
4096
4189
|
return variables;
|
|
4097
4190
|
}
|
|
@@ -4152,7 +4245,12 @@ function generateFeatures(links, extraProperties = {}, rel = "item") {
|
|
|
4152
4245
|
* @param {Record<string,any>} [rasterJsonform]
|
|
4153
4246
|
* @param {string} [layerConfigType]
|
|
4154
4247
|
* */
|
|
4155
|
-
function extractLayerConfig(
|
|
4248
|
+
function extractLayerConfig(
|
|
4249
|
+
collectionId,
|
|
4250
|
+
style,
|
|
4251
|
+
rasterJsonform,
|
|
4252
|
+
layerConfigType,
|
|
4253
|
+
) {
|
|
4156
4254
|
if (!style && !rasterJsonform) {
|
|
4157
4255
|
return { layerConfig: undefined, style: undefined };
|
|
4158
4256
|
}
|
|
@@ -4295,8 +4393,11 @@ const fetchStyle = async (
|
|
|
4295
4393
|
/** @type {Array<string>} */ (link["asset:keys"]).includes(assetKey),
|
|
4296
4394
|
);
|
|
4297
4395
|
} else {
|
|
4298
|
-
log.debug(
|
|
4299
|
-
|
|
4396
|
+
log.debug(
|
|
4397
|
+
"Neither link key, nor asset key input, can not match any style to layer.",
|
|
4398
|
+
stacObject.id,
|
|
4399
|
+
);
|
|
4400
|
+
return {};
|
|
4300
4401
|
}
|
|
4301
4402
|
if (styleLink) {
|
|
4302
4403
|
/** @type {import("@/types").EodashStyleJson} */
|
|
@@ -4527,7 +4628,7 @@ const replaceLayersInStructure = (layers, toRemove, toInsert) => {
|
|
|
4527
4628
|
continue;
|
|
4528
4629
|
}
|
|
4529
4630
|
|
|
4530
|
-
result.
|
|
4631
|
+
result.unshift(layer);
|
|
4531
4632
|
}
|
|
4532
4633
|
|
|
4533
4634
|
return result;
|
|
@@ -4924,7 +5025,6 @@ function extractLayerLegend(collection) {
|
|
|
4924
5025
|
return extraProperties;
|
|
4925
5026
|
}
|
|
4926
5027
|
|
|
4927
|
-
|
|
4928
5028
|
/**
|
|
4929
5029
|
* @param { import ("stac-ts").StacLink } link
|
|
4930
5030
|
* @returns {object}
|
|
@@ -4939,4 +5039,4 @@ function extractEoxLegendLink(link) {
|
|
|
4939
5039
|
return extraProperties;
|
|
4940
5040
|
}
|
|
4941
5041
|
|
|
4942
|
-
export { revokeCollectionBlobUrls as A, currentUrl as B, datetime as C, poi as D, activeTemplate as E, mapPosition as F, indicator as G, currentCompareUrl as H, compareIndicator as I, comparePoi as J, states as K, actions as L,
|
|
5042
|
+
export { replaceLayer as $, revokeCollectionBlobUrls as A, currentUrl as B, datetime as C, poi as D, activeTemplate as E, mapPosition as F, indicator as G, currentCompareUrl as H, compareIndicator as I, comparePoi as J, states as K, actions as L, areChartsSeparateLayout as M, chartSpec as N, compareChartSpec as O, includesProcess as P, shouldShowChartWidget as Q, sanitizeBbox as R, mapCompareEl as S, getColFromLayer as T, setMapProjFromCol as U, isGlobe as V, setActiveTemplate as W, availableMapProjection as X, changeMapProjection as Y, compareChartData as Z, chartData as _, extractEoxLegendLink as a, axios$1 as a0, removeUnneededProperties as a1, extractLayerConfig as b, createLayerID as c, axios as d, extractRoles as e, fetchStyle as f, getProjectionCode as g, addTooltipInteraction as h, createAssetID as i, mapEl as j, isSTACItem as k, extractLayerTimeValues as l, mergeGeojsons as m, fetchApiItems as n, getDatetimeProperty as o, fetchAllStyles as p, findLayer as q, registerProjection as r, findLayersByLayerPrefix as s, replaceLayersInStructure as t, generateFeatures as u, extractLayerLegend as v, getLayers as w, getCompareLayers as x, extractCollectionUrls as y, generateLinksFromItems as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent, render, h, mergeProps } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { V as VTooltip } from './VTooltip-
|
|
2
|
+
import { Y as consoleError, Z as isObject } from './asWebComponent-DaIxULaA.js';
|
|
3
|
+
import { V as VTooltip } from './VTooltip-Cc6au3Sn.js';
|
|
4
4
|
|
|
5
5
|
// Utilities
|
|
6
6
|
function useDirectiveComponent(component, props) {
|
|
@@ -75,8 +75,10 @@ function findComponentParent(vnode, root) {
|
|
|
75
75
|
|
|
76
76
|
// Components
|
|
77
77
|
const Tooltip = useDirectiveComponent(VTooltip, binding => {
|
|
78
|
+
const disabled = isObject(binding.value) ? !binding.value.text : ['', false, null].includes(binding.value); // undefined means true
|
|
79
|
+
|
|
78
80
|
return {
|
|
79
|
-
activator: 'parent',
|
|
81
|
+
activator: disabled ? null : 'parent',
|
|
80
82
|
location: binding.arg?.replace('-', ' '),
|
|
81
83
|
text: typeof binding.value === 'boolean' ? undefined : binding.value
|
|
82
84
|
};
|