@c8y/ngx-components 1021.75.8 → 1021.77.0

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 (73) hide show
  1. package/branding/shared/supports-branding.service.d.ts.map +1 -1
  2. package/core/common/ApplicationOptions.d.ts +2 -2
  3. package/core/dashboard/widgets-dashboard.component.d.ts +4 -2
  4. package/core/dashboard/widgets-dashboard.component.d.ts.map +1 -1
  5. package/core/login/login.component.d.ts.map +1 -1
  6. package/core/login/login.service.d.ts +1 -0
  7. package/core/login/login.service.d.ts.map +1 -1
  8. package/core/navigator/navigator-bottom/navigator-bottom.service.d.ts +3 -1
  9. package/core/navigator/navigator-bottom/navigator-bottom.service.d.ts.map +1 -1
  10. package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
  11. package/echart/charts.component.d.ts.map +1 -1
  12. package/echart/models/datapoints-graph-widget.model.d.ts +10 -0
  13. package/echart/models/datapoints-graph-widget.model.d.ts.map +1 -1
  14. package/echart/services/chart-realtime.service.d.ts +2 -5
  15. package/echart/services/chart-realtime.service.d.ts.map +1 -1
  16. package/echart/services/echarts-options.service.d.ts +4 -13
  17. package/echart/services/echarts-options.service.d.ts.map +1 -1
  18. package/echart/services/y-axis.service.d.ts +1 -1
  19. package/echart/services/y-axis.service.d.ts.map +1 -1
  20. package/esm2022/branding/shared/supports-branding.service.mjs +6 -3
  21. package/esm2022/core/beta-feature/beta-preview-button.component.mjs +3 -3
  22. package/esm2022/core/beta-feature/beta-preview.component.mjs +3 -3
  23. package/esm2022/core/common/ApplicationOptions.mjs +1 -1
  24. package/esm2022/core/dashboard/widgets-dashboard.component.mjs +9 -5
  25. package/esm2022/core/login/login.component.mjs +2 -1
  26. package/esm2022/core/login/login.service.mjs +5 -1
  27. package/esm2022/core/navigator/navigator-bottom/navigator-bottom.service.mjs +13 -6
  28. package/esm2022/datapoint-explorer/view/datapoint-explorer.component.mjs +4 -3
  29. package/esm2022/device-map/device-map.component.mjs +2 -2
  30. package/esm2022/echart/charts.component.mjs +8 -2
  31. package/esm2022/echart/models/datapoints-graph-widget.model.mjs +1 -1
  32. package/esm2022/echart/services/chart-realtime.service.mjs +1 -1
  33. package/esm2022/echart/services/echarts-options.service.mjs +23 -15
  34. package/esm2022/echart/services/y-axis.service.mjs +32 -1
  35. package/esm2022/map/cluster-map.component.mjs +6 -3
  36. package/esm2022/map/map-status.component.mjs +23 -5
  37. package/esm2022/map/map.model.mjs +5 -2
  38. package/esm2022/map/map.service.mjs +17 -1
  39. package/esm2022/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.mjs +4 -3
  40. package/esm2022/widgets/implementations/map/map-widget-config.component.mjs +25 -6
  41. package/esm2022/widgets/implementations/map/map-widget.component.mjs +40 -11
  42. package/fesm2022/c8y-ngx-components-branding-shared.mjs +5 -2
  43. package/fesm2022/c8y-ngx-components-branding-shared.mjs.map +1 -1
  44. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +3 -2
  45. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  46. package/fesm2022/c8y-ngx-components-device-map.mjs +1 -1
  47. package/fesm2022/c8y-ngx-components-device-map.mjs.map +1 -1
  48. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  49. package/fesm2022/c8y-ngx-components-echart.mjs +60 -15
  50. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  51. package/fesm2022/c8y-ngx-components-map.mjs +47 -7
  52. package/fesm2022/c8y-ngx-components-map.mjs.map +1 -1
  53. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +3 -2
  54. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  55. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs +67 -19
  56. package/fesm2022/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
  57. package/fesm2022/c8y-ngx-components.mjs +26 -12
  58. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  59. package/locales/locales.pot +19 -7
  60. package/map/cluster-map.component.d.ts +2 -1
  61. package/map/cluster-map.component.d.ts.map +1 -1
  62. package/map/map-status.component.d.ts +7 -2
  63. package/map/map-status.component.d.ts.map +1 -1
  64. package/map/map.model.d.ts +1 -0
  65. package/map/map.model.d.ts.map +1 -1
  66. package/map/map.service.d.ts +1 -0
  67. package/map/map.service.d.ts.map +1 -1
  68. package/package.json +1 -1
  69. package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts.map +1 -1
  70. package/widgets/implementations/map/map-widget-config.component.d.ts +1 -0
  71. package/widgets/implementations/map/map-widget-config.component.d.ts.map +1 -1
  72. package/widgets/implementations/map/map-widget.component.d.ts +10 -4
  73. package/widgets/implementations/map/map-widget.component.d.ts.map +1 -1
@@ -1,33 +1,39 @@
1
1
  import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IManagedObject, InventoryService } from '@c8y/client';
3
- import { ClusterMapComponent, ClusterMapConfig } from '@c8y/ngx-components/map';
4
- import { DashboardChildComponent, DynamicComponent, DynamicComponentAlertAggregator } from '@c8y/ngx-components';
3
+ import { ClusterMapComponent, ClusterMapConfig, MapService, PositionManagedObject } from '@c8y/ngx-components/map';
4
+ import { DashboardChildComponent, DynamicComponent, DynamicComponentAlertAggregator, WidgetsDashboardComponent } from '@c8y/ngx-components';
5
5
  import { MapWidgetConfig } from './map-widget.model';
6
6
  import { ContextDashboardComponent } from '@c8y/ngx-components/context-dashboard';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class MapWidgetComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit, DynamicComponent {
9
9
  private dashboardContextComponent;
10
10
  private inventory;
11
+ private mapService;
12
+ private widgetsDashboardComponent;
11
13
  mapConfig: ClusterMapConfig;
12
14
  rootNode: IManagedObject;
13
15
  config: MapWidgetConfig;
14
16
  clusterMap: ClusterMapComponent;
15
17
  alerts: DynamicComponentAlertAggregator;
18
+ assets: PositionManagedObject[];
16
19
  private TIMEOUT_ERROR_TEXT;
17
20
  private SERVER_ERROR_TEXT;
18
21
  private savedNode;
19
22
  private destroy$;
20
- constructor(dashboardChild: DashboardChildComponent, dashboardContextComponent: ContextDashboardComponent, inventory: InventoryService);
23
+ private resizeObserver;
24
+ constructor(dashboardChild: DashboardChildComponent, dashboardContextComponent: ContextDashboardComponent, inventory: InventoryService, mapService: MapService, widgetsDashboardComponent: WidgetsDashboardComponent);
21
25
  ngOnInit(): Promise<void>;
22
26
  ngOnChanges(changes: SimpleChanges): void;
23
27
  ngAfterViewInit(): void;
24
28
  startFollow(context: any): void;
25
29
  stopFollow(): void;
26
30
  ngOnDestroy(): void;
31
+ fitToBounds(): Promise<void>;
32
+ private updateAssets;
27
33
  private listenToWidgetResizeEvent;
28
34
  private subscribeToErrorsOccurred;
29
35
  private updateMapConfigRealtime;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<MapWidgetComponent, [null, { optional: true; }, null]>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapWidgetComponent, [null, { optional: true; }, null, null, { optional: true; }]>;
31
37
  static ɵcmp: i0.ɵɵComponentDeclaration<MapWidgetComponent, "c8y-map-widget", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
32
38
  }
33
39
  //# sourceMappingURL=map-widget.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"map-widget.component.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/map/map-widget.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGb,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAa,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAGL,uBAAuB,EAEvB,gBAAgB,EAEhB,+BAA+B,EAGhC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;;AAMlF,qBAiBa,kBACX,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB;IAmB1D,OAAO,CAAC,yBAAyB;IAC7C,OAAO,CAAC,SAAS;IAlBnB,SAAS,EAAE,gBAAgB,CAAsB;IACjD,QAAQ,EAAE,cAAc,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IAGjC,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,+BAA+B,CAAC;IAExC,OAAO,CAAC,kBAAkB,CAExB;IACF,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,QAAQ,CAAuB;gBAGrC,cAAc,EAAE,uBAAuB,EACnB,yBAAyB,EAAE,yBAAyB,EAChE,SAAS,EAAE,gBAAgB;IAK/B,QAAQ;IAsBd,WAAW,CAAC,OAAO,EAAE,aAAa;IAMlC,eAAe,IAAI,IAAI;IAIvB,WAAW,CAAC,OAAO,KAAA;IAWnB,UAAU;IAWV,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,yBAAyB;IAWjC,OAAO,CAAC,yBAAyB;IAgBjC,OAAO,CAAC,uBAAuB;yCA/GpB,kBAAkB;2CAAlB,kBAAkB;CAkH9B"}
1
+ {"version":3,"file":"map-widget.component.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/map/map-widget.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGb,SAAS,EACT,SAAS,EACT,MAAM,EAEN,aAAa,EAEd,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACn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