@eodash/eodash 5.0.0-alpha.2.5 → 5.0.0-alpha.2.6
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/README.md +19 -5
- package/core/client/App.vue +6 -7
- package/core/client/SuspensedDashboard.ce.vue +58 -40
- package/core/client/asWebComponent.d.ts +10 -5
- package/core/client/asWebComponent.js +6 -6
- package/core/client/components/DashboardLayout.vue +35 -16
- package/core/client/components/DynamicWebComponent.vue +44 -44
- package/core/client/components/ErrorAlert.vue +19 -7
- package/core/client/components/Footer.vue +28 -14
- package/core/client/components/Header.vue +4 -4
- package/core/client/components/IframeWrapper.vue +3 -3
- package/core/client/components/Loading.vue +17 -18
- package/core/client/components/MobileLayout.vue +48 -26
- package/core/client/composables/DefineEodash.js +38 -29
- package/core/client/composables/DefineWidgets.js +101 -81
- package/core/client/composables/index.js +32 -29
- package/core/client/eodash.js +44 -39
- package/core/client/main.js +2 -2
- package/core/client/plugins/index.js +9 -10
- package/core/client/plugins/vuetify.js +9 -10
- package/core/client/render.js +4 -5
- package/core/client/store/States.js +8 -13
- package/core/client/store/index.js +14 -11
- package/core/client/store/stac.js +51 -37
- package/core/client/types.d.ts +169 -201
- package/core/client/utils/eodashSTAC.js +130 -49
- package/core/client/utils/helpers.js +18 -20
- package/core/client/utils/index.js +17 -10
- package/core/client/utils/keys.js +2 -2
- package/core/client/views/Dashboard.vue +53 -36
- package/core/client/vite-env.d.ts +19 -17
- package/dist/client/{DashboardLayout-BYROtP-7.js → DashboardLayout-BuDcv6LM.js} +9 -9
- package/dist/client/{DynamicWebComponent-BQhxFPM0.js → DynamicWebComponent-BEP4rVce.js} +2 -2
- package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
- package/dist/client/{EodashItemFilter-DIBDAHcc.js → EodashItemFilter-BElmgrST.js} +4 -6
- package/dist/client/{EodashMap-C6jJ2Lb_.js → EodashMap-DXyOgcEd.js} +13131 -14490
- package/dist/client/{Footer-BVIZms1S.js → Footer-CoPx6UXQ.js} +3 -3
- package/dist/client/{Header-TsTL1d2R.js → Header-C-zX31Ys.js} +169 -167
- package/dist/client/{IframeWrapper-XKChM78a.js → IframeWrapper-2w2ye0zM.js} +1 -1
- package/dist/client/{MobileLayout-BlGcMQra.js → MobileLayout-C9OVcP12.js} +45 -57
- package/dist/client/{VMain-C9XV5Lyg.js → VMain-Dm43jd43.js} +2 -2
- package/dist/client/{WidgetsContainer-BQXHnZpa.js → WidgetsContainer-BS87sLqk.js} +10 -3
- package/dist/client/{asWebComponent-CbdGxelK.js → asWebComponent-CpQUVi2N.js} +5508 -5561
- package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/client/{decoder-HRvnjnEI-CHAYOWhz.js → decoder-CP4lv0Kb-BHrv68IA.js} +1 -1
- package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
- package/dist/client/eo-dash.js +3 -3
- package/dist/client/eodashSTAC-Q7kbX1Gy.js +2788 -0
- package/dist/client/{eox-itemfilter-DcQkRD2l.js → eox-itemfilter-TaBxgqq_.js} +1002 -974
- package/dist/client/{eox-map-C3DL31fp.js → eox-map-L7abwKTR.js} +5677 -5695
- package/dist/client/{forwardRefs-CyCJOFsz.js → forwardRefs-BVFQ82G4.js} +12 -21
- package/dist/client/{index-CabQjjQg.js → index-dOzyv_xR.js} +1 -1
- package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/client/{lerc-_E46UbWQ-TxBH4OeK.js → lerc-DzVumYtB-rm1Xco54.js} +5 -7
- package/dist/client/{lzw-BOMhmEDy-Dboc93VO.js → lzw-LAGDNbSC-DkP96qO9.js} +1 -1
- package/dist/client/{packbits-DaUD6MLm-Bu1PoTGa.js → packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
- package/dist/client/{pako.esm-C3kYPGGQ-BMki8cQY.js → pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
- package/dist/client/{raw-CcGKjn8q-DFOt-i8n.js → raw-CMGvRjfu-BRi6E4i1.js} +1 -1
- package/dist/client/{ssrBoot-DWJ-z4I-.js → ssrBoot-L9KejErM.js} +1 -1
- package/dist/client/style.css +2 -2
- package/dist/client/{transition-BlLt41wg.js → transition-DCePIwYR.js} +1 -1
- package/dist/client/{webfontloader-CyOFAuFB.js → webfontloader-qotgY98I.js} +56 -92
- package/dist/client/{webimage-D2c098k3-DLj1LQxB.js → webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
- package/dist/node/cli.js +1 -1
- package/dist/node/types.d.ts +32 -38
- package/package.json +11 -11
- package/widgets/EodashDatePicker.vue +94 -43
- package/widgets/EodashItemFilter.vue +13 -10
- package/widgets/EodashMap.vue +87 -20
- package/widgets/WidgetsContainer.vue +45 -27
- package/dist/client/EodashDatePicker-CFltnt5d.js +0 -1194
- package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/client/http-ZWiLaAeR.js +0 -1337
package/core/client/types.d.ts
CHANGED
|
@@ -1,299 +1,267 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @group Eodash
|
|
3
|
-
*/
|
|
1
|
+
/** @group Eodash */
|
|
4
2
|
export interface WebComponentProps<T extends ExecutionTime = "compiletime"> {
|
|
5
3
|
/**
|
|
6
4
|
* Imports web component file, either using a URL or an import function.
|
|
5
|
+
*
|
|
7
6
|
* @example
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* importing `eox-itemfilter` web component, after installing `@eox/itemfilter` it can be
|
|
8
|
+
* referenced:
|
|
9
|
+
* ```js
|
|
10
|
+
* link: async() => import("@eox/itemfilter")
|
|
11
|
+
* ```
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
link: T extends
|
|
13
|
+
* ::: warning
|
|
14
|
+
* import maps are not available in runtime config
|
|
15
|
+
* :::
|
|
16
|
+
*/
|
|
17
|
+
link: T extends "runtime" ? string : string | (() => Promise<unknown>);
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* [link](#link) provided
|
|
22
|
-
|
|
23
|
-
constructorProp?: string
|
|
24
|
-
tagName: `${string}-${string}
|
|
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}`;
|
|
25
24
|
/** Object defining all the properties and attributes of the web component */
|
|
26
|
-
properties?: Record<string, unknown
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
27
26
|
/**
|
|
28
27
|
* Triggered when the web component is mounted in the DOM.
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
28
|
+
*
|
|
29
|
+
* @param el - Web component
|
|
30
|
+
* @param store - Return value of the core STAC pinia store in
|
|
31
|
+
* `/core/client/store/stac.ts`
|
|
31
32
|
*/
|
|
32
|
-
onMounted?: (
|
|
33
|
+
onMounted?: (
|
|
34
|
+
el: Element | null,
|
|
35
|
+
store: ReturnType<typeof import("./store/stac").useSTAcStore>,
|
|
36
|
+
) => Promise<void> | void;
|
|
33
37
|
/**
|
|
34
38
|
* Triggered when the web component is unmounted from the DOM.
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
39
|
+
*
|
|
40
|
+
* @param el - Web component
|
|
41
|
+
* @param store - Return value of the core STAC pinia store in
|
|
42
|
+
* `/core/client/store/stac.ts`
|
|
37
43
|
*/
|
|
38
|
-
onUnmounted?: (
|
|
44
|
+
onUnmounted?: (
|
|
45
|
+
el: Element | null,
|
|
46
|
+
store: ReturnType<typeof import("./store/stac").useSTAcStore>,
|
|
47
|
+
) => Promise<void> | void;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
|
|
42
50
|
/** @ignore */
|
|
43
51
|
export interface WidgetsContainerProps {
|
|
44
|
-
widgets: Omit<Widget,
|
|
52
|
+
widgets: Omit<Widget, "layout">[];
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
// eodash types:
|
|
48
|
-
/**
|
|
49
|
-
* properties of EOxLayoutItem used for setting
|
|
50
|
-
* the position and size of panels
|
|
51
|
-
*/
|
|
56
|
+
/** Properties of EOxLayoutItem used for setting the position and size of panels */
|
|
52
57
|
export interface Layout {
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Width. Integer between 1 and 12
|
|
63
|
-
*/
|
|
64
|
-
w: number
|
|
65
|
-
/**
|
|
66
|
-
* Height. Integer between 1 and 12
|
|
67
|
-
*/
|
|
68
|
-
h: number
|
|
58
|
+
/** Horizontal start position. Integer between 1 and 12 */
|
|
59
|
+
x: number;
|
|
60
|
+
/** Vertical start position. Integer between 1 and 12 */
|
|
61
|
+
y: number;
|
|
62
|
+
/** Width. Integer between 1 and 12 */
|
|
63
|
+
w: number;
|
|
64
|
+
/** Height. Integer between 1 and 12 */
|
|
65
|
+
h: number;
|
|
69
66
|
}
|
|
70
67
|
/**
|
|
71
68
|
* Widget type: `web-component` API
|
|
69
|
+
*
|
|
72
70
|
* @group Eodash
|
|
73
71
|
*/
|
|
74
72
|
export interface WebComponentWidget<T extends ExecutionTime = "compiletime"> {
|
|
75
|
-
id: number | string | symbol
|
|
76
|
-
title: string
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
widget: WebComponentProps<T>
|
|
82
|
-
type: 'web-component'
|
|
73
|
+
id: number | string | symbol;
|
|
74
|
+
title: string;
|
|
75
|
+
/** Widget position and size. */
|
|
76
|
+
layout: Layout;
|
|
77
|
+
widget: WebComponentProps<T>;
|
|
78
|
+
type: "web-component";
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/**
|
|
86
|
-
* Widget type: `internal` API.
|
|
87
|
-
*
|
|
82
|
+
* Widget type: `internal` API. Internal widgets are Vue components provided by
|
|
83
|
+
* eodash.
|
|
84
|
+
*
|
|
88
85
|
* @group Eodash
|
|
89
86
|
*/
|
|
90
87
|
export interface InternalComponentWidget {
|
|
91
|
-
id: number | string | symbol
|
|
92
|
-
title: string
|
|
93
|
-
/**
|
|
94
|
-
|
|
95
|
-
*/
|
|
96
|
-
layout: Layout
|
|
88
|
+
id: number | string | symbol;
|
|
89
|
+
title: string;
|
|
90
|
+
/** Widget position and size. */
|
|
91
|
+
layout: Layout;
|
|
97
92
|
widget: {
|
|
98
93
|
/**
|
|
99
|
-
* Internal Vue Components inside the
|
|
100
|
-
*
|
|
94
|
+
* Internal Vue Components inside the
|
|
95
|
+
* [widgets](https://github.com/eodash/eodash/tree/main/widgets) folder.
|
|
96
|
+
* Referenced using their name without the .vue extention
|
|
101
97
|
*/
|
|
102
98
|
name: string;
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
type: 'internal'
|
|
99
|
+
/** Specified Vue component props */
|
|
100
|
+
properties?: Record<string, unknown>;
|
|
101
|
+
};
|
|
102
|
+
type: "internal";
|
|
109
103
|
}
|
|
110
104
|
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
* Renders an external HTML file as a widget.
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* @group Eodash
|
|
117
|
-
*/
|
|
105
|
+
/** Widget type: `iframe` API Renders an external HTML file as a widget. */
|
|
106
|
+
/** @group Eodash */
|
|
118
107
|
export interface IFrameWidget {
|
|
119
|
-
id: number | string | symbol
|
|
120
|
-
title: string
|
|
121
|
-
/**
|
|
122
|
-
|
|
123
|
-
*/
|
|
124
|
-
layout: Layout
|
|
108
|
+
id: number | string | symbol;
|
|
109
|
+
title: string;
|
|
110
|
+
/** Widget position and size. */
|
|
111
|
+
layout: Layout;
|
|
125
112
|
widget: {
|
|
126
|
-
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
type: 'iframe'
|
|
113
|
+
/** The URL of the page to embed */
|
|
114
|
+
src: string;
|
|
115
|
+
};
|
|
116
|
+
type: "iframe";
|
|
132
117
|
}
|
|
133
|
-
/**
|
|
134
|
-
* @group Eodash
|
|
135
|
-
*/
|
|
118
|
+
/** @group Eodash */
|
|
136
119
|
export interface FunctionalWidget<T extends ExecutionTime = "compiletime"> {
|
|
137
120
|
/**
|
|
138
|
-
* Provides a functional definition of widgets,
|
|
139
|
-
*
|
|
140
|
-
*
|
|
121
|
+
* Provides a functional definition of widgets, gets triggered whenever a STAC
|
|
122
|
+
* object is selected, and only renders the returned configuration if the `id`
|
|
123
|
+
* doesn't match the currently rendered `id`
|
|
124
|
+
*
|
|
141
125
|
* @param selectedSTAC - Currently selected STAC object
|
|
142
126
|
*/
|
|
143
|
-
defineWidget: (
|
|
144
|
-
|
|
127
|
+
defineWidget: (
|
|
128
|
+
selectedSTAC:
|
|
129
|
+
| import("stac-ts").StacCatalog
|
|
130
|
+
| import("stac-ts").StacCollection
|
|
131
|
+
| import("stac-ts").StacItem
|
|
132
|
+
| null,
|
|
133
|
+
) => StaticWidget<T> | undefined | null;
|
|
145
134
|
}
|
|
146
135
|
/**
|
|
147
|
-
*
|
|
136
|
+
* There are 3 types of Widgets:
|
|
148
137
|
*
|
|
149
138
|
* @group Eodash
|
|
150
139
|
*/
|
|
151
|
-
export type StaticWidget<T extends ExecutionTime = "compiletime"> =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* 2. {@link FunctionalWidget} : a special form which contains the {@link FunctionalWidget.defineWidget `defineWidget`} function that
|
|
156
|
-
* runs when {@link EodashStore.stac `loadSelectedSTAC`} function
|
|
157
|
-
* is triggered, and returns a value of a Static Widget or null or undefined.
|
|
158
|
-
* @group Eodash
|
|
159
|
-
*/
|
|
160
|
-
export type Widget<T extends ExecutionTime = "compiletime"> = StaticWidget<T> | FunctionalWidget<T>
|
|
161
|
-
|
|
162
|
-
|
|
140
|
+
export type StaticWidget<T extends ExecutionTime = "compiletime"> =
|
|
141
|
+
| WebComponentWidget<T>
|
|
142
|
+
| InternalComponentWidget
|
|
143
|
+
| IFrameWidget;
|
|
163
144
|
/**
|
|
145
|
+
* Widgets can be defined in 2 forms:
|
|
146
|
+
*
|
|
147
|
+
* 1. {@link StaticWidget} : This is defined as an object once, and is considered
|
|
148
|
+
* the default form.
|
|
149
|
+
* 2. {@link FunctionalWidget} : a special form which contains the
|
|
150
|
+
* {@link FunctionalWidget.defineWidget `defineWidget`} function that runs
|
|
151
|
+
* when {@link EodashStore.stac `loadSelectedSTAC`} function is triggered, and
|
|
152
|
+
* returns a value of a Static Widget or null or undefined.
|
|
153
|
+
*
|
|
164
154
|
* @group Eodash
|
|
165
155
|
*/
|
|
166
|
-
export type
|
|
156
|
+
export type Widget<T extends ExecutionTime = "compiletime"> =
|
|
157
|
+
| StaticWidget<T>
|
|
158
|
+
| FunctionalWidget<T>;
|
|
159
|
+
|
|
160
|
+
/** @group Eodash */
|
|
161
|
+
export type BackgroundWidget<T extends ExecutionTime = "compiletime"> =
|
|
162
|
+
| Omit<WebComponentWidget<T>, "layout" | "title" | "slidable">
|
|
163
|
+
| Omit<InternalComponentWidget, "layout" | "title" | "slidable">
|
|
164
|
+
| Omit<IFrameWidget, "layout" | "title" | "slidable">
|
|
165
|
+
| Omit<FunctionalWidget<T>, "layout" | "slidable">;
|
|
167
166
|
/**
|
|
168
|
-
* Dashboard rendered widgets
|
|
169
|
-
*
|
|
170
|
-
*
|
|
167
|
+
* Dashboard rendered widgets specification. 3 types of widgets are supported:
|
|
168
|
+
* `"iframe"`, `"internal"`, and `"web-component"`. A specific object should be
|
|
169
|
+
* provided based on the type of the widget.
|
|
170
|
+
*
|
|
171
171
|
* @group Eodash
|
|
172
172
|
*/
|
|
173
173
|
export interface Template<T extends ExecutionTime = "compiletime"> {
|
|
174
|
-
/**
|
|
175
|
-
* Gap between widgets
|
|
176
|
-
*/
|
|
174
|
+
/** Gap between widgets */
|
|
177
175
|
gap?: number;
|
|
176
|
+
/** Loading widget */
|
|
177
|
+
loading?: BackgroundWidget<T>;
|
|
178
178
|
/**
|
|
179
|
-
*
|
|
180
|
-
|
|
181
|
-
loading?: BackgroundWidget<T>
|
|
182
|
-
/**
|
|
183
|
-
* Widget rendered as the dashboard background.
|
|
184
|
-
* Has the same specifications of {@link Widget} without the `title` and `layout` properties
|
|
179
|
+
* Widget rendered as the dashboard background. Has the same specifications of
|
|
180
|
+
* {@link Widget} without the `title` and `layout` properties
|
|
185
181
|
*/
|
|
186
|
-
background?: BackgroundWidget<T
|
|
187
|
-
/**
|
|
188
|
-
|
|
189
|
-
*/
|
|
190
|
-
widgets: Widget<T>[]
|
|
182
|
+
background?: BackgroundWidget<T>;
|
|
183
|
+
/** Array of widgets that will be rendered as dashboard panels. */
|
|
184
|
+
widgets: Widget<T>[];
|
|
191
185
|
}
|
|
192
186
|
|
|
193
187
|
/** @ignore */
|
|
194
|
-
export type StacEndpoint = `${
|
|
188
|
+
export type StacEndpoint = `${"https://" | "http://"}${string}/catalog.json`;
|
|
195
189
|
|
|
196
|
-
/**
|
|
197
|
-
* @group Eodash
|
|
198
|
-
*/
|
|
190
|
+
/** @group Eodash */
|
|
199
191
|
type ExecutionTime = "runtime" | "compiletime";
|
|
200
192
|
|
|
201
193
|
/**
|
|
202
194
|
* Eodash instance API
|
|
195
|
+
*
|
|
203
196
|
* @group Eodash
|
|
204
197
|
*/
|
|
205
198
|
export interface Eodash<T extends ExecutionTime = "compiletime"> {
|
|
206
|
-
/**
|
|
207
|
-
* Instance ID.
|
|
208
|
-
*/
|
|
199
|
+
/** Instance ID. */
|
|
209
200
|
id?: string;
|
|
210
|
-
/**
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
stacEndpoint: StacEndpoint
|
|
214
|
-
/**
|
|
215
|
-
* Brand specifications.
|
|
216
|
-
*/
|
|
201
|
+
/** Root STAC catalog endpoint */
|
|
202
|
+
stacEndpoint: StacEndpoint;
|
|
203
|
+
/** Brand specifications. */
|
|
217
204
|
brand: {
|
|
218
205
|
/** Removes the dashboard layout */
|
|
219
|
-
noLayout?: boolean
|
|
220
|
-
/**
|
|
221
|
-
errorMessage?: string
|
|
222
|
-
/**
|
|
223
|
-
* fetches the specified font family from the specified `link` property.
|
|
224
|
-
*/
|
|
206
|
+
noLayout?: boolean;
|
|
207
|
+
/** Custom error message to alert the users if something crashes */
|
|
208
|
+
errorMessage?: string;
|
|
209
|
+
/** Fetches the specified font family from the specified `link` property. */
|
|
225
210
|
font?: {
|
|
226
211
|
/**
|
|
227
|
-
* Link to stylesheet that defines font-face. Could be either a relative
|
|
212
|
+
* Link to stylesheet that defines font-face. Could be either a relative
|
|
213
|
+
* or absolute URL.
|
|
228
214
|
*/
|
|
229
215
|
link: string;
|
|
230
|
-
/**
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Title that will be shown in the app header
|
|
237
|
-
*/
|
|
216
|
+
/** Font family name. */
|
|
217
|
+
family: string;
|
|
218
|
+
};
|
|
219
|
+
/** Title that will be shown in the app header */
|
|
238
220
|
name: string;
|
|
239
|
-
/**
|
|
240
|
-
* Brand logo
|
|
241
|
-
*/
|
|
221
|
+
/** Brand logo */
|
|
242
222
|
logo?: string;
|
|
243
223
|
/**
|
|
244
|
-
* Dashboard theme as a custom [vuetifyJs
|
|
245
|
-
|
|
246
|
-
theme?: import("vuetify/lib/index.mjs").ThemeDefinition
|
|
247
|
-
/**
|
|
248
|
-
* Text applied to the footer.
|
|
224
|
+
* Dashboard theme as a custom [vuetifyJs
|
|
225
|
+
* theme](https://vuetifyjs.com/en/features/theme/).
|
|
249
226
|
*/
|
|
227
|
+
theme?: import("vuetify/lib/index.mjs").ThemeDefinition;
|
|
228
|
+
/** Text applied to the footer. */
|
|
250
229
|
footerText?: string;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
|
|
254
|
-
*/
|
|
255
|
-
template: Template<T>
|
|
230
|
+
};
|
|
231
|
+
/** Template configuration */
|
|
232
|
+
template: Template<T>;
|
|
256
233
|
}
|
|
257
234
|
/////////
|
|
258
235
|
|
|
259
236
|
/// eodash store types
|
|
260
|
-
/**
|
|
261
|
-
* @group EodashStore
|
|
262
|
-
*/
|
|
237
|
+
/** @group EodashStore */
|
|
263
238
|
export interface EodashStore {
|
|
264
|
-
/**
|
|
265
|
-
* Stateful Reactive variables
|
|
266
|
-
*/
|
|
239
|
+
/** Stateful Reactive variables */
|
|
267
240
|
states: {
|
|
268
|
-
/**
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
* Currently selected indicator
|
|
278
|
-
*/
|
|
279
|
-
indicator: import("vue").Ref<string>
|
|
280
|
-
}
|
|
281
|
-
actions: {};
|
|
282
|
-
/**
|
|
283
|
-
* Pinia store definition used to navigate the root STAC catalog.
|
|
284
|
-
*/
|
|
241
|
+
/** Currently selected STAC endpoint */
|
|
242
|
+
currentUrl: import("vue").Ref<string>;
|
|
243
|
+
/** Currently selected datetime */
|
|
244
|
+
datetime: import("vue").Ref<string>;
|
|
245
|
+
/** Currently selected indicator */
|
|
246
|
+
indicator: import("vue").Ref<string>;
|
|
247
|
+
};
|
|
248
|
+
actions: object;
|
|
249
|
+
/** Pinia store definition used to navigate the root STAC catalog. */
|
|
285
250
|
stac: {
|
|
286
|
-
useSTAcStore: typeof import("./store/stac.js").useSTAcStore
|
|
287
|
-
}
|
|
251
|
+
useSTAcStore: typeof import("./store/stac.js").useSTAcStore;
|
|
252
|
+
};
|
|
288
253
|
}
|
|
289
254
|
///////
|
|
290
255
|
/**
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
256
|
+
* The project's entry point should export this function as a default to
|
|
257
|
+
* instantiate eodash
|
|
258
|
+
*
|
|
294
259
|
* @param config
|
|
260
|
+
* @group Eodash
|
|
295
261
|
*/
|
|
296
|
-
export declare const createEodash: (
|
|
262
|
+
export declare const createEodash: (
|
|
263
|
+
config: ((store: EodashStore) => Eodash | Promise<Eodash>) | Eodash,
|
|
264
|
+
) => Eodash | Promise<Eodash>;
|
|
297
265
|
|
|
298
266
|
/** @group EodashStore */
|
|
299
|
-
export declare const store: EodashStore
|
|
267
|
+
export declare const store: EodashStore;
|