@provoly/dashboard 1.1.8 → 1.1.9

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 (94) hide show
  1. package/admin/admin.module.d.ts +1 -1
  2. package/admin/components/admin-dataset/admin-edit-dataset/admin-edit-dataset.component.d.ts +3 -2
  3. package/admin/components/admin-dataset/store/admin-dataset.actions.d.ts +76 -0
  4. package/admin/components/admin-dataset/store/admin-dataset.effects.d.ts +71 -0
  5. package/admin/components/admin-dataset/store/admin-dataset.reducer.d.ts +10 -0
  6. package/admin/components/admin-dataset/store/admin-dataset.selectors.d.ts +10 -0
  7. package/admin/components/admin-dataset/store/admin-dataset.service.d.ts +20 -0
  8. package/admin/store/admin.effects.d.ts +1 -14
  9. package/components/metadata-editor/store/metadata.effects.d.ts +1 -23
  10. package/components/stepper/stepper.component.d.ts +2 -1
  11. package/esm2022/admin/admin.module.mjs +8 -2
  12. package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +8 -6
  13. package/esm2022/admin/components/admin-dataset/admin-edit-dataset/admin-edit-dataset.component.mjs +5 -4
  14. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +11 -9
  15. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +4 -3
  16. package/esm2022/admin/components/admin-dataset/store/admin-dataset.actions.mjs +17 -0
  17. package/esm2022/admin/components/admin-dataset/store/admin-dataset.effects.mjs +104 -0
  18. package/esm2022/admin/components/admin-dataset/store/admin-dataset.reducer.mjs +29 -0
  19. package/esm2022/admin/components/admin-dataset/store/admin-dataset.selectors.mjs +19 -0
  20. package/esm2022/admin/components/admin-dataset/store/admin-dataset.service.mjs +56 -0
  21. package/esm2022/admin/store/admin.effects.mjs +9 -36
  22. package/esm2022/components/metadata-editor/store/metadata.effects.mjs +4 -23
  23. package/esm2022/components/stepper/stepper.component.mjs +11 -8
  24. package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +1 -1
  25. package/esm2022/import/components/import.component.mjs +101 -61
  26. package/esm2022/import/i18n/en.translations.mjs +3 -2
  27. package/esm2022/import/i18n/fr.translations.mjs +3 -2
  28. package/esm2022/import/style/css.component.mjs +2 -2
  29. package/esm2022/lib/core/access/access.service.mjs +4 -1
  30. package/esm2022/lib/core/components/share/access-rights-share/access-rights-share.component.mjs +23 -10
  31. package/esm2022/lib/core/components/share/access-rights-share-modal/access-rights-share-modal.component.mjs +92 -0
  32. package/esm2022/lib/core/components/share/share.module.mjs +39 -6
  33. package/esm2022/lib/core/i18n/fr.translations.mjs +2 -2
  34. package/esm2022/lib/core/public-api.mjs +2 -1
  35. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +1 -15
  36. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +1 -39
  37. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +8 -29
  38. package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +1 -9
  39. package/esm2022/lib/core/store/data-source/data-source.service.mjs +1 -36
  40. package/esm2022/presentation/components/presentation.component.mjs +14 -92
  41. package/esm2022/restitution/components/restitution/restitution.component.mjs +4 -3
  42. package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +10 -23
  43. package/esm2022/restitution/components/restitution-list-item/restitution-list-item.component.mjs +4 -16
  44. package/esm2022/restitution/i18n/en.translations.mjs +2 -1
  45. package/esm2022/restitution/i18n/fr.translations.mjs +2 -1
  46. package/esm2022/restitution/style/css.component.mjs +2 -2
  47. package/esm2022/toolbox/components/edit-mode-action/edit-mode-action.component.mjs +1 -1
  48. package/esm2022/toolbox/components/save-view/save-view.component.mjs +1 -1
  49. package/esm2022/toolbox/components/share/share.component.mjs +18 -75
  50. package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +7 -4
  51. package/esm2022/toolbox/toolbox.model.mjs +2 -2
  52. package/fesm2022/provoly-dashboard-admin.mjs +216 -37
  53. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +4 -21
  55. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard-components-stepper.mjs +10 -7
  57. package/fesm2022/provoly-dashboard-components-stepper.mjs.map +1 -1
  58. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-import.mjs +106 -65
  60. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-presentation.mjs +13 -91
  62. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-restitution.mjs +13 -34
  64. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-toolbox.mjs +33 -82
  66. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard.mjs +155 -148
  68. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  69. package/import/components/import.component.d.ts +31 -18
  70. package/import/i18n/en.translations.d.ts +2 -1
  71. package/import/i18n/fr.translations.d.ts +2 -1
  72. package/import/style/_o-import.scss +16 -29
  73. package/lib/core/access/access.service.d.ts +2 -0
  74. package/lib/core/components/share/access-rights-share/access-rights-share.component.d.ts +5 -2
  75. package/lib/core/components/share/access-rights-share-modal/access-rights-share-modal.component.d.ts +34 -0
  76. package/lib/core/components/share/share.module.d.ts +9 -8
  77. package/lib/core/public-api.d.ts +1 -0
  78. package/lib/core/store/data-source/data-source.actions.d.ts +1 -91
  79. package/lib/core/store/data-source/data-source.effects.d.ts +2 -30
  80. package/lib/core/store/data-source/data-source.reducer.d.ts +0 -3
  81. package/lib/core/store/data-source/data-source.selectors.d.ts +0 -4
  82. package/lib/core/store/data-source/data-source.service.d.ts +0 -9
  83. package/package.json +13 -13
  84. package/presentation/components/presentation.component.d.ts +4 -18
  85. package/restitution/components/restitution/restitution.component.d.ts +1 -0
  86. package/restitution/components/restitution-list/restitution-list.component.d.ts +3 -9
  87. package/restitution/components/restitution-list-item/restitution-list-item.component.d.ts +1 -4
  88. package/restitution/i18n/en.translations.d.ts +1 -0
  89. package/restitution/i18n/fr.translations.d.ts +1 -0
  90. package/restitution/style/_o-restitution-list.scss +0 -11
  91. package/styles/components/_o-modal.scss +1 -1
  92. package/styles-theme/components-theme/_o-restitution-list.theme.scss +0 -9
  93. package/toolbox/components/share/share.component.d.ts +4 -22
  94. package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +3 -1
@@ -1,39 +1,52 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { Dataset, DataSourceService, PryI18nService, PrySnackbarService, SubscriptionnerDirective } from '@provoly/dashboard';
3
+ import { Dataset, DataSourceService, PryDatasetType, PryI18nService, PrySnackbarService, SubscriptionnerDirective } from '@provoly/dashboard';
4
4
  import { Observable } from 'rxjs';
5
+ import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
5
6
  import * as i0 from "@angular/core";
6
7
  type FileExtension = 'csv' | 'zip';
8
+ interface ImportForm {
9
+ fileType: FormControl<FileExtension>;
10
+ file: FormControl<File | null>;
11
+ dataset: FormControl<Dataset | null>;
12
+ normalizeGeo: FormControl<boolean>;
13
+ productionDate: FormControl<string>;
14
+ producer: FormControl<string>;
15
+ additionalInformation: FormControl<string | null>;
16
+ }
7
17
  export declare class PryImportComponent extends SubscriptionnerDirective implements OnDestroy {
8
18
  private store;
9
19
  private dsService;
10
20
  private snackbar;
11
21
  private i18nService;
12
22
  datasets$: Observable<Dataset[]>;
13
- file?: File;
14
- selectedDataset?: Dataset;
15
- selectedFileType: FileExtension;
16
23
  loading$: Observable<boolean>;
17
- normalizeGeoShape: boolean;
18
- fileTypes: {
19
- label: string;
20
- value: FileExtension;
21
- }[];
22
- fileExtension: Record<FileExtension, string>;
24
+ message: ElementRef<HTMLDivElement>;
23
25
  showMessage: boolean;
24
26
  maxDate: string;
25
- productionDate: string;
26
- producer: string;
27
- additionalInformation: string;
27
+ form: FormGroup<ImportForm>;
28
+ fileTypes: {
29
+ [key in FileExtension]: {
30
+ label: string;
31
+ value: FileExtension;
32
+ extension: string;
33
+ };
34
+ };
28
35
  constructor(store: Store, dsService: DataSourceService, snackbar: PrySnackbarService, i18nService: PryI18nService);
29
36
  ngOnDestroy(): void;
37
+ get fileType(): AbstractControl<FileExtension>;
38
+ get file(): AbstractControl<File | null>;
39
+ get dataset(): AbstractControl<Dataset | null>;
40
+ get normalizeGeo(): AbstractControl<boolean>;
41
+ get productionDate(): AbstractControl<string>;
42
+ get producer(): AbstractControl<string>;
30
43
  uploadedChange($event: File): void;
31
44
  submit(): void;
32
- isSubmitDisabled(): boolean;
33
45
  getFileSize(size: number): string;
34
- onFileTypeChange(fileType: FileExtension): void;
35
- getLastActiveVersion($event?: Dataset): void;
36
- productionDateIsInTheFuture(): boolean;
46
+ getLastActiveVersion(dataset: Dataset): void;
47
+ clearMessage(): void;
48
+ protected readonly Object: ObjectConstructor;
49
+ protected readonly PryDatasetType: typeof PryDatasetType;
37
50
  static ɵfac: i0.ɵɵFactoryDeclaration<PryImportComponent, never>;
38
51
  static ɵcmp: i0.ɵɵComponentDeclaration<PryImportComponent, "pry-import", never, {}, {}, never, never, false, never>;
39
52
  }
@@ -12,7 +12,8 @@ export declare const enTranslations: {
12
12
  tooLarge: string;
13
13
  selectFile: string;
14
14
  importedLines: string;
15
- consultDataset: string;
15
+ consultDataset1: string;
16
+ consultDataset2: string;
16
17
  errors: string;
17
18
  error: string;
18
19
  errorCode: {
@@ -12,7 +12,8 @@ export declare const frTranslations: {
12
12
  tooLarge: string;
13
13
  selectFile: string;
14
14
  importedLines: string;
15
- consultDataset: string;
15
+ consultDataset1: string;
16
+ consultDataset2: string;
16
17
  shapefileState: string;
17
18
  error: string;
18
19
  errors: string;
@@ -8,44 +8,31 @@
8
8
  height: 100%;
9
9
  padding: toRem(15) toRem(25);
10
10
 
11
- &__container {
12
- display: grid;
13
- grid-template-columns: repeat(2, 1fr);
14
- grid-template-rows: minmax(400px, 600px);
15
- grid-column-gap: toRem(75);
16
- padding-top: toRem(15);
17
-
18
- &__input {
19
- padding-top: toRem(15);
11
+ .u-display-flex {
12
+ gap: toRem(75);
13
+ }
20
14
 
21
- .o-file-input {
22
- min-height: toRem(75);
23
- }
15
+ &__form {
16
+ max-width: 50%;
17
+ }
24
18
 
25
- &__file {
26
- text-align: center;
27
- }
19
+ .o-file-input {
20
+ min-height: toRem(75);
21
+ }
28
22
 
29
- &__actions {
30
- display: flex;
31
- justify-content: space-around;
32
- margin-top: toRem(50);
23
+ &__file {
24
+ text-align: center;
25
+ }
33
26
 
34
- .a-btn {
35
- padding: toRem(5) toRem(60);
36
- }
37
- }
38
- }
27
+ &__actions {
28
+ margin-top: toRem(50)
39
29
  }
40
30
 
41
- &__result {
31
+ &__message {
42
32
  padding: toRem(15);
43
33
  background-color: #ecedf4;
44
34
  border-radius: toRem(10);
45
35
  overflow-y: auto;
46
-
47
- &__error {
48
- padding: toRem(5) 0;
49
- }
36
+ height: fit-content;
50
37
  }
51
38
  }
@@ -5,12 +5,14 @@ import * as i0 from "@angular/core";
5
5
  export declare abstract class PryBaseAccess {
6
6
  abstract hasRole(...args: any[]): Observable<boolean>;
7
7
  abstract canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
8
+ abstract hasGroup(group: string): Observable<boolean>;
8
9
  }
9
10
  export declare const PRY_ACCESS_TOKEN: InjectionToken<PryBaseAccess>;
10
11
  export declare class PryDefaultAccessService extends PryBaseAccess {
11
12
  constructor();
12
13
  hasRole(...args: any[]): Observable<boolean>;
13
14
  canModifyPresentation(presentation: ManifestDescription): Observable<boolean>;
15
+ hasGroup(group: string): Observable<boolean>;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultAccessService, never>;
15
17
  static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultAccessService>;
16
18
  }
@@ -5,10 +5,12 @@ import { Group } from '../share.model';
5
5
  import { ManifestDescription } from '../../../model/manifest.interface';
6
6
  import { PryI18nService } from '../../../i18n/i18n.service';
7
7
  import { BehaviorSubject, Observable } from 'rxjs';
8
+ import { PryBaseAccess } from '../../../access/access.service';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class PryAccessRightsShareComponent extends SubscriptionnerDirective implements ControlValueAccessor {
10
11
  private store;
11
12
  protected i18n: PryI18nService;
13
+ private access;
12
14
  value: {
13
15
  [key: string]: string;
14
16
  };
@@ -31,7 +33,7 @@ export declare class PryAccessRightsShareComponent extends SubscriptionnerDirect
31
33
  selectedGroups?: Group[];
32
34
  selectedAccessRight: string;
33
35
  assignedGroups$: BehaviorSubject<string[]>;
34
- constructor(store: Store, i18n: PryI18nService);
36
+ constructor(store: Store, i18n: PryI18nService, access: PryBaseAccess);
35
37
  writeValue(value: {
36
38
  [key: string]: string[];
37
39
  } | undefined): void;
@@ -45,9 +47,10 @@ export declare class PryAccessRightsShareComponent extends SubscriptionnerDirect
45
47
  isAddingDisabled(): boolean;
46
48
  emitAlreadyAssignedGroups(): void;
47
49
  filterAvailableAccessRights(): void;
50
+ userBelongsToGroup(group: string): Observable<boolean>;
48
51
  protected readonly getGroupLabelByName: (groupName: string, i18n: PryI18nService) => string;
49
52
  protected readonly PUBLIC_GROUP = "ALL";
50
53
  protected readonly AUTHENTICATED_USERS_GROUP = "AUTHENTICATED";
51
- static ɵfac: i0.ɵɵFactoryDeclaration<PryAccessRightsShareComponent, never>;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryAccessRightsShareComponent, [null, null, { optional: true; }]>;
52
55
  static ɵcmp: i0.ɵɵComponentDeclaration<PryAccessRightsShareComponent, "pry-access-rights-share", never, { "manifestDescription": { "alias": "manifestDescription"; "required": true; }; "allowedGroups": { "alias": "allowedGroups"; "required": false; }; }, {}, never, never, false, never>;
53
56
  }
@@ -0,0 +1,34 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { PryDialogRef } from '../../overlay/dialog-ref';
3
+ import { ManifestDescription } from '../../../model/manifest.interface';
4
+ import { Store } from '@ngrx/store';
5
+ import { BehaviorSubject, Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class PryAccessRightsShareModalComponent {
8
+ private store;
9
+ private dialogRef;
10
+ private data;
11
+ manifest: ManifestDescription;
12
+ accessRightsByGroup: {
13
+ [key: string]: string[];
14
+ };
15
+ allowedShareGroups$: Observable<string[] | null>;
16
+ disableShareButton$: BehaviorSubject<boolean>;
17
+ confirm: ElementRef<HTMLButtonElement>;
18
+ submit: ElementRef<HTMLButtonElement>;
19
+ cross: ElementRef<HTMLButtonElement>;
20
+ crossVisibility: ElementRef<HTMLButtonElement>;
21
+ constructor(store: Store<any>, dialogRef: PryDialogRef<PryAccessRightsShareModalComponent>, data: {
22
+ manifest: ManifestDescription;
23
+ });
24
+ updateAccessRights($event: {
25
+ [key: string]: string[];
26
+ }): void;
27
+ updateDisableButtonValue(): void;
28
+ validate(): void;
29
+ toggleModal(): void;
30
+ focusCrossElement(): void;
31
+ focusValidation(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryAccessRightsShareModalComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryAccessRightsShareModalComponent, "pry-access-rights-share-modal", never, {}, {}, never, never, false, never>;
34
+ }
@@ -2,15 +2,16 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./legacy-share/share.component";
3
3
  import * as i2 from "./group-share/group-share.component";
4
4
  import * as i3 from "./access-rights-share/access-rights-share.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "../select/select.module";
8
- import * as i7 from "../../i18n/i18n.module";
9
- import * as i8 from "../../core.module";
10
- import * as i9 from "../../../dashboard/dashboard.module";
11
- import * as i10 from "../icon/icon.module";
5
+ import * as i4 from "./access-rights-share-modal/access-rights-share-modal.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/forms";
8
+ import * as i7 from "../select/select.module";
9
+ import * as i8 from "../../i18n/i18n.module";
10
+ import * as i9 from "../../core.module";
11
+ import * as i10 from "../../../dashboard/dashboard.module";
12
+ import * as i11 from "../icon/icon.module";
12
13
  export declare class PryShareModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<PryShareModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent, typeof i3.PryAccessRightsShareComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.PrySelectModule, typeof i7.PryI18nModule, typeof i8.PryCoreModule, typeof i9.PryDashboardModule, typeof i10.PryIconModule], [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent, typeof i3.PryAccessRightsShareComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryShareModule, [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent, typeof i3.PryAccessRightsShareComponent, typeof i4.PryAccessRightsShareModalComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.PrySelectModule, typeof i8.PryI18nModule, typeof i9.PryCoreModule, typeof i10.PryDashboardModule, typeof i11.PryIconModule], [typeof i1.PryShareComponent, typeof i2.PryGroupShareComponent, typeof i3.PryAccessRightsShareComponent, typeof i4.PryAccessRightsShareModalComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<PryShareModule>;
16
17
  }
@@ -93,6 +93,7 @@ export * from './components/range/range.module';
93
93
  export * from './components/share/legacy-share/share.component';
94
94
  export * from './components/share/group-share/group-share.component';
95
95
  export * from './components/share/access-rights-share/access-rights-share.component';
96
+ export * from './components/share/access-rights-share-modal/access-rights-share-modal.component';
96
97
  export * from './components/share/share.model';
97
98
  export * from './components/share/share.utils';
98
99
  export * from './components/share/share.module';
@@ -1,4 +1,4 @@
1
- import { MissingGroupsByEntity, PryVisibility } from '../../components/share/share.model';
1
+ import { PryVisibility } from '../../components/share/share.model';
2
2
  import { DatasetPreview } from '../../model/dataset.interface';
3
3
  import { MonoClassSearchPayload } from '../../model/search-mono-class.model';
4
4
  import { FullTextSearchPayload, MultiClassSearchPayload } from '../../model/search-multi-class.model';
@@ -75,15 +75,6 @@ export declare const DataSourceActions: {
75
75
  stopRename: import("@ngrx/store").ActionCreator<"[NamedQuery] stop rename", () => import("@ngrx/store/src/models").TypedAction<"[NamedQuery] stop rename">>;
76
76
  };
77
77
  dataset: {
78
- confirmDataSourceDeletion: import("@ngrx/store").ActionCreator<"[Datase] confirm deletion datasource", (props: {
79
- name: string;
80
- route: string;
81
- addRoute: string;
82
- }) => {
83
- name: string;
84
- route: string;
85
- addRoute: string;
86
- } & import("@ngrx/store/src/models").TypedAction<"[Datase] confirm deletion datasource">>;
87
78
  loadDataset: import("@ngrx/store").ActionCreator<"[Dataset] load datasets", () => import("@ngrx/store/src/models").TypedAction<"[Dataset] load datasets">>;
88
79
  loadedDataset: import("@ngrx/store").ActionCreator<"[Dataset] loaded datasets", (props: {
89
80
  datasets: Dataset[];
@@ -95,87 +86,6 @@ export declare const DataSourceActions: {
95
86
  }) => {
96
87
  error: any;
97
88
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] failure effect Dataset">>;
98
- create: import("@ngrx/store").ActionCreator<"[Dataset] create Dataset", (props: {
99
- dataset: Dataset;
100
- route: string;
101
- }) => {
102
- dataset: Dataset;
103
- route: string;
104
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] create Dataset">>;
105
- created: import("@ngrx/store").ActionCreator<"[Dataset] Datadef is created call to admin", (props: {
106
- path: string;
107
- params?: {
108
- [p: string]: string;
109
- } | undefined;
110
- }) => {
111
- path: string;
112
- params?: {
113
- [p: string]: string;
114
- } | undefined;
115
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Datadef is created call to admin">>;
116
- update: import("@ngrx/store").ActionCreator<"[Dataset] update Dataset", (props: {
117
- dataset: Dataset;
118
- route?: string | undefined;
119
- }) => {
120
- dataset: Dataset;
121
- route?: string | undefined;
122
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] update Dataset">>;
123
- setMissingGroups: import("@ngrx/store").ActionCreator<"[Dataset] set missing groups", (props: {
124
- missingGroups?: MissingGroupsByEntity | undefined;
125
- }) => {
126
- missingGroups?: MissingGroupsByEntity | undefined;
127
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] set missing groups">>;
128
- updated: import("@ngrx/store").ActionCreator<"[Dataset] Dataset is updated call to admin", (props: {
129
- path: string;
130
- params?: {
131
- [p: string]: string;
132
- } | undefined;
133
- }) => {
134
- path: string;
135
- params?: {
136
- [p: string]: string;
137
- } | undefined;
138
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Dataset is updated call to admin">>;
139
- delete: import("@ngrx/store").ActionCreator<"[Dataset] delete Dataset", (props: {
140
- name: string;
141
- route: string;
142
- addRoute: string;
143
- }) => {
144
- name: string;
145
- route: string;
146
- addRoute: string;
147
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] delete Dataset">>;
148
- deleted: import("@ngrx/store").ActionCreator<"[Dataset] Dataset is deleted call to admin", (props: {
149
- addRoute: string;
150
- }) => {
151
- addRoute: string;
152
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Dataset is deleted call to admin">>;
153
- unselectDataset: import("@ngrx/store").ActionCreator<"[Dataset] unselect Dataset", () => import("@ngrx/store/src/models").TypedAction<"[Dataset] unselect Dataset">>;
154
- selectDataset: import("@ngrx/store").ActionCreator<"[Dataset] open Dataset details", (props: {
155
- dataset: Dataset;
156
- }) => {
157
- dataset: Dataset;
158
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] open Dataset details">>;
159
- getDatasetById: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset by ID", (props: {
160
- id: string;
161
- }) => {
162
- id: string;
163
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset by ID">>;
164
- getDatasetByIdSuccess: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset by Id Success", (props: {
165
- data: Dataset;
166
- }) => {
167
- data: Dataset;
168
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset by Id Success">>;
169
- getDatasetByIdFailure: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset by Id Failure", (props: {
170
- error: any;
171
- }) => {
172
- error: any;
173
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset by Id Failure">>;
174
- openNewDataset: import("@ngrx/store").ActionCreator<"[Dataset] open new Dataset", (props: {
175
- route: string;
176
- }) => {
177
- route: string;
178
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] open new Dataset">>;
179
89
  listVersions: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset versions", () => import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions">>;
180
90
  listVersionsSuccess: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset versions Success", (props: {
181
91
  versions: DatasetVersion[];
@@ -4,7 +4,7 @@ import { PryDialogService } from '../../components/overlay/dialog.service';
4
4
  import { PrySnackbarService } from '../../components/snackbar/snackbar.service';
5
5
  import { PryI18nService } from '../../i18n/i18n.service';
6
6
  import { SearchService } from '../search/search.service';
7
- import { Dataset, NamedQuery } from './data-source.model';
7
+ import { NamedQuery } from './data-source.model';
8
8
  import { DataSourceService } from './data-source.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class DataSourceEffects {
@@ -48,32 +48,9 @@ export declare class DataSourceEffects {
48
48
  index: number;
49
49
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] updating widget view">> & import("@ngrx/effects").CreateEffectMetadata;
50
50
  loadedDataset$: import("rxjs").Observable<{
51
- datasets: Dataset[];
51
+ datasets: import("./data-source.model").Dataset[];
52
52
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] loaded datasets">> & import("@ngrx/effects").CreateEffectMetadata;
53
53
  loadDataset$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[NamedQuery] load"> | import("@ngrx/store/src/models").TypedAction<"[Dataset] load datasets">> & import("@ngrx/effects").CreateEffectMetadata;
54
- createDataset$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] load datasets"> | import("@ngrx/store/src/models").TypedAction<"[Dataset] unselect Dataset"> | ({
55
- error: any;
56
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] failure effect Dataset">) | ({
57
- path: string;
58
- params?: {
59
- [p: string]: string;
60
- } | undefined;
61
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Datadef is created call to admin">)> & import("@ngrx/effects").CreateEffectMetadata;
62
- unsetMissingGroupsOnDatasetSelection$: import("rxjs").Observable<({
63
- missingGroups?: import("@provoly/dashboard").MissingGroupsByEntity | undefined;
64
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] set missing groups">) | ({
65
- id: string;
66
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset Versions by Dataset Id">)> & import("@ngrx/effects").CreateEffectMetadata;
67
- deleteDataset$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] load datasets"> | import("@ngrx/store/src/models").TypedAction<"[Dataset] unselect Dataset"> | ({
68
- error: any;
69
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] failure effect Dataset">) | ({
70
- addRoute: string;
71
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Dataset is deleted call to admin">)> & import("@ngrx/effects").CreateEffectMetadata;
72
- getDatasetById$: import("rxjs").Observable<({
73
- data: Dataset;
74
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset by Id Success">) | ({
75
- error: any;
76
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset by Id Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
77
54
  listVersions$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Failure"> | ({
78
55
  versions: import("./data-source.model").DatasetVersion[];
79
56
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Success">)> & import("@ngrx/effects").CreateEffectMetadata;
@@ -81,11 +58,6 @@ export declare class DataSourceEffects {
81
58
  id: string;
82
59
  versions: import("./data-source.model").DatasetVersion[];
83
60
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Update Dataset version list">)> & import("@ngrx/effects").CreateEffectMetadata;
84
- confirmDatasourceDeletion$: import("rxjs").Observable<{
85
- name: string;
86
- route: string;
87
- addRoute: string;
88
- } & import("@ngrx/store/src/models").TypedAction<"[Datase] confirm deletion datasource">> & import("@ngrx/effects").CreateEffectMetadata;
89
61
  deactivateDatasetVersion$: import("rxjs").Observable<({
90
62
  datasetVersion: import("./data-source.model").DatasetVersion;
91
63
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Deactivate dataset version success">) | ({
@@ -1,6 +1,5 @@
1
1
  import { DatasetPreview } from '../../model/dataset.interface';
2
2
  import { Dataset, DatasetVersion, NamedQuery } from './data-source.model';
3
- import { MissingGroupsByEntity } from '../../components/share/share.model';
4
3
  export declare const dataSourceFeatureKey = "@pry/datasources";
5
4
  export interface DataSourceState {
6
5
  isLoading: boolean;
@@ -12,12 +11,10 @@ export interface DataSourceState {
12
11
  };
13
12
  isRename: boolean;
14
13
  datasets: Dataset[];
15
- selectedDataset: Dataset | null;
16
14
  error?: Error;
17
15
  datasetVersions: DatasetVersion[];
18
16
  selectedDatasetVersion: DatasetVersion | null;
19
17
  previews: DatasetPreview[];
20
- missingGroups?: MissingGroupsByEntity;
21
18
  }
22
19
  export declare const initialDataSourceState: DataSourceState;
23
20
  export declare const dataSourceReducer: import("@ngrx/store").ActionReducer<DataSourceState, import("@ngrx/store").Action>;
@@ -22,11 +22,7 @@ export declare const DataSourceSelectors: {
22
22
  isLoading: MemoizedSelector<object, boolean, (s1: DataSourceState) => boolean>;
23
23
  getDataSources: MemoizedSelector<object, DataSource[], (s1: import("./data-source.model").NamedQuery[], s2: import("./data-source.model").Dataset[]) => DataSource[]>;
24
24
  getDataSourcesSorted: MemoizedSelector<object, DataSource[], (s1: import("./data-source.model").NamedQuery[], s2: import("./data-source.model").Dataset[]) => DataSource[]>;
25
- selectedDataset: MemoizedSelector<object, import("./data-source.model").Dataset | null, (s1: DataSourceState) => import("./data-source.model").Dataset | null>;
26
- selectedDatasetMetadata: MemoizedSelector<object, import("@provoly/dashboard").MetadataValue[], (s1: DataSourceState) => import("@provoly/dashboard").MetadataValue[]>;
27
- selectedDatasetMissingGroups: MemoizedSelector<object, import("@provoly/dashboard").MissingGroupsByEntity | undefined, (s1: DataSourceState) => import("@provoly/dashboard").MissingGroupsByEntity | undefined>;
28
25
  datasetVersions: MemoizedSelector<object, DatasetVersion[], (s1: DataSourceState) => DatasetVersion[]>;
29
- selectedDatasetId: MemoizedSelector<object, string | undefined, (s1: DataSourceState) => string | undefined>;
30
26
  matchingDatasetVersions: (datasetId: string) => MemoizedSelector<any, DatasetVersion[], import("@ngrx/store").DefaultProjectorFn<DatasetVersion[]>>;
31
27
  datasetPreviews: MemoizedSelector<object, import("@provoly/dashboard").DatasetPreview[], (s1: DataSourceState) => import("@provoly/dashboard").DatasetPreview[]>;
32
28
  };
@@ -2,12 +2,10 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
4
  import { PryI18nService } from '../../i18n/i18n.service';
5
- import { MetadataValue } from '../../model/admin-api.model';
6
5
  import { DatasetPreview } from '../../model/dataset.interface';
7
6
  import { ConfigState } from '../config/config.reducer';
8
7
  import { Dataset, DatasetVersion, NamedQuery } from './data-source.model';
9
8
  import { DataSourceState } from './data-source.reducer';
10
- import { ShareConflict } from '../../components/share/share.model';
11
9
  import * as i0 from "@angular/core";
12
10
  export interface ResponseRequest {
13
11
  data: {
@@ -25,13 +23,6 @@ export declare class DataSourceService {
25
23
  addFavorite(id: string): Observable<ResponseRequest>;
26
24
  deleteFavorite(id: string): Observable<ResponseRequest>;
27
25
  getDatasets(): Observable<Dataset[]>;
28
- addDataset(dataset: Dataset): Observable<void>;
29
- updateDataset(dataset: Dataset): Observable<undefined | ShareConflict>;
30
- deleteDataset(id: string): Observable<void>;
31
- getDatasetById(id: string): Observable<Dataset>;
32
- getDatasetMetadata(id: string): Observable<MetadataValue[]>;
33
- addDatasetMetadata(datasetId: string, metadataId: string, value: any): Observable<void>;
34
- deleteDatasetMetadata(datasetId: string, metadataId: string): Observable<void>;
35
26
  getDatasetVersions(): Observable<DatasetVersion[]>;
36
27
  getDatasetVersionsById(id: string): Observable<DatasetVersion[]>;
37
28
  getPreviews(id: string): Observable<DatasetPreview[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.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
- "./pipeline": {
100
- "types": "./pipeline/index.d.ts",
101
- "esm2022": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
102
- "esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
103
- "default": "./fesm2022/provoly-dashboard-pipeline.mjs"
104
- },
105
99
  "./notification": {
106
100
  "types": "./notification/index.d.ts",
107
101
  "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
108
102
  "esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
109
103
  "default": "./fesm2022/provoly-dashboard-notification.mjs"
110
104
  },
105
+ "./pipeline": {
106
+ "types": "./pipeline/index.d.ts",
107
+ "esm2022": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
108
+ "esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
109
+ "default": "./fesm2022/provoly-dashboard-pipeline.mjs"
110
+ },
111
111
  "./presentation": {
112
112
  "types": "./presentation/index.d.ts",
113
113
  "esm2022": "./esm2022/presentation/provoly-dashboard-presentation.mjs",
@@ -234,18 +234,18 @@
234
234
  "esm": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
235
235
  "default": "./fesm2022/provoly-dashboard-pipeline-components-filter.mjs"
236
236
  },
237
- "./pipeline-components/input-datasource": {
238
- "types": "./pipeline-components/input-datasource/index.d.ts",
239
- "esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
240
- "esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
241
- "default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
242
- },
243
237
  "./pipeline-components/noop": {
244
238
  "types": "./pipeline-components/noop/index.d.ts",
245
239
  "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
246
240
  "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
247
241
  "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
248
242
  },
243
+ "./pipeline-components/input-datasource": {
244
+ "types": "./pipeline-components/input-datasource/index.d.ts",
245
+ "esm2022": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
246
+ "esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
247
+ "default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
248
+ },
249
249
  "./pipeline-components/output-dataset": {
250
250
  "types": "./pipeline-components/output-dataset/index.d.ts",
251
251
  "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.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, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
5
+ import { DashboardManifest, ManifestDescription, PryBaseAccess, PryDialogService, 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 {
@@ -14,19 +14,14 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
14
14
  protected activatedRoute: ActivatedRoute;
15
15
  protected ngZone: NgZone;
16
16
  private access;
17
+ private dialog;
17
18
  manifests$: Observable<ManifestDescription[]>;
18
19
  selectedPresentation$: BehaviorSubject<ManifestDescription | null>;
19
20
  staticManifest$?: Observable<DashboardManifest>;
20
21
  selectedMode: ViewMode;
21
22
  modalOpened: boolean;
22
23
  templateModalActions: TemplateRef<any>;
23
- template: TemplateRef<any>;
24
24
  openModal: ElementRef<HTMLButtonElement>;
25
- confirm: ElementRef<HTMLButtonElement>;
26
- submit: ElementRef<HTMLButtonElement>;
27
- cross: ElementRef<HTMLButtonElement>;
28
- crossVisibility: ElementRef<HTMLButtonElement>;
29
- visibilityModal: ElementRef;
30
25
  overlayRef?: OverlayRef;
31
26
  accessRightsByGroup: {
32
27
  [key: string]: string[];
@@ -38,14 +33,12 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
38
33
  search$: BehaviorSubject<string>;
39
34
  filteredPresentations$: Observable<ManifestDescription[]>;
40
35
  listOfManifests$: BehaviorSubject<ManifestDescription[] | null>;
41
- allowedShareGroups$: Observable<string[] | null>;
42
- disableShareButton$: BehaviorSubject<boolean>;
43
36
  mode: 'theme' | 'meta';
44
37
  set listOfManifests(manifests: ManifestDescription[] | null);
45
38
  hideToolbox: boolean;
46
39
  inputSearch$: BehaviorSubject<string>;
47
40
  set search(query: string);
48
- constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, titleService: PryTitleService, activatedRoute: ActivatedRoute, ngZone: NgZone, access: PryBaseAccess);
41
+ constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, titleService: PryTitleService, activatedRoute: ActivatedRoute, ngZone: NgZone, access: PryBaseAccess, dialog: PryDialogService);
49
42
  closeRestitution(): void;
50
43
  fetch(presentation: ManifestDescription): void;
51
44
  creation(): void;
@@ -53,16 +46,9 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
53
46
  delete(id: string): void;
54
47
  toggleModalActions(presentation?: ManifestDescription | null, moreButton?: HTMLButtonElement): void;
55
48
  toggleModal(presentation?: ManifestDescription | null): void;
56
- changeVisibility(presentation?: ManifestDescription): void;
57
- focusCrossElement(): void;
58
- focusValidation(): void;
59
49
  editContent(selectedPresentation: ManifestDescription): void;
60
- updateAccessRights($event: {
61
- [key: string]: string[];
62
- }, presentation?: ManifestDescription): void;
63
- updateDisableButtonValue(presentation?: ManifestDescription): void;
64
50
  isPrivate(presentation: ManifestDescription): boolean;
65
51
  canModify$(presentation: ManifestDescription): Observable<boolean>;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, [null, null, null, null, null, null, null, { optional: true; }, null]>;
67
53
  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>;
68
54
  }
@@ -37,6 +37,7 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
37
37
  manifest: WidgetManifest;
38
38
  }[];
39
39
  usedDatasources$: Observable<DataSource[]>;
40
+ activeStepIndex: number;
40
41
  constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
41
42
  ngOnInit(): void;
42
43
  cancel(stepper: PryStepperComponent): void;