@provoly/dashboard 0.21.3 → 0.21.5

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 (112) 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/auth/geoAuth.service.mjs +29 -5
  7. package/esm2022/lib/core/components/select/select.component.mjs +13 -3
  8. package/esm2022/lib/core/components/share/group-share/group-share.component.mjs +14 -6
  9. package/esm2022/lib/core/components/snackbar/snackbar.service.mjs +8 -3
  10. package/esm2022/lib/core/i18n/en.translations.mjs +9 -2
  11. package/esm2022/lib/core/i18n/fr.translations.mjs +9 -3
  12. package/esm2022/lib/core/model/display-options.interface.mjs +24 -7
  13. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  14. package/esm2022/lib/core/store/field/field.interface.mjs +2 -1
  15. package/esm2022/lib/core/store/item/item.effects.mjs +2 -2
  16. package/esm2022/lib/core/store/search/search.reducer.mjs +2 -2
  17. package/esm2022/lib/dashboard/components/dashboard.component.mjs +3 -3
  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 +14 -6
  22. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +8 -2
  23. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -3
  24. package/esm2022/notification/components/notification/content/notification-content.component.mjs +12 -8
  25. package/esm2022/notification/components/notification/notification.component.mjs +2 -1
  26. package/esm2022/notification/style/css.component.mjs +2 -2
  27. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  28. package/esm2022/presentation/components/presentation.component.mjs +17 -9
  29. package/esm2022/presentation/i18n/en.translations.mjs +2 -1
  30. package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
  31. package/esm2022/presentation/style/css.component.mjs +2 -2
  32. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  33. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  34. package/esm2022/restitution/style/css.component.mjs +2 -2
  35. package/esm2022/toolbox/components/delete/delete.component.mjs +29 -0
  36. package/esm2022/toolbox/components/save-view/save-view.component.mjs +12 -6
  37. package/esm2022/toolbox/components/share/share.component.mjs +72 -0
  38. package/esm2022/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.mjs +26 -0
  39. package/esm2022/toolbox/components/toolbox.component.mjs +3 -3
  40. package/esm2022/toolbox/public-api.mjs +4 -1
  41. package/esm2022/toolbox/toolbox.model.mjs +22 -2
  42. package/esm2022/toolbox/toolbox.module.mjs +16 -4
  43. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  44. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +27 -13
  45. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +61 -22
  46. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
  47. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
  48. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +3 -2
  49. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  50. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +16 -7
  51. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +3 -2
  52. package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
  53. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  54. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  55. package/fesm2022/provoly-dashboard-notification.mjs +14 -9
  56. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  57. package/fesm2022/provoly-dashboard-presentation.mjs +23 -13
  58. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-restitution.mjs +8 -8
  60. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-toolbox.mjs +145 -12
  62. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  64. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +114 -47
  66. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
  68. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard.mjs +138 -39
  70. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  71. package/lib/core/auth/geoAuth.service.d.ts +5 -1
  72. package/lib/core/components/select/select.component.d.ts +2 -0
  73. package/lib/core/components/share/group-share/group-share.component.d.ts +2 -2
  74. package/lib/core/components/snackbar/snackbar.service.d.ts +2 -1
  75. package/lib/core/i18n/en.translations.d.ts +7 -0
  76. package/lib/core/i18n/fr.translations.d.ts +7 -1
  77. package/lib/core/model/display-options.interface.d.ts +3 -0
  78. package/lib/core/model/manifest.interface.d.ts +3 -1
  79. package/lib/core/store/field/field.interface.d.ts +1 -0
  80. package/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.d.ts +1 -0
  81. package/lib/dashboard/store/dashboard.actions.d.ts +3 -0
  82. package/lib/dashboard/store/dashboard.effects.d.ts +1 -1
  83. package/lib/dashboard/store/manifest.service.d.ts +2 -1
  84. package/notification/components/notification/content/notification-content.component.d.ts +4 -2
  85. package/notification/style/_m-notifications.scss +6 -7
  86. package/package.json +7 -7
  87. package/presentation/components/presentation.component.d.ts +4 -1
  88. package/presentation/i18n/en.translations.d.ts +1 -0
  89. package/presentation/i18n/fr.translations.d.ts +1 -0
  90. package/presentation/style/_o-pry-presentation.scss +0 -16
  91. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  92. package/restitution/style/_o-restitution.scss +12 -42
  93. package/styles/components/_a-page-loader.scss +1 -1
  94. package/styles/components/_o-draggable-menu.scss +8 -0
  95. package/styles/components/_o-pry-stepper.scss +9 -10
  96. package/styles/components/_o-widget.scss +7 -3
  97. package/styles/layout/_o-manifest-layout.scss +20 -0
  98. package/styles-theme/components-theme/_o-widget.theme.scss +1 -1
  99. package/toolbox/components/delete/delete.component.d.ts +19 -0
  100. package/toolbox/components/save-view/save-view.component.d.ts +3 -2
  101. package/toolbox/components/share/share.component.d.ts +26 -0
  102. package/toolbox/components/switch-to-edit-content/switch-to-edit-content.component.d.ts +15 -0
  103. package/toolbox/public-api.d.ts +3 -0
  104. package/toolbox/toolbox.module.d.ts +12 -9
  105. package/widgets/widget-chart/component/widget-chart.component.d.ts +1 -1
  106. package/widgets/widget-map/component/widget-map-layer.service.d.ts +4 -3
  107. package/widgets/widget-map/component/widget-map.component.d.ts +8 -6
  108. package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
  109. package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
  110. package/widgets/widget-map/style/_o-layer-legend.scss +43 -54
  111. package/widgets/widget-map/utils/cql-utils.class.d.ts +2 -2
  112. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -0
@@ -1,5 +1,7 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { HttpClient } from '@angular/common/http';
3
+ import { PrySnackbarService } from '../components/snackbar/snackbar.service';
4
+ import { PryI18nService } from '../i18n/i18n.service';
3
5
  import * as i0 from "@angular/core";
4
6
  export declare abstract class PryGeoAuthService {
5
7
  abstract customLoader(tile: any, src: string): void;
@@ -7,7 +9,9 @@ export declare abstract class PryGeoAuthService {
7
9
  export declare const PRY_GEOAUTH_TOKEN: InjectionToken<PryGeoAuthService>;
8
10
  export declare class PryDefaultGeoAuthService extends PryGeoAuthService {
9
11
  private httpClient;
10
- constructor(httpClient: HttpClient);
12
+ private snack;
13
+ private i18nService;
14
+ constructor(httpClient: HttpClient, snack: PrySnackbarService, i18nService: PryI18nService);
11
15
  customLoader(tile: any, src: string): void;
12
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultGeoAuthService, never>;
13
17
  static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultGeoAuthService>;
@@ -60,6 +60,8 @@ export declare class PrySelectComponent extends SubscriptionnerDirective impleme
60
60
  search($event: string): void;
61
61
  select($event: Event, item: any, index: number): void;
62
62
  toggle(force?: boolean): void;
63
+ handleClick(): void;
64
+ onInputFocus(force?: boolean): void;
63
65
  private getOverlayConfig;
64
66
  get _elementRef(): HTMLDivElement;
65
67
  static ɵfac: i0.ɵɵFactoryDeclaration<PrySelectComponent, never>;
@@ -11,15 +11,15 @@ export declare class PryGroupShareComponent extends SubscriptionnerDirective imp
11
11
  private _onChange;
12
12
  private _onTouched;
13
13
  _disabled: boolean;
14
+ assignedGroupNames$: BehaviorSubject<string[]>;
14
15
  radioValue: PryVisibilityType;
15
- groups$: Observable<Group[]>;
16
16
  assignedGroups$: Observable<Group[]>;
17
+ groups$: Observable<Group[]>;
17
18
  PryVisibilityType: typeof PryVisibilityType;
18
19
  visibilityTypes: {
19
20
  label: string;
20
21
  value: PryVisibilityType;
21
22
  }[];
22
- assignedGroupNames$: BehaviorSubject<string[]>;
23
23
  constructor(store: Store, _cd: ChangeDetectorRef);
24
24
  writeValue(value: string[] | undefined): void;
25
25
  registerOnChange(fn: any): void;
@@ -17,7 +17,8 @@ export declare class PrySnackbarService {
17
17
  constructor(overlay: Overlay, translate: PryI18nService);
18
18
  setRootViewContainerRef(viewContainerRef: ViewContainerRef): void;
19
19
  dispatchOpenEvent(message: PrySnackMessage): void;
20
- open(message: PrySnackMessage): Observable<void> | null;
20
+ notMitigatedOpen(message: PrySnackMessage): Observable<void> | null;
21
+ open(message: PrySnackMessage): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PrySnackbarService, never>;
22
23
  static ɵprov: i0.ɵɵInjectableDeclaration<PrySnackbarService>;
23
24
  }
@@ -158,6 +158,10 @@ export declare const enTranslations: {
158
158
  '1/4': string;
159
159
  '1/4_detailled': string;
160
160
  };
161
+ switchEdit: string;
162
+ switchEditContent: string;
163
+ share: string;
164
+ delete: string;
161
165
  };
162
166
  manifest: {
163
167
  name: string;
@@ -374,5 +378,8 @@ export declare const enTranslations: {
374
378
  autocomplete: string;
375
379
  };
376
380
  };
381
+ geoAuth: {
382
+ failure: string;
383
+ };
377
384
  };
378
385
  };
@@ -119,7 +119,6 @@ export declare const frTranslations: {
119
119
  rename: string;
120
120
  restore: string;
121
121
  save: string;
122
- share: string;
123
122
  drag: string;
124
123
  dragIndication: string;
125
124
  barchart: string;
@@ -159,6 +158,10 @@ export declare const frTranslations: {
159
158
  '1/4': string;
160
159
  '1/4_detailled': string;
161
160
  };
161
+ switchEdit: string;
162
+ switchEditContent: string;
163
+ share: string;
164
+ delete: string;
162
165
  };
163
166
  manifest: {
164
167
  name: string;
@@ -375,5 +378,8 @@ export declare const frTranslations: {
375
378
  autocomplete: string;
376
379
  };
377
380
  };
381
+ geoAuth: {
382
+ failure: string;
383
+ };
378
384
  };
379
385
  };
@@ -17,6 +17,9 @@ export interface ToolboxDisplayOptions {
17
17
  default_size: boolean;
18
18
  refresh_datasets: boolean;
19
19
  automate_refresh: boolean;
20
+ edit_presentation_content: boolean;
21
+ share: boolean;
22
+ delete: boolean;
20
23
  }
21
24
  export interface WidgetContextMenuDisplayOptions {
22
25
  datasourceSelection: boolean;
@@ -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;
@@ -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[];
@@ -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">>;
@@ -59,7 +59,6 @@ export declare class DashboardEffects {
59
59
  fetchStaticManifest$: import("rxjs").Observable<{
60
60
  staticManifest: GlobalManifest;
61
61
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) received staticManifest">> & import("@ngrx/effects").CreateEffectMetadata;
62
- fetchStaticManifestLoading$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">> & import("@ngrx/effects").CreateEffectMetadata;
63
62
  loadAndActivateManifest$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) follow manifest route"> | ({
64
63
  tenants?: string[] | undefined;
65
64
  manifest: GlobalManifest;
@@ -88,6 +87,7 @@ export declare class DashboardEffects {
88
87
  name: string;
89
88
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] download manifest">> & import("@ngrx/effects").CreateEffectMetadata;
90
89
  followManifestRoute$: import("rxjs").Observable<[import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) follow manifest route">, import("../../core/model/manifest.interface").DashboardManifest]> & import("@ngrx/effects").CreateEffectMetadata;
90
+ endLoadingAfterFollowingManifestRoute$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] end loading">> & import("@ngrx/effects").CreateEffectMetadata;
91
91
  requestManifestRoute$: import("rxjs").Observable<{
92
92
  sender?: string | undefined;
93
93
  route: string;
@@ -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.3",
3
+ "version": "0.21.5",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "14.x || 15.x || 16.x",
@@ -96,18 +96,18 @@
96
96
  "esm": "./esm2022/import/provoly-dashboard-import.mjs",
97
97
  "default": "./fesm2022/provoly-dashboard-import.mjs"
98
98
  },
99
- "./notification": {
100
- "types": "./notification/index.d.ts",
101
- "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
102
- "esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
103
- "default": "./fesm2022/provoly-dashboard-notification.mjs"
104
- },
105
99
  "./pipeline": {
106
100
  "types": "./pipeline/index.d.ts",
107
101
  "esm2022": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
108
102
  "esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
109
103
  "default": "./fesm2022/provoly-dashboard-pipeline.mjs"
110
104
  },
105
+ "./notification": {
106
+ "types": "./notification/index.d.ts",
107
+ "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
108
+ "esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
109
+ "default": "./fesm2022/provoly-dashboard-notification.mjs"
110
+ },
111
111
  "./presentation": {
112
112
  "types": "./presentation/index.d.ts",
113
113
  "esm2022": "./esm2022/presentation/provoly-dashboard-presentation.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, 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;
@@ -52,6 +54,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
52
54
  changeVisibility(presentation?: ManifestDescription): void;
53
55
  focusCrossElement(): void;
54
56
  focusValidation(): void;
57
+ editContent(selectedPresentation: ManifestDescription): void;
55
58
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, never>;
56
59
  static ɵcmp: i0.ɵɵComponentDeclaration<PryPresentationComponent, "pry-presentation", never, { "editionStartUrl": { "alias": "editionStartUrl"; "required": false; }; "consultStartUrl": { "alias": "consultStartUrl"; "required": false; }; "meAsOwner": { "alias": "meAsOwner"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "listOfManifests": { "alias": "listOfManifests"; "required": false; }; "hideToolbox": { "alias": "hideToolbox"; "required": false; }; "search": { "alias": "search"; "required": false; }; }, {}, never, never, false, never>;
57
60
  }
@@ -34,6 +34,7 @@ export declare const enTranslations: {
34
34
  required: string;
35
35
  maxLength: string;
36
36
  edition: string;
37
+ editionContent: string;
37
38
  delete: string;
38
39
  backToCatalog: string;
39
40
  search: string;
@@ -35,6 +35,7 @@ export declare const frTranslations: {
35
35
  required: string;
36
36
  maxLength: string;
37
37
  edition: string;
38
+ editionContent: string;
38
39
  delete: string;
39
40
  backToCatalog: string;
40
41
  search: 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);
@@ -8,6 +8,14 @@
8
8
  width: toRem(170);
9
9
  padding: toRem(6);
10
10
 
11
+ &.-dropdown {
12
+ width: fit-content;
13
+
14
+ button {
15
+ border: none;
16
+ }
17
+ }
18
+
11
19
  &__list {
12
20
  @extend %list-unstyled;
13
21
 
@@ -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 {
@@ -0,0 +1,19 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { GlobalManifest, ManifestDescription, ViewMode } from '@provoly/dashboard';
4
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
+ import { Overlay } from '@angular/cdk/overlay';
6
+ import * as i0 from "@angular/core";
7
+ 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);
16
+ trigger(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DeleteComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<DeleteComponent, "pry-delete-pres", never, {}, {}, never, never, false, never>;
19
+ }
@@ -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;