@provoly/dashboard 0.15.6 → 0.15.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.
Files changed (74) hide show
  1. package/admin/i18n/en.translations.d.ts +1 -0
  2. package/admin/i18n/fr.translations.d.ts +1 -0
  3. package/assets/svgs/arrow-left-s-fill.svg +1 -0
  4. package/assets/svgs/arrow-right-s-fill.svg +1 -0
  5. package/assets/svgs/skip-left-fill.svg +1 -0
  6. package/assets/svgs/skip-right-fill.svg +1 -0
  7. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +8 -5
  8. package/esm2022/admin/components/admin-metadata/admin-select-metadata/admin-select-metadata.component.mjs +15 -13
  9. package/esm2022/admin/i18n/en.translations.mjs +3 -2
  10. package/esm2022/admin/i18n/fr.translations.mjs +3 -2
  11. package/esm2022/components/metadata-editor/metadata-editor.component.mjs +4 -4
  12. package/esm2022/dataset/components/dataset.component.mjs +3 -2
  13. package/esm2022/lib/core/auth/geoAuth.service.mjs +11 -7
  14. package/esm2022/lib/core/model/admin-api.model.mjs +1 -1
  15. package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +7 -4
  16. package/esm2022/lib/dashboard/resultset-utils.mjs +17 -2
  17. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  18. package/esm2022/lib/dashboard/store/manifest.service.mjs +1 -1
  19. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +2 -2
  20. package/esm2022/presentation/components/presentation.component.mjs +8 -4
  21. package/esm2022/presentation/i18n/en.translations.mjs +3 -2
  22. package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
  23. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  24. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +1 -1
  25. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +1 -1
  26. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +1 -1
  27. package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +1 -1
  28. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -11
  29. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +43 -5
  30. package/esm2022/widgets/widget-table/i18n/en.translations.mjs +3 -2
  31. package/esm2022/widgets/widget-table/i18n/fr.translations.mjs +3 -2
  32. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +1 -1
  33. package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +1 -1
  34. package/fesm2022/provoly-dashboard-admin.mjs +25 -18
  35. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  36. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +3 -3
  37. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
  38. package/fesm2022/provoly-dashboard-dataset.mjs +2 -1
  39. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  40. package/fesm2022/provoly-dashboard-presentation.mjs +12 -6
  41. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  42. package/fesm2022/provoly-dashboard-restitution.mjs +2 -2
  43. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  44. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +1 -1
  45. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  46. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  47. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  48. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +1 -1
  49. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  50. package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +1 -1
  51. package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
  52. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +18 -10
  53. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +46 -6
  55. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -1
  57. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  58. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
  59. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
  60. package/fesm2022/provoly-dashboard.mjs +32 -10
  61. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  62. package/lib/core/model/admin-api.model.d.ts +2 -0
  63. package/lib/dashboard/components/widgets/settings/settings.component.d.ts +2 -1
  64. package/lib/dashboard/store/dashboard.actions.d.ts +2 -2
  65. package/lib/dashboard/store/manifest.service.d.ts +1 -1
  66. package/package.json +13 -13
  67. package/presentation/components/presentation.component.d.ts +3 -2
  68. package/presentation/i18n/en.translations.d.ts +1 -0
  69. package/presentation/i18n/fr.translations.d.ts +1 -0
  70. package/styles/components/_a-table.scss +33 -2
  71. package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
  72. package/widgets/widget-table/component/widget-table.component.d.ts +14 -1
  73. package/widgets/widget-table/i18n/en.translations.d.ts +1 -0
  74. package/widgets/widget-table/i18n/fr.translations.d.ts +1 -0
@@ -11,6 +11,8 @@ export interface IMetadata {
11
11
  type: VARIABLE_TYPE | METADATA_TYPE;
12
12
  description?: string;
13
13
  allowedValues?: Array<string>;
14
+ system?: boolean;
15
+ readOnly?: boolean;
14
16
  }
15
17
  export interface Environment {
16
18
  name: string;
@@ -14,6 +14,7 @@ export declare class SettingsComponent extends SubscriptionnerDirective implemen
14
14
  manifest$?: Observable<WidgetManifest>;
15
15
  manifest?: WidgetManifest;
16
16
  private openSub?;
17
+ triggerClick: EventEmitter<void>;
17
18
  set widgetIndex(widgetIndex: number);
18
19
  isDisable?: boolean;
19
20
  headerPresent: boolean | null | {
@@ -39,5 +40,5 @@ export declare class SettingsComponent extends SubscriptionnerDirective implemen
39
40
  emitTitle($event: Event): void;
40
41
  ngOnDestroy(): void;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pry-settings", never, { "widgetIndex": { "alias": "widgetIndex"; "required": false; }; "isDisable": { "alias": "isDisable"; "required": false; }; "headerPresent": { "alias": "headerPresent"; "required": false; }; "open$": { "alias": "open$"; "required": false; }; "header": { "alias": "header"; "required": false; }; }, { "saveTriggered": "saveTriggered"; "changeTitle": "changeTitle"; }, never, ["*"], false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pry-settings", never, { "widgetIndex": { "alias": "widgetIndex"; "required": false; }; "isDisable": { "alias": "isDisable"; "required": false; }; "headerPresent": { "alias": "headerPresent"; "required": false; }; "open$": { "alias": "open$"; "required": false; }; "header": { "alias": "header"; "required": false; }; }, { "triggerClick": "triggerClick"; "saveTriggered": "saveTriggered"; "changeTitle": "changeTitle"; }, never, ["*"], false, never>;
43
44
  }
@@ -259,7 +259,7 @@ export declare const DashboardActions: {
259
259
  visibility?: PryVisibility | undefined;
260
260
  cover?: boolean | undefined;
261
261
  metadata?: {
262
- id: string;
262
+ metadataDefId: string;
263
263
  value: string;
264
264
  }[] | undefined;
265
265
  }) => {
@@ -271,7 +271,7 @@ export declare const DashboardActions: {
271
271
  visibility?: PryVisibility | undefined;
272
272
  cover?: boolean | undefined;
273
273
  metadata?: {
274
- id: string;
274
+ metadataDefId: string;
275
275
  value: string;
276
276
  }[] | undefined;
277
277
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
@@ -15,7 +15,7 @@ export declare class ManifestService {
15
15
  list(): Observable<ManifestDescription[]>;
16
16
  get(id: string): Observable<GlobalManifest>;
17
17
  save(name: string, manifest: GlobalManifest, visibility: PryVisibility, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
18
- id: string;
18
+ metadataDefId: string;
19
19
  value: string;
20
20
  }[]): Observable<{
21
21
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.15.6",
3
+ "version": "0.15.8",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -85,18 +85,18 @@
85
85
  "esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
86
86
  "default": "./fesm2022/provoly-dashboard-admin.mjs"
87
87
  },
88
- "./import": {
89
- "types": "./import/index.d.ts",
90
- "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
91
- "esm": "./esm2022/import/provoly-dashboard-import.mjs",
92
- "default": "./fesm2022/provoly-dashboard-import.mjs"
93
- },
94
88
  "./dataset": {
95
89
  "types": "./dataset/index.d.ts",
96
90
  "esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
97
91
  "esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
98
92
  "default": "./fesm2022/provoly-dashboard-dataset.mjs"
99
93
  },
94
+ "./import": {
95
+ "types": "./import/index.d.ts",
96
+ "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
97
+ "esm": "./esm2022/import/provoly-dashboard-import.mjs",
98
+ "default": "./fesm2022/provoly-dashboard-import.mjs"
99
+ },
100
100
  "./notification": {
101
101
  "types": "./notification/index.d.ts",
102
102
  "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
@@ -127,18 +127,18 @@
127
127
  "esm": "./esm2022/search/provoly-dashboard-search.mjs",
128
128
  "default": "./fesm2022/provoly-dashboard-search.mjs"
129
129
  },
130
- "./supervision": {
131
- "types": "./supervision/index.d.ts",
132
- "esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
133
- "esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
134
- "default": "./fesm2022/provoly-dashboard-supervision.mjs"
135
- },
136
130
  "./toolbox": {
137
131
  "types": "./toolbox/index.d.ts",
138
132
  "esm2022": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
139
133
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
140
134
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
141
135
  },
136
+ "./supervision": {
137
+ "types": "./supervision/index.d.ts",
138
+ "esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
139
+ "esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
140
+ "default": "./fesm2022/provoly-dashboard-supervision.mjs"
141
+ },
142
142
  "./components/card": {
143
143
  "types": "./components/card/index.d.ts",
144
144
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -2,7 +2,7 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
2
  import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Router } from '@angular/router';
4
4
  import { Store } from '@ngrx/store';
5
- import { DashboardManifest, ManifestDescription, PryVisibility, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
5
+ import { DashboardManifest, ManifestDescription, PryTitleService, PryVisibility, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
6
6
  import { BehaviorSubject, Observable } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class PryPresentationComponent extends SubscriptionnerDirective {
@@ -11,6 +11,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
11
11
  protected viewContainerRef: ViewContainerRef;
12
12
  protected router: Router;
13
13
  protected ngZone: NgZone;
14
+ protected titleService: PryTitleService;
14
15
  manifests$: Observable<ManifestDescription[]>;
15
16
  selectedPresentation$: BehaviorSubject<ManifestDescription | null>;
16
17
  presentation?: ManifestDescription;
@@ -34,7 +35,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
34
35
  ViewMode: typeof ViewMode;
35
36
  search$: BehaviorSubject<string>;
36
37
  filteredPresentations$: Observable<ManifestDescription[]>;
37
- constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, ngZone: NgZone);
38
+ constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, ngZone: NgZone, titleService: PryTitleService);
38
39
  closeRestitution(): void;
39
40
  fetch(presentation: ManifestDescription): void;
40
41
  creation(): void;
@@ -34,6 +34,7 @@ export declare const enTranslations: {
34
34
  delete: string;
35
35
  backToCatalog: string;
36
36
  search: string;
37
+ title: string;
37
38
  };
38
39
  };
39
40
  };
@@ -35,6 +35,7 @@ export declare const frTranslations: {
35
35
  delete: string;
36
36
  backToCatalog: string;
37
37
  search: string;
38
+ title: string;
38
39
  };
39
40
  };
40
41
  };
@@ -4,8 +4,8 @@
4
4
  .a-table-wrapper {
5
5
  flex: 1;
6
6
  height: 100%;
7
- overflow: auto;
8
- padding-bottom: toRem(20);
7
+ overflow-x: auto;
8
+ overflow-y: hidden;
9
9
  }
10
10
 
11
11
  .a-table {
@@ -81,6 +81,18 @@
81
81
  }
82
82
  }
83
83
  }
84
+
85
+ &.checkbox-wrapper {
86
+ height: toRem(45);
87
+ }
88
+ }
89
+
90
+ &.filler {
91
+ border-bottom-color: white;
92
+
93
+ td > * {
94
+ display: none;
95
+ }
84
96
  }
85
97
  }
86
98
 
@@ -98,6 +110,25 @@
98
110
  a[href].a-btn {
99
111
  color: inherit;
100
112
  }
113
+
114
+ &-pagination {
115
+ height: toRem(35);
116
+ display: flex;
117
+ flex-direction: column;
118
+ align-items: center;
119
+ position: fixed;
120
+
121
+ &__spacing {
122
+ display: flex;
123
+ flex-direction: row;
124
+ height: toRem(35);
125
+
126
+ &__label {
127
+ margin-top: toRem(5);
128
+ height: toRem(35);
129
+ }
130
+ }
131
+ }
101
132
  }
102
133
 
103
134
  .a-table-loading {
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
3
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
4
4
  import { Map } from 'ol';
5
5
  import { Coordinate } from 'ol/coordinate';
6
6
  import { Geometry } from 'ol/geom';
@@ -110,7 +110,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
110
110
  }, selectedIds?: string[], extents?: {
111
111
  datasource: string;
112
112
  extent: Coordinate[];
113
- }[]): void;
113
+ }[], filters?: {
114
+ [p: string]: FilterContext[];
115
+ }): void;
114
116
  private getAttributesForDrawing;
115
117
  private getIntensityAttribute;
116
118
  private getLocationAttribute;
@@ -1,8 +1,17 @@
1
1
  import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { ColumnDefinition, DataWidgetComponent, Field, Item, ResultOrder, TableWidgetOptions } from '@provoly/dashboard';
4
- import { Observable } from 'rxjs';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
+ export interface Pagination {
7
+ totalPages: number;
8
+ page: number;
9
+ rows: number;
10
+ items: Item[];
11
+ loaded: number;
12
+ loadedPages: number;
13
+ noFillersItems: number;
14
+ }
6
15
  export declare class WidgetTableComponent extends DataWidgetComponent {
7
16
  private cdr;
8
17
  options$: Observable<TableWidgetOptions>;
@@ -27,6 +36,9 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
27
36
  isContextMenuOpened$: Observable<boolean>;
28
37
  quickOrder$: Observable<ResultOrder | undefined>;
29
38
  private _refresh$;
39
+ actualPage$: BehaviorSubject<number>;
40
+ pagination$: Observable<Pagination>;
41
+ isOpen: boolean;
30
42
  constructor(store: Store<any>, el: ElementRef, cdr: ChangeDetectorRef);
31
43
  refresh(): void;
32
44
  emitManifest(): void;
@@ -41,6 +53,7 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
41
53
  setOrder(column: ColumnDefinition): void;
42
54
  private nextOrder;
43
55
  trackObjects(index: number, item: Item): string;
56
+ goToPage(number: number): void;
44
57
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTableComponent, never>;
45
58
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetTableComponent, "pry-widget-table", never, {}, {}, never, never, false, never>;
46
59
  }
@@ -8,6 +8,7 @@ export declare const enTranslations: {
8
8
  label: string;
9
9
  empty: string;
10
10
  description: string;
11
+ remaining: string;
11
12
  };
12
13
  };
13
14
  };
@@ -8,6 +8,7 @@ export declare const frTranslations: {
8
8
  label: string;
9
9
  empty: string;
10
10
  description: string;
11
+ remaining: string;
11
12
  };
12
13
  };
13
14
  };