@eodash/eodash 5.0.0-rc.2.3 → 5.0.0-rc.2.4

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 (44) hide show
  1. package/core/client/composables/EodashMap.js +0 -1
  2. package/core/client/composables/EodashProcess.js +4 -0
  3. package/core/client/eodash.js +2 -2
  4. package/core/client/eodashSTAC/createLayers.js +0 -6
  5. package/core/client/types.ts +1 -1
  6. package/core/client/vite-env.d.ts +13 -0
  7. package/dist/client/{DashboardLayout-Reny_s87.js → DashboardLayout-D1UcB3RV.js} +3 -3
  8. package/dist/client/{DynamicWebComponent-DQPKIscC.js → DynamicWebComponent-DtZ_mHL9.js} +2 -2
  9. package/dist/client/{EodashDatePicker-E5GjnQQ2.js → EodashDatePicker-CYU0MZX5.js} +3 -3
  10. package/dist/client/{EodashItemFilter-DN77Uqgg.js → EodashItemFilter-SE9oW3oZ.js} +3 -3
  11. package/dist/client/{EodashLayerControl-DduVhg2O.js → EodashLayerControl-BuGe29Nt.js} +2 -2
  12. package/dist/client/{EodashLayoutSwitcher-CeNnYuaC.js → EodashLayoutSwitcher-6wLl-Gtd.js} +3 -3
  13. package/dist/client/{EodashMap-C3bgcNJk.js → EodashMap-DhVCoYMi.js} +3 -2
  14. package/dist/client/{EodashMapBtns-B73UApEn.js → EodashMapBtns-BWWu6eHG.js} +5 -5
  15. package/dist/client/{EodashProcess-IQPnj17j.js → EodashProcess-GSj_LMsK.js} +10 -5
  16. package/dist/client/{EodashStacInfo-CeZqI75-.js → EodashStacInfo-DjRSGLHM.js} +2 -2
  17. package/dist/client/{EodashTools-CAE604ZJ.js → EodashTools-CJ4hBH_X.js} +5 -5
  18. package/dist/client/{ExportState-DXw8Dwvk.js → ExportState-BqnlEpzR.js} +5 -5
  19. package/dist/client/{Footer-Bl9tQTyj.js → Footer-C_3WrfI4.js} +2 -2
  20. package/dist/client/{Header-qH_kBs-u.js → Header-D_hcGpNG.js} +4 -4
  21. package/dist/client/{IframeWrapper-BgM9aU8f.js → IframeWrapper-XzQDZy0T.js} +1 -1
  22. package/dist/client/{MobileLayout-Du5n5XyY.js → MobileLayout-CDbupC9v.js} +6 -6
  23. package/dist/client/{PopUp-B12NWJHU.js → PopUp-Ba6mY2jQ.js} +5 -4
  24. package/dist/client/{VImg-CjsuV4n9.js → VImg-Yc9F9pYq.js} +4 -4
  25. package/dist/client/{VMain-B11EjLm6.js → VMain-BiS7HPEk.js} +1 -1
  26. package/dist/client/{VOverlay-CLR2s8AQ.js → VOverlay-B9mxXaCv.js} +4 -4
  27. package/dist/client/{VTooltip-DqyE5_aG.js → VTooltip-XJLaLrZQ.js} +3 -3
  28. package/dist/client/{WidgetsContainer-YI9ZycgC.js → WidgetsContainer-DRVb_73N.js} +2 -2
  29. package/dist/client/{asWebComponent-DBkwthjq.js → asWebComponent-DZpMGxEY.js} +155 -154
  30. package/dist/client/eo-dash.css +1 -1
  31. package/dist/client/eo-dash.js +1 -1
  32. package/dist/client/{forwardRefs-BTYtR3pq.js → forwardRefs-BtkfywIE.js} +1 -1
  33. package/dist/client/{index-BhfdO0rU.js → index-f55xuyof.js} +3 -1
  34. package/dist/client/{transition-B79onGGb.js → transition-CtL4BoVi.js} +2 -2
  35. package/dist/node/cli.js +2 -2
  36. package/dist/types/core/client/components/MobileLayout.vue.d.ts +254 -241
  37. package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +6 -10
  38. package/dist/types/core/client/eodashSTAC/createLayers.d.ts +5 -5
  39. package/dist/types/core/client/eodashSTAC/helpers.d.ts +2 -71
  40. package/dist/types/widgets/PopUp.vue.d.ts +2 -2
  41. package/package.json +20 -20
  42. package/widgets/EodashItemFilter.vue +1 -1
  43. package/widgets/EodashMap.vue +1 -0
  44. package/widgets/EodashProcess.vue +5 -0
@@ -5,7 +5,7 @@ export class EodashCollection {
5
5
  * @param {import("stac-ts").StacCollection} indicator */
6
6
  static getIndicatorLayers(indicator: import("stac-ts").StacCollection): Promise<(Record<string, any> | {
7
7
  interactions: never[];
8
- style?: import("../types").EodashStyleJson | undefined;
8
+ style?: any;
9
9
  type: string;
10
10
  source: {
11
11
  type: string;
@@ -15,14 +15,14 @@ export class EodashCollection {
15
15
  };
16
16
  properties: {
17
17
  layerConfig?: {
18
- style: import("../types").EodashStyleJson | undefined;
18
+ style: any;
19
19
  } | undefined;
20
20
  id: string;
21
21
  title: string;
22
22
  layerDatetime: Record<string, unknown> | undefined;
23
23
  };
24
24
  } | {
25
- style?: import("../types").EodashStyleJson | undefined;
25
+ style?: any;
26
26
  type: string;
27
27
  source: {
28
28
  type: string;
@@ -32,7 +32,7 @@ export class EodashCollection {
32
32
  };
33
33
  properties: {
34
34
  layerConfig?: {
35
- style: import("../types").EodashStyleJson | undefined;
35
+ style: any;
36
36
  } | undefined;
37
37
  id: string;
38
38
  title: string;
@@ -55,7 +55,7 @@ export class EodashCollection {
55
55
  layerConfig: Record<string, unknown> | undefined;
56
56
  layerDatetime: Record<string, unknown> | undefined;
57
57
  };
58
- style: import("../types").EodashStyleJson | undefined;
58
+ style: any;
59
59
  })[]>;
60
60
  /**
61
61
  * Returns GeoDB layer from a list of EodashCollections
@@ -128,11 +128,7 @@ export class EodashCollection {
128
128
  * @param {Date} [date]
129
129
  **/
130
130
  getItem(date?: Date): import("stac-ts").StacLink | undefined;
131
- getToolTipProperties(): Promise<{
132
- id: string;
133
- title?: string;
134
- appendix?: string;
135
- }[]>;
131
+ getToolTipProperties(): Promise<any>;
136
132
  /**
137
133
  *
138
134
  * @param {string} datetime
@@ -10,7 +10,7 @@
10
10
  **/
11
11
  export function createLayersFromAssets(collectionId: string, title: string, assets: Record<string, import("stac-ts").StacAsset>, item: import("stac-ts").StacItem, style?: import("../types").EodashStyleJson, layerConfig?: Record<string, unknown>, layerDatetime?: Record<string, unknown>, extraProperties?: object | null): Promise<({
12
12
  interactions: never[];
13
- style?: import("../types").EodashStyleJson | undefined;
13
+ style?: any;
14
14
  type: string;
15
15
  source: {
16
16
  type: string;
@@ -20,14 +20,14 @@ export function createLayersFromAssets(collectionId: string, title: string, asse
20
20
  };
21
21
  properties: {
22
22
  layerConfig?: {
23
- style: import("../types").EodashStyleJson | undefined;
23
+ style: any;
24
24
  } | undefined;
25
25
  id: string;
26
26
  title: string;
27
27
  layerDatetime: Record<string, unknown> | undefined;
28
28
  };
29
29
  } | {
30
- style?: import("../types").EodashStyleJson | undefined;
30
+ style?: any;
31
31
  type: string;
32
32
  source: {
33
33
  type: string;
@@ -37,7 +37,7 @@ export function createLayersFromAssets(collectionId: string, title: string, asse
37
37
  };
38
38
  properties: {
39
39
  layerConfig?: {
40
- style: import("../types").EodashStyleJson | undefined;
40
+ style: any;
41
41
  } | undefined;
42
42
  id: string;
43
43
  title: string;
@@ -60,6 +60,6 @@ export function createLayersFromAssets(collectionId: string, title: string, asse
60
60
  layerConfig: Record<string, unknown> | undefined;
61
61
  layerDatetime: Record<string, unknown> | undefined;
62
62
  };
63
- style: import("../types").EodashStyleJson | undefined;
63
+ style: any;
64
64
  })[]>;
65
65
  export function createLayersFromLinks(collectionId: string, title: string, item: import("stac-ts").StacItem, layerDatetime?: Record<string, any>, extraProperties?: object | null): Promise<Record<string, any>[]>;
@@ -19,11 +19,8 @@ export function generateFeatures(links?: import("stac-ts").StacLink[], extraProp
19
19
  * @param { import("../types").EodashStyleJson} [style]
20
20
  * */
21
21
  export function extractLayerConfig(collectionId: string, style?: import("../types").EodashStyleJson): {
22
- layerConfig: undefined;
23
- style: undefined;
24
- } | {
25
22
  layerConfig: Record<string, unknown> | undefined;
26
- style: import("../types").EodashStyleJson;
23
+ style: any;
27
24
  };
28
25
  /**
29
26
  * Function to extract collection urls from an indicator
@@ -53,73 +50,7 @@ export function assignProjID(item: import("stac-ts").StacItem, linkOrAsset: impo
53
50
  */
54
51
  export function mergeGeojsons(geojsonUrls: string[]): Promise<string | undefined>;
55
52
  export function extractRoles(properties: Record<string, any>, linkOrAsset: import("stac-ts").StacLink | import("stac-ts").StacAsset): Record<string, any>;
56
- export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): Promise<{
57
- filter?: import("ol/expr/expression.js").ExpressionValue | undefined;
58
- "icon-src"?: string | undefined;
59
- "icon-anchor"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
60
- "icon-anchor-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
61
- "icon-anchor-x-units"?: import("ol/style/Icon.js").IconAnchorUnits | undefined;
62
- "icon-anchor-y-units"?: import("ol/style/Icon.js").IconAnchorUnits | undefined;
63
- "icon-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
64
- "icon-opacity"?: import("ol/expr/expression.js").ExpressionValue | undefined;
65
- "icon-cross-origin"?: string | null | undefined;
66
- "icon-displacement"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
67
- "icon-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
68
- "icon-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
69
- "icon-height"?: import("ol/expr/expression.js").ExpressionValue | undefined;
70
- "icon-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
71
- "icon-rotate-with-view"?: boolean | undefined;
72
- "icon-offset"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
73
- "icon-offset-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
74
- "icon-size"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
75
- "stroke-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
76
- "stroke-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
77
- "stroke-offset"?: import("ol/expr/expression.js").ExpressionValue | undefined;
78
- "stroke-line-cap"?: string | number | boolean | any[] | import("ol/color.js").Color | undefined;
79
- "stroke-line-join"?: string | number | boolean | any[] | import("ol/color.js").Color | undefined;
80
- "stroke-line-dash"?: number[] | import("ol/expr/expression.js").ExpressionValue[] | undefined;
81
- "stroke-line-dash-offset"?: import("ol/expr/expression.js").ExpressionValue | undefined;
82
- "stroke-miter-limit"?: import("ol/expr/expression.js").ExpressionValue | undefined;
83
- "stroke-pattern-src"?: string | undefined;
84
- "stroke-pattern-offset"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
85
- "stroke-pattern-offset-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
86
- "stroke-pattern-size"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
87
- "stroke-pattern-spacing"?: import("ol/expr/expression.js" /** @type {import("../types").EodashStyleJson} */).ExpressionValue | undefined;
88
- "fill-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
89
- "fill-pattern-src"?: string | undefined;
90
- "fill-pattern-offset"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
91
- "fill-pattern-offset-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
92
- "fill-pattern-size"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
93
- "circle-radius"?: import("ol/expr/expression.js").ExpressionValue | undefined;
94
- "circle-fill-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
95
- "circle-stroke-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
96
- "circle-stroke-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
97
- "circle-opacity"?: import("ol/expr/expression.js").ExpressionValue | undefined;
98
- "circle-displacement"?: number[] | import("ol/expr/expression.js").ExpressionValue[] | undefined;
99
- "circle-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
100
- "circle-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
101
- "circle-rotate-with-view"?: boolean | undefined;
102
- "shape-points"?: import("ol/expr/expression.js").ExpressionValue | undefined;
103
- "shape-fill-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
104
- "shape-stroke-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
105
- "shape-stroke-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
106
- "shape-opacity"?: import("ol/expr/expression.js").ExpressionValue | undefined;
107
- "shape-radius"?: import("ol/expr/expression.js").ExpressionValue | undefined;
108
- "shape-radius2"?: import("ol/expr/expression.js").ExpressionValue | undefined;
109
- "shape-angle"?: import("ol/expr/expression.js").ExpressionValue | undefined;
110
- "shape-displacement"?: number[] | import("ol/expr/expression.js").ExpressionValue[] | undefined;
111
- "shape-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
112
- "shape-rotate-with-view"?: boolean | undefined;
113
- "shape-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
114
- variables?: Record<string, string | number | boolean | null | undefined>;
115
- legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
116
- jsonform?: Record<string, any>;
117
- tooltip?: {
118
- id: string;
119
- title?: string;
120
- appendix?: string;
121
- }[];
122
- } | undefined>;
53
+ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): Promise<any>;
123
54
  export function getProjectionCode(projection?: string | number | {
124
55
  name: string;
125
56
  def: string;
@@ -4,16 +4,16 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
- width: string;
8
7
  height: string;
9
8
  maxHeight: string;
10
9
  maxWidth: string;
10
+ width: string;
11
11
  widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
12
12
  $props: {
13
- readonly width?: string | undefined;
14
13
  readonly height?: string | undefined;
15
14
  readonly maxHeight?: string | undefined;
16
15
  readonly maxWidth?: string | undefined;
16
+ readonly width?: string | undefined;
17
17
  readonly widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
18
18
  };
19
19
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLSpanElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eodash/eodash",
3
- "version": "5.0.0-rc.2.3",
3
+ "version": "5.0.0-rc.2.4",
4
4
  "type": "module",
5
5
  "types": "./dist/types/core/client/types.d.ts",
6
6
  "files": [
@@ -60,13 +60,13 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@eox/chart": "^0.3.1",
63
- "@eox/drawtools": "^0.13.3",
63
+ "@eox/drawtools": "^0.13.5",
64
64
  "@eox/itemfilter": "^1.7.1",
65
- "@eox/jsonform": "^0.12.2",
65
+ "@eox/jsonform": "^0.15.3",
66
66
  "@eox/layercontrol": "^0.29.0",
67
67
  "@eox/layout": "^0.3.0",
68
- "@eox/map": "^1.19.2",
69
- "@eox/stacinfo": "^0.6.1",
68
+ "@eox/map": "^1.19.4",
69
+ "@eox/stacinfo": "^0.6.2",
70
70
  "@eox/timecontrol": "^0.12.2",
71
71
  "@mdi/js": "^7.4.47",
72
72
  "@vitejs/plugin-vue": "^5.2.1",
@@ -80,43 +80,43 @@
80
80
  "loglevel": "^1.9.2",
81
81
  "mustache": "^4.2.0",
82
82
  "pinia": "^2.3.1",
83
- "sass": "^1.83.4",
83
+ "sass": "^1.85.1",
84
84
  "stac-js": "^0.0.9",
85
85
  "stac-ts": "^1.0.4",
86
86
  "v-calendar": "3.0.0",
87
- "vega": "^5.30.0",
87
+ "vega": "^5.32.0",
88
88
  "vega-embed": "^6.29.0",
89
89
  "vega-lite": "^5.23.0",
90
- "vite": "^6.0.11",
91
- "vite-plugin-vuetify": "^2.0.4",
90
+ "vite": "^6.2.0",
91
+ "vite-plugin-vuetify": "^2.1.0",
92
92
  "vue": "^3.5.0",
93
- "vuetify": "^3.7.7",
93
+ "vuetify": "^3.7.13",
94
94
  "webfontloader": "^1.6.28"
95
95
  },
96
96
  "devDependencies": {
97
- "@babel/types": "^7.26.5",
97
+ "@babel/types": "^7.26.9",
98
98
  "@eox/eslint-config": "^2.0.0",
99
99
  "@pinia/testing": "^0.1.7",
100
100
  "@types/mustache": "^4.2.5",
101
- "@types/node": "^22.10.7",
101
+ "@types/node": "^22.13.5",
102
102
  "@types/openlayers": "^4.6.23",
103
103
  "@types/webfontloader": "^1.6.38",
104
104
  "cypress": "^13.17.0",
105
- "eslint": "^9.18.0",
105
+ "eslint": "^9.21.0",
106
106
  "eslint-plugin-vue": "^9.32.0",
107
107
  "pkg-pr-new": "^0.0.39",
108
- "prettier": "^3.4.2",
109
- "rollup": "^4.31.0",
108
+ "prettier": "^3.5.2",
109
+ "rollup": "^4.34.8",
110
110
  "terminate": "^2.8.0",
111
111
  "tsc-alias": "^1.8.10",
112
- "typedoc": "^0.27.6",
113
- "typedoc-plugin-markdown": "^4.4.1",
114
- "typedoc-plugin-vue": "^1.3.0",
112
+ "typedoc": "^0.27.9",
113
+ "typedoc-plugin-markdown": "^4.4.2",
114
+ "typedoc-plugin-vue": "^1.4.0",
115
115
  "typedoc-vitepress-theme": "^1.1.2",
116
116
  "typescript": "^5.7.3",
117
117
  "unplugin-fonts": "^1.3.1",
118
- "vitepress": "^1.6.2",
119
- "vitest": "^1.6.0",
118
+ "vitepress": "^1.6.3",
119
+ "vitest": "^1.6.1",
120
120
  "vue-tsc": "2.2.0"
121
121
  },
122
122
  "engines": {
@@ -5,7 +5,7 @@
5
5
  ref="eoxItemFilter"
6
6
  style="overflow: auto; --background-color: none"
7
7
  @select="onSelect"
8
- .items='store.stac?.filter((item) => item.rel === "child")'
8
+ .items="store.stac?.filter((item) => item.rel === 'child')"
9
9
  >
10
10
  <h4 slot="filterstitle" style="margin: 14px 8px">{{ filtersTitle }}</h4>
11
11
 
@@ -173,6 +173,7 @@ const tooltipPropertyTransform = (param) => {
173
173
  }),
174
174
  );
175
175
 
176
+ //@ts-expect-error todo
176
177
  const tooltipProp = updatedProperties?.find((prop) => prop.id === param.key);
177
178
  if (!tooltipProp) {
178
179
  return undefined;
@@ -156,6 +156,7 @@ useOnLayersUpdate(async (evt, _payload) => {
156
156
  });
157
157
 
158
158
  const startProcess = async () => {
159
+ //@ts-expect-error todo
159
160
  const errors = jsonformEl.value?.editor.validate();
160
161
  if (errors?.length) {
161
162
  console.warn("[eodash] Form validation failed", errors);
@@ -185,6 +186,7 @@ const chartStyles = computed(() => {
185
186
  styles["height"] =
186
187
  Math.max(
187
188
  (containerEl.value?.offsetHeight ?? 0) -
189
+ //@ts-expect-error TODO
188
190
  (jsonformEl.value?.offsetHeight ?? 0),
189
191
  200,
190
192
  ) + "px";
@@ -200,4 +202,7 @@ const chartStyles = computed(() => {
200
202
  eox-chart {
201
203
  --background-color: transparent;
202
204
  }
205
+ eox-jsonform {
206
+ padding: 0.7em;
207
+ }
203
208
  </style>