@eodash/eodash 5.0.0-alpha.2.21 → 5.0.0-alpha.2.22

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 (68) hide show
  1. package/core/client/components/DashboardLayout.vue +1 -1
  2. package/core/client/composables/DefineEodash.js +1 -1
  3. package/core/client/main.js +1 -0
  4. package/core/client/types.d.ts +2 -15
  5. package/core/client/utils/helpers.js +2 -2
  6. package/dist/client/{DashboardLayout-DEZe5rZn.js → DashboardLayout-CWMOVmk3.js} +4 -4
  7. package/dist/client/{DynamicWebComponent-Cp_3d3nd.js → DynamicWebComponent-B-mjw5sF.js} +1 -1
  8. package/dist/client/{EodashDatePicker-BwQ9Bw9-.js → EodashDatePicker-txc8DnNS.js} +3 -3
  9. package/dist/client/{EodashItemFilter-BtihrBap.js → EodashItemFilter-e1TSlLwN.js} +1 -1
  10. package/dist/client/{EodashLayerControl-BuZgXYop.js → EodashLayerControl-Nb534QRR.js} +1 -1
  11. package/dist/client/{EodashMap-C9hvsdhf.js → EodashMap-aSeMCdc9.js} +1 -1
  12. package/dist/client/{EodashMapBtns-BTG6oYL5.js → EodashMapBtns-Ca1Qhr1g.js} +2 -2
  13. package/dist/client/{ExportState-GDJ8YxS9.js → ExportState-th1Fi4rX.js} +4 -4
  14. package/dist/client/{Footer-Cul4HvW4.js → Footer-D1svRzeT.js} +1 -1
  15. package/dist/client/{Header-BikVMROv.js → Header-CHbpzVuR.js} +3 -3
  16. package/dist/client/{MobileLayout-ByPGOgnO.js → MobileLayout-gsqIEStj.js} +5 -5
  17. package/dist/client/{PopUp-AJqPEHmR.js → PopUp-De5xHsQY.js} +3 -3
  18. package/dist/client/{VImg-CY7ndzv2.js → VImg-DSVHjLea.js} +2 -2
  19. package/dist/client/{VMain-BlIaUbM6.js → VMain-B8ng5Iq2.js} +1 -1
  20. package/dist/client/{VOverlay-CiMWDe2b.js → VOverlay-C2dm6npC.js} +3 -3
  21. package/dist/client/{WidgetsContainer-DG9sQaF0.js → WidgetsContainer-DGFO2398.js} +1 -1
  22. package/dist/client/{asWebComponent-6g8pz2_C.js → asWebComponent-BwGwLkRd.js} +8 -8
  23. package/dist/client/eo-dash.js +1 -1
  24. package/dist/client/{forwardRefs-DnXzPqIo.js → forwardRefs-BS7kubfY.js} +1 -1
  25. package/dist/client/{index-14PHPf-A.js → index-B7oio0aX.js} +1 -1
  26. package/dist/client/style.css +1 -1
  27. package/dist/client/{transition-CGVKXZbS.js → transition-BDNLuegD.js} +1 -1
  28. package/dist/types/core/client/App.vue.d.ts +7 -0
  29. package/dist/types/core/client/asWebComponent.d.ts +4 -0
  30. package/dist/types/core/client/components/DashboardLayout.vue.d.ts +2 -0
  31. package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +18 -0
  32. package/dist/types/core/client/components/ErrorAlert.vue.d.ts +2 -0
  33. package/dist/types/core/client/components/Footer.vue.d.ts +2 -0
  34. package/dist/types/core/client/components/Header.vue.d.ts +2 -0
  35. package/dist/types/core/client/components/IframeWrapper.vue.d.ts +7 -0
  36. package/dist/types/core/client/components/Loading.vue.d.ts +2 -0
  37. package/dist/types/core/client/components/MobileLayout.vue.d.ts +2 -0
  38. package/dist/types/core/client/composables/DefineEodash.d.ts +2 -0
  39. package/dist/types/core/client/composables/DefineWidgets.d.ts +14 -0
  40. package/dist/types/core/client/composables/EodashMap.d.ts +5 -0
  41. package/dist/types/core/client/composables/index.d.ts +29 -0
  42. package/dist/types/core/client/eodash.d.ts +8 -0
  43. package/dist/types/core/client/main.d.ts +3 -0
  44. package/dist/types/core/client/plugins/axios.d.ts +2 -0
  45. package/dist/types/core/client/plugins/index.d.ts +3 -0
  46. package/dist/types/core/client/plugins/vuetify.d.ts +82 -0
  47. package/dist/types/core/client/render.d.ts +1 -0
  48. package/dist/types/core/client/store/Actions.d.ts +11 -0
  49. package/dist/types/core/client/store/States.d.ts +21 -0
  50. package/dist/types/core/client/store/index.d.ts +2 -0
  51. package/dist/types/core/client/store/stac.d.ts +25 -0
  52. package/dist/types/core/client/types.d.ts +278 -0
  53. package/dist/types/core/client/utils/createLayers.d.ts +44 -0
  54. package/dist/types/core/client/utils/eodashSTAC.d.ts +82 -0
  55. package/dist/types/core/client/utils/helpers.d.ts +80 -0
  56. package/dist/types/core/client/utils/index.d.ts +2 -0
  57. package/dist/types/core/client/utils/keys.d.ts +6 -0
  58. package/dist/types/core/client/utils/states.d.ts +14 -0
  59. package/dist/types/core/client/views/Dashboard.vue.d.ts +9 -0
  60. package/dist/types/widgets/EodashDatePicker.vue.d.ts +7 -0
  61. package/dist/types/widgets/EodashItemFilter.vue.d.ts +33 -0
  62. package/dist/types/widgets/EodashLayerControl.vue.d.ts +7 -0
  63. package/dist/types/widgets/EodashMap.vue.d.ts +7 -0
  64. package/dist/types/widgets/EodashMapBtns.vue.d.ts +9 -0
  65. package/dist/types/widgets/ExportState.vue.d.ts +7 -0
  66. package/dist/types/widgets/PopUp.vue.d.ts +14 -0
  67. package/dist/types/widgets/WidgetsContainer.vue.d.ts +7 -0
  68. package/package.json +7 -5
@@ -0,0 +1,82 @@
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
+ /** @param {string} collectionUrl */
41
+ constructor(collectionUrl: string);
42
+ get collectionStac(): import("stac-ts").StacCollection | undefined;
43
+ /**
44
+ * @type {import("stac-ts").StacLink
45
+ * | import("stac-ts").StacItem
46
+ * | undefined}
47
+ */
48
+ selectedItem: import("stac-ts").StacLink | import("stac-ts").StacItem | undefined;
49
+ /**
50
+ * @async
51
+ * @param {import('stac-ts').StacLink | Date} [linkOrDate]
52
+ * @returns
53
+ */
54
+ createLayersJson: (linkOrDate?: Date | import("stac-ts").StacLink | undefined) => Promise<Record<string, any>[]>;
55
+ /**
56
+ * @param {import("stac-ts").StacItem} item
57
+ * @param {string} itemUrl
58
+ * @param {string} title
59
+ * @param {boolean} isGeoDB
60
+ * @param {string} [itemDatetime]
61
+ * @returns {Promise<Record<string,any>[]>} arrays
62
+ * */
63
+ buildJsonArray(item: import("stac-ts").StacItem, itemUrl: string, title: string, isGeoDB: boolean, itemDatetime?: string | undefined): Promise<Record<string, any>[]>;
64
+ fetchCollection(): Promise<import("stac-ts").StacCollection>;
65
+ getItems(): import("stac-ts").StacLink[] | undefined;
66
+ getDates(): Date[] | undefined;
67
+ getExtent(): Promise<import("stac-ts").Extents | undefined>;
68
+ /**
69
+ * Get closest Item Link from a certain date,
70
+ * get the latest if no date provided
71
+ * @param {Date} [date]
72
+ **/
73
+ getItem(date?: Date | undefined): import("stac-ts").StacLink | undefined;
74
+ /**
75
+ *
76
+ * @param {string} datetime
77
+ * @param {string} layer
78
+ * @param {string} map
79
+ */
80
+ updateLayerJson(datetime: string, layer: string, map: string): Promise<Record<string, any>[] | undefined>;
81
+ #private;
82
+ }
@@ -0,0 +1,80 @@
1
+ /** @param {import("stac-ts").StacLink[]} [links] */
2
+ export function generateFeatures(links?: import("stac-ts").StacLink[] | undefined): {
3
+ type: string;
4
+ crs: {
5
+ type: string;
6
+ properties: {
7
+ name: string;
8
+ };
9
+ };
10
+ features: {
11
+ type: string;
12
+ geometry: {
13
+ type: string;
14
+ coordinates: [number, number];
15
+ };
16
+ }[];
17
+ };
18
+ /** @param { import("ol/layer/WebGLTile").Style & { jsonform?: Record<string,any> } } [style] */
19
+ export function extractLayerConfig(style?: (import("ol/layer/WebGLTile").Style & {
20
+ jsonform?: Record<string, any>;
21
+ }) | undefined): {
22
+ layerConfig: Record<string, unknown> | undefined;
23
+ style: (import("ol/layer/WebGLTile").Style & {
24
+ jsonform?: Record<string, any>;
25
+ }) | undefined;
26
+ };
27
+ /**
28
+ * Function to extract collection urls from an indicator
29
+ * @param {import("stac-ts").StacCatalog
30
+ * | import("stac-ts").StacCollection
31
+ * | import("stac-ts").StacItem
32
+ * | null
33
+ * } stacObject
34
+ * @param {string} basepath
35
+ * @returns {string[]}
36
+ */
37
+ export function extractCollectionUrls(stacObject: import("stac-ts").StacCatalog | import("stac-ts").StacCollection | import("stac-ts").StacItem | null, basepath: string): string[];
38
+ /**
39
+ *
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 setMapProjFromCol(STAcCollection?: import("stac-ts").StacCollection | undefined): Promise<void>;
52
+ export function extractRoles(properties: Record<string, any>, linkOrAsset: import("stac-ts").StacLink | import("stac-ts").StacAsset): void;
53
+ export function fetchStyle(item: import("stac-ts").StacItem, itemUrl: string): Promise<{
54
+ variables?: {
55
+ [x: string]: string | number;
56
+ } | undefined;
57
+ color?: import("ol/expr/expression.js").ExpressionValue | undefined;
58
+ brightness?: import("ol/expr/expression.js").ExpressionValue | undefined;
59
+ contrast?: import("ol/expr/expression.js").ExpressionValue | undefined;
60
+ exposure?: import("ol/expr/expression.js").ExpressionValue | undefined;
61
+ saturation?: import("ol/expr/expression.js").ExpressionValue | undefined;
62
+ gamma?: import("ol/expr/expression.js").ExpressionValue | undefined;
63
+ jsonform?: Record<string, any>;
64
+ } | undefined>;
65
+ export function getProjectionCode(projection?: string | number | {
66
+ name: string;
67
+ def: string;
68
+ } | undefined): string;
69
+ export function extractLayerDatetime(links?: import("stac-ts").StacLink[] | undefined, currentStep?: string | null | undefined): {
70
+ controlValues: string[];
71
+ currentStep: string;
72
+ slider: boolean;
73
+ disablePlay: boolean;
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: Record<string, any>, newLayers: Record<string, any>[]): Record<string, any>[] | undefined;
77
+ export function getColFromLayer(indicators: import("./eodashSTAC.js").EodashCollection[], layer: import("ol/layer").Layer): Promise<import("./eodashSTAC.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,2 @@
1
+ export function loadFont(family?: string | undefined, link?: string | undefined, isWebComponent?: boolean | undefined): Promise<string>;
2
+ export function copyToClipBoard(text: string, showIcon: import("vue").Ref<boolean>): Promise<void>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * `eodash` injection key.
3
+ *
4
+ * @see {@link "@/plugins/index.js"}
5
+ */
6
+ export const eodashKey: unique symbol;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Array of eodash STAC Collections extracted from the current selected indicator.
3
+ * Updated in {@link file://./../store/stac.js `loadSelectedSTAC`} widget
4
+ * @type {import('./eodashSTAC').EodashCollection[]}
5
+ * @private
6
+ */
7
+ export const eodashCollections: import("./eodashSTAC").EodashCollection[];
8
+ /**
9
+ * Array of eodash STAC Collections extracted from the current selected COMPARE indicator.
10
+ * Updated in {@link file://./../store/stac.js ` loadSelectedCompareSTAC`} widget
11
+ * @type {import('./eodashSTAC').EodashCollection[]}
12
+ * @private
13
+ */
14
+ export const eodashCompareCollections: import("./eodashSTAC").EodashCollection[];
@@ -0,0 +1,9 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ isWebComponent: boolean;
3
+ config?: string | undefined;
4
+ $props: {
5
+ readonly isWebComponent?: boolean | undefined;
6
+ readonly config?: string | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ hintText: string;
3
+ $props: {
4
+ readonly hintText?: string | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,33 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ enableCompare: boolean;
3
+ aggregateResults: string;
4
+ filtersTitle: string;
5
+ resultsTitle: string;
6
+ titleProperty: string;
7
+ enableHighlighting: boolean;
8
+ expandMultipleFilters: boolean;
9
+ expandMultipleResults: boolean;
10
+ filterProperties: {
11
+ keys: string[];
12
+ title: string;
13
+ type: string;
14
+ expanded?: boolean;
15
+ }[];
16
+ $props: {
17
+ readonly enableCompare?: boolean | undefined;
18
+ readonly aggregateResults?: string | undefined;
19
+ readonly filtersTitle?: string | undefined;
20
+ readonly resultsTitle?: string | undefined;
21
+ readonly titleProperty?: string | undefined;
22
+ readonly enableHighlighting?: boolean | undefined;
23
+ readonly expandMultipleFilters?: boolean | undefined;
24
+ readonly expandMultipleResults?: boolean | undefined;
25
+ readonly filterProperties?: {
26
+ keys: string[];
27
+ title: string;
28
+ type: string;
29
+ expanded?: boolean;
30
+ }[] | undefined;
31
+ };
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ map: string;
3
+ $props: {
4
+ readonly map?: string | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ enableCompare: boolean;
3
+ $props: {
4
+ readonly enableCompare?: boolean | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ exportMap: boolean;
3
+ changeProjection: boolean;
4
+ $props: {
5
+ readonly exportMap?: boolean | undefined;
6
+ readonly changeProjection?: boolean | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ getLayers: Function;
3
+ $props: {
4
+ readonly getLayers?: Function | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import("vue").DefineComponent<any, {
7
+ widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
8
+ $props: {
9
+ readonly widget?: import("../core/client/types").Widget<"compiletime"> | undefined;
10
+ };
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ declare function __VLS_template(): {
13
+ default?(_: {}): any;
14
+ };
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ widgets: Omit<import("../core/client/types").Widget<"compiletime">, "layout">[];
3
+ $props: {
4
+ readonly widgets?: Omit<import("../core/client/types").Widget<"compiletime">, "layout">[] | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@eodash/eodash",
3
- "version": "5.0.0-alpha.2.21",
3
+ "version": "5.0.0-alpha.2.22",
4
4
  "type": "module",
5
- "types": "./core/client/types.d.ts",
5
+ "types": "./dist/types/core/client/types.d.ts",
6
6
  "files": [
7
7
  "core/client",
8
8
  "widgets",
@@ -10,11 +10,11 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./core/client/types.d.ts",
13
+ "types": "./dist/types/core/client/main.d.ts",
14
14
  "default": "./core/client/main.js"
15
15
  },
16
16
  "./webcomponent": {
17
- "types": "./core/client/asWebComponent.d.ts",
17
+ "types": "./dist/types/core/client/asWebComponent.d.ts",
18
18
  "default": "./dist/client/eo-dash.js"
19
19
  },
20
20
  "./webcomponent.css": "./dist/client/style.css",
@@ -27,12 +27,13 @@
27
27
  "scripts": {
28
28
  "start": "npx eodash dev --entryPoint core/client/eodash.js",
29
29
  "prepare": "rollup -c",
30
- "prepack": "npm run build:lib",
30
+ "prepack": "npm run build:lib && npm run build:types",
31
31
  "dev": "npx eodash dev --entryPoint core/client/eodash.js",
32
32
  "dev:lib": "npx eodash dev --entryPoint core/client/eodash.js --lib",
33
33
  "build": "npx eodash build --entryPoint core/client/eodash.js",
34
34
  "build:lib": "npx eodash build --entryPoint core/client/eodash.js --lib --outDir dist/client",
35
35
  "build:cli": "rollup -c",
36
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly && cp -rf ./core/client/types.d.ts ./dist/types/core/client/types.d.ts && tsc-alias",
36
37
  "check": "vue-tsc --noEmit --skipLibCheck && eslint .",
37
38
  "format": "prettier . --write --ignore-unknown",
38
39
  "preview": "npx eodash preview",
@@ -87,6 +88,7 @@
87
88
  "prettier": "^3.3.3",
88
89
  "rollup": "^4.21.3",
89
90
  "terminate": "^2.8.0",
91
+ "tsc-alias": "^1.8.10",
90
92
  "typedoc": "^0.26.7",
91
93
  "typedoc-plugin-markdown": "^4.2.7",
92
94
  "typedoc-plugin-vue": "^1.2.0",