@provoly/dashboard 0.12.6 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/admin/components/admin-classes/admin-classes-select/admin-classes-select.component.d.ts +2 -1
  2. package/admin/components/admin-classes/store/admin-class.effects.d.ts +2 -1
  3. package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +2 -1
  4. package/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.d.ts +2 -1
  5. package/admin/i18n/en.translations.d.ts +2 -0
  6. package/admin/i18n/fr.translations.d.ts +2 -0
  7. package/admin/store/admin.actions.d.ts +31 -1
  8. package/admin/store/admin.effects.d.ts +27 -5
  9. package/admin/store/admin.reducer.d.ts +2 -1
  10. package/admin/store/admin.selectors.d.ts +1 -0
  11. package/admin/store/admin.service.d.ts +5 -1
  12. package/esm2022/admin/components/admin-classes/admin-classes-select/admin-classes-select.component.mjs +5 -3
  13. package/esm2022/admin/components/admin-classes/admin-classes.component.mjs +2 -1
  14. package/esm2022/admin/components/admin-classes/store/admin-class.actions.mjs +1 -1
  15. package/esm2022/admin/components/admin-classes/store/admin-class.effects.mjs +5 -4
  16. package/esm2022/admin/components/admin-classes/store/admin-class.reducer.mjs +1 -1
  17. package/esm2022/admin/components/admin-dataset/admin-dataset.component.mjs +2 -1
  18. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +5 -3
  19. package/esm2022/admin/components/admin-fields/admin-fields-select/admin-fields-select.component.mjs +5 -3
  20. package/esm2022/admin/components/admin-fields/admin-fields.component.mjs +2 -1
  21. package/esm2022/admin/components/admin-predicates/admin-predicates-select/admin-predicates-select.component.mjs +3 -3
  22. package/esm2022/admin/components/admin-predicates/admin-predicates.component.mjs +1 -1
  23. package/esm2022/admin/components/admin.component.mjs +1 -1
  24. package/esm2022/admin/i18n/en.translations.mjs +3 -1
  25. package/esm2022/admin/i18n/fr.translations.mjs +3 -1
  26. package/esm2022/admin/store/admin.actions.mjs +8 -2
  27. package/esm2022/admin/store/admin.effects.mjs +6 -2
  28. package/esm2022/admin/store/admin.reducer.mjs +6 -2
  29. package/esm2022/admin/store/admin.selectors.mjs +4 -2
  30. package/esm2022/admin/store/admin.service.mjs +21 -1
  31. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +2 -2
  32. package/esm2022/dataset/components/dataset.component.mjs +2 -1
  33. package/esm2022/lib/core/store/class/class.interface.mjs +1 -1
  34. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +3 -1
  35. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +6 -4
  36. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +27 -2
  37. package/esm2022/lib/core/store/data-source/data-source.service.mjs +6 -1
  38. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +97 -0
  39. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +29 -62
  40. package/esm2022/lib/dashboard/components/widgets/public-api.mjs +2 -1
  41. package/esm2022/lib/dashboard/dashboard.module.mjs +8 -4
  42. package/esm2022/lib/dashboard/store/refresh.service.mjs +3 -2
  43. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +4 -1
  44. package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -24
  45. package/esm2022/restitution/style/css.component.mjs +2 -2
  46. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +6 -5
  47. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
  48. package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +1 -1
  49. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
  50. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -12
  51. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
  52. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
  53. package/fesm2022/provoly-dashboard-admin.mjs +61 -14
  54. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  55. package/fesm2022/provoly-dashboard-dataset.mjs +2 -1
  56. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  57. package/fesm2022/provoly-dashboard-presentation.mjs +3 -0
  58. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-restitution.mjs +8 -25
  60. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +5 -4
  62. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
  64. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -1
  66. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +2 -2
  68. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +18 -11
  70. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  71. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
  72. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  73. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
  74. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  75. package/fesm2022/provoly-dashboard.mjs +164 -74
  76. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  77. package/lib/core/store/class/class.interface.d.ts +11 -0
  78. package/lib/core/store/data-source/data-source.actions.d.ts +12 -0
  79. package/lib/core/store/data-source/data-source.effects.d.ts +5 -0
  80. package/lib/core/store/data-source/data-source.service.d.ts +1 -0
  81. package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +34 -0
  82. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +5 -16
  83. package/lib/dashboard/components/widgets/public-api.d.ts +1 -0
  84. package/lib/dashboard/dashboard.module.d.ts +15 -14
  85. package/package.json +31 -31
  86. package/restitution/components/restitution/restitution.component.d.ts +3 -9
  87. package/restitution/style/_o-restitution.scss +0 -4
  88. package/schematics/ng-add/index.spec.js +0 -2
  89. package/schematics/ng-add/index.spec.js.map +1 -1
  90. package/styles/components/_o-datasources.scss +17 -56
  91. package/styles/components/_o-widget.scss +40 -32
  92. package/styles-theme/components-theme/_o-datasources.theme.scss +8 -5
  93. package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
@@ -17,3 +17,14 @@ export interface BusinessData {
17
17
  date: string;
18
18
  icon?: string;
19
19
  }
20
+ export interface Associations {
21
+ id: string;
22
+ associations: [
23
+ {
24
+ id: string;
25
+ name: string;
26
+ type: string;
27
+ }
28
+ ];
29
+ usedElsewhere: boolean;
30
+ }
@@ -178,6 +178,18 @@ export declare const DataSourceActions: {
178
178
  versions: DatasetVersion[];
179
179
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Success">>;
180
180
  listVersionsFailure: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset versions Failure", () => import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Failure">>;
181
+ listVersionsByDatasetId: import("@ngrx/store").ActionCreator<"[Dataset] Get Dataset Versions by Dataset Id", (props: {
182
+ id: string;
183
+ }) => {
184
+ id: string;
185
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset Versions by Dataset Id">>;
186
+ updateVersionList: import("@ngrx/store").ActionCreator<"[Dataset] Update Dataset version list", (props: {
187
+ id: string;
188
+ versions: DatasetVersion[];
189
+ }) => {
190
+ id: string;
191
+ versions: DatasetVersion[];
192
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Update Dataset version list">>;
181
193
  selectedDatasetVersion: import("@ngrx/store").ActionCreator<"[Dataset] Select Dataset version", (props: {
182
194
  version: DatasetVersion;
183
195
  }) => {
@@ -81,6 +81,10 @@ export declare class DataSourceEffects {
81
81
  listVersions$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Failure"> | ({
82
82
  versions: import("./data-source.model").DatasetVersion[];
83
83
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Success">)> & import("@ngrx/effects").CreateEffectMetadata;
84
+ listVersionsById$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions Failure"> | ({
85
+ id: string;
86
+ versions: import("./data-source.model").DatasetVersion[];
87
+ } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Update Dataset version list">)> & import("@ngrx/effects").CreateEffectMetadata;
84
88
  confirmDatasourceDeletion$: import("rxjs").Observable<{
85
89
  name: string;
86
90
  route: string;
@@ -96,6 +100,7 @@ export declare class DataSourceEffects {
96
100
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version success">) | ({
97
101
  error: any;
98
102
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset] Activate dataset version failure">)> & import("@ngrx/effects").CreateEffectMetadata;
103
+ activateOrDeactivateDatasetVersionSuccess$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions">> & import("@ngrx/effects").CreateEffectMetadata;
99
104
  previewsGetById$: import("rxjs").Observable<({
100
105
  previews: import("../../model/dataset.interface").DatasetPreview[];
101
106
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Success">) | ({
@@ -32,6 +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
+ getDatasetVersionsById(id: string): Observable<DatasetVersion[]>;
35
36
  getPreviews(id: string): Observable<DatasetPreview[]>;
36
37
  deactivateDatasetVersion(versionId: string): Observable<DatasetVersion>;
37
38
  activateDatasetVersion(versionId: string): Observable<DatasetVersion>;
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
4
+ import { Dataset } from '../../../../core/model/dataset.interface';
5
+ import { WidgetManifest } from '../../../../core/model/manifest.interface';
6
+ import { DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
7
+ import { SubscriptionnerDirective } from '../../subscriptionner.directive';
8
+ import * as i0 from "@angular/core";
9
+ export declare class DatasourceSelectorComponent extends SubscriptionnerDirective {
10
+ private store;
11
+ private cdr;
12
+ set manifest(manifest: WidgetManifest | null);
13
+ set datasourceIds(datasourceIds: string[]);
14
+ cancel: EventEmitter<any>;
15
+ validated: EventEmitter<any>;
16
+ previousTab: EventEmitter<any>;
17
+ nextTab: EventEmitter<any>;
18
+ datasourcesChanged: EventEmitter<DataSource[]>;
19
+ manifest$: BehaviorSubject<WidgetManifest | null>;
20
+ usedDatasourceIds$: BehaviorSubject<string[]>;
21
+ usedDatasources$: Observable<DataSource[]>;
22
+ allDataSources$: Observable<DataSource[]>;
23
+ unusedDatasources$: Observable<any>;
24
+ search$: BehaviorSubject<string>;
25
+ idToNameDatasource: {
26
+ [id: string]: string | undefined;
27
+ };
28
+ constructor(store: Store, cdr: ChangeDetectorRef);
29
+ toogleDataSource(id: string): void;
30
+ isGeo(ds: NamedQuery | Dataset): boolean;
31
+ search($event: any): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatasourceSelectorComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatasourceSelectorComponent, "pry-datasource-selector", never, { "manifest": { "alias": "manifest"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; }, { "cancel": "cancel"; "validated": "validated"; "previousTab": "previousTab"; "nextTab": "nextTab"; "datasourcesChanged": "datasourcesChanged"; }, never, never, false, never>;
34
+ }
@@ -39,6 +39,7 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
39
39
  subscription?: Subscription;
40
40
  places: WidgetManifest[];
41
41
  selectedItem?: Element | null;
42
+ usedDatasources$: Observable<DataSource[]>;
42
43
  set manifest(manifest: WidgetManifest | null);
43
44
  additionalOptions: HeaderAction[] | null;
44
45
  headerOptions: {
@@ -51,26 +52,14 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
51
52
  }>;
52
53
  isEdit: boolean;
53
54
  catalogInfo: Widget;
54
- get title(): string | undefined;
55
- get manifest(): WidgetManifest | null;
56
- set datasourceIds$(datasourceIds$: Observable<string[]>);
55
+ set datasourceIds(datasourceIds: string[]);
57
56
  set widgetIndex(widgetIndex: number);
58
- search$: BehaviorSubject<string>;
59
57
  lockedView$: Observable<boolean>;
60
58
  targetIndexes$: Observable<number[]>;
61
- usedDatasources$: Observable<DataSource[]>;
62
- allDataSources$: Observable<DataSource[]>;
63
- usedNameQueryIds: string[];
64
- choiceUsed: {
65
- [is: string]: boolean;
66
- };
67
59
  _widgetIndex$: BehaviorSubject<number>;
68
60
  _widgetIndex: number;
69
61
  open: boolean;
70
- selectedDataSource: string[];
71
- idToNameDatasource: {
72
- [id: string]: string;
73
- };
62
+ selectedDataSourceIds$: BehaviorSubject<string[]>;
74
63
  windowManifest: DashboardManifest | null;
75
64
  private windowManifest$;
76
65
  private menuRef?;
@@ -86,7 +75,6 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
86
75
  get currentLayout(): DashboardGridLayout;
87
76
  get hasGrid(): boolean;
88
77
  get currentPlacementIndex(): number;
89
- toogleDataSource(id: string): void;
90
78
  menuOpen($event?: MouseEvent, forceOpen?: boolean): void;
91
79
  toggleCombo(): void;
92
80
  moveInNewWindow(widgetIndex: number, targetIndex: number): void;
@@ -110,6 +98,7 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
110
98
  focusValidation(): void;
111
99
  focusInputCatalog(): void;
112
100
  disableValidation(): void;
101
+ datasourcesChanged($event: DataSource[]): void;
113
102
  static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetHeaderComponent, never>;
114
- static ɵcmp: i0.ɵɵComponentDeclaration<PryWidgetHeaderComponent, "pry-widget-header", never, { "manifest": { "alias": "manifest"; "required": false; }; "additionalOptions": { "alias": "additionalOptions"; "required": false; }; "headerOptions": { "alias": "headerOptions"; "required": false; }; "displayCount": { "alias": "displayCount"; "required": false; }; "datasourceIds$": { "alias": "datasourceIds$"; "required": false; }; "widgetIndex": { "alias": "widgetIndex"; "required": false; }; }, { "manifestModified": "manifestModified"; }, never, ["*"], false, never>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryWidgetHeaderComponent, "pry-widget-header", never, { "manifest": { "alias": "manifest"; "required": false; }; "additionalOptions": { "alias": "additionalOptions"; "required": false; }; "headerOptions": { "alias": "headerOptions"; "required": false; }; "displayCount": { "alias": "displayCount"; "required": false; }; "datasourceIds": { "alias": "datasourceIds"; "required": false; }; "widgetIndex": { "alias": "widgetIndex"; "required": false; }; }, { "manifestModified": "manifestModified"; }, never, ["*"], false, never>;
115
104
  }
@@ -1,6 +1,7 @@
1
1
  export * from './base-widget.component';
2
2
  export * from './data-widget.component';
3
3
  export * from './header/widget-header.component';
4
+ export * from './datasource-selector/datasource-selector.component';
4
5
  export * from './header/resultset-size.pipe';
5
6
  export * from './widget-instanciator/widget-factory.service';
6
7
  export * from './widget-instanciator/widget-instanciator.component';
@@ -21,19 +21,20 @@ import * as i14 from "./tooltip/components/default/default.tooltip.component";
21
21
  import * as i15 from "./tooltip/base-tooltip.component";
22
22
  import * as i16 from "./filter/base-filter.component";
23
23
  import * as i17 from "./filter/components/filter-instanciator/filter-instanciator.component";
24
- import * as i18 from "@angular/common";
25
- import * as i19 from "@angular/forms";
26
- import * as i20 from "../core/components/select/select.module";
27
- import * as i21 from "../core/components/icon/icon.module";
28
- import * as i22 from "@angular/cdk/overlay";
29
- import * as i23 from "../core/core.module";
30
- import * as i24 from "@provoly/dashboard/components/checkbox";
31
- import * as i25 from "../core/components/toggle/toggle.module";
32
- import * as i26 from "../core/components/overlay/overlay.module";
33
- import * as i27 from "@ngrx/store";
34
- import * as i28 from "@ngrx/effects";
35
- import * as i29 from "../core/components/date-picker/date-picker.module";
36
- import * as i30 from "../core/i18n/i18n.module";
24
+ import * as i18 from "./components/widgets/datasource-selector/datasource-selector.component";
25
+ import * as i19 from "@angular/common";
26
+ import * as i20 from "@angular/forms";
27
+ import * as i21 from "../core/components/select/select.module";
28
+ import * as i22 from "../core/components/icon/icon.module";
29
+ import * as i23 from "@angular/cdk/overlay";
30
+ import * as i24 from "../core/core.module";
31
+ import * as i25 from "@provoly/dashboard/components/checkbox";
32
+ import * as i26 from "../core/components/toggle/toggle.module";
33
+ import * as i27 from "../core/components/overlay/overlay.module";
34
+ import * as i28 from "@ngrx/store";
35
+ import * as i29 from "@ngrx/effects";
36
+ import * as i30 from "../core/components/date-picker/date-picker.module";
37
+ import * as i31 from "../core/i18n/i18n.module";
37
38
  export declare class PryDashboardModule {
38
39
  static forRoot(widgetReference: {
39
40
  [key: string]: WidgetDefinition;
@@ -54,6 +55,6 @@ export declare class PryDashboardModule {
54
55
  image?: string;
55
56
  }[]): ModuleWithProviders<PryDashboardModule>;
56
57
  static ɵfac: i0.ɵɵFactoryDeclaration<PryDashboardModule, never>;
57
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i20.PrySelectModule, typeof i21.PryIconModule, typeof i22.OverlayModule, typeof i23.PryCoreModule, typeof i24.PryCheckboxModule, typeof i25.PryToggleModule, typeof i26.PryOverlayModule, typeof i27.StoreFeatureModule, typeof i28.EffectsFeatureModule, typeof i29.PryDatePickerModule, typeof i30.PryI18nModule], [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent]>;
58
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryDashboardModule, [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.DatasourceSelectorComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i21.PrySelectModule, typeof i22.PryIconModule, typeof i23.OverlayModule, typeof i24.PryCoreModule, typeof i25.PryCheckboxModule, typeof i26.PryToggleModule, typeof i27.PryOverlayModule, typeof i28.StoreFeatureModule, typeof i29.EffectsFeatureModule, typeof i30.PryDatePickerModule, typeof i31.PryI18nModule], [typeof i1.DashboardComponent, typeof i2.WidgetInstanciatorComponent, typeof i3.WidgetPlaceholderComponent, typeof i4.SettingsComponent, typeof i5.ManifestsComponent, typeof i6.MetadataComponent, typeof i7.ContextMenuComponent, typeof i8.DataWidgetComponent, typeof i9.BaseWidgetComponent, typeof i10.PryWidgetHeaderComponent, typeof i11.PryObjectEditionComponent, typeof i12.VizualizeRawComponent, typeof i13.ResultSetSizePipe, typeof i14.DefaultTooltipComponent, typeof i15.BaseTooltipComponent, typeof i16.BaseFilterComponent, typeof i17.FilterInstanciatorComponent, typeof i18.DatasourceSelectorComponent]>;
58
59
  static ɵinj: i0.ɵɵInjectorDeclaration<PryDashboardModule>;
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.12.6",
3
+ "version": "0.12.8",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -55,18 +55,18 @@
55
55
  "esm": "./esm2022/import/provoly-dashboard-import.mjs",
56
56
  "default": "./fesm2022/provoly-dashboard-import.mjs"
57
57
  },
58
- "./notification": {
59
- "types": "./notification/index.d.ts",
60
- "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
61
- "esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
62
- "default": "./fesm2022/provoly-dashboard-notification.mjs"
63
- },
64
58
  "./pipeline": {
65
59
  "types": "./pipeline/index.d.ts",
66
60
  "esm2022": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
67
61
  "esm": "./esm2022/pipeline/provoly-dashboard-pipeline.mjs",
68
62
  "default": "./fesm2022/provoly-dashboard-pipeline.mjs"
69
63
  },
64
+ "./notification": {
65
+ "types": "./notification/index.d.ts",
66
+ "esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
67
+ "esm": "./esm2022/notification/provoly-dashboard-notification.mjs",
68
+ "default": "./fesm2022/provoly-dashboard-notification.mjs"
69
+ },
70
70
  "./presentation": {
71
71
  "types": "./presentation/index.d.ts",
72
72
  "esm2022": "./esm2022/presentation/provoly-dashboard-presentation.mjs",
@@ -97,30 +97,6 @@
97
97
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
98
98
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
99
99
  },
100
- "./filters/date": {
101
- "types": "./filters/date/index.d.ts",
102
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
103
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
104
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
105
- },
106
- "./filters/list": {
107
- "types": "./filters/list/index.d.ts",
108
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
109
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
110
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
111
- },
112
- "./filters/number": {
113
- "types": "./filters/number/index.d.ts",
114
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
115
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
116
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
117
- },
118
- "./filters/text": {
119
- "types": "./filters/text/index.d.ts",
120
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
121
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
122
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
123
- },
124
100
  "./components/card": {
125
101
  "types": "./components/card/index.d.ts",
126
102
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -157,6 +133,30 @@
157
133
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
158
134
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
159
135
  },
136
+ "./filters/date": {
137
+ "types": "./filters/date/index.d.ts",
138
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
139
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
140
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
141
+ },
142
+ "./filters/list": {
143
+ "types": "./filters/list/index.d.ts",
144
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
145
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
146
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
147
+ },
148
+ "./filters/number": {
149
+ "types": "./filters/number/index.d.ts",
150
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
151
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
152
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
153
+ },
154
+ "./filters/text": {
155
+ "types": "./filters/text/index.d.ts",
156
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
157
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
158
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
159
+ },
160
160
  "./pipeline-components/filter": {
161
161
  "types": "./pipeline-components/filter/index.d.ts",
162
162
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -1,16 +1,14 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
- import { CatalogEntry, Class, Dataset, DataSource, LibraryTypes, NamedQuery, PryVisibility, SubscriptionnerDirective, ToolboxManifestService, ToolboxMenuService, Widget, WidgetManifest } from '@provoly/dashboard';
3
+ import { CatalogEntry, Class, DataSource, LibraryTypes, PryVisibility, SubscriptionnerDirective, ToolboxManifestService, ToolboxMenuService, Widget, WidgetManifest } from '@provoly/dashboard';
4
4
  import { PryStepperComponent } from '@provoly/dashboard/components/stepper';
5
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
+ import { Observable, Subject } from 'rxjs';
6
6
  import { RestitutionForm } from '../../model/restitution.model';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class PryRestitutionComponent extends SubscriptionnerDirective implements OnInit {
9
9
  private toolboxManifestService;
10
10
  private store;
11
11
  private toolboxMenuService;
12
- search$: BehaviorSubject<string>;
13
- filteredDataSource$?: Observable<DataSource[]>;
14
12
  types$: Observable<{
15
13
  icon: string;
16
14
  label: string;
@@ -30,14 +28,11 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
30
28
  type: LibraryTypes;
31
29
  isDataSourceSelected: boolean;
32
30
  bindId: any;
33
- idToNameDatasource: {
34
- [id: string]: string;
35
- };
36
31
  image: string;
37
32
  constructor(toolboxManifestService: ToolboxManifestService, store: Store, toolboxMenuService: ToolboxMenuService);
38
33
  ngOnInit(): void;
39
34
  cancel(stepper: PryStepperComponent): void;
40
- toggleDatasource(id: string): void;
35
+ datasourcesChanged($event: DataSource[]): void;
41
36
  submit(stepper: PryStepperComponent): void;
42
37
  isSubmitDisabled(): boolean;
43
38
  noDataSourceSelected(): boolean;
@@ -48,7 +43,6 @@ export declare class PryRestitutionComponent extends SubscriptionnerDirective im
48
43
  manifest: WidgetManifest;
49
44
  }): void;
50
45
  lastStepCompleted(): void;
51
- isGeo(ds: NamedQuery | Dataset): boolean;
52
46
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionComponent, never>;
53
47
  static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionComponent, "pry-restitution", never, { "selectedRestitution": { "alias": "selectedRestitution"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "isDataSourceSelected": { "alias": "isDataSourceSelected"; "required": false; }; "bindId": { "alias": "bindId"; "required": false; }; }, { "restitutionCreated": "restitutionCreated"; }, never, never, false, never>;
54
48
  }
@@ -22,10 +22,6 @@
22
22
  margin-bottom: toRem(0);
23
23
  }
24
24
 
25
- h4 {
26
- margin-top: 2rem;
27
- }
28
-
29
25
  label {
30
26
  border-radius: 10%;
31
27
  }
@@ -23,7 +23,6 @@ describe(schematicName, () => {
23
23
  it('should add main dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
24
24
  yield runner.runSchematic(schematicName, { widgets: [], pipeline: false, projectName: 'test-project' }, tree);
25
25
  const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
26
- expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
27
26
  expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
28
27
  expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
29
28
  expect(packageJson.dependencies['ol']).toBe(undefined);
@@ -32,7 +31,6 @@ describe(schematicName, () => {
32
31
  it('should add specific dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
33
32
  yield runner.runSchematic(schematicName, { widgets: ['widget-map'], pipeline: false, projectName: 'test-project' }, tree);
34
33
  const packageJson = JSON.parse((0, file_contents_function_1.getFileContent)(tree, '/package.json'));
35
- expect(packageJson.dependencies['@provoly/dashboard']).toBe(packageJson.version);
36
34
  expect(packageJson.dependencies['uuid']).toBe('^9.0.0');
37
35
  expect(packageJson.devDependencies['@types/uuid']).toBe('^9.0.0');
38
36
  expect(packageJson.dependencies['ol']).toBe('^7.0.0');
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../projects/provoly/dashboard/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,6BAA6B;AAC7B,4EAAiE;AAIjE,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACjG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,o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c,EAAyB,EAChG,IAAI,CACL,CAAC;QAEF,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,uCAAc,EAAC,IAAI,EAAE,eAAe,CAAC,CAAgB,CAAC;QAErF,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxD,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEtD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -13,71 +13,32 @@
13
13
  .o-datasources {
14
14
  &__list {
15
15
  @extend %list-unstyled;
16
- gap: toRem(25) toRem(30);
17
- display: grid;
18
- grid-template-columns: repeat(auto-fill, minmax(toRem(150), 1fr));
16
+ gap: toRem(15) toRem(30);
17
+ display: flex;
18
+ flex-wrap: wrap;
19
19
  margin: toRem(10) 0;
20
+ }
20
21
 
21
- &--selected {
22
- display: flex;
23
- flex-wrap: wrap;
24
- gap: toRem(15);
25
- margin-bottom: toRem(40);
26
-
27
- .a-btn--icon-text {
28
- @include outlineOnFocus();
29
- gap: toRem(11) toRem(15);
30
- padding-left: toRem(15);
31
- padding-right: toRem(15);
22
+ &__main {
23
+ flex: 1 1;
24
+ overflow: overlay;
25
+ }
32
26
 
33
- pry-icon {
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- width: toRem(25);
38
- height: toRem(25);
39
- }
40
- }
41
- }
27
+ &__bottom {
28
+ padding: toRem(5);
42
29
  }
43
30
 
44
31
  &__card,
45
32
  .o-pry-card {
33
+ border-radius: toRem(15);
34
+ padding: toRem(5) toRem(10);
46
35
  display: flex;
47
- flex-direction: column;
48
- justify-content: space-between;
49
- gap: toRem(10);
50
- height: 100%;
51
- min-height: toRem(100);
52
- padding: toRem(18) toRem(13) toRem(15) toRem(13);
53
- cursor: pointer;
54
-
55
- &__name {
56
- display: flex;
57
- flex-direction: row;
58
- align-items: flex-start;
59
- gap: toRem(4);
36
+ flex-direction: row;
37
+ align-items: center;
38
+ gap: 5px;
60
39
 
61
- .a-p {
62
- width: 100%;
63
- margin-bottom: 0;
64
- overflow-wrap: break-word;
65
- transform: translateY(toRem(-1));
66
- }
40
+ p {
41
+ margin-bottom: 0;
67
42
  }
68
-
69
- /*.a-checkbox__checkmark{
70
- width: 1.5rem;
71
- height: 1.5rem;
72
- border-radius: 0.75rem;
73
-
74
- &:before{
75
- left: 0.45rem;
76
- top: 0.15rem;
77
- width: 0.35rem;
78
- height: 0.75rem;
79
- border-width: 0 0.125rem 0.125rem 0;
80
- }
81
- }*/
82
43
  }
83
44
  }
@@ -118,41 +118,12 @@
118
118
  }
119
119
 
120
120
  // Resultset displayed in popup/panel
121
- &__choose-resultset {
121
+ &__choose-resultset, .active-step {
122
122
  @extend %overlay-panel-fixed-right;
123
123
  width: toRem(560);
124
124
  padding: 0 0 toRem(10) 0;
125
-
126
- .m-namedqueries-wrapper {
127
- overflow: auto;
128
- overflow-x: hidden;
129
- height: auto;
130
- padding: toRem(30) toRem(20) 0 toRem(20);
131
-
132
- .o-widget__search {
133
- margin-bottom: toRem(20);
134
- }
135
-
136
- .m-namedqueries {
137
- @extend %list-unstyled;
138
-
139
- &__item {
140
- display: flex;
141
- flex-direction: row;
142
- justify-content: space-between;
143
- align-items: center;
144
- margin-bottom: toRem(15);
145
-
146
- .a-checkbox {
147
- margin-bottom: 0;
148
- }
149
-
150
- .a-checkbox__text {
151
- padding-right: toRem(10);
152
- }
153
- }
154
- }
155
- }
125
+ top: toRem(12);
126
+ height: calc(100% - 24px);
156
127
 
157
128
  .m-btn-group {
158
129
  min-height: 65px;
@@ -206,3 +177,40 @@
206
177
  margin-top: toRem(12);
207
178
  }
208
179
  }
180
+
181
+ .m-namedqueries-wrapper {
182
+ overflow: auto;
183
+ overflow-x: hidden;
184
+ padding: toRem(30) toRem(20) 0 toRem(20);
185
+ display: flex;
186
+ flex-direction: column;
187
+ height: 100%;
188
+
189
+ .o-widget__search {
190
+ margin-bottom: toRem(20);
191
+ }
192
+
193
+ .m-namedqueries {
194
+ @extend %list-unstyled;
195
+
196
+ &__item {
197
+ display: flex;
198
+ flex-direction: row;
199
+ justify-content: space-between;
200
+ align-items: center;
201
+ margin-bottom: toRem(15);
202
+
203
+ .a-checkbox {
204
+ margin-bottom: 0;
205
+ }
206
+
207
+ .a-checkbox__text {
208
+ padding-right: toRem(10);
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ pry-datasource-selector {
215
+ height: 100%;
216
+ }
@@ -28,11 +28,14 @@
28
28
  .o-pry-card {
29
29
  @extend %card-with-hover;
30
30
 
31
- .a-p {
32
- color: themed($theme-map, 'color', 'primary', 600);
33
- font-size: toRem(14);
34
- line-height: toRem(18);
35
- font-weight: 700;
31
+ &.-selected {
32
+ color: themed($theme-map, 'color', 'accent', 'contrast', 600);
33
+ background-color: themed($theme-map, 'color', 'accent', 600);
34
+
35
+ .a-btn.a-btn--primary {
36
+ color: themed($theme-map, 'color', 'accent', 600);
37
+ background-color: themed($theme-map, 'color', 'accent', 'contrast', 600);
38
+ }
36
39
  }
37
40
  }
38
41
  }
@@ -2,7 +2,7 @@ import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
2
2
  import { AfterViewInit, ComponentRef, ElementRef, Injector, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GeocodingService, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
5
- import { Map } from 'ol';
5
+ import { Map, MapBrowserEvent, Overlay } from 'ol';
6
6
  import LayerSwitcher from 'ol-layerswitcher';
7
7
  import { Geometry } from 'ol/geom';
8
8
  import BaseLayer from 'ol/layer/Base';
@@ -78,6 +78,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
78
78
  } | undefined;
79
79
  center?: number[] | undefined;
80
80
  }>;
81
+ interactionPopupOverlay?: Overlay;
82
+ interactionPopupListener?: (event: MapBrowserEvent<MouseEvent>) => void;
83
+ interactionPopupMode?: 'singleclick' | 'pointermove';
81
84
  constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, geocodingService: GeocodingService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
82
85
  ngAfterViewInit(): void;
83
86
  initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
@@ -88,7 +91,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
88
91
  }): Promise<ComponentRef<BaseTooltipComponent> | null>;
89
92
  setDefaultLayerTitle(layer: MapWidgetLayerOptions, idx: number): void;
90
93
  fitMapForObjects(options: MapWidgetOptions, selectedIds?: string[]): void;
91
- private addOverlayOnHoverInteraction;
94
+ private addOverlayOnInteraction;
92
95
  private addContextMenuInteraction;
93
96
  private getAttributesForDrawing;
94
97
  private getIntensityAttribute;