@provoly/dashboard 0.21.4 → 0.21.6

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 (90) hide show
  1. package/assets/svgs/layers.svg +3 -2
  2. package/assets/svgs/legend.svg +14 -3
  3. package/dataset/style/_o-pry-dataset.scss +6 -9
  4. package/esm2022/dataset/components/dataset.component.mjs +3 -3
  5. package/esm2022/dataset/style/css.component.mjs +2 -2
  6. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  7. package/esm2022/lib/core/model/search-mono-class.model.mjs +1 -1
  8. package/esm2022/lib/core/model/search-multi-class.model.mjs +1 -1
  9. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +2 -2
  10. package/esm2022/lib/core/store/config/config.actions.mjs +4 -2
  11. package/esm2022/lib/core/store/config/config.reducer.mjs +6 -2
  12. package/esm2022/lib/core/store/config/config.selectors.mjs +5 -2
  13. package/esm2022/lib/core/store/field/field.interface.mjs +2 -1
  14. package/esm2022/lib/core/store/image/image.service.mjs +3 -3
  15. package/esm2022/lib/core/store/search/search.reducer.mjs +2 -2
  16. package/esm2022/lib/core/store/search/search.service.mjs +14 -4
  17. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -10
  18. package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +12 -3
  19. package/esm2022/lib/dashboard/dashboard.module.mjs +5 -4
  20. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  21. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -2
  22. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -3
  23. package/esm2022/notification/components/notification/content/notification-content.component.mjs +12 -8
  24. package/esm2022/notification/components/notification/notification.component.mjs +2 -1
  25. package/esm2022/notification/style/css.component.mjs +2 -2
  26. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  27. package/esm2022/presentation/components/presentation.component.mjs +14 -12
  28. package/esm2022/presentation/style/css.component.mjs +2 -2
  29. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  30. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +5 -6
  31. package/esm2022/restitution/style/css.component.mjs +2 -2
  32. package/esm2022/toolbox/components/save-view/save-view.component.mjs +12 -6
  33. package/esm2022/toolbox/components/share/share.component.mjs +8 -5
  34. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  35. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +57 -17
  36. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
  37. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
  38. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +3 -2
  39. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  40. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +12 -4
  41. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +3 -2
  42. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  43. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  44. package/fesm2022/provoly-dashboard-notification.mjs +14 -9
  45. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  46. package/fesm2022/provoly-dashboard-presentation.mjs +17 -15
  47. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  48. package/fesm2022/provoly-dashboard-restitution.mjs +10 -11
  49. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  50. package/fesm2022/provoly-dashboard-toolbox.mjs +17 -8
  51. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  52. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  53. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +80 -27
  55. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard.mjs +55 -28
  57. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  58. package/lib/core/model/manifest.interface.d.ts +3 -1
  59. package/lib/core/model/search-mono-class.model.d.ts +1 -0
  60. package/lib/core/model/search-multi-class.model.d.ts +2 -0
  61. package/lib/core/store/config/config.actions.d.ts +10 -0
  62. package/lib/core/store/config/config.reducer.d.ts +3 -0
  63. package/lib/core/store/config/config.selectors.d.ts +5 -0
  64. package/lib/core/store/field/field.interface.d.ts +1 -0
  65. package/lib/core/store/image/image.service.d.ts +1 -1
  66. package/lib/core/store/search/search.service.d.ts +4 -1
  67. package/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.d.ts +1 -0
  68. package/lib/dashboard/store/dashboard.actions.d.ts +3 -0
  69. package/lib/dashboard/store/manifest.service.d.ts +2 -1
  70. package/notification/components/notification/content/notification-content.component.d.ts +4 -2
  71. package/notification/style/_m-notifications.scss +6 -7
  72. package/package.json +19 -19
  73. package/presentation/components/presentation.component.d.ts +3 -1
  74. package/presentation/style/_o-pry-presentation.scss +0 -16
  75. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  76. package/restitution/style/_o-restitution.scss +12 -42
  77. package/styles/components/_a-page-loader.scss +1 -1
  78. package/styles/components/_o-pry-stepper.scss +9 -10
  79. package/styles/components/_o-widget.scss +7 -3
  80. package/styles/layout/_o-manifest-layout.scss +20 -0
  81. package/styles-theme/components-theme/_o-widget.theme.scss +1 -1
  82. package/toolbox/components/save-view/save-view.component.d.ts +3 -2
  83. package/toolbox/components/share/share.component.d.ts +2 -1
  84. package/widgets/widget-chart/component/widget-chart.component.d.ts +1 -1
  85. package/widgets/widget-map/component/widget-map.component.d.ts +5 -1
  86. package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
  87. package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
  88. package/widgets/widget-map/style/_o-layer-legend.scss +43 -54
  89. package/widgets/widget-map/utils/cql-utils.class.d.ts +2 -2
  90. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -0
@@ -1,3 +1,4 @@
1
+ import { PryVisibility } from '../components/share/share.model';
1
2
  import { MetadataValue } from './admin-api.model';
2
3
  import { Filter } from './filter.interface';
3
4
  import { ChartAggregatedWidgetOptions } from './widget-aggregated-chart-manifest.interface';
@@ -20,10 +21,11 @@ export interface ManifestDescription {
20
21
  cover: boolean;
21
22
  creationDate: string;
22
23
  modificationDate: string;
24
+ visibility?: PryVisibility;
23
25
  groups: string[];
24
26
  owner: boolean;
25
27
  datasource: string[];
26
- metadata: MetadataValue[];
28
+ metadata?: MetadataValue[];
27
29
  }
28
30
  export interface WidgetLayout {
29
31
  x: number;
@@ -39,6 +39,7 @@ export interface MonoClassSearchPayload {
39
39
  attribute: string;
40
40
  direction: string;
41
41
  };
42
+ limit?: number;
42
43
  }
43
44
  export interface OperatorOption {
44
45
  type: 'number' | 'string' | 'date';
@@ -24,6 +24,7 @@ export interface MultiSearchPayload {
24
24
  export interface MultiClassSearchPayload extends MultiSearchPayload {
25
25
  fullSearch: null;
26
26
  fields: MultiClassField[];
27
+ limit?: number;
27
28
  }
28
29
  export interface MultiClassField {
29
30
  field: string;
@@ -35,4 +36,5 @@ export interface FullTextSearchPayload extends MultiSearchPayload {
35
36
  fullSearch: {
36
37
  value: string;
37
38
  };
39
+ limit?: number;
38
40
  }
@@ -4,6 +4,7 @@ import { Widget } from '../../model/widget.interface';
4
4
  import { IconDefinitions } from './icon-definitions.interface';
5
5
  import { Versions } from './versions.interface';
6
6
  import { Group } from '../../components/share/share.model';
7
+ export declare const DEFAULT_SEARCH_LIMIT_NUMBER = 200;
7
8
  export declare const ConfigActions: {
8
9
  defineUrls: import("@ngrx/store").ActionCreator<"[Config] (bus) defining urls", (props: {
9
10
  mapUrl?: string | undefined;
@@ -205,4 +206,13 @@ export declare const ConfigActions: {
205
206
  }) => {
206
207
  groups: Group[];
207
208
  } & import("@ngrx/store/src/models").TypedAction<"[Config] load access groups Success">>;
209
+ defineLimits: import("@ngrx/store").ActionCreator<"[Config] defining limits", (props: {
210
+ limits: {
211
+ [key: string]: number;
212
+ };
213
+ }) => {
214
+ limits: {
215
+ [key: string]: number;
216
+ };
217
+ } & import("@ngrx/store/src/models").TypedAction<"[Config] defining limits">>;
208
218
  };
@@ -36,6 +36,9 @@ export interface ConfigState {
36
36
  maxAttributesInTiles: number;
37
37
  versions: Versions | null;
38
38
  accessGroups: Group[];
39
+ limits: {
40
+ [key: string]: number;
41
+ };
39
42
  }
40
43
  export declare const initialConfigState: ConfigState;
41
44
  export declare const configReducer: import("@ngrx/store").ActionReducer<ConfigState, import("@ngrx/store").Action>;
@@ -49,4 +49,9 @@ export declare const ConfigSelectors: {
49
49
  execUrl: import("@ngrx/store").MemoizedSelector<object, string, (s1: string) => string>;
50
50
  selectVersions: import("@ngrx/store").MemoizedSelector<object, import("./versions.interface").Versions | null, (s1: fromConfig.ConfigState) => import("./versions.interface").Versions | null>;
51
51
  accessGroups: import("@ngrx/store").MemoizedSelector<object, import("@provoly/dashboard").Group[], (s1: fromConfig.ConfigState) => import("@provoly/dashboard").Group[]>;
52
+ limits: import("@ngrx/store").MemoizedSelector<object, {
53
+ [key: string]: number;
54
+ }, (s1: fromConfig.ConfigState) => {
55
+ [key: string]: number;
56
+ }>;
52
57
  };
@@ -24,3 +24,4 @@ export interface Field {
24
24
  }
25
25
  export declare const GeometricFieldTypes: string[];
26
26
  export declare const NumericFieldTypes: string[];
27
+ export declare const TextFieldTypes: string[];
@@ -19,7 +19,7 @@ export declare class ImageService {
19
19
  private translateService;
20
20
  constructor(httpClient: HttpClient, store: Store<any>, domSanitizer: DomSanitizer, snackbar: PrySnackbarService, translateService: PryI18nService);
21
21
  getImages(): Observable<Image[]>;
22
- getImage(path: string): Observable<{
22
+ getImage(path: string, externalUrl?: boolean): Observable<{
23
23
  type: string;
24
24
  url: SafeUrl;
25
25
  }>;
@@ -17,12 +17,15 @@ export declare class SearchService {
17
17
  filters: {
18
18
  [datasource: string]: FilterContext[];
19
19
  };
20
+ limits: {
21
+ [p: string]: number;
22
+ };
20
23
  constructor(httpClient: HttpClient, store: Store<ConfigState | SearchState>);
21
24
  getItems(id: string, quickOrder?: ResultOrder, excludeGeo?: boolean): Observable<ResultSet>;
22
25
  getItemsSerializedParams(id: string, quickOrder?: {
23
26
  [id: string]: ResultOrder | undefined;
24
27
  }): string;
25
- getItemsFilter(id: string, cumulative?: HttpParams): HttpParams;
28
+ getItemsFilter(id: string, cumulative?: HttpParams, includeLimit?: boolean): HttpParams;
26
29
  getOrder(quickOrder: ResultOrder | undefined, cumulative?: HttpParams): HttpParams;
27
30
  /**
28
31
  * Launch a search request (and saves it as current search)
@@ -26,6 +26,7 @@ export declare class WidgetInstanciatorComponent extends SubscriptionnerDirectiv
26
26
  open$: Observable<void> | Subject<void>;
27
27
  constructor(cdRef: ChangeDetectorRef, widgetFactoryService: WidgetFactoryService, store: Store<any>);
28
28
  ngAfterViewInit(): void;
29
+ release(): void;
29
30
  ngOnDestroy(): void;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetInstanciatorComponent, never>;
31
32
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetInstanciatorComponent, "pry-widget-instanciator", never, { "widgetIndex": { "alias": "widgetIndex"; "required": false; }; "staticManifest": { "alias": "staticManifest"; "required": false; }; "standalone": { "alias": "standalone"; "required": false; }; "open$": { "alias": "open$"; "required": false; }; }, { "manifestModified": "manifestModified"; }, never, never, false, never>;
@@ -7,6 +7,7 @@ import { Relation } from '../../core/model/relation.interface';
7
7
  import { OrderValue } from '../../core/model/result-order.interface';
8
8
  import { ResultSet, ResultSets } from '../../core/model/result-set.interface';
9
9
  import { GetCapabilitiesResponse } from './wms.service';
10
+ import { PryVisibility } from '../../core/components/share/share.model';
10
11
  export type DashboardCellParams = {
11
12
  gridWidth: number;
12
13
  gridHeight: number;
@@ -248,6 +249,7 @@ export declare const DashboardActions: {
248
249
  value: string;
249
250
  }[] | undefined;
250
251
  groups?: string[] | undefined;
252
+ visibility?: PryVisibility | undefined;
251
253
  }) => {
252
254
  name: string;
253
255
  manifest?: GlobalManifest | undefined;
@@ -260,6 +262,7 @@ export declare const DashboardActions: {
260
262
  value: string;
261
263
  }[] | undefined;
262
264
  groups?: string[] | undefined;
265
+ visibility?: PryVisibility | undefined;
263
266
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
264
267
  solveCollisions: import("@ngrx/store").ActionCreator<"[Dashboard] solving collisions", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] solving collisions">>;
265
268
  clearManifest: import("@ngrx/store").ActionCreator<"[Dashboard] clear manifest", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] clear manifest">>;
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { PrySnackbarService } from '../../core/components/snackbar/snackbar.service';
5
5
  import { PryI18nService } from '../../core/i18n/i18n.service';
6
6
  import { GlobalManifest, ManifestDescription } from '../../core/model/manifest.interface';
7
+ import { PryVisibility } from '../../core/components/share/share.model';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ManifestService {
9
10
  private httpClient;
@@ -16,7 +17,7 @@ export declare class ManifestService {
16
17
  save(name: string, manifest: GlobalManifest, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
17
18
  metadataDefId: string;
18
19
  value: string;
19
- }[], groups?: string[]): Observable<{
20
+ }[], groups?: string[], visibility?: PryVisibility): Observable<{
20
21
  id: string;
21
22
  name: string;
22
23
  manifest: GlobalManifest;
@@ -1,25 +1,27 @@
1
1
  import { AfterViewInit, DoCheck, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { Store } from '@ngrx/store';
4
- import { PryNotification } from '@provoly/dashboard';
4
+ import { PryI18nService, PryNotification } from '@provoly/dashboard';
5
5
  import { Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class PryNotificationContentComponent implements DoCheck, AfterViewInit {
8
8
  protected store: Store;
9
9
  private router;
10
+ private i18nService;
10
11
  open: boolean;
11
12
  notifications$: Observable<PryNotification[]>;
12
13
  closed: EventEmitter<boolean>;
13
14
  caret: ElementRef;
14
15
  button: ElementRef<HTMLButtonElement>;
15
16
  left: number;
16
- constructor(store: Store, router: Router);
17
+ constructor(store: Store, router: Router, i18nService: PryI18nService);
17
18
  ngAfterViewInit(): void;
18
19
  ngDoCheck(): void;
19
20
  delete(notification: PryNotification): void;
20
21
  deleteAll(): void;
21
22
  goTo(notification: PryNotification): void;
22
23
  closeToEscape(): void;
24
+ hasTranslation(title: string, translationBase: string): boolean;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<PryNotificationContentComponent, never>;
24
26
  static ɵcmp: i0.ɵɵComponentDeclaration<PryNotificationContentComponent, "pry-notification-content", never, {}, { "closed": "closed"; }, never, never, false, never>;
25
27
  }
@@ -84,26 +84,25 @@
84
84
  justify-content: space-between;
85
85
  align-items: center;
86
86
  padding: toRem(13) 0 toRem(15) 0;
87
+ gap: toRem(5);
87
88
 
88
89
  &:last-of-type {
89
90
  padding-bottom: toRem(5);
90
91
  }
91
92
 
92
93
  &__txt {
94
+ flex: 1;
95
+
93
96
  .a-h3 {
97
+ display: flex;
98
+ justify-content: space-between;
94
99
  margin-bottom: 0;
95
100
  padding-bottom: toRem(3);
96
- padding-right: toRem(16);
97
101
  }
98
102
 
99
103
  .a-p {
100
- padding-right: toRem(16);
101
104
  padding-bottom: 0;
102
105
 
103
- &.date {
104
- margin-bottom: toRem(7);
105
- }
106
-
107
106
  &.desc {
108
107
  margin-bottom: 0;
109
108
 
@@ -116,7 +115,7 @@
116
115
  }
117
116
  }
118
117
 
119
- .a-btn.a-btn--deletenotification {
118
+ .a-btn--delete {
120
119
  position: relative;
121
120
  width: toRem(22);
122
121
  height: toRem(22);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.21.4",
3
+ "version": "0.21.6",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -84,18 +84,18 @@
84
84
  "esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
85
85
  "default": "./fesm2022/provoly-dashboard-admin.mjs"
86
86
  },
87
- "./import": {
88
- "types": "./import/index.d.ts",
89
- "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
90
- "esm": "./esm2022/import/provoly-dashboard-import.mjs",
91
- "default": "./fesm2022/provoly-dashboard-import.mjs"
92
- },
93
87
  "./dataset": {
94
88
  "types": "./dataset/index.d.ts",
95
89
  "esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
96
90
  "esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
97
91
  "default": "./fesm2022/provoly-dashboard-dataset.mjs"
98
92
  },
93
+ "./import": {
94
+ "types": "./import/index.d.ts",
95
+ "esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
96
+ "esm": "./esm2022/import/provoly-dashboard-import.mjs",
97
+ "default": "./fesm2022/provoly-dashboard-import.mjs"
98
+ },
99
99
  "./notification": {
100
100
  "types": "./notification/index.d.ts",
101
101
  "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
@@ -288,18 +288,18 @@
288
288
  "esm": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
289
289
  "default": "./fesm2022/provoly-dashboard-widgets-widget-iframe.mjs"
290
290
  },
291
- "./widgets/widget-map": {
292
- "types": "./widgets/widget-map/index.d.ts",
293
- "esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
294
- "esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
295
- "default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
296
- },
297
291
  "./widgets/widget-image": {
298
292
  "types": "./widgets/widget-image/index.d.ts",
299
293
  "esm2022": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
300
294
  "esm": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
301
295
  "default": "./fesm2022/provoly-dashboard-widgets-widget-image.mjs"
302
296
  },
297
+ "./widgets/widget-map": {
298
+ "types": "./widgets/widget-map/index.d.ts",
299
+ "esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
300
+ "esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
301
+ "default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
302
+ },
303
303
  "./widgets/widget-table": {
304
304
  "types": "./widgets/widget-table/index.d.ts",
305
305
  "esm2022": "./esm2022/widgets/widget-table/provoly-dashboard-widgets-widget-table.mjs",
@@ -312,17 +312,17 @@
312
312
  "esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
313
313
  "default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
314
314
  },
315
- "./widgets/widget-vega": {
316
- "types": "./widgets/widget-vega/index.d.ts",
317
- "esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
318
- "esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
319
- "default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
320
- },
321
315
  "./widgets/widget-tile": {
322
316
  "types": "./widgets/widget-tile/index.d.ts",
323
317
  "esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
324
318
  "esm": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
325
319
  "default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
320
+ },
321
+ "./widgets/widget-vega": {
322
+ "types": "./widgets/widget-vega/index.d.ts",
323
+ "esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
324
+ "esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
325
+ "default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
326
326
  }
327
327
  },
328
328
  "schematics": "./schematics/collection.json",
@@ -2,7 +2,7 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
2
  import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { Store } from '@ngrx/store';
5
- import { DashboardManifest, ManifestDescription, PryTitleService, 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 {
@@ -28,6 +28,8 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
28
28
  crossVisibility: ElementRef<HTMLButtonElement>;
29
29
  visibilityModal: ElementRef;
30
30
  overlayRef?: OverlayRef;
31
+ visibility: PryVisibility;
32
+ PryVisibilityType: typeof PryVisibilityType;
31
33
  accessGroups: string[];
32
34
  editionStartUrl: string;
33
35
  consultStartUrl: string;
@@ -11,22 +11,6 @@
11
11
  &.-u-hidden {
12
12
  display: none;
13
13
  }
14
-
15
- &__search {
16
- position: relative;
17
-
18
- .a-form-field {
19
- min-height: 10px;
20
- }
21
-
22
- .a-icon {
23
- position: absolute;
24
- right: 0.6875rem;
25
- top: toRem(5);
26
- opacity: 0.5;
27
- pointer-events: none;
28
- }
29
- }
30
14
  }
31
15
 
32
16
  &__content {
@@ -42,7 +42,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
42
42
  cancel(stepper: PryStepperComponent): void;
43
43
  datasourcesChanged($event: DataSource[]): void;
44
44
  submit(stepper: PryStepperComponent): void;
45
- goNext(stepper: PryStepperComponent): void;
45
+ goNext(stepper: PryStepperComponent, submit?: boolean): void;
46
46
  prev(stepper: PryStepperComponent): void;
47
47
  updateManifest($event: {
48
48
  widgetIndex: number;
@@ -1,54 +1,24 @@
1
1
  @use '../../styles/abstracts/index' as *;
2
2
 
3
3
  .o-restitution {
4
- margin: 0 auto;
5
- border-collapse: collapse;
6
- font-size: toRem(14);
7
- min-width: toRem(330);
8
- overflow: hidden;
4
+ display: flex;
5
+ flex-direction: column;
6
+ flex: 1;
7
+ max-height: 100%;
8
+
9
+ pry-stepper {
10
+ display: flex;
11
+ flex: 1;
12
+ max-height: 100%;
13
+ }
9
14
 
10
15
  .widget-instanciator {
11
16
  position: relative;
12
17
  height: 100%;
18
+ margin-bottom: toRem(15);
13
19
  }
14
20
 
15
21
  .m-btn-group.actions {
16
- padding-top: toRem(25);
17
- padding-bottom: toRem(20);
18
- }
19
-
20
- .a-checkbox {
21
- margin-bottom: toRem(0);
22
- }
23
-
24
- label {
25
- border-radius: 10%;
26
- }
27
-
28
- .more-button {
29
- position: absolute;
30
- top: toRem(6);
31
- right: toRem(10);
32
-
33
- .a-btn {
34
- padding: toRem(2) 0;
35
- border-radius: 50%;
36
- }
37
- }
38
-
39
- // o-pry-stepper__content.m-btn-group.actions styles
40
- .m-btn-group.o-datasources__bottom {
41
- position: fixed;
42
- bottom: 0;
43
- width: calc(100% - 40px);
44
- padding-top: toRem(25);
45
- padding-bottom: toRem(20);
46
- background-color: #f5f7f9;
47
- transform: translateX(-3px);
48
- justify-content: space-evenly;
49
- }
50
-
51
- .m-namedqueries-wrapper {
52
- padding-bottom: 30px;
22
+ margin-top: auto;
53
23
  }
54
24
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  position: absolute;
8
8
 
9
- z-index: 10000;
9
+ z-index: 999; // 1 smaller than the .cdk-overlay-container
10
10
 
11
11
  &.backdrop {
12
12
  background-color: rgba(0, 0, 0, 0.5);
@@ -5,6 +5,9 @@
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  align-items: center;
8
+ max-width: 100%;
9
+ flex: 1;
10
+ max-height: 100%;
8
11
 
9
12
  &__header {
10
13
  display: flex;
@@ -74,6 +77,10 @@
74
77
  &__content {
75
78
  position: relative;
76
79
  width: 100%;
80
+ display: flex;
81
+ flex-direction: column;
82
+ flex: 1;
83
+ max-height: calc(100% - 70px); // full height minus header
77
84
 
78
85
  pry-step {
79
86
  display: none;
@@ -83,17 +90,9 @@
83
90
  display: flex;
84
91
  flex-direction: column;
85
92
  padding: 20px 0;
93
+ flex: 1;
94
+ max-height: 100%;
86
95
  }
87
96
  }
88
-
89
- .m-btn-group.actions {
90
- position: fixed;
91
- bottom: 0;
92
- width: calc(100% - 40px);
93
- padding-top: toRem(25);
94
- padding-bottom: toRem(20);
95
- background-color: #f5f7f9;
96
- transform: translateX(-3px);
97
- }
98
97
  }
99
98
  }
@@ -33,8 +33,9 @@
33
33
  text-transform: uppercase;
34
34
  padding-bottom: 0;
35
35
  padding-left: toRem(15);
36
- font-size: toRem(14);
36
+ font-size: toRem(11);
37
37
  font-weight: 500;
38
+ letter-spacing: toRem(0.5);
38
39
  }
39
40
 
40
41
  &__query {
@@ -46,11 +47,12 @@
46
47
  overflow: hidden;
47
48
  padding-left: toRem(10);
48
49
  padding-bottom: 0;
49
- font-size: toRem(14);
50
+ font-size: toRem(11);
50
51
  font-weight: 500;
51
52
  text-overflow: ellipsis;
52
53
  white-space: nowrap;
53
54
  text-transform: uppercase;
55
+ letter-spacing: toRem(0.5);
54
56
  }
55
57
 
56
58
  &__color-point {
@@ -161,6 +163,8 @@
161
163
  z-index: 400;
162
164
  gap: 0;
163
165
  align-items: flex-start;
166
+ top: toRem(5);
167
+ left: toRem(5);
164
168
 
165
169
  .a-btn {
166
170
  @include outlineOnFocus($border-radius: 4px);
@@ -202,7 +206,7 @@
202
206
  background: white;
203
207
  border-radius: toRem(6);
204
208
  border: none;
205
- top: toRem(40);
209
+ top: toRem(45);
206
210
  z-index: 1;
207
211
 
208
212
  &.-with-header {
@@ -19,6 +19,26 @@
19
19
  padding: toRem(15) toRem(20);
20
20
  border-bottom-width: 1px;
21
21
  border-bottom-style: solid;
22
+
23
+ &--only-search {
24
+ justify-content: flex-end;
25
+ }
26
+
27
+ &__search {
28
+ position: relative;
29
+
30
+ .a-form-field {
31
+ min-height: 10px;
32
+ }
33
+
34
+ .a-icon {
35
+ position: absolute;
36
+ right: 0.6875rem;
37
+ top: toRem(5);
38
+ opacity: 0.5;
39
+ pointer-events: none;
40
+ }
41
+ }
22
42
  }
23
43
 
24
44
  &__content {
@@ -29,7 +29,7 @@
29
29
  border-color: themed($theme-map, 'color', 'primary', 400);
30
30
 
31
31
  .a-btn {
32
- color: #000;
32
+ color: #113b6e;
33
33
  background-color: transparent;
34
34
 
35
35
  &.-selected {
@@ -1,7 +1,7 @@
1
1
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
2
  import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
- import { LibraryTypes, ManifestDescription, ViewMode } from '@provoly/dashboard';
4
+ import { LibraryTypes, ManifestDescription, PryVisibility, ViewMode } from '@provoly/dashboard';
5
5
  import { Observable } from 'rxjs';
6
6
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
7
7
  import * as i0 from "@angular/core";
@@ -21,6 +21,7 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
21
21
  templateSaveAs: TemplateRef<any>;
22
22
  overlayRefDirectSaveType?: OverlayRef;
23
23
  templateDirectSaveType: TemplateRef<any>;
24
+ visibility: PryVisibility;
24
25
  accessGroups: string[];
25
26
  type: LibraryTypes;
26
27
  saveTypeOpened: boolean;
@@ -35,7 +36,7 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
35
36
  toggleSaveAs(): void;
36
37
  save(): void;
37
38
  closeModals(): void;
38
- changeVisibility($event: string[]): void;
39
+ changeVisibility($event: PryVisibility): void;
39
40
  changeValue($event: string): void;
40
41
  changeDescr($event: string): void;
41
42
  openSaveAs(): void;
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
3
+ import { GlobalManifest, ManifestDescription, PryVisibility, ViewMode } from '@provoly/dashboard';
4
4
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
5
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
6
6
  import * as i0 from "@angular/core";
@@ -15,6 +15,7 @@ export declare class ShareComponent extends ToolboxActionComponent {
15
15
  modalOpened: boolean;
16
16
  overlayRef?: OverlayRef;
17
17
  accessGroups: string[];
18
+ visibility: PryVisibility;
18
19
  template: TemplateRef<any>;
19
20
  constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
20
21
  trigger(): void;
@@ -93,7 +93,7 @@ export declare class WidgetChartComponent extends DataWidgetComponent implements
93
93
  field: string;
94
94
  title: string;
95
95
  type: any;
96
- aggregate: string;
96
+ aggregate: Aggregation;
97
97
  };
98
98
  color: {
99
99
  field: string;
@@ -10,7 +10,7 @@ import VectorLayer from 'ol/layer/Vector';
10
10
  import { Pixel } from 'ol/pixel';
11
11
  import VectorSource from 'ol/source/Vector';
12
12
  import { Style } from 'ol/style';
13
- import { BehaviorSubject, Observable } from 'rxjs';
13
+ import { BehaviorSubject, Observable, Subscription } from 'rxjs';
14
14
  import { InteractionManager } from '../interaction/interaction-manager.class';
15
15
  import { WidgetMapLayerService } from './widget-map-layer.service';
16
16
  import { LayerSlider } from '../interaction/layer-slider.class';
@@ -120,6 +120,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
120
120
  actionMenuOpen$: BehaviorSubject<boolean>;
121
121
  attributions$: Observable<boolean>;
122
122
  olZoomElement$: BehaviorSubject<HTMLDivElement | null>;
123
+ previousLayers: BaseLayer[];
124
+ previousTooltip?: ComponentRef<BaseTooltipComponent>;
125
+ previousTooltipSub?: Subscription;
123
126
  constructor(store: Store<any>, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
124
127
  initInteractionManager(): InteractionManager;
125
128
  ngAfterViewInit(): void;
@@ -197,6 +200,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
197
200
  toggleMenu(): void;
198
201
  private getOlZoomElement;
199
202
  changeSelection(action: 'click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload'): void;
203
+ private clearLayers;
200
204
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
201
205
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
202
206
  }