@eodash/eodash 5.0.0-rc.2.5 → 5.0.0-rc.3

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 (77) hide show
  1. package/core/client/composables/DefineWidgets.js +8 -1
  2. package/core/client/eodash.js +9 -9
  3. package/core/client/eodashSTAC/createLayers.js +4 -18
  4. package/core/client/eodashSTAC/helpers.js +23 -0
  5. package/core/client/store/stac.js +3 -1
  6. package/core/client/types.ts +125 -19
  7. package/core/client/utils/states.js +9 -0
  8. package/dist/client/{DashboardLayout-BX3Sm_Vx.js → DashboardLayout-t_PavJPO.js} +2 -2
  9. package/dist/client/{DynamicWebComponent-BqoHM1np.js → DynamicWebComponent-y07rVJch.js} +1 -1
  10. package/dist/client/{EodashDatePicker-BoWV2vc8.js → EodashDatePicker-CcOfyzGD.js} +3 -83
  11. package/dist/client/{EodashItemFilter-127fZLyK.js → EodashItemFilter-B9HCvIMi.js} +1 -1
  12. package/dist/client/{EodashLayerControl-B-pZaizw.js → EodashLayerControl-KStn7Nb_.js} +8 -2
  13. package/dist/client/{EodashLayoutSwitcher-DwexHfOD.js → EodashLayoutSwitcher-DqeFO3RN.js} +2 -2
  14. package/dist/client/{EodashMapBtns-Jfn3bpWD.js → EodashMapBtns-5BF27qJB.js} +36 -12
  15. package/dist/client/{EodashStacInfo-STq_bW7S.js → EodashStacInfo-C_hDy6Pd.js} +7 -1
  16. package/dist/client/{EodashTools-uxSuJhVJ.js → EodashTools-BXflvRf8.js} +5 -4
  17. package/dist/client/{ExportState-Ckcb6u01.js → ExportState-C0QRemK1.js} +27 -12
  18. package/dist/client/{Footer-C8JP-coH.js → Footer-7VGyGUAs.js} +1 -1
  19. package/dist/client/{Header-Dxx7q9FW.js → Header-BQJnXHYq.js} +3 -3
  20. package/dist/client/{MobileLayout-BE19Peep.js → MobileLayout-b8nQ-Vyl.js} +5 -5
  21. package/dist/client/{PopUp-D3IyjsN4.js → PopUp-DgNrh9Df.js} +3 -3
  22. package/dist/client/ProcessList-C62SOVO6.js +484 -0
  23. package/dist/client/{VImg-BmCNSu3X.js → VImg-D4eT3IQ1.js} +2 -2
  24. package/dist/client/{VMain-eZDKIfmJ.js → VMain-C3hN2-H3.js} +1 -1
  25. package/dist/client/{VOverlay-BS-E4Z6g.js → VOverlay-tAeNygaA.js} +15 -6
  26. package/dist/client/{VTooltip-BMsliOuh.js → VTooltip-B0Q3iHMZ.js} +3 -3
  27. package/dist/client/{WidgetsContainer-Cl6M5R5c.js → WidgetsContainer-CtDHfCYf.js} +1 -1
  28. package/dist/client/{asWebComponent-Df8nUiLs.js → asWebComponent-BJ2NWunV.js} +100 -96
  29. package/dist/client/eo-dash.css +2 -2
  30. package/dist/client/eo-dash.js +1 -1
  31. package/dist/client/{forwardRefs-lhDuXD-N.js → forwardRefs-CIFAqXaZ.js} +9 -9
  32. package/dist/client/{EodashMap-BSR7_wRA.js → index-BQ16n4Sk.js} +101 -80
  33. package/dist/client/index-Cv7HBz49.js +85 -0
  34. package/dist/client/{EodashProcess-CpbZPYBp.js → index-Da5xXX6Q.js} +346 -468
  35. package/dist/client/{index-Bt5GEGxl.js → index-DvcUndod.js} +1 -1
  36. package/dist/client/{transition-DHEuQX4I.js → transition-Cdb4K27U.js} +1 -1
  37. package/dist/types/core/client/components/MobileLayout.vue.d.ts +9 -9
  38. package/dist/types/core/client/eodashSTAC/helpers.d.ts +3 -2
  39. package/dist/types/core/client/types.d.ts +83 -17
  40. package/dist/types/core/client/utils/states.d.ts +7 -0
  41. package/dist/types/widgets/EodashDatePicker.vue.d.ts +4 -4
  42. package/dist/types/widgets/EodashItemFilter.vue.d.ts +18 -18
  43. package/dist/types/widgets/EodashLayerControl.vue.d.ts +2 -2
  44. package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +2 -2
  45. package/dist/types/widgets/EodashMap/methods/create-layers-config.d.ts +9 -0
  46. package/dist/types/widgets/EodashMap/methods/index.d.ts +5 -0
  47. package/dist/types/widgets/EodashMapBtns.vue.d.ts +8 -2
  48. package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +2 -0
  49. package/dist/types/widgets/EodashProcess/methods/async.d.ts +45 -0
  50. package/dist/types/widgets/EodashProcess/methods/composables.d.ts +19 -0
  51. package/dist/types/widgets/EodashProcess/methods/handling.d.ts +78 -0
  52. package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +54 -0
  53. package/dist/types/widgets/EodashProcess/methods/utils.d.ts +42 -0
  54. package/dist/types/widgets/EodashStacInfo.vue.d.ts +12 -12
  55. package/dist/types/widgets/EodashTools.vue.d.ts +44 -6
  56. package/dist/types/widgets/PopUp.vue.d.ts +4 -4
  57. package/package.json +27 -27
  58. package/widgets/EodashLayerControl.vue +8 -1
  59. package/widgets/{EodashMap.vue → EodashMap/index.vue} +51 -31
  60. package/widgets/EodashMap/methods/create-layers-config.js +151 -0
  61. package/{core/client/composables/EodashMap.js → widgets/EodashMap/methods/index.js} +4 -153
  62. package/widgets/EodashMapBtns.vue +33 -7
  63. package/widgets/EodashProcess/ProcessList.vue +82 -0
  64. package/widgets/EodashProcess/index.vue +186 -0
  65. package/widgets/EodashProcess/methods/async.js +209 -0
  66. package/widgets/EodashProcess/methods/composables.js +129 -0
  67. package/widgets/EodashProcess/methods/handling.js +254 -0
  68. package/widgets/EodashProcess/methods/outputs.js +216 -0
  69. package/widgets/EodashProcess/methods/utils.js +138 -0
  70. package/widgets/EodashStacInfo.vue +6 -0
  71. package/widgets/EodashTools.vue +1 -0
  72. package/core/client/composables/EodashProcess.js +0 -654
  73. package/dist/types/core/client/composables/EodashMap.d.ts +0 -6
  74. package/dist/types/core/client/composables/EodashProcess.d.ts +0 -162
  75. package/widgets/EodashProcess.vue +0 -206
  76. /package/dist/types/widgets/{EodashMap.vue.d.ts → EodashMap/index.vue.d.ts} +0 -0
  77. /package/dist/types/widgets/{EodashProcess.vue.d.ts → EodashProcess/index.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { TransitionGroup, Transition, h, camelize } from 'vue';
2
- import { g as genericComponent, p as propsFactory } from './asWebComponent-Df8nUiLs.js';
2
+ import { g as genericComponent, p as propsFactory } from './asWebComponent-BJ2NWunV.js';
3
3
 
4
4
  // Utilities
5
5
  const makeTransitionProps = propsFactory({
@@ -1,5 +1,5 @@
1
1
  import { TransitionGroup, Transition, h, mergeProps } from 'vue';
2
- import { p as propsFactory } from './asWebComponent-Df8nUiLs.js';
2
+ import { p as propsFactory } from './asWebComponent-BJ2NWunV.js';
3
3
 
4
4
  // Utilities
5
5
  const makeTransitionProps = propsFactory({
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
13
13
  tag: string;
14
14
  mandatory: boolean | "force";
15
15
  modelValue: any;
16
- density: "default" | "comfortable" | "compact" | null;
16
+ density: "default" | "compact" | "comfortable" | null;
17
17
  selectedClass: string;
18
18
  stacked: boolean;
19
19
  centerActive: boolean;
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
32
32
  multiple: boolean;
33
33
  tag: string;
34
34
  mandatory: boolean | "force";
35
- density: "default" | "comfortable" | "compact" | null;
35
+ density: "default" | "compact" | "comfortable" | null;
36
36
  selectedClass: string;
37
37
  stacked: boolean;
38
38
  centerActive: boolean;
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
61
61
  multiple: boolean;
62
62
  tag: string;
63
63
  mandatory: boolean | "force";
64
- density: "default" | "comfortable" | "compact" | null;
64
+ density: "default" | "compact" | "comfortable" | null;
65
65
  selectedClass: string;
66
66
  stacked: boolean;
67
67
  centerActive: boolean;
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
83
83
  sliderColor?: string | undefined;
84
84
  } & {
85
85
  "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
86
- }, "symbol" | "style" | "tag" | "height" | "density" | "modelValue" | "mobile" | "multiple" | "mandatory" | "selectedClass" | "disabled" | "centerActive" | "direction" | "nextIcon" | "prevIcon" | "alignTabs" | "fixedTabs" | "stacked" | "grow" | "hideSlider">;
86
+ }, "symbol" | "style" | "modelValue" | "height" | "tag" | "disabled" | "selectedClass" | "density" | "stacked" | "mobile" | "multiple" | "mandatory" | "centerActive" | "direction" | "nextIcon" | "prevIcon" | "alignTabs" | "fixedTabs" | "grow" | "hideSlider">;
87
87
  $attrs: {
88
88
  [x: string]: unknown;
89
89
  };
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
120
120
  multiple: boolean;
121
121
  tag: string;
122
122
  mandatory: boolean | "force";
123
- density: "default" | "comfortable" | "compact" | null;
123
+ density: "default" | "compact" | "comfortable" | null;
124
124
  selectedClass: string;
125
125
  stacked: boolean;
126
126
  centerActive: boolean;
@@ -155,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
155
155
  tag: string;
156
156
  mandatory: boolean | "force";
157
157
  modelValue: any;
158
- density: "default" | "comfortable" | "compact" | null;
158
+ density: "default" | "compact" | "comfortable" | null;
159
159
  selectedClass: string;
160
160
  stacked: boolean;
161
161
  centerActive: boolean;
@@ -211,7 +211,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
211
211
  tag: string;
212
212
  mandatory: boolean | "force";
213
213
  modelValue: any;
214
- density: "default" | "comfortable" | "compact" | null;
214
+ density: "default" | "compact" | "comfortable" | null;
215
215
  selectedClass: string;
216
216
  stacked: boolean;
217
217
  centerActive: boolean;
@@ -230,7 +230,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
230
230
  multiple: boolean;
231
231
  tag: string;
232
232
  mandatory: boolean | "force";
233
- density: "default" | "comfortable" | "compact" | null;
233
+ density: "default" | "compact" | "comfortable" | null;
234
234
  selectedClass: string;
235
235
  stacked: boolean;
236
236
  centerActive: boolean;
@@ -252,7 +252,7 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
252
252
  sliderColor?: string | undefined;
253
253
  } & {
254
254
  "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
255
- }, "symbol" | "style" | "tag" | "height" | "density" | "modelValue" | "mobile" | "multiple" | "mandatory" | "selectedClass" | "disabled" | "centerActive" | "direction" | "nextIcon" | "prevIcon" | "alignTabs" | "fixedTabs" | "stacked" | "grow" | "hideSlider"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
255
+ }, "symbol" | "style" | "modelValue" | "height" | "tag" | "disabled" | "selectedClass" | "density" | "stacked" | "mobile" | "multiple" | "mandatory" | "centerActive" | "direction" | "nextIcon" | "prevIcon" | "alignTabs" | "fixedTabs" | "grow" | "hideSlider"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
256
256
  $props: {
257
257
  items?: (string | number | Record<string, any>)[] | undefined;
258
258
  } & {
@@ -165,7 +165,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
165
165
  appendix?: string;
166
166
  }[];
167
167
  } | {
168
- [x: number]: import("ol/style/flat.js").FlatStyle;
168
+ [n: number]: import("ol/style/flat.js").FlatStyle;
169
169
  length: number;
170
170
  toString(): string;
171
171
  toLocaleString(): string;
@@ -298,7 +298,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
298
298
  appendix?: string;
299
299
  }[];
300
300
  } | {
301
- [x: number]: import("ol/style/flat.js").Rule;
301
+ [n: number]: import("ol/style/flat.js").Rule;
302
302
  length: number;
303
303
  toString(): string;
304
304
  toLocaleString(): string;
@@ -449,3 +449,4 @@ export function getColFromLayer(indicators: import("../eodashSTAC/EodashCollecti
449
449
  export function createLayerID(collectionId: string, itemId: string, link: import("stac-ts").StacLink, projectionCode: string): string;
450
450
  export function createAssetID(collectionId: string, itemId: string, index: number): string;
451
451
  export function removeUnneededProperties(layers: Record<string, any>[]): Record<string, any>[];
452
+ export function addTooltipInteraction(layer: Record<string, any>, style?: import("../types").EodashStyleJson): void;
@@ -44,7 +44,10 @@ export interface WebComponentProps<T extends ExecutionTime = "compiletime"> {
44
44
  export interface WidgetsContainerProps {
45
45
  widgets: Omit<Widget, "layout">[];
46
46
  }
47
- /** Properties of EOxLayoutItem used for setting the position and size of panels */
47
+ /**
48
+ * Properties of EOxLayoutItem used for setting the position and size of panels
49
+ * @group Eodash
50
+ * */
48
51
  export interface Layout {
49
52
  /** Horizontal start position. Integer between 1 and 12 */
50
53
  x: number;
@@ -68,6 +71,73 @@ export interface WebComponentWidget<T extends ExecutionTime = "compiletime"> {
68
71
  widget: WebComponentProps<T>;
69
72
  type: "web-component";
70
73
  }
74
+ /** @group Widgets */
75
+ export interface TEodashMap {
76
+ name: "EodashMap";
77
+ properties?: InstanceType<typeof import("^/EodashMap.vue").default>["$props"];
78
+ }
79
+ /** @group Widgets */
80
+ export interface TEodashDatePicker {
81
+ name: "EodashDatePicker";
82
+ properties?: InstanceType<typeof import("../../widgets/EodashDatePicker.vue").default>["$props"];
83
+ }
84
+ /** @group Widgets */
85
+ export interface TEodashItemFilter {
86
+ name: "EodashItemFilter";
87
+ properties?: InstanceType<typeof import("../../widgets/EodashItemFilter.vue").default>["$props"];
88
+ }
89
+ /** @group Widgets */
90
+ export interface TEodashLayerControl {
91
+ name: "EodashLayerControl";
92
+ properties?: InstanceType<typeof import("../../widgets/EodashLayerControl.vue").default>["$props"];
93
+ }
94
+ /** @group Widgets */
95
+ export interface TEodashStacInfo {
96
+ name: "EodashStacInfo";
97
+ properties?: InstanceType<typeof import("../../widgets/EodashStacInfo.vue").default>["$props"];
98
+ }
99
+ /** @group Widgets */
100
+ export interface TEodashProcess {
101
+ name: "EodashProcess";
102
+ properties?: InstanceType<typeof import("^/EodashProcess.vue").default>["$props"];
103
+ }
104
+ /** @group Widgets */
105
+ export interface TEodashMapBtns {
106
+ name: "EodashMapBtns";
107
+ properties?: InstanceType<typeof import("../../widgets/EodashMapBtns.vue").default>["$props"];
108
+ }
109
+ /** @group Widgets */
110
+ export interface TEodashTools {
111
+ name: "EodashTools";
112
+ properties?: InstanceType<typeof import("../../widgets/EodashTools.vue").default>["$props"];
113
+ }
114
+ /** @group Widgets */
115
+ export interface TEodashLayoutSwitcher {
116
+ name: "EodashLayoutSwitcher";
117
+ properties?: InstanceType<typeof import("../../widgets/EodashLayoutSwitcher.vue").default>["$props"];
118
+ }
119
+ /** @group Widgets */
120
+ export interface TExportState {
121
+ name: "ExportState";
122
+ properties?: InstanceType<typeof import("../../widgets/ExportState.vue").default>["$props"];
123
+ }
124
+ /** @group Widgets */
125
+ export interface TPopUp {
126
+ name: "PopUp";
127
+ properties?: InstanceType<typeof import("../../widgets/PopUp.vue").default>["$props"];
128
+ }
129
+ /** @group Widgets */
130
+ export interface TWidgetsContainer {
131
+ name: "WidgetsContainer";
132
+ properties?: InstanceType<typeof import("../../widgets/WidgetsContainer.vue").default>["$props"];
133
+ }
134
+ /**
135
+ * Internal Vue Components inside the
136
+ * [widgets](https://github.com/eodash/eodash/tree/main/widgets) folder.
137
+ * Referenced using their name without the .vue extention
138
+ * @group Widgets
139
+ */
140
+ export type ComponentWidget = TEodashMap | TEodashDatePicker | TEodashItemFilter | TEodashLayerControl | TEodashStacInfo | TEodashProcess | TEodashMapBtns | TEodashTools | TEodashLayoutSwitcher | TExportState | TPopUp | TWidgetsContainer;
71
141
  /**
72
142
  * Widget type: `internal` API. Internal widgets are Vue components provided by
73
143
  * eodash.
@@ -79,16 +149,7 @@ export interface InternalComponentWidget {
79
149
  title: string;
80
150
  /** Widget position and size. */
81
151
  layout: Layout;
82
- widget: {
83
- /**
84
- * Internal Vue Components inside the
85
- * [widgets](https://github.com/eodash/eodash/tree/main/widgets) folder.
86
- * Referenced using their name without the .vue extention
87
- */
88
- name: string;
89
- /** Specified Vue component props */
90
- properties?: Record<string, unknown>;
91
- };
152
+ widget: ComponentWidget;
92
153
  type: "internal";
93
154
  }
94
155
  /** Widget type: `iframe` API Renders an external HTML file as a widget. */
@@ -143,7 +204,7 @@ export type BackgroundWidget<T extends ExecutionTime = "compiletime"> = Omit<Web
143
204
  *
144
205
  * @group Eodash
145
206
  */
146
- export interface SingleTemplate<T extends ExecutionTime = "compiletime"> {
207
+ export interface Template<T extends ExecutionTime = "compiletime"> {
147
208
  /** Gap between widgets */
148
209
  gap?: number;
149
210
  /** Loading widget */
@@ -156,12 +217,14 @@ export interface SingleTemplate<T extends ExecutionTime = "compiletime"> {
156
217
  /** Array of widgets that will be rendered as dashboard panels. */
157
218
  widgets: Widget<T>[];
158
219
  }
159
- export type MultiTemplates<T extends ExecutionTime = "compiletime"> = Record<string, SingleTemplate<T>>;
220
+ /** @group Eodash */
221
+ export type MultiTemplates<T extends ExecutionTime = "compiletime"> = Record<string, Template<T>>;
160
222
  /** @ignore */
161
223
  export type StacEndpoint = `${string}/catalog.json`;
162
224
  /** @group Eodash */
163
225
  type ExecutionTime = "runtime" | "compiletime";
164
- type EodashFont = {
226
+ /** @group Eodash */
227
+ export interface EodashFont {
165
228
  /**
166
229
  * Link to stylesheet that defines font-face. Could be either a relative
167
230
  * or absolute URL.
@@ -169,7 +232,7 @@ type EodashFont = {
169
232
  link?: string;
170
233
  /** Font family name. */
171
234
  family: string;
172
- };
235
+ }
173
236
  /**
174
237
  * Eodash instance API
175
238
  *
@@ -207,7 +270,7 @@ export type Eodash<T extends ExecutionTime = "compiletime"> = {
207
270
  };
208
271
  } & ({
209
272
  /** Template configuration */
210
- template: SingleTemplate<T>;
273
+ template: Template<T>;
211
274
  } | {
212
275
  /** Multiple templates configuration */
213
276
  templates: MultiTemplates<T>;
@@ -251,7 +314,7 @@ export interface EodashStore {
251
314
  };
252
315
  }
253
316
  /** @group WebComponent */
254
- type EodashConstructor = import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
317
+ export type EodashConstructor = import("vue").VueElementConstructor<import("vue").ExtractPropTypes<{
255
318
  config: string;
256
319
  }>>;
257
320
  /**
@@ -273,6 +336,9 @@ export declare function register(): void;
273
336
  */
274
337
  export declare const store: typeof import("./store").default;
275
338
  export * from "./main.js";
339
+ /**
340
+ * @group Eodash
341
+ */
276
342
  export type EodashStyleJson = import("ol/style/flat").FlatStyleLike & {
277
343
  variables?: Record<string, string | number | boolean | null | undefined>;
278
344
  legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
@@ -21,6 +21,11 @@ export const posIsSetFromUrl: import("vue").Ref<boolean, boolean>;
21
21
  * @type {import("vue").Ref<Record<string, any> | undefined>}
22
22
  */
23
23
  export const layerControlFormValue: import("vue").Ref<Record<string, any> | undefined>;
24
+ /**
25
+ * Current value of the layer control JSON form for the latest layer the user interacted with.
26
+ * @type {import("vue").Ref<Record<string, any> | undefined>}
27
+ */
28
+ export const layerControlFormValueCompare: import("vue").Ref<Record<string, any> | undefined>;
24
29
  /**
25
30
  * STAC indicators color palette, defaults to Bank-Wong palette
26
31
  * @type {string[]} */
@@ -61,6 +66,8 @@ export namespace dataThemesBrands {
61
66
  export { color_6 as color };
62
67
  }
63
68
  }
69
+ /** used for switching in and out of compare mode @see {@link widgets/EodashMapBtns.vue} */
70
+ export const switchToCompare: import("vue").Ref<boolean, boolean>;
64
71
  import { mdiBarley } from "@mdi/js";
65
72
  import { mdiWater } from "@mdi/js";
66
73
  import { mdiImageFilterHdr } from "@mdi/js";
@@ -1,13 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  hintText: string;
3
- toggleCalendar: boolean;
4
3
  hideArrows: boolean;
5
4
  hideInputField: boolean;
5
+ toggleCalendar: boolean;
6
6
  $props: {
7
7
  readonly hintText?: string | undefined;
8
- readonly toggleCalendar?: boolean | undefined;
9
8
  readonly hideArrows?: boolean | undefined;
10
9
  readonly hideInputField?: boolean | undefined;
10
+ readonly toggleCalendar?: boolean | undefined;
11
11
  };
12
12
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
13
13
  rootRef: HTMLDivElement;
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<{}, {
42
42
  start: import("v-calendar/dist/types/src/use/datePicker").DatePickerDate;
43
43
  end: import("v-calendar/dist/types/src/use/datePicker").DatePickerDate;
44
44
  }> | null | undefined;
45
- readonly rules?: "auto" | import("v-calendar/dist/types/src/utils/date/helpers").DatePartsRules | undefined;
45
+ readonly rules?: import("v-calendar/dist/types/src/utils/date/helpers").DatePartsRules | "auto" | undefined;
46
46
  readonly updateOnInput?: boolean | undefined;
47
47
  readonly inputDebounce?: number | undefined;
48
48
  readonly dragAttribute?: import("v-calendar/dist/types/src/utils/attribute").AttributeConfig | undefined;
@@ -268,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{}, {
268
268
  start: import("v-calendar/dist/types/src/use/datePicker").DatePickerDate;
269
269
  end: import("v-calendar/dist/types/src/use/datePicker").DatePickerDate;
270
270
  }> | null | undefined;
271
- readonly rules?: "auto" | import("v-calendar/dist/types/src/utils/date/helpers").DatePartsRules | undefined;
271
+ readonly rules?: import("v-calendar/dist/types/src/utils/date/helpers").DatePartsRules | "auto" | undefined;
272
272
  readonly updateOnInput?: boolean | undefined;
273
273
  readonly inputDebounce?: number | undefined;
274
274
  readonly dragAttribute?: import("v-calendar/dist/types/src/utils/attribute").AttributeConfig | undefined;
@@ -1,41 +1,41 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "select", ...args: any[]) => void;
3
3
  enableCompare: boolean;
4
- cssVars: string | Record<string, any>;
5
- resultType: string;
6
4
  filtersTitle: string;
5
+ resultsTitle: string;
6
+ titleProperty: string;
7
+ imageProperty: string;
8
+ subTitleProperty: string;
9
+ resultType: string;
10
+ cssVars: string | Record<string, any>;
11
+ enableHighlighting: boolean;
12
+ expandMultipleFilters: boolean;
13
+ expandMultipleResults: boolean;
7
14
  filterProperties: {
8
15
  keys: string[];
9
16
  title: string;
10
17
  type: string;
11
18
  expanded?: boolean;
12
19
  }[];
13
- resultsTitle: string;
14
- subTitleProperty: string;
15
- imageProperty: string;
16
- titleProperty: string;
17
- enableHighlighting: boolean;
18
- expandMultipleFilters: boolean;
19
- expandMultipleResults: boolean;
20
20
  aggregateResults?: string | undefined;
21
21
  $props: {
22
22
  readonly enableCompare?: boolean | undefined;
23
- readonly cssVars?: string | Record<string, any> | undefined;
24
- readonly resultType?: string | undefined;
25
23
  readonly filtersTitle?: string | undefined;
24
+ readonly resultsTitle?: string | undefined;
25
+ readonly titleProperty?: string | undefined;
26
+ readonly imageProperty?: string | undefined;
27
+ readonly subTitleProperty?: string | undefined;
28
+ readonly resultType?: string | undefined;
29
+ readonly cssVars?: string | Record<string, any> | undefined;
30
+ readonly enableHighlighting?: boolean | undefined;
31
+ readonly expandMultipleFilters?: boolean | undefined;
32
+ readonly expandMultipleResults?: boolean | undefined;
26
33
  readonly filterProperties?: {
27
34
  keys: string[];
28
35
  title: string;
29
36
  type: string;
30
37
  expanded?: boolean;
31
38
  }[] | undefined;
32
- readonly resultsTitle?: string | undefined;
33
- readonly subTitleProperty?: string | undefined;
34
- readonly imageProperty?: string | undefined;
35
- readonly titleProperty?: string | undefined;
36
- readonly enableHighlighting?: boolean | undefined;
37
- readonly expandMultipleFilters?: boolean | undefined;
38
- readonly expandMultipleResults?: boolean | undefined;
39
39
  readonly aggregateResults?: string | undefined;
40
40
  };
41
41
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
@@ -1,9 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- map: string;
2
+ map: "first" | "second";
3
3
  tools: unknown[];
4
4
  cssVars?: Record<string, any> | undefined;
5
5
  $props: {
6
- readonly map?: string | undefined;
6
+ readonly map?: "first" | "second" | undefined;
7
7
  readonly tools?: unknown[] | undefined;
8
8
  readonly cssVars?: Record<string, any> | undefined;
9
9
  };
@@ -1,9 +1,9 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- icon: string;
3
2
  target: string;
3
+ icon: string;
4
4
  $props: {
5
- readonly icon?: string | undefined;
6
5
  readonly target?: string | undefined;
6
+ readonly icon?: string | undefined;
7
7
  };
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
9
9
  rootRef: HTMLDivElement;
@@ -0,0 +1,9 @@
1
+ export function createLayersConfig(selectedIndicator: import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, eodashCols: EodashCollection[], updatedTime?: string): Promise<{
2
+ type: string;
3
+ properties: {
4
+ id: string;
5
+ title: string;
6
+ };
7
+ layers: Record<string, any>[];
8
+ }[]>;
9
+ import { EodashCollection } from "../../../core/client/eodashSTAC/EodashCollection";
@@ -0,0 +1,5 @@
1
+ export function useHandleMapMoveEnd(mapElement: import("vue").Ref<(HTMLElement & Record<string, any> & {
2
+ map: import("ol").Map;
3
+ }) | null>, mapPosition: import("vue").Ref<(number | undefined)[]>): void;
4
+ export function useInitMap(mapElement: import("vue").Ref<import("@eox/map").EOxMap | null>, selectedIndicator: import("vue").Ref<import("stac-ts").StacCollection | null>, eodashCols: import("../../../core/client/eodashSTAC/EodashCollection").EodashCollection[], datetime: import("vue").Ref<string>, mapLayers: import("vue").Ref<Record<string, any>[]>, partnerMap: import("vue").Ref<import("@eox/map").EOxMap | null>, zoomToExtent: boolean): void;
5
+ export function useUpdateTooltipProperties(eodashCols: import("../../../core/client/eodashSTAC/EodashCollection").EodashCollection[], tooltipProperties: import("vue").Ref<Exclude<import("../../../core/client/types").EodashStyleJson["tooltip"], undefined>>): void;
@@ -1,11 +1,17 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- compareIndicators: boolean;
3
2
  exportMap: boolean;
4
3
  changeProjection: boolean;
4
+ compareIndicators: boolean | {
5
+ compareTemplate?: string;
6
+ fallbackTemplate?: string;
7
+ };
5
8
  $props: {
6
- readonly compareIndicators?: boolean | undefined;
7
9
  readonly exportMap?: boolean | undefined;
8
10
  readonly changeProjection?: boolean | undefined;
11
+ readonly compareIndicators?: boolean | {
12
+ compareTemplate?: string;
13
+ fallbackTemplate?: string;
14
+ } | undefined;
9
15
  };
10
16
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
11
17
  rootRef: HTMLDivElement;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,45 @@
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
+ *
20
+ * @param {*} jobs
21
+ * @param {*} indicator
22
+ */
23
+ export function updateJobsStatus(jobs: any, indicator: any): Promise<void>;
24
+ /**
25
+ * load a geotiff to the map from an existing process
26
+ *
27
+ * @param {Object} params
28
+ * @param {import("stac-ts").StacCollection | null} params.selectedStac
29
+ * @param {any[]} params.results
30
+ * @param {string} params.jobId
31
+ */
32
+ export function loadPreviousProcess({ selectedStac, results, jobId }: {
33
+ selectedStac: import("stac-ts").StacCollection | null;
34
+ results: any[];
35
+ jobId: string;
36
+ }): Promise<void>;
37
+ /**
38
+ * The list of job result from the server
39
+ * {job_start_datetime: string, job_end_datetime: string,status: string}
40
+ * @type {import("vue").Ref<any[]>}
41
+ **/
42
+ export const jobs: import("vue").Ref<any[]>;
43
+ export function deleteJob(jobObject: any): Promise<void>;
44
+ export function downloadPreviousResults(jobObject: any, selectedStac: any): Promise<void>;
45
+ export function loadProcess(jobObject: any, selectedStac: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Auto execute the process when the jsonform has the execute option
3
+ *
4
+ * @param {import("vue").Ref<boolean>} autoExec
5
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} jsonformEl
6
+ * @param {import("vue").Ref<Record<string,any> | null>} jsonformSchema
7
+ * @param {() => Promise<void>} startProcess
8
+ **/
9
+ 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;
10
+ export function useInitProcess({ selectedStac, jsonformEl, jsonformSchema, chartSpec, isProcessed, processResults, loading, isPolling, }: {
11
+ selectedStac: import("vue").Ref<import("stac-ts").StacCollection>;
12
+ jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>;
13
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
14
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>;
15
+ processResults: import("vue").Ref<any[]>;
16
+ isProcessed: import("vue").Ref<boolean>;
17
+ loading: import("vue").Ref<boolean>;
18
+ isPolling: import("vue").Ref<boolean>;
19
+ }): void;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Fetch and set the jsonform schema to initialize the process
3
+ *
4
+ * @export
5
+ * @async
6
+ * @param {Object} params
7
+ * @param {import("vue").Ref<import("stac-ts").StacCollection>} params.selectedStac
8
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} params.jsonformEl
9
+ * @param {import("vue").Ref<Record<string,any> | null>} params.jsonformSchema
10
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>} params.chartSpec
11
+ * @param {import("vue").Ref<any[]>} params.processResults
12
+ * @param {import("vue").Ref<boolean>} params.isProcessed
13
+ * @param {import("vue").Ref<boolean>} params.loading
14
+ * @param {import("vue").Ref<boolean>} params.isPolling
15
+ */
16
+ export function initProcess({ selectedStac, jsonformEl, jsonformSchema, chartSpec, isProcessed, processResults, loading, isPolling, }: {
17
+ selectedStac: import("vue").Ref<import("stac-ts").StacCollection>;
18
+ jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>;
19
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
20
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>;
21
+ processResults: import("vue").Ref<any[]>;
22
+ isProcessed: import("vue").Ref<boolean>;
23
+ loading: import("vue").Ref<boolean>;
24
+ isPolling: import("vue").Ref<boolean>;
25
+ }): Promise<void>;
26
+ /**
27
+ *
28
+ * @param {Object} params
29
+ * @param {import("vue").Ref<boolean>} params.loading
30
+ * @param {import("vue").Ref<import("stac-ts").StacCollection | null>} params.selectedStac
31
+ * @param {import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>} params.jsonformEl
32
+ * @param {import("vue").Ref<Record<string,any>|null>} params.jsonformSchema
33
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>} params.chartSpec
34
+ * @param {import("vue").Ref<Record<string, any> | null>} params.chartData
35
+ * @param {import("vue").Ref<boolean>} params.isPolling
36
+ * @param {import("vue").Ref<any[]>} params.processResults
37
+ */
38
+ export function handleProcesses({ loading, selectedStac, jsonformEl, jsonformSchema, chartSpec, chartData, isPolling, processResults, }: {
39
+ loading: import("vue").Ref<boolean>;
40
+ selectedStac: import("vue").Ref<import("stac-ts").StacCollection | null>;
41
+ jsonformEl: import("vue").Ref<import("@eox/jsonform").EOxJSONForm | null>;
42
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
43
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>;
44
+ chartData: import("vue").Ref<Record<string, any> | null>;
45
+ isPolling: import("vue").Ref<boolean>;
46
+ processResults: import("vue").Ref<any[]>;
47
+ }): Promise<void>;
48
+ /**
49
+ * Reset the process state
50
+ * @param {Object} params
51
+ * @param {import("vue").Ref<boolean>} params.loading
52
+ * @param {import("vue").Ref<boolean>} params.isProcessed
53
+ * @param {import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>} params.chartSpec
54
+ * @param {import("vue").Ref<boolean>} params.isPolling
55
+ * @param {import("vue").Ref<any[]>} params.processResults
56
+ * @param {import("vue").Ref<Record<string,any>|null>} params.jsonformSchema
57
+ */
58
+ export function resetProcess({ loading, isProcessed, chartSpec, jsonformSchema, processResults, isPolling, }: {
59
+ loading: import("vue").Ref<boolean>;
60
+ isProcessed: import("vue").Ref<boolean>;
61
+ chartSpec: import("vue").Ref<import("@eox/chart").EOxChart["spec"] | null>;
62
+ isPolling: import("vue").Ref<boolean>;
63
+ processResults: import("vue").Ref<any[]>;
64
+ jsonformSchema: import("vue").Ref<Record<string, any> | null>;
65
+ }): void;
66
+ export function onChartClick(evt: {
67
+ target: {
68
+ spec: {
69
+ encoding?: Record<string, {
70
+ type?: string;
71
+ field?: string;
72
+ }> | undefined;
73
+ };
74
+ };
75
+ detail: {
76
+ item: import("vega").Item;
77
+ };
78
+ }): void;