@provoly/dashboard 0.11.9 → 0.12.1

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 (127) hide show
  1. package/dataset/i18n/en.translations.d.ts +3 -1
  2. package/dataset/i18n/fr.translations.d.ts +1 -0
  3. package/dataset/style/_o-pry-dataset.scss +2 -7
  4. package/esm2022/dataset/components/dataset-card/dataset-card.component.mjs +3 -3
  5. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
  6. package/esm2022/dataset/components/dataset.component.mjs +3 -2
  7. package/esm2022/dataset/i18n/en.translations.mjs +4 -2
  8. package/esm2022/dataset/i18n/fr.translations.mjs +3 -2
  9. package/esm2022/dataset/style/css.component.mjs +2 -2
  10. package/esm2022/filters/date/date-filter.component.mjs +24 -8
  11. package/esm2022/filters/date/date-filter.module.mjs +7 -8
  12. package/esm2022/filters/date/public-api.mjs +1 -2
  13. package/esm2022/filters/number/number-filter.component.mjs +5 -4
  14. package/esm2022/filters/number/number-filter.module.mjs +5 -5
  15. package/esm2022/filters/text/text-filter.component.mjs +5 -4
  16. package/esm2022/filters/text/text-filter.module.mjs +5 -5
  17. package/esm2022/lib/core/components/modal-status/modal-status.component.mjs +40 -0
  18. package/esm2022/lib/core/components/modal-status/modal-status.module.mjs +28 -0
  19. package/esm2022/lib/core/core.module.mjs +6 -11
  20. package/esm2022/lib/core/i18n/en.translations.mjs +4 -1
  21. package/esm2022/lib/core/i18n/fr.translations.mjs +4 -1
  22. package/esm2022/lib/core/model/dataset.interface.mjs +1 -1
  23. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  24. package/esm2022/lib/core/public-api.mjs +3 -4
  25. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +5 -5
  26. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +2 -2
  27. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +7 -7
  28. package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +3 -3
  29. package/esm2022/lib/core/store/data-source/data-source.service.mjs +3 -3
  30. package/esm2022/lib/dashboard/store/manifest.service.mjs +10 -7
  31. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +8 -8
  32. package/esm2022/presentation/components/presentation.component.mjs +4 -4
  33. package/esm2022/presentation/components/title-presentation/title-presentation.component.mjs +33 -0
  34. package/esm2022/presentation/presentation.module.mjs +28 -11
  35. package/esm2022/presentation/public-api.mjs +2 -1
  36. package/esm2022/presentation/style/css.component.mjs +2 -2
  37. package/esm2022/restitution/components/restitution-list/restitution-list.component.mjs +15 -9
  38. package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
  39. package/esm2022/restitution/style/css.component.mjs +2 -2
  40. package/esm2022/search/search-home/search-home.component.mjs +3 -3
  41. package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +104 -0
  42. package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +8 -10
  43. package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +8 -10
  44. package/esm2022/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.mjs +7 -9
  45. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +7 -7
  46. package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +8 -10
  47. package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +38 -0
  48. package/esm2022/toolbox/components/save-view/save-view.component.mjs +9 -12
  49. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +9 -12
  50. package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +26 -0
  51. package/esm2022/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.mjs +44 -0
  52. package/esm2022/toolbox/components/toolbox.component.mjs +40 -12
  53. package/esm2022/toolbox/public-api.mjs +6 -1
  54. package/esm2022/toolbox/style/css.component.mjs +3 -3
  55. package/esm2022/toolbox/toolbox.model.mjs +59 -0
  56. package/esm2022/toolbox/toolbox.module.mjs +22 -6
  57. package/fesm2022/provoly-dashboard-dataset.mjs +12 -8
  58. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-filters-date.mjs +31 -23
  60. package/fesm2022/provoly-dashboard-filters-date.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-filters-number.mjs +8 -7
  62. package/fesm2022/provoly-dashboard-filters-number.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-filters-text.mjs +8 -7
  64. package/fesm2022/provoly-dashboard-filters-text.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-presentation.mjs +66 -25
  66. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-restitution.mjs +17 -11
  68. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard-search.mjs +2 -2
  70. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  71. package/fesm2022/provoly-dashboard-toolbox.mjs +328 -69
  72. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  73. package/fesm2022/provoly-dashboard.mjs +177 -184
  74. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  75. package/filters/date/date-filter.component.d.ts +1 -0
  76. package/filters/date/date-filter.module.d.ts +5 -6
  77. package/filters/date/public-api.d.ts +0 -1
  78. package/filters/number/number-filter.module.d.ts +1 -1
  79. package/filters/text/text-filter.module.d.ts +1 -1
  80. package/lib/core/components/{modalStatus/modalStatus.component.d.ts → modal-status/modal-status.component.d.ts} +10 -3
  81. package/lib/core/components/{modalStatus/modalStatus.module.d.ts → modal-status/modal-status.module.d.ts} +1 -1
  82. package/lib/core/core.module.d.ts +11 -12
  83. package/lib/core/i18n/en.translations.d.ts +3 -0
  84. package/lib/core/i18n/fr.translations.d.ts +3 -0
  85. package/lib/core/model/dataset.interface.d.ts +11 -4
  86. package/lib/core/model/manifest.interface.d.ts +1 -0
  87. package/lib/core/public-api.d.ts +2 -3
  88. package/lib/core/store/data-source/data-source.actions.d.ts +10 -10
  89. package/lib/core/store/data-source/data-source.effects.d.ts +4 -4
  90. package/lib/core/store/data-source/data-source.reducer.d.ts +2 -2
  91. package/lib/core/store/data-source/data-source.selectors.d.ts +1 -1
  92. package/lib/core/store/data-source/data-source.service.d.ts +2 -2
  93. package/lib/dashboard/store/manifest.service.d.ts +1 -0
  94. package/package.json +1 -1
  95. package/{lib/core → presentation}/components/title-presentation/title-presentation.component.d.ts +3 -2
  96. package/presentation/presentation.module.d.ts +4 -3
  97. package/presentation/public-api.d.ts +1 -0
  98. package/presentation/style/_o-pry-presentation.scss +42 -1
  99. package/restitution/components/restitution-list/restitution-list.component.d.ts +5 -5
  100. package/styles/components/_m-actions-list.scss +1 -0
  101. package/styles/components/_m-filter.scss +43 -0
  102. package/styles-theme/components-theme/_m-filter.theme.scss +12 -0
  103. package/styles-theme/main-theme.scss +2 -0
  104. package/toolbox/components/automate-refresh/automate-refresh.component.d.ts +29 -0
  105. package/toolbox/components/clear-view/clear-view.component.d.ts +3 -4
  106. package/toolbox/components/drag-widgets/drag-widgets.component.d.ts +3 -4
  107. package/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.d.ts +3 -4
  108. package/toolbox/components/filter-settings/filter-settings.component.d.ts +3 -3
  109. package/toolbox/components/launch-tab/launch-tab.component.d.ts +3 -4
  110. package/toolbox/components/refresh-datasets/refresh-datasets.component.d.ts +14 -0
  111. package/toolbox/components/save-view/save-view.component.d.ts +4 -5
  112. package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +4 -5
  113. package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +12 -0
  114. package/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.d.ts +17 -0
  115. package/toolbox/components/toolbox.component.d.ts +18 -3
  116. package/toolbox/public-api.d.ts +5 -0
  117. package/toolbox/style/_o-automate-refresh.scss +24 -0
  118. package/toolbox/style/_o-toolbox.scss +30 -0
  119. package/toolbox/style/css.component.d.ts +1 -1
  120. package/toolbox/toolbox.model.d.ts +10 -0
  121. package/toolbox/toolbox.module.d.ts +22 -18
  122. package/esm2022/filters/date/style/css.component.mjs +0 -11
  123. package/esm2022/lib/core/components/modalStatus/modalStatus.component.mjs +0 -35
  124. package/esm2022/lib/core/components/modalStatus/modalStatus.module.mjs +0 -28
  125. package/esm2022/lib/core/components/title-presentation/title-presentation.component.mjs +0 -26
  126. package/filters/date/style/_m-date.scss +0 -6
  127. package/filters/date/style/css.component.d.ts +0 -5
@@ -12,6 +12,7 @@ export declare class DateFilterComponent extends BaseFilterComponent implements
12
12
  constructor(store: Store);
13
13
  ngOnInit(): void;
14
14
  setFilter(value: string): void;
15
+ clearDate(index: number): void;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DateFilterComponent, never>;
16
17
  static ɵcmp: i0.ɵɵComponentDeclaration<DateFilterComponent, "pry-date-filter", never, {}, {}, never, never, false, never>;
17
18
  }
@@ -2,14 +2,13 @@ import { Type } from '@angular/core';
2
2
  import { BaseFilterComponent, BaseFilterModule } from '@provoly/dashboard';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "./date-filter.component";
5
- import * as i2 from "./style/css.component";
6
- import * as i3 from "@angular/common";
7
- import * as i4 from "@angular/forms";
8
- import * as i5 from "@angular/cdk/overlay";
9
- import * as i6 from "@provoly/dashboard";
5
+ import * as i2 from "@angular/common";
6
+ import * as i3 from "@angular/forms";
7
+ import * as i4 from "@angular/cdk/overlay";
8
+ import * as i5 from "@provoly/dashboard";
10
9
  export declare class PryDateFilterModule extends BaseFilterModule {
11
10
  getComponent(): Type<BaseFilterComponent>;
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDateFilterModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryDateFilterModule, [typeof i1.DateFilterComponent, typeof i2.PryDateFilterCssComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.OverlayModule, typeof i6.PryCoreModule, typeof i6.PryI18nModule, typeof i6.PryDatePickerModule], [typeof i1.DateFilterComponent, typeof i2.PryDateFilterCssComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryDateFilterModule, [typeof i1.DateFilterComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OverlayModule, typeof i5.PryCoreModule, typeof i5.PryI18nModule, typeof i5.PryDatePickerModule, typeof i5.PryIconModule], [typeof i1.DateFilterComponent]>;
14
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PryDateFilterModule>;
15
14
  }
@@ -1,3 +1,2 @@
1
1
  export * from './date-filter.module';
2
2
  export * from './date-filter.component';
3
- export * from './style/css.component';
@@ -9,6 +9,6 @@ import * as i5 from "@provoly/dashboard";
9
9
  export declare class PryNumberFilterModule extends BaseFilterModule {
10
10
  getComponent(): Type<BaseFilterComponent>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryNumberFilterModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryNumberFilterModule, [typeof i1.NumberFilterComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OverlayModule, typeof i5.PryCoreModule, typeof i5.PryI18nModule], [typeof i1.NumberFilterComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryNumberFilterModule, [typeof i1.NumberFilterComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OverlayModule, typeof i5.PryCoreModule, typeof i5.PryI18nModule, typeof i5.PryIconModule], [typeof i1.NumberFilterComponent]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PryNumberFilterModule>;
14
14
  }
@@ -9,6 +9,6 @@ import * as i5 from "@provoly/dashboard";
9
9
  export declare class PryTextFilterModule extends BaseFilterModule {
10
10
  getComponent(): Type<BaseFilterComponent>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryTextFilterModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryTextFilterModule, [typeof i1.TextFilterComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OverlayModule, typeof i5.PryCoreModule, typeof i5.PryI18nModule], [typeof i1.TextFilterComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryTextFilterModule, [typeof i1.TextFilterComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.OverlayModule, typeof i5.PryCoreModule, typeof i5.PryI18nModule, typeof i5.PryIconModule], [typeof i1.TextFilterComponent]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PryTextFilterModule>;
14
14
  }
@@ -1,17 +1,24 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
- import { DatasetError } from '../../model/dataset.interface';
5
4
  import { DatasetVersion } from '../../store/data-source/data-source.model';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class PryModalStatusComponent {
8
7
  private store;
9
8
  gotoConsult: EventEmitter<DatasetVersion>;
10
- datasetErrors$?: Observable<DatasetError[]>;
9
+ datasetPreviews$?: Observable<{
10
+ count: number;
11
+ datasetVersionId: string;
12
+ extractErrorCode: string;
13
+ level: 'ERROR' | 'WARNING';
14
+ name: string;
15
+ recordID: string;
16
+ type: string;
17
+ }[]>;
11
18
  _version?: DatasetVersion;
12
19
  set version(version: DatasetVersion | undefined);
13
20
  constructor(store: Store);
14
21
  goBack(): void;
15
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PryModalStatusComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<PryModalStatusComponent, "pry-modalStatus", never, { "version": { "alias": "version"; "required": false; }; }, { "gotoConsult": "gotoConsult"; }, never, never, false, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryModalStatusComponent, "pry-modal-status", never, { "version": { "alias": "version"; "required": false; }; }, { "gotoConsult": "gotoConsult"; }, never, never, false, never>;
17
24
  }
@@ -1,6 +1,6 @@
1
1
  import { PryI18nService } from '../../i18n/i18n.service';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "./modalStatus.component";
3
+ import * as i1 from "./modal-status.component";
4
4
  import * as i2 from "@angular/common";
5
5
  import * as i3 from "../icon/icon.module";
6
6
  import * as i4 from "../../i18n/i18n.module";
@@ -12,17 +12,16 @@ import * as i8 from "./components/nq-color-selector/nq-color-selector.component"
12
12
  import * as i9 from "./access/access.directive";
13
13
  import * as i10 from "./components/upload/upload.component";
14
14
  import * as i11 from "./components/select-image/select-image.component";
15
- import * as i12 from "./components/title-presentation/title-presentation.component";
16
- import * as i13 from "@angular/common";
17
- import * as i14 from "@angular/router";
18
- import * as i15 from "@angular/common/http";
19
- import * as i16 from "@ngrx/store";
20
- import * as i17 from "@ngrx/effects";
21
- import * as i18 from "./components/icon/icon.module";
22
- import * as i19 from "@angular/cdk/overlay";
23
- import * as i20 from "./components/overlay/overlay.module";
24
- import * as i21 from "./i18n/i18n.module";
25
- import * as i22 from "./components/modalStatus/modalStatus.module";
15
+ import * as i12 from "@angular/common";
16
+ import * as i13 from "@angular/router";
17
+ import * as i14 from "@angular/common/http";
18
+ import * as i15 from "@ngrx/store";
19
+ import * as i16 from "@ngrx/effects";
20
+ import * as i17 from "./components/icon/icon.module";
21
+ import * as i18 from "@angular/cdk/overlay";
22
+ import * as i19 from "./components/overlay/overlay.module";
23
+ import * as i20 from "./i18n/i18n.module";
24
+ import * as i21 from "./components/modal-status/modal-status.module";
26
25
  export declare class PryCoreModule {
27
26
  private pryTranslateService;
28
27
  constructor(pryTranslateService: PryI18nService);
@@ -31,6 +30,6 @@ export declare class PryCoreModule {
31
30
  guardProvider?: Provider;
32
31
  }): ModuleWithProviders<PryCoreModule>;
33
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PryCoreModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.BaseToolboxActionComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.PryTitlePresentationComponent], [typeof i13.CommonModule, typeof i14.RouterModule, typeof i15.HttpClientModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i16.StoreFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i17.EffectsFeatureModule, typeof i18.PryIconModule, typeof i19.OverlayModule, typeof i20.PryOverlayModule, typeof i21.PryI18nModule, typeof i22.PryModalStatusModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent, typeof i12.PryTitlePresentationComponent]>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryCoreModule, [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i7.BaseToolboxActionComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent], [typeof i12.CommonModule, typeof i13.RouterModule, typeof i14.HttpClientModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i15.StoreFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i16.EffectsFeatureModule, typeof i17.PryIconModule, typeof i18.OverlayModule, typeof i19.PryOverlayModule, typeof i20.PryI18nModule, typeof i21.PryModalStatusModule], [typeof i1.TranslateIdPipe, typeof i2.TranslateItemToSymbolPipe, typeof i3.GetSecuredImagePipe, typeof i4.BaseLayoutComponent, typeof i5.BaseMenuComponent, typeof i6.BaseToolboxComponent, typeof i8.PryNqColorSelectorComponent, typeof i9.PryAccessDirective, typeof i10.PryUploadComponent, typeof i11.PrySelectImageComponent]>;
35
34
  static ɵinj: i0.ɵɵInjectorDeclaration<PryCoreModule>;
36
35
  }
@@ -81,6 +81,9 @@ export declare const enTranslations: {
81
81
  launchIndication: string;
82
82
  chooseGrid: string;
83
83
  clear: string;
84
+ refresh: string;
85
+ automateRefresh: string;
86
+ options: string;
84
87
  close: string;
85
88
  heatmap: string;
86
89
  bubblemap: string;
@@ -81,6 +81,9 @@ export declare const frTranslations: {
81
81
  launchIndication: string;
82
82
  chooseGrid: string;
83
83
  clear: string;
84
+ refresh: string;
85
+ automateRefresh: string;
86
+ options: string;
84
87
  close: string;
85
88
  heatmap: string;
86
89
  bubblemap: string;
@@ -22,8 +22,15 @@ export declare enum GeoMetadata {
22
22
  KEY = "_geoKey",
23
23
  OPACITY = "_geoOpacity"
24
24
  }
25
- export interface DatasetError {
26
- code: string;
27
- line: number;
28
- message: string;
25
+ export interface DatasetMessage {
26
+ extractErrorCode: string;
27
+ type: string;
28
+ name: string;
29
+ recordID: string;
30
+ datasetVersionId: string;
31
+ }
32
+ export interface DatasetPreview {
33
+ level: 'ERROR' | 'WARNING';
34
+ messages: DatasetMessage[];
35
+ count: number;
29
36
  }
@@ -22,6 +22,7 @@ export interface ManifestDescription {
22
22
  default: boolean;
23
23
  visibility: PryVisibility;
24
24
  owner: boolean;
25
+ datasource: string[];
25
26
  }
26
27
  export interface WidgetLayout {
27
28
  x: number;
@@ -107,7 +107,6 @@ export * from './i18n/i18n.service';
107
107
  export * from './i18n/fr.translations';
108
108
  export * from './i18n/en.translations';
109
109
  export * from './i18n/deep-merge.function';
110
- export * from './components/title-presentation/title-presentation.component';
111
110
  export * from './errors/http-error-interceptor.service';
112
- export * from './components/modalStatus/modalStatus.component';
113
- export * from './components/modalStatus/modalStatus.module';
111
+ export * from './components/modal-status/modal-status.component';
112
+ export * from './components/modal-status/modal-status.module';
@@ -1,5 +1,5 @@
1
1
  import { PryVisibility } from '../../components/share/share.model';
2
- import { Dataset, DatasetError } from '../../model/dataset.interface';
2
+ import { Dataset, 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';
5
5
  import { DatasetVersion, NamedQuery } from './data-source.model';
@@ -217,22 +217,22 @@ export declare const DataSourceActions: {
217
217
  }) => {
218
218
  error: any;
219
219
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version failure">>;
220
- errors: {
221
- getById: import("@ngrx/store").ActionCreator<"[Dataset.errors] get by id", (props: {
220
+ previews: {
221
+ getById: import("@ngrx/store").ActionCreator<"[Dataset/Previews] get by id", (props: {
222
222
  id: string;
223
223
  }) => {
224
224
  id: string;
225
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset.errors] get by id">>;
226
- getByIdSuccess: import("@ngrx/store").ActionCreator<"[Dataset.errors] get by id Success", (props: {
227
- errors: DatasetError[];
225
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id">>;
226
+ getByIdSuccess: import("@ngrx/store").ActionCreator<"[Dataset/Previews] get by id Success", (props: {
227
+ previews: DatasetPreview[];
228
228
  }) => {
229
- errors: DatasetError[];
230
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset.errors] get by id Success">>;
231
- getByIdFailure: import("@ngrx/store").ActionCreator<"[Dataset.errors] get by id Failure", (props: {
229
+ previews: DatasetPreview[];
230
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Success">>;
231
+ getByIdFailure: import("@ngrx/store").ActionCreator<"[Dataset/Previews] get by id Failure", (props: {
232
232
  error: any;
233
233
  }) => {
234
234
  error: any;
235
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset.errors] get by id Failure">>;
235
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Failure">>;
236
236
  };
237
237
  };
238
238
  };
@@ -96,11 +96,11 @@ export declare class DataSourceEffects {
96
96
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version success">) | ({
97
97
  error: any;
98
98
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version failure">)> & import("@ngrx/effects").CreateEffectMetadata;
99
- errorsGetById$: import("rxjs").Observable<({
100
- errors: import("../../model/dataset.interface").DatasetError[];
101
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset.errors] get by id Success">) | ({
99
+ previewsGetById$: import("rxjs").Observable<({
100
+ previews: import("../../model/dataset.interface").DatasetPreview[];
101
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Success">) | ({
102
102
  error: any;
103
- } & import("@ngrx/store/src/models").TypedAction<"[Dataset.errors] get by id Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
103
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Failure">)> & import("@ngrx/effects").CreateEffectMetadata;
104
104
  static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceEffects, never>;
105
105
  static ɵprov: i0.ɵɵInjectableDeclaration<DataSourceEffects>;
106
106
  }
@@ -1,4 +1,4 @@
1
- import { Dataset, DatasetError } from '../../model/dataset.interface';
1
+ import { Dataset, DatasetPreview } from '../../model/dataset.interface';
2
2
  import { DatasetVersion, NamedQuery } from './data-source.model';
3
3
  export declare const dataSourceFeatureKey = "@pry/datasources";
4
4
  export interface DataSourceState {
@@ -15,7 +15,7 @@ export interface DataSourceState {
15
15
  error?: Error;
16
16
  datasetVersions: DatasetVersion[];
17
17
  selectedDatasetVersion: DatasetVersion | null;
18
- errors: DatasetError[];
18
+ previews: DatasetPreview[];
19
19
  }
20
20
  export declare const initialDataSourceState: DataSourceState;
21
21
  export declare const dataSourceReducer: import("@ngrx/store").ActionReducer<DataSourceState, import("@ngrx/store").Action>;
@@ -27,5 +27,5 @@ export declare const DataSourceSelectors: {
27
27
  datasetVersions: MemoizedSelector<object, DatasetVersion[], (s1: DataSourceState) => DatasetVersion[]>;
28
28
  selectedDatasetId: MemoizedSelector<object, string | undefined, (s1: DataSourceState) => string | undefined>;
29
29
  matchingDatasetVersions: (datasetId: string) => MemoizedSelector<any, DatasetVersion[], import("@ngrx/store").DefaultProjectorFn<DatasetVersion[]>>;
30
- datasetErrors: MemoizedSelector<object, import("@provoly/dashboard").DatasetError[], (s1: DataSourceState) => import("@provoly/dashboard").DatasetError[]>;
30
+ datasetPreviews: MemoizedSelector<object, import("@provoly/dashboard").DatasetPreview[], (s1: DataSourceState) => import("@provoly/dashboard").DatasetPreview[]>;
31
31
  };
@@ -3,7 +3,7 @@ import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
4
  import { PryI18nService } from '../../i18n/i18n.service';
5
5
  import { DatasetMetadata } from '../../model/admin-api.model';
6
- import { Dataset, DatasetError } from '../../model/dataset.interface';
6
+ import { Dataset, DatasetPreview } from '../../model/dataset.interface';
7
7
  import { ConfigState } from '../config/config.reducer';
8
8
  import { DatasetVersion, NamedQuery } from './data-source.model';
9
9
  import { DataSourceState } from './data-source.reducer';
@@ -32,7 +32,7 @@ export declare class DataSourceService {
32
32
  addDatasetMetadata(datasetId: string, metadataId: string, value: any): Observable<void>;
33
33
  deleteDatasetMetadata(datasetId: string, metadataId: string): Observable<void>;
34
34
  getDatasetVersions(): Observable<DatasetVersion[]>;
35
- retrieveErrors(id: string): Observable<DatasetError[]>;
35
+ getPreviews(id: string): Observable<DatasetPreview[]>;
36
36
  deactivateDatasetVersion(versionId: string): Observable<DatasetVersion>;
37
37
  activateDatasetVersion(versionId: string): Observable<DatasetVersion>;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceService, never>;
@@ -21,6 +21,7 @@ export declare class ManifestService {
21
21
  }>;
22
22
  delete(id: string): Observable<void>;
23
23
  default(id: string): Observable<boolean>;
24
+ static getDatasourcesUsedByManifest(manifest: GlobalManifest): (string | undefined)[];
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ManifestService, never>;
25
26
  static ɵprov: i0.ɵɵInjectableDeclaration<ManifestService>;
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.11.9",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -1,11 +1,12 @@
1
1
  import { Store } from '@ngrx/store';
2
2
  import { Observable } from 'rxjs';
3
- import { PryI18nService } from '../../i18n/i18n.service';
3
+ import { ManifestDescription, PryI18nService } from '@provoly/dashboard';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class PryTitlePresentationComponent {
6
6
  private store;
7
7
  private i18nService;
8
- presentationTitle$: Observable<string>;
8
+ presentation$: Observable<ManifestDescription | null>;
9
+ presentationTitle$: Observable<string | null>;
9
10
  constructor(store: Store, i18nService: PryI18nService);
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PryTitlePresentationComponent, never>;
11
12
  static ɵcmp: i0.ɵɵComponentDeclaration<PryTitlePresentationComponent, "pry-title-presentation", never, {}, {}, never, never, false, never>;
@@ -2,17 +2,18 @@ import { PryI18nService } from '@provoly/dashboard';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./components/presentation.component";
4
4
  import * as i2 from "./components/add-edit-presentation/add-edit-presentation.component";
5
- import * as i3 from "./style/css.component";
6
- import * as i4 from "@angular/common";
5
+ import * as i3 from "./components/title-presentation/title-presentation.component";
6
+ import * as i4 from "./style/css.component";
7
7
  import * as i5 from "@provoly/dashboard";
8
8
  import * as i6 from "@angular/forms";
9
9
  import * as i7 from "@provoly/dashboard/components/sinceDate";
10
10
  import * as i8 from "@provoly/dashboard/toolbox";
11
11
  import * as i9 from "@provoly/dashboard/components/checkbox";
12
+ import * as i10 from "@angular/common";
12
13
  export declare class PryPresentationModule {
13
14
  private pryTranslateService;
14
15
  constructor(pryTranslateService: PryI18nService);
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryPresentationCssComponent], [typeof i4.CommonModule, typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryPresentationCssComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
18
19
  }
@@ -1,4 +1,5 @@
1
1
  export * from './presentation.module';
2
2
  export * from './components/presentation.component';
3
3
  export * from './components/add-edit-presentation/add-edit-presentation.component';
4
+ export * from './components/title-presentation/title-presentation.component';
4
5
  export * from './style/css.component';
@@ -2,6 +2,14 @@
2
2
 
3
3
  /* Organism - pry-presentation */
4
4
 
5
+ .o-manifest-layout__toolbox {
6
+ height: toRem(84);
7
+
8
+ div:first-child {
9
+ margin-left: auto;
10
+ }
11
+ }
12
+
5
13
  .o-manifest-layout__content {
6
14
  height: 100%;
7
15
 
@@ -28,6 +36,12 @@
28
36
  padding: toRem(4) toRem(4) toRem(20) toRem(4);
29
37
  overflow-y: auto;
30
38
 
39
+ .a-h3 {
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ }
44
+
31
45
  &__item {
32
46
  display: flex;
33
47
  flex-direction: column;
@@ -127,7 +141,7 @@
127
141
 
128
142
  .description-tooltip {
129
143
  position: absolute;
130
- width: 100%;
144
+ max-width: 50vw;
131
145
  visibility: hidden;
132
146
  background-color: #fff;
133
147
  padding: 20px;
@@ -142,3 +156,30 @@
142
156
  transition: opacity 0.2s ease;
143
157
  opacity: 1;
144
158
  }
159
+
160
+ .title-tooltip {
161
+ transform: translateY(4rem);
162
+ }
163
+
164
+ h1.a-presentation-title {
165
+ font-size: 16px;
166
+ padding-right: 20px;
167
+ }
168
+
169
+ .title-container {
170
+ display: flex;
171
+ }
172
+
173
+ .info-icon {
174
+ position: relative;
175
+ width: 1.5rem;
176
+ height: 1.5rem;
177
+ border-radius: 50%;
178
+ background-color: #ccc;
179
+ cursor: pointer;
180
+ display: inline-flex;
181
+ justify-content: center;
182
+ align-items: center;
183
+ align-self: center;
184
+ margin-right: 1rem;
185
+ }
@@ -8,6 +8,9 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
8
8
  private toolboxManifestService;
9
9
  private store;
10
10
  showTabs: boolean;
11
+ get customModels(): string[];
12
+ set customModels(models: string[]);
13
+ private _customModels;
11
14
  search$: BehaviorSubject<string>;
12
15
  type$: BehaviorSubject<string | undefined>;
13
16
  filteredWidgets$: Observable<CatalogEntry[]>;
@@ -21,10 +24,7 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
21
24
  selectedRestitution: Widget | null;
22
25
  mode: typeof ViewMode;
23
26
  selectedMode: ViewMode;
24
- categories: {
25
- label: string;
26
- color: string;
27
- }[];
27
+ categories: string[];
28
28
  categoryOpened: string;
29
29
  PryVisibilityType: typeof PryVisibilityType;
30
30
  constructor(toolboxMenuService: ToolboxMenuService, translateService: PryI18nService, toolboxManifestService: ToolboxManifestService, store: Store);
@@ -33,5 +33,5 @@ export declare class PryRestitutionListComponent extends SubscriptionnerDirectiv
33
33
  closeRestitution(): void;
34
34
  toggle(category: string): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionListComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, { "showTabs": { "alias": "showTabs"; "required": false; }; }, {}, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionListComponent, "pry-catalog", never, { "showTabs": { "alias": "showTabs"; "required": false; }; "customModels": { "alias": "customModels"; "required": false; }; }, {}, never, never, false, never>;
37
37
  }
@@ -6,6 +6,7 @@
6
6
  @extend %list-unstyled;
7
7
  display: flex;
8
8
  align-items: center;
9
+ gap: toRem(15);
9
10
 
10
11
  /* MODFIFIERS */
11
12
  &.-vertical {
@@ -1,5 +1,48 @@
1
1
  @use '../abstracts' as *;
2
2
 
3
+ /* Molecule m-filter */
4
+
5
+ .m-filter {
6
+ &__wrapper {
7
+ display: flex;
8
+ align-items: center;
9
+ position: relative;
10
+
11
+ .m-filter__wrapper:first-child {
12
+ margin-right: toRem(5);
13
+ }
14
+ }
15
+
16
+ &__clear-wrapper {
17
+ position: absolute;
18
+ bottom: toRem(8);
19
+ cursor: pointer;
20
+ -webkit-user-select: none;
21
+ user-select: none;
22
+
23
+ &--number {
24
+ right: toRem(35);
25
+ }
26
+
27
+ &--text {
28
+ right: toRem(20);
29
+ }
30
+
31
+ &--date {
32
+ right: toRem(35);
33
+ }
34
+ }
35
+
36
+ &__clear {
37
+ display: inline-block;
38
+ font-size: toRem(18);
39
+ pointer-events: none;
40
+ font-weight: 400;
41
+ font-style: normal;
42
+ transform: scale(1, 0.75);
43
+ }
44
+ }
45
+
3
46
  pry-filter-instanciator {
4
47
  display: flex;
5
48
  justify-content: space-around;
@@ -0,0 +1,12 @@
1
+ /* Theme - Atom a-icon */
2
+
3
+ // colors that make the clear button look like the ng-select clear button
4
+ .m-filter {
5
+ &__clear-wrapper {
6
+ color: #999999;
7
+
8
+ &:hover {
9
+ color: #D0021B
10
+ }
11
+ }
12
+ }
@@ -14,6 +14,7 @@
14
14
  @use 'components-theme/a-toggle.theme' as *;
15
15
  @use 'components-theme/a-expandable-value.theme' as *;
16
16
 
17
+
17
18
  /* Atoms lib */
18
19
  @use 'components-theme/a-pry-select.theme' as *;
19
20
 
@@ -21,6 +22,7 @@
21
22
  @use 'components-theme/m-btn-sorttable.theme' as *;
22
23
  @use 'components-theme/m-choose-widget.theme' as *;
23
24
  @use 'components-theme/m-context-menu.theme' as *;
25
+ @use 'components-theme/m-filter.theme' as *;
24
26
  @use 'components-theme/m-metadata-tag.theme' as *;
25
27
  @use 'components-theme/m-minus-plus.theme' as *;
26
28
  @use 'components-theme/m-nav-links.theme' as *;
@@ -0,0 +1,29 @@
1
+ import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
4
+ import { Observable } from 'rxjs';
5
+ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AutomateRefreshComponent extends ToolboxActionComponent implements OnInit {
8
+ private overlay;
9
+ private viewContainerRef;
10
+ datasourceList: TemplateRef<any>;
11
+ refreshRateList: TemplateRef<any>;
12
+ refreshRates: number[];
13
+ datasources$: Observable<string[]>;
14
+ refreshRates$: Observable<{
15
+ [p: string]: number;
16
+ }>;
17
+ selectedDatasourceId: string;
18
+ private overlayRefDatasourceList?;
19
+ private overlayRefRefreshList?;
20
+ constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
21
+ ngOnInit(): void;
22
+ toggleDatasourceList(): void;
23
+ hide(overlayRef: OverlayRef | undefined): void;
24
+ toggleRefreshRateList(datasourceId: string, templateIndex: number): void;
25
+ selectDatasource(id: string): void;
26
+ toggleRefreshRate(rate: number): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutomateRefreshComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutomateRefreshComponent, "pry-automate-refresh", never, {}, {}, never, never, false, never>;
29
+ }
@@ -1,10 +1,9 @@
1
1
  import { Store } from '@ngrx/store';
2
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
2
3
  import * as i0 from "@angular/core";
3
- export declare class ClearViewComponent {
4
- private store;
5
- label: boolean;
4
+ export declare class ClearViewComponent extends ToolboxActionComponent {
6
5
  constructor(store: Store);
7
6
  clear(): void;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ClearViewComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ClearViewComponent, "pry-clear-view", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClearViewComponent, "pry-clear-view", never, {}, {}, never, never, false, never>;
10
9
  }
@@ -2,12 +2,11 @@ import { ConnectedPosition } from '@angular/cdk/overlay';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { ToolboxManifestService, ToolboxMenuService, WidgetDescriptionMenu } from '@provoly/dashboard';
4
4
  import { Observable } from 'rxjs';
5
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
5
6
  import * as i0 from "@angular/core";
6
- export declare class DragWidgetsComponent {
7
- private store;
7
+ export declare class DragWidgetsComponent extends ToolboxActionComponent {
8
8
  private toolboxManifestService;
9
9
  toolboxMenuService: ToolboxMenuService;
10
- labels: boolean;
11
10
  mainOpened: boolean;
12
11
  readonly connectedPosition: ConnectedPosition;
13
12
  menu$: Observable<WidgetDescriptionMenu[]>;
@@ -15,5 +14,5 @@ export declare class DragWidgetsComponent {
15
14
  dragStart($event: DragEvent, type: string): void;
16
15
  openMenu($event: Event): void;
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DragWidgetsComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<DragWidgetsComponent, "pry-drag-widgets", never, { "labels": { "alias": "labels"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DragWidgetsComponent, "pry-drag-widgets", never, {}, {}, never, never, false, never>;
19
18
  }