@eodash/eodash 5.0.0-alpha.2 → 5.0.0-alpha.2.10

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.
Files changed (137) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -3
  3. package/core/client/App.vue +26 -0
  4. package/core/client/SuspensedDashboard.ce.vue +105 -0
  5. package/core/client/asWebComponent.d.ts +23 -0
  6. package/core/client/asWebComponent.js +12 -0
  7. package/core/client/components/DashboardLayout.vue +77 -0
  8. package/core/client/components/DynamicWebComponent.vue +68 -0
  9. package/core/client/components/ErrorAlert.vue +36 -0
  10. package/core/{components → client/components}/Footer.vue +34 -15
  11. package/core/client/components/Header.vue +19 -0
  12. package/core/client/components/IframeWrapper.vue +11 -0
  13. package/core/client/components/Loading.vue +37 -0
  14. package/core/client/components/MobileLayout.vue +109 -0
  15. package/core/client/composables/DefineEodash.js +67 -0
  16. package/core/client/composables/DefineWidgets.js +161 -0
  17. package/core/client/composables/index.js +136 -0
  18. package/core/client/eodash.js +136 -0
  19. package/core/client/main.js +2 -0
  20. package/core/client/plugins/index.js +20 -0
  21. package/core/client/plugins/vuetify.js +35 -0
  22. package/core/client/render.js +12 -0
  23. package/core/client/store/Actions.js +62 -0
  24. package/core/client/store/States.js +21 -0
  25. package/core/client/store/index.js +20 -0
  26. package/core/client/store/stac.js +81 -0
  27. package/core/client/types.d.ts +287 -0
  28. package/core/client/utils/eodashSTAC.js +337 -0
  29. package/core/client/utils/helpers.js +172 -0
  30. package/core/client/utils/index.js +51 -0
  31. package/core/{utils → client/utils}/keys.js +2 -2
  32. package/core/client/views/Dashboard.vue +116 -0
  33. package/core/client/vite-env.d.ts +39 -0
  34. package/dist/client/DashboardLayout-C_3q8Y10.js +156 -0
  35. package/dist/{DynamicWebComponent-BDOQsEcj.js → client/DynamicWebComponent-IiTTLBt-.js} +11 -11
  36. package/dist/client/EodashDatePicker-DgC1lccp.js +252 -0
  37. package/dist/{eox-itemfilter-DcQkRD2l.js → client/EodashItemFilter-DoWZGe6r.js} +1515 -1381
  38. package/dist/client/EodashMap-C96D3LLv.js +114352 -0
  39. package/dist/client/EodashMapBtns-DDtzV94u.js +50 -0
  40. package/dist/client/ExportState-CduS2mFs.js +558 -0
  41. package/dist/client/Footer-DHQcutCv.js +115 -0
  42. package/dist/client/Header-DC0y7rLK.js +350 -0
  43. package/dist/{IframeWrapper-DYHQQRUh.js → client/IframeWrapper-BK-10FbS.js} +4 -4
  44. package/dist/client/MobileLayout-BpLoMY4i.js +945 -0
  45. package/dist/client/PopUp-CNMCWL0z.js +300 -0
  46. package/dist/client/VImg-DT7eb8V-.js +291 -0
  47. package/dist/client/VMain-OenWyy46.js +39 -0
  48. package/dist/client/VOverlay-x3UXpKhr.js +972 -0
  49. package/dist/{WidgetsContainer-D_PLP1qf.js → client/WidgetsContainer-qMUwtN0W.js} +26 -19
  50. package/dist/client/asWebComponent-DQrnLsI2.js +20404 -0
  51. package/dist/{basedecoder-Qm25PwVp-CHo5Pomv.js → client/basedecoder-DHcBySSe-BmCFNFnw.js} +5 -6
  52. package/dist/{decoder-kAoyGIq9-HAkjSTCt.js → client/decoder-Cth6J7EK-CtUoHA6r.js} +1 -1
  53. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +10 -0
  54. package/dist/client/eo-dash.js +6 -0
  55. package/dist/client/eox-jsonform-DCErgjhw.js +17515 -0
  56. package/dist/client/eox-layercontrol-D0Ht7Mag.js +21298 -0
  57. package/dist/client/eox-stacinfo-l7ALSV90.js +13969 -0
  58. package/dist/client/forwardRefs-CpNjL95t.js +185 -0
  59. package/dist/client/helpers-KCSgmfim.js +1417 -0
  60. package/dist/{index-8ch8xKfa.js → client/index-DopVrUzM.js} +21 -20
  61. package/dist/{jpeg-DNfUpLwy-Fjan-04T.js → client/jpeg-BAgeD1d3-oeHbFPUL.js} +5 -6
  62. package/dist/{lerc-C9VL9kri-DyVxBvsf.js → client/lerc-BgbQqdFI-D986ErVw.js} +37 -39
  63. package/dist/{lzw-BOMhmEDy-Dboc93VO.js → client/lzw-LAGDNbSC-DkP96qO9.js} +1 -1
  64. package/dist/{packbits-DaUD6MLm-Bu1PoTGa.js → client/packbits-BlDR4Kj5-C66n1-zr.js} +1 -1
  65. package/dist/{pako.esm-C3kYPGGQ-BMki8cQY.js → client/pako.esm-CB1uQYY0-DB0PYm1P.js} +6 -12
  66. package/dist/{raw-CcGKjn8q-DFOt-i8n.js → client/raw-CMGvRjfu-BRi6E4i1.js} +1 -1
  67. package/dist/{ssrBoot-Cm5pWM14.js → client/ssrBoot-DkjdOWvj.js} +1 -1
  68. package/dist/client/style.css +5 -0
  69. package/dist/client/transition-BtJHh7JK.js +34 -0
  70. package/dist/{webfontloader-CyOFAuFB.js → client/webfontloader-qotgY98I.js} +56 -92
  71. package/dist/{webimage-D2c098k3-DLj1LQxB.js → client/webimage-BM_pbLN3-L2cGWK5l.js} +1 -1
  72. package/dist/node/cli.js +20 -0
  73. package/dist/node/main.js +2 -0
  74. package/dist/node/types.d.ts +47 -0
  75. package/package.json +54 -51
  76. package/widgets/EodashDatePicker.vue +145 -40
  77. package/widgets/EodashItemFilter.vue +73 -38
  78. package/widgets/EodashMap.vue +210 -37
  79. package/widgets/EodashMapBtns.vue +50 -0
  80. package/widgets/ExportState.vue +112 -0
  81. package/widgets/PopUp.vue +40 -0
  82. package/widgets/WidgetsContainer.vue +47 -27
  83. package/bin/app.js +0 -22
  84. package/bin/cli.js +0 -62
  85. package/bin/main.js +0 -9
  86. package/bin/serverConfig.js +0 -165
  87. package/bin/types.d.ts +0 -52
  88. package/bin/utils.js +0 -103
  89. package/core/App.vue +0 -19
  90. package/core/SuspensedDashboard.ce.vue +0 -59
  91. package/core/asWebComponent.d.ts +0 -18
  92. package/core/asWebComponent.js +0 -12
  93. package/core/components/DashboardLayout.vue +0 -54
  94. package/core/components/DynamicWebComponent.vue +0 -68
  95. package/core/components/Header.vue +0 -14
  96. package/core/components/IframeWrapper.vue +0 -11
  97. package/core/components/Loading.vue +0 -27
  98. package/core/components/MobileLayout.vue +0 -49
  99. package/core/composables/DefineEodash.js +0 -57
  100. package/core/composables/DefineWidgets.js +0 -129
  101. package/core/composables/index.js +0 -219
  102. package/core/eodash.js +0 -100
  103. package/core/main.js +0 -2
  104. package/core/plugins/index.js +0 -18
  105. package/core/plugins/vuetify.js +0 -30
  106. package/core/render.js +0 -13
  107. package/core/store/Actions.js +0 -0
  108. package/core/store/States.js +0 -21
  109. package/core/store/index.js +0 -17
  110. package/core/store/stac.js +0 -63
  111. package/core/types.d.ts +0 -355
  112. package/core/utils/eodashSTAC.js +0 -164
  113. package/core/utils/helpers.js +0 -40
  114. package/core/utils/index.js +0 -28
  115. package/core/views/Dashboard.vue +0 -59
  116. package/core/vite-env.d.ts +0 -31
  117. package/dist/DashboardLayout-YLfAa8wH.js +0 -168
  118. package/dist/EodashDatePicker-DlehqSgz.js +0 -1645
  119. package/dist/EodashItemFilter-TSp7XRGy.js +0 -51
  120. package/dist/EodashMap-DInb9cfS.js +0 -53405
  121. package/dist/Footer-CIzHgJbK.js +0 -118
  122. package/dist/Header-C5PSB8Uc.js +0 -609
  123. package/dist/MobileLayout-DZmqrpub.js +0 -523
  124. package/dist/VBtn-CFPhsIX8.js +0 -1106
  125. package/dist/VMain-deI9jyIf.js +0 -35
  126. package/dist/asWebComponent-BKe6Spni.js +0 -11323
  127. package/dist/color-D72nEBIR.js +0 -115
  128. package/dist/deflate-Be2Arps5-hDqMz3RA.js +0 -10
  129. package/dist/dimensions-BZkmIizV.js +0 -53
  130. package/dist/eo-dash.js +0 -6
  131. package/dist/eox-map-BJ9SIixs.js +0 -36205
  132. package/dist/eox-stacinfo-B-YrT7Ug.js +0 -13698
  133. package/dist/forwardRefs-Bxeu9Obx.js +0 -142
  134. package/dist/index-DIt8GjSR.js +0 -65
  135. package/dist/style.css +0 -5
  136. /package/dist/{.gitkeep → client/.gitkeep} +0 -0
  137. /package/dist/{_commonjsHelpers-DaMA6jEr.js → client/_commonjsHelpers-DaMA6jEr.js} +0 -0
@@ -0,0 +1,62 @@
1
+ import { registeredProjections } from "@/store/States";
2
+
3
+ /**
4
+ * Returns the current layers of the `eox-map`
5
+ * @param {string} [el="eox-map"] - `eox-map` element selector
6
+ * @returns {object[]}
7
+ */
8
+ export const getLayers = (el = "eox-map") =>
9
+ customElements.get("eo-dash")
10
+ ? document
11
+ .querySelector("eo-dash")
12
+ ?.shadowRoot?.querySelector(el)
13
+ //@ts-expect-error `layers` doesn't exist on type element
14
+ ?.layers.toReversed()
15
+ : //@ts-expect-error `layers` doesn't exist on type element
16
+ document.querySelector(el)?.layers.toReversed();
17
+
18
+ /**
19
+ * Register EPSG projection in `eox-map`
20
+ * @param {string|number} [code]*/
21
+ export const registerProjection = async (code) => {
22
+ code = typeof code === "number" ? `EPSG:${code}` : code;
23
+ if (!code || registeredProjections.includes(code)) {
24
+ return;
25
+ }
26
+ const eoxMap =
27
+ /** @type {HTMLElement & Record<string,any> | null | undefined} */ (
28
+ customElements.get("eo-dash")
29
+ ? document
30
+ .querySelector("eo-dash")
31
+ ?.shadowRoot?.querySelector("eox-map")
32
+ : document.querySelector("eox-map")
33
+ );
34
+
35
+ registeredProjections.push(code);
36
+ await eoxMap?.registerProjectionFromCode(code);
37
+ };
38
+ /**
39
+ * Change `eox-map` projection from an `EPSG` code
40
+ * @param {string|number} [code]*/
41
+ export const changeMapProjection = async (code) => {
42
+ code = typeof code === "number" ? `EPSG:${code}` : code;
43
+ const eoxMap =
44
+ /** @type {HTMLElement & Record<string,any> | null | undefined} */ (
45
+ customElements.get("eo-dash")
46
+ ? document
47
+ .querySelector("eo-dash")
48
+ ?.shadowRoot?.querySelector("eox-map")
49
+ : document.querySelector("eox-map")
50
+ );
51
+ if (!code) {
52
+ eoxMap?.setAttribute("projection", "EPSG:3857");
53
+ return;
54
+ }
55
+
56
+ if (!registeredProjections.includes(code)) {
57
+ await registerProjection(code);
58
+ }
59
+
60
+ code = eoxMap?.getAttribute("projection") === code ? "EPSG:3857" : code;
61
+ eoxMap?.setAttribute("projection", code);
62
+ };
@@ -0,0 +1,21 @@
1
+ import { ref } from "vue";
2
+
3
+ /** Currently selected STAC endpoint */
4
+ export const currentUrl = ref("");
5
+ /** Currently selected datetime */
6
+ export const datetime = ref(new Date().toISOString());
7
+
8
+ /** Currently selected indicator */
9
+ export const indicator = ref("");
10
+
11
+ /**
12
+ * Current map position
13
+ *
14
+ * @type {import("vue").Ref<(number | undefined)[]>}
15
+ */
16
+ export const mapPosition = ref([]);
17
+
18
+ export const registeredProjections = ["EPSG:4326", "EPSG:3857"];
19
+
20
+ /** available projection to be rendered by `EodashMap` */
21
+ export const availableMapProjection = ref("");
@@ -0,0 +1,20 @@
1
+ //export all actions, states, and pinia stores
2
+
3
+ const storesImport = import.meta.glob("../store/**.js", { eager: true });
4
+
5
+ const store = /** @type {import("@/types").EodashStore} */ (
6
+ (() => {
7
+ const stores = {};
8
+ for (const [filePath, importedstore] of Object.entries(storesImport)) {
9
+ const storeType =
10
+ filePath.split("/").at(-1)?.slice(0, -3).toLowerCase() ?? "";
11
+ if (!["keys"].includes(storeType)) {
12
+ //@ts-expect-error `importedstore` cant be typed individually
13
+ stores[storeType] = importedstore;
14
+ }
15
+ }
16
+ return stores;
17
+ })()
18
+ );
19
+
20
+ export default store;
@@ -0,0 +1,81 @@
1
+ import { defineStore } from "pinia";
2
+ import { inject, ref } from "vue";
3
+ import axios from "axios";
4
+ import { useAbsoluteUrl } from "@/composables/index";
5
+ import { eodashKey } from "@/utils/keys";
6
+ import { indicator } from "@/store/States";
7
+
8
+ export const useSTAcStore = defineStore("stac", () => {
9
+ /**
10
+ * Links of the root STAC catalog
11
+ *
12
+ * @type {import("vue").Ref<import("stac-ts").StacLink[] | null>}
13
+ */
14
+ const stac = ref(null);
15
+
16
+ /**
17
+ * Selected STAC object.
18
+ *
19
+ * @type {import("vue").Ref<
20
+ * | import("stac-ts").StacCatalog
21
+ * | import("stac-ts").StacCollection
22
+ * | import("stac-ts").StacItem
23
+ * | null
24
+ * >}
25
+ */
26
+ const selectedStac = ref(null);
27
+
28
+ const eodash = /** @type {import("@/types").Eodash} */ (inject(eodashKey));
29
+
30
+ /**
31
+ * Fetches root stac catalog and assign it to `stac`
32
+ *
33
+ * @async
34
+ * @param {import("@/types").StacEndpoint} [url=eodash.stacEndpoint] Default
35
+ * is `eodash.stacEndpoint`
36
+ * @returns {Promise<void>}
37
+ * @see {@link stac}
38
+ */
39
+ async function loadSTAC(url = eodash.stacEndpoint) {
40
+ await axios
41
+ .get(url)
42
+ .then((resp) => {
43
+ const links = /** @type {import("stac-ts").StacCatalog} */ (
44
+ resp.data
45
+ ).links.map((link) => {
46
+ if (!link.title) {
47
+ link.title = `${link.rel} ${link.href}`;
48
+ }
49
+ return link;
50
+ });
51
+ stac.value = links;
52
+ })
53
+ .catch((err) => {
54
+ throw new Error("error loading assigned STAC endpoint", err);
55
+ });
56
+ }
57
+
58
+ /**
59
+ * Fetches selected stac object and assign it to `selectedStac`
60
+ *
61
+ * @async
62
+ * @param {string} relativePath - Stac link href
63
+ * @returns {Promise<void>}
64
+ * @see {@link selectedStac}
65
+ */
66
+ async function loadSelectedSTAC(relativePath = "") {
67
+ const absoluteUrl = useAbsoluteUrl(relativePath);
68
+
69
+ await axios
70
+ .get(absoluteUrl.value)
71
+ .then((resp) => {
72
+ selectedStac.value = resp.data;
73
+ indicator.value = selectedStac.value?.id ?? "";
74
+ })
75
+ .catch((err) => {
76
+ throw new Error("error loading the selected STAC", err);
77
+ });
78
+ }
79
+
80
+ return { stac, loadSTAC, loadSelectedSTAC, selectedStac };
81
+ });
@@ -0,0 +1,287 @@
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?: (
34
+ el: Element | null,
35
+ store: ReturnType<typeof import("./store/stac").useSTAcStore>,
36
+ ) => Promise<void> | void;
37
+ /**
38
+ * Triggered when the web component is unmounted from the DOM.
39
+ *
40
+ * @param el - Web component
41
+ * @param store - Return value of the core STAC pinia store in
42
+ * `/core/client/store/stac.ts`
43
+ */
44
+ onUnmounted?: (
45
+ el: Element | null,
46
+ store: ReturnType<typeof import("./store/stac").useSTAcStore>,
47
+ ) => Promise<void> | void;
48
+ }
49
+
50
+ /** @ignore */
51
+ export interface WidgetsContainerProps {
52
+ widgets: Omit<Widget, "layout">[];
53
+ }
54
+
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
+ }
67
+ /**
68
+ * Widget type: `web-component` API
69
+ *
70
+ * @group Eodash
71
+ */
72
+ export interface WebComponentWidget<T extends ExecutionTime = "compiletime"> {
73
+ id: number | string | symbol;
74
+ title: string;
75
+ /** Widget position and size. */
76
+ layout: Layout;
77
+ widget: WebComponentProps<T>;
78
+ type: "web-component";
79
+ }
80
+
81
+ /**
82
+ * Widget type: `internal` API. Internal widgets are Vue components provided by
83
+ * eodash.
84
+ *
85
+ * @group Eodash
86
+ */
87
+ export interface InternalComponentWidget {
88
+ id: number | string | symbol;
89
+ title: string;
90
+ /** Widget position and size. */
91
+ layout: Layout;
92
+ widget: {
93
+ /**
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
97
+ */
98
+ name: string;
99
+ /** Specified Vue component props */
100
+ properties?: Record<string, unknown>;
101
+ };
102
+ type: "internal";
103
+ }
104
+
105
+ /** Widget type: `iframe` API Renders an external HTML file as a widget. */
106
+ /** @group Eodash */
107
+ export interface IFrameWidget {
108
+ id: number | string | symbol;
109
+ title: string;
110
+ /** Widget position and size. */
111
+ layout: Layout;
112
+ widget: {
113
+ /** The URL of the page to embed */
114
+ src: string;
115
+ };
116
+ type: "iframe";
117
+ }
118
+ /** @group Eodash */
119
+ export interface FunctionalWidget<T extends ExecutionTime = "compiletime"> {
120
+ /**
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
+ *
125
+ * @param selectedSTAC - Currently selected STAC object
126
+ */
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;
134
+ }
135
+ /**
136
+ * There are 3 types of Widgets:
137
+ *
138
+ * @group Eodash
139
+ */
140
+ export type StaticWidget<T extends ExecutionTime = "compiletime"> =
141
+ | WebComponentWidget<T>
142
+ | InternalComponentWidget
143
+ | IFrameWidget;
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
+ *
154
+ * @group Eodash
155
+ */
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">;
166
+ /**
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
+ * @group Eodash
172
+ */
173
+ export interface Template<T extends ExecutionTime = "compiletime"> {
174
+ /** Gap between widgets */
175
+ gap?: number;
176
+ /** Loading widget */
177
+ loading?: BackgroundWidget<T>;
178
+ /**
179
+ * Widget rendered as the dashboard background. Has the same specifications of
180
+ * {@link Widget} without the `title` and `layout` properties
181
+ */
182
+ background?: BackgroundWidget<T>;
183
+ /** Array of widgets that will be rendered as dashboard panels. */
184
+ widgets: Widget<T>[];
185
+ }
186
+
187
+ /** @ignore */
188
+ export type StacEndpoint = `${"https://" | "http://"}${string}/catalog.json`;
189
+
190
+ /** @group Eodash */
191
+ type ExecutionTime = "runtime" | "compiletime";
192
+
193
+ /**
194
+ * Eodash instance API
195
+ *
196
+ * @group Eodash
197
+ */
198
+ export interface Eodash<T extends ExecutionTime = "compiletime"> {
199
+ /** Instance ID. */
200
+ id?: string;
201
+ /** Root STAC catalog endpoint */
202
+ stacEndpoint: StacEndpoint;
203
+ /** Brand specifications. */
204
+ brand: {
205
+ /** Removes the dashboard layout */
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. */
210
+ font?: {
211
+ /**
212
+ * Link to stylesheet that defines font-face. Could be either a relative
213
+ * or absolute URL.
214
+ */
215
+ link: string;
216
+ /** Font family name. */
217
+ family: string;
218
+ };
219
+ /** Title that will be shown in the app header */
220
+ name: string;
221
+ /** Brand logo */
222
+ logo?: string;
223
+ /**
224
+ * Dashboard theme as a custom [vuetifyJs
225
+ * theme](https://vuetifyjs.com/en/features/theme/).
226
+ */
227
+ theme?: import("vuetify/lib/index.mjs").ThemeDefinition;
228
+ /** Text applied to the footer. */
229
+ footerText?: string;
230
+ };
231
+ /** Template configuration */
232
+ template: Template<T>;
233
+ }
234
+ /////////
235
+
236
+ /// eodash store types
237
+ /** @group EodashStore */
238
+ export interface EodashStore {
239
+ /** Stateful Reactive variables */
240
+ states: {
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
+ registeredProjections: `EPSG${number}`[];
249
+
250
+ /** available projection to be rendered by the Map */
251
+ availableMapProjection: import("vue").Ref<string>;
252
+ };
253
+ actions: {
254
+ /**
255
+ * returns the layers of the `eox-map`
256
+ * @param [el] - `eox-map` element selector
257
+ */
258
+ getLayers: (el?: string) => object[];
259
+
260
+ /**
261
+ * Register EPSG projection in `eox-map` and adds it to {@link EodashStore.states.availableMapProjection `availableMapProjection`` }
262
+ * */
263
+ registerProjection: (code?: number | string) => Promise<void>;
264
+
265
+ /** Change `eox-map` projection from an `EPSG` code */
266
+ changeMapProjection: (code?: number | string) => Promise<void>;
267
+ };
268
+
269
+ /** Pinia store definition used to navigate the root STAC catalog. */
270
+ stac: {
271
+ useSTAcStore: typeof import("./store/stac.js").useSTAcStore;
272
+ };
273
+ }
274
+ ///////
275
+ /**
276
+ * The project's entry point should export this function as a default to
277
+ * instantiate eodash
278
+ *
279
+ * @param config
280
+ * @group Eodash
281
+ */
282
+ export declare const createEodash: (
283
+ config: ((store: EodashStore) => Eodash | Promise<Eodash>) | Eodash,
284
+ ) => Eodash | Promise<Eodash>;
285
+
286
+ /** @group EodashStore */
287
+ export declare const store: EodashStore;