@eodash/eodash 5.0.0-rc → 5.0.0-rc.1.5
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/eodashSTAC/createLayers.js +4 -3
- package/dist/client/{DashboardLayout-232tRmjz.js → DashboardLayout-B-4X57-t.js} +2 -2
- package/dist/client/{DynamicWebComponent-Cl4LqHU6.js → DynamicWebComponent-Dj3QYwag.js} +1 -1
- package/dist/client/{EodashDatePicker-Pok6bZwU.js → EodashDatePicker-DGRJrJ0s.js} +2 -2
- package/dist/client/{EodashItemFilter-16eMMjTV.js → EodashItemFilter-DBQwJQPh.js} +1 -1
- package/dist/client/{EodashLayerControl-De7IlCm_.js → EodashLayerControl-C5fOCvoI.js} +1 -1
- package/dist/client/{EodashLayoutSwitcher-C-3-jjn5.js → EodashLayoutSwitcher-BMO9k_20.js} +2 -2
- package/dist/client/{EodashMap-CMvbfI6-.js → EodashMap-D2bnMLAC.js} +1 -1
- package/dist/client/{EodashMapBtns-BeknGDtc.js → EodashMapBtns-l9B977id.js} +4 -4
- package/dist/client/EodashProcess-BtIlJvF1.js +714 -0
- package/dist/client/{EodashStacInfo-_BfonNUG.js → EodashStacInfo-CPVvp_Hm.js} +1 -1
- package/dist/client/{EodashTools-PD3XPYuR.js → EodashTools-DY2dlNXW.js} +4 -4
- package/dist/client/{ExportState-DOrT7M15.js → ExportState-BvD5A0XG.js} +13 -13
- package/dist/client/{Footer-CCigxYBo.js → Footer-w95gBnSH.js} +1 -1
- package/dist/client/{Header-C2cdx4gb.js → Header-BpiorKy9.js} +3 -3
- package/dist/client/{MobileLayout-BdiFjHg7.js → MobileLayout-CmVlZe7S.js} +5 -5
- package/dist/client/{PopUp--_xn1Cms.js → PopUp-CREaSybs.js} +3 -3
- package/dist/client/{VImg-9xu2l99m.js → VImg-DF9esgdd.js} +2 -2
- package/dist/client/{VMain-BUs3kDTd.js → VMain-BWLMf-rn.js} +1 -1
- package/dist/client/{VOverlay-D89omJis.js → VOverlay-DmNfblmy.js} +3 -3
- package/dist/client/{VTooltip-CDu3bErh.js → VTooltip-C3PeE7iO.js} +3 -3
- package/dist/client/{WidgetsContainer-aFG9yFT6.js → WidgetsContainer-6FHEEXns.js} +1 -1
- package/dist/client/{asWebComponent-BRGyP_j5.js → asWebComponent-BnFMd0T6.js} +10 -9
- package/dist/client/eo-dash.css +1 -1
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-CYrR6bMw.js → forwardRefs-BF3Me2RX.js} +1 -1
- package/dist/client/{index-BZwk0V42.js → index-CRd5-RSy.js} +1 -1
- package/dist/client/{transition-DG9nRSW4.js → transition-Cpn_g5jE.js} +1 -1
- package/dist/types/core/client/App.vue.d.ts +7 -0
- package/dist/types/core/client/asWebComponent.d.ts +9 -0
- package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +20 -0
- package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
- package/dist/types/core/client/components/Footer.vue.d.ts +106 -0
- package/dist/types/core/client/components/Header.vue.d.ts +2 -0
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
- package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +312 -0
- package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
- package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
- package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
- package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
- package/dist/types/core/client/composables/EodashProcess.d.ts +156 -0
- package/dist/types/core/client/composables/index.d.ts +9 -0
- package/dist/types/core/client/eodash.d.ts +8 -0
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +108 -0
- package/dist/types/core/client/eodashSTAC/createLayers.d.ts +45 -0
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +80 -0
- package/dist/types/core/client/eodashSTAC/triggers.d.ts +1 -0
- package/dist/types/core/client/main.d.ts +2 -0
- package/dist/types/core/client/plugins/axios.d.ts +2 -0
- package/dist/types/core/client/plugins/index.d.ts +3 -0
- package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
- package/dist/types/core/client/render.d.ts +1 -0
- package/dist/types/core/client/store/actions.d.ts +12 -0
- package/dist/types/core/client/store/index.d.ts +11 -0
- package/dist/types/core/client/store/stac.d.ts +25 -0
- package/dist/types/core/client/store/states.d.ts +22 -0
- package/dist/types/core/client/types.d.ts +269 -0
- package/dist/types/core/client/utils/index.d.ts +2 -0
- package/dist/types/core/client/utils/keys.d.ts +8 -0
- package/dist/types/core/client/utils/states.d.ts +18 -0
- package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +13 -0
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +44 -0
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +13 -0
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +11 -0
- package/dist/types/widgets/EodashMap.vue.d.ts +14 -0
- package/dist/types/widgets/EodashMapBtns.vue.d.ts +13 -0
- package/dist/types/widgets/EodashProcess.vue.d.ts +4 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
- package/dist/types/widgets/EodashTools.vue.d.ts +19 -0
- package/dist/types/widgets/ExportState.vue.d.ts +7 -0
- package/dist/types/widgets/PopUp.vue.d.ts +28 -0
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +10 -0
- package/package.json +5 -8
- package/widgets/ExportState.vue +10 -10
- package/dist/client/EodashProcess-BwKAa9Ee.js +0 -1476
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/** @group Eodash */
|
|
2
|
+
export interface WebComponentProps<T extends ExecutionTime = "compiletime"> {
|
|
3
|
+
/**
|
|
4
|
+
* Imports web component file, either using a URL or an import function.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* importing `eox-itemfilter` web component, after installing `@eox/itemfilter` it can be
|
|
8
|
+
* referenced:
|
|
9
|
+
* ```js
|
|
10
|
+
* link: async() => import("@eox/itemfilter")
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* ::: warning
|
|
14
|
+
* import maps are not available in runtime config
|
|
15
|
+
* :::
|
|
16
|
+
*/
|
|
17
|
+
link: T extends "runtime" ? string : string | (() => Promise<unknown>);
|
|
18
|
+
/**
|
|
19
|
+
* Exported Constructor, needs to be provided if the web component is not
|
|
20
|
+
* registered in by the [link](#link) provided
|
|
21
|
+
*/
|
|
22
|
+
constructorProp?: string;
|
|
23
|
+
tagName: `${string}-${string}`;
|
|
24
|
+
/** Object defining all the properties and attributes of the web component */
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Triggered when the web component is mounted in the DOM.
|
|
28
|
+
*
|
|
29
|
+
* @param el - Web component
|
|
30
|
+
* @param store - Return value of the core STAC pinia store in
|
|
31
|
+
* `/core/client/store/stac.ts`
|
|
32
|
+
*/
|
|
33
|
+
onMounted?: (el: Element | null, store: ReturnType<typeof import("./store/stac.js").useSTAcStore>) => Promise<void> | void;
|
|
34
|
+
/**
|
|
35
|
+
* Triggered when the web component is unmounted from the DOM.
|
|
36
|
+
*
|
|
37
|
+
* @param el - Web component
|
|
38
|
+
* @param store - Return value of the core STAC pinia store in
|
|
39
|
+
* `/core/client/store/stac.ts`
|
|
40
|
+
*/
|
|
41
|
+
onUnmounted?: (el: Element | null, store: ReturnType<typeof import("./store/stac.js").useSTAcStore>) => Promise<void> | void;
|
|
42
|
+
}
|
|
43
|
+
/** @ignore */
|
|
44
|
+
export interface WidgetsContainerProps {
|
|
45
|
+
widgets: Omit<Widget, "layout">[];
|
|
46
|
+
}
|
|
47
|
+
/** Properties of EOxLayoutItem used for setting the position and size of panels */
|
|
48
|
+
export interface Layout {
|
|
49
|
+
/** Horizontal start position. Integer between 1 and 12 */
|
|
50
|
+
x: number;
|
|
51
|
+
/** Vertical start position. Integer between 1 and 12 */
|
|
52
|
+
y: number;
|
|
53
|
+
/** Width. Integer between 1 and 12 */
|
|
54
|
+
w: number;
|
|
55
|
+
/** Height. Integer between 1 and 12 */
|
|
56
|
+
h: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Widget type: `web-component` API
|
|
60
|
+
*
|
|
61
|
+
* @group Eodash
|
|
62
|
+
*/
|
|
63
|
+
export interface WebComponentWidget<T extends ExecutionTime = "compiletime"> {
|
|
64
|
+
id: number | string | symbol;
|
|
65
|
+
title: string;
|
|
66
|
+
/** Widget position and size. */
|
|
67
|
+
layout: Layout;
|
|
68
|
+
widget: WebComponentProps<T>;
|
|
69
|
+
type: "web-component";
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Widget type: `internal` API. Internal widgets are Vue components provided by
|
|
73
|
+
* eodash.
|
|
74
|
+
*
|
|
75
|
+
* @group Eodash
|
|
76
|
+
*/
|
|
77
|
+
export interface InternalComponentWidget {
|
|
78
|
+
id: number | string | symbol;
|
|
79
|
+
title: string;
|
|
80
|
+
/** Widget position and size. */
|
|
81
|
+
layout: Layout;
|
|
82
|
+
widget: {
|
|
83
|
+
/**
|
|
84
|
+
* Internal Vue Components inside the
|
|
85
|
+
* [widgets](https://github.com/eodash/eodash/tree/main/widgets) folder.
|
|
86
|
+
* Referenced using their name without the .vue extention
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
/** Specified Vue component props */
|
|
90
|
+
properties?: Record<string, unknown>;
|
|
91
|
+
};
|
|
92
|
+
type: "internal";
|
|
93
|
+
}
|
|
94
|
+
/** Widget type: `iframe` API Renders an external HTML file as a widget. */
|
|
95
|
+
/** @group Eodash */
|
|
96
|
+
export interface IFrameWidget {
|
|
97
|
+
id: number | string | symbol;
|
|
98
|
+
title: string;
|
|
99
|
+
/** Widget position and size. */
|
|
100
|
+
layout: Layout;
|
|
101
|
+
widget: {
|
|
102
|
+
/** The URL of the page to embed */
|
|
103
|
+
src: string;
|
|
104
|
+
};
|
|
105
|
+
type: "iframe";
|
|
106
|
+
}
|
|
107
|
+
/** @group Eodash */
|
|
108
|
+
export interface FunctionalWidget<T extends ExecutionTime = "compiletime"> {
|
|
109
|
+
/**
|
|
110
|
+
* Provides a functional definition of widgets, gets triggered whenever a STAC
|
|
111
|
+
* object is selected, and only renders the returned configuration if the `id`
|
|
112
|
+
* doesn't match the currently rendered `id`
|
|
113
|
+
*
|
|
114
|
+
* @param selectedSTAC - Currently selected STAC object
|
|
115
|
+
*/
|
|
116
|
+
defineWidget: (selectedSTAC: import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null) => StaticWidget<T> | undefined | null;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* There are 3 types of Widgets:
|
|
120
|
+
*
|
|
121
|
+
* @group Eodash
|
|
122
|
+
*/
|
|
123
|
+
export type StaticWidget<T extends ExecutionTime = "compiletime"> = WebComponentWidget<T> | InternalComponentWidget | IFrameWidget;
|
|
124
|
+
/**
|
|
125
|
+
* Widgets can be defined in 2 forms:
|
|
126
|
+
*
|
|
127
|
+
* 1. {@link StaticWidget} : This is defined as an object once, and is considered
|
|
128
|
+
* the default form.
|
|
129
|
+
* 2. {@link FunctionalWidget} : a special form which contains the
|
|
130
|
+
* {@link FunctionalWidget.defineWidget `defineWidget`} function that runs
|
|
131
|
+
* when {@link EodashStore.stac `loadSelectedSTAC`} function is triggered, and
|
|
132
|
+
* returns a value of a Static Widget or null or undefined.
|
|
133
|
+
*
|
|
134
|
+
* @group Eodash
|
|
135
|
+
*/
|
|
136
|
+
export type Widget<T extends ExecutionTime = "compiletime"> = StaticWidget<T> | FunctionalWidget<T>;
|
|
137
|
+
/** @group Eodash */
|
|
138
|
+
export type BackgroundWidget<T extends ExecutionTime = "compiletime"> = Omit<WebComponentWidget<T>, "layout" | "title" | "slidable"> | Omit<InternalComponentWidget, "layout" | "title" | "slidable"> | Omit<IFrameWidget, "layout" | "title" | "slidable"> | Omit<FunctionalWidget<T>, "layout" | "slidable">;
|
|
139
|
+
/**
|
|
140
|
+
* Dashboard rendered widgets specification. 3 types of widgets are supported:
|
|
141
|
+
* `"iframe"`, `"internal"`, and `"web-component"`. A specific object should be
|
|
142
|
+
* provided based on the type of the widget.
|
|
143
|
+
*
|
|
144
|
+
* @group Eodash
|
|
145
|
+
*/
|
|
146
|
+
export interface SingleTemplate<T extends ExecutionTime = "compiletime"> {
|
|
147
|
+
/** Gap between widgets */
|
|
148
|
+
gap?: number;
|
|
149
|
+
/** Loading widget */
|
|
150
|
+
loading?: BackgroundWidget<T>;
|
|
151
|
+
/**
|
|
152
|
+
* Widget rendered as the dashboard background. Has the same specifications of
|
|
153
|
+
* {@link Widget} without the `title` and `layout` properties
|
|
154
|
+
*/
|
|
155
|
+
background?: BackgroundWidget<T>;
|
|
156
|
+
/** Array of widgets that will be rendered as dashboard panels. */
|
|
157
|
+
widgets: Widget<T>[];
|
|
158
|
+
}
|
|
159
|
+
export type MultiTemplates<T extends ExecutionTime = "compiletime"> = Record<string, SingleTemplate<T>>;
|
|
160
|
+
/** @ignore */
|
|
161
|
+
export type StacEndpoint = `${string}/catalog.json`;
|
|
162
|
+
/** @group Eodash */
|
|
163
|
+
type ExecutionTime = "runtime" | "compiletime";
|
|
164
|
+
/**
|
|
165
|
+
* Eodash instance API
|
|
166
|
+
*
|
|
167
|
+
* @group Eodash
|
|
168
|
+
*/
|
|
169
|
+
export type Eodash<T extends ExecutionTime = "compiletime"> = {
|
|
170
|
+
/** Instance ID. */
|
|
171
|
+
id?: string;
|
|
172
|
+
/** Root STAC catalog endpoint */
|
|
173
|
+
stacEndpoint: StacEndpoint;
|
|
174
|
+
/** Brand specifications. */
|
|
175
|
+
brand: {
|
|
176
|
+
/** Removes the dashboard layout */
|
|
177
|
+
noLayout?: boolean;
|
|
178
|
+
/** Custom error message to alert the users if something crashes */
|
|
179
|
+
errorMessage?: string;
|
|
180
|
+
/** Fetches the specified font family from the specified `link` property. */
|
|
181
|
+
font?: {
|
|
182
|
+
/**
|
|
183
|
+
* Link to stylesheet that defines font-face. Could be either a relative
|
|
184
|
+
* or absolute URL.
|
|
185
|
+
*/
|
|
186
|
+
link: string;
|
|
187
|
+
/** Font family name. */
|
|
188
|
+
family: string;
|
|
189
|
+
};
|
|
190
|
+
/** Title that will be shown in the app header */
|
|
191
|
+
name: string;
|
|
192
|
+
/** Brand logo */
|
|
193
|
+
logo?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Dashboard theme as a custom [vuetifyJs
|
|
196
|
+
* theme](https://vuetifyjs.com/en/features/theme/).
|
|
197
|
+
*/
|
|
198
|
+
theme?: import("vuetify/lib/index.mjs").ThemeDefinition;
|
|
199
|
+
/** Text applied to the footer. */
|
|
200
|
+
footerText?: string;
|
|
201
|
+
};
|
|
202
|
+
} & ({
|
|
203
|
+
/** Template configuration */
|
|
204
|
+
template: SingleTemplate<T>;
|
|
205
|
+
} | {
|
|
206
|
+
/** Multiple templates configuration */
|
|
207
|
+
templates: MultiTemplates<T>;
|
|
208
|
+
});
|
|
209
|
+
/** @group EodashStore */
|
|
210
|
+
export interface EodashStore {
|
|
211
|
+
/** Stateful Reactive variables */
|
|
212
|
+
states: {
|
|
213
|
+
/** Currently selected STAC endpoint */
|
|
214
|
+
currentUrl: import("vue").Ref<string>;
|
|
215
|
+
/** Currently selected datetime */
|
|
216
|
+
datetime: import("vue").Ref<string>;
|
|
217
|
+
/** Currently selected indicator */
|
|
218
|
+
indicator: import("vue").Ref<string>;
|
|
219
|
+
registeredProjections: `EPSG${number}`[];
|
|
220
|
+
/** available projection to be rendered by the Map */
|
|
221
|
+
availableMapProjection: import("vue").Ref<string>;
|
|
222
|
+
};
|
|
223
|
+
actions: {
|
|
224
|
+
/**
|
|
225
|
+
* returns the layers of the `eox-map`
|
|
226
|
+
* @param [el] - `eox-map` element selector
|
|
227
|
+
*/
|
|
228
|
+
getLayers: (el?: string) => object[];
|
|
229
|
+
/**
|
|
230
|
+
* Register EPSG projection in `eox-map` and adds it to `availableMapProjection`
|
|
231
|
+
* */
|
|
232
|
+
registerProjection: (code?: number | string | {
|
|
233
|
+
name: string;
|
|
234
|
+
def: string;
|
|
235
|
+
}) => Promise<void>;
|
|
236
|
+
/** Change `eox-map` projection from an EPSG code or a registered projection code */
|
|
237
|
+
changeMapProjection: (code?: number | string | {
|
|
238
|
+
name: string;
|
|
239
|
+
def: string;
|
|
240
|
+
}) => Promise<void>;
|
|
241
|
+
};
|
|
242
|
+
/** Pinia store definition used to navigate the root STAC catalog. */
|
|
243
|
+
stac: {
|
|
244
|
+
useSTAcStore: typeof import("./store/stac.js").useSTAcStore;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
/** @group WebComponent */
|
|
248
|
+
type EodashConstructor = import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
|
|
249
|
+
config: string;
|
|
250
|
+
}>>;
|
|
251
|
+
/**
|
|
252
|
+
* Eodash Web Component constructor
|
|
253
|
+
*
|
|
254
|
+
* @group WebComponent
|
|
255
|
+
*/
|
|
256
|
+
export declare const Eodash: EodashConstructor;
|
|
257
|
+
/**
|
|
258
|
+
* Registers `eo-dash` as Custom Element in the window
|
|
259
|
+
*
|
|
260
|
+
* @group WebComponent
|
|
261
|
+
*/
|
|
262
|
+
export declare function register(): void;
|
|
263
|
+
/**
|
|
264
|
+
* Eodash store @see EodashStore
|
|
265
|
+
*
|
|
266
|
+
* @group WebComponent
|
|
267
|
+
*/
|
|
268
|
+
export declare const store: typeof import("./store").default;
|
|
269
|
+
export * from "./main.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `eodash` injection key.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link "@/plugins/index.js"}
|
|
5
|
+
*/
|
|
6
|
+
export const eodashKey: unique symbol;
|
|
7
|
+
/** @type {import("@vueuse/core").EventBusKey<"layers:updated"|"time:updated">} */
|
|
8
|
+
export const eoxLayersKey: import("@vueuse/core").EventBusKey<"layers:updated" | "time:updated">;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of eodash STAC Collections extracted from the current selected indicator.
|
|
3
|
+
* Updated in {@link file://./../store/stac.js `loadSelectedSTAC`} widget
|
|
4
|
+
*
|
|
5
|
+
* @type {import('../eodashSTAC/EodashCollection').EodashCollection[]}
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
export const eodashCollections: import("../eodashSTAC/EodashCollection").EodashCollection[];
|
|
9
|
+
/**
|
|
10
|
+
* Array of eodash STAC Collections extracted from the current selected COMPARE indicator.
|
|
11
|
+
* Updated in {@link file://./../store/stac.js ` loadSelectedCompareSTAC`} widget
|
|
12
|
+
*
|
|
13
|
+
* @type {import('../eodashSTAC/EodashCollection').EodashCollection[]}
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
export const eodashCompareCollections: import("../eodashSTAC/EodashCollection").EodashCollection[];
|
|
17
|
+
/** whether the map postion was set in URL params on first load */
|
|
18
|
+
export const posIsSetFromUrl: import("vue").Ref<boolean, boolean>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
isWebComponent: boolean;
|
|
3
|
+
config?: string | undefined;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly isWebComponent?: boolean | undefined;
|
|
6
|
+
readonly config?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
hideArrows: boolean;
|
|
3
|
+
hideInputField: boolean;
|
|
4
|
+
hintText: string;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly hideArrows?: boolean | undefined;
|
|
7
|
+
readonly hideInputField?: boolean | undefined;
|
|
8
|
+
readonly hintText?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
11
|
+
rootRef: HTMLDivElement;
|
|
12
|
+
}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
$emit: (event: "select", ...args: any[]) => void;
|
|
3
|
+
enableCompare: boolean;
|
|
4
|
+
cssVars: string | Record<string, any>;
|
|
5
|
+
resultType: string;
|
|
6
|
+
filtersTitle: string;
|
|
7
|
+
filterProperties: {
|
|
8
|
+
keys: string[];
|
|
9
|
+
title: string;
|
|
10
|
+
type: string;
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
resultsTitle: string;
|
|
14
|
+
subTitleProperty: string;
|
|
15
|
+
imageProperty: string;
|
|
16
|
+
titleProperty: string;
|
|
17
|
+
enableHighlighting: boolean;
|
|
18
|
+
expandMultipleFilters: boolean;
|
|
19
|
+
expandMultipleResults: boolean;
|
|
20
|
+
aggregateResults?: string | undefined;
|
|
21
|
+
$props: {
|
|
22
|
+
readonly enableCompare?: boolean | undefined;
|
|
23
|
+
readonly cssVars?: string | Record<string, any> | undefined;
|
|
24
|
+
readonly resultType?: string | undefined;
|
|
25
|
+
readonly filtersTitle?: string | undefined;
|
|
26
|
+
readonly filterProperties?: {
|
|
27
|
+
keys: string[];
|
|
28
|
+
title: string;
|
|
29
|
+
type: string;
|
|
30
|
+
expanded?: boolean;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
readonly resultsTitle?: string | undefined;
|
|
33
|
+
readonly subTitleProperty?: string | undefined;
|
|
34
|
+
readonly imageProperty?: string | undefined;
|
|
35
|
+
readonly titleProperty?: string | undefined;
|
|
36
|
+
readonly enableHighlighting?: boolean | undefined;
|
|
37
|
+
readonly expandMultipleFilters?: boolean | undefined;
|
|
38
|
+
readonly expandMultipleResults?: boolean | undefined;
|
|
39
|
+
readonly aggregateResults?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
42
|
+
eoxItemFilter: unknown;
|
|
43
|
+
}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
map: string;
|
|
3
|
+
tools: unknown[];
|
|
4
|
+
cssVars?: Record<string, any> | undefined;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly map?: string | undefined;
|
|
7
|
+
readonly tools?: unknown[] | undefined;
|
|
8
|
+
readonly cssVars?: Record<string, any> | undefined;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
11
|
+
eoxLayercontrol: unknown;
|
|
12
|
+
}, HTMLSpanElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
icon: string;
|
|
3
|
+
target: string;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly icon?: string | undefined;
|
|
6
|
+
readonly target?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
9
|
+
rootRef: HTMLDivElement;
|
|
10
|
+
}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
enableCompare: boolean;
|
|
3
|
+
zoom: number;
|
|
4
|
+
center?: [number, number] | undefined;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly enableCompare?: boolean | undefined;
|
|
7
|
+
readonly zoom?: number | undefined;
|
|
8
|
+
readonly center?: [number, number] | undefined;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
11
|
+
eoxMap: unknown;
|
|
12
|
+
compareMap: unknown;
|
|
13
|
+
}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
compareIndicators: boolean;
|
|
3
|
+
exportMap: boolean;
|
|
4
|
+
changeProjection: boolean;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly compareIndicators?: boolean | undefined;
|
|
7
|
+
readonly exportMap?: boolean | undefined;
|
|
8
|
+
readonly changeProjection?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
11
|
+
rootRef: HTMLDivElement;
|
|
12
|
+
}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
2
|
+
jsonformEl: unknown;
|
|
3
|
+
}, HTMLDivElement>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
styleOverride: string;
|
|
3
|
+
tags: unknown[];
|
|
4
|
+
header: unknown[];
|
|
5
|
+
footer: unknown[];
|
|
6
|
+
body: unknown[];
|
|
7
|
+
featured: unknown[];
|
|
8
|
+
allowHtml: boolean;
|
|
9
|
+
subheader: unknown[];
|
|
10
|
+
$props: {
|
|
11
|
+
readonly styleOverride?: string | undefined;
|
|
12
|
+
readonly tags?: unknown[] | undefined;
|
|
13
|
+
readonly header?: unknown[] | undefined;
|
|
14
|
+
readonly footer?: unknown[] | undefined;
|
|
15
|
+
readonly body?: unknown[] | undefined;
|
|
16
|
+
readonly featured?: unknown[] | undefined;
|
|
17
|
+
readonly allowHtml?: boolean | undefined;
|
|
18
|
+
readonly subheader?: unknown[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
layoutTarget: string;
|
|
3
|
+
layoutIcon: string;
|
|
4
|
+
itemFilterConfig: Record<string, any>;
|
|
5
|
+
showLayoutSwitcher: boolean;
|
|
6
|
+
indicatorBtnText: string;
|
|
7
|
+
showIndicatorsBtn: boolean;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly layoutTarget?: string | undefined;
|
|
10
|
+
readonly layoutIcon?: string | undefined;
|
|
11
|
+
readonly itemFilterConfig?: Record<string, any> | undefined;
|
|
12
|
+
readonly showLayoutSwitcher?: boolean | undefined;
|
|
13
|
+
readonly indicatorBtnText?: string | undefined;
|
|
14
|
+
readonly showIndicatorsBtn?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
getLayers: Function;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly getLayers?: Function | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
height: string;
|
|
8
|
+
maxHeight: string;
|
|
9
|
+
maxWidth: string;
|
|
10
|
+
width: string;
|
|
11
|
+
widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
|
|
12
|
+
$props: {
|
|
13
|
+
readonly height?: string | undefined;
|
|
14
|
+
readonly maxHeight?: string | undefined;
|
|
15
|
+
readonly maxWidth?: string | undefined;
|
|
16
|
+
readonly width?: string | undefined;
|
|
17
|
+
readonly widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
|
|
18
|
+
};
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
20
|
+
type __VLS_TemplateResult = {
|
|
21
|
+
attrs: Partial<typeof __VLS_inheritedAttrs>;
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLSpanElement;
|
|
27
|
+
};
|
|
28
|
+
declare let __VLS_inheritedAttrs: {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
widgets: Omit<import("../core/client/types").Widget<"compiletime">, "layout">[];
|
|
3
|
+
$props: {
|
|
4
|
+
readonly widgets?: Omit<import("../core/client/types").Widget<"compiletime">, "layout">[] | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
|
|
7
|
+
detailsEls: HTMLDetailsElement[];
|
|
8
|
+
summaryEls: HTMLElement;
|
|
9
|
+
}, any>;
|
|
10
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eodash/eodash",
|
|
3
|
-
"version": "5.0.0-rc",
|
|
3
|
+
"version": "5.0.0-rc.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/core/client/types.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,16 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|
|
26
|
-
"types": "./dist/types/core/client/types.d.ts",
|
|
27
26
|
"default": "./core/client/main.js"
|
|
28
27
|
},
|
|
29
28
|
"./webcomponent": {
|
|
30
|
-
"types": "./dist/types/core/client/asWebComponent.d.ts",
|
|
31
29
|
"default": "./dist/client/eo-dash.js"
|
|
32
30
|
},
|
|
33
31
|
"./webcomponent.css": "./dist/client/eo-dash.css",
|
|
34
32
|
"./config": {
|
|
35
|
-
"types": "./dist/node/types.d.ts",
|
|
36
33
|
"default": "./dist/node/main.js"
|
|
37
34
|
}
|
|
38
35
|
},
|
|
@@ -81,9 +78,11 @@
|
|
|
81
78
|
"commander": "^12.1.0",
|
|
82
79
|
"core-js": "^3.39.0",
|
|
83
80
|
"loglevel": "^1.9.2",
|
|
81
|
+
"mustache": "^4.2.0",
|
|
84
82
|
"pinia": "^2.3.0",
|
|
85
83
|
"sass": "^1.83.0",
|
|
86
84
|
"stac-js": "^0.0.9",
|
|
85
|
+
"stac-ts": "^1.0.4",
|
|
87
86
|
"v-calendar": "3.0.0",
|
|
88
87
|
"vega": "^5.30.0",
|
|
89
88
|
"vega-embed": "^6.29.0",
|
|
@@ -105,10 +104,8 @@
|
|
|
105
104
|
"cypress": "^13.17.0",
|
|
106
105
|
"eslint": "^9.17.0",
|
|
107
106
|
"eslint-plugin-vue": "^9.32.0",
|
|
108
|
-
"mustache": "^4.2.0",
|
|
109
107
|
"prettier": "^3.4.2",
|
|
110
108
|
"rollup": "^4.28.1",
|
|
111
|
-
"stac-ts": "^1.0.4",
|
|
112
109
|
"terminate": "^2.8.0",
|
|
113
110
|
"tsc-alias": "^1.8.10",
|
|
114
111
|
"typedoc": "^0.27.5",
|
|
@@ -119,12 +116,12 @@
|
|
|
119
116
|
"unplugin-fonts": "^1.3.1",
|
|
120
117
|
"vitepress": "^1.5.0",
|
|
121
118
|
"vitest": "^1.6.0",
|
|
122
|
-
"vue-tsc": "2.0
|
|
119
|
+
"vue-tsc": "2.2.0"
|
|
123
120
|
},
|
|
124
121
|
"engines": {
|
|
125
122
|
"node": ">=20.15.1"
|
|
126
123
|
},
|
|
127
124
|
"bin": {
|
|
128
|
-
"eodash": "
|
|
125
|
+
"eodash": "dist/node/cli.js"
|
|
129
126
|
}
|
|
130
127
|
}
|
package/widgets/ExportState.vue
CHANGED
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
import { mdiClipboardCheckOutline, mdiContentCopy } from "@mdi/js";
|
|
53
53
|
import PopUp from "./PopUp.vue";
|
|
54
54
|
import { copyToClipBoard } from "@/utils";
|
|
55
|
-
import {
|
|
55
|
+
import { ref } from "vue";
|
|
56
56
|
import { getLayers as getLayerAction } from "@/store/actions";
|
|
57
|
-
import { mapPosition } from "@/store/states";
|
|
57
|
+
import { mapPosition, availableMapProjection } from "@/store/states";
|
|
58
58
|
import { removeUnneededProperties } from "@/eodashSTAC/helpers";
|
|
59
59
|
|
|
60
60
|
const dialog = defineModel({ type: Boolean, required: true, default: false });
|
|
@@ -71,7 +71,7 @@ const copySuccess = ref(false);
|
|
|
71
71
|
const copyBtns = [
|
|
72
72
|
{
|
|
73
73
|
id: Symbol(),
|
|
74
|
-
copyFn: async () => await copyToClipBoard(
|
|
74
|
+
copyFn: async () => await copyToClipBoard(getMapEntryCode(), copySuccess),
|
|
75
75
|
copyAs: "simple map",
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -82,28 +82,28 @@ const copyBtns = [
|
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
id: Symbol(),
|
|
85
|
-
copyFn: async () => await copyToClipBoard(
|
|
85
|
+
copyFn: async () => await copyToClipBoard(getMapStepCode(), copySuccess),
|
|
86
86
|
copyAs: "map tour section",
|
|
87
87
|
},
|
|
88
88
|
];
|
|
89
89
|
|
|
90
|
-
const
|
|
90
|
+
const getMapStepCode = () => {
|
|
91
91
|
const [x, y, z] = mapPosition.value;
|
|
92
92
|
const preTag = "### <!" + "--{ layers=";
|
|
93
|
-
const endTag = `zoom="${z}" center=[${[x, y]}] animationOptions={duration:500}}-->
|
|
93
|
+
const endTag = `zoom="${z}" center=[${[x, y]}] projection="${availableMapProjection.value}" animationOptions={duration:500}}-->
|
|
94
94
|
#### Tour step title
|
|
95
95
|
Text describing the current step of the tour and why it is interesting what the map shows currently
|
|
96
96
|
`;
|
|
97
97
|
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers()))}' ${endTag}`;
|
|
98
|
-
}
|
|
99
|
-
const
|
|
98
|
+
};
|
|
99
|
+
const getMapEntryCode = () => {
|
|
100
100
|
const [x, y, z] = mapPosition.value;
|
|
101
101
|
const preTag =
|
|
102
102
|
"## Map Example <!" +
|
|
103
103
|
'--{as="eox-map" style="width: 100%; height: 500px;" layers=';
|
|
104
|
-
const endTag = `zoom="${z}" center=[${[x, y]}] }-->`;
|
|
104
|
+
const endTag = `zoom="${z}" center=[${[x, y]}] projection="${availableMapProjection.value}" }-->`;
|
|
105
105
|
return `${preTag}'${JSON.stringify(removeUnneededProperties(props.getLayers()))}' ${endTag}`;
|
|
106
|
-
}
|
|
106
|
+
};
|
|
107
107
|
</script>
|
|
108
108
|
<style scoped>
|
|
109
109
|
.code-block {
|