@provoly/dashboard 0.12.0 → 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 (113) 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/i18n/en.translations.mjs +4 -2
  7. package/esm2022/dataset/i18n/fr.translations.mjs +3 -2
  8. package/esm2022/dataset/style/css.component.mjs +2 -2
  9. package/esm2022/filters/date/date-filter.component.mjs +24 -8
  10. package/esm2022/filters/date/date-filter.module.mjs +7 -8
  11. package/esm2022/filters/date/public-api.mjs +1 -2
  12. package/esm2022/filters/number/number-filter.component.mjs +5 -4
  13. package/esm2022/filters/number/number-filter.module.mjs +5 -5
  14. package/esm2022/filters/text/text-filter.component.mjs +5 -4
  15. package/esm2022/filters/text/text-filter.module.mjs +5 -5
  16. package/esm2022/lib/core/components/modal-status/modal-status.component.mjs +40 -0
  17. package/esm2022/lib/core/components/modal-status/modal-status.module.mjs +28 -0
  18. package/esm2022/lib/core/core.module.mjs +2 -2
  19. package/esm2022/lib/core/i18n/en.translations.mjs +4 -1
  20. package/esm2022/lib/core/i18n/fr.translations.mjs +4 -1
  21. package/esm2022/lib/core/model/dataset.interface.mjs +1 -1
  22. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  23. package/esm2022/lib/core/public-api.mjs +3 -3
  24. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +5 -5
  25. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +2 -2
  26. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +7 -7
  27. package/esm2022/lib/core/store/data-source/data-source.selectors.mjs +3 -3
  28. package/esm2022/lib/core/store/data-source/data-source.service.mjs +3 -3
  29. package/esm2022/lib/dashboard/store/manifest.service.mjs +10 -7
  30. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +1 -1
  31. package/esm2022/presentation/style/css.component.mjs +2 -2
  32. package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
  33. package/esm2022/restitution/style/css.component.mjs +2 -2
  34. package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +104 -0
  35. package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +8 -10
  36. package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +8 -10
  37. package/esm2022/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.mjs +7 -9
  38. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +7 -7
  39. package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +8 -10
  40. package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +38 -0
  41. package/esm2022/toolbox/components/save-view/save-view.component.mjs +8 -11
  42. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +9 -12
  43. package/esm2022/toolbox/components/toolbox-action/toolbox-action.component.mjs +26 -0
  44. package/esm2022/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.mjs +44 -0
  45. package/esm2022/toolbox/components/toolbox.component.mjs +40 -12
  46. package/esm2022/toolbox/public-api.mjs +6 -1
  47. package/esm2022/toolbox/style/css.component.mjs +3 -3
  48. package/esm2022/toolbox/toolbox.model.mjs +59 -0
  49. package/esm2022/toolbox/toolbox.module.mjs +22 -6
  50. package/fesm2022/provoly-dashboard-dataset.mjs +11 -8
  51. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  52. package/fesm2022/provoly-dashboard-filters-date.mjs +31 -23
  53. package/fesm2022/provoly-dashboard-filters-date.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-filters-number.mjs +8 -7
  55. package/fesm2022/provoly-dashboard-filters-number.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard-filters-text.mjs +8 -7
  57. package/fesm2022/provoly-dashboard-filters-text.mjs.map +1 -1
  58. package/fesm2022/provoly-dashboard-presentation.mjs +3 -3
  59. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  60. package/fesm2022/provoly-dashboard-restitution.mjs +3 -3
  61. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  62. package/fesm2022/provoly-dashboard-toolbox.mjs +327 -68
  63. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  64. package/fesm2022/provoly-dashboard.mjs +43 -27
  65. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  66. package/filters/date/date-filter.component.d.ts +1 -0
  67. package/filters/date/date-filter.module.d.ts +5 -6
  68. package/filters/date/public-api.d.ts +0 -1
  69. package/filters/number/number-filter.module.d.ts +1 -1
  70. package/filters/text/text-filter.module.d.ts +1 -1
  71. package/lib/core/components/{modalStatus/modalStatus.component.d.ts → modal-status/modal-status.component.d.ts} +10 -3
  72. package/lib/core/components/{modalStatus/modalStatus.module.d.ts → modal-status/modal-status.module.d.ts} +1 -1
  73. package/lib/core/core.module.d.ts +1 -1
  74. package/lib/core/i18n/en.translations.d.ts +3 -0
  75. package/lib/core/i18n/fr.translations.d.ts +3 -0
  76. package/lib/core/model/dataset.interface.d.ts +11 -4
  77. package/lib/core/model/manifest.interface.d.ts +1 -0
  78. package/lib/core/public-api.d.ts +2 -2
  79. package/lib/core/store/data-source/data-source.actions.d.ts +10 -10
  80. package/lib/core/store/data-source/data-source.effects.d.ts +4 -4
  81. package/lib/core/store/data-source/data-source.reducer.d.ts +2 -2
  82. package/lib/core/store/data-source/data-source.selectors.d.ts +1 -1
  83. package/lib/core/store/data-source/data-source.service.d.ts +2 -2
  84. package/lib/dashboard/store/manifest.service.d.ts +1 -0
  85. package/package.json +1 -1
  86. package/presentation/style/_o-pry-presentation.scss +8 -0
  87. package/styles/components/_m-actions-list.scss +1 -0
  88. package/styles/components/_m-filter.scss +43 -0
  89. package/styles-theme/components-theme/_m-filter.theme.scss +12 -0
  90. package/styles-theme/main-theme.scss +2 -0
  91. package/toolbox/components/automate-refresh/automate-refresh.component.d.ts +29 -0
  92. package/toolbox/components/clear-view/clear-view.component.d.ts +3 -4
  93. package/toolbox/components/drag-widgets/drag-widgets.component.d.ts +3 -4
  94. package/toolbox/components/edit-mode-toggle/edit-mode-toggle.component.d.ts +3 -4
  95. package/toolbox/components/filter-settings/filter-settings.component.d.ts +3 -3
  96. package/toolbox/components/launch-tab/launch-tab.component.d.ts +3 -4
  97. package/toolbox/components/refresh-datasets/refresh-datasets.component.d.ts +14 -0
  98. package/toolbox/components/save-view/save-view.component.d.ts +4 -5
  99. package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +4 -5
  100. package/toolbox/components/toolbox-action/toolbox-action.component.d.ts +12 -0
  101. package/toolbox/components/toolbox-action-instanciator/toolbox-action-instanciator.component.d.ts +17 -0
  102. package/toolbox/components/toolbox.component.d.ts +18 -3
  103. package/toolbox/public-api.d.ts +5 -0
  104. package/toolbox/style/_o-automate-refresh.scss +24 -0
  105. package/toolbox/style/_o-toolbox.scss +30 -0
  106. package/toolbox/style/css.component.d.ts +1 -1
  107. package/toolbox/toolbox.model.d.ts +10 -0
  108. package/toolbox/toolbox.module.d.ts +22 -18
  109. package/esm2022/filters/date/style/css.component.mjs +0 -11
  110. package/esm2022/lib/core/components/modalStatus/modalStatus.component.mjs +0 -35
  111. package/esm2022/lib/core/components/modalStatus/modalStatus.module.mjs +0 -28
  112. package/filters/date/style/_m-date.scss +0 -6
  113. 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";
@@ -21,7 +21,7 @@ import * as i17 from "./components/icon/icon.module";
21
21
  import * as i18 from "@angular/cdk/overlay";
22
22
  import * as i19 from "./components/overlay/overlay.module";
23
23
  import * as i20 from "./i18n/i18n.module";
24
- import * as i21 from "./components/modalStatus/modalStatus.module";
24
+ import * as i21 from "./components/modal-status/modal-status.module";
25
25
  export declare class PryCoreModule {
26
26
  private pryTranslateService;
27
27
  constructor(pryTranslateService: PryI18nService);
@@ -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;
@@ -108,5 +108,5 @@ export * from './i18n/fr.translations';
108
108
  export * from './i18n/en.translations';
109
109
  export * from './i18n/deep-merge.function';
110
110
  export * from './errors/http-error-interceptor.service';
111
- export * from './components/modalStatus/modalStatus.component';
112
- 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.12.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -3,6 +3,8 @@
3
3
  /* Organism - pry-presentation */
4
4
 
5
5
  .o-manifest-layout__toolbox {
6
+ height: toRem(84);
7
+
6
8
  div:first-child {
7
9
  margin-left: auto;
8
10
  }
@@ -34,6 +36,12 @@
34
36
  padding: toRem(4) toRem(4) toRem(20) toRem(4);
35
37
  overflow-y: auto;
36
38
 
39
+ .a-h3 {
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ }
44
+
37
45
  &__item {
38
46
  display: flex;
39
47
  flex-direction: column;
@@ -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
  }
@@ -1,12 +1,11 @@
1
1
  import { Store } from '@ngrx/store';
2
2
  import { Observable } from 'rxjs';
3
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
3
4
  import * as i0 from "@angular/core";
4
- export declare class EditModeToggleComponent {
5
- private store;
6
- label: boolean;
5
+ export declare class EditModeToggleComponent extends ToolboxActionComponent {
7
6
  modeEdition$: Observable<boolean>;
8
7
  constructor(store: Store<any>);
9
8
  toggleEditionMode(): void;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<EditModeToggleComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<EditModeToggleComponent, "pry-edit-mode-toggle", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditModeToggleComponent, "pry-edit-mode-toggle", never, {}, {}, never, never, false, never>;
12
11
  }
@@ -2,8 +2,9 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
3
3
  import { Injector, TemplateRef, ViewContainerRef } from '@angular/core';
4
4
  import { Store } from '@ngrx/store';
5
- import { Class, DataSource, FieldType, Filter, FilterFactoryService, GlobalManifest, SubscriptionnerDirective } from '@provoly/dashboard';
5
+ import { Class, DataSource, FieldType, Filter, FilterFactoryService, GlobalManifest } from '@provoly/dashboard';
6
6
  import { BehaviorSubject, Observable } from 'rxjs';
7
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare enum FilterSteps {
9
10
  LIST = "list",
@@ -17,8 +18,7 @@ export interface Attribute {
17
18
  datasource: string;
18
19
  type: FieldType;
19
20
  }
20
- export declare class PryFilterSettingsComponent extends SubscriptionnerDirective {
21
- private store;
21
+ export declare class PryFilterSettingsComponent extends ToolboxActionComponent {
22
22
  private overlay;
23
23
  private viewContainerRef;
24
24
  private filterFactoryService;
@@ -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 LaunchTabComponent {
4
- private store;
5
- label: boolean;
4
+ export declare class LaunchTabComponent extends ToolboxActionComponent {
6
5
  constructor(store: Store);
7
6
  launchNewWindow(): void;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<LaunchTabComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<LaunchTabComponent, "pry-launch-tab", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<LaunchTabComponent, "pry-launch-tab", never, {}, {}, never, never, false, never>;
10
9
  }
@@ -0,0 +1,14 @@
1
+ import { Store } from '@ngrx/store';
2
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
3
+ import { GlobalManifest } from '@provoly/dashboard';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RefreshDatasetsComponent extends ToolboxActionComponent {
7
+ manifest$: Observable<GlobalManifest>;
8
+ manifest?: GlobalManifest;
9
+ datasetCount: number;
10
+ constructor(store: Store);
11
+ refresh(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<RefreshDatasetsComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<RefreshDatasetsComponent, "pry-refresh-datasets", never, {}, {}, never, never, false, never>;
14
+ }
@@ -1,14 +1,13 @@
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, PryVisibility, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
4
+ import { LibraryTypes, ManifestDescription, PryVisibility, ViewMode } from '@provoly/dashboard';
5
5
  import { Observable } from 'rxjs';
6
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
6
7
  import * as i0 from "@angular/core";
7
- export declare class SaveViewComponent extends SubscriptionnerDirective {
8
- private store;
8
+ export declare class SaveViewComponent extends ToolboxActionComponent {
9
9
  private overlay;
10
10
  private viewContainerRef;
11
- label: boolean;
12
11
  mode: 'saveAs' | 'directSave';
13
12
  input: ElementRef;
14
13
  saveAs: ElementRef<HTMLButtonElement>;
@@ -49,5 +48,5 @@ export declare class SaveViewComponent extends SubscriptionnerDirective {
49
48
  rename(): void;
50
49
  disableNextStep(): void;
51
50
  static ɵfac: i0.ɵɵFactoryDeclaration<SaveViewComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<SaveViewComponent, "pry-save-view", never, { "label": { "alias": "label"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, false, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<SaveViewComponent, "pry-save-view", never, { "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, false, never>;
53
52
  }
@@ -1,14 +1,13 @@
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 { DashboardGridLayout, SubscriptionnerDirective } from '@provoly/dashboard';
4
+ import { DashboardGridLayout } from '@provoly/dashboard';
5
5
  import { Observable } from 'rxjs';
6
+ import { ToolboxActionComponent } from '../toolbox-action/toolbox-action.component';
6
7
  import * as i0 from "@angular/core";
7
- export declare class SelectGridLayoutComponent extends SubscriptionnerDirective {
8
- private store;
8
+ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
9
9
  private overlay;
10
10
  private viewContainerRef;
11
- label: boolean;
12
11
  availableLayouts$: Observable<{
13
12
  translation: any;
14
13
  value: any;
@@ -31,5 +30,5 @@ export declare class SelectGridLayoutComponent extends SubscriptionnerDirective
31
30
  focusCrossElement(): void;
32
31
  focusValidation(): void;
33
32
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectGridLayoutComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectGridLayoutComponent, "pry-select-grid-layout", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, false, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectGridLayoutComponent, "pry-select-grid-layout", never, {}, {}, never, never, false, never>;
35
34
  }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { SubscriptionnerDirective } from '@provoly/dashboard';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ToolboxActionComponent extends SubscriptionnerDirective {
6
+ protected store: Store;
7
+ displayLabels: boolean;
8
+ closeOptions: EventEmitter<void>;
9
+ constructor(store: Store);
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxActionComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxActionComponent, "pry-toolbox-action", never, { "displayLabels": { "alias": "displayLabels"; "required": false; }; }, { "closeOptions": "closeOptions"; }, never, never, false, never>;
12
+ }
@@ -0,0 +1,17 @@
1
+ import { ViewContainerRef, AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { ToolboxAction } from '../../toolbox.model';
4
+ import { SubscriptionnerDirective } from '@provoly/dashboard';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ToolboxActionInstanciatorComponent extends SubscriptionnerDirective implements AfterViewInit {
7
+ private store;
8
+ private _cd;
9
+ action: ToolboxAction;
10
+ displayLabels: boolean;
11
+ closeOptions: EventEmitter<void>;
12
+ actionContainerRef: ViewContainerRef;
13
+ constructor(store: Store<any>, _cd: ChangeDetectorRef);
14
+ ngAfterViewInit(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolboxActionInstanciatorComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolboxActionInstanciatorComponent, "pry-toolbox-action-instanciator", never, { "action": { "alias": "action"; "required": false; }; "displayLabels": { "alias": "displayLabels"; "required": false; }; }, { "closeOptions": "closeOptions"; }, never, never, false, never>;
17
+ }