@igo2/integration 1.10.0 → 1.11.0

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 (110) hide show
  1. package/bundles/igo2-integration.umd.js +620 -435
  2. package/bundles/igo2-integration.umd.js.map +1 -1
  3. package/esm2015/lib/about/about-tool/about-tool.component.js +3 -3
  4. package/esm2015/lib/about/about-tool/index.js +1 -1
  5. package/esm2015/lib/about/about.module.js +1 -1
  6. package/esm2015/lib/about/index.js +1 -1
  7. package/esm2015/lib/analytics/analytics-listener.service.js +1 -1
  8. package/esm2015/lib/analytics/analytics.module.js +1 -1
  9. package/esm2015/lib/analytics/index.js +1 -1
  10. package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.js +1 -1
  11. package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.js +1 -1
  12. package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.component.js +1 -1
  13. package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.module.js +1 -1
  14. package/esm2015/lib/catalog/catalog.module.js +1 -1
  15. package/esm2015/lib/catalog/catalog.state.js +1 -1
  16. package/esm2015/lib/catalog/index.js +1 -1
  17. package/esm2015/lib/context/context-editor-tool/context-editor-tool.component.js +1 -1
  18. package/esm2015/lib/context/context-manager-tool/context-manager-tool.component.js +1 -1
  19. package/esm2015/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.js +1 -1
  20. package/esm2015/lib/context/context-share-tool/context-share-tool.component.js +1 -1
  21. package/esm2015/lib/context/context.module.js +1 -1
  22. package/esm2015/lib/context/context.state.js +1 -1
  23. package/esm2015/lib/context/index.js +1 -1
  24. package/esm2015/lib/directions/directions-tool/directions-tool.component.js +17 -8
  25. package/esm2015/lib/directions/directions-tool/index.js +1 -1
  26. package/esm2015/lib/directions/directions.module.js +1 -1
  27. package/esm2015/lib/directions/directions.state.js +1 -1
  28. package/esm2015/lib/directions/index.js +1 -1
  29. package/esm2015/lib/draw/draw.module.js +1 -1
  30. package/esm2015/lib/draw/draw.state.js +1 -1
  31. package/esm2015/lib/draw/drawing-tool/drawing-tool.component.js +1 -1
  32. package/esm2015/lib/draw/index.js +1 -1
  33. package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.js +1 -1
  34. package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.js +1 -1
  35. package/esm2015/lib/filter/active-ogc-filter-tool/index.js +1 -1
  36. package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.js +1 -1
  37. package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.component.js +1 -1
  38. package/esm2015/lib/filter/active-time-filter-tool/index.js +1 -1
  39. package/esm2015/lib/filter/filter.module.js +1 -1
  40. package/esm2015/lib/filter/index.js +1 -1
  41. package/esm2015/lib/filter/ogc-filter-tool/index.js +1 -1
  42. package/esm2015/lib/filter/ogc-filter-tool/ogc-filter-tool.component.js +1 -1
  43. package/esm2015/lib/filter/spatial-filter-tool/index.js +1 -1
  44. package/esm2015/lib/filter/spatial-filter-tool/spatial-filter-tool.component.js +4 -1
  45. package/esm2015/lib/filter/time-filter-tool/index.js +1 -1
  46. package/esm2015/lib/filter/time-filter-tool/time-filter-tool.component.js +1 -1
  47. package/esm2015/lib/import-export/import-export-tool/import-export-tool.component.js +1 -1
  48. package/esm2015/lib/import-export/import-export-tool/index.js +1 -1
  49. package/esm2015/lib/import-export/import-export.module.js +1 -1
  50. package/esm2015/lib/import-export/import-export.state.js +1 -1
  51. package/esm2015/lib/import-export/index.js +1 -1
  52. package/esm2015/lib/integration.module.js +1 -1
  53. package/esm2015/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.js +1 -1
  54. package/esm2015/lib/map/advanced-map-tool/advanced-map-tool.component.js +1 -1
  55. package/esm2015/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.js +1 -1
  56. package/esm2015/lib/map/advanced-map-tool/index.js +1 -1
  57. package/esm2015/lib/map/index.js +1 -1
  58. package/esm2015/lib/map/layer-list-tool.state.js +1 -1
  59. package/esm2015/lib/map/map-details-tool/index.js +1 -1
  60. package/esm2015/lib/map/map-details-tool/map-details-tool.component.js +1 -1
  61. package/esm2015/lib/map/map-legend/index.js +1 -1
  62. package/esm2015/lib/map/map-legend/map-legend-tool.component.js +1 -1
  63. package/esm2015/lib/map/map-tool/index.js +1 -1
  64. package/esm2015/lib/map/map-tool/map-tool.component.js +1 -1
  65. package/esm2015/lib/map/map-tools/index.js +1 -1
  66. package/esm2015/lib/map/map-tools/map-tools.component.js +1 -1
  67. package/esm2015/lib/map/map.module.js +1 -1
  68. package/esm2015/lib/map/map.state.js +1 -1
  69. package/esm2015/lib/measure/index.js +1 -1
  70. package/esm2015/lib/measure/measure.module.js +1 -1
  71. package/esm2015/lib/measure/measure.state.js +1 -1
  72. package/esm2015/lib/measure/measurer-tool/measurer-tool.component.js +1 -1
  73. package/esm2015/lib/measure/measurer-tool/measurer-tool.module.js +1 -1
  74. package/esm2015/lib/print/index.js +1 -1
  75. package/esm2015/lib/print/print-tool/index.js +1 -1
  76. package/esm2015/lib/print/print-tool/print-tool.component.js +1 -1
  77. package/esm2015/lib/print/print.module.js +1 -1
  78. package/esm2015/lib/search/index.js +1 -1
  79. package/esm2015/lib/search/query.state.js +1 -1
  80. package/esm2015/lib/search/search-bar/search-bar-binding.directive.js +1 -1
  81. package/esm2015/lib/search/search-bar/search-bar.module.js +1 -1
  82. package/esm2015/lib/search/search-results-tool/search-results-tool.component.js +1 -1
  83. package/esm2015/lib/search/search-results-tool/search-results-tool.module.js +1 -1
  84. package/esm2015/lib/search/search.module.js +1 -1
  85. package/esm2015/lib/search/search.state.js +1 -1
  86. package/esm2015/lib/storage/index.js +1 -1
  87. package/esm2015/lib/storage/storage.module.js +1 -1
  88. package/esm2015/lib/storage/storage.state.js +1 -1
  89. package/esm2015/lib/tool/index.js +1 -1
  90. package/esm2015/lib/tool/tool.module.js +1 -1
  91. package/esm2015/lib/tool/tool.state.js +1 -1
  92. package/esm2015/lib/workspace/index.js +1 -1
  93. package/esm2015/lib/workspace/shared/edition-actions.service.js +157 -0
  94. package/esm2015/lib/workspace/shared/feature-actions.service.js +1 -1
  95. package/esm2015/lib/workspace/shared/index.js +1 -1
  96. package/esm2015/lib/workspace/shared/wfs-actions.service.js +1 -1
  97. package/esm2015/lib/workspace/shared/workspace.utils.js +1 -1
  98. package/esm2015/lib/workspace/workspace-button/index.js +1 -1
  99. package/esm2015/lib/workspace/workspace-button/workspace-button.component.js +1 -1
  100. package/esm2015/lib/workspace/workspace.module.js +1 -1
  101. package/esm2015/lib/workspace/workspace.state.js +22 -6
  102. package/esm2015/public_api.js +1 -1
  103. package/fesm2015/igo2-integration.js +337 -167
  104. package/fesm2015/igo2-integration.js.map +1 -1
  105. package/lib/directions/directions-tool/directions-tool.component.d.ts +6 -1
  106. package/lib/workspace/shared/edition-actions.service.d.ts +26 -0
  107. package/lib/workspace/shared/workspace.utils.d.ts +2 -2
  108. package/lib/workspace/workspace.state.d.ts +4 -1
  109. package/ngcc.config.js +3 -3
  110. package/package.json +3 -3
@@ -1,7 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { AuthService } from '@igo2/auth';
2
3
  import { LanguageService, MessageService, StorageService } from '@igo2/core';
3
4
  import { IgoMap, RoutesFeatureStore, StopsFeatureStore, StopsStore, StepFeatureStore } from '@igo2/geo';
4
5
  import { Subject } from 'rxjs';
6
+ import { ContextState } from '../../context/context.state';
5
7
  import { MapState } from '../../map/map.state';
6
8
  import { DirectionState } from '../directions.state';
7
9
  import * as i0 from "@angular/core";
@@ -11,6 +13,9 @@ export declare class DirectionsToolComponent implements OnInit {
11
13
  private languageService;
12
14
  private messageService;
13
15
  private storageService;
16
+ contextState: ContextState;
17
+ private authService;
18
+ currentContextUri: string;
14
19
  /**
15
20
  * stops
16
21
  * @internal
@@ -42,7 +47,7 @@ export declare class DirectionsToolComponent implements OnInit {
42
47
  * @internal
43
48
  */
44
49
  get map(): IgoMap;
45
- constructor(directionState: DirectionState, mapState: MapState, languageService: LanguageService, messageService: MessageService, storageService: StorageService);
50
+ constructor(directionState: DirectionState, mapState: MapState, languageService: LanguageService, messageService: MessageService, storageService: StorageService, contextState: ContextState, authService: AuthService);
46
51
  ngOnInit(): void;
47
52
  static ɵfac: i0.ɵɵFactoryDeclaration<DirectionsToolComponent, never>;
48
53
  static ɵcmp: i0.ɵɵComponentDeclaration<DirectionsToolComponent, "igo-directions-tool", never, {}, {}, never, never>;
@@ -0,0 +1,26 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Action, Widget } from '@igo2/common';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { EditionWorkspace } from '@igo2/geo';
5
+ import { StorageService, LanguageService, MediaService } from '@igo2/core';
6
+ import { StorageState } from '../../storage/storage.state';
7
+ import { ToolState } from '../../tool/tool.state';
8
+ import * as i0 from "@angular/core";
9
+ export declare class EditionActionsService implements OnDestroy {
10
+ private ogcFilterWidget;
11
+ private storageState;
12
+ languageService: LanguageService;
13
+ private mediaService;
14
+ private toolState;
15
+ maximize$: BehaviorSubject<boolean>;
16
+ zoomAuto$: BehaviorSubject<boolean>;
17
+ private storageChange$$;
18
+ get storageService(): StorageService;
19
+ get zoomAuto(): boolean;
20
+ constructor(ogcFilterWidget: Widget, storageState: StorageState, languageService: LanguageService, mediaService: MediaService, toolState: ToolState);
21
+ ngOnDestroy(): void;
22
+ loadActions(workspace: EditionWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): void;
23
+ buildActions(workspace: EditionWorkspace, rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>, selectOnlyCheckCondition$: BehaviorSubject<boolean>): Action[];
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditionActionsService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<EditionActionsService>;
26
+ }
@@ -1,2 +1,2 @@
1
- import { FeatureWorkspace, WfsWorkspace } from '@igo2/geo';
2
- export declare function handleZoomAuto(workspace: FeatureWorkspace | WfsWorkspace, storageService: any): void;
1
+ import { FeatureWorkspace, WfsWorkspace, EditionWorkspace } from '@igo2/geo';
2
+ export declare function handleZoomAuto(workspace: FeatureWorkspace | WfsWorkspace | EditionWorkspace, storageService: any): void;
@@ -4,6 +4,7 @@ import { Workspace, WorkspaceStore, Widget } from '@igo2/common';
4
4
  import { FeatureActionsService } from './shared/feature-actions.service';
5
5
  import { WfsActionsService } from './shared/wfs-actions.service';
6
6
  import { StorageService } from '@igo2/core';
7
+ import { EditionActionsService } from './shared/edition-actions.service';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Service that holds the state of the workspace module
@@ -11,6 +12,7 @@ import * as i0 from "@angular/core";
11
12
  export declare class WorkspaceState implements OnDestroy {
12
13
  private featureActionsService;
13
14
  private wfsActionsService;
15
+ private editionActionsService;
14
16
  private storageService;
15
17
  workspacePanelExpanded: boolean;
16
18
  readonly workspaceEnabled$: BehaviorSubject<boolean>;
@@ -35,7 +37,7 @@ export declare class WorkspaceState implements OnDestroy {
35
37
  */
36
38
  get store(): WorkspaceStore;
37
39
  private _store;
38
- constructor(featureActionsService: FeatureActionsService, wfsActionsService: WfsActionsService, storageService: StorageService);
40
+ constructor(featureActionsService: FeatureActionsService, wfsActionsService: WfsActionsService, editionActionsService: EditionActionsService, storageService: StorageService);
39
41
  /**
40
42
  * Initialize the workspace store. Each time a workspace is activated,
41
43
  * subscribe to it's active widget. Tracking the active widget is useful
@@ -44,6 +46,7 @@ export declare class WorkspaceState implements OnDestroy {
44
46
  private initWorkspaces;
45
47
  private setWorkspaceIsMaximized;
46
48
  setActiveWorkspaceById(id: string): void;
49
+ setActiveWorkspaceByTitle(title: string): void;
47
50
  /**
48
51
  * Teardown all the workspaces
49
52
  * @internal
package/ngcc.config.js CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- ignorableDeepImportMatchers: [/ol\//]
3
- };
1
+ module.exports = {
2
+ ignorableDeepImportMatchers: [/ol\//]
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/integration",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "IGO Library",
5
5
  "author": "MSP",
6
6
  "keywords": [
@@ -18,8 +18,8 @@
18
18
  "peerDependencies": {
19
19
  "@angular/common": "^12.2.9",
20
20
  "@angular/core": "^12.2.9",
21
- "@igo2/geo": "1.10.0",
22
- "@igo2/context": "1.10.0",
21
+ "@igo2/geo": "1.11.0",
22
+ "@igo2/context": "1.11.0",
23
23
  "rxjs": "^6.6.7"
24
24
  },
25
25
  "dependencies": {