@provoly/dashboard 0.13.7 → 0.13.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 (112) hide show
  1. package/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.d.ts +4 -4
  2. package/admin/components/admin-dataset/store/admin-dataset.actions.d.ts +3 -3
  3. package/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +3 -3
  4. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +2 -2
  5. package/esm2022/admin/components/admin-dataset/store/admin-dataset.actions.mjs +1 -1
  6. package/esm2022/lib/core/components/overlay/dialog-confirm.component.mjs +5 -12
  7. package/esm2022/lib/core/components/overlay/overlay.module.mjs +5 -4
  8. package/esm2022/lib/core/components/select/select.component.mjs +2 -2
  9. package/esm2022/lib/core/components/share/share.component.mjs +3 -3
  10. package/esm2022/lib/core/model/admin-api.model.mjs +1 -1
  11. package/esm2022/lib/core/model/dataset.interface.mjs +1 -1
  12. package/esm2022/lib/core/model/display-options.interface.mjs +4 -2
  13. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  14. package/esm2022/lib/core/store/config/config.actions.mjs +2 -1
  15. package/esm2022/lib/core/store/config/config.effects.mjs +25 -4
  16. package/esm2022/lib/core/store/data-source/data-source.actions.mjs +1 -1
  17. package/esm2022/lib/core/store/data-source/data-source.effects.mjs +1 -1
  18. package/esm2022/lib/core/store/data-source/data-source.model.mjs +1 -1
  19. package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +1 -1
  20. package/esm2022/lib/core/store/data-source/data-source.service.mjs +1 -1
  21. package/esm2022/lib/dashboard/components/context-menu/context-menu.component.mjs +3 -7
  22. package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +1 -1
  23. package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +6 -3
  24. package/esm2022/lib/dashboard/public-api.mjs +2 -1
  25. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -3
  26. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +25 -11
  27. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +2 -11
  28. package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +3 -5
  29. package/esm2022/lib/dashboard/store/manifest-utils.class.mjs +11 -0
  30. package/esm2022/lib/dashboard/store/manifest.service.mjs +3 -10
  31. package/esm2022/lib/dashboard/tooltip/components/default/default.tooltip.component.mjs +5 -4
  32. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +5 -8
  33. package/esm2022/presentation/components/presentation.component.mjs +5 -42
  34. package/esm2022/presentation/presentation.module.mjs +8 -4
  35. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +9 -65
  36. package/esm2022/search/components/save-query/save-query.component.mjs +5 -8
  37. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +3 -3
  38. package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +3 -3
  39. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +5 -16
  40. package/esm2022/toolbox/toolbox.module.mjs +8 -4
  41. package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +3 -3
  42. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
  43. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +46 -23
  44. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +4 -2
  45. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +4 -2
  46. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +4 -23
  47. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
  48. package/fesm2022/provoly-dashboard-admin.mjs +2 -2
  49. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  50. package/fesm2022/provoly-dashboard-pipeline.mjs +4 -7
  51. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  52. package/fesm2022/provoly-dashboard-presentation.mjs +11 -44
  53. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-restitution.mjs +9 -65
  55. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard-search.mjs +4 -7
  57. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  58. package/fesm2022/provoly-dashboard-toolbox.mjs +14 -21
  59. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  60. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +2 -2
  61. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
  62. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
  63. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  64. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +57 -111
  65. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  66. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
  67. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  68. package/fesm2022/provoly-dashboard.mjs +153 -135
  69. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  70. package/lib/core/components/overlay/overlay.module.d.ts +2 -1
  71. package/lib/core/model/admin-api.model.d.ts +1 -1
  72. package/lib/core/model/dataset.interface.d.ts +0 -10
  73. package/lib/core/model/display-options.interface.d.ts +1 -0
  74. package/lib/core/model/manifest.interface.d.ts +2 -0
  75. package/lib/core/store/config/config.actions.d.ts +5 -0
  76. package/lib/core/store/config/config.effects.d.ts +6 -1
  77. package/lib/core/store/data-source/data-source.actions.d.ts +2 -2
  78. package/lib/core/store/data-source/data-source.effects.d.ts +2 -3
  79. package/lib/core/store/data-source/data-source.model.d.ts +11 -3
  80. package/lib/core/store/data-source/data-source.reducer.d.ts +2 -2
  81. package/lib/core/store/data-source/data-source.selectors.d.ts +5 -5
  82. package/lib/core/store/data-source/data-source.service.d.ts +4 -4
  83. package/lib/dashboard/components/context-menu/context-menu.component.d.ts +0 -1
  84. package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +1 -2
  85. package/lib/dashboard/components/widgets/settings/settings.component.d.ts +1 -0
  86. package/lib/dashboard/public-api.d.ts +1 -0
  87. package/lib/dashboard/store/dashboard.actions.d.ts +6 -17
  88. package/lib/dashboard/store/dashboard.effects.d.ts +6 -7
  89. package/lib/dashboard/store/dashboard.reducers.d.ts +1 -5
  90. package/lib/dashboard/store/dashboard.selectors.d.ts +0 -57
  91. package/lib/dashboard/store/manifest-utils.class.d.ts +4 -0
  92. package/lib/dashboard/store/manifest.service.d.ts +0 -1
  93. package/package.json +31 -31
  94. package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -2
  95. package/presentation/components/presentation.component.d.ts +0 -5
  96. package/presentation/presentation.module.d.ts +2 -1
  97. package/restitution/components/restitution-catalog/restitution-catalog.component.d.ts +4 -15
  98. package/schematics/ng-update/version-0-13/index.js +18 -1
  99. package/schematics/ng-update/version-0-13/index.js.map +1 -1
  100. package/schematics/ng-update/version-0-13/index.spec.js +8 -1
  101. package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
  102. package/search/components/save-query/save-query.component.d.ts +1 -2
  103. package/styles/components/_m-tooltip.scss +18 -2
  104. package/styles-theme/components-theme/_m-tooltip.theme.scss +0 -12
  105. package/toolbox/components/select-grid-layout/select-grid-layout.component.d.ts +0 -4
  106. package/toolbox/toolbox.module.d.ts +2 -1
  107. package/widgets/widget-map/component/widget-map.component.d.ts +8 -3
  108. package/widgets/widget-map/i18n/en.translations.d.ts +2 -0
  109. package/widgets/widget-map/i18n/fr.translations.d.ts +2 -0
  110. package/widgets/widget-map/interaction/interaction-manager.class.d.ts +3 -5
  111. package/esm2022/widgets/widget-map/search-bar/search-bar.control.mjs +0 -66
  112. package/widgets/widget-map/search-bar/search-bar.control.d.ts +0 -27
@@ -20,14 +20,11 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
20
20
  template: TemplateRef<any>;
21
21
  templateModal: TemplateRef<any>;
22
22
  openModal: ElementRef<HTMLButtonElement>;
23
- cancelRemove: ElementRef<HTMLButtonElement>;
24
23
  confirm: ElementRef<HTMLButtonElement>;
25
24
  submit: ElementRef<HTMLButtonElement>;
26
25
  cross: ElementRef<HTMLButtonElement>;
27
26
  crossVisibility: ElementRef<HTMLButtonElement>;
28
27
  visibilityModal: ElementRef;
29
- deleteModal: ElementRef;
30
- private confirmRemoveRef?;
31
28
  overlayRef?: OverlayRef;
32
29
  visibility: PryVisibility;
33
30
  PryVisibilityType: typeof PryVisibilityType;
@@ -46,8 +43,6 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
46
43
  default(id: string, name: string): void;
47
44
  toggleModal(presentation?: ManifestDescription | null): void;
48
45
  changeVisibility(): void;
49
- toggleRemoveConfirm($event: any, presentation?: ManifestDescription): void;
50
- cancelRemoveConfirm(): void;
51
46
  focusCrossElement(): void;
52
47
  focusValidation(): void;
53
48
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationComponent, never>;
@@ -10,10 +10,11 @@ import * as i7 from "@provoly/dashboard/components/sinceDate";
10
10
  import * as i8 from "@provoly/dashboard/toolbox";
11
11
  import * as i9 from "@provoly/dashboard/components/checkbox";
12
12
  import * as i10 from "@angular/common";
13
+ import * as i11 from "@angular/cdk/a11y";
13
14
  export declare class PryPresentationModule {
14
15
  private pryTranslateService;
15
16
  constructor(pryTranslateService: PryI18nService);
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPresentationModule, [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent], [typeof i5.PryIconModule, typeof i5.PryCoreModule, typeof i5.PryDashboardModule, typeof i6.ReactiveFormsModule, typeof i5.PrySelectModule, typeof i7.PrySinceDateModule, typeof i5.PryShareModule, typeof i6.FormsModule, typeof i5.PryOverlayModule, typeof i5.PryI18nModule, typeof i8.PryToolboxModule, typeof i9.PryCheckboxModule, typeof i10.CommonModule, typeof i11.A11yModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
18
19
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
19
20
  }
@@ -1,5 +1,5 @@
1
1
  import { Overlay } from '@angular/cdk/overlay';
2
- import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { PryVisibilityType, ViewMode, Widget } from '@provoly/dashboard';
5
5
  import { BehaviorSubject, Observable } from 'rxjs';
@@ -11,15 +11,7 @@ export declare class PryRestitutionCatalogComponent {
11
11
  restitutions$: Observable<Widget[]>;
12
12
  search$: BehaviorSubject<string>;
13
13
  filteredRestitution$: Observable<Widget[]>;
14
- templateModal: TemplateRef<any>;
15
- openModal: ElementRef<HTMLButtonElement>;
16
- cancelRemove: ElementRef<HTMLButtonElement>;
17
- cross: ElementRef<HTMLButtonElement>;
18
- confirm: ElementRef<HTMLButtonElement>;
19
- private confirmRemoveRef;
20
14
  selectedItem?: Element | null;
21
- modalOpen: boolean;
22
- isOverlayOpen: boolean;
23
15
  mode: typeof ViewMode;
24
16
  selectedMode: ViewMode;
25
17
  selectedRestitution: Widget | null;
@@ -29,12 +21,9 @@ export declare class PryRestitutionCatalogComponent {
29
21
  selectMode(newMode: ViewMode): void;
30
22
  selectRestitution(restitution: Widget): void;
31
23
  closeRestitution($event: void): void;
32
- deleteRestitution(restitution: Widget): void;
24
+ deleteRestitution(id: string): void;
33
25
  editRestitution(restitution: Widget): void;
34
- toggleRemoveConfirm($event?: any, restitution?: Widget): void;
35
- cancelRemoveConfirm(): void;
36
- focusCrossElement(): void;
37
- focusValidation(): void;
26
+ focusElement(element: HTMLButtonElement): void;
38
27
  static ɵfac: i0.ɵɵFactoryDeclaration<PryRestitutionCatalogComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionCatalogComponent, "pry-restitution-catalog", never, { "modalOpen": { "alias": "modalOpen"; "required": false; }; }, {}, never, never, false, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<PryRestitutionCatalogComponent, "pry-restitution-catalog", never, {}, {}, never, never, false, never>;
40
29
  }
@@ -20,10 +20,27 @@ function removeWidgetMapHoverOption() {
20
20
  return undefined;
21
21
  };
22
22
  }
23
+ function changeTypeDatasetMetadataToMetadataValue() {
24
+ return function (tree, context) {
25
+ tree.visit((path, entry) => {
26
+ if (path.includes('.ts')) {
27
+ const buffer = tree.read(path);
28
+ if (buffer) {
29
+ tree.overwrite(path, buffer.toString().replace(/DatasetMetadata/g, 'MetadataValue'));
30
+ }
31
+ }
32
+ });
33
+ return undefined;
34
+ };
35
+ }
23
36
  function updateTo0_13() {
24
37
  return (_tree, context) => {
25
38
  context.addTask(new tasks_1.NodePackageInstallTask());
26
- return (0, schematics_1.chain)([removeWidgetMapHoverOption(), (0, complete_function_1.onMigrationComplete)('0.13', context)]);
39
+ return (0, schematics_1.chain)([
40
+ removeWidgetMapHoverOption(),
41
+ changeTypeDatasetMetadataToMetadataValue(),
42
+ (0, complete_function_1.onMigrationComplete)('0.13', context)
43
+ ]);
27
44
  };
28
45
  }
29
46
  exports.updateTo0_13 = updateTo0_13;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,kEAAiE;AAEjE,SAAS,0BAA0B;IACjC,OAAO,UAAU,IAAU,EAAE,OAAyB;QACpD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAClD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC/B,IAAI,MAAM,EAAE;oBACV,IAAI,CAAC,SAAS,CACZ,IAAI,EACJ,MAAM;yBACH,QAAQ,EAAE;yBACV,OAAO,CAAC,gCAAgC,EAAE,yBAAyB,CAAC;yBACpE,OAAO,CAAC,0CAA0C,EAAE,mCAAmC,CAAC,CAC5F,CAAC;iBACH;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,YAAY;IAC1B,OAAO,CAAC,KAAW,EAAE,OAAyB,EAAQ,EAAE;QACtD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAC9C,OAAO,IAAA,kBAAK,EAAC,CAAC,0BAA0B,EAAE,EAAE,IAAA,uCAAmB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC;AACJ,CAAC;AALD,oCAKC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../projects/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ACtD,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAC9C,OAAO,IAAA,kBAAK,EAAC;YACX,0BAA0B,EAAE;YAC5B,wCAAwC,EAAE;YAC1C,IAAA,uCAAmB,EAAC,MAAM,EAAE,OAAO,CAAC;SACrC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AATD,oCASC"}
@@ -22,7 +22,7 @@ describe(schematicName, () => {
22
22
  beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
23
23
  tree = yield runner.runExternalSchematic('@schematics/angular', 'ng-new', { name: 'test-project', version: '0.0.0', directory: '.' }, new testing_1.UnitTestTree(schematics_1.Tree.empty()));
24
24
  }));
25
- it(`should change version`, () => __awaiter(void 0, void 0, void 0, function* () {
25
+ it(`should remove click option`, () => __awaiter(void 0, void 0, void 0, function* () {
26
26
  tree.create('/app-routing.module.ts', `const routes: Routes = [
27
27
  /* In a real app, do not make routes like these ones */
28
28
  {
@@ -163,5 +163,12 @@ describe(schematicName, () => {
163
163
  expect(actual).toMatch(/tooltipMode\s*:\s*'click'/);
164
164
  expect(actual).toMatch(/tooltipMode\s*:\s*TooltipMode.CLICK/);
165
165
  }));
166
+ it(`should change type`, () => __awaiter(void 0, void 0, void 0, function* () {
167
+ tree.create('/some-app.component.ts', `const datasetsMeta : DatasetMetadata[] = [];`);
168
+ yield runner.runSchematic('migration-v0.13', {}, tree);
169
+ const actual = tree.readContent('/some-app.component.ts');
170
+ expect(actual).not.toMatch(/DatasetMetadata/);
171
+ expect(actual).toMatch(/MetadataValue/);
172
+ }));
166
173
  });
167
174
  //# sourceMappingURL=index.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW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AAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/version-0-13/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2DAAkD;AAClD,gEAAuF;AACvF,gDAAwB;AAExB,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC,CAAC;IACnG,IAAI,IAAkB,CAAC;IAEvB,UAAU,CAAC,GAAS,EAAE;QACpB,IAAI,GAAG,MAAM,MAAM,CAAC,oBAAoB,CACtC,qBAAqB,EACrB,QAAQ,EACR,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAC1D,IAAI,sBAAY,CAAC,iBAAI,CAAC,KAAK,EAAE,CAAC,CAC/B,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAS,EAAE;QAC1C,IAAI,CAAC,MAAM,CACT,wBAAwB,EACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIL,CACI,CAAC;QAEF,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAChE,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,oBAAoB,EAAE,GAAS,EAAE;QAClC,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,8CAA8C,CAAC,CAAC;QAEtF,MAAM,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -28,8 +28,7 @@ export declare class PrySaveQueryComponent implements OnInit {
28
28
  });
29
29
  ngOnInit(): void;
30
30
  onSave(): void;
31
- focusCrossElement(): void;
32
- focusValidation(): void;
31
+ focusElement(element: HTMLButtonElement): void;
33
32
  onClose(): void;
34
33
  static ɵfac: i0.ɵɵFactoryDeclaration<PrySaveQueryComponent, never>;
35
34
  static ɵcmp: i0.ɵɵComponentDeclaration<PrySaveQueryComponent, "pry-save-query", never, {}, {}, never, never, false, never>;
@@ -25,8 +25,7 @@
25
25
  overflow: auto;
26
26
  justify-content: flex-start;
27
27
  width: 300px;
28
- max-height: 500px;
29
- min-height: 30px;
28
+ height: 200px;
30
29
  padding: toRem(10) toRem(15);
31
30
  background-color: #ecedf4;
32
31
  box-shadow: 2px 3px 10px 2px rgba(0, 0, 0, 0.2);
@@ -43,6 +42,23 @@
43
42
  background: transparent;
44
43
  }
45
44
  }
45
+
46
+ &__header {
47
+ display: flex;
48
+ flex-direction: row;
49
+ gap: 5px;
50
+ width: 100%;
51
+
52
+ > p {
53
+ flex: 1 1;
54
+ }
55
+ }
56
+
57
+ &__container {
58
+ > * {
59
+ display: none;
60
+ }
61
+ }
46
62
  }
47
63
 
48
64
  &--example {
@@ -22,18 +22,6 @@
22
22
  &__item {
23
23
  width: 100%;
24
24
 
25
- &:not(:last-child) {
26
- &:after {
27
- content: '';
28
- display: block;
29
- width: 100%;
30
- height: 1px;
31
- margin-top: toRem(7);
32
- margin-bottom: toRem(6);
33
- background-color: themed($theme-map, 'color', 'grey', 400);
34
- }
35
- }
36
-
37
25
  &__content {
38
26
  gap: toRem(10);
39
27
 
@@ -18,8 +18,6 @@ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
18
18
  template: TemplateRef<any>;
19
19
  firstButton: ElementRef<HTMLButtonElement>;
20
20
  openModal: ElementRef<HTMLButtonElement>;
21
- cross: ElementRef<HTMLButtonElement>;
22
- confirm: ElementRef<HTMLButtonElement>;
23
21
  modalOpened: boolean;
24
22
  overlayRef?: OverlayRef;
25
23
  constructor(store: Store, overlay: Overlay, viewContainerRef: ViewContainerRef);
@@ -27,8 +25,6 @@ export declare class SelectGridLayoutComponent extends ToolboxActionComponent {
27
25
  toggleGridChoiceModal(): void;
28
26
  openWithTemplate(): void;
29
27
  validate(): void;
30
- focusCrossElement(): void;
31
- focusValidation(): void;
32
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectGridLayoutComponent, never>;
33
29
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectGridLayoutComponent, "pry-select-grid-layout", never, {}, {}, never, never, false, never>;
34
30
  }
@@ -20,8 +20,9 @@ import * as i18 from "@provoly/dashboard";
20
20
  import * as i19 from "@provoly/dashboard/components/checkbox";
21
21
  import * as i20 from "@provoly/dashboard/components/stepper";
22
22
  import * as i21 from "@angular/cdk/drag-drop";
23
+ import * as i22 from "@angular/cdk/a11y";
23
24
  export declare class PryToolboxModule {
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<PryToolboxModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.OverlayModule, typeof i18.PryOverlayModule, typeof i18.PryCoreModule, typeof i18.PryDashboardModule, typeof i18.PrySelectModule, typeof i18.PryIconModule, typeof i19.PryCheckboxModule, typeof i18.PryToggleModule, typeof i20.PryStepperModule, typeof i18.PryShareModule, typeof i18.PryI18nModule, typeof i21.CdkDropList, typeof i21.CdkDrag, typeof i21.CdkDragHandle], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent]>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryToolboxModule, [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.OverlayModule, typeof i18.PryOverlayModule, typeof i18.PryCoreModule, typeof i18.PryDashboardModule, typeof i18.PrySelectModule, typeof i18.PryIconModule, typeof i19.PryCheckboxModule, typeof i18.PryToggleModule, typeof i20.PryStepperModule, typeof i18.PryShareModule, typeof i18.PryI18nModule, typeof i21.CdkDropList, typeof i21.CdkDrag, typeof i21.CdkDragHandle, typeof i22.A11yModule], [typeof i1.ToolboxActionComponent, typeof i2.ToolboxActionInstanciatorComponent, typeof i3.ClearViewComponent, typeof i4.DragWidgetsComponent, typeof i5.EditModeToggleComponent, typeof i6.LaunchTabComponent, typeof i7.NamedQueryComponent, typeof i8.SaveViewComponent, typeof i9.SelectGridLayoutComponent, typeof i10.ToolboxComponent, typeof i11.PrySelectGridLayoutCssComponent, typeof i12.PryFilterSettingsComponent, typeof i13.RefreshDatasetsComponent, typeof i14.AutomateRefreshComponent]>;
26
27
  static ɵinj: i0.ɵɵInjectorDeclaration<PryToolboxModule>;
27
28
  }
@@ -1,7 +1,7 @@
1
1
  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
- 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';
4
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
5
5
  import { Map } from 'ol';
6
6
  import { Geometry } from 'ol/geom';
7
7
  import BaseLayer from 'ol/layer/Base';
@@ -14,11 +14,11 @@ import { BehaviorSubject, Observable } from 'rxjs';
14
14
  import { InteractionManager } from '../interaction/interaction-manager.class';
15
15
  import { WidgetMapLayerService } from './widget-map-layer.service';
16
16
  import * as i0 from "@angular/core";
17
+ export declare const TOOLTIP_PADDING = 15;
17
18
  export declare class WidgetMapComponent extends DataWidgetComponent implements AfterViewInit {
18
19
  private snackBar;
19
20
  translateService: PryI18nService;
20
21
  private tooltipFactoryService;
21
- geocodingService: GeocodingService;
22
22
  private overlay;
23
23
  private viewContainerRef;
24
24
  private symbolService;
@@ -77,7 +77,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
77
77
  mapStyle$: Observable<string>;
78
78
  interactionManager: InteractionManager;
79
79
  mapStyleLayer$: Observable<VectorTileLayer[]>;
80
- constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, geocodingService: GeocodingService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
80
+ tooltipIndex: number;
81
+ tooltipNumber: number;
82
+ constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
81
83
  initInteractionManager(): InteractionManager;
82
84
  ngAfterViewInit(): void;
83
85
  initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
@@ -125,6 +127,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
125
127
  changeWmsClass($event: any, layer: MapWMSLayerLayerOptions): void;
126
128
  toggleLegend(index: number): void;
127
129
  toggleLegendWindow(): void;
130
+ tooltipMove(number: number): void;
131
+ tooltipCanMove(number: number): boolean;
132
+ private setStyleAsync;
128
133
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, never>;
129
134
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
130
135
  }
@@ -74,6 +74,8 @@ export declare const enTranslations: {
74
74
  import: string;
75
75
  legend: string;
76
76
  legendNotProvided: string;
77
+ selectLayers: string;
78
+ legends: string;
77
79
  };
78
80
  };
79
81
  };
@@ -74,6 +74,8 @@ export declare const frTranslations: {
74
74
  import: string;
75
75
  legend: string;
76
76
  legendNotProvided: string;
77
+ selectLayers: string;
78
+ legends: string;
77
79
  };
78
80
  };
79
81
  };
@@ -1,16 +1,15 @@
1
1
  import { MapBrowserEvent, Overlay } from 'ol';
2
2
  import LayerSwitcher from 'ol-layerswitcher';
3
3
  import { ScaleLine } from 'ol/control';
4
- import { WidgetMapComponent } from '../component/widget-map.component';
5
- import { SearchBarControl } from '../search-bar/search-bar.control';
4
+ import type { WidgetMapComponent } from '../component/widget-map.component';
6
5
  import { SelectionInteraction } from './selection-interaction.class';
7
6
  export declare class InteractionManager {
8
7
  interactionPopupOverlay?: Overlay;
9
- private component;
10
- searchBarControl?: SearchBarControl;
11
8
  layerSwitchControl?: LayerSwitcher;
12
9
  scaleControl?: ScaleLine;
13
10
  selectionInteraction: SelectionInteraction;
11
+ tooltipEvent?: MapBrowserEvent<MouseEvent>;
12
+ private component;
14
13
  init(component: WidgetMapComponent): this;
15
14
  listeners: {
16
15
  contextMenu: (e: MouseEvent) => void;
@@ -21,7 +20,6 @@ export declare class InteractionManager {
21
20
  private addDropInteraction;
22
21
  private addOverlayOnInteraction;
23
22
  private addScaleControl;
24
- private addSearchBarControl;
25
23
  private addLayerSwitcher;
26
24
  private addUpdateZoomAndCenter;
27
25
  }
@@ -1,66 +0,0 @@
1
- import { Control } from 'ol/control';
2
- import BaseEvent from 'ol/events/Event';
3
- import { fromLonLat } from 'ol/proj';
4
- export class AddressSearchedEvent extends BaseEvent {
5
- // @ts-ignore
6
- constructor({ type, coordinates, address, latLon, query }) {
7
- super(type);
8
- this.coordinates = coordinates;
9
- this.address = address;
10
- this.latLon = latLon;
11
- this.query = query;
12
- }
13
- }
14
- export class SearchBarControl extends Control {
15
- constructor(opt_options) {
16
- const options = opt_options || {};
17
- const button = document.createElement('button');
18
- button.innerHTML = '<div></div>';
19
- const element = document.createElement('div');
20
- element.className = 'ol-searchbar ol-unselectable ol-control';
21
- element.appendChild(button);
22
- const input = document.createElement('input');
23
- input.type = 'text';
24
- input.placeholder = '1 rue de la Paix...';
25
- input.style.display = 'none';
26
- element.appendChild(input);
27
- super({
28
- element: element,
29
- target: options.target
30
- });
31
- this.button = button;
32
- button.addEventListener('click', this.toggleInputVisible.bind(this), false);
33
- this.input = input;
34
- input.addEventListener('keypress', this.keyPress.bind(this), false);
35
- }
36
- toggleInputVisible() {
37
- if (this.inputVisible) {
38
- this.input.style.display = 'none';
39
- }
40
- else {
41
- this.input.style.display = 'block';
42
- }
43
- }
44
- get inputVisible() {
45
- return this.input.style.display === 'block';
46
- }
47
- keyPress(e) {
48
- if (e.key === 'Enter') {
49
- this.geocodingService?.fromAddress(this.input.value).subscribe((result) => {
50
- this.getMap()?.dispatchEvent(new AddressSearchedEvent({
51
- type: 'searched-address',
52
- latLon: result.latLon,
53
- coordinates: fromLonLat(result.latLon.reverse(), this.getMap()?.getView().getProjection()),
54
- query: this.input.value,
55
- address: result.pointAddress
56
- }));
57
- this.toggleInputVisible();
58
- });
59
- }
60
- }
61
- withGeocodingService(geocodingService) {
62
- this.geocodingService = geocodingService;
63
- return this;
64
- }
65
- }
66
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWJhci5jb250cm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJvdm9seS9kYXNoYm9hcmQvd2lkZ2V0cy93aWRnZXQtbWFwL3NlYXJjaC1iYXIvc2VhcmNoLWJhci5jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFckMsT0FBTyxTQUFTLE1BQU0saUJBQWlCLENBQUM7QUFDeEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUVyQyxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsU0FBUztJQU1qRCxhQUFhO0lBQ2IsWUFBWSxFQUFFLElBQUksRUFBRSxXQUFXLEVBQUUsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUU7UUFDdkQsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ1osSUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLENBQUM7UUFDL0IsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7UUFDdkIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7SUFDckIsQ0FBQztDQUNGO0FBRUQsTUFBTSxPQUFPLGdCQUFpQixTQUFRLE9BQU87SUFLM0MsWUFBWSxXQUFvQjtRQUM5QixNQUFNLE9BQU8sR0FBRyxXQUFXLElBQUksRUFBRSxDQUFDO1FBRWxDLE1BQU0sTUFBTSxHQUFHLFFBQVEsQ0FBQyxhQUFhLENB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nBvaW50QWRkcmVzc1xuICAgICAgICAgIH0pXG4gICAgICAgICk7XG4gICAgICAgIHRoaXMudG9nZ2xlSW5wdXRWaXNpYmxlKCk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICB3aXRoR2VvY29kaW5nU2VydmljZShnZW9jb2RpbmdTZXJ2aWNlOiBHZW9jb2RpbmdTZXJ2aWNlKSB7XG4gICAgdGhpcy5nZW9jb2RpbmdTZXJ2aWNlID0gZ2VvY29kaW5nU2VydmljZTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxufVxuIl19
@@ -1,27 +0,0 @@
1
- import { GeocodingService } from '@provoly/dashboard';
2
- import { Control } from 'ol/control';
3
- import { Options } from 'ol/control/Control';
4
- import BaseEvent from 'ol/events/Event';
5
- export declare class AddressSearchedEvent extends BaseEvent {
6
- latLon: [number, number];
7
- coordinates: [number, number];
8
- address: string;
9
- query: string;
10
- constructor({ type, coordinates, address, latLon, query }: {
11
- type: any;
12
- coordinates: any;
13
- address: any;
14
- latLon: any;
15
- query: any;
16
- });
17
- }
18
- export declare class SearchBarControl extends Control {
19
- button: HTMLButtonElement;
20
- input: HTMLInputElement;
21
- geocodingService?: GeocodingService;
22
- constructor(opt_options: Options);
23
- toggleInputVisible(): void;
24
- get inputVisible(): boolean;
25
- keyPress(e: KeyboardEvent): void;
26
- withGeocodingService(geocodingService: GeocodingService): this;
27
- }