@eodash/eodash 5.0.0-alpha.2.4 → 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 +31 -7
- package/core/client/App.vue +6 -7
- package/core/client/SuspensedDashboard.ce.vue +59 -45
- package/core/client/asWebComponent.d.ts +10 -5
- package/core/client/asWebComponent.js +6 -6
- package/core/client/components/DashboardLayout.vue +63 -21
- package/core/client/components/DynamicWebComponent.vue +44 -44
- package/core/client/components/ErrorAlert.vue +24 -7
- package/core/client/components/Footer.vue +34 -15
- package/core/client/components/Header.vue +10 -5
- package/core/client/components/IframeWrapper.vue +4 -4
- package/core/client/components/Loading.vue +17 -18
- package/core/client/components/MobileLayout.vue +82 -29
- package/core/client/composables/DefineEodash.js +38 -28
- package/core/client/composables/DefineWidgets.js +105 -79
- package/core/client/composables/index.js +43 -141
- package/core/client/eodash.js +46 -39
- package/core/client/main.js +2 -2
- package/core/client/plugins/index.js +11 -9
- 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 +173 -248
- package/core/client/utils/eodashSTAC.js +151 -66
- package/core/client/utils/helpers.js +18 -20
- package/core/client/utils/index.js +25 -14
- package/core/client/utils/keys.js +2 -2
- package/core/client/views/Dashboard.vue +70 -42
- package/core/client/vite-env.d.ts +19 -17
- package/dist/client/DashboardLayout-BuDcv6LM.js +156 -0
- package/dist/client/{DynamicWebComponent-C4Hotc4H.js → DynamicWebComponent-BEP4rVce.js} +7 -7
- package/dist/client/EodashDatePicker-oFb1zt5E.js +1211 -0
- package/dist/client/EodashItemFilter-BElmgrST.js +63 -0
- package/dist/client/{EodashMap-CGrQjZ1P.js → EodashMap-DXyOgcEd.js} +11333 -14025
- package/dist/client/Footer-CoPx6UXQ.js +115 -0
- package/dist/client/Header-C-zX31Ys.js +635 -0
- package/dist/client/{IframeWrapper-Cg3GMmfW.js → IframeWrapper-2w2ye0zM.js} +4 -4
- package/dist/client/MobileLayout-C9OVcP12.js +945 -0
- package/dist/client/{VMain-BHYlmRic.js → VMain-Dm43jd43.js} +8 -8
- package/dist/client/{WidgetsContainer-dje9QSk0.js → WidgetsContainer-BS87sLqk.js} +12 -5
- package/dist/client/asWebComponent-CpQUVi2N.js +20135 -0
- package/dist/client/{basedecoder-Qm25PwVp-CHo5Pomv.js → basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
- package/dist/client/{decoder-HRvnjnEI-BQ2rajuJ.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-BVFQ82G4.js +183 -0
- package/dist/client/{index-CaDDfJYE.js → index-dOzyv_xR.js} +43 -74
- package/dist/client/{jpeg-DNfUpLwy-Fjan-04T.js → jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
- package/dist/client/{lerc-_E46UbWQ-Beu35ovS.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-Dd7m-btU.js → ssrBoot-L9KejErM.js} +3 -3
- package/dist/client/style.css +2 -2
- package/dist/client/transition-DCePIwYR.js +34 -0
- 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 +3 -3
- package/dist/node/types.d.ts +32 -38
- package/package.json +13 -14
- package/widgets/EodashDatePicker.vue +145 -41
- package/widgets/EodashItemFilter.vue +41 -22
- package/widgets/EodashMap.vue +87 -20
- package/widgets/WidgetsContainer.vue +45 -27
- package/dist/client/DashboardLayout-ZaSRMD1M.js +0 -149
- package/dist/client/EodashDatePicker-C4kKjxKy.js +0 -1653
- package/dist/client/EodashItemFilter-cBHC0YEM.js +0 -51
- package/dist/client/Footer-pS636dEP.js +0 -118
- package/dist/client/Header-DQuaLdjl.js +0 -605
- package/dist/client/MobileLayout-BLXFBWI_.js +0 -987
- package/dist/client/asWebComponent-Bvb3xkxI.js +0 -13311
- package/dist/client/deflate-Be2Arps5-hDqMz3RA.js +0 -10
- package/dist/client/forwardRefs-Bxeu9Obx.js +0 -142
- package/dist/client/index-DlNICb3T.js +0 -34
package/core/client/types.d.ts
CHANGED
|
@@ -1,342 +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:
|
|
56
|
+
/** Properties of EOxLayoutItem used for setting the position and size of panels */
|
|
57
|
+
export interface Layout {
|
|
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;
|
|
66
|
+
}
|
|
48
67
|
/**
|
|
49
68
|
* Widget type: `web-component` API
|
|
69
|
+
*
|
|
50
70
|
* @group Eodash
|
|
51
71
|
*/
|
|
52
72
|
export interface WebComponentWidget<T extends ExecutionTime = "compiletime"> {
|
|
53
|
-
id: number | string | symbol
|
|
54
|
-
title: string
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Horizontal start position. Integer between 1 and 12
|
|
61
|
-
*/
|
|
62
|
-
x: number
|
|
63
|
-
/**
|
|
64
|
-
* Vertical start position. Integer between 1 and 12
|
|
65
|
-
*/
|
|
66
|
-
y: number
|
|
67
|
-
/**
|
|
68
|
-
* Width. Integer between 1 and 12
|
|
69
|
-
*/
|
|
70
|
-
w: number
|
|
71
|
-
/**
|
|
72
|
-
* Height. Integer between 1 and 12
|
|
73
|
-
*/
|
|
74
|
-
h: number
|
|
75
|
-
},
|
|
76
|
-
widget: WebComponentProps<T>
|
|
77
|
-
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";
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
|
-
* Widget type: `internal` API.
|
|
82
|
-
*
|
|
82
|
+
* Widget type: `internal` API. Internal widgets are Vue components provided by
|
|
83
|
+
* eodash.
|
|
84
|
+
*
|
|
83
85
|
* @group Eodash
|
|
84
86
|
*/
|
|
85
87
|
export interface InternalComponentWidget {
|
|
86
|
-
id: number | string | symbol
|
|
87
|
-
title: string
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
*/
|
|
91
|
-
layout: {
|
|
92
|
-
/**
|
|
93
|
-
* Horizontal start position. Integer between 1 and 12
|
|
94
|
-
*/
|
|
95
|
-
x: number
|
|
96
|
-
/**
|
|
97
|
-
* Vertical start position. Integer between 1 and 12
|
|
98
|
-
*/
|
|
99
|
-
y: number
|
|
100
|
-
/**
|
|
101
|
-
* Width. Integer between 1 and 12
|
|
102
|
-
*/
|
|
103
|
-
w: number
|
|
104
|
-
/**
|
|
105
|
-
* Height. Integer between 1 and 12
|
|
106
|
-
*/
|
|
107
|
-
h: number
|
|
108
|
-
}
|
|
88
|
+
id: number | string | symbol;
|
|
89
|
+
title: string;
|
|
90
|
+
/** Widget position and size. */
|
|
91
|
+
layout: Layout;
|
|
109
92
|
widget: {
|
|
110
93
|
/**
|
|
111
|
-
* Internal Vue Components inside the
|
|
112
|
-
*
|
|
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
|
|
113
97
|
*/
|
|
114
98
|
name: string;
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
type: 'internal'
|
|
99
|
+
/** Specified Vue component props */
|
|
100
|
+
properties?: Record<string, unknown>;
|
|
101
|
+
};
|
|
102
|
+
type: "internal";
|
|
121
103
|
}
|
|
122
104
|
|
|
123
|
-
/**
|
|
124
|
-
|
|
125
|
-
* Renders an external HTML file as a widget.
|
|
126
|
-
*/
|
|
127
|
-
/**
|
|
128
|
-
* @group Eodash
|
|
129
|
-
*/
|
|
105
|
+
/** Widget type: `iframe` API Renders an external HTML file as a widget. */
|
|
106
|
+
/** @group Eodash */
|
|
130
107
|
export interface IFrameWidget {
|
|
131
|
-
id: number | string | symbol
|
|
132
|
-
title: string
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
*/
|
|
136
|
-
layout: {
|
|
137
|
-
/**
|
|
138
|
-
* Horizontal start position. Integer between 1 and 12
|
|
139
|
-
*/
|
|
140
|
-
x: number
|
|
141
|
-
/**
|
|
142
|
-
* Vertical start position. Integer between 1 and 12
|
|
143
|
-
*/
|
|
144
|
-
y: number
|
|
145
|
-
/**
|
|
146
|
-
* Width. Integer between 1 and 12
|
|
147
|
-
*/
|
|
148
|
-
w: number
|
|
149
|
-
/**
|
|
150
|
-
* Height. Integer between 1 and 12
|
|
151
|
-
*/
|
|
152
|
-
h: number
|
|
153
|
-
}
|
|
108
|
+
id: number | string | symbol;
|
|
109
|
+
title: string;
|
|
110
|
+
/** Widget position and size. */
|
|
111
|
+
layout: Layout;
|
|
154
112
|
widget: {
|
|
155
|
-
/**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
type: 'iframe'
|
|
113
|
+
/** The URL of the page to embed */
|
|
114
|
+
src: string;
|
|
115
|
+
};
|
|
116
|
+
type: "iframe";
|
|
161
117
|
}
|
|
162
|
-
/**
|
|
163
|
-
* @group Eodash
|
|
164
|
-
*/
|
|
118
|
+
/** @group Eodash */
|
|
165
119
|
export interface FunctionalWidget<T extends ExecutionTime = "compiletime"> {
|
|
166
120
|
/**
|
|
167
|
-
* Provides a functional definition of widgets,
|
|
168
|
-
*
|
|
169
|
-
*
|
|
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
|
+
*
|
|
170
125
|
* @param selectedSTAC - Currently selected STAC object
|
|
171
126
|
*/
|
|
172
|
-
defineWidget: (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Vertical start position. Integer between 1 and 12
|
|
181
|
-
*/
|
|
182
|
-
y: number
|
|
183
|
-
/**
|
|
184
|
-
* Width. Integer between 1 and 12
|
|
185
|
-
*/
|
|
186
|
-
w: number
|
|
187
|
-
/**
|
|
188
|
-
* Height. Integer between 1 and 12
|
|
189
|
-
*/
|
|
190
|
-
h: number
|
|
191
|
-
}
|
|
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;
|
|
192
134
|
}
|
|
193
135
|
/**
|
|
136
|
+
* There are 3 types of Widgets:
|
|
137
|
+
*
|
|
194
138
|
* @group Eodash
|
|
195
139
|
*/
|
|
196
|
-
export type StaticWidget<T extends ExecutionTime = "compiletime"> =
|
|
140
|
+
export type StaticWidget<T extends ExecutionTime = "compiletime"> =
|
|
141
|
+
| WebComponentWidget<T>
|
|
142
|
+
| InternalComponentWidget
|
|
143
|
+
| IFrameWidget;
|
|
197
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
|
+
*
|
|
198
154
|
* @group Eodash
|
|
199
155
|
*/
|
|
200
|
-
export type Widget<T extends ExecutionTime = "compiletime"> =
|
|
156
|
+
export type Widget<T extends ExecutionTime = "compiletime"> =
|
|
157
|
+
| StaticWidget<T>
|
|
158
|
+
| FunctionalWidget<T>;
|
|
201
159
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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">;
|
|
207
166
|
/**
|
|
208
|
-
* Dashboard rendered widgets
|
|
209
|
-
*
|
|
210
|
-
*
|
|
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
|
+
*
|
|
211
171
|
* @group Eodash
|
|
212
172
|
*/
|
|
213
173
|
export interface Template<T extends ExecutionTime = "compiletime"> {
|
|
214
|
-
/**
|
|
215
|
-
* Gap between widgets
|
|
216
|
-
*/
|
|
174
|
+
/** Gap between widgets */
|
|
217
175
|
gap?: number;
|
|
176
|
+
/** Loading widget */
|
|
177
|
+
loading?: BackgroundWidget<T>;
|
|
218
178
|
/**
|
|
219
|
-
*
|
|
179
|
+
* Widget rendered as the dashboard background. Has the same specifications of
|
|
180
|
+
* {@link Widget} without the `title` and `layout` properties
|
|
220
181
|
*/
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
|
|
224
|
-
* Has the same specifications of `Widget` without the `title` and `layout` properties
|
|
225
|
-
* @see {@link Widget}
|
|
226
|
-
*/
|
|
227
|
-
background?: BackgroundWidget<T>
|
|
228
|
-
/**
|
|
229
|
-
* Array of widgets that will be rendered as dashboard panels.
|
|
230
|
-
*/
|
|
231
|
-
widgets: Widget<T>[]
|
|
182
|
+
background?: BackgroundWidget<T>;
|
|
183
|
+
/** Array of widgets that will be rendered as dashboard panels. */
|
|
184
|
+
widgets: Widget<T>[];
|
|
232
185
|
}
|
|
233
186
|
|
|
234
187
|
/** @ignore */
|
|
235
|
-
export type StacEndpoint = `${
|
|
188
|
+
export type StacEndpoint = `${"https://" | "http://"}${string}/catalog.json`;
|
|
236
189
|
|
|
237
|
-
/**
|
|
238
|
-
|
|
239
|
-
* @group Eodash
|
|
240
|
-
*/
|
|
241
|
-
export type ExecutionTime = "runtime" | "compiletime";
|
|
190
|
+
/** @group Eodash */
|
|
191
|
+
type ExecutionTime = "runtime" | "compiletime";
|
|
242
192
|
|
|
243
193
|
/**
|
|
244
194
|
* Eodash instance API
|
|
195
|
+
*
|
|
245
196
|
* @group Eodash
|
|
246
197
|
*/
|
|
247
198
|
export interface Eodash<T extends ExecutionTime = "compiletime"> {
|
|
248
|
-
/**
|
|
249
|
-
* Instance ID.
|
|
250
|
-
*/
|
|
199
|
+
/** Instance ID. */
|
|
251
200
|
id?: string;
|
|
252
|
-
/**
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
stacEndpoint: StacEndpoint
|
|
256
|
-
/**
|
|
257
|
-
* Brand specifications.
|
|
258
|
-
*/
|
|
201
|
+
/** Root STAC catalog endpoint */
|
|
202
|
+
stacEndpoint: StacEndpoint;
|
|
203
|
+
/** Brand specifications. */
|
|
259
204
|
brand: {
|
|
260
205
|
/** Removes the dashboard layout */
|
|
261
|
-
noLayout?: boolean
|
|
262
|
-
/**
|
|
263
|
-
errorMessage?: string
|
|
264
|
-
/**
|
|
265
|
-
* Automatically fetches the specified font family from google fonts. if the [link](#font-link) property is specified
|
|
266
|
-
* the font family will be fetched from the provided source instead.
|
|
267
|
-
*/
|
|
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. */
|
|
268
210
|
font?: {
|
|
269
211
|
/**
|
|
270
|
-
* Link to stylesheet that defines font-face. Could be either a relative
|
|
271
|
-
|
|
272
|
-
link?: string;
|
|
273
|
-
/**
|
|
274
|
-
* Font family. Use FVD notation to include families. see https://github.com/typekit/fvd
|
|
212
|
+
* Link to stylesheet that defines font-face. Could be either a relative
|
|
213
|
+
* or absolute URL.
|
|
275
214
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
215
|
+
link: string;
|
|
216
|
+
/** Font family name. */
|
|
217
|
+
family: string;
|
|
218
|
+
};
|
|
219
|
+
/** Title that will be shown in the app header */
|
|
281
220
|
name: string;
|
|
282
|
-
/**
|
|
283
|
-
* Brand logo
|
|
284
|
-
*/
|
|
221
|
+
/** Brand logo */
|
|
285
222
|
logo?: string;
|
|
286
223
|
/**
|
|
287
|
-
* Dashboard theme as a custom [vuetifyJs
|
|
288
|
-
|
|
289
|
-
theme?: import("vuetify/lib/index.mjs").ThemeDefinition
|
|
290
|
-
/**
|
|
291
|
-
* Text applied to the footer.
|
|
224
|
+
* Dashboard theme as a custom [vuetifyJs
|
|
225
|
+
* theme](https://vuetifyjs.com/en/features/theme/).
|
|
292
226
|
*/
|
|
227
|
+
theme?: import("vuetify/lib/index.mjs").ThemeDefinition;
|
|
228
|
+
/** Text applied to the footer. */
|
|
293
229
|
footerText?: string;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
|
|
297
|
-
*/
|
|
298
|
-
template: Template<T>
|
|
230
|
+
};
|
|
231
|
+
/** Template configuration */
|
|
232
|
+
template: Template<T>;
|
|
299
233
|
}
|
|
300
234
|
/////////
|
|
301
235
|
|
|
302
236
|
/// eodash store types
|
|
303
|
-
/**
|
|
304
|
-
* @group EodashStore
|
|
305
|
-
*/
|
|
237
|
+
/** @group EodashStore */
|
|
306
238
|
export interface EodashStore {
|
|
307
|
-
/**
|
|
308
|
-
* Stateful Reactive variables
|
|
309
|
-
*/
|
|
239
|
+
/** Stateful Reactive variables */
|
|
310
240
|
states: {
|
|
311
|
-
/**
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
* Currently selected indicator
|
|
321
|
-
*/
|
|
322
|
-
indicator: import("vue").Ref<string>
|
|
323
|
-
}
|
|
324
|
-
actions: {};
|
|
325
|
-
/**
|
|
326
|
-
* Pinia store definition used to navigate the root STAC catalog.
|
|
327
|
-
*/
|
|
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. */
|
|
328
250
|
stac: {
|
|
329
|
-
useSTAcStore: typeof import("./store/stac").useSTAcStore
|
|
330
|
-
}
|
|
251
|
+
useSTAcStore: typeof import("./store/stac.js").useSTAcStore;
|
|
252
|
+
};
|
|
331
253
|
}
|
|
332
254
|
///////
|
|
333
255
|
/**
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
256
|
+
* The project's entry point should export this function as a default to
|
|
257
|
+
* instantiate eodash
|
|
258
|
+
*
|
|
337
259
|
* @param config
|
|
260
|
+
* @group Eodash
|
|
338
261
|
*/
|
|
339
|
-
export declare const createEodash: (
|
|
262
|
+
export declare const createEodash: (
|
|
263
|
+
config: ((store: EodashStore) => Eodash | Promise<Eodash>) | Eodash,
|
|
264
|
+
) => Eodash | Promise<Eodash>;
|
|
340
265
|
|
|
341
266
|
/** @group EodashStore */
|
|
342
|
-
export declare const store: EodashStore
|
|
267
|
+
export declare const store: EodashStore;
|