@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.
Files changed (78) hide show
  1. package/core/client/eodashSTAC/createLayers.js +4 -3
  2. package/dist/client/{DashboardLayout-232tRmjz.js → DashboardLayout-B-4X57-t.js} +2 -2
  3. package/dist/client/{DynamicWebComponent-Cl4LqHU6.js → DynamicWebComponent-Dj3QYwag.js} +1 -1
  4. package/dist/client/{EodashDatePicker-Pok6bZwU.js → EodashDatePicker-DGRJrJ0s.js} +2 -2
  5. package/dist/client/{EodashItemFilter-16eMMjTV.js → EodashItemFilter-DBQwJQPh.js} +1 -1
  6. package/dist/client/{EodashLayerControl-De7IlCm_.js → EodashLayerControl-C5fOCvoI.js} +1 -1
  7. package/dist/client/{EodashLayoutSwitcher-C-3-jjn5.js → EodashLayoutSwitcher-BMO9k_20.js} +2 -2
  8. package/dist/client/{EodashMap-CMvbfI6-.js → EodashMap-D2bnMLAC.js} +1 -1
  9. package/dist/client/{EodashMapBtns-BeknGDtc.js → EodashMapBtns-l9B977id.js} +4 -4
  10. package/dist/client/EodashProcess-BtIlJvF1.js +714 -0
  11. package/dist/client/{EodashStacInfo-_BfonNUG.js → EodashStacInfo-CPVvp_Hm.js} +1 -1
  12. package/dist/client/{EodashTools-PD3XPYuR.js → EodashTools-DY2dlNXW.js} +4 -4
  13. package/dist/client/{ExportState-DOrT7M15.js → ExportState-BvD5A0XG.js} +13 -13
  14. package/dist/client/{Footer-CCigxYBo.js → Footer-w95gBnSH.js} +1 -1
  15. package/dist/client/{Header-C2cdx4gb.js → Header-BpiorKy9.js} +3 -3
  16. package/dist/client/{MobileLayout-BdiFjHg7.js → MobileLayout-CmVlZe7S.js} +5 -5
  17. package/dist/client/{PopUp--_xn1Cms.js → PopUp-CREaSybs.js} +3 -3
  18. package/dist/client/{VImg-9xu2l99m.js → VImg-DF9esgdd.js} +2 -2
  19. package/dist/client/{VMain-BUs3kDTd.js → VMain-BWLMf-rn.js} +1 -1
  20. package/dist/client/{VOverlay-D89omJis.js → VOverlay-DmNfblmy.js} +3 -3
  21. package/dist/client/{VTooltip-CDu3bErh.js → VTooltip-C3PeE7iO.js} +3 -3
  22. package/dist/client/{WidgetsContainer-aFG9yFT6.js → WidgetsContainer-6FHEEXns.js} +1 -1
  23. package/dist/client/{asWebComponent-BRGyP_j5.js → asWebComponent-BnFMd0T6.js} +10 -9
  24. package/dist/client/eo-dash.css +1 -1
  25. package/dist/client/eo-dash.js +1 -1
  26. package/dist/client/{forwardRefs-CYrR6bMw.js → forwardRefs-BF3Me2RX.js} +1 -1
  27. package/dist/client/{index-BZwk0V42.js → index-CRd5-RSy.js} +1 -1
  28. package/dist/client/{transition-DG9nRSW4.js → transition-Cpn_g5jE.js} +1 -1
  29. package/dist/types/core/client/App.vue.d.ts +7 -0
  30. package/dist/types/core/client/asWebComponent.d.ts +9 -0
  31. package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
  32. package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +20 -0
  33. package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
  34. package/dist/types/core/client/components/Footer.vue.d.ts +106 -0
  35. package/dist/types/core/client/components/Header.vue.d.ts +2 -0
  36. package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
  37. package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
  38. package/dist/types/core/client/components/MobileLayout.vue.d.ts +312 -0
  39. package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
  40. package/dist/types/core/client/composables/DefineTemplate.d.ts +15 -0
  41. package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
  42. package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
  43. package/dist/types/core/client/composables/EodashProcess.d.ts +156 -0
  44. package/dist/types/core/client/composables/index.d.ts +9 -0
  45. package/dist/types/core/client/eodash.d.ts +8 -0
  46. package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +108 -0
  47. package/dist/types/core/client/eodashSTAC/createLayers.d.ts +45 -0
  48. package/dist/types/core/client/eodashSTAC/helpers.d.ts +80 -0
  49. package/dist/types/core/client/eodashSTAC/triggers.d.ts +1 -0
  50. package/dist/types/core/client/main.d.ts +2 -0
  51. package/dist/types/core/client/plugins/axios.d.ts +2 -0
  52. package/dist/types/core/client/plugins/index.d.ts +3 -0
  53. package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
  54. package/dist/types/core/client/render.d.ts +1 -0
  55. package/dist/types/core/client/store/actions.d.ts +12 -0
  56. package/dist/types/core/client/store/index.d.ts +11 -0
  57. package/dist/types/core/client/store/stac.d.ts +25 -0
  58. package/dist/types/core/client/store/states.d.ts +22 -0
  59. package/dist/types/core/client/types.d.ts +269 -0
  60. package/dist/types/core/client/utils/index.d.ts +2 -0
  61. package/dist/types/core/client/utils/keys.d.ts +8 -0
  62. package/dist/types/core/client/utils/states.d.ts +18 -0
  63. package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
  64. package/dist/types/widgets/EodashDatePicker.vue.d.ts +13 -0
  65. package/dist/types/widgets/EodashItemFilter.vue.d.ts +44 -0
  66. package/dist/types/widgets/EodashLayerControl.vue.d.ts +13 -0
  67. package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +11 -0
  68. package/dist/types/widgets/EodashMap.vue.d.ts +14 -0
  69. package/dist/types/widgets/EodashMapBtns.vue.d.ts +13 -0
  70. package/dist/types/widgets/EodashProcess.vue.d.ts +4 -0
  71. package/dist/types/widgets/EodashStacInfo.vue.d.ts +21 -0
  72. package/dist/types/widgets/EodashTools.vue.d.ts +19 -0
  73. package/dist/types/widgets/ExportState.vue.d.ts +7 -0
  74. package/dist/types/widgets/PopUp.vue.d.ts +28 -0
  75. package/dist/types/widgets/WidgetsContainer.vue.d.ts +10 -0
  76. package/package.json +5 -8
  77. package/widgets/ExportState.vue +10 -10
  78. package/dist/client/EodashProcess-BwKAa9Ee.js +0 -1476
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Polls the process status and fetches a result item when the process is successful.
3
+ *
4
+ * @param {Object} params - Parameters for polling the process status.
5
+ * @param {string} params.processUrl - The URL of the process JSON report.
6
+ * @param {import("vue").Ref<boolean>} params.isPolling - checks wether the polling should continue
7
+ * @param {number} [params.pollInterval=5000] - The interval (in milliseconds) between polling attempts.
8
+ * @param {number} [params.maxRetries=60] - The maximum number of polling attempts.
9
+ * @returns {Promise<JSON>} The fetched results JSON.
10
+ * @throws {Error} If the process does not complete successfully within the maximum retries.
11
+ */
12
+ export function pollProcessStatus({ processUrl, isPolling, pollInterval, maxRetries, }: {
13
+ processUrl: string;
14
+ isPolling: import("vue").Ref<boolean>;
15
+ pollInterval?: number | undefined;
16
+ maxRetries?: number | undefined;
17
+ }): Promise<JSON>;
18
+ /**
19
+ * Auto execute the process when the jsonform has the execute option
20
+ *
21
+ * @param {import("vue").Ref<boolean>} autoExec
22
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} jsonformEl
23
+ * @param {import("vue").Ref<Record<string,any> | null>} jsonformSchema
24
+ * @param {() => Promise<void>} startProcess
25
+ **/
26
+ export function useAutoExec(autoExec: import("vue").Ref<boolean>, jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>, jsonformSchema: import("vue").Ref<Record<string, any> | null>, startProcess: () => Promise<void>): void;
27
+ /**
28
+ * @param {Record<string,any> |null} [jsonformSchema]
29
+ **/
30
+ export function getBboxProperty(jsonformSchema?: Record<string, any> | null): string;
31
+ /**
32
+ * Extracts the keys of type "geojson" from the jsonform schema
33
+ * @param {Record<string,any> |null} [jsonformSchema]
34
+ **/
35
+ export function getGeoJsonProperties(jsonformSchema?: Record<string, any> | null): string[];
36
+ /**
37
+ * Converts jsonform geojson values to stringified geometries
38
+ * @param {Record<string,any> |null} [jsonformSchema]
39
+ * @param {Record<string,any>} jsonformValue
40
+ **/
41
+ export function extractGeometries(jsonformValue: Record<string, any>, jsonformSchema?: Record<string, any> | null): void;
42
+ /**
43
+ * Injects CSS to remove the borders of the jsonform from inside the shadowRoot
44
+ * @param {import("@eox/jsonform").EOxJSONForm | null} jsonFormEl
45
+ **/
46
+ export function injectJsonformCSS(jsonFormEl: import("@eox/jsonform").EOxJSONForm | null): void;
47
+ /**
48
+ * @param {import("stac-ts").StacLink[] | undefined} links
49
+ * @param {Record<string,any>|undefined} jsonformValue
50
+ * @param {number[]} origBbox
51
+ */
52
+ export function processImage(links: import("stac-ts").StacLink[] | undefined, jsonformValue: Record<string, any> | undefined, origBbox: number[]): {
53
+ type: string;
54
+ properties: {
55
+ id: unknown;
56
+ title: string;
57
+ };
58
+ source: {
59
+ type: string;
60
+ imageExtent: number[];
61
+ url: string;
62
+ };
63
+ }[] | undefined;
64
+ /**
65
+ * @param {import("stac-ts").StacLink[] | undefined} links
66
+ * @param {Record<string,any> | undefined} jsonformValue
67
+ * @param {string} layerId
68
+ */
69
+ export function processVector(links: import("stac-ts").StacLink[] | undefined, jsonformValue: Record<string, any> | undefined, layerId: string): Promise<Record<string, any>[] | undefined>;
70
+ /**
71
+ * @param {import("stac-ts").StacLink[] | undefined} links
72
+ * @param {Record<string,any> | undefined} jsonformValue
73
+ * @param {import("vue").Ref<boolean>} isPolling
74
+ * @param {string} layerId
75
+ */
76
+ export function processGeoTiff(links: import("stac-ts").StacLink[] | undefined, jsonformValue: Record<string, any> | undefined, layerId: string, isPolling: import("vue").Ref<boolean>): Promise<{
77
+ style?: Record<string, any> | undefined;
78
+ type: string;
79
+ source: {
80
+ type: string;
81
+ normalize: boolean;
82
+ sources: {
83
+ url: string;
84
+ }[];
85
+ };
86
+ properties: {
87
+ layerConfig?: Record<string, any> | undefined;
88
+ id: string;
89
+ title: string;
90
+ };
91
+ } | undefined>;
92
+ /**
93
+ * @param {import("stac-ts").StacLink[] | undefined} links
94
+ * @param {Record<string,any> | undefined} jsonformValue
95
+ * @param {string} specUrl
96
+ * @returns {Promise<[import("vega").Spec|null,Record<string,any>|null]>}
97
+ **/
98
+ export function getChartValues(links: import("stac-ts").StacLink[] | undefined, jsonformValue: Record<string, any> | undefined, specUrl: string): Promise<[import("vega").Spec | null, Record<string, any> | null]>;
99
+ /**
100
+ * @param {Object} params
101
+ * @param {import("vue").Ref<boolean>} params.loading
102
+ * @param {import("vue").Ref<import("stac-ts").StacCollection | null>} params.selectedStac
103
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} params.jsonformEl
104
+ * @param {import("vue").Ref<Record<string,any>|null>} params.jsonformSchema
105
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"]>} params.chartSpec
106
+ * @param {import("vue").Ref<Record<string, any> | null>} params.chartData
107
+ * @param {import("vue").Ref<boolean>} params.isPolling
108
+ */
109
+ export function handleProcesses({ loading, selectedStac, jsonformEl, jsonformSchema, chartSpec, chartData, isPolling, }: {
110
+ loading: import("vue").Ref<boolean>;
111
+ selectedStac: import("vue").Ref<import("stac-ts").StacCollection | null>;
112
+ jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>;
113
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
114
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"]>;
115
+ chartData: import("vue").Ref<Record<string, any> | null>;
116
+ isPolling: import("vue").Ref<boolean>;
117
+ }): Promise<void>;
118
+ /**
119
+ * Reset the process state
120
+ * @param {Object} params
121
+ * @param {import("vue").Ref<boolean>} params.loading
122
+ * @param {import("vue").Ref<boolean>} params.isProcessed
123
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"]>} params.chartSpec
124
+ * @param {import("vue").Ref<boolean>} params.isPolling
125
+ * @param {import("vue").Ref<Record<string,any>|null>} params.jsonformSchema
126
+ */
127
+ export function resetProcess({ loading, isProcessed, chartSpec, jsonformSchema, isPolling, }: {
128
+ loading: import("vue").Ref<boolean>;
129
+ isProcessed: import("vue").Ref<boolean>;
130
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"]>;
131
+ isPolling: import("vue").Ref<boolean>;
132
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
133
+ }): void;
134
+ /**
135
+ * Description placeholder
136
+ *
137
+ * @export
138
+ * @async
139
+ * @param {Object} params
140
+ * @param {import("vue").Ref<import("stac-ts").StacCollection>} params.selectedStac
141
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} params.jsonformEl
142
+ * @param {import("vue").Ref<Record<string,any> | null>} params.jsonformSchema
143
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"]>} params.chartSpec
144
+ * @param {import("vue").Ref<boolean>} params.isProcessed
145
+ * @param {import("vue").Ref<boolean>} params.loading
146
+ * @param {import("vue").Ref<boolean>} params.isPolling
147
+ */
148
+ export function initProcess({ selectedStac, jsonformEl, jsonformSchema, chartSpec, isProcessed, loading, isPolling, }: {
149
+ selectedStac: import("vue").Ref<import("stac-ts").StacCollection>;
150
+ jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>;
151
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
152
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"]>;
153
+ isProcessed: import("vue").Ref<boolean>;
154
+ loading: import("vue").Ref<boolean>;
155
+ isPolling: import("vue").Ref<boolean>;
156
+ }): Promise<void>;
@@ -0,0 +1,9 @@
1
+ export function useAbsoluteUrl(rel?: string, base?: string): import("vue").Ref<string>;
2
+ export function useCompareAbsoluteUrl(rel?: string, base?: string): import("vue").Ref<string>;
3
+ export function useUpdateTheme(themeName: string, themeDefinition?: import("vuetify").ThemeDefinition): import("vuetify").ThemeInstance;
4
+ export function useURLSearchParametersSync(): void;
5
+ export function makePanelTransparent(root: import("vue").Ref<HTMLElement | null>): void;
6
+ export function useGetTemplates(): string[];
7
+ export function useOnLayersUpdate(listener: import("@vueuse/core").EventBusListener<"layers:updated" | "time:updated", {
8
+ layers: Record<string, any>[] | undefined;
9
+ }>): void;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Reactive Edoash Instance Object. provided globally in the app, and used as an
3
+ * intermediate object to make user defined instances config reactive.
4
+ *
5
+ * @type {import("./types").Eodash}
6
+ */
7
+ export const eodash: import("./types").Eodash;
8
+ export default eodash;
@@ -0,0 +1,108 @@
1
+ export class EodashCollection {
2
+ /**
3
+ * Returns base layers and overlay layers of a STAC Collection
4
+ *
5
+ * @param {import("stac-ts").StacCollection} indicator */
6
+ static getIndicatorLayers(indicator: import("stac-ts").StacCollection): Promise<(Record<string, any> | {
7
+ style?: import("ol/layer/WebGLTile").Style | undefined;
8
+ type: string;
9
+ source: {
10
+ type: string;
11
+ url: string;
12
+ format: string;
13
+ };
14
+ properties: {
15
+ layerConfig?: {
16
+ style: import("ol/layer/WebGLTile").Style | undefined;
17
+ } | undefined;
18
+ id: string;
19
+ title: string;
20
+ layerDatetime: Record<string, unknown> | undefined;
21
+ };
22
+ } | {
23
+ type: string;
24
+ source: {
25
+ type: string;
26
+ normalize: boolean;
27
+ interpolate: boolean;
28
+ sources: {
29
+ url: string;
30
+ }[];
31
+ };
32
+ properties: {
33
+ id: string;
34
+ title: string;
35
+ layerConfig: Record<string, unknown> | undefined;
36
+ layerDatetime: Record<string, unknown> | undefined;
37
+ };
38
+ style: import("ol/layer/WebGLTile").Style | undefined;
39
+ })[]>;
40
+ /**
41
+ * Returns GeoDB layer from a list of EodashCollections
42
+ *
43
+ * @param {EodashCollection[]} eodashCollections
44
+ *
45
+ **/
46
+ static getGeoDBLayer(eodashCollections: EodashCollection[]): {
47
+ type: string;
48
+ properties: {
49
+ id: string;
50
+ title: string;
51
+ };
52
+ source: {
53
+ type: string;
54
+ url: string;
55
+ format: string;
56
+ };
57
+ style: {
58
+ "circle-radius": number;
59
+ "circle-fill-color": string;
60
+ "circle-stroke-color": string;
61
+ "fill-color": string;
62
+ "stroke-color": string;
63
+ };
64
+ interactions: never[];
65
+ } | null;
66
+ /** @param {string} collectionUrl */
67
+ constructor(collectionUrl: string);
68
+ /**
69
+ * @type {import("stac-ts").StacLink
70
+ * | import("stac-ts").StacItem
71
+ * | undefined}
72
+ */
73
+ selectedItem: import("stac-ts").StacLink | import("stac-ts").StacItem | undefined;
74
+ get collectionStac(): import("stac-ts").StacCollection | undefined;
75
+ /**
76
+ * @async
77
+ * @param {import('stac-ts').StacLink | Date} [linkOrDate]
78
+ * @returns
79
+ */
80
+ createLayersJson: (linkOrDate?: import("stac-ts").StacLink | Date) => Promise<Record<string, any>[]>;
81
+ /**
82
+ * @param {import("stac-ts").StacItem} item
83
+ * @param {string} itemUrl
84
+ * @param {string} title
85
+ * @param {boolean} isGeoDB
86
+ * @param {string} [itemDatetime]
87
+ * @returns {Promise<Record<string,any>[]>} layers
88
+ * */
89
+ buildJsonArray(item: import("stac-ts").StacItem, itemUrl: string, title: string, isGeoDB: boolean, itemDatetime?: string): Promise<Record<string, any>[]>;
90
+ fetchCollection(): Promise<import("stac-ts").StacCollection>;
91
+ getItems(): import("stac-ts").StacLink[] | undefined;
92
+ getDates(): Date[] | undefined;
93
+ getExtent(): Promise<import("stac-ts").Extents | undefined>;
94
+ /**
95
+ * Get closest Item Link from a certain date,
96
+ * get the latest if no date provided
97
+ * @param {Date} [date]
98
+ **/
99
+ getItem(date?: Date): import("stac-ts").StacLink | undefined;
100
+ /**
101
+ *
102
+ * @param {string} datetime
103
+ * @param {string} layer
104
+ * @param {string} map
105
+ */
106
+ updateLayerJson(datetime: string, layer: string, map: string): Promise<Record<string, any>[] | undefined>;
107
+ #private;
108
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @param {string} collectionId
3
+ * @param {string} title
4
+ * @param {Record<string,import("stac-ts").StacAsset>} assets
5
+ * @param {import("stac-ts").StacItem } item
6
+ * @param {import("ol/layer/WebGLTile").Style} [style]
7
+ * @param {Record<string, unknown>} [layerConfig]
8
+ * @param {Record<string, unknown>} [layerDatetime]
9
+ * @param {object | null} [extraProperties]
10
+ **/
11
+ export function createLayersFromAssets(collectionId: string, title: string, assets: Record<string, import("stac-ts").StacAsset>, item: import("stac-ts").StacItem, style?: import("ol/layer/WebGLTile").Style, layerConfig?: Record<string, unknown>, layerDatetime?: Record<string, unknown>, extraProperties?: object | null): Promise<({
12
+ style?: import("ol/layer/WebGLTile").Style | undefined;
13
+ type: string;
14
+ source: {
15
+ type: string;
16
+ url: string;
17
+ format: string;
18
+ };
19
+ properties: {
20
+ layerConfig?: {
21
+ style: import("ol/layer/WebGLTile").Style | undefined;
22
+ } | undefined;
23
+ id: string;
24
+ title: string;
25
+ layerDatetime: Record<string, unknown> | undefined;
26
+ };
27
+ } | {
28
+ type: string;
29
+ source: {
30
+ type: string;
31
+ normalize: boolean;
32
+ interpolate: boolean;
33
+ sources: {
34
+ url: string;
35
+ }[];
36
+ };
37
+ properties: {
38
+ id: string;
39
+ title: string;
40
+ layerConfig: Record<string, unknown> | undefined;
41
+ layerDatetime: Record<string, unknown> | undefined;
42
+ };
43
+ style: import("ol/layer/WebGLTile").Style | undefined;
44
+ })[]>;
45
+ export function createLayersFromLinks(collectionId: string, title: string, item: import("stac-ts").StacItem, layerDatetime?: Record<string, any>, extraProperties?: object | null): Promise<Record<string, any>[]>;
@@ -0,0 +1,80 @@
1
+ /** @param {import("stac-ts").StacLink[]} [links] */
2
+ export function generateFeatures(links?: import("stac-ts").StacLink[]): {
3
+ type: string;
4
+ crs: {
5
+ type: string;
6
+ properties: {
7
+ name: string;
8
+ };
9
+ };
10
+ features: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>[];
11
+ };
12
+ /**
13
+ * Sperates and extracts layerConfig (jsonform schema & legend) from a style json
14
+ *
15
+ * @param { import("ol/layer/WebGLTile").Style & { jsonform?: Record<string,any> } & { legend?: Record<string,any> } } [style] */
16
+ export function extractLayerConfig(style?: import("ol/layer/WebGLTile").Style & {
17
+ jsonform?: Record<string, any>;
18
+ } & {
19
+ legend?: Record<string, any>;
20
+ }): {
21
+ layerConfig: Record<string, unknown> | undefined;
22
+ style: (import("ol/layer/WebGLTile").Style & {
23
+ jsonform?: Record<string, any>;
24
+ } & {
25
+ legend?: Record<string, any>;
26
+ }) | undefined;
27
+ };
28
+ /**
29
+ * Function to extract collection urls from an indicator
30
+ * @param {import("stac-ts").StacCatalog
31
+ * | import("stac-ts").StacCollection
32
+ * | import("stac-ts").StacItem
33
+ * | null
34
+ * } stacObject
35
+ * @param {string} basepath
36
+ */
37
+ export function extractCollectionUrls(stacObject: import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, basepath: string): string[];
38
+ /**
39
+ * Assigns projection code to the layer ID
40
+ * @param {import("stac-ts").StacItem} item
41
+ * @param {import("stac-ts").StacLink | import("stac-ts").StacAsset} linkOrAsset
42
+ * @param {string} id - {@link createLayerID} & {@link extractRoles}
43
+ * @param {{ properties:{id:string} & Record<string, any> }& Record<string,any>} layer
44
+ * @returns
45
+ */
46
+ export function assignProjID(item: import("stac-ts").StacItem, linkOrAsset: import("stac-ts").StacLink | import("stac-ts").StacAsset, id: string, layer: {
47
+ properties: {
48
+ id: string;
49
+ } & Record<string, any>;
50
+ } & Record<string, any>): string;
51
+ export function extractRoles(properties: Record<string, any>, linkOrAsset: import("stac-ts").StacLink | import("stac-ts").StacAsset): void;
52
+ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): Promise<{
53
+ variables?: {
54
+ [x: string]: string | number;
55
+ } | undefined;
56
+ color?: import("ol/expr/expression.js").ExpressionValue | undefined;
57
+ brightness?: import("ol/expr/expression.js").ExpressionValue | undefined;
58
+ contrast?: import("ol/expr/expression.js").ExpressionValue | undefined;
59
+ exposure?: import("ol/expr/expression.js").ExpressionValue | undefined;
60
+ saturation?: import("ol/expr/expression.js").ExpressionValue | undefined;
61
+ gamma?: import("ol/expr/expression.js").ExpressionValue | undefined;
62
+ jsonform?: Record<string, any>;
63
+ } | undefined>;
64
+ export function getProjectionCode(projection?: string | number | {
65
+ name: string;
66
+ def: string;
67
+ }): string;
68
+ export function extractLayerDatetime(links?: import("stac-ts").StacLink[], currentStep?: string | null): {
69
+ controlValues: string[];
70
+ currentStep: string;
71
+ slider: boolean;
72
+ play: boolean;
73
+ displayFormat: string;
74
+ } | undefined;
75
+ export function findLayer(layers: Record<string, any>[], layer: string): Record<string, any> | undefined;
76
+ export function replaceLayer(currentLayers: Record<string, any>[], oldLayer: string, newLayers: Record<string, any>[]): Record<string, any>[] | undefined;
77
+ export function getColFromLayer(indicators: import("../eodashSTAC/EodashCollection.js").EodashCollection[], layer: import("ol/layer").Layer): Promise<import("../eodashSTAC/EodashCollection.js").EodashCollection | undefined>;
78
+ export function createLayerID(collectionId: string, itemId: string, link: import("stac-ts").StacLink, projectionCode: string): string;
79
+ export function createAssetID(collectionId: string, itemId: string, index: number): string;
80
+ export function removeUnneededProperties(layers: Record<string, any>[]): Record<string, any>[];
@@ -0,0 +1 @@
1
+ export function setMapProjFromCol(STAcCollection?: import("stac-ts").StacCollection): Promise<void>;
@@ -0,0 +1,2 @@
1
+ export { createEodash } from "./composables/DefineEodash";
2
+ export { default as store } from "./store";
@@ -0,0 +1,2 @@
1
+ export const axios: import("axios-cache-interceptor").AxiosCacheInstance;
2
+ export default axios;
@@ -0,0 +1,3 @@
1
+ /** @param {import("vue").App} app */
2
+ export function registerPlugins(app: import("vue").App): void;
3
+ export const pinia: import("pinia").Pinia;
@@ -0,0 +1,82 @@
1
+ export default vuetify;
2
+ declare const vuetify: {
3
+ install: (app: import("vue").App) => void;
4
+ defaults: import("vue").Ref<import("vuetify").DefaultsInstance>;
5
+ display: import("vuetify").DisplayInstance;
6
+ theme: import("vuetify").ThemeInstance & {
7
+ install: (app: import("vue").App) => void;
8
+ };
9
+ icons: {
10
+ defaultSet: string;
11
+ aliases: Partial<import("vuetify").IconAliases>;
12
+ sets: Record<string, import("vuetify").IconSet>;
13
+ };
14
+ locale: {
15
+ isRtl: import("vue").Ref<boolean>;
16
+ rtl: import("vue").Ref<Record<string, boolean>>;
17
+ rtlClasses: import("vue").Ref<string>;
18
+ name: string;
19
+ messages: import("vue").Ref<import("vuetify").LocaleMessages>;
20
+ current: import("vue").Ref<string>;
21
+ fallback: import("vue").Ref<string>;
22
+ t: (key: string, ...params: unknown[]) => string;
23
+ n: (value: number) => string;
24
+ provide: (props: import("vuetify").LocaleOptions) => import("vuetify").LocaleInstance;
25
+ };
26
+ date: {
27
+ options: {
28
+ adapter: (new (options: {
29
+ locale: any;
30
+ formats?: any;
31
+ }) => import("vuetify").DateInstance) | import("vuetify").DateInstance;
32
+ formats?: Record<string, any>;
33
+ locale: Record<string, any>;
34
+ };
35
+ instance: {
36
+ locale?: any;
37
+ date: (value?: any) => unknown;
38
+ format: (date: unknown, formatString: string) => string;
39
+ toJsDate: (value: unknown) => Date;
40
+ parseISO: (date: string) => unknown;
41
+ toISO: (date: unknown) => string;
42
+ startOfDay: (date: unknown) => unknown;
43
+ endOfDay: (date: unknown) => unknown;
44
+ startOfWeek: (date: unknown, firstDayOfWeek?: number | string) => unknown;
45
+ endOfWeek: (date: unknown) => unknown;
46
+ startOfMonth: (date: unknown) => unknown;
47
+ endOfMonth: (date: unknown) => unknown;
48
+ startOfYear: (date: unknown) => unknown;
49
+ endOfYear: (date: unknown) => unknown;
50
+ isAfter: (date: unknown, comparing: unknown) => boolean;
51
+ isAfterDay: (value: unknown, comparing: unknown) => boolean;
52
+ isSameDay: (date: unknown, comparing: unknown) => boolean;
53
+ isSameMonth: (date: unknown, comparing: unknown) => boolean;
54
+ isSameYear: (value: unknown, comparing: unknown) => boolean;
55
+ isBefore: (date: unknown, comparing: unknown) => boolean;
56
+ isEqual: (date: unknown, comparing: unknown) => boolean;
57
+ isValid: (date: any) => boolean;
58
+ isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
59
+ addMinutes: (date: unknown, amount: number) => unknown;
60
+ addHours: (date: unknown, amount: number) => unknown;
61
+ addDays: (date: unknown, amount: number) => unknown;
62
+ addWeeks: (date: unknown, amount: number) => unknown;
63
+ addMonths: (date: unknown, amount: number) => unknown;
64
+ getYear: (date: unknown) => number;
65
+ setYear: (date: unknown, year: number) => unknown;
66
+ getDiff: (date: unknown, comparing: unknown, unit?: string) => number;
67
+ getWeekArray: (date: unknown, firstDayOfWeek?: number | string) => unknown[][];
68
+ getWeekdays: (firstDayOfWeek?: number | string) => string[];
69
+ getMonth: (date: unknown) => number;
70
+ setMonth: (date: unknown, month: number) => unknown;
71
+ getDate: (date: unknown) => number;
72
+ setDate: (date: unknown, day: number) => unknown;
73
+ getNextMonth: (date: unknown) => unknown;
74
+ getPreviousMonth: (date: unknown) => unknown;
75
+ getHours: (date: unknown) => number;
76
+ setHours: (date: unknown, hours: number) => unknown;
77
+ getMinutes: (date: unknown) => number;
78
+ setMinutes: (date: unknown, minutes: number) => unknown;
79
+ };
80
+ };
81
+ goTo: import("vuetify").GoToInstance;
82
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export function getLayers(): Record<string, any>[];
2
+ export function getCompareLayers(): Record<string, any>[];
3
+ export function registerProjection(projection?: string | number | {
4
+ name: string;
5
+ def: string;
6
+ extent?: number[];
7
+ }): Promise<void>;
8
+ export function changeMapProjection(projection?: string | number | {
9
+ name: string;
10
+ def: string;
11
+ }): Promise<void>;
12
+ export function setActiveTemplate(template: string): void;
@@ -0,0 +1,11 @@
1
+ declare namespace _default {
2
+ export namespace stac {
3
+ export { useSTAcStore };
4
+ }
5
+ export { actions };
6
+ export { states };
7
+ }
8
+ export default _default;
9
+ import { useSTAcStore } from "./stac";
10
+ import * as actions from "./actions";
11
+ import * as states from "./states";
@@ -0,0 +1,25 @@
1
+ export const useSTAcStore: import("pinia").StoreDefinition<"stac", Pick<{
2
+ stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
3
+ loadSTAC: (url?: import("../types").StacEndpoint) => Promise<void>;
4
+ loadSelectedSTAC: (relativePath?: string) => Promise<void>;
5
+ loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
6
+ resetSelectedCompareSTAC: () => Promise<void>;
7
+ selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
8
+ selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
9
+ }, "stac" | "selectedStac" | "selectedCompareStac">, Pick<{
10
+ stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
11
+ loadSTAC: (url?: import("../types").StacEndpoint) => Promise<void>;
12
+ loadSelectedSTAC: (relativePath?: string) => Promise<void>;
13
+ loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
14
+ resetSelectedCompareSTAC: () => Promise<void>;
15
+ selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
16
+ selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
17
+ }, never>, Pick<{
18
+ stac: import("vue").Ref<import("stac-ts").StacLink[] | null, import("stac-ts").StacLink[] | null>;
19
+ loadSTAC: (url?: import("../types").StacEndpoint) => Promise<void>;
20
+ loadSelectedSTAC: (relativePath?: string) => Promise<void>;
21
+ loadSelectedCompareSTAC: (relativePath?: string) => Promise<void>;
22
+ resetSelectedCompareSTAC: () => Promise<void>;
23
+ selectedStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
24
+ selectedCompareStac: import("vue").Ref<import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null>;
25
+ }, "loadSTAC" | "loadSelectedSTAC" | "loadSelectedCompareSTAC" | "resetSelectedCompareSTAC">>;
@@ -0,0 +1,22 @@
1
+ /** Currently selected STAC endpoint */
2
+ export const currentUrl: import("vue").Ref<string, string>;
3
+ /** Currently selected compare STAC endpoint */
4
+ export const currentCompareUrl: import("vue").Ref<string, string>;
5
+ /** Currently selected datetime */
6
+ export const datetime: import("vue").Ref<string, string>;
7
+ /** Currently selected indicator */
8
+ export const indicator: import("vue").Ref<string, string>;
9
+ /**
10
+ * Current map position
11
+ *
12
+ * @type {import("vue").Ref<(number | undefined)[]>}
13
+ */
14
+ export const mapPosition: import("vue").Ref<(number | undefined)[]>;
15
+ export const registeredProjections: string[];
16
+ /** available projection to be rendered by `EodashMap` */
17
+ export const availableMapProjection: import("vue").Ref<string, string>;
18
+ /** @type {import("vue").Ref<HTMLElement & Record<string,any> | null>} */
19
+ export const mapEl: import("vue").Ref<(HTMLElement & Record<string, any>) | null>;
20
+ /** @type {import("vue").Ref<HTMLElement & Record<string,any> | null>} */
21
+ export const mapCompareEl: import("vue").Ref<(HTMLElement & Record<string, any>) | null>;
22
+ export const activeTemplate: import("vue").Ref<string, string>;