@provoly/dashboard 0.21.1 → 0.21.3

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/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +3 -5
  2. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +13 -18
  3. package/esm2022/filters/autocomplete/autocomplete.component.mjs +2 -2
  4. package/esm2022/lib/core/components/chips-selector/chips-selector.component.mjs +111 -0
  5. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +105 -0
  6. package/esm2022/lib/core/components/share/share.model.mjs +1 -1
  7. package/esm2022/lib/core/components/share/share.module.mjs +9 -6
  8. package/esm2022/lib/core/core.module.mjs +5 -1
  9. package/esm2022/lib/core/i18n/en.translations.mjs +24 -1
  10. package/esm2022/lib/core/i18n/fr.translations.mjs +24 -1
  11. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  12. package/esm2022/lib/core/public-api.mjs +3 -1
  13. package/esm2022/lib/core/store/config/config.actions.mjs +4 -2
  14. package/esm2022/lib/core/store/config/config.effects.mjs +9 -2
  15. package/esm2022/lib/core/store/config/config.reducer.mjs +6 -2
  16. package/esm2022/lib/core/store/config/config.selectors.mjs +4 -2
  17. package/esm2022/lib/core/store/config/config.service.mjs +6 -1
  18. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +33 -65
  19. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +4 -5
  20. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  21. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -3
  22. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -4
  23. package/esm2022/presentation/components/presentation.component.mjs +7 -8
  24. package/esm2022/presentation/i18n/en.translations.mjs +2 -2
  25. package/esm2022/presentation/i18n/fr.translations.mjs +2 -2
  26. package/esm2022/presentation/style/css.component.mjs +2 -2
  27. package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -4
  28. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  29. package/esm2022/restitution/i18n/en.translations.mjs +1 -6
  30. package/esm2022/restitution/i18n/fr.translations.mjs +1 -6
  31. package/esm2022/restitution/style/css.component.mjs +2 -2
  32. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +17 -20
  33. package/esm2022/toolbox/components/save-view/save-view.component.mjs +8 -8
  34. package/fesm2022/provoly-dashboard-admin.mjs +10 -15
  35. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  36. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs +1 -1
  37. package/fesm2022/provoly-dashboard-filters-autocomplete.mjs.map +1 -1
  38. package/fesm2022/provoly-dashboard-presentation.mjs +10 -11
  39. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  40. package/fesm2022/provoly-dashboard-restitution.mjs +10 -17
  41. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  42. package/fesm2022/provoly-dashboard-toolbox.mjs +23 -26
  43. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  44. package/fesm2022/provoly-dashboard.mjs +974 -743
  45. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  46. package/lib/core/components/chips-selector/chips-selector.component.d.ts +38 -0
  47. package/lib/core/components/share/group-share/group-share.component.d.ts +33 -0
  48. package/lib/core/components/share/share.model.d.ts +5 -0
  49. package/lib/core/components/share/share.module.d.ts +8 -5
  50. package/lib/core/core.module.d.ts +24 -23
  51. package/lib/core/i18n/en.translations.d.ts +23 -0
  52. package/lib/core/i18n/fr.translations.d.ts +23 -0
  53. package/lib/core/model/manifest.interface.d.ts +1 -2
  54. package/lib/core/public-api.d.ts +2 -0
  55. package/lib/core/store/config/config.actions.d.ts +8 -1
  56. package/lib/core/store/config/config.effects.d.ts +4 -0
  57. package/lib/core/store/config/config.reducer.d.ts +2 -0
  58. package/lib/core/store/config/config.selectors.d.ts +1 -0
  59. package/lib/core/store/config/config.service.d.ts +2 -0
  60. package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +10 -23
  61. package/lib/dashboard/store/dashboard.actions.d.ts +2 -3
  62. package/lib/dashboard/store/manifest.service.d.ts +2 -3
  63. package/package.json +31 -31
  64. package/presentation/components/presentation.component.d.ts +2 -3
  65. package/presentation/style/_o-pry-presentation.scss +7 -4
  66. package/restitution/components/restitution/restitution.component.d.ts +1 -0
  67. package/restitution/i18n/en.translations.d.ts +0 -5
  68. package/restitution/i18n/fr.translations.d.ts +0 -5
  69. package/restitution/style/_o-restitution.scss +16 -1
  70. package/styles/components/_m-presentation-title.scss +1 -0
  71. package/styles/components/_o-pry-stepper.scss +0 -4
  72. package/toolbox/components/filter-settings/filter-settings.component.d.ts +1 -1
  73. package/toolbox/components/save-view/save-view.component.d.ts +3 -3
@@ -0,0 +1,38 @@
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { BehaviorSubject, Observable } from 'rxjs';
3
+ import { SubscriptionnerDirective } from '../../../dashboard/components/subscriptionner.directive';
4
+ import { PryI18nService } from '../../i18n/i18n.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ChipsSelectorComponent extends SubscriptionnerDirective {
7
+ private cdr;
8
+ private i18n;
9
+ bindValue: string;
10
+ bindLabel: string;
11
+ translationStringBase: string;
12
+ itemTranslationStringBase: string;
13
+ showActionButtons: boolean;
14
+ set items(items: any[]);
15
+ set usedItems(items: any[]);
16
+ cancel: EventEmitter<any>;
17
+ validated: EventEmitter<any>;
18
+ previousTab: EventEmitter<any>;
19
+ nextTab: EventEmitter<any>;
20
+ itemsChanged: EventEmitter<any[]>;
21
+ items$: BehaviorSubject<any[] | null>;
22
+ usedItems$: BehaviorSubject<any[]>;
23
+ unusedItems$: Observable<any[] | null>;
24
+ search$: BehaviorSubject<string>;
25
+ idToLabel: {
26
+ [id: string]: string | undefined;
27
+ };
28
+ constructor(cdr: ChangeDetectorRef, i18n: PryI18nService);
29
+ toggleItemSelection(item: any): void;
30
+ isGeo(item: any): boolean;
31
+ search($event: any): void;
32
+ getItemValue(item: any): any;
33
+ getItemLabel(item: any): any;
34
+ areItemsEqual(item1: any, item2: any): boolean;
35
+ isItemUsed(item: any, usedItems?: any[]): any;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipsSelectorComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipsSelectorComponent, "pry-chips-selector", never, { "bindValue": { "alias": "bindValue"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "translationStringBase": { "alias": "translationStringBase"; "required": false; }; "itemTranslationStringBase": { "alias": "itemTranslationStringBase"; "required": false; }; "showActionButtons": { "alias": "showActionButtons"; "required": false; }; "items": { "alias": "items"; "required": false; }; "usedItems": { "alias": "usedItems"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "itemsChanged": "itemsChanged"; }, never, never, false, never>;
38
+ }
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Group, PryVisibilityType } from '../share.model';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { Store } from '@ngrx/store';
6
+ import { SubscriptionnerDirective } from '../../../../dashboard/components/subscriptionner.directive';
7
+ import * as i0 from "@angular/core";
8
+ export declare class PryGroupShareComponent extends SubscriptionnerDirective implements ControlValueAccessor {
9
+ private store;
10
+ private _cd;
11
+ private _onChange;
12
+ private _onTouched;
13
+ _disabled: boolean;
14
+ radioValue: PryVisibilityType;
15
+ groups$: Observable<Group[]>;
16
+ assignedGroups$: Observable<Group[]>;
17
+ PryVisibilityType: typeof PryVisibilityType;
18
+ visibilityTypes: {
19
+ label: string;
20
+ value: PryVisibilityType;
21
+ }[];
22
+ assignedGroupNames$: BehaviorSubject<string[]>;
23
+ constructor(store: Store, _cd: ChangeDetectorRef);
24
+ writeValue(value: string[] | undefined): void;
25
+ registerOnChange(fn: any): void;
26
+ registerOnTouched(fn: any): void;
27
+ setDisabledState(isDisabled: boolean): void;
28
+ updateRadioValue(groups: string[]): void;
29
+ changeGroupsBasedOnRadioValue(type: PryVisibilityType): void;
30
+ changeGroups(groups: (Group | string)[] | null): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryGroupShareComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryGroupShareComponent, "pry-group-share", never, {}, {}, never, never, false, never>;
33
+ }
@@ -3,6 +3,11 @@ export declare enum PryVisibilityType {
3
3
  PUBLIC = "PUBLIC",
4
4
  RESTRICTED = "RESTRICTED"
5
5
  }
6
+ export interface Group {
7
+ id: string;
8
+ name: string;
9
+ system: boolean;
10
+ }
6
11
  export interface PryVisibility {
7
12
  type: PryVisibilityType;
8
13
  users?: any[];
@@ -1,11 +1,14 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./share.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "../select/select.module";
6
- import * as i5 from "../../i18n/i18n.module";
3
+ import * as i2 from "./group-share/group-share.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../select/select.module";
7
+ import * as i6 from "../../i18n/i18n.module";
8
+ import * as i7 from "../../core.module";
9
+ import * as i8 from "../../../dashboard/dashboard.module";
7
10
  export declare class PryShareModule {
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryShareModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PrySelectModule, typeof i5.PryI18nModule], [typeof i1.PryShareComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.PrySelectModule, typeof i6.PryI18nModule, typeof i7.PryCoreModule, typeof i8.PryDashboardModule], [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent]>;
10
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PryShareModule>;
11
14
  }
@@ -7,28 +7,29 @@ import * as i3 from "./components/get-secured-image/get-secured-image.pipe";
7
7
  import * as i4 from "./components/base-layout/base-layout.component";
8
8
  import * as i5 from "./components/base-menu/base-menu.component";
9
9
  import * as i6 from "./components/base-toolbox/base-toolbox.component";
10
- import * as i7 from "./components/nq-color-selector/nq-color-selector.component";
11
- import * as i8 from "./access/access.directive";
12
- import * as i9 from "./components/upload/upload.component";
13
- import * as i10 from "./components/select-image/select-image.component";
14
- import * as i11 from "./components/accordion/accordion.component";
15
- import * as i12 from "./components/accordion/accordion-item/accordion-item.component";
16
- import * as i13 from "./components/tabs/tab-group.component";
17
- import * as i14 from "./components/tabs/tab.component";
18
- import * as i15 from "./components/ellipsis.directive";
19
- import * as i16 from "./components/base-toolbox-action/base-toolbox-action.component";
20
- import * as i17 from "@angular/common";
21
- import * as i18 from "@angular/router";
22
- import * as i19 from "@angular/common/http";
23
- import * as i20 from "@ngrx/store";
24
- import * as i21 from "@ngrx/effects";
25
- import * as i22 from "./components/icon/icon.module";
26
- import * as i23 from "@angular/cdk/overlay";
27
- import * as i24 from "./components/overlay/overlay.module";
28
- import * as i25 from "./i18n/i18n.module";
29
- import * as i26 from "./components/modal-status/modal-status.module";
30
- import * as i27 from "@angular/cdk/accordion";
31
- import * as i28 from "@angular/forms";
10
+ import * as i7 from "./components/chips-selector/chips-selector.component";
11
+ import * as i8 from "./components/nq-color-selector/nq-color-selector.component";
12
+ import * as i9 from "./access/access.directive";
13
+ import * as i10 from "./components/upload/upload.component";
14
+ import * as i11 from "./components/select-image/select-image.component";
15
+ import * as i12 from "./components/accordion/accordion.component";
16
+ import * as i13 from "./components/accordion/accordion-item/accordion-item.component";
17
+ import * as i14 from "./components/tabs/tab-group.component";
18
+ import * as i15 from "./components/tabs/tab.component";
19
+ import * as i16 from "./components/ellipsis.directive";
20
+ import * as i17 from "./components/base-toolbox-action/base-toolbox-action.component";
21
+ import * as i18 from "@angular/common";
22
+ import * as i19 from "@angular/router";
23
+ import * as i20 from "@angular/common/http";
24
+ import * as i21 from "@ngrx/store";
25
+ import * as i22 from "@ngrx/effects";
26
+ import * as i23 from "./components/icon/icon.module";
27
+ import * as i24 from "@angular/cdk/overlay";
28
+ import * as i25 from "./components/overlay/overlay.module";
29
+ import * as i26 from "./i18n/i18n.module";
30
+ import * as i27 from "./components/modal-status/modal-status.module";
31
+ import * as i28 from "@angular/cdk/accordion";
32
+ import * as i29 from "@angular/forms";
32
33
  export declare class PryCoreModule {
33
34
  private pryTranslateService;
34
35
  constructor(pryTranslateService: PryI18nService);
@@ -38,6 +39,6 @@ export declare class PryCoreModule {
38
39
  geoAuthProvider?: Provider;
39
40
  }): ModuleWithProviders<PryCoreModule>;
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<PryCoreModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.PryNqColorSelectorComponent, typeof i8.PryAccessDirective, typeof i9.PryUploadComponent, typeof i10.PrySelectImageComponent, typeof i11.AccordionComponent, typeof i12.AccordionItemComponent, typeof i13.TabGroupComponent, typeof i14.TabComponent, typeof i15.EllipsisDirective, typeof i16.BaseToolboxActionComponent], [typeof i17.CommonModule, typeof i18.RouterModule, typeof i19.HttpClientModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i20.StoreFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i21.EffectsFeatureModule, typeof i22.PryIconModule, typeof i23.OverlayModule, typeof i24.PryOverlayModule, typeof i25.PryI18nModule, typeof i26.PryModalStatusModule, typeof i27.CdkAccordionModule, typeof i28.FormsModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.PryNqColorSelectorComponent, typeof i8.PryAccessDirective, typeof i9.PryUploadComponent, typeof i10.PrySelectImageComponent, typeof i11.AccordionComponent, typeof i12.AccordionItemComponent, typeof i13.TabGroupComponent, typeof i14.TabComponent, typeof i15.EllipsisDirective]>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.ChipsSelectorComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.AccordionComponent, typeof i13.AccordionItemComponent, typeof i14.TabGroupComponent, typeof i15.TabComponent, typeof i16.EllipsisDirective, typeof i17.BaseToolboxActionComponent], [typeof i18.CommonModule, typeof i19.RouterModule, typeof i20.HttpClientModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i21.StoreFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i22.EffectsFeatureModule, typeof i23.PryIconModule, typeof i24.OverlayModule, typeof i25.PryOverlayModule, typeof i26.PryI18nModule, typeof i27.PryModalStatusModule, typeof i28.CdkAccordionModule, typeof i29.FormsModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.ChipsSelectorComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.AccordionComponent, typeof i13.AccordionItemComponent, typeof i14.TabGroupComponent, typeof i15.TabComponent, typeof i16.EllipsisDirective]>;
42
43
  static ɵinj: i0.ɵɵInjectorDeclaration<PryCoreModule>;
43
44
  }
@@ -301,6 +301,29 @@ export declare const enTranslations: {
301
301
  metadata: {
302
302
  view: string;
303
303
  };
304
+ components: {
305
+ chipsSelector: {
306
+ datasource: {
307
+ select: string;
308
+ selection: string;
309
+ selectItem: string;
310
+ unselectItem: string;
311
+ noItemSelected: string;
312
+ };
313
+ share: {
314
+ select: string;
315
+ selection: string;
316
+ selectItem: string;
317
+ unselectItem: string;
318
+ noItemSelected: string;
319
+ groups: {
320
+ ALL: string;
321
+ CONNECTED: string;
322
+ };
323
+ };
324
+ };
325
+ searchData: string;
326
+ };
304
327
  errors: {
305
328
  default: string;
306
329
  codes: {
@@ -302,6 +302,29 @@ export declare const frTranslations: {
302
302
  metadata: {
303
303
  view: string;
304
304
  };
305
+ components: {
306
+ searchData: string;
307
+ chipsSelector: {
308
+ datasource: {
309
+ select: string;
310
+ selection: string;
311
+ selectItem: string;
312
+ unselectItem: string;
313
+ noItemSelected: string;
314
+ };
315
+ share: {
316
+ select: string;
317
+ selection: string;
318
+ selectItem: string;
319
+ unselectItem: string;
320
+ noItemSelected: string;
321
+ groups: {
322
+ ALL: string;
323
+ CONNECTED: string;
324
+ };
325
+ };
326
+ };
327
+ };
305
328
  errors: {
306
329
  default: string;
307
330
  codes: {
@@ -1,4 +1,3 @@
1
- import { PryVisibility } from '../components/share/share.model';
2
1
  import { MetadataValue } from './admin-api.model';
3
2
  import { Filter } from './filter.interface';
4
3
  import { ChartAggregatedWidgetOptions } from './widget-aggregated-chart-manifest.interface';
@@ -21,7 +20,7 @@ export interface ManifestDescription {
21
20
  cover: boolean;
22
21
  creationDate: string;
23
22
  modificationDate: string;
24
- visibility: PryVisibility;
23
+ groups: string[];
25
24
  owner: boolean;
26
25
  datasource: string[];
27
26
  metadata: MetadataValue[];
@@ -91,6 +91,7 @@ export * from './components/select/select.module';
91
91
  export * from './components/range/range.component';
92
92
  export * from './components/range/range.module';
93
93
  export * from './components/share/share.component';
94
+ export * from './components/share/group-share/group-share.component';
94
95
  export * from './components/share/share.model';
95
96
  export * from './components/share/share.module';
96
97
  export * from './components/snackbar/snack.interface';
@@ -120,3 +121,4 @@ export * from './errors/http-error-interceptor.service';
120
121
  export * from './components/about/pry-about.module';
121
122
  export * from './components/about/about.component';
122
123
  export * from './components/ellipsis.directive';
124
+ export * from './components/chips-selector/chips-selector.component';
@@ -2,7 +2,8 @@ import { TooltipOfClass } from '../../model/tooltip-of-class.interface';
2
2
  import { ChartOption } from '../../model/widget-chart-manifest.interface';
3
3
  import { Widget } from '../../model/widget.interface';
4
4
  import { IconDefinitions } from './icon-definitions.interface';
5
- import { Versions } from "./versions.interface";
5
+ import { Versions } from './versions.interface';
6
+ import { Group } from '../../components/share/share.model';
6
7
  export declare const ConfigActions: {
7
8
  defineUrls: import("@ngrx/store").ActionCreator<"[Config] (bus) defining urls", (props: {
8
9
  mapUrl?: string | undefined;
@@ -198,4 +199,10 @@ export declare const ConfigActions: {
198
199
  }) => {
199
200
  error: string;
200
201
  } & import("@ngrx/store/src/models").TypedAction<"[about] Load Versions Failure">>;
202
+ loadAccessGroups: import("@ngrx/store").ActionCreator<"[Users] load access groups", () => import("@ngrx/store/src/models").TypedAction<"[Users] load access groups">>;
203
+ loadAccessGroupsSuccess: import("@ngrx/store").ActionCreator<"[Config] load access groups Success", (props: {
204
+ groups: Group[];
205
+ }) => {
206
+ groups: Group[];
207
+ } & import("@ngrx/store/src/models").TypedAction<"[Config] load access groups Success">>;
201
208
  };
@@ -6,6 +6,7 @@ import { PryI18nService } from '../../i18n/i18n.service';
6
6
  import { ConfigService } from './config.service';
7
7
  import { OpenMapTilesService } from './open-map-tiles.service';
8
8
  import { Versions } from './versions.interface';
9
+ import { Group } from '../../components/share/share.model';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class ConfigEffects {
11
12
  private actions$;
@@ -56,6 +57,9 @@ export declare class ConfigEffects {
56
57
  } & import("@ngrx/store/src/models").TypedAction<"[about] (bus) Load Versions Success">) | ({
57
58
  error: string;
58
59
  } & import("@ngrx/store/src/models").TypedAction<"[about] Load Versions Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
60
+ loadAccessGroups$: import("rxjs").Observable<{
61
+ groups: Group[];
62
+ } & import("@ngrx/store/src/models").TypedAction<"[Config] load access groups Success">> & import("@ngrx/effects").CreateEffectMetadata;
59
63
  constructor(actions$: Actions, openMapTilesService: OpenMapTilesService, store: Store, configService: ConfigService, snackBar: PrySnackbarService, translateService: PryI18nService, pryDialog: PryDialogService);
60
64
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigEffects, never>;
61
65
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigEffects>;
@@ -3,6 +3,7 @@ import { ChartOption } from '../../model/widget-chart-manifest.interface';
3
3
  import { Widget } from '../../model/widget.interface';
4
4
  import { IconDefinitions } from './icon-definitions.interface';
5
5
  import { Versions } from './versions.interface';
6
+ import { Group } from '../../components/share/share.model';
6
7
  export declare const configFeatureKey = "@pry/config";
7
8
  export interface ConfigState {
8
9
  pryUrl: string;
@@ -34,6 +35,7 @@ export interface ConfigState {
34
35
  chartOption: ChartOption;
35
36
  maxAttributesInTiles: number;
36
37
  versions: Versions | null;
38
+ accessGroups: Group[];
37
39
  }
38
40
  export declare const initialConfigState: ConfigState;
39
41
  export declare const configReducer: import("@ngrx/store").ActionReducer<ConfigState, import("@ngrx/store").Action>;
@@ -48,4 +48,5 @@ export declare const ConfigSelectors: {
48
48
  maxAttributesInTiles: import("@ngrx/store").MemoizedSelector<object, number, (s1: fromConfig.ConfigState) => number>;
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
+ accessGroups: import("@ngrx/store").MemoizedSelector<object, import("@provoly/dashboard").Group[], (s1: fromConfig.ConfigState) => import("@provoly/dashboard").Group[]>;
51
52
  };
@@ -5,6 +5,7 @@ import { PrySnackbarService } from '../../components/snackbar/snackbar.service';
5
5
  import { PryI18nService } from '../../i18n/i18n.service';
6
6
  import { Widget } from '../../model/widget.interface';
7
7
  import { BackendVersion, Versions } from './versions.interface';
8
+ import { Group } from '../../components/share/share.model';
8
9
  import * as i0 from "@angular/core";
9
10
  export interface ParamContent {
10
11
  domain: string;
@@ -49,6 +50,7 @@ export declare class ConfigService {
49
50
  getAllWidgets(): Observable<Widget[]>;
50
51
  handleBackendVersionError(obs: Observable<BackendVersion>): Observable<BackendVersion>;
51
52
  getAllVersions(): Observable<Versions>;
53
+ getAccessGroups(): Observable<Group[]>;
52
54
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
53
55
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
54
56
  }
@@ -1,33 +1,20 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
+ import { NamedQuery } from '../../../../core/store/data-source/data-source.model';
5
+ import { ChipsSelectorComponent } from '../../../../core/components/chips-selector/chips-selector.component';
4
6
  import { WidgetManifest } from '../../../../core/model/manifest.interface';
5
- import { Dataset, DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
6
7
  import { SubscriptionnerDirective } from '../../subscriptionner.directive';
8
+ import { PryI18nService } from '../../../../core/i18n/i18n.service';
7
9
  import * as i0 from "@angular/core";
8
- export declare class DatasourceSelectorComponent extends SubscriptionnerDirective {
10
+ export declare class DatasourceSelectorComponent extends ChipsSelectorComponent implements SubscriptionnerDirective {
9
11
  private store;
10
- private cdr;
12
+ _usedItems$: BehaviorSubject<any[]>;
13
+ usedDatasources$: Observable<NamedQuery[]>;
14
+ set usedItems(items: any[]);
11
15
  set manifest(manifest: WidgetManifest | null);
12
- set datasourceIds(datasourceIds: string[]);
13
- cancel: EventEmitter<any>;
14
- validated: EventEmitter<any>;
15
- previousTab: EventEmitter<any>;
16
- nextTab: EventEmitter<any>;
17
- datasourcesChanged: EventEmitter<DataSource[]>;
18
16
  manifest$: BehaviorSubject<WidgetManifest | null>;
19
- usedDatasourceIds$: BehaviorSubject<string[]>;
20
- usedDatasources$: Observable<DataSource[]>;
21
- allDataSources$: Observable<DataSource[]>;
22
- unusedDatasources$: Observable<any>;
23
- search$: BehaviorSubject<string>;
24
- idToNameDatasource: {
25
- [id: string]: string | undefined;
26
- };
27
- constructor(store: Store, cdr: ChangeDetectorRef);
28
- toogleDataSource(id: string): void;
29
- isGeo(ds: NamedQuery | Dataset): boolean;
30
- search($event: any): void;
17
+ constructor(store: Store, cdr: ChangeDetectorRef, i18n: PryI18nService);
31
18
  static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceSelectorComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "manifest": { "alias": "manifest"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "datasourcesChanged": "datasourcesChanged"; }, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "usedItems": { "alias": "usedItems"; "required": false; }; "manifest": { "alias": "manifest"; "required": false; }; }, {}, never, never, false, never>;
33
20
  }
@@ -1,4 +1,3 @@
1
- import { PryVisibility } from '../../core/components/share/share.model';
2
1
  import { PrySnackMessage } from '../../core/components/snackbar/snack.interface';
3
2
  import { DisplayOptions } from '../../core/model/display-options.interface';
4
3
  import { Filter } from '../../core/model/filter.interface';
@@ -243,24 +242,24 @@ export declare const DashboardActions: {
243
242
  id: string;
244
243
  description?: string | undefined;
245
244
  image?: string | undefined;
246
- visibility?: PryVisibility | undefined;
247
245
  cover?: boolean | undefined;
248
246
  metadata?: {
249
247
  metadataDefId: string;
250
248
  value: string;
251
249
  }[] | undefined;
250
+ groups?: string[] | undefined;
252
251
  }) => {
253
252
  name: string;
254
253
  manifest?: GlobalManifest | undefined;
255
254
  id: string;
256
255
  description?: string | undefined;
257
256
  image?: string | undefined;
258
- visibility?: PryVisibility | undefined;
259
257
  cover?: boolean | undefined;
260
258
  metadata?: {
261
259
  metadataDefId: string;
262
260
  value: string;
263
261
  }[] | undefined;
262
+ groups?: string[] | undefined;
264
263
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
265
264
  solveCollisions: import("@ngrx/store").ActionCreator<"[Dashboard] solving collisions", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] solving collisions">>;
266
265
  clearManifest: import("@ngrx/store").ActionCreator<"[Dashboard] clear manifest", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] clear manifest">>;
@@ -1,7 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
- import { PryVisibility } from '../../core/components/share/share.model';
5
4
  import { PrySnackbarService } from '../../core/components/snackbar/snackbar.service';
6
5
  import { PryI18nService } from '../../core/i18n/i18n.service';
7
6
  import { GlobalManifest, ManifestDescription } from '../../core/model/manifest.interface';
@@ -14,10 +13,10 @@ export declare class ManifestService {
14
13
  constructor(httpClient: HttpClient, store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService);
15
14
  list(): Observable<ManifestDescription[]>;
16
15
  get(id: string): Observable<GlobalManifest>;
17
- save(name: string, manifest: GlobalManifest, visibility: PryVisibility, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
16
+ save(name: string, manifest: GlobalManifest, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
18
17
  metadataDefId: string;
19
18
  value: string;
20
- }[]): Observable<{
19
+ }[], groups?: string[]): Observable<{
21
20
  id: string;
22
21
  name: string;
23
22
  manifest: GlobalManifest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -132,36 +132,6 @@
132
132
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
133
133
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
134
134
  },
135
- "./filters/autocomplete": {
136
- "types": "./filters/autocomplete/index.d.ts",
137
- "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
138
- "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
139
- "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
140
- },
141
- "./filters/date": {
142
- "types": "./filters/date/index.d.ts",
143
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
144
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
145
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
146
- },
147
- "./filters/list": {
148
- "types": "./filters/list/index.d.ts",
149
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
150
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
151
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
152
- },
153
- "./filters/number": {
154
- "types": "./filters/number/index.d.ts",
155
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
156
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
157
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
158
- },
159
- "./filters/text": {
160
- "types": "./filters/text/index.d.ts",
161
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
162
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
163
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
164
- },
165
135
  "./components/card": {
166
136
  "types": "./components/card/index.d.ts",
167
137
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -216,6 +186,36 @@
216
186
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
217
187
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
218
188
  },
189
+ "./filters/autocomplete": {
190
+ "types": "./filters/autocomplete/index.d.ts",
191
+ "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
192
+ "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
193
+ "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
194
+ },
195
+ "./filters/date": {
196
+ "types": "./filters/date/index.d.ts",
197
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
198
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
199
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
200
+ },
201
+ "./filters/list": {
202
+ "types": "./filters/list/index.d.ts",
203
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
204
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
205
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
206
+ },
207
+ "./filters/number": {
208
+ "types": "./filters/number/index.d.ts",
209
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
210
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
211
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
212
+ },
213
+ "./filters/text": {
214
+ "types": "./filters/text/index.d.ts",
215
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
216
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
217
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
218
+ },
219
219
  "./pipeline-components/filter": {
220
220
  "types": "./pipeline-components/filter/index.d.ts",
221
221
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.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 { ActivatedRoute, Router } from '@angular/router';
4
4
  import { Store } from '@ngrx/store';
5
- import { DashboardManifest, ManifestDescription, PryTitleService, PryVisibility, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
5
+ import { DashboardManifest, ManifestDescription, PryTitleService, 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,8 +28,7 @@ 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
+ accessGroups: string[];
33
32
  editionStartUrl: string;
34
33
  consultStartUrl: string;
35
34
  meAsOwner?: string;
@@ -95,10 +95,6 @@
95
95
  width: 100%;
96
96
  height: 100%;
97
97
  object-fit: cover;
98
-
99
- img {
100
- width: 100%;
101
- }
102
98
  }
103
99
  }
104
100
 
@@ -141,11 +137,18 @@
141
137
  }
142
138
  }
143
139
 
140
+ &__title-container {
141
+ &.a-tooltip[data-tooltip]:after {
142
+ top: calc(100% - 15px);
143
+ }
144
+ }
145
+
144
146
  &__description-container {
145
147
  position: relative;
146
148
  width: 100%;
147
149
  display: flex;
148
150
  align-content: center;
151
+ min-height: toRem(20);
149
152
 
150
153
  &.a-tooltip[data-tooltip]:after {
151
154
  width: 100%;
@@ -36,6 +36,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
36
36
  type: string;
37
37
  manifest: WidgetManifest;
38
38
  }[];
39
+ usedDatasources$: Observable<DataSource[]>;
39
40
  constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
40
41
  ngOnInit(): void;
41
42
  cancel(stepper: PryStepperComponent): void;
@@ -27,10 +27,6 @@ export declare const enTranslations: {
27
27
  consult: string;
28
28
  catalog: string;
29
29
  add_icon: string;
30
- selection: string;
31
- select: string;
32
- selectDataSource: string;
33
- unselectDataSource: string;
34
30
  dataSource: string;
35
31
  noDataSource: string;
36
32
  delete: string;
@@ -38,7 +34,6 @@ export declare const enTranslations: {
38
34
  lock: string;
39
35
  update: string;
40
36
  cover: string;
41
- noDataSourceSelected: string;
42
37
  catalogTabs: {
43
38
  model: string;
44
39
  noModel: string;
@@ -28,10 +28,6 @@ export declare const frTranslations: {
28
28
  consultRestitution: string;
29
29
  catalog: string;
30
30
  add_icon: string;
31
- selection: string;
32
- select: string;
33
- selectDataSource: string;
34
- unselectDataSource: string;
35
31
  dataSource: string;
36
32
  noDataSource: string;
37
33
  delete: string;
@@ -39,7 +35,6 @@ export declare const frTranslations: {
39
35
  lock: string;
40
36
  update: string;
41
37
  cover: string;
42
- noDataSourceSelected: string;
43
38
  catalogTabs: {
44
39
  model: string;
45
40
  noModel: string;