@eodash/eodash 5.0.0-rc.2.1 → 5.0.0-rc.2.2
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/components/DashboardLayout.vue +3 -2
- package/core/client/components/DynamicWebComponent.vue +10 -3
- package/core/client/components/Header.vue +1 -1
- package/core/client/components/MobileLayout.vue +1 -0
- package/core/client/composables/DefineTemplate.js +13 -2
- package/core/client/composables/DefineWidgets.js +9 -4
- package/core/client/composables/EodashMap.js +1 -1
- package/core/client/eodash.js +14 -4
- package/core/client/eodashSTAC/EodashCollection.js +9 -5
- package/core/client/eodashSTAC/helpers.js +6 -3
- package/core/client/types.ts +18 -13
- package/core/client/utils/index.js +112 -32
- package/core/client/views/Dashboard.vue +23 -6
- package/dist/client/{DashboardLayout-BjUs7mYs.js → DashboardLayout-ByVMURpM.js} +6 -6
- package/dist/client/{DynamicWebComponent-rIFx5c0f.js → DynamicWebComponent-BRQQ5AXV.js} +11 -4
- package/dist/client/{EodashDatePicker-brJlj1aQ.js → EodashDatePicker-DyLo_JUC.js} +3 -3
- package/dist/client/{EodashItemFilter-C2i4lnM1.js → EodashItemFilter-BR572AaH.js} +1 -1
- package/dist/client/{EodashLayerControl-DNQzPQQ4.js → EodashLayerControl-C_mi-Hoo.js} +1 -1
- package/dist/client/{EodashLayoutSwitcher-gLe7G8Qn.js → EodashLayoutSwitcher-D4ooLbys.js} +2 -2
- package/dist/client/{EodashMap-LOzTlvrM.js → EodashMap-CGFv4e85.js} +2 -2
- package/dist/client/{EodashMapBtns-UXOupU5J.js → EodashMapBtns-_M7SW7Is.js} +4 -4
- package/dist/client/{EodashProcess-BlkqUdzj.js → EodashProcess-ZQAMi9Pc.js} +1 -1
- package/dist/client/{EodashStacInfo-Df3LXKAw.js → EodashStacInfo-CwOCcsGl.js} +1 -1
- package/dist/client/{EodashTools-BrqH4IDP.js → EodashTools-C_X0RPIp.js} +4 -4
- package/dist/client/{ExportState-DVosrSNY.js → ExportState-DNUSRJSJ.js} +4 -4
- package/dist/client/{Footer-tjsscQ7O.js → Footer-FUp1Te0L.js} +1 -1
- package/dist/client/{Header-DYMnh4of.js → Header-BcHAtFqr.js} +5 -5
- package/dist/client/{MobileLayout-Df4Z1bMl.js → MobileLayout-CUHZFLDY.js} +11 -11
- package/dist/client/{PopUp-BFcSuX3b.js → PopUp-CEmhdNIj.js} +3 -3
- package/dist/client/{VImg-BO2Ysvsu.js → VImg-Cdaw92OV.js} +2 -2
- package/dist/client/{VMain-fx1gaM7Y.js → VMain-B7G2T3Zv.js} +1 -1
- package/dist/client/{VOverlay-CiQn3F6n.js → VOverlay-Mf1pOmgW.js} +3 -3
- package/dist/client/{VTooltip-DKOCofTl.js → VTooltip-9810qjB2.js} +3 -3
- package/dist/client/{WidgetsContainer-DL0bdnjh.js → WidgetsContainer-GUwXMh9d.js} +1 -1
- package/dist/client/{asWebComponent-N7ChSAQG.js → asWebComponent--e4yqM3f.js} +172 -63
- package/dist/client/eo-dash.css +2 -2
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-C2UOEnvr.js → forwardRefs-B9UH8QZK.js} +1 -1
- package/dist/client/{index-BXi80Gr9.js → index-D-lbt2my.js} +1 -1
- package/dist/client/{transition-w_2EtUxa.js → transition-CTjQmgIS.js} +1 -1
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +15 -6
- package/dist/types/core/client/types.d.ts +15 -11
- package/dist/types/core/client/utils/index.d.ts +1 -1
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +2 -2
- package/dist/types/widgets/PopUp.vue.d.ts +2 -2
- package/package.json +2 -1
- package/widgets/EodashDatePicker.vue +18 -0
package/dist/client/eo-dash.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aX as EodashConstructor, aY as register, aZ as store } from './asWebComponent
|
|
1
|
+
export { aX as EodashConstructor, aY as register, aZ as store } from './asWebComponent--e4yqM3f.js';
|
|
2
2
|
import 'vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowRef, computed, watch } from 'vue';
|
|
2
|
-
import { p as propsFactory, aI as getCurrentInstance } from './asWebComponent
|
|
2
|
+
import { p as propsFactory, aI as getCurrentInstance } from './asWebComponent--e4yqM3f.js';
|
|
3
3
|
|
|
4
4
|
class Box {
|
|
5
5
|
constructor(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransitionGroup, Transition, h, camelize } from 'vue';
|
|
2
|
-
import { g as genericComponent, p as propsFactory } from './asWebComponent
|
|
2
|
+
import { g as genericComponent, p as propsFactory } from './asWebComponent--e4yqM3f.js';
|
|
3
3
|
|
|
4
4
|
// Utilities
|
|
5
5
|
const makeTransitionProps = propsFactory({
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {import("stac-ts").StacLink[]} [links]
|
|
3
|
+
* @param {Record<string,any>} [extraProperties]
|
|
4
|
+
**/
|
|
5
|
+
export function generateFeatures(links?: import("stac-ts").StacLink[], extraProperties?: Record<string, any>): {
|
|
3
6
|
type: string;
|
|
4
7
|
crs: {
|
|
5
8
|
type: string;
|
|
@@ -64,7 +67,13 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
|
|
|
64
67
|
"icon-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
65
68
|
"icon-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
66
69
|
"icon-height"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
67
|
-
"icon-rotation"?: import("ol/expr/expression.js"
|
|
70
|
+
"icon-rotation"?: import("ol/expr/expression.js" /**
|
|
71
|
+
* Removes the layer with the id provided and injects an array of layers in its position
|
|
72
|
+
* @param {Record<string,any>[]} currentLayers
|
|
73
|
+
* @param {string} oldLayer - id of the layer to be replaced
|
|
74
|
+
* @param {Record<string,any>[]} newLayers - array of layers to replace the old layer
|
|
75
|
+
* @returns {Record<string,any>[] | undefined}
|
|
76
|
+
*/).ExpressionValue | undefined;
|
|
68
77
|
"icon-rotate-with-view"?: boolean | undefined;
|
|
69
78
|
"icon-offset"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
70
79
|
"icon-offset-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
|
|
@@ -92,7 +101,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
|
|
|
92
101
|
"circle-stroke-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
|
|
93
102
|
"circle-stroke-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
94
103
|
"circle-opacity"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
95
|
-
"circle-displacement"?: number[] | import("ol/expr/expression.js").ExpressionValue[] | undefined;
|
|
104
|
+
"circle-displacement"?: number[] | import("ol/expr/expression.js" /** @type { string | undefined} */).ExpressionValue[] | undefined;
|
|
96
105
|
"circle-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
|
|
97
106
|
"circle-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
98
107
|
"circle-rotate-with-view"?: boolean | undefined;
|
|
@@ -108,8 +117,8 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
|
|
|
108
117
|
"shape-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
|
|
109
118
|
"shape-rotate-with-view"?: boolean | undefined;
|
|
110
119
|
"shape-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
|
|
111
|
-
variables?: Record<string,
|
|
112
|
-
legend?:
|
|
120
|
+
variables?: Record<string, string | number | boolean | null | undefined>;
|
|
121
|
+
legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
|
|
113
122
|
jsonform?: Record<string, any>;
|
|
114
123
|
tooltip?: {
|
|
115
124
|
id: string;
|
|
@@ -14,7 +14,7 @@ export interface WebComponentProps<T extends ExecutionTime = "compiletime"> {
|
|
|
14
14
|
* import maps are not available in runtime config
|
|
15
15
|
* :::
|
|
16
16
|
*/
|
|
17
|
-
link
|
|
17
|
+
link?: T extends "runtime" ? string : string | (() => Promise<unknown>);
|
|
18
18
|
/**
|
|
19
19
|
* Exported Constructor, needs to be provided if the web component is not
|
|
20
20
|
* registered in by the [link](#link) provided
|
|
@@ -161,6 +161,15 @@ export type MultiTemplates<T extends ExecutionTime = "compiletime"> = Record<str
|
|
|
161
161
|
export type StacEndpoint = `${string}/catalog.json`;
|
|
162
162
|
/** @group Eodash */
|
|
163
163
|
type ExecutionTime = "runtime" | "compiletime";
|
|
164
|
+
type EodashFont = {
|
|
165
|
+
/**
|
|
166
|
+
* Link to stylesheet that defines font-face. Could be either a relative
|
|
167
|
+
* or absolute URL.
|
|
168
|
+
*/
|
|
169
|
+
link?: string;
|
|
170
|
+
/** Font family name. */
|
|
171
|
+
family: string;
|
|
172
|
+
};
|
|
164
173
|
/**
|
|
165
174
|
* Eodash instance API
|
|
166
175
|
*
|
|
@@ -178,14 +187,9 @@ export type Eodash<T extends ExecutionTime = "compiletime"> = {
|
|
|
178
187
|
/** Custom error message to alert the users if something crashes */
|
|
179
188
|
errorMessage?: string;
|
|
180
189
|
/** Fetches the specified font family from the specified `link` property. */
|
|
181
|
-
font?: {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* or absolute URL.
|
|
185
|
-
*/
|
|
186
|
-
link: string;
|
|
187
|
-
/** Font family name. */
|
|
188
|
-
family: string;
|
|
190
|
+
font?: EodashFont | {
|
|
191
|
+
body: EodashFont;
|
|
192
|
+
headers: EodashFont;
|
|
189
193
|
};
|
|
190
194
|
/** Title that will be shown in the app header */
|
|
191
195
|
name: string;
|
|
@@ -270,8 +274,8 @@ export declare function register(): void;
|
|
|
270
274
|
export declare const store: typeof import("./store").default;
|
|
271
275
|
export * from "./main.js";
|
|
272
276
|
export type EodashStyleJson = import("ol/style/webgl.js").WebGLStyle & {
|
|
273
|
-
variables?: Record<string,
|
|
274
|
-
legend?:
|
|
277
|
+
variables?: Record<string, string | number | boolean | null | undefined>;
|
|
278
|
+
legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
|
|
275
279
|
jsonform?: Record<string, any>;
|
|
276
280
|
tooltip?: {
|
|
277
281
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function loadFont(
|
|
1
|
+
export function loadFont(fontConfig: import("../types").Eodash["brand"]["font"], isWebComponent: boolean): Promise<string[]>;
|
|
2
2
|
export function copyToClipBoard(text: string, showIcon: import("vue").Ref<boolean>): Promise<void>;
|
|
3
3
|
export function setCollectionsPalette(colors: string[]): void;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
body: unknown[];
|
|
2
3
|
styleOverride: string;
|
|
3
4
|
tags: unknown[];
|
|
4
5
|
header: unknown[];
|
|
5
6
|
footer: unknown[];
|
|
6
|
-
body: unknown[];
|
|
7
7
|
featured: unknown[];
|
|
8
8
|
allowHtml: boolean;
|
|
9
9
|
subheader: unknown[];
|
|
10
10
|
$props: {
|
|
11
|
+
readonly body?: unknown[] | undefined;
|
|
11
12
|
readonly styleOverride?: string | undefined;
|
|
12
13
|
readonly tags?: unknown[] | undefined;
|
|
13
14
|
readonly header?: unknown[] | undefined;
|
|
14
15
|
readonly footer?: unknown[] | undefined;
|
|
15
|
-
readonly body?: unknown[] | undefined;
|
|
16
16
|
readonly featured?: unknown[] | undefined;
|
|
17
17
|
readonly allowHtml?: boolean | undefined;
|
|
18
18
|
readonly subheader?: unknown[] | undefined;
|
|
@@ -4,16 +4,16 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
width: string;
|
|
7
8
|
height: string;
|
|
8
9
|
maxHeight: string;
|
|
9
10
|
maxWidth: string;
|
|
10
|
-
width: string;
|
|
11
11
|
widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
|
|
12
12
|
$props: {
|
|
13
|
+
readonly width?: string | undefined;
|
|
13
14
|
readonly height?: string | undefined;
|
|
14
15
|
readonly maxHeight?: string | undefined;
|
|
15
16
|
readonly maxWidth?: string | undefined;
|
|
16
|
-
readonly width?: string | undefined;
|
|
17
17
|
readonly widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodash/eodash",
|
|
3
|
-
"version": "5.0.0-rc.2.
|
|
3
|
+
"version": "5.0.0-rc.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/core/client/types.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"cypress": "^13.17.0",
|
|
105
105
|
"eslint": "^9.18.0",
|
|
106
106
|
"eslint-plugin-vue": "^9.32.0",
|
|
107
|
+
"pkg-pr-new": "^0.0.39",
|
|
107
108
|
"prettier": "^3.4.2",
|
|
108
109
|
"rollup": "^4.31.0",
|
|
109
110
|
"terminate": "^2.8.0",
|
|
@@ -298,6 +298,24 @@ onMounted(() => {
|
|
|
298
298
|
makePanelTransparent(rootEl);
|
|
299
299
|
</script>
|
|
300
300
|
<style>
|
|
301
|
+
.vc-popover-content {
|
|
302
|
+
--vc-nav-hover-bg: rgba(var(--v-theme-on-surface), 0.1);
|
|
303
|
+
--vc-nav-item-active-color: rgb(var(--v-theme-on-secondary));
|
|
304
|
+
--vc-nav-item-active-bg: rgba(var(--v-theme-secondary), 0.8);
|
|
305
|
+
--vc-focus-ring: 0 0 0 2px rgba(var(--v-theme-secondary), 0.5);
|
|
306
|
+
}
|
|
307
|
+
.vc-container {
|
|
308
|
+
--vc-day-content-hover-bg: rgba(var(--v-theme-on-surface), 0.2);
|
|
309
|
+
--vc-focus-ring: 0 0 0 2px rgba(var(--v-theme-secondary), 0.4);
|
|
310
|
+
--vc-header-arrow-hover-bg: rgba(var(--v-theme-secondary), 0.1);
|
|
311
|
+
}
|
|
312
|
+
.vc-attr {
|
|
313
|
+
--vc-accent-600: rgba(var(--v-theme-secondary), 0.8);
|
|
314
|
+
}
|
|
315
|
+
.datePicker {
|
|
316
|
+
--vc-day-content-hover-bg: red;
|
|
317
|
+
}
|
|
318
|
+
|
|
301
319
|
@media (min-width: 960px) {
|
|
302
320
|
.datePicker {
|
|
303
321
|
position: absolute;
|