@provoly/dashboard 1.3.6 → 1.3.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 (46) hide show
  1. package/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.d.ts +3 -2
  2. package/admin/components/admin-dataset/admin-dataset.component.d.ts +2 -0
  3. package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +4 -3
  4. package/admin/i18n/en.translations.d.ts +7 -0
  5. package/admin/i18n/fr.translations.d.ts +5 -0
  6. package/assets/svgs/groups.svg +16 -0
  7. package/assets/svgs/public.svg +1 -16
  8. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +2 -2
  9. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-classes-view.component.mjs +12 -9
  10. package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +6 -4
  11. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +7 -5
  12. package/esm2022/admin/i18n/en.translations.mjs +10 -3
  13. package/esm2022/admin/i18n/fr.translations.mjs +6 -1
  14. package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +4 -4
  15. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +28 -40
  16. package/esm2022/lib/core/components/share/share.utils.mjs +13 -1
  17. package/esm2022/lib/core/i18n/en.translations.mjs +13 -6
  18. package/esm2022/lib/core/i18n/fr.translations.mjs +13 -6
  19. package/esm2022/lib/core/store/class/class.reducer.mjs +8 -2
  20. package/esm2022/lib/core/store/class/class.selectors.mjs +4 -2
  21. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +4 -3
  22. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +12 -5
  23. package/esm2022/restitution/components/restitution/restitution.component.mjs +4 -4
  24. package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
  25. package/esm2022/toolbox/components/save-view/save-view.component.mjs +3 -3
  26. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +70 -61
  27. package/fesm2022/provoly-dashboard-admin.mjs +34 -15
  28. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-restitution.mjs +4 -4
  30. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-toolbox.mjs +2 -2
  32. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +69 -60
  34. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard.mjs +230 -200
  36. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  37. package/lib/core/components/share/group-share/group-share.component.d.ts +4 -7
  38. package/lib/core/components/share/share.utils.d.ts +2 -0
  39. package/lib/core/i18n/en.translations.d.ts +10 -3
  40. package/lib/core/i18n/fr.translations.d.ts +10 -3
  41. package/lib/core/store/class/class.selectors.d.ts +1 -0
  42. package/lib/dashboard/store/dashboard.actions.d.ts +7 -6
  43. package/package.json +19 -19
  44. package/styles/components/_a-page-loader.scss +6 -0
  45. package/styles/components/_o-layer-settings.scss +2 -2
  46. package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
@@ -20,10 +20,7 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
20
20
  assignedGroups$: Observable<Group[]>;
21
21
  groups$: Observable<Group[]>;
22
22
  PryShareMode: typeof PryShareMode;
23
- shareModes: {
24
- label: string;
25
- value: PryShareMode;
26
- }[];
23
+ shareModes: PryShareMode[];
27
24
  templateData$: Observable<{
28
25
  groups: Group[];
29
26
  assignedGroups: Group[];
@@ -41,12 +38,12 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
41
38
  set allowedGroups(value: string[] | null);
42
39
  radioValueChange: EventEmitter<PryShareMode>;
43
40
  constructor(store: Store, _cd: ChangeDetectorRef);
44
- writeValue(value: string[] | undefined): void;
41
+ writeValue(value: string[] | undefined, from?: 'ngModel' | 'radioChange' | 'groupSelectionChange'): void;
45
42
  registerOnChange(fn: any): void;
46
43
  registerOnTouched(fn: any): void;
44
+ onRadioValueChange(radioValue: PryShareMode): void;
45
+ changeGroups(groups: (Group | string)[], from: 'radioChange' | 'groupSelectionChange'): void;
47
46
  updateRadioValue(groups: string[]): void;
48
- changeGroupsBasedOnRadioValue(type: PryShareMode): void;
49
- changeGroups(groups: (Group | string)[] | null): void;
50
47
  static ɵfac: i0.ɵɵFactoryDeclaration<PryGroupShareComponent, never>;
51
48
  static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, { "disableRadios": { "alias": "disableRadios"; "required": false; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, { "radioValueChange": "radioValueChange"; }, never, never, false, never>;
52
49
  }
@@ -2,6 +2,7 @@ import { ManifestDescription } from '../../model/manifest.interface';
2
2
  import { Dataset } from '../../store/data-source/data-source.model';
3
3
  import { Group } from './share.model';
4
4
  import { PryI18nService } from '../../i18n/i18n.service';
5
+ import { PryShareMode } from './group-share/group-share.component';
5
6
  export declare const PUBLIC_GROUP = "ALL";
6
7
  export declare const AUTHENTICATED_USERS_GROUP = "AUTHENTICATED";
7
8
  export declare const SYSTEM_GROUPS: string[];
@@ -9,6 +10,7 @@ export declare const READ_ACCESS = "READ";
9
10
  export declare const WRITE_ACCESS = "WRITE";
10
11
  export declare const getGroupLabel: (group: Group, i18n: PryI18nService) => string;
11
12
  export declare const getGroupLabelByName: (groupName: string, i18n: PryI18nService) => string;
13
+ export declare const getShareLevel: (groups: string[]) => PryShareMode;
12
14
  export declare const canManifestBeMadePublic: (manifest: ManifestDescription, datasets: Dataset[]) => boolean;
13
15
  export declare const getCommonDatasourceGroupsForManifest: (manifest: ManifestDescription, datasets: Dataset[], allGroups: Group[]) => string[];
14
16
  export declare const getAccessRightsArrayByGroup: (accessByGroup: {
@@ -299,9 +299,16 @@ export declare const enTranslations: {
299
299
  };
300
300
  };
301
301
  share: {
302
- private: string;
303
- public: string;
304
- groups: string;
302
+ iconLabel: {
303
+ PRIVATE: string;
304
+ GROUPS: string;
305
+ PUBLIC: string;
306
+ };
307
+ radioLabel: {
308
+ PRIVATE: string;
309
+ GROUPS: string;
310
+ PUBLIC: string;
311
+ };
305
312
  type: string;
306
313
  users: string;
307
314
  noGroups: string;
@@ -301,9 +301,16 @@ export declare const frTranslations: {
301
301
  };
302
302
  };
303
303
  share: {
304
- private: string;
305
- public: string;
306
- groups: string;
304
+ iconLabel: {
305
+ PRIVATE: string;
306
+ GROUPS: string;
307
+ PUBLIC: string;
308
+ };
309
+ radioLabel: {
310
+ PRIVATE: string;
311
+ GROUPS: string;
312
+ PUBLIC: string;
313
+ };
307
314
  type: string;
308
315
  users: string;
309
316
  groupLabels: {
@@ -110,4 +110,5 @@ export declare const ClassSelectors: {
110
110
  category?: string | undefined;
111
111
  multiValued: boolean;
112
112
  }[]>;
113
+ loading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: fromClass.ClassState) => boolean>;
113
114
  };
@@ -529,17 +529,13 @@ export declare const DashboardActions: {
529
529
  layers?: string[] | undefined;
530
530
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] init default layer group">>;
531
531
  addLayerGroup: import("@ngrx/store").ActionCreator<"[Dashboard] add map layer group", (props: Partial<LayerGroup>) => Partial<LayerGroup> & import("@ngrx/store/src/models").TypedAction<"[Dashboard] add map layer group">>;
532
- updateLayerGroup: import("@ngrx/store").ActionCreator<"[Dashboard] update map layer group", (props: {
532
+ updateLayerVisibility: import("@ngrx/store").ActionCreator<"[Dashboard] update visible layers on the layer group", (props: {
533
533
  name: string;
534
- newName?: string | undefined;
535
- singleLayer?: boolean | undefined;
536
534
  visibleLayers?: string | string[] | undefined;
537
535
  }) => {
538
536
  name: string;
539
- newName?: string | undefined;
540
- singleLayer?: boolean | undefined;
541
537
  visibleLayers?: string | string[] | undefined;
542
- } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update map layer group">>;
538
+ } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update visible layers on the layer group">>;
543
539
  confirmLayerGroupDeletion: import("@ngrx/store").ActionCreator<"[Dashboard] confirm deleting map layer group", (props: {
544
540
  name: string;
545
541
  }) => {
@@ -550,4 +546,9 @@ export declare const DashboardActions: {
550
546
  }) => {
551
547
  name: string;
552
548
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] delete map layer group">>;
549
+ updateLayerGroups: import("@ngrx/store").ActionCreator<"[Dashboard] update all layer groups", (props: {
550
+ layerGroups: LayerGroup[];
551
+ }) => {
552
+ layerGroups: LayerGroup[];
553
+ } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] update all layer groups">>;
553
554
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -138,12 +138,6 @@
138
138
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
139
139
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
140
140
  },
141
- "./components/card": {
142
- "types": "./components/card/index.d.ts",
143
- "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
144
- "esm": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
145
- "default": "./fesm2022/provoly-dashboard-components-card.mjs"
146
- },
147
141
  "./components/checkbox": {
148
142
  "types": "./components/checkbox/index.d.ts",
149
143
  "esm2022": "./esm2022/components/checkbox/provoly-dashboard-components-checkbox.mjs",
@@ -162,6 +156,12 @@
162
156
  "esm": "./esm2022/components/data-format/provoly-dashboard-components-data-format.mjs",
163
157
  "default": "./fesm2022/provoly-dashboard-components-data-format.mjs"
164
158
  },
159
+ "./components/card": {
160
+ "types": "./components/card/index.d.ts",
161
+ "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
162
+ "esm": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
163
+ "default": "./fesm2022/provoly-dashboard-components-card.mjs"
164
+ },
165
165
  "./components/expand-panel": {
166
166
  "types": "./components/expand-panel/index.d.ts",
167
167
  "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
@@ -264,18 +264,18 @@
264
264
  "esm": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
265
265
  "default": "./fesm2022/provoly-dashboard-pipeline-components-subgraph.mjs"
266
266
  },
267
- "./tooltips/attribute": {
268
- "types": "./tooltips/attribute/index.d.ts",
269
- "esm2022": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
270
- "esm": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
271
- "default": "./fesm2022/provoly-dashboard-tooltips-attribute.mjs"
272
- },
273
267
  "./tooltips/cluster": {
274
268
  "types": "./tooltips/cluster/index.d.ts",
275
269
  "esm2022": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
276
270
  "esm": "./esm2022/tooltips/cluster/provoly-dashboard-tooltips-cluster.mjs",
277
271
  "default": "./fesm2022/provoly-dashboard-tooltips-cluster.mjs"
278
272
  },
273
+ "./tooltips/attribute": {
274
+ "types": "./tooltips/attribute/index.d.ts",
275
+ "esm2022": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
276
+ "esm": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
277
+ "default": "./fesm2022/provoly-dashboard-tooltips-attribute.mjs"
278
+ },
279
279
  "./widgets/widget-aggregated-chart": {
280
280
  "types": "./widgets/widget-aggregated-chart/index.d.ts",
281
281
  "esm2022": "./esm2022/widgets/widget-aggregated-chart/provoly-dashboard-widgets-widget-aggregated-chart.mjs",
@@ -294,18 +294,18 @@
294
294
  "esm": "./esm2022/widgets/widget-chart/provoly-dashboard-widgets-widget-chart.mjs",
295
295
  "default": "./fesm2022/provoly-dashboard-widgets-widget-chart.mjs"
296
296
  },
297
- "./widgets/widget-detail": {
298
- "types": "./widgets/widget-detail/index.d.ts",
299
- "esm2022": "./esm2022/widgets/widget-detail/provoly-dashboard-widgets-widget-detail.mjs",
300
- "esm": "./esm2022/widgets/widget-detail/provoly-dashboard-widgets-widget-detail.mjs",
301
- "default": "./fesm2022/provoly-dashboard-widgets-widget-detail.mjs"
302
- },
303
297
  "./widgets/widget-graph": {
304
298
  "types": "./widgets/widget-graph/index.d.ts",
305
299
  "esm2022": "./esm2022/widgets/widget-graph/provoly-dashboard-widgets-widget-graph.mjs",
306
300
  "esm": "./esm2022/widgets/widget-graph/provoly-dashboard-widgets-widget-graph.mjs",
307
301
  "default": "./fesm2022/provoly-dashboard-widgets-widget-graph.mjs"
308
302
  },
303
+ "./widgets/widget-detail": {
304
+ "types": "./widgets/widget-detail/index.d.ts",
305
+ "esm2022": "./esm2022/widgets/widget-detail/provoly-dashboard-widgets-widget-detail.mjs",
306
+ "esm": "./esm2022/widgets/widget-detail/provoly-dashboard-widgets-widget-detail.mjs",
307
+ "default": "./fesm2022/provoly-dashboard-widgets-widget-detail.mjs"
308
+ },
309
309
  "./widgets/widget-iframe": {
310
310
  "types": "./widgets/widget-iframe/index.d.ts",
311
311
  "esm2022": "./esm2022/widgets/widget-iframe/provoly-dashboard-widgets-widget-iframe.mjs",
@@ -9,4 +9,10 @@
9
9
  position: absolute;
10
10
 
11
11
  z-index: 999; // 1 smaller than the .cdk-overlay-container
12
+
13
+ &.-relative {
14
+ position: relative;
15
+ width: auto;
16
+ height: auto;
17
+ }
12
18
  }
@@ -51,8 +51,8 @@
51
51
  }
52
52
  }
53
53
 
54
- pry-edit-input {
55
- flex: 1;
54
+ .m-form-label-field {
55
+ width: 100%;
56
56
  }
57
57
  }
58
58
  }
@@ -153,7 +153,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
153
153
  changeAttributions($event: boolean): void;
154
154
  addLayer(group: LayerGroup): void;
155
155
  changeLayerType($event: any, i: number): void;
156
- changeTitle($event: any, layer: MapWidgetLayerOptions, group: LayerGroup): void;
156
+ updateLayerGroupSingleLayer(group: LayerGroup, singleLayer: boolean): void;
157
+ updateLayerGroup(group: LayerGroup | string, singleLayer?: boolean, visibleLayers?: string[] | string): void;
158
+ changeTitle($event: Event, layer: MapWidgetLayerOptions, group: LayerGroup): void;
157
159
  emitManifest(): void;
158
160
  changeLocationAttributes($event: any, layer: MapWidgetLayerOptions): void;
159
161
  layerHasIntensity(layer: MapWidgetLayerOptions): MapWidgetHeatMapLayerOptions | MapWidgetBubbleLayerOptions;
@@ -199,7 +201,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
199
201
  changeSelection(action: 'click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload'): void;
200
202
  private clearLayers;
201
203
  addLayerGroup(): void;
202
- updateLayerGroup(name: string, newName?: string, singleLayer?: boolean, visibleLayers?: string[]): void;
204
+ updateLayerGroupName(group: LayerGroup, $event: Event): void;
203
205
  deleteLayerGroup(name: string): void;
204
206
  drop(event: CdkDragDrop<MapWidgetLayerOptions[]>, group: LayerGroup): void;
205
207
  moveLayerBetweenGroups(movedLayer: MapWidgetLayerOptions, newGroup: string): void;