@provoly/dashboard 1.1.6 → 1.1.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 (61) hide show
  1. package/esm2022/lib/core/components/share/access-rights-share/access-rights-share.component.mjs +17 -6
  2. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +3 -2
  3. package/esm2022/lib/core/components/share/share.utils.mjs +10 -7
  4. package/esm2022/lib/core/i18n/en.translations.mjs +3 -2
  5. package/esm2022/lib/core/i18n/fr.translations.mjs +3 -2
  6. package/esm2022/lib/core/model/filter.interface.mjs +1 -1
  7. package/esm2022/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.mjs +52 -47
  8. package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +1 -3
  9. package/esm2022/presentation/components/presentation.component.mjs +12 -12
  10. package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +14 -11
  11. package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +15 -11
  12. package/esm2022/toolbox/components/dashboard-details/dashboard-details.component.mjs +15 -13
  13. package/esm2022/toolbox/components/delete/delete.component.mjs +17 -18
  14. package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +16 -11
  15. package/esm2022/toolbox/components/edit-mode-action/edit-mode-action.component.mjs +14 -12
  16. package/esm2022/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.mjs +12 -7
  17. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +19 -14
  18. package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +15 -11
  19. package/esm2022/toolbox/components/named-query/named-query.component.mjs +3 -3
  20. package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +14 -10
  21. package/esm2022/toolbox/components/save-view/save-view.component.mjs +14 -10
  22. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +14 -9
  23. package/esm2022/toolbox/components/share/share.component.mjs +30 -34
  24. package/esm2022/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.mjs +14 -12
  25. package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +20 -6
  26. package/esm2022/toolbox/components/toolbox.component.mjs +1 -1
  27. package/esm2022/toolbox/toolbox.model.mjs +4 -4
  28. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +2 -2
  29. package/fesm2022/provoly-dashboard-presentation.mjs +11 -11
  30. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-toolbox.mjs +197 -139
  32. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +1 -1
  34. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard.mjs +145 -126
  36. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  37. package/lib/core/components/share/access-rights-share/access-rights-share.component.d.ts +7 -1
  38. package/lib/core/components/share/share.utils.d.ts +3 -0
  39. package/lib/core/i18n/en.translations.d.ts +1 -0
  40. package/lib/core/i18n/fr.translations.d.ts +1 -0
  41. package/lib/core/model/filter.interface.d.ts +1 -1
  42. package/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.d.ts +1 -1
  43. package/lib/dashboard/store/dashboard.selectors.d.ts +0 -5
  44. package/package.json +7 -7
  45. package/presentation/components/presentation.component.d.ts +4 -5
  46. package/styles/components/_o-access-rights-share.scss +9 -1
  47. package/toolbox/components/automate-refresh/automate-refresh.component.d.ts +2 -2
  48. package/toolbox/components/clear-view/clear-view.component.d.ts +3 -2
  49. package/toolbox/components/dashboard-details/dashboard-details.component.d.ts +3 -5
  50. package/toolbox/components/delete/delete.component.d.ts +4 -13
  51. package/toolbox/components/drag-widgets/drag-widgets.component.d.ts +3 -3
  52. package/toolbox/components/edit-mode-action/edit-mode-action.component.d.ts +3 -8
  53. package/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.d.ts +3 -2
  54. package/toolbox/components/filter-settings/filter-settings.component.d.ts +3 -3
  55. package/toolbox/components/launch-tab/launch-tab.component.d.ts +3 -2
  56. package/toolbox/components/refresh-datasets/refresh-datasets.component.d.ts +3 -3
  57. package/toolbox/components/save-view/save-view.component.d.ts +3 -5
  58. package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +3 -3
  59. package/toolbox/components/share/share.component.d.ts +4 -8
  60. package/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.d.ts +3 -8
  61. package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +6 -3
@@ -20,6 +20,10 @@ export declare class PryAccessRightsShareComponent extends SubscriptionnerDirect
20
20
  groups$: Observable<(Group & {
21
21
  label: string;
22
22
  })[]>;
23
+ AVAILABLE_ACCESS_RIGHTS: {
24
+ label: string;
25
+ value: string;
26
+ }[];
23
27
  accessRights: {
24
28
  label: string;
25
29
  value: string;
@@ -40,8 +44,10 @@ export declare class PryAccessRightsShareComponent extends SubscriptionnerDirect
40
44
  resetSelection(): void;
41
45
  isAddingDisabled(): boolean;
42
46
  emitAlreadyAssignedGroups(): void;
43
- protected readonly getGroupLabel: (group: Group, i18n: PryI18nService) => string;
47
+ filterAvailableAccessRights(): void;
44
48
  protected readonly getGroupLabelByName: (groupName: string, i18n: PryI18nService) => string;
49
+ protected readonly PUBLIC_GROUP = "ALL";
50
+ protected readonly AUTHENTICATED_USERS_GROUP = "AUTHENTICATED";
45
51
  static ɵfac: i0.ɵɵFactoryDeclaration<PryAccessRightsShareComponent, never>;
46
52
  static ɵcmp: i0.ɵɵComponentDeclaration<PryAccessRightsShareComponent, "pry-access-rights-share", never, { "manifestDescription": { "alias": "manifestDescription"; "required": true; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, {}, never, never, false, never>;
47
53
  }
@@ -2,6 +2,9 @@ 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
+ export declare const PUBLIC_GROUP = "ALL";
6
+ export declare const AUTHENTICATED_USERS_GROUP = "AUTHENTICATED";
7
+ export declare const SYSTEM_GROUPS: string[];
5
8
  export declare const READ_ACCESS = "READ";
6
9
  export declare const WRITE_ACCESS = "WRITE";
7
10
  export declare const getGroupLabel: (group: Group, i18n: PryI18nService) => string;
@@ -80,6 +80,7 @@ export declare const enTranslations: {
80
80
  check: string;
81
81
  close: string;
82
82
  validate: string;
83
+ all: string;
83
84
  };
84
85
  catalog: {
85
86
  title: string;
@@ -80,6 +80,7 @@ export declare const frTranslations: {
80
80
  check: string;
81
81
  close: string;
82
82
  validate: string;
83
+ all: string;
83
84
  };
84
85
  catalog: {
85
86
  title: string;
@@ -10,7 +10,7 @@ export interface Filter {
10
10
  datasource: string;
11
11
  }[];
12
12
  operator?: string;
13
- value?: string | number;
13
+ value?: string | number | string[] | number[];
14
14
  possibleValues?: string;
15
15
  hasDateRange?: boolean;
16
16
  limit?: number;
@@ -29,5 +29,5 @@ export declare class AggregationUtils {
29
29
  }[];
30
30
  static getKeyValueForTimeInterval(key: ValueType, interval: TimeInterval): string;
31
31
  static filterItems(items: Item[], filters: Filter[]): Item[];
32
- static doesItemValuePassFilter(item: Item, attribute: string, operator: string | undefined, filterValue: string | number | undefined): boolean;
32
+ static doesItemValuePassFilter(item: Item, attribute: string, operator: string | undefined, filterValue: string | number | string[] | number[] | undefined): boolean;
33
33
  }
@@ -324,11 +324,6 @@ export declare const DashboardSelectors: {
324
324
  filters?: Filter[] | undefined;
325
325
  layerGroups?: import("@provoly/dashboard").LayerGroup[] | undefined;
326
326
  }) => boolean>;
327
- isCurrentPresentationOwner: MemoizedSelector<object, boolean, (s1: {
328
- current: import("../../core/model/manifest.interface").ManifestDescription | undefined;
329
- viewMode?: import("./dashboard.actions").ViewMode | undefined;
330
- initial: GlobalManifest | undefined;
331
- }) => boolean>;
332
327
  datasourceFilters: MemoizedSelector<object, {
333
328
  [datasourceId: string]: FilterContext[];
334
329
  }, (s1: DashboardState) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -174,18 +174,18 @@
174
174
  "esm": "./esm2022/components/page-loader/provoly-dashboard-components-page-loader.mjs",
175
175
  "default": "./fesm2022/provoly-dashboard-components-page-loader.mjs"
176
176
  },
177
- "./components/sinceDate": {
178
- "types": "./components/sinceDate/index.d.ts",
179
- "esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
180
- "esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
181
- "default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
182
- },
183
177
  "./components/scheme-picker": {
184
178
  "types": "./components/scheme-picker/index.d.ts",
185
179
  "esm2022": "./esm2022/components/scheme-picker/provoly-dashboard-components-scheme-picker.mjs",
186
180
  "esm": "./esm2022/components/scheme-picker/provoly-dashboard-components-scheme-picker.mjs",
187
181
  "default": "./fesm2022/provoly-dashboard-components-scheme-picker.mjs"
188
182
  },
183
+ "./components/sinceDate": {
184
+ "types": "./components/sinceDate/index.d.ts",
185
+ "esm2022": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
186
+ "esm": "./esm2022/components/sinceDate/provoly-dashboard-components-sinceDate.mjs",
187
+ "default": "./fesm2022/provoly-dashboard-components-sinceDate.mjs"
188
+ },
189
189
  "./components/stepper": {
190
190
  "types": "./components/stepper/index.d.ts",
191
191
  "esm2022": "./esm2022/components/stepper/provoly-dashboard-components-stepper.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, PryBaseAccess, PryTitleService, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
5
+ import { DashboardManifest, ManifestDescription, PryBaseAccess, 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 {
@@ -38,7 +38,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
38
38
  search$: BehaviorSubject<string>;
39
39
  filteredPresentations$: Observable<ManifestDescription[]>;
40
40
  listOfManifests$: BehaviorSubject<ManifestDescription[] | null>;
41
- allowedShareGroups$: Observable<string[]>;
41
+ allowedShareGroups$: Observable<string[] | null>;
42
42
  disableShareButton$: BehaviorSubject<boolean>;
43
43
  mode: 'theme' | 'meta';
44
44
  set listOfManifests(manifests: ManifestDescription[] | null);
@@ -59,9 +59,8 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
59
59
  editContent(selectedPresentation: ManifestDescription): void;
60
60
  updateAccessRights($event: {
61
61
  [key: string]: string[];
62
- }): void;
63
- updateVisibility($event: PryVisibilityType): void;
64
- updateDisableButtonValue(): void;
62
+ }, presentation?: ManifestDescription): void;
63
+ updateDisableButtonValue(presentation?: ManifestDescription): void;
65
64
  isPrivate(presentation: ManifestDescription): boolean;
66
65
  canModify$(presentation: ManifestDescription): Observable<boolean>;
67
66
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
@@ -21,6 +21,7 @@ body:has(pry-access-rights-share) {
21
21
  border-radius: toRem(5);
22
22
  border: 1px solid themed($theme-map, 'color', 'primary', 600);
23
23
  flex: 2;
24
+ gap: 0;
24
25
 
25
26
  > :first-child {
26
27
  border-right: 1px solid themed($theme-map, 'color', 'primary', 600);
@@ -34,6 +35,7 @@ body:has(pry-access-rights-share) {
34
35
 
35
36
  &__content {
36
37
  flex-wrap: wrap;
38
+ height: toRem(23);
37
39
  }
38
40
  }
39
41
 
@@ -55,9 +57,15 @@ body:has(pry-access-rights-share) {
55
57
  margin: toRem(30) toRem(150) 0 toRem(15);
56
58
  }
57
59
 
60
+ &__access-rights {
61
+ font-size: toRem(14);
62
+ }
63
+
58
64
  &__group {
65
+ margin-bottom: toRem(10);
66
+
59
67
  .a-pry-select {
60
- padding-right: 0;
68
+ padding: 0;
61
69
  }
62
70
  }
63
71
 
@@ -1,7 +1,7 @@
1
1
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
2
  import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
- import { WidgetFactoryService } from '@provoly/dashboard';
4
+ import { PryBaseAccess, WidgetFactoryService } 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";
@@ -20,7 +20,7 @@ export declare class AutomateRefreshComponent extends ToolboxActionComponent imp
20
20
  allRefreshRate$: Observable<number>;
21
21
  private overlayRefDatasourceList?;
22
22
  private overlayRefRefreshList?;
23
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, widgetFactoryService: WidgetFactoryService);
23
+ constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, widgetFactoryService: WidgetFactoryService, access: PryBaseAccess);
24
24
  ngOnInit(): void;
25
25
  toggleDatasourceList(): void;
26
26
  hide(overlayRef: OverlayRef | undefined): void;
@@ -1,9 +1,10 @@
1
1
  import { Store } from '@ngrx/store';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
2
3
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ClearViewComponent extends ToolboxActionComponent {
5
- constructor(store: Store);
6
+ constructor(store: Store, access: PryBaseAccess);
6
7
  clear(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClearViewComponent, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClearViewComponent, [null, { optional: true; }]>;
8
9
  static ɵcmp: i0.ɵɵComponentDeclaration<ClearViewComponent, "pry-clear-view", never, {}, {}, never, never, false, never>;
9
10
  }
@@ -1,16 +1,14 @@
1
1
  import { Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { ManifestDescription } from '@provoly/dashboard';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
4
3
  import { ConnectedPosition } from '@angular/cdk/overlay';
5
4
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class DashboardDetailsComponent extends ToolboxActionComponent {
8
7
  isPanelOpen: boolean;
9
8
  panelPosition: ConnectedPosition[];
10
- presentation$: Observable<ManifestDescription | undefined>;
11
- constructor(store: Store);
9
+ constructor(store: Store, access: PryBaseAccess);
12
10
  openPanel($event: Event): void;
13
11
  closePanel($event: Event | void): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DashboardDetailsComponent, never>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardDetailsComponent, [null, { optional: true; }]>;
15
13
  static ɵcmp: i0.ɵɵComponentDeclaration<DashboardDetailsComponent, "pry-dashboard-details", never, {}, {}, never, never, false, never>;
16
14
  }
@@ -1,19 +1,10 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import { Store } from '@ngrx/store';
3
- import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
1
+ import { PryBaseAccess } from '@provoly/dashboard';
4
2
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
- import { Overlay } from '@angular/cdk/overlay';
3
+ import { Store } from '@ngrx/store';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class DeleteComponent extends ToolboxActionComponent {
8
- private overlay;
9
- private viewContainerRef;
10
- presentation: {
11
- current: ManifestDescription | undefined;
12
- viewMode?: ViewMode;
13
- initial: GlobalManifest | undefined;
14
- } | undefined;
15
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
6
+ constructor(store: Store, access: PryBaseAccess);
16
7
  trigger(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DeleteComponent, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeleteComponent, [null, { optional: true; }]>;
18
9
  static ɵcmp: i0.ɵɵComponentDeclaration<DeleteComponent, "pry-delete-pres", never, {}, {}, never, never, false, never>;
19
10
  }
@@ -1,6 +1,6 @@
1
1
  import { ConnectedPosition } from '@angular/cdk/overlay';
2
2
  import { Store } from '@ngrx/store';
3
- import { ToolboxManifestService, ToolboxMenuService, WidgetDescriptionMenu } from '@provoly/dashboard';
3
+ import { PryBaseAccess, ToolboxManifestService, ToolboxMenuService, WidgetDescriptionMenu } from '@provoly/dashboard';
4
4
  import { Observable } from 'rxjs';
5
5
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
6
6
  import * as i0 from "@angular/core";
@@ -10,9 +10,9 @@ export declare class DragWidgetsComponent extends ToolboxActionComponent {
10
10
  mainOpened: boolean;
11
11
  readonly connectedPosition: ConnectedPosition;
12
12
  menu$: Observable<WidgetDescriptionMenu[]>;
13
- constructor(store: Store, toolboxManifestService: ToolboxManifestService, toolboxMenuService: ToolboxMenuService);
13
+ constructor(store: Store, access: PryBaseAccess, toolboxManifestService: ToolboxManifestService, toolboxMenuService: ToolboxMenuService);
14
14
  dragStart($event: DragEvent, type: string): void;
15
15
  openMenu($event: Event): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DragWidgetsComponent, never>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragWidgetsComponent, [null, { optional: true; }, null, null]>;
17
17
  static ɵcmp: i0.ɵɵComponentDeclaration<DragWidgetsComponent, "pry-drag-widgets", never, {}, {}, never, never, false, never>;
18
18
  }
@@ -1,17 +1,12 @@
1
1
  import { Store } from '@ngrx/store';
2
- import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class EditModeActionComponent extends ToolboxActionComponent {
7
7
  modeEdition$: Observable<boolean>;
8
- presentation: {
9
- current: ManifestDescription | undefined;
10
- viewMode?: ViewMode;
11
- initial: GlobalManifest | undefined;
12
- } | undefined;
13
- constructor(store: Store<any>);
8
+ constructor(store: Store<any>, access: PryBaseAccess);
14
9
  toggleEditionMode(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<EditModeActionComponent, never>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditModeActionComponent, [null, { optional: true; }]>;
16
11
  static ɵcmp: i0.ɵɵComponentDeclaration<EditModeActionComponent, "pry-edit-mode-action", never, {}, {}, never, never, false, never>;
17
12
  }
@@ -1,11 +1,12 @@
1
1
  import { Store } from '@ngrx/store';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
2
3
  import { Observable } from 'rxjs';
3
4
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class EditModeToggleComponent extends ToolboxActionComponent {
6
7
  modeEdition$: Observable<boolean>;
7
- constructor(store: Store<any>);
8
+ constructor(store: Store<any>, access: PryBaseAccess);
8
9
  toggleEditionMode(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<EditModeToggleComponent, never>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditModeToggleComponent, [null, { optional: true; }]>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<EditModeToggleComponent, "pry-edit-mode-toggle", never, {}, {}, never, never, false, never>;
11
12
  }
@@ -2,7 +2,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
3
3
  import { Injector, TemplateRef, ViewContainerRef } from '@angular/core';
4
4
  import { Store } from '@ngrx/store';
5
- import { Class, DataSource, FieldType, Filter, FilterFactoryService, GlobalManifest, PryI18nService } from '@provoly/dashboard';
5
+ import { Class, DataSource, FieldType, Filter, FilterFactoryService, GlobalManifest, PryBaseAccess, PryI18nService } from '@provoly/dashboard';
6
6
  import { BehaviorSubject, Observable } from 'rxjs';
7
7
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
8
8
  import * as i0 from "@angular/core";
@@ -53,7 +53,7 @@ export declare class PryFilterSettingsComponent extends ToolboxActionComponent {
53
53
  selectedAttribute$: BehaviorSubject<string[]>;
54
54
  container: ViewContainerRef;
55
55
  attributes: Attribute[];
56
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef, filterFactoryService: FilterFactoryService, injector: Injector, i18nService: PryI18nService);
56
+ constructor(store: Store, access: PryBaseAccess, overlay: Overlay, viewContainerRef: ViewContainerRef, filterFactoryService: FilterFactoryService, injector: Injector, i18nService: PryI18nService);
57
57
  getDatasourceClass(dataSource: DataSource, classes: Class[]): Class | undefined;
58
58
  isValidAttributeForComponentType(componentType: string, attribute: Attribute): boolean;
59
59
  drop(event: CdkDragDrop<Filter[]>): void;
@@ -73,6 +73,6 @@ export declare class PryFilterSettingsComponent extends ToolboxActionComponent {
73
73
  }[];
74
74
  getCustomAttributeId(attributeId: string, datasetId: string): string;
75
75
  protected readonly FilterSteps: typeof FilterSteps;
76
- static ɵfac: i0.ɵɵFactoryDeclaration<PryFilterSettingsComponent, never>;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryFilterSettingsComponent, [null, { optional: true; }, null, null, null, null, null]>;
77
77
  static ɵcmp: i0.ɵɵComponentDeclaration<PryFilterSettingsComponent, "pry-filter-settings", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
78
78
  }
@@ -1,9 +1,10 @@
1
1
  import { Store } from '@ngrx/store';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
2
3
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class LaunchTabComponent extends ToolboxActionComponent {
5
- constructor(store: Store);
6
+ constructor(store: Store, access: PryBaseAccess);
6
7
  launchNewWindow(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<LaunchTabComponent, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LaunchTabComponent, [null, { optional: true; }]>;
8
9
  static ɵcmp: i0.ɵɵComponentDeclaration<LaunchTabComponent, "pry-launch-tab", never, {}, {}, never, never, false, never>;
9
10
  }
@@ -1,5 +1,5 @@
1
1
  import { Store } from '@ngrx/store';
2
- import { GlobalManifest, WidgetFactoryService } from '@provoly/dashboard';
2
+ import { GlobalManifest, PryBaseAccess, WidgetFactoryService } from '@provoly/dashboard';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
5
  import * as i0 from "@angular/core";
@@ -8,8 +8,8 @@ export declare class RefreshDatasetsComponent extends ToolboxActionComponent {
8
8
  manifest$: Observable<GlobalManifest>;
9
9
  manifest?: GlobalManifest;
10
10
  datasetCount: number;
11
- constructor(store: Store, widgetFactoryService: WidgetFactoryService);
11
+ constructor(store: Store, access: PryBaseAccess, widgetFactoryService: WidgetFactoryService);
12
12
  refresh(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<RefreshDatasetsComponent, never>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<RefreshDatasetsComponent, [null, { optional: true; }, null]>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<RefreshDatasetsComponent, "pry-refresh-datasets", never, {}, {}, never, never, false, never>;
15
15
  }
@@ -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, PryBaseAccess, 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";
@@ -26,14 +26,12 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
26
26
  };
27
27
  type: LibraryTypes;
28
28
  saveTypeOpened: boolean;
29
- currentManifest?: ManifestDescription;
30
29
  isCurrentPresentationModified$: Observable<boolean>;
31
- isCurrentPresentationOwner$: Observable<boolean>;
32
30
  nbPages: number;
33
31
  initialNbPages: number;
34
32
  hasInitial: boolean;
35
33
  ViewMode: typeof ViewMode;
36
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
34
+ constructor(store: Store, access: PryBaseAccess, overlay: Overlay, viewContainerRef: ViewContainerRef);
37
35
  toggleSaveAs(): void;
38
36
  save(): void;
39
37
  closeModals(): void;
@@ -52,6 +50,6 @@ export declare class SaveViewComponent extends ToolboxActionComponent {
52
50
  focusValidation(): void;
53
51
  rename(): void;
54
52
  disableNextStep(): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<SaveViewComponent, never>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<SaveViewComponent, [null, { optional: true; }, null, null]>;
56
54
  static ɵcmp: i0.ɵɵComponentDeclaration<SaveViewComponent, "pry-save-view", never, { "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, false, never>;
57
55
  }
@@ -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 { AutomaticGridLayoutDefinition } from '@provoly/dashboard';
4
+ import { AutomaticGridLayoutDefinition, PryBaseAccess } 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";
@@ -16,11 +16,11 @@ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
16
16
  openModal: ElementRef<HTMLButtonElement>;
17
17
  modalOpened: boolean;
18
18
  overlayRef?: OverlayRef;
19
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
19
+ constructor(store: Store, access: PryBaseAccess, overlay: Overlay, viewContainerRef: ViewContainerRef);
20
20
  changeLayout(layout: string): void;
21
21
  toggleGridChoiceModal(): void;
22
22
  openWithTemplate(): void;
23
23
  validate(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectGridLayoutComponent, never>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectGridLayoutComponent, [null, { optional: true; }, null, null]>;
25
25
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectGridLayoutComponent, "pry-select-grid-layout", never, {}, {}, never, never, false, never>;
26
26
  }
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { ManifestDescription, PryVisibilityType } from '@provoly/dashboard';
3
+ import { PryBaseAccess } 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 { BehaviorSubject, Observable } from 'rxjs';
@@ -8,19 +8,15 @@ import * as i0 from "@angular/core";
8
8
  export declare class ShareComponent extends ToolboxActionComponent {
9
9
  private overlay;
10
10
  private viewContainerRef;
11
- presentation?: ManifestDescription;
12
11
  modalOpened: boolean;
13
12
  overlayRef?: OverlayRef;
14
13
  accessRightsByGroup: {
15
14
  [key: string]: string[];
16
15
  };
17
16
  template: TemplateRef<any>;
18
- disableShareRadios$: Observable<{
19
- [key in PryVisibilityType]: boolean;
20
- }>;
21
- allowedShareGroups$: Observable<string[]>;
17
+ allowedShareGroups$: Observable<string[] | null>;
22
18
  disableShareButton$: BehaviorSubject<boolean>;
23
- constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
19
+ constructor(store: Store, access: PryBaseAccess, overlay: Overlay, viewContainerRef: ViewContainerRef);
24
20
  trigger(): void;
25
21
  toggleModal(): void;
26
22
  validate(): void;
@@ -28,6 +24,6 @@ export declare class ShareComponent extends ToolboxActionComponent {
28
24
  [key: string]: string[];
29
25
  }): void;
30
26
  updateDisableButtonValue(): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<ShareComponent, never>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShareComponent, [null, { optional: true; }, null, null]>;
32
28
  static ɵcmp: i0.ɵɵComponentDeclaration<ShareComponent, "pry-share-pres", never, {}, {}, never, never, false, never>;
33
29
  }
@@ -1,15 +1,10 @@
1
1
  import { Store } from '@ngrx/store';
2
- import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
2
+ import { PryBaseAccess } from '@provoly/dashboard';
3
3
  import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SwitchToEditContentComponent extends ToolboxActionComponent {
6
- presentation: {
7
- current: ManifestDescription | undefined;
8
- viewMode?: ViewMode;
9
- initial: GlobalManifest | undefined;
10
- } | undefined;
11
- constructor(store: Store);
6
+ constructor(store: Store, access: PryBaseAccess);
12
7
  trigger(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SwitchToEditContentComponent, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchToEditContentComponent, [null, { optional: true; }]>;
14
9
  static ɵcmp: i0.ɵɵComponentDeclaration<SwitchToEditContentComponent, "pry-switch-to-edit", never, {}, {}, never, never, false, never>;
15
10
  }
@@ -1,13 +1,16 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { SubscriptionnerDirective } from '@provoly/dashboard';
3
+ import { ManifestDescription, PryBaseAccess, SubscriptionnerDirective } from '@provoly/dashboard';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ToolboxActionComponent extends SubscriptionnerDirective {
6
6
  protected store: Store;
7
+ protected access: PryBaseAccess;
7
8
  displayLabels: boolean;
8
9
  closeOptions: EventEmitter<void>;
9
- constructor(store: Store);
10
+ currentManifest: ManifestDescription | undefined;
11
+ constructor(store: Store, access: PryBaseAccess);
10
12
  close(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxActionComponent, never>;
13
+ canModify$(): import("rxjs").Observable<boolean>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxActionComponent, [null, { optional: true; }]>;
12
15
  static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxActionComponent, "pry-toolbox-action", never, { "displayLabels": { "alias": "displayLabels"; "required": false; }; }, { "closeOptions": "closeOptions"; }, never, never, false, never>;
13
16
  }