@hestia-earth/ui-components 0.24.0-6 → 0.24.0-8

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.
@@ -14,6 +14,12 @@ type nodeStates = {
14
14
  type nodes = {
15
15
  [nodeType in NodeType]?: (nodeStates & IStoredNode)[];
16
16
  };
17
+ export declare const nodeTypeDataState: {
18
+ [type in NodeType]?: {
19
+ default: DataState[];
20
+ aggregated?: DataState[];
21
+ };
22
+ };
17
23
  export declare class HeNodeStoreService {
18
24
  private nodeService;
19
25
  private _nodesLoadRequests;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.24.0-6",
3
+ "version": "0.24.0-8",
4
4
  "description": "Hestia reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2,6 +2,7 @@
2
2
  import { ISiteJSONLD, Site, IOrganisationJSONLD, Organisation } from '@hestia-earth/schema';
3
3
  import { Observable } from 'rxjs';
4
4
  import { HeNodeService, HeNodeStoreService } from '../../node';
5
+ import { IMarker, IPolygonMap } from '../../common/maps-utils';
5
6
  import * as i0 from "@angular/core";
6
7
  type site = ISiteJSONLD | Site | IOrganisationJSONLD | Organisation;
7
8
  export declare class SitesMapsComponent {
@@ -25,16 +26,18 @@ export declare class SitesMapsComponent {
25
26
  protected options: google.maps.MapOptions;
26
27
  private originalSites;
27
28
  private nodes;
28
- protected markers: import("@angular/core").Signal<import("../../common/maps-utils").IMarker[]>;
29
+ protected markers: import("@angular/core").Signal<IMarker[]>;
29
30
  private _sitePolygons;
30
- protected sitePolygons: import("@angular/core").Signal<import("../../common/maps-utils").IPolygonMap[]>;
31
+ protected sitePolygons: import("@angular/core").Signal<IPolygonMap[]>;
31
32
  private _termPolygons;
32
- protected termPolygons: import("@angular/core").Signal<import("../../common/maps-utils").IPolygonMap[]>;
33
+ protected termPolygons: import("@angular/core").WritableSignal<IPolygonMap[]>;
33
34
  protected showNoLocation: import("@angular/core").Signal<boolean>;
34
35
  protected mapCenter: import("@angular/core").Signal<google.maps.LatLngLiteral | google.maps.LatLng>;
35
36
  constructor(mapLoaded$: Observable<boolean>, nodeService: HeNodeService, nodeStoreService: HeNodeStoreService);
36
37
  private centerPolygons;
37
38
  private loadTermId;
39
+ protected trackByMarker(_index: number, { position, label: { text } }: IMarker): string;
40
+ protected trackByPolygon(_index: number, { id }: IPolygonMap): string;
38
41
  protected mapLoaded(): void;
39
42
  static ɵfac: i0.ɵɵFactoryDeclaration<SitesMapsComponent, never>;
40
43
  static ɵcmp: i0.ɵɵComponentDeclaration<SitesMapsComponent, "he-sites-maps", never, { "loadPolygons": { "alias": "loadPolygons"; "required": false; }; "sites": { "alias": "sites"; "required": false; }; "center": { "alias": "center"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "showNotice": { "alias": "showNotice"; "required": false; }; }, {}, never, never, false, never>;