@provoly/dashboard 0.14.5 → 0.14.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 (127) hide show
  1. package/admin/admin.module.d.ts +2 -1
  2. package/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -2
  3. package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +7 -3
  4. package/admin/i18n/en.translations.d.ts +15 -0
  5. package/admin/i18n/fr.translations.d.ts +15 -0
  6. package/components/metadata-editor/metadata-editor.component.d.ts +3 -1
  7. package/esm2022/admin/admin.module.mjs +8 -4
  8. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +3 -3
  9. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +19 -14
  10. package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +1 -1
  11. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +3 -5
  12. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +23 -12
  13. package/esm2022/admin/components/admin-user/admin-user-select/admin-user-select.component.mjs +1 -1
  14. package/esm2022/admin/i18n/en.translations.mjs +17 -2
  15. package/esm2022/admin/i18n/fr.translations.mjs +19 -4
  16. package/esm2022/components/metadata-editor/metadata-editor.component.mjs +30 -9
  17. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +4 -3
  18. package/esm2022/import/components/import.component.mjs +12 -5
  19. package/esm2022/import/i18n/en.translations.mjs +3 -2
  20. package/esm2022/import/i18n/fr.translations.mjs +3 -2
  21. package/esm2022/import/import.module.mjs +7 -4
  22. package/esm2022/import/store/import.actions.mjs +1 -1
  23. package/esm2022/import/store/import.effects.mjs +2 -2
  24. package/esm2022/import/store/import.service.mjs +3 -2
  25. package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +9 -9
  26. package/esm2022/lib/core/i18n/en.translations.mjs +4 -2
  27. package/esm2022/lib/core/i18n/fr.translations.mjs +4 -2
  28. package/esm2022/lib/core/model/admin-api.model.mjs +66 -14
  29. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  30. package/esm2022/lib/core/store/field/field.interface.mjs +10 -1
  31. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -3
  32. package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +17 -1
  33. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +2 -1
  34. package/esm2022/lib/dashboard/components/dashboard.component.mjs +5 -5
  35. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +9 -3
  36. package/esm2022/lib/dashboard/public-api.mjs +2 -2
  37. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +6 -2
  38. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +20 -13
  39. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +11 -2
  40. package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +4 -2
  41. package/esm2022/lib/dashboard/store/manifest.service.mjs +11 -1
  42. package/esm2022/lib/dashboard/store/wms.service.mjs +54 -0
  43. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +25 -13
  44. package/esm2022/pipeline/pipeline.module.mjs +8 -4
  45. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +19 -3
  46. package/esm2022/presentation/presentation.module.mjs +8 -4
  47. package/esm2022/presentation/style/css.component.mjs +2 -2
  48. package/esm2022/supervision/store/supervision.reducer.mjs +2 -7
  49. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +35 -3
  50. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +99 -39
  51. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +3 -2
  52. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +3 -2
  53. package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +3 -4
  54. package/esm2022/widgets/widget-map/public-api.mjs +1 -2
  55. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +14 -8
  56. package/esm2022/widgets/widget-map/utils/xml-utils.class.mjs +20 -1
  57. package/fesm2022/provoly-dashboard-admin.mjs +81 -33
  58. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  59. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +29 -8
  60. package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
  61. package/fesm2022/provoly-dashboard-dataset.mjs +3 -2
  62. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  63. package/fesm2022/provoly-dashboard-import.mjs +23 -10
  64. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-pipeline.mjs +27 -11
  66. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-presentation.mjs +26 -7
  68. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard-supervision.mjs +1 -6
  70. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  71. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +380 -323
  72. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  73. package/fesm2022/provoly-dashboard.mjs +266 -133
  74. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  75. package/import/components/import.component.d.ts +1 -0
  76. package/import/i18n/en.translations.d.ts +1 -0
  77. package/import/i18n/fr.translations.d.ts +1 -0
  78. package/import/import.module.d.ts +2 -1
  79. package/import/store/import.actions.d.ts +2 -0
  80. package/import/store/import.service.d.ts +1 -1
  81. package/lib/core/components/translate-id/translate-id.pipe.d.ts +1 -1
  82. package/lib/core/i18n/en.translations.d.ts +2 -0
  83. package/lib/core/i18n/fr.translations.d.ts +2 -0
  84. package/lib/core/model/admin-api.model.d.ts +1 -0
  85. package/lib/core/model/widget-map-manifest.interface.d.ts +12 -1
  86. package/lib/core/store/field/field.interface.d.ts +1 -0
  87. package/lib/core/symbol/symbol.service.d.ts +1 -1
  88. package/lib/dashboard/components/dashboard.component.d.ts +1 -1
  89. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
  90. package/lib/dashboard/public-api.d.ts +1 -1
  91. package/lib/dashboard/store/dashboard.actions.d.ts +31 -0
  92. package/lib/dashboard/store/dashboard.effects.d.ts +9 -3
  93. package/lib/dashboard/store/dashboard.reducers.d.ts +4 -0
  94. package/lib/dashboard/store/dashboard.selectors.d.ts +5 -0
  95. package/lib/dashboard/store/manifest.service.d.ts +2 -0
  96. package/{widgets/widget-map/component → lib/dashboard/store}/wms.service.d.ts +4 -4
  97. package/package.json +30 -30
  98. package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -0
  99. package/pipeline/pipeline.module.d.ts +2 -1
  100. package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +3 -0
  101. package/presentation/presentation.module.d.ts +2 -1
  102. package/presentation/style/_o-pry-new-presentation.scss +18 -5
  103. package/schematics/migration.json +5 -0
  104. package/schematics/ng-update/utils/replaceStrings.function.d.ts +7 -0
  105. package/schematics/ng-update/utils/replaceStrings.function.js +15 -0
  106. package/schematics/ng-update/utils/replaceStrings.function.js.map +1 -0
  107. package/schematics/ng-update/version-0-13/index.spec.js +11 -0
  108. package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
  109. package/schematics/ng-update/version-0-14/index.d.ts +2 -0
  110. package/schematics/ng-update/version-0-14/index.js +49 -0
  111. package/schematics/ng-update/version-0-14/index.js.map +1 -0
  112. package/schematics/ng-update/version-0-14/index.spec.d.ts +1 -0
  113. package/schematics/ng-update/version-0-14/index.spec.js +51 -0
  114. package/schematics/ng-update/version-0-14/index.spec.js.map +1 -0
  115. package/styles/components/_m-context-menu.scss +4 -0
  116. package/styles/components/_o-pry-admin-classes-customize.scss +48 -0
  117. package/widgets/widget-map/component/widget-map-layer.service.d.ts +6 -1
  118. package/widgets/widget-map/component/widget-map.component.d.ts +14 -9
  119. package/widgets/widget-map/i18n/en.translations.d.ts +1 -0
  120. package/widgets/widget-map/i18n/fr.translations.d.ts +1 -0
  121. package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +4 -3
  122. package/widgets/widget-map/public-api.d.ts +0 -1
  123. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -5
  124. package/widgets/widget-map/utils/xml-utils.class.d.ts +1 -0
  125. package/esm2022/lib/dashboard/store/geocoding.service.mjs +0 -44
  126. package/esm2022/widgets/widget-map/component/wms.service.mjs +0 -67
  127. package/lib/dashboard/store/geocoding.service.d.ts +0 -56
@@ -11,6 +11,7 @@ export declare class PryImportComponent implements OnDestroy {
11
11
  datasetSelected?: string;
12
12
  selectedFileType: FileExtension;
13
13
  loading$: Observable<boolean>;
14
+ normalizeGeoShape: boolean;
14
15
  fileTypes: {
15
16
  label: string;
16
17
  value: FileExtension;
@@ -24,6 +24,7 @@ export declare const enTranslations: {
24
24
  CAST: string;
25
25
  ELASTIC_SEARCH: string;
26
26
  };
27
+ normalize: string;
27
28
  };
28
29
  };
29
30
  };
@@ -25,6 +25,7 @@ export declare const frTranslations: {
25
25
  CAST: string;
26
26
  ELASTIC_SEARCH: string;
27
27
  };
28
+ normalize: string;
28
29
  };
29
30
  };
30
31
  };
@@ -8,10 +8,11 @@ import * as i5 from "@angular/forms";
8
8
  import * as i6 from "./import-routing.module";
9
9
  import * as i7 from "@ngrx/store";
10
10
  import * as i8 from "@ngrx/effects";
11
+ import * as i9 from "@provoly/dashboard/components/checkbox";
11
12
  export declare class PryImportModule {
12
13
  private pryTranslateService;
13
14
  constructor(pryTranslateService: PryI18nService);
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<PryImportModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryImportModule, [typeof i1.PryImportComponent, typeof i2.PryImportCssComponent], [typeof i3.PryCoreModule, typeof i3.PrySelectModule, typeof i3.PryI18nModule, typeof i4.CommonModule, typeof i3.PryIconModule, typeof i5.FormsModule, typeof i6.PryImportRoutingModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule], [typeof i1.PryImportComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryImportModule, [typeof i1.PryImportComponent, typeof i2.PryImportCssComponent], [typeof i3.PryCoreModule, typeof i3.PrySelectModule, typeof i3.PryI18nModule, typeof i4.CommonModule, typeof i3.PryIconModule, typeof i5.FormsModule, typeof i6.PryImportRoutingModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i9.PryCheckboxModule], [typeof i1.PryImportComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<PryImportModule>;
17
18
  }
@@ -4,10 +4,12 @@ export declare const ImportActions: {
4
4
  file: File;
5
5
  dataset: string;
6
6
  fileType: string;
7
+ normalizeGeo?: boolean | undefined;
7
8
  }) => {
8
9
  file: File;
9
10
  dataset: string;
10
11
  fileType: string;
12
+ normalizeGeo?: boolean | undefined;
11
13
  } & import("@ngrx/store/src/models").TypedAction<"[Import] import data">>;
12
14
  uploadSuccess: import("@ngrx/store").ActionCreator<"[Import] import data successful", (props: {
13
15
  uploadedDataset: Partial<DatasetVersion>;
@@ -6,7 +6,7 @@ export declare class ImportService {
6
6
  private httpClient;
7
7
  private store;
8
8
  constructor(httpClient: HttpClient, store: Store<any>);
9
- upload(file: File, datasetId: string, fileType: string): import("rxjs").Observable<Partial<DatasetVersion>>;
9
+ upload(file: File, datasetId: string, fileType: string, normalizeGeo?: boolean): import("rxjs").Observable<Partial<DatasetVersion>>;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ImportService, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<ImportService>;
12
12
  }
@@ -14,7 +14,7 @@ export declare class TranslateIdPipe implements PipeTransform {
14
14
  private imageService;
15
15
  private symbolService;
16
16
  constructor(store: Store<any>, translateService: PryI18nService, imageService: ImageService, symbolService: SymbolService);
17
- transform(value: string | string[], ...args: unknown[]): Observable<string | string[] | SafeUrl>;
17
+ transform(value: string | string[], ...args: unknown[]): Observable<string | string[] | SafeUrl | null>;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TranslateIdPipe, never>;
19
19
  static ɵpipe: i0.ɵɵPipeDeclaration<TranslateIdPipe, "translateId", false>;
20
20
  }
@@ -90,6 +90,7 @@ export declare const enTranslations: {
90
90
  heatmap: string;
91
91
  bubblemap: string;
92
92
  markermap: string;
93
+ simplemap: string;
93
94
  map: string;
94
95
  table: string;
95
96
  detail: string;
@@ -213,6 +214,7 @@ export declare const enTranslations: {
213
214
  next: string;
214
215
  back: string;
215
216
  filterByType: string;
217
+ editMetadata: string;
216
218
  };
217
219
  snack: {
218
220
  default: string;
@@ -90,6 +90,7 @@ export declare const frTranslations: {
90
90
  heatmap: string;
91
91
  bubblemap: string;
92
92
  markermap: string;
93
+ simplemap: string;
93
94
  map: string;
94
95
  table: string;
95
96
  detail: string;
@@ -213,6 +214,7 @@ export declare const frTranslations: {
213
214
  next: string;
214
215
  back: string;
215
216
  filterByType: string;
217
+ editMetadata: string;
216
218
  };
217
219
  snack: {
218
220
  default: string;
@@ -56,6 +56,7 @@ export interface AttributeExtended {
56
56
  export interface FieldOption {
57
57
  varType: FieldType;
58
58
  translation: string;
59
+ description: string;
59
60
  }
60
61
  export declare const FIELD_OPTIONS: FieldOption[];
61
62
  export interface MetadataUser {
@@ -13,8 +13,10 @@ export interface MapWidgetOptions {
13
13
  attributions?: boolean;
14
14
  tooltipMode?: TooltipMode;
15
15
  singleLayer?: boolean;
16
+ ignoreAutoLayer?: string[];
17
+ automaticLayers?: boolean;
16
18
  }
17
- export type MapWidgetLayerOptions = MapWidgetHeatMapLayerOptions | MapWidgetMarkerLayerOptions | MapWidgetBubbleLayerOptions | MapWidgetRelationLayerOptions | MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapGeoServerLayerOptions | MapWMTSLayerLayerOptions | MapWidgetGeometryLayerOptions;
19
+ export type MapWidgetLayerOptions = MapWidgetHeatMapLayerOptions | MapWidgetMarkerLayerOptions | MapWidgetBubbleLayerOptions | MapWidgetRelationLayerOptions | MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapGeoServerLayerOptions | MapAutoLayerOptions | MapWMTSLayerLayerOptions | MapWidgetGeometryLayerOptions;
18
20
  export interface BaseWidgetMapLayerOptions {
19
21
  type: string;
20
22
  attribution?: string;
@@ -61,6 +63,7 @@ export interface MapWMSLayerLayerOptions extends BaseWidgetMapLayerOptions {
61
63
  paramLayer: string;
62
64
  paramTiled: boolean;
63
65
  oClass: string;
66
+ getFeatureInfoAdditionalParameters?: any;
64
67
  }
65
68
  export interface MapWMTSLayerLayerOptions extends BaseWidgetMapLayerOptions {
66
69
  type: 'wmts';
@@ -92,6 +95,14 @@ export interface MapGeoServerLayerOptions extends BaseWidgetMapLayerOptions {
92
95
  namespace: string;
93
96
  name: string;
94
97
  }
98
+ export interface MapAutoLayerOptions extends BaseWidgetMapLayerOptions {
99
+ type: 'auto';
100
+ oClass: string;
101
+ key: string;
102
+ subType: string;
103
+ attribute: string;
104
+ classes?: string[];
105
+ }
95
106
  export declare enum TooltipMode {
96
107
  CLICK = "click",
97
108
  NONE = "none"
@@ -21,3 +21,4 @@ export interface Field {
21
21
  name: string;
22
22
  type: FieldType;
23
23
  }
24
+ export declare const GeometricFieldTypes: string[];
@@ -30,7 +30,7 @@ export declare class SymbolService {
30
30
  recursiveRuleMatches(definition: IconOptions[]): string[];
31
31
  private generateImageForRuleMatch;
32
32
  getSymbol(item: Item, bordered?: boolean): Promise<HTMLCanvasElement>;
33
- getSymbolOfClass(id: string): Promise<SafeUrl>;
33
+ getSymbolOfClass(id: string, noDefault?: boolean): Promise<SafeUrl | null>;
34
34
  downloadAsUrl(url: string): Promise<string>;
35
35
  getSymbolAsIconStyle(item: Item, bordered?: boolean): Promise<Style>;
36
36
  cache: {
@@ -2,11 +2,11 @@ import { Overlay } from '@angular/cdk/overlay';
2
2
  import { AfterViewInit, ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { DisplayOptions } from '../../core/model/display-options.interface';
5
6
  import { DashboardGridLayout, DashboardManifest, WidgetLayout, WidgetManifest } from '../../core/model/manifest.interface';
6
7
  import { DashboardCellParams } from '../store/dashboard.actions';
7
8
  import { SubscriptionnerDirective } from './subscriptionner.directive';
8
9
  import { BaseWidgetComponent } from './widgets/base-widget.component';
9
- import { DisplayOptions } from '../../core/model/display-options.interface';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare const MIME_TYPE_WIDGET_MANIFEST = "application/widget-manifest";
12
12
  export declare const MIME_TYPE_WIDGET_TYPE = "application/widget-type-";
@@ -4,7 +4,7 @@ import { Store } from '@ngrx/store';
4
4
  import { BehaviorSubject, Observable, Subscription } from 'rxjs';
5
5
  import { DashboardGridLayout, DashboardManifest, WidgetManifest } from '../../../../core/model/manifest.interface';
6
6
  import { Widget } from '../../../../core/model/widget.interface';
7
- import { DataSource } from '../../../../core/store/data-source/data-source.model';
7
+ import { Dataset, DataSource, NamedQuery } from '../../../../core/store/data-source/data-source.model';
8
8
  import { LibraryTypes } from '../../../../core/store/image/image.service';
9
9
  import { ToolboxMenuService } from '../../../../core/toolbox/toolbox-menu.service';
10
10
  import { SubscriptionnerDirective } from '../../subscriptionner.directive';
@@ -99,6 +99,8 @@ export declare class PryWidgetHeaderComponent extends SubscriptionnerDirective {
99
99
  focusInputCatalog(): void;
100
100
  disableValidation(): void;
101
101
  datasourcesChanged($event: DataSource[]): void;
102
+ isGeo(ds: NamedQuery | Dataset): boolean;
103
+ protected readonly DEFAULT_ICON_URL = "/assets/svgs/default.svg";
102
104
  static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetHeaderComponent, never>;
103
105
  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>;
104
106
  }
@@ -12,7 +12,7 @@ export * from './store/title.service';
12
12
  export * from './store/dashboard.actions';
13
13
  export * from './store/dashboard.selectors';
14
14
  export * from './store/dashboard.reducers';
15
- export * from './store/geocoding.service';
15
+ export * from './store/wms.service';
16
16
  export * from './store/manifest.service';
17
17
  export * from './store/manifest-utils.class';
18
18
  export * from './guard/default-view.guard';
@@ -7,6 +7,7 @@ import { DashboardGridLayout, DashboardManifest, GlobalManifest, ManifestDescrip
7
7
  import { Relation } from '../../core/model/relation.interface';
8
8
  import { OrderValue } from '../../core/model/result-order.interface';
9
9
  import { ResultSet, ResultSets } from '../../core/model/result-set.interface';
10
+ import { GetCapabilitiesResponse } from './wms.service';
10
11
  export type DashboardCellParams = {
11
12
  gridWidth: number;
12
13
  gridHeight: number;
@@ -452,4 +453,34 @@ export declare const DashboardActions: {
452
453
  mode: DisplayMode;
453
454
  customDisplay?: DisplayOptions | undefined;
454
455
  } & import("@ngrx/store/src/models").TypedAction<"[Dashboard/Display] Update displayed dashboard management features">>;
456
+ getCapability: import("@ngrx/store").ActionCreator<"[Widget map] Get Wms capability", (props: {
457
+ url: string;
458
+ force?: boolean | undefined;
459
+ }) => {
460
+ url: string;
461
+ force?: boolean | undefined;
462
+ } & import("@ngrx/store/src/models").TypedAction<"[Widget map] Get Wms capability">>;
463
+ updateCapability: import("@ngrx/store").ActionCreator<"[Widget map] Store Wms capability", (props: {
464
+ url: string;
465
+ capability: GetCapabilitiesResponse | null;
466
+ }) => {
467
+ url: string;
468
+ capability: GetCapabilitiesResponse | null;
469
+ } & import("@ngrx/store/src/models").TypedAction<"[Widget map] Store Wms capability">>;
470
+ addManifestMetadata: import("@ngrx/store").ActionCreator<"[Dashboard] Add manifest metadata", (props: {
471
+ presentationId: string;
472
+ metadataId: string;
473
+ value: string;
474
+ }) => {
475
+ presentationId: string;
476
+ metadataId: string;
477
+ value: string;
478
+ } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] Add manifest metadata">>;
479
+ deleteManifestMetadata: import("@ngrx/store").ActionCreator<"[Dashboard] Add manifest metadata", (props: {
480
+ presentationId: string;
481
+ metadataId: string;
482
+ }) => {
483
+ presentationId: string;
484
+ metadataId: string;
485
+ } & import("@ngrx/store/src/models").TypedAction<"[Dashboard] Add manifest metadata">>;
455
486
  };
@@ -10,10 +10,10 @@ import { SearchService } from '../../core/store/search/search.service';
10
10
  import { ToolboxManifestService } from '../../core/toolbox/toolbox-manifest.service';
11
11
  import { BusService } from '../action-bus/service/bus.service';
12
12
  import { DashboardInitService } from './dashboard-init.service';
13
- import { GeocodingService } from './geocoding.service';
14
13
  import { ManifestService } from './manifest.service';
15
14
  import { RefreshService } from './refresh.service';
16
15
  import { PryTitleService } from './title.service';
16
+ import { WmsService } from './wms.service';
17
17
  import * as i0 from "@angular/core";
18
18
  export declare class DashboardEffects {
19
19
  private dashboardInitService;
@@ -25,12 +25,12 @@ export declare class DashboardEffects {
25
25
  private translateService;
26
26
  private snackBar;
27
27
  private router;
28
- private geocodingService;
29
28
  private refreshService;
30
29
  private toolboxManifestService;
31
30
  private busService;
32
31
  private searchService;
33
32
  private pryDialog;
33
+ private wmsService;
34
34
  join$: import("rxjs").Observable<{
35
35
  tenants?: string[] | undefined;
36
36
  manifest: GlobalManifest;
@@ -217,10 +217,16 @@ export declare class DashboardEffects {
217
217
  updateViewAfterFilterValueUpdate$: import("rxjs").Observable<{
218
218
  id: string;
219
219
  } & import("@ngrx/store/src/models").TypedAction<"[Search] (bus) search named">> & import("@ngrx/effects").CreateEffectMetadata;
220
+ getCapability$: import("rxjs").Observable<{
221
+ url: string;
222
+ capability: import("./wms.service").GetCapabilitiesResponse | null;
223
+ } & import("@ngrx/store/src/models").TypedAction<"[Widget map] Store Wms capability">> & import("@ngrx/effects").CreateEffectMetadata;
220
224
  getWmsFeatures: import("rxjs").Observable<{
221
225
  features: any;
222
226
  } & import("@ngrx/store/src/models").TypedAction<"[Widget map] Set Wms layer features">> & import("@ngrx/effects").CreateEffectMetadata;
223
- constructor(dashboardInitService: DashboardInitService, actions$: Actions, store: Store<any>, manifestService: ManifestService, itemService: ItemService, titleService: PryTitleService, translateService: PryI18nService, snackBar: PrySnackbarService, router: Router, geocodingService: GeocodingService, refreshService: RefreshService, toolboxManifestService: ToolboxManifestService, busService: BusService, searchService: SearchService, pryDialog: PryDialogService);
227
+ addManifestMetadata: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) fetching available manifests">> & import("@ngrx/effects").CreateEffectMetadata;
228
+ deleteManifestMetadata: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) fetching available manifests">> & import("@ngrx/effects").CreateEffectMetadata;
229
+ constructor(dashboardInitService: DashboardInitService, actions$: Actions, store: Store<any>, manifestService: ManifestService, itemService: ItemService, titleService: PryTitleService, translateService: PryI18nService, snackBar: PrySnackbarService, router: Router, refreshService: RefreshService, toolboxManifestService: ToolboxManifestService, busService: BusService, searchService: SearchService, pryDialog: PryDialogService, wmsService: WmsService);
224
230
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardEffects, never>;
225
231
  static ɵprov: i0.ɵɵInjectableDeclaration<DashboardEffects>;
226
232
  }
@@ -5,6 +5,7 @@ import { GlobalManifest, ManifestDescription } from '../../core/model/manifest.i
5
5
  import { ResultOrder } from '../../core/model/result-order.interface';
6
6
  import { ResultSets } from '../../core/model/result-set.interface';
7
7
  import { DashboardCellParams, ViewMode } from './dashboard.actions';
8
+ import { GetCapabilitiesResponse } from './wms.service';
8
9
  export declare const dashboardFeatureKey = "@pry/dashboard";
9
10
  export interface DashboardState {
10
11
  manifests: {
@@ -42,6 +43,9 @@ export interface DashboardState {
42
43
  };
43
44
  wmsFeatures: any[];
44
45
  display?: DisplayOptions;
46
+ capabilities: {
47
+ [url: string]: GetCapabilitiesResponse | null;
48
+ };
45
49
  }
46
50
  export declare const dashboardInitialState: DashboardState;
47
51
  export declare function dashboardReducer(state: DashboardState, action: Action): DashboardState;
@@ -339,4 +339,9 @@ export declare const DashboardSelectors: {
339
339
  }>;
340
340
  wmsFeatures: MemoizedSelector<object, any[], (s1: DashboardState) => any[]>;
341
341
  displayOptions: MemoizedSelector<object, import("@provoly/dashboard").DisplayOptions | undefined, (s1: DashboardState) => import("@provoly/dashboard").DisplayOptions | undefined>;
342
+ capabilities: MemoizedSelector<object, {
343
+ [url: string]: import("@provoly/dashboard").GetCapabilitiesResponse | null;
344
+ }, (s1: DashboardState) => {
345
+ [url: string]: import("@provoly/dashboard").GetCapabilitiesResponse | null;
346
+ }>;
342
347
  };
@@ -21,6 +21,8 @@ export declare class ManifestService {
21
21
  }>;
22
22
  delete(id: string): Observable<void>;
23
23
  default(id: string): Observable<boolean>;
24
+ addMetadata(presentationId: string, metadataId: string, value: string): Observable<void>;
25
+ deleteMetadata(presentationId: string, metadataId: string): Observable<void>;
24
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ManifestService, never>;
25
27
  static ɵprov: i0.ɵɵInjectableDeclaration<ManifestService>;
26
28
  }
@@ -1,18 +1,18 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { MapGeoServerLayerOptions, MapWMSLayerLayerOptions } from '@provoly/dashboard';
3
2
  import { Observable } from 'rxjs';
4
3
  import * as i0 from "@angular/core";
5
4
  export type GetCapabilitiesResponse = {
6
5
  url: string;
7
- paramLayer: string;
8
6
  doc: Document;
9
7
  };
10
8
  export declare class WmsService {
11
9
  private httpClient;
12
10
  parser: DOMParser;
13
11
  constructor(httpClient: HttpClient);
14
- getCapabilities(wmsLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions): Observable<GetCapabilitiesResponse | null>;
15
- static getMatchingLayer(paramLayer: string, doc: Document): ChildNode | null;
12
+ getCapabilities(url: string): Observable<GetCapabilitiesResponse | null>;
13
+ getWmsFeatures(url: string): Observable<{
14
+ features: any[];
15
+ }>;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<WmsService, never>;
17
17
  static ɵprov: i0.ɵɵInjectableDeclaration<WmsService>;
18
18
  }
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.14.5",
3
+ "version": "0.14.7",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
- "@angular/common": "15.x || 16.x",
7
6
  "@angular/cdk": "14.x || 15.x || 16.x",
7
+ "@angular/common": "15.x || 16.x",
8
8
  "@angular/core": "15.x || 16.x",
9
- "@angular/router": "15.x || 16.x",
10
9
  "@angular/platform-browser": "15.x || 16.x",
10
+ "@angular/router": "15.x || 16.x",
11
+ "@ng-select/ng-select": "9.x || 10.x || 11.x",
11
12
  "@ngrx/effects": "16.x",
12
13
  "@ngrx/entity": "16.x",
13
14
  "@ngrx/store": "16.x",
14
- "@ng-select/ng-select": "9.x || 10.x || 11.x",
15
- "uuid": "^8.3.2 || ^9.0.0",
16
- "fast-deep-equal": "3.1.3",
17
15
  "buffer": "^6.0.0",
18
16
  "css-element-queries": "^1.2.3",
19
17
  "d3-drag": "^3.0.0",
20
18
  "d3-force": "^3.0.0",
21
19
  "d3-selection": "^3.0.0",
20
+ "fast-deep-equal": "3.1.3",
22
21
  "litegraph.js": "^0.7.10",
23
22
  "ol": "^7.0.0",
24
23
  "ol-mapbox-style": "^10.6.0",
25
24
  "proj4": "^2.9.0",
26
25
  "rxjs": "^7.4.0",
26
+ "uuid": "^8.3.2 || ^9.0.0",
27
27
  "vega": "^5.21.0",
28
28
  "vega-embed": "^6.20.5",
29
29
  "vega-lite": "^5.2.0",
@@ -140,6 +140,30 @@
140
140
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
141
141
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
142
142
  },
143
+ "./filters/date": {
144
+ "types": "./filters/date/index.d.ts",
145
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
146
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
147
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
148
+ },
149
+ "./filters/list": {
150
+ "types": "./filters/list/index.d.ts",
151
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
152
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
153
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
154
+ },
155
+ "./filters/number": {
156
+ "types": "./filters/number/index.d.ts",
157
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
158
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
159
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
160
+ },
161
+ "./filters/text": {
162
+ "types": "./filters/text/index.d.ts",
163
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
164
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
165
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
166
+ },
143
167
  "./components/card": {
144
168
  "types": "./components/card/index.d.ts",
145
169
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -182,30 +206,6 @@
182
206
  "esm": "./esm2022/components/stepper/provoly-dashboard-components-stepper.mjs",
183
207
  "default": "./fesm2022/provoly-dashboard-components-stepper.mjs"
184
208
  },
185
- "./filters/date": {
186
- "types": "./filters/date/index.d.ts",
187
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
188
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
189
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
190
- },
191
- "./filters/list": {
192
- "types": "./filters/list/index.d.ts",
193
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
194
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
195
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
196
- },
197
- "./filters/number": {
198
- "types": "./filters/number/index.d.ts",
199
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
200
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
201
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
202
- },
203
- "./filters/text": {
204
- "types": "./filters/text/index.d.ts",
205
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
206
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
207
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
208
- },
209
209
  "./pipeline-components/filter": {
210
210
  "types": "./pipeline-components/filter/index.d.ts",
211
211
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.mjs",
@@ -38,6 +38,7 @@ export declare class PryPipelineListComponent {
38
38
  savePipeline(transfo: PryTransfo): void;
39
39
  disableSelectedTranso(): void;
40
40
  focusElement(element: HTMLButtonElement): void;
41
+ navigateContextMenu(button: HTMLButtonElement, nextButton: HTMLButtonElement): void;
41
42
  protected readonly ExecutionState: typeof ExecutionState;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPipelineListComponent, never>;
43
44
  static ɵcmp: i0.ɵɵComponentDeclaration<PryPipelineListComponent, "pry-pipeline-list", never, {}, {}, never, never, false, never>;
@@ -11,10 +11,11 @@ import * as i8 from "@ngrx/effects";
11
11
  import * as i9 from "@angular/forms";
12
12
  import * as i10 from "@provoly/dashboard/components/sinceDate";
13
13
  import * as i11 from "@angular/cdk/overlay";
14
+ import * as i12 from "@angular/cdk/a11y";
14
15
  export declare class PryPipelineModule {
15
16
  private pryTranslateService;
16
17
  constructor(pryTranslateService: PryI18nService);
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPipelineModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<PryPipelineModule, [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent], [typeof i5.CommonModule, typeof i6.PryCoreModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i6.PryIconModule, typeof i6.PryI18nModule, typeof i6.PrySortModule, typeof i9.FormsModule, typeof i6.PryToggleModule, typeof i10.PrySinceDateModule, typeof i9.ReactiveFormsModule, typeof i11.OverlayModule], [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent]>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PryPipelineModule, [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent], [typeof i5.CommonModule, typeof i6.PryCoreModule, typeof i7.StoreFeatureModule, typeof i8.EffectsFeatureModule, typeof i6.PryIconModule, typeof i6.PryI18nModule, typeof i6.PrySortModule, typeof i9.FormsModule, typeof i6.PryToggleModule, typeof i10.PrySinceDateModule, typeof i9.ReactiveFormsModule, typeof i11.OverlayModule, typeof i12.A11yModule], [typeof i1.PryPipelineEditorComponent, typeof i2.PryPipelineCssComponent, typeof i3.PryPipelineListComponent, typeof i4.PryPipelineDetailsComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPipelineModule>;
20
21
  }
@@ -4,6 +4,7 @@ import { Router } from '@angular/router';
4
4
  import { Store } from '@ngrx/store';
5
5
  import { GlobalManifest, LibraryTypes, ManifestDescription, SubscriptionnerDirective } from '@provoly/dashboard';
6
6
  import { Observable } from 'rxjs';
7
+ import { MetaEventType } from '@provoly/dashboard/components/metadata-editor';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class PryAddEditPresentationComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit {
9
10
  private store;
@@ -22,6 +23,8 @@ export declare class PryAddEditPresentationComponent extends SubscriptionnerDire
22
23
  ngAfterViewInit(): void;
23
24
  save(): void;
24
25
  configureDashboard(selectedPresentation: ManifestDescription): void;
26
+ addMetadata(metadata: MetaEventType): void;
27
+ removeMetadata(metadata: MetaEventType): void;
25
28
  close(): void;
26
29
  static ɵfac: i0.ɵɵFactoryDeclaration<PryAddEditPresentationComponent, [null, { optional: true; }]>;
27
30
  static ɵcmp: i0.ɵɵComponentDeclaration<PryAddEditPresentationComponent, "pry-add-edit-presentation", never, { "selectedPresentation": { "alias": "selectedPresentation"; "required": false; }; "edition": { "alias": "edition"; "required": false; }; "editionStartUrl": { "alias": "editionStartUrl"; "required": false; }; }, { "goBack": "goBack"; }, never, never, false, never>;
@@ -11,10 +11,11 @@ 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
13
  import * as i11 from "@angular/cdk/a11y";
14
+ import * as i12 from "@provoly/dashboard/components/metadata-editor";
14
15
  export declare class PryPresentationModule {
15
16
  private pryTranslateService;
16
17
  constructor(pryTranslateService: PryI18nService);
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PryPresentationModule, never>;
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]>;
19
+ 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 i12.PryExpandPanelModule], [typeof i1.PryPresentationComponent, typeof i2.PryAddEditPresentationComponent, typeof i3.PryTitlePresentationComponent, typeof i4.PryPresentationCssComponent]>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<PryPresentationModule>;
20
21
  }
@@ -6,8 +6,20 @@ pry-add-edit-presentation {
6
6
  }
7
7
 
8
8
  .o-manifest-layout__content {
9
+ display: flex;
10
+ flex-direction: column;
9
11
  padding: 20px 20px;
10
12
  text-align: left;
13
+
14
+ .a-h1 {
15
+ line-height: 38px;
16
+ font-size: 28px;
17
+ text-align: left;
18
+ }
19
+
20
+ .a-btn {
21
+ margin: 0 auto;
22
+ }
11
23
  }
12
24
 
13
25
  .o-manifest-layout__toolbox {
@@ -23,19 +35,20 @@ pry-add-edit-presentation {
23
35
  }
24
36
 
25
37
  .o-presentation-form-wrapper {
38
+ display: flex;
26
39
  padding-bottom: toRem(5);
40
+ gap: 3rem;
41
+ }
27
42
 
28
- .a-h1 {
29
- line-height: 38px;
30
- font-size: 28px;
31
- text-align: left;
32
- }
43
+ .o-presentation__metadata-editor {
44
+ flex: 1 50%;
33
45
  }
34
46
 
35
47
  .o-presentation-form {
36
48
  display: flex;
37
49
  flex-direction: column;
38
50
  align-items: center;
51
+ flex: 1 50%;
39
52
 
40
53
  .a-presentation-form-input {
41
54
  padding: 0.25rem 0.75rem;
@@ -5,6 +5,11 @@
5
5
  "version": "0.13",
6
6
  "description": "Update library to version 0.13",
7
7
  "factory": "./ng-update/version-0-13/index#updateTo0_13"
8
+ },
9
+ "migration-v0.14": {
10
+ "version": "0.14",
11
+ "description": "Update library to version 0.14",
12
+ "factory": "./ng-update/version-0-14/index#updateTo0_14"
8
13
  }
9
14
  }
10
15
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ import { Tree } from '@angular-devkit/schematics';
3
+ import { Path } from '@angular-devkit/core';
4
+ export declare function replaceStrings(tree: Tree, path: Path, buffer: Buffer | null, values: {
5
+ searchValue: string | RegExp;
6
+ replaceValue: string;
7
+ }[]): void;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceStrings = void 0;
4
+ function replaceStrings(tree, path, buffer, values) {
5
+ if (values.length === 0)
6
+ return;
7
+ const value = values.pop();
8
+ if (buffer)
9
+ tree.overwrite(path, buffer.toString().replace(value.searchValue, value.replaceValue));
10
+ buffer = tree.read(path);
11
+ if (buffer)
12
+ replaceStrings(tree, path, buffer, values);
13
+ }
14
+ exports.replaceStrings = replaceStrings;
15
+ //# sourceMappingURL=replaceStrings.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceStrings.function.js","sourceRoot":"","sources":["../../../../../../projects/provoly/dashboard/schematics/ng-update/utils/replaceStrings.function.ts"],"names":[],"mappings":";;;AAGA,SAAgB,cAAc,CAC5B,IAAU,EACV,IAAU,EACV,MAAqB,EACrB,MAAgE;IAEhE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAChC,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IAC3B,IAAI,MAAM;QAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAM,CAAC,WAAW,EAAE,KAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IACrG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,IAAI,MAAM;QAAE,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACzD,CAAC;AAXD,wCAWC"}
@@ -170,5 +170,16 @@ describe(schematicName, () => {
170
170
  expect(actual).not.toMatch(/DatasetMetadata/);
171
171
  expect(actual).toMatch(/MetadataValue/);
172
172
  }));
173
+ it(`should remove obsolete dependencies`, () => __awaiter(void 0, void 0, void 0, function* () {
174
+ if (tree.exists('/package.json')) {
175
+ yield runner.runSchematic('migration-v0.13', {}, tree);
176
+ const actual = tree.readContent('/package.json');
177
+ expect(actual).not.toMatch(/ol-layerswitcher/);
178
+ expect(actual).not.toMatch(/geojson-to-kml/);
179
+ expect(actual).not.toMatch(/jszip/);
180
+ expect(actual).not.toMatch(/shpjs/);
181
+ expect(actual).not.toMatch(/@types\/shpjs/);
182
+ }
183
+ }));
173
184
  });
174
185
  //# sourceMappingURL=index.spec.js.map