@eodash/eodash 5.0.0-rc.2 → 5.0.0-rc.2.2

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 (49) hide show
  1. package/core/client/components/DashboardLayout.vue +3 -2
  2. package/core/client/components/DynamicWebComponent.vue +10 -3
  3. package/core/client/components/Header.vue +1 -1
  4. package/core/client/components/MobileLayout.vue +1 -0
  5. package/core/client/composables/DefineTemplate.js +13 -2
  6. package/core/client/composables/DefineWidgets.js +9 -4
  7. package/core/client/composables/EodashMap.js +1 -1
  8. package/core/client/composables/EodashProcess.js +1 -1
  9. package/core/client/eodash.js +14 -4
  10. package/core/client/eodashSTAC/EodashCollection.js +9 -5
  11. package/core/client/eodashSTAC/helpers.js +6 -3
  12. package/core/client/eodashSTAC/triggers.js +8 -4
  13. package/core/client/types.ts +18 -13
  14. package/core/client/utils/index.js +112 -32
  15. package/core/client/views/Dashboard.vue +23 -6
  16. package/dist/client/{DashboardLayout-VrJIbhe8.js → DashboardLayout-ByVMURpM.js} +6 -6
  17. package/dist/client/{DynamicWebComponent-BCwpocDX.js → DynamicWebComponent-BRQQ5AXV.js} +11 -4
  18. package/dist/client/{EodashDatePicker-Bp5ec3BC.js → EodashDatePicker-DyLo_JUC.js} +3 -3
  19. package/dist/client/{EodashItemFilter-Cx0t-qeW.js → EodashItemFilter-BR572AaH.js} +1 -1
  20. package/dist/client/{EodashLayerControl-DERx00In.js → EodashLayerControl-C_mi-Hoo.js} +1 -1
  21. package/dist/client/{EodashLayoutSwitcher-DTS7otlk.js → EodashLayoutSwitcher-D4ooLbys.js} +2 -2
  22. package/dist/client/{EodashMap-C-I6puhb.js → EodashMap-CGFv4e85.js} +2 -2
  23. package/dist/client/{EodashMapBtns-CWgtJiG4.js → EodashMapBtns-_M7SW7Is.js} +4 -4
  24. package/dist/client/{EodashProcess-DWrTIyHT.js → EodashProcess-ZQAMi9Pc.js} +2 -2
  25. package/dist/client/{EodashStacInfo-Dvsk97Mz.js → EodashStacInfo-CwOCcsGl.js} +1 -1
  26. package/dist/client/{EodashTools-CdnjgTTl.js → EodashTools-C_X0RPIp.js} +4 -4
  27. package/dist/client/{ExportState-S4lcehm3.js → ExportState-DNUSRJSJ.js} +4 -4
  28. package/dist/client/{Footer-DlIEbXp-.js → Footer-FUp1Te0L.js} +1 -1
  29. package/dist/client/{Header-CTiEXLi0.js → Header-BcHAtFqr.js} +5 -5
  30. package/dist/client/{MobileLayout-DRgyQYFz.js → MobileLayout-CUHZFLDY.js} +11 -11
  31. package/dist/client/{PopUp-CzqV8BFZ.js → PopUp-CEmhdNIj.js} +3 -3
  32. package/dist/client/{VImg-Bn8bCvVM.js → VImg-Cdaw92OV.js} +2 -2
  33. package/dist/client/{VMain-2GOqWb6m.js → VMain-B7G2T3Zv.js} +1 -1
  34. package/dist/client/{VOverlay-BetC0LGI.js → VOverlay-Mf1pOmgW.js} +3 -3
  35. package/dist/client/{VTooltip-BWg0dxx5.js → VTooltip-9810qjB2.js} +3 -3
  36. package/dist/client/{WidgetsContainer-Cv466WUW.js → WidgetsContainer-GUwXMh9d.js} +1 -1
  37. package/dist/client/{asWebComponent-CLUhauLl.js → asWebComponent--e4yqM3f.js} +180 -67
  38. package/dist/client/eo-dash.css +2 -2
  39. package/dist/client/eo-dash.js +1 -1
  40. package/dist/client/{forwardRefs-CxSsJulB.js → forwardRefs-B9UH8QZK.js} +1 -1
  41. package/dist/client/{index-BMj56LY3.js → index-D-lbt2my.js} +1 -1
  42. package/dist/client/{transition-DidoPMgC.js → transition-CTjQmgIS.js} +1 -1
  43. package/dist/types/core/client/eodashSTAC/helpers.d.ts +15 -6
  44. package/dist/types/core/client/types.d.ts +15 -11
  45. package/dist/types/core/client/utils/index.d.ts +1 -1
  46. package/dist/types/widgets/EodashStacInfo.vue.d.ts +2 -2
  47. package/dist/types/widgets/PopUp.vue.d.ts +2 -2
  48. package/package.json +2 -1
  49. package/widgets/EodashDatePicker.vue +18 -0
@@ -1,2 +1,2 @@
1
- export { aX as EodashConstructor, aY as register, aZ as store } from './asWebComponent-CLUhauLl.js';
1
+ export { aX as EodashConstructor, aY as register, aZ as store } from './asWebComponent--e4yqM3f.js';
2
2
  import 'vue';
@@ -1,5 +1,5 @@
1
1
  import { shallowRef, computed, watch } from 'vue';
2
- import { p as propsFactory, aI as getCurrentInstance } from './asWebComponent-CLUhauLl.js';
2
+ import { p as propsFactory, aI as getCurrentInstance } from './asWebComponent--e4yqM3f.js';
3
3
 
4
4
  class Box {
5
5
  constructor(_ref) {
@@ -1,5 +1,5 @@
1
1
  import { TransitionGroup, Transition, h, camelize } from 'vue';
2
- import { g as genericComponent, p as propsFactory } from './asWebComponent-CLUhauLl.js';
2
+ import { g as genericComponent, p as propsFactory } from './asWebComponent--e4yqM3f.js';
3
3
 
4
4
  // Utilities
5
5
  const makeTransitionProps = propsFactory({
@@ -1,5 +1,5 @@
1
1
  import { h, mergeProps, TransitionGroup, Transition } from 'vue';
2
- import { p as propsFactory } from './asWebComponent-CLUhauLl.js';
2
+ import { p as propsFactory } from './asWebComponent--e4yqM3f.js';
3
3
 
4
4
  // Utilities
5
5
  const makeTransitionProps = propsFactory({
@@ -1,5 +1,8 @@
1
- /** @param {import("stac-ts").StacLink[]} [links] */
2
- export function generateFeatures(links?: import("stac-ts").StacLink[]): {
1
+ /**
2
+ * @param {import("stac-ts").StacLink[]} [links]
3
+ * @param {Record<string,any>} [extraProperties]
4
+ **/
5
+ export function generateFeatures(links?: import("stac-ts").StacLink[], extraProperties?: Record<string, any>): {
3
6
  type: string;
4
7
  crs: {
5
8
  type: string;
@@ -64,7 +67,13 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
64
67
  "icon-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | undefined;
65
68
  "icon-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
66
69
  "icon-height"?: import("ol/expr/expression.js").ExpressionValue | undefined;
67
- "icon-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
70
+ "icon-rotation"?: import("ol/expr/expression.js" /**
71
+ * Removes the layer with the id provided and injects an array of layers in its position
72
+ * @param {Record<string,any>[]} currentLayers
73
+ * @param {string} oldLayer - id of the layer to be replaced
74
+ * @param {Record<string,any>[]} newLayers - array of layers to replace the old layer
75
+ * @returns {Record<string,any>[] | undefined}
76
+ */).ExpressionValue | undefined;
68
77
  "icon-rotate-with-view"?: boolean | undefined;
69
78
  "icon-offset"?: number[] | import("ol/expr/expression.js").ExpressionValue | undefined;
70
79
  "icon-offset-origin"?: import("ol/style/Icon.js").IconOrigin | undefined;
@@ -92,7 +101,7 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
92
101
  "circle-stroke-color"?: import("ol/style/webgl.js").ColorExpression | undefined;
93
102
  "circle-stroke-width"?: import("ol/expr/expression.js").ExpressionValue | undefined;
94
103
  "circle-opacity"?: import("ol/expr/expression.js").ExpressionValue | undefined;
95
- "circle-displacement"?: number[] | import("ol/expr/expression.js").ExpressionValue[] | undefined;
104
+ "circle-displacement"?: number[] | import("ol/expr/expression.js" /** @type { string | undefined} */).ExpressionValue[] | undefined;
96
105
  "circle-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
97
106
  "circle-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
98
107
  "circle-rotate-with-view"?: boolean | undefined;
@@ -108,8 +117,8 @@ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): P
108
117
  "shape-rotation"?: import("ol/expr/expression.js").ExpressionValue | undefined;
109
118
  "shape-rotate-with-view"?: boolean | undefined;
110
119
  "shape-scale"?: import("ol/size.js").Size | import("ol/expr/expression.js").ExpressionValue | import("ol/expr/expression.js").ExpressionValue[] | undefined;
111
- variables?: Record<string, any>;
112
- legend?: Record<string, any>;
120
+ variables?: Record<string, string | number | boolean | null | undefined>;
121
+ legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
113
122
  jsonform?: Record<string, any>;
114
123
  tooltip?: {
115
124
  id: string;
@@ -14,7 +14,7 @@ export interface WebComponentProps<T extends ExecutionTime = "compiletime"> {
14
14
  * import maps are not available in runtime config
15
15
  * :::
16
16
  */
17
- link: T extends "runtime" ? string : string | (() => Promise<unknown>);
17
+ link?: T extends "runtime" ? string : string | (() => Promise<unknown>);
18
18
  /**
19
19
  * Exported Constructor, needs to be provided if the web component is not
20
20
  * registered in by the [link](#link) provided
@@ -161,6 +161,15 @@ export type MultiTemplates<T extends ExecutionTime = "compiletime"> = Record<str
161
161
  export type StacEndpoint = `${string}/catalog.json`;
162
162
  /** @group Eodash */
163
163
  type ExecutionTime = "runtime" | "compiletime";
164
+ type EodashFont = {
165
+ /**
166
+ * Link to stylesheet that defines font-face. Could be either a relative
167
+ * or absolute URL.
168
+ */
169
+ link?: string;
170
+ /** Font family name. */
171
+ family: string;
172
+ };
164
173
  /**
165
174
  * Eodash instance API
166
175
  *
@@ -178,14 +187,9 @@ export type Eodash<T extends ExecutionTime = "compiletime"> = {
178
187
  /** Custom error message to alert the users if something crashes */
179
188
  errorMessage?: string;
180
189
  /** Fetches the specified font family from the specified `link` property. */
181
- font?: {
182
- /**
183
- * Link to stylesheet that defines font-face. Could be either a relative
184
- * or absolute URL.
185
- */
186
- link: string;
187
- /** Font family name. */
188
- family: string;
190
+ font?: EodashFont | {
191
+ body: EodashFont;
192
+ headers: EodashFont;
189
193
  };
190
194
  /** Title that will be shown in the app header */
191
195
  name: string;
@@ -270,8 +274,8 @@ export declare function register(): void;
270
274
  export declare const store: typeof import("./store").default;
271
275
  export * from "./main.js";
272
276
  export type EodashStyleJson = import("ol/style/webgl.js").WebGLStyle & {
273
- variables?: Record<string, any>;
274
- legend?: Record<string, any>;
277
+ variables?: Record<string, string | number | boolean | null | undefined>;
278
+ legend?: import("@eox/layercontrol/src/components/layer-config.js").EOxLayerControlLayerConfig["layerConfig"]["legend"];
275
279
  jsonform?: Record<string, any>;
276
280
  tooltip?: {
277
281
  id: string;
@@ -1,3 +1,3 @@
1
- export function loadFont(family?: string, link?: string, isWebComponent?: boolean): Promise<string>;
1
+ export function loadFont(fontConfig: import("../types").Eodash["brand"]["font"], isWebComponent: boolean): Promise<string[]>;
2
2
  export function copyToClipBoard(text: string, showIcon: import("vue").Ref<boolean>): Promise<void>;
3
3
  export function setCollectionsPalette(colors: string[]): void;
@@ -1,18 +1,18 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
+ body: unknown[];
2
3
  styleOverride: string;
3
4
  tags: unknown[];
4
5
  header: unknown[];
5
6
  footer: unknown[];
6
- body: unknown[];
7
7
  featured: unknown[];
8
8
  allowHtml: boolean;
9
9
  subheader: unknown[];
10
10
  $props: {
11
+ readonly body?: unknown[] | undefined;
11
12
  readonly styleOverride?: string | undefined;
12
13
  readonly tags?: unknown[] | undefined;
13
14
  readonly header?: unknown[] | undefined;
14
15
  readonly footer?: unknown[] | undefined;
15
- readonly body?: unknown[] | undefined;
16
16
  readonly featured?: unknown[] | undefined;
17
17
  readonly allowHtml?: boolean | undefined;
18
18
  readonly subheader?: unknown[] | undefined;
@@ -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;
7
8
  height: string;
8
9
  maxHeight: string;
9
10
  maxWidth: string;
10
- width: string;
11
11
  widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
12
12
  $props: {
13
+ readonly width?: string | undefined;
13
14
  readonly height?: string | undefined;
14
15
  readonly maxHeight?: string | undefined;
15
16
  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
+ "version": "5.0.0-rc.2.2",
4
4
  "type": "module",
5
5
  "types": "./dist/types/core/client/types.d.ts",
6
6
  "files": [
@@ -104,6 +104,7 @@
104
104
  "cypress": "^13.17.0",
105
105
  "eslint": "^9.18.0",
106
106
  "eslint-plugin-vue": "^9.32.0",
107
+ "pkg-pr-new": "^0.0.39",
107
108
  "prettier": "^3.4.2",
108
109
  "rollup": "^4.31.0",
109
110
  "terminate": "^2.8.0",
@@ -298,6 +298,24 @@ onMounted(() => {
298
298
  makePanelTransparent(rootEl);
299
299
  </script>
300
300
  <style>
301
+ .vc-popover-content {
302
+ --vc-nav-hover-bg: rgba(var(--v-theme-on-surface), 0.1);
303
+ --vc-nav-item-active-color: rgb(var(--v-theme-on-secondary));
304
+ --vc-nav-item-active-bg: rgba(var(--v-theme-secondary), 0.8);
305
+ --vc-focus-ring: 0 0 0 2px rgba(var(--v-theme-secondary), 0.5);
306
+ }
307
+ .vc-container {
308
+ --vc-day-content-hover-bg: rgba(var(--v-theme-on-surface), 0.2);
309
+ --vc-focus-ring: 0 0 0 2px rgba(var(--v-theme-secondary), 0.4);
310
+ --vc-header-arrow-hover-bg: rgba(var(--v-theme-secondary), 0.1);
311
+ }
312
+ .vc-attr {
313
+ --vc-accent-600: rgba(var(--v-theme-secondary), 0.8);
314
+ }
315
+ .datePicker {
316
+ --vc-day-content-hover-bg: red;
317
+ }
318
+
301
319
  @media (min-width: 960px) {
302
320
  .datePicker {
303
321
  position: absolute;