@provoly/dashboard 0.12.6 → 0.12.7

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 (52) hide show
  1. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
  2. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +4 -3
  3. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +24 -2
  4. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +97 -0
  5. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +29 -62
  6. package/esm2022/lib/dashboard/components/widgets/public-api.mjs +2 -1
  7. package/esm2022/lib/dashboard/dashboard.module.mjs +8 -4
  8. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +4 -1
  9. package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -24
  10. package/esm2022/restitution/style/css.component.mjs +2 -2
  11. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +3 -3
  12. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
  13. package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +1 -1
  14. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
  15. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -12
  16. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
  17. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
  18. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-presentation.mjs +3 -0
  20. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-restitution.mjs +8 -25
  22. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +2 -2
  24. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  25. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
  26. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  27. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -1
  28. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
  29. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +2 -2
  30. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  31. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +18 -11
  32. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  33. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
  34. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
  36. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  37. package/fesm2022/provoly-dashboard.mjs +150 -72
  38. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  39. package/lib/core/store/data-source/data-source.effects.d.ts +1 -0
  40. package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +34 -0
  41. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +5 -16
  42. package/lib/dashboard/components/widgets/public-api.d.ts +1 -0
  43. package/lib/dashboard/dashboard.module.d.ts +15 -14
  44. package/package.json +1 -1
  45. package/restitution/components/restitution/restitution.component.d.ts +3 -9
  46. package/restitution/style/_o-restitution.scss +0 -4
  47. package/schematics/ng-add/index.spec.js +0 -2
  48. package/schematics/ng-add/index.spec.js.map +1 -1
  49. package/styles/components/_o-datasources.scss +17 -56
  50. package/styles/components/_o-widget.scss +40 -32
  51. package/styles-theme/components-theme/_o-datasources.theme.scss +8 -5
  52. package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
@@ -96,6 +96,7 @@ 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
+ activateOrDeactivateDatasetVersionSuccess$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dataset] Get Dataset versions">> & import("@ngrx/effects").CreateEffectMetadata;
99
100
  previewsGetById$: import("rxjs").Observable<({
100
101
  previews: import("../../model/dataset.interface").DatasetPreview[];
101
102
  } & import("@ngrx/store/src/models").TypedAction<"[Dataset/Previews] get by id Success">) | ({
@@ -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.7",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -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;I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AAa,EACb,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,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;