@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.
- package/bundles/igo2-integration.umd.js +620 -435
- package/bundles/igo2-integration.umd.js.map +1 -1
- package/esm2015/lib/about/about-tool/about-tool.component.js +3 -3
- package/esm2015/lib/about/about-tool/index.js +1 -1
- package/esm2015/lib/about/about.module.js +1 -1
- package/esm2015/lib/about/index.js +1 -1
- package/esm2015/lib/analytics/analytics-listener.service.js +1 -1
- package/esm2015/lib/analytics/analytics.module.js +1 -1
- package/esm2015/lib/analytics/index.js +1 -1
- package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.component.js +1 -1
- package/esm2015/lib/catalog/catalog-browser-tool/catalog-browser-tool.module.js +1 -1
- package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.component.js +1 -1
- package/esm2015/lib/catalog/catalog-library-tool/catalog-library-tool.module.js +1 -1
- package/esm2015/lib/catalog/catalog.module.js +1 -1
- package/esm2015/lib/catalog/catalog.state.js +1 -1
- package/esm2015/lib/catalog/index.js +1 -1
- package/esm2015/lib/context/context-editor-tool/context-editor-tool.component.js +1 -1
- package/esm2015/lib/context/context-manager-tool/context-manager-tool.component.js +1 -1
- package/esm2015/lib/context/context-permission-manager-tool/context-permission-manager-tool.component.js +1 -1
- package/esm2015/lib/context/context-share-tool/context-share-tool.component.js +1 -1
- package/esm2015/lib/context/context.module.js +1 -1
- package/esm2015/lib/context/context.state.js +1 -1
- package/esm2015/lib/context/index.js +1 -1
- package/esm2015/lib/directions/directions-tool/directions-tool.component.js +17 -8
- package/esm2015/lib/directions/directions-tool/index.js +1 -1
- package/esm2015/lib/directions/directions.module.js +1 -1
- package/esm2015/lib/directions/directions.state.js +1 -1
- package/esm2015/lib/directions/index.js +1 -1
- package/esm2015/lib/draw/draw.module.js +1 -1
- package/esm2015/lib/draw/draw.state.js +1 -1
- package/esm2015/lib/draw/drawing-tool/drawing-tool.component.js +1 -1
- package/esm2015/lib/draw/index.js +1 -1
- package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.animation.js +1 -1
- package/esm2015/lib/filter/active-ogc-filter-tool/active-ogc-filter-tool.component.js +1 -1
- package/esm2015/lib/filter/active-ogc-filter-tool/index.js +1 -1
- package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.animation.js +1 -1
- package/esm2015/lib/filter/active-time-filter-tool/active-time-filter-tool.component.js +1 -1
- package/esm2015/lib/filter/active-time-filter-tool/index.js +1 -1
- package/esm2015/lib/filter/filter.module.js +1 -1
- package/esm2015/lib/filter/index.js +1 -1
- package/esm2015/lib/filter/ogc-filter-tool/index.js +1 -1
- package/esm2015/lib/filter/ogc-filter-tool/ogc-filter-tool.component.js +1 -1
- package/esm2015/lib/filter/spatial-filter-tool/index.js +1 -1
- package/esm2015/lib/filter/spatial-filter-tool/spatial-filter-tool.component.js +4 -1
- package/esm2015/lib/filter/time-filter-tool/index.js +1 -1
- package/esm2015/lib/filter/time-filter-tool/time-filter-tool.component.js +1 -1
- package/esm2015/lib/import-export/import-export-tool/import-export-tool.component.js +1 -1
- package/esm2015/lib/import-export/import-export-tool/index.js +1 -1
- package/esm2015/lib/import-export/import-export.module.js +1 -1
- package/esm2015/lib/import-export/import-export.state.js +1 -1
- package/esm2015/lib/import-export/index.js +1 -1
- package/esm2015/lib/integration.module.js +1 -1
- package/esm2015/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.js +1 -1
- package/esm2015/lib/map/advanced-map-tool/advanced-map-tool.component.js +1 -1
- package/esm2015/lib/map/advanced-map-tool/advanced-swipe/advanced-swipe.component.js +1 -1
- package/esm2015/lib/map/advanced-map-tool/index.js +1 -1
- package/esm2015/lib/map/index.js +1 -1
- package/esm2015/lib/map/layer-list-tool.state.js +1 -1
- package/esm2015/lib/map/map-details-tool/index.js +1 -1
- package/esm2015/lib/map/map-details-tool/map-details-tool.component.js +1 -1
- package/esm2015/lib/map/map-legend/index.js +1 -1
- package/esm2015/lib/map/map-legend/map-legend-tool.component.js +1 -1
- package/esm2015/lib/map/map-tool/index.js +1 -1
- package/esm2015/lib/map/map-tool/map-tool.component.js +1 -1
- package/esm2015/lib/map/map-tools/index.js +1 -1
- package/esm2015/lib/map/map-tools/map-tools.component.js +1 -1
- package/esm2015/lib/map/map.module.js +1 -1
- package/esm2015/lib/map/map.state.js +1 -1
- package/esm2015/lib/measure/index.js +1 -1
- package/esm2015/lib/measure/measure.module.js +1 -1
- package/esm2015/lib/measure/measure.state.js +1 -1
- package/esm2015/lib/measure/measurer-tool/measurer-tool.component.js +1 -1
- package/esm2015/lib/measure/measurer-tool/measurer-tool.module.js +1 -1
- package/esm2015/lib/print/index.js +1 -1
- package/esm2015/lib/print/print-tool/index.js +1 -1
- package/esm2015/lib/print/print-tool/print-tool.component.js +1 -1
- package/esm2015/lib/print/print.module.js +1 -1
- package/esm2015/lib/search/index.js +1 -1
- package/esm2015/lib/search/query.state.js +1 -1
- package/esm2015/lib/search/search-bar/search-bar-binding.directive.js +1 -1
- package/esm2015/lib/search/search-bar/search-bar.module.js +1 -1
- package/esm2015/lib/search/search-results-tool/search-results-tool.component.js +1 -1
- package/esm2015/lib/search/search-results-tool/search-results-tool.module.js +1 -1
- package/esm2015/lib/search/search.module.js +1 -1
- package/esm2015/lib/search/search.state.js +1 -1
- package/esm2015/lib/storage/index.js +1 -1
- package/esm2015/lib/storage/storage.module.js +1 -1
- package/esm2015/lib/storage/storage.state.js +1 -1
- package/esm2015/lib/tool/index.js +1 -1
- package/esm2015/lib/tool/tool.module.js +1 -1
- package/esm2015/lib/tool/tool.state.js +1 -1
- package/esm2015/lib/workspace/index.js +1 -1
- package/esm2015/lib/workspace/shared/edition-actions.service.js +157 -0
- package/esm2015/lib/workspace/shared/feature-actions.service.js +1 -1
- package/esm2015/lib/workspace/shared/index.js +1 -1
- package/esm2015/lib/workspace/shared/wfs-actions.service.js +1 -1
- package/esm2015/lib/workspace/shared/workspace.utils.js +1 -1
- package/esm2015/lib/workspace/workspace-button/index.js +1 -1
- package/esm2015/lib/workspace/workspace-button/workspace-button.component.js +1 -1
- package/esm2015/lib/workspace/workspace.module.js +1 -1
- package/esm2015/lib/workspace/workspace.state.js +22 -6
- package/esm2015/public_api.js +1 -1
- package/fesm2015/igo2-integration.js +337 -167
- package/fesm2015/igo2-integration.js.map +1 -1
- package/lib/directions/directions-tool/directions-tool.component.d.ts +6 -1
- package/lib/workspace/shared/edition-actions.service.d.ts +26 -0
- package/lib/workspace/shared/workspace.utils.d.ts +2 -2
- package/lib/workspace/workspace.state.d.ts +4 -1
- package/ngcc.config.js +3 -3
- package/package.json +3 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, Injectable, Component, Input, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Inject, ViewChild, Directive, Self, HostListener } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i1 from '@igo2/context';
|
|
4
4
|
import { IgoContextModule, IgoContextImportExportModule } from '@igo2/context';
|
|
5
5
|
import { __decorate } from 'tslib';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i4 from '@igo2/common';
|
|
7
7
|
import { ToolComponent, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, WorkspaceStore, IgoSpinnerModule, getEntityTitle, FlexibleComponent, IgoFlexibleModule, IgoPanelModule, IgoCustomHtmlModule, IgoInteractiveTourModule } from '@igo2/common';
|
|
8
8
|
import { BehaviorSubject, Subject, combineLatest, ReplaySubject, forkJoin, of } from 'rxjs';
|
|
9
|
-
import * as i1 from '@igo2/geo';
|
|
10
|
-
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, FEATURE, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, featureFromOl, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
|
|
11
|
-
import * as i4 from '@angular/common';
|
|
9
|
+
import * as i1$1 from '@igo2/geo';
|
|
10
|
+
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, EditionWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, FEATURE, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, featureFromOl, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
|
|
11
|
+
import * as i4$1 from '@angular/common';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
13
|
import { take, skipWhile, map, debounceTime, takeUntil, tap, skip } from 'rxjs/operators';
|
|
14
|
-
import * as i2
|
|
15
|
-
import * as i2$
|
|
14
|
+
import * as i2 from '@igo2/auth';
|
|
15
|
+
import * as i2$1 from '@igo2/core';
|
|
16
16
|
import { StorageScope, StorageServiceEventEnum, IgoLanguageModule } from '@igo2/core';
|
|
17
17
|
import * as i3 from '@angular/material/button';
|
|
18
18
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as i4$
|
|
19
|
+
import * as i4$2 from '@angular/material/tooltip';
|
|
20
20
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
21
21
|
import * as i6 from '@angular/material/icon';
|
|
22
22
|
import { MatIconModule } from '@angular/material/icon';
|
|
@@ -24,7 +24,7 @@ import * as i8 from '@ngx-translate/core';
|
|
|
24
24
|
import * as i5 from '@angular/material/tabs';
|
|
25
25
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
26
26
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
27
|
-
import * as i7
|
|
27
|
+
import * as i7 from '@angular/material/list';
|
|
28
28
|
import { MatListModule } from '@angular/material/list';
|
|
29
29
|
import * as i10 from '@angular/material/slide-toggle';
|
|
30
30
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
@@ -36,7 +36,7 @@ import * as i3$1 from '@angular/forms';
|
|
|
36
36
|
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
37
37
|
import * as i6$1 from '@angular/material/form-field';
|
|
38
38
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
39
|
-
import * as i7$
|
|
39
|
+
import * as i7$1 from '@angular/material/select';
|
|
40
40
|
import { MatSelectModule } from '@angular/material/select';
|
|
41
41
|
import * as i9 from '@angular/material/divider';
|
|
42
42
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -144,14 +144,14 @@ class ToolState {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0.ɵɵinject(
|
|
147
|
+
ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ImportExportState)); };
|
|
148
148
|
ToolState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ToolState, factory: ToolState.ɵfac, providedIn: 'root' });
|
|
149
149
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToolState, [{
|
|
150
150
|
type: Injectable,
|
|
151
151
|
args: [{
|
|
152
152
|
providedIn: 'root'
|
|
153
153
|
}]
|
|
154
|
-
}], function () { return [{ type:
|
|
154
|
+
}], function () { return [{ type: i4.ToolService }, { type: ImportExportState }]; }, null); })();
|
|
155
155
|
|
|
156
156
|
let ContextEditorToolComponent = class ContextEditorToolComponent {
|
|
157
157
|
constructor(toolState) {
|
|
@@ -166,7 +166,7 @@ ContextEditorToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
166
166
|
i0.ɵɵelementStart(0, "igo-context-edit", 0);
|
|
167
167
|
i0.ɵɵlistener("submitSuccessed", function ContextEditorToolComponent_Template_igo_context_edit_submitSuccessed_0_listener() { return ctx.submitSuccessed(); });
|
|
168
168
|
i0.ɵɵelementEnd();
|
|
169
|
-
} }, directives: [
|
|
169
|
+
} }, directives: [i1.ContextEditComponent, i1.ContextEditBindingDirective], encapsulation: 2 });
|
|
170
170
|
ContextEditorToolComponent = __decorate([
|
|
171
171
|
ToolComponent({
|
|
172
172
|
name: 'contextEditor',
|
|
@@ -214,14 +214,14 @@ class MapState {
|
|
|
214
214
|
*/
|
|
215
215
|
get map() { return this._map; }
|
|
216
216
|
}
|
|
217
|
-
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1.MapService), i0.ɵɵinject(i1.ProjectionService)); };
|
|
217
|
+
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0.ɵɵinject(i1$1.MapService), i0.ɵɵinject(i1$1.ProjectionService)); };
|
|
218
218
|
MapState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MapState, factory: MapState.ɵfac, providedIn: 'root' });
|
|
219
219
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapState, [{
|
|
220
220
|
type: Injectable,
|
|
221
221
|
args: [{
|
|
222
222
|
providedIn: 'root'
|
|
223
223
|
}]
|
|
224
|
-
}], function () { return [{ type: i1.MapService }, { type: i1.ProjectionService }]; }, null); })();
|
|
224
|
+
}], function () { return [{ type: i1$1.MapService }, { type: i1$1.ProjectionService }]; }, null); })();
|
|
225
225
|
|
|
226
226
|
let ContextManagerToolComponent = class ContextManagerToolComponent {
|
|
227
227
|
constructor(toolState, mapState) {
|
|
@@ -244,7 +244,7 @@ ContextManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
244
244
|
i0.ɵɵelementEnd();
|
|
245
245
|
} if (rf & 2) {
|
|
246
246
|
i0.ɵɵproperty("map", ctx.map);
|
|
247
|
-
} }, directives: [
|
|
247
|
+
} }, directives: [i1.ContextListComponent, i1.ContextListBindingDirective], encapsulation: 2 });
|
|
248
248
|
ContextManagerToolComponent = __decorate([
|
|
249
249
|
ToolComponent({
|
|
250
250
|
name: 'contextManager',
|
|
@@ -267,7 +267,7 @@ let ContextPermissionManagerToolComponent = class ContextPermissionManagerToolCo
|
|
|
267
267
|
ContextPermissionManagerToolComponent.ɵfac = function ContextPermissionManagerToolComponent_Factory(t) { return new (t || ContextPermissionManagerToolComponent)(); };
|
|
268
268
|
ContextPermissionManagerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextPermissionManagerToolComponent, selectors: [["igo-context-permission-manager-tool"]], decls: 1, vars: 0, consts: [["igoContextPermissionsBinding", ""]], template: function ContextPermissionManagerToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
269
269
|
i0.ɵɵelement(0, "igo-context-permissions", 0);
|
|
270
|
-
} }, directives: [
|
|
270
|
+
} }, directives: [i1.ContextPermissionsComponent, i1.ContextPermissionsBindingDirective], encapsulation: 2 });
|
|
271
271
|
ContextPermissionManagerToolComponent = __decorate([
|
|
272
272
|
ToolComponent({
|
|
273
273
|
name: 'contextPermissionManager',
|
|
@@ -336,7 +336,7 @@ ContextShareToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: C
|
|
|
336
336
|
i0.ɵɵelement(0, "igo-share-map", 0);
|
|
337
337
|
} if (rf & 2) {
|
|
338
338
|
i0.ɵɵproperty("map", ctx.map);
|
|
339
|
-
} }, directives: [
|
|
339
|
+
} }, directives: [i1.ShareMapComponent], encapsulation: 2 });
|
|
340
340
|
ContextShareToolComponent = __decorate([
|
|
341
341
|
ToolComponent({
|
|
342
342
|
name: 'shareMap',
|
|
@@ -425,14 +425,14 @@ class CatalogState {
|
|
|
425
425
|
this.catalogItemsStores.clear();
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2
|
|
428
|
+
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0.ɵɵinject(i2.AuthService)); };
|
|
429
429
|
CatalogState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CatalogState, factory: CatalogState.ɵfac, providedIn: 'root' });
|
|
430
430
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogState, [{
|
|
431
431
|
type: Injectable,
|
|
432
432
|
args: [{
|
|
433
433
|
providedIn: 'root'
|
|
434
434
|
}]
|
|
435
|
-
}], function () { return [{ type: i2
|
|
435
|
+
}], function () { return [{ type: i2.AuthService }]; }, null); })();
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
438
|
* Tool to browse the list of available catalogs.
|
|
@@ -489,14 +489,14 @@ let CatalogLibraryToolComponent = class CatalogLibraryToolComponent {
|
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
};
|
|
492
|
-
CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2$
|
|
492
|
+
CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || CatalogLibraryToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i2$1.StorageService)); };
|
|
493
493
|
CatalogLibraryToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogLibraryToolComponent, selectors: [["igo-catalog-library-tool"]], inputs: { addCatalogAllowed: "addCatalogAllowed", predefinedCatalogs: "predefinedCatalogs" }, decls: 1, vars: 3, consts: [[3, "predefinedCatalogs", "addCatalogAllowed", "store", "catalogSelectChange"]], template: function CatalogLibraryToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
494
494
|
i0.ɵɵelementStart(0, "igo-catalog-library", 0);
|
|
495
495
|
i0.ɵɵlistener("catalogSelectChange", function CatalogLibraryToolComponent_Template_igo_catalog_library_catalogSelectChange_0_listener($event) { return ctx.onCatalogSelectChange($event); });
|
|
496
496
|
i0.ɵɵelementEnd();
|
|
497
497
|
} if (rf & 2) {
|
|
498
498
|
i0.ɵɵproperty("predefinedCatalogs", ctx.predefinedCatalogs)("addCatalogAllowed", ctx.addCatalogAllowed)("store", ctx.store);
|
|
499
|
-
} }, directives: [i1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
|
|
499
|
+
} }, directives: [i1$1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
|
|
500
500
|
CatalogLibraryToolComponent = __decorate([
|
|
501
501
|
ToolComponent({
|
|
502
502
|
name: 'catalog',
|
|
@@ -511,7 +511,7 @@ CatalogLibraryToolComponent = __decorate([
|
|
|
511
511
|
templateUrl: './catalog-library-tool.component.html',
|
|
512
512
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
513
513
|
}]
|
|
514
|
-
}], function () { return [{ type: i1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2$
|
|
514
|
+
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2$1.StorageService }]; }, { addCatalogAllowed: [{
|
|
515
515
|
type: Input
|
|
516
516
|
}], predefinedCatalogs: [{
|
|
517
517
|
type: Input
|
|
@@ -622,13 +622,13 @@ let CatalogBrowserToolComponent = class CatalogBrowserToolComponent {
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
|
-
CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2
|
|
625
|
+
CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || CatalogBrowserToolComponent)(i0.ɵɵdirectiveInject(i1$1.CatalogService), i0.ɵɵdirectiveInject(CatalogState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2.AuthService)); };
|
|
626
626
|
CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogBrowserToolComponent, selectors: [["igo-catalog-browser-tool"]], inputs: { toggleCollapsedGroup: "toggleCollapsedGroup" }, decls: 2, vars: 3, consts: [[3, "catalog", "store", "map", "toggleCollapsedGroup", 4, "ngIf"], [3, "catalog", "store", "map", "toggleCollapsedGroup"]], template: function CatalogBrowserToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
627
627
|
i0.ɵɵtemplate(0, CatalogBrowserToolComponent_igo_catalog_browser_0_Template, 1, 4, "igo-catalog-browser", 0);
|
|
628
628
|
i0.ɵɵpipe(1, "async");
|
|
629
629
|
} if (rf & 2) {
|
|
630
630
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.store$));
|
|
631
|
-
} }, directives: [i4.NgIf, i1.CatalogBrowserComponent], pipes: [i4.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
631
|
+
} }, directives: [i4$1.NgIf, i1$1.CatalogBrowserComponent], pipes: [i4$1.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
632
632
|
CatalogBrowserToolComponent = __decorate([
|
|
633
633
|
ToolComponent({
|
|
634
634
|
name: 'catalogBrowser',
|
|
@@ -644,7 +644,7 @@ CatalogBrowserToolComponent = __decorate([
|
|
|
644
644
|
templateUrl: './catalog-browser-tool.component.html',
|
|
645
645
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
646
646
|
}]
|
|
647
|
-
}], function () { return [{ type: i1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2
|
|
647
|
+
}], function () { return [{ type: i1$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2.AuthService }]; }, { toggleCollapsedGroup: [{
|
|
648
648
|
type: Input
|
|
649
649
|
}] }); })();
|
|
650
650
|
|
|
@@ -755,13 +755,96 @@ DirectionState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: Direction
|
|
|
755
755
|
}]
|
|
756
756
|
}], function () { return [{ type: MapState }]; }, null); })();
|
|
757
757
|
|
|
758
|
+
/**
|
|
759
|
+
* Service that holds the state of the context module
|
|
760
|
+
*/
|
|
761
|
+
class ContextState {
|
|
762
|
+
constructor(contextService, toolService, toolState, languageService) {
|
|
763
|
+
this.contextService = contextService;
|
|
764
|
+
this.toolService = toolService;
|
|
765
|
+
this.toolState = toolState;
|
|
766
|
+
this.languageService = languageService;
|
|
767
|
+
/**
|
|
768
|
+
* Observable of the active context
|
|
769
|
+
*/
|
|
770
|
+
this.context$ = new BehaviorSubject(undefined);
|
|
771
|
+
this.contextService.context$.subscribe((context) => {
|
|
772
|
+
this.onContextChange(context);
|
|
773
|
+
});
|
|
774
|
+
this.contextService.toolsChanged$.subscribe((context) => {
|
|
775
|
+
this.updateTools(context);
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Set the active context
|
|
780
|
+
* @param context Detailed context
|
|
781
|
+
*/
|
|
782
|
+
setContext(context) {
|
|
783
|
+
this.updateTools(context);
|
|
784
|
+
this.context$.next(context);
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Update the tool state with the context's tools
|
|
788
|
+
* @param context Detailed context
|
|
789
|
+
*/
|
|
790
|
+
updateTools(context) {
|
|
791
|
+
const toolbox = this.toolState.toolbox;
|
|
792
|
+
const tools = [];
|
|
793
|
+
const contextTools = context.tools || [];
|
|
794
|
+
contextTools.forEach((contextTool) => {
|
|
795
|
+
const baseTool = this.toolService.getTool(contextTool.name);
|
|
796
|
+
if (baseTool === undefined) {
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
const options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
|
|
800
|
+
const tool = Object.assign({}, baseTool, contextTool, { options });
|
|
801
|
+
tools.push(tool);
|
|
802
|
+
});
|
|
803
|
+
tools.forEach((tool) => {
|
|
804
|
+
if (tool.parent) {
|
|
805
|
+
const parentIndex = tools.findIndex((el) => el.name === tool.parent);
|
|
806
|
+
if (parentIndex !== -1) {
|
|
807
|
+
tools[parentIndex].children = [];
|
|
808
|
+
tools[parentIndex].children.push(tool.name);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
toolbox.setTools(tools);
|
|
813
|
+
toolbox.setToolbar(context.toolbar || []);
|
|
814
|
+
// TODO: This is a patch so the context service can work without
|
|
815
|
+
// injecting the ToolState or without being completely refactored
|
|
816
|
+
this.contextService.setTools([].concat(tools));
|
|
817
|
+
this.contextService.setToolbar(context.toolbar || []);
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Set a new context and update the tool state
|
|
821
|
+
* @param context Detailed context
|
|
822
|
+
*/
|
|
823
|
+
onContextChange(context) {
|
|
824
|
+
if (context === undefined) {
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
this.setContext(context);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i1.ContextService), i0.ɵɵinject(i4.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$1.LanguageService)); };
|
|
831
|
+
ContextState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
|
|
832
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextState, [{
|
|
833
|
+
type: Injectable,
|
|
834
|
+
args: [{
|
|
835
|
+
providedIn: 'root'
|
|
836
|
+
}]
|
|
837
|
+
}], function () { return [{ type: i1.ContextService }, { type: i4.ToolService }, { type: ToolState }, { type: i2$1.LanguageService }]; }, null); })();
|
|
838
|
+
|
|
758
839
|
let DirectionsToolComponent = class DirectionsToolComponent {
|
|
759
|
-
constructor(directionState, mapState, languageService, messageService, storageService) {
|
|
840
|
+
constructor(directionState, mapState, languageService, messageService, storageService, contextState, authService) {
|
|
760
841
|
this.directionState = directionState;
|
|
761
842
|
this.mapState = mapState;
|
|
762
843
|
this.languageService = languageService;
|
|
763
844
|
this.messageService = messageService;
|
|
764
845
|
this.storageService = storageService;
|
|
846
|
+
this.contextState = contextState;
|
|
847
|
+
this.authService = authService;
|
|
765
848
|
}
|
|
766
849
|
/**
|
|
767
850
|
* stops
|
|
@@ -803,14 +886,19 @@ let DirectionsToolComponent = class DirectionsToolComponent {
|
|
|
803
886
|
this.messageService.info(msg, title, { timeOut: 20000 });
|
|
804
887
|
this.storageService.set('direction.warning.shown', true, StorageScope.SESSION);
|
|
805
888
|
}
|
|
889
|
+
this.contextState.context$.subscribe(c => {
|
|
890
|
+
if (!this.authService.authenticated) {
|
|
891
|
+
this.currentContextUri = c.uri;
|
|
892
|
+
}
|
|
893
|
+
});
|
|
806
894
|
}
|
|
807
895
|
};
|
|
808
|
-
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$
|
|
809
|
-
DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars:
|
|
896
|
+
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i2$1.StorageService), i0.ɵɵdirectiveInject(ContextState), i0.ɵɵdirectiveInject(i2.AuthService)); };
|
|
897
|
+
DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 7, consts: [[3, "contextUri", "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
810
898
|
i0.ɵɵelement(0, "igo-directions", 0);
|
|
811
899
|
} if (rf & 2) {
|
|
812
|
-
i0.ɵɵproperty("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
813
|
-
} }, directives: [i1.DirectionsComponent], encapsulation: 2 });
|
|
900
|
+
i0.ɵɵproperty("contextUri", ctx.currentContextUri)("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
901
|
+
} }, directives: [i1$1.DirectionsComponent], encapsulation: 2 });
|
|
814
902
|
DirectionsToolComponent = __decorate([
|
|
815
903
|
ToolComponent({
|
|
816
904
|
name: 'directions',
|
|
@@ -824,7 +912,7 @@ DirectionsToolComponent = __decorate([
|
|
|
824
912
|
selector: 'igo-directions-tool',
|
|
825
913
|
templateUrl: './directions-tool.component.html'
|
|
826
914
|
}]
|
|
827
|
-
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$
|
|
915
|
+
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i2$1.StorageService }, { type: ContextState }, { type: i2.AuthService }]; }, null); })();
|
|
828
916
|
|
|
829
917
|
class IgoAppDirectionsModule {
|
|
830
918
|
static forRoot() {
|
|
@@ -900,7 +988,7 @@ DrawingToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Drawin
|
|
|
900
988
|
i0.ɵɵelement(0, "igo-draw", 0);
|
|
901
989
|
} if (rf & 2) {
|
|
902
990
|
i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
903
|
-
} }, directives: [i1.DrawComponent], encapsulation: 2, changeDetection: 0 });
|
|
991
|
+
} }, directives: [i1$1.DrawComponent], encapsulation: 2, changeDetection: 0 });
|
|
904
992
|
DrawingToolComponent = __decorate([
|
|
905
993
|
ToolComponent({
|
|
906
994
|
name: 'draw',
|
|
@@ -951,14 +1039,14 @@ class StorageState {
|
|
|
951
1039
|
return this.igoStorageService;
|
|
952
1040
|
}
|
|
953
1041
|
}
|
|
954
|
-
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2$
|
|
1042
|
+
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0.ɵɵinject(i2$1.StorageService)); };
|
|
955
1043
|
StorageState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StorageState, factory: StorageState.ɵfac, providedIn: 'root' });
|
|
956
1044
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StorageState, [{
|
|
957
1045
|
type: Injectable,
|
|
958
1046
|
args: [{
|
|
959
1047
|
providedIn: 'root'
|
|
960
1048
|
}]
|
|
961
|
-
}], function () { return [{ type: i2$
|
|
1049
|
+
}], function () { return [{ type: i2$1.StorageService }]; }, null); })();
|
|
962
1050
|
|
|
963
1051
|
class FeatureActionsService {
|
|
964
1052
|
constructor(storageState, languageService, toolState, mediaService) {
|
|
@@ -1084,14 +1172,14 @@ class FeatureActionsService {
|
|
|
1084
1172
|
];
|
|
1085
1173
|
}
|
|
1086
1174
|
}
|
|
1087
|
-
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$
|
|
1175
|
+
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$1.MediaService)); };
|
|
1088
1176
|
FeatureActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FeatureActionsService, factory: FeatureActionsService.ɵfac, providedIn: 'root' });
|
|
1089
1177
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FeatureActionsService, [{
|
|
1090
1178
|
type: Injectable,
|
|
1091
1179
|
args: [{
|
|
1092
1180
|
providedIn: 'root'
|
|
1093
1181
|
}]
|
|
1094
|
-
}], function () { return [{ type: StorageState }, { type: i2$
|
|
1182
|
+
}], function () { return [{ type: StorageState }, { type: i2$1.LanguageService }, { type: ToolState }, { type: i2$1.MediaService }]; }, null); })();
|
|
1095
1183
|
|
|
1096
1184
|
class WfsActionsService {
|
|
1097
1185
|
constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
|
|
@@ -1228,25 +1316,171 @@ class WfsActionsService {
|
|
|
1228
1316
|
actions : actions.filter(action => action.id !== 'ogcFilter');
|
|
1229
1317
|
}
|
|
1230
1318
|
}
|
|
1231
|
-
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$
|
|
1319
|
+
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(i2$1.MediaService), i0.ɵɵinject(ToolState)); };
|
|
1232
1320
|
WfsActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WfsActionsService, factory: WfsActionsService.ɵfac, providedIn: 'root' });
|
|
1233
1321
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WfsActionsService, [{
|
|
1234
1322
|
type: Injectable,
|
|
1235
1323
|
args: [{
|
|
1236
1324
|
providedIn: 'root'
|
|
1237
1325
|
}]
|
|
1238
|
-
}], function () { return [{ type:
|
|
1326
|
+
}], function () { return [{ type: i4.Widget, decorators: [{
|
|
1239
1327
|
type: Inject,
|
|
1240
1328
|
args: [OgcFilterWidget]
|
|
1241
|
-
}] }, { type: StorageState }, { type: i2$
|
|
1329
|
+
}] }, { type: StorageState }, { type: i2$1.LanguageService }, { type: i2$1.MediaService }, { type: ToolState }]; }, null); })();
|
|
1330
|
+
|
|
1331
|
+
class EditionActionsService {
|
|
1332
|
+
constructor(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
|
|
1333
|
+
this.ogcFilterWidget = ogcFilterWidget;
|
|
1334
|
+
this.storageState = storageState;
|
|
1335
|
+
this.languageService = languageService;
|
|
1336
|
+
this.mediaService = mediaService;
|
|
1337
|
+
this.toolState = toolState;
|
|
1338
|
+
this.maximize$ = new BehaviorSubject(this.storageService.get('workspaceMaximize'));
|
|
1339
|
+
this.zoomAuto$ = new BehaviorSubject(false);
|
|
1340
|
+
}
|
|
1341
|
+
get storageService() {
|
|
1342
|
+
return this.storageState.storageService;
|
|
1343
|
+
}
|
|
1344
|
+
get zoomAuto() {
|
|
1345
|
+
return this.storageService.get('zoomAuto');
|
|
1346
|
+
}
|
|
1347
|
+
ngOnDestroy() {
|
|
1348
|
+
if (this.storageChange$$) {
|
|
1349
|
+
this.storageChange$$.unsubscribe();
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
loadActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1353
|
+
const actions = this.buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$);
|
|
1354
|
+
workspace.actionStore.load(actions);
|
|
1355
|
+
}
|
|
1356
|
+
buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1357
|
+
var _a, _b;
|
|
1358
|
+
this.zoomAuto$.next(this.zoomAuto);
|
|
1359
|
+
this.storageChange$$ = this.storageService.storageChange$
|
|
1360
|
+
.pipe(skipWhile((storageChange) => storageChange.key !== 'zoomAuto' || storageChange.event === StorageServiceEventEnum.CLEARED))
|
|
1361
|
+
.subscribe(() => {
|
|
1362
|
+
this.zoomAuto$.next(this.zoomAuto);
|
|
1363
|
+
handleZoomAuto(workspace, this.storageService);
|
|
1364
|
+
});
|
|
1365
|
+
const actions = [
|
|
1366
|
+
{
|
|
1367
|
+
id: 'zoomAuto',
|
|
1368
|
+
checkbox: true,
|
|
1369
|
+
title: 'igo.integration.workspace.zoomAuto.title',
|
|
1370
|
+
tooltip: 'igo.integration.workspace.zoomAuto.tooltip',
|
|
1371
|
+
checkCondition: this.zoomAuto$,
|
|
1372
|
+
handler: () => {
|
|
1373
|
+
handleZoomAuto(workspace, this.storageService);
|
|
1374
|
+
this.storageService.set('zoomAuto', !this.storageService.get('zoomAuto'));
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
id: 'filterInMapExtent',
|
|
1379
|
+
checkbox: true,
|
|
1380
|
+
title: 'igo.integration.workspace.inMapExtent.title',
|
|
1381
|
+
tooltip: mapExtentStrategyActiveToolTip(workspace),
|
|
1382
|
+
checkCondition: rowsInMapExtentCheckCondition$,
|
|
1383
|
+
handler: () => rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value)
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
id: 'selectedOnly',
|
|
1387
|
+
checkbox: true,
|
|
1388
|
+
title: 'igo.integration.workspace.selected.title',
|
|
1389
|
+
tooltip: 'igo.integration.workspace.selected.title',
|
|
1390
|
+
checkCondition: selectOnlyCheckCondition$,
|
|
1391
|
+
handler: () => selectOnlyCheckCondition$.next(!selectOnlyCheckCondition$.value)
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
id: 'clearselection',
|
|
1395
|
+
icon: 'select-off',
|
|
1396
|
+
title: 'igo.integration.workspace.clearSelection.title',
|
|
1397
|
+
tooltip: 'igo.integration.workspace.clearSelection.tooltip',
|
|
1398
|
+
handler: (ws) => {
|
|
1399
|
+
ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
|
|
1400
|
+
},
|
|
1401
|
+
args: [workspace],
|
|
1402
|
+
availability: (ws) => noElementSelected(ws)
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
id: 'wfsDownload',
|
|
1406
|
+
icon: 'file-export',
|
|
1407
|
+
title: 'igo.integration.workspace.download.title',
|
|
1408
|
+
tooltip: 'igo.integration.workspace.download.tooltip',
|
|
1409
|
+
handler: (ws) => {
|
|
1410
|
+
const filterStrategy = ws.entityStore.getStrategyOfType(EntityStoreFilterCustomFuncStrategy);
|
|
1411
|
+
const filterSelectionStrategy = ws.entityStore.getStrategyOfType(EntityStoreFilterSelectionStrategy);
|
|
1412
|
+
const layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
|
|
1413
|
+
this.toolState.toolToActivateFromOptions({
|
|
1414
|
+
tool: 'importExport',
|
|
1415
|
+
options: { layers: [ws.layer.id], featureInMapExtent: filterStrategy.active, layersWithSelection }
|
|
1416
|
+
});
|
|
1417
|
+
},
|
|
1418
|
+
args: [workspace]
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
id: 'ogcFilter',
|
|
1422
|
+
icon: 'filter',
|
|
1423
|
+
title: 'igo.integration.workspace.ogcFilter.title',
|
|
1424
|
+
tooltip: 'igo.integration.workspace.ogcFilter.tooltip',
|
|
1425
|
+
handler: (widget, ws) => {
|
|
1426
|
+
ws.activateWidget(widget, {
|
|
1427
|
+
map: ws.map,
|
|
1428
|
+
layer: ws.layer
|
|
1429
|
+
});
|
|
1430
|
+
},
|
|
1431
|
+
args: [this.ogcFilterWidget, workspace]
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
id: 'maximize',
|
|
1435
|
+
title: this.languageService.translate.instant('igo.integration.workspace.maximize'),
|
|
1436
|
+
tooltip: this.languageService.translate.instant('igo.integration.workspace.maximizeTooltip'),
|
|
1437
|
+
icon: 'resize',
|
|
1438
|
+
display: () => {
|
|
1439
|
+
return this.maximize$.pipe(map((v) => !v && !this.mediaService.isMobile()));
|
|
1440
|
+
},
|
|
1441
|
+
handler: () => {
|
|
1442
|
+
if (!this.mediaService.isMobile()) {
|
|
1443
|
+
this.maximize$.next(true);
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
id: 'standardExtent',
|
|
1449
|
+
title: this.languageService.translate.instant('igo.integration.workspace.standardExtent'),
|
|
1450
|
+
tooltip: this.languageService.translate.instant('igo.integration.workspace.standardExtentTooltip'),
|
|
1451
|
+
icon: 'resize',
|
|
1452
|
+
display: () => {
|
|
1453
|
+
return this.maximize$.pipe(map((v) => v && !this.mediaService.isMobile()));
|
|
1454
|
+
},
|
|
1455
|
+
handler: () => {
|
|
1456
|
+
this.maximize$.next(false);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
];
|
|
1460
|
+
return ((_b = (_a = workspace.layer.dataSource.ogcFilters$) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.enabled) ?
|
|
1461
|
+
actions : actions.filter(action => action.id !== 'ogcFilter');
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0.ɵɵinject(OgcFilterWidget), i0.ɵɵinject(StorageState), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(i2$1.MediaService), i0.ɵɵinject(ToolState)); };
|
|
1465
|
+
EditionActionsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EditionActionsService, factory: EditionActionsService.ɵfac, providedIn: 'root' });
|
|
1466
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditionActionsService, [{
|
|
1467
|
+
type: Injectable,
|
|
1468
|
+
args: [{
|
|
1469
|
+
providedIn: 'root'
|
|
1470
|
+
}]
|
|
1471
|
+
}], function () { return [{ type: i4.Widget, decorators: [{
|
|
1472
|
+
type: Inject,
|
|
1473
|
+
args: [OgcFilterWidget]
|
|
1474
|
+
}] }, { type: StorageState }, { type: i2$1.LanguageService }, { type: i2$1.MediaService }, { type: ToolState }]; }, null); })();
|
|
1242
1475
|
|
|
1243
1476
|
/**
|
|
1244
1477
|
* Service that holds the state of the workspace module
|
|
1245
1478
|
*/
|
|
1246
1479
|
class WorkspaceState {
|
|
1247
|
-
constructor(featureActionsService, wfsActionsService, storageService) {
|
|
1480
|
+
constructor(featureActionsService, wfsActionsService, editionActionsService, storageService) {
|
|
1248
1481
|
this.featureActionsService = featureActionsService;
|
|
1249
1482
|
this.wfsActionsService = wfsActionsService;
|
|
1483
|
+
this.editionActionsService = editionActionsService;
|
|
1250
1484
|
this.storageService = storageService;
|
|
1251
1485
|
this.workspacePanelExpanded = false;
|
|
1252
1486
|
this.workspaceEnabled$ = new BehaviorSubject(false);
|
|
@@ -1289,6 +1523,9 @@ class WorkspaceState {
|
|
|
1289
1523
|
else if (wks.entity instanceof FeatureWorkspace) {
|
|
1290
1524
|
this.featureActionsService.loadActions(wks.entity, this.rowsInMapExtentCheckCondition$, this.selectOnlyCheckCondition$);
|
|
1291
1525
|
}
|
|
1526
|
+
else if (wks.entity instanceof EditionWorkspace) {
|
|
1527
|
+
this.editionActionsService.loadActions(wks.entity, this.rowsInMapExtentCheckCondition$, this.selectOnlyCheckCondition$);
|
|
1528
|
+
}
|
|
1292
1529
|
}
|
|
1293
1530
|
});
|
|
1294
1531
|
});
|
|
@@ -1298,6 +1535,9 @@ class WorkspaceState {
|
|
|
1298
1535
|
this.actionMaximize$$.push(this.wfsActionsService.maximize$.subscribe(maximized => {
|
|
1299
1536
|
this.setWorkspaceIsMaximized(maximized);
|
|
1300
1537
|
}));
|
|
1538
|
+
this.actionMaximize$$.push(this.editionActionsService.maximize$.subscribe(maximized => {
|
|
1539
|
+
this.setWorkspaceIsMaximized(maximized);
|
|
1540
|
+
}));
|
|
1301
1541
|
this.activeWorkspace$$ = this.workspace$
|
|
1302
1542
|
.subscribe((workspace) => {
|
|
1303
1543
|
if (this.activeWorkspaceWidget$$ !== undefined) {
|
|
@@ -1352,6 +1592,14 @@ class WorkspaceState {
|
|
|
1352
1592
|
this.store.activateWorkspace(wksFromId);
|
|
1353
1593
|
}
|
|
1354
1594
|
}
|
|
1595
|
+
setActiveWorkspaceByTitle(title) {
|
|
1596
|
+
const wksFromTitle = this.store
|
|
1597
|
+
.all()
|
|
1598
|
+
.find(workspace => workspace.title === title);
|
|
1599
|
+
if (wksFromTitle) {
|
|
1600
|
+
this.store.activateWorkspace(wksFromTitle);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1355
1603
|
/**
|
|
1356
1604
|
* Teardown all the workspaces
|
|
1357
1605
|
* @internal
|
|
@@ -1379,14 +1627,14 @@ class WorkspaceState {
|
|
|
1379
1627
|
}
|
|
1380
1628
|
}
|
|
1381
1629
|
}
|
|
1382
|
-
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(i2$
|
|
1630
|
+
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0.ɵɵinject(FeatureActionsService), i0.ɵɵinject(WfsActionsService), i0.ɵɵinject(EditionActionsService), i0.ɵɵinject(i2$1.StorageService)); };
|
|
1383
1631
|
WorkspaceState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: WorkspaceState, factory: WorkspaceState.ɵfac, providedIn: 'root' });
|
|
1384
1632
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceState, [{
|
|
1385
1633
|
type: Injectable,
|
|
1386
1634
|
args: [{
|
|
1387
1635
|
providedIn: 'root'
|
|
1388
1636
|
}]
|
|
1389
|
-
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: i2$
|
|
1637
|
+
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2$1.StorageService }]; }, null); })();
|
|
1390
1638
|
|
|
1391
1639
|
function WorkspaceButtonComponent_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
1392
1640
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -1438,7 +1686,7 @@ WorkspaceButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wo
|
|
|
1438
1686
|
i0.ɵɵpipe(1, "async");
|
|
1439
1687
|
} if (rf & 2) {
|
|
1440
1688
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
|
|
1441
|
-
} }, directives: [i4.NgIf, i3.MatButton, i4$
|
|
1689
|
+
} }, directives: [i4$1.NgIf, i3.MatButton, i4$2.MatTooltip, i6.MatIcon], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [""], changeDetection: 0 });
|
|
1442
1690
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceButtonComponent, [{
|
|
1443
1691
|
type: Component,
|
|
1444
1692
|
args: [{
|
|
@@ -1589,7 +1837,7 @@ ImportExportToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: I
|
|
|
1589
1837
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "layer");
|
|
1590
1838
|
i0.ɵɵadvance(1);
|
|
1591
1839
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
|
|
1592
|
-
} }, directives: [i4.NgIf, i5.MatTabGroup, i5.MatTab, i1.ImportExportComponent,
|
|
1840
|
+
} }, directives: [i4$1.NgIf, i5.MatTabGroup, i5.MatTab, i1$1.ImportExportComponent, i1.ContextImportExportComponent], pipes: [i8.TranslatePipe, i4$1.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
1593
1841
|
ImportExportToolComponent = __decorate([
|
|
1594
1842
|
ToolComponent({
|
|
1595
1843
|
name: 'importExport',
|
|
@@ -1871,7 +2119,7 @@ let MapDetailsToolComponent = class MapDetailsToolComponent {
|
|
|
1871
2119
|
this.toolState.toolbox.activateTool('importExport');
|
|
1872
2120
|
}
|
|
1873
2121
|
};
|
|
1874
|
-
MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || MapDetailsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
2122
|
+
MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || MapDetailsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
1875
2123
|
MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapDetailsToolComponent, selectors: [["igo-map-details-tool"]], inputs: { toggleLegendOnVisibilityChange: "toggleLegendOnVisibilityChange", expandLegendOfVisibleLayers: "expandLegendOfVisibleLayers", updateLegendOnResolutionChange: "updateLegendOnResolutionChange", ogcButton: "ogcButton", timeButton: "timeButton", layerListControls: "layerListControls", queryBadge: "queryBadge", layerAdditionAllowed: "layerAdditionAllowed" }, decls: 4, vars: 4, consts: [["class", "mapDetailsList", "igoLayerListBinding", "", "floatLabel", "never", 3, "map", "excludeBaseLayers", "layerFilterAndSortOptions", "expandLegendOfVisibleLayers", "toggleLegendOnVisibilityChange", "updateLegendOnResolutionChange", "queryBadge", 4, "ngIf", "ngIfElse"], ["empty", ""], ["igoLayerListBinding", "", "floatLabel", "never", 1, "mapDetailsList", 3, "map", "excludeBaseLayers", "layerFilterAndSortOptions", "expandLegendOfVisibleLayers", "toggleLegendOnVisibilityChange", "updateLegendOnResolutionChange", "queryBadge"], ["igoLayerItemToolbar", ""], [3, "layer"], [3, "layer", "click"], [3, "header", "layer"], [3, "trackFeature", "layer"], [4, "ngIf"], [1, "map-empty", "mat-typography"], ["class", "map-empty mat-typography", 4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapDetailsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1876
2124
|
i0.ɵɵtemplate(0, MapDetailsToolComponent_igo_layer_list_0_Template, 3, 7, "igo-layer-list", 0);
|
|
1877
2125
|
i0.ɵɵpipe(1, "async");
|
|
@@ -1879,7 +2127,7 @@ MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Map
|
|
|
1879
2127
|
} if (rf & 2) {
|
|
1880
2128
|
const _r1 = i0.ɵɵreference(3);
|
|
1881
2129
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
|
|
1882
|
-
} }, directives: [i4.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, WorkspaceButtonComponent, i1.ExportButtonComponent, i1.OgcFilterButtonComponent, i1.TimeFilterButtonComponent, i1.TrackFeatureButtonComponent, i1.MetadataButtonComponent, i7
|
|
2130
|
+
} }, directives: [i4$1.NgIf, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, WorkspaceButtonComponent, i1$1.ExportButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}.mapDetailsList[_ngcontent-%COMP%]{overflow:hidden}"] });
|
|
1883
2131
|
MapDetailsToolComponent = __decorate([
|
|
1884
2132
|
ToolComponent({
|
|
1885
2133
|
name: 'mapDetails',
|
|
@@ -1894,7 +2142,7 @@ MapDetailsToolComponent = __decorate([
|
|
|
1894
2142
|
templateUrl: './map-details-tool.component.html',
|
|
1895
2143
|
styleUrls: ['./map-details-tool.component.scss']
|
|
1896
2144
|
}]
|
|
1897
|
-
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1.SearchSourceService }, { type: i0.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
2145
|
+
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
1898
2146
|
type: Input
|
|
1899
2147
|
}], expandLegendOfVisibleLayers: [{
|
|
1900
2148
|
type: Input
|
|
@@ -2007,7 +2255,7 @@ MapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolCom
|
|
|
2007
2255
|
i0.ɵɵproperty("map", ctx.map)("excludeBaseLayers", ctx.excludeBaseLayers)("layerFilterAndSortOptions", ctx.layerFilterAndSortOptions)("expandLegendOfVisibleLayers", ctx.expandLegendOfVisibleLayers)("toggleLegendOnVisibilityChange", ctx.toggleLegendOnVisibilityChange)("updateLegendOnResolutionChange", ctx.updateLegendOnResolutionChange)("floatLabel", false)("queryBadge", ctx.queryBadge);
|
|
2008
2256
|
i0.ɵɵadvance(3);
|
|
2009
2257
|
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
|
|
2010
|
-
} }, directives: [i5.MatTabGroup, i5.MatTab, i1.LayerListComponent, i1.LayerListBindingDirective,
|
|
2258
|
+
} }, directives: [i5.MatTabGroup, i5.MatTab, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1.ContextListComponent, i1.ContextListBindingDirective, WorkspaceButtonComponent, i1$1.ExportButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.TrackFeatureButtonComponent, i1$1.MetadataButtonComponent], pipes: [i8.TranslatePipe], styles: ["mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
2011
2259
|
MapToolComponent = __decorate([
|
|
2012
2260
|
ToolComponent({
|
|
2013
2261
|
name: 'map',
|
|
@@ -2430,7 +2678,7 @@ let MapToolsComponent = class MapToolsComponent {
|
|
|
2430
2678
|
return false;
|
|
2431
2679
|
}
|
|
2432
2680
|
};
|
|
2433
|
-
MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || MapToolsComponent)(i0.ɵɵdirectiveInject(LayerListToolState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
2681
|
+
MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || MapToolsComponent)(i0.ɵɵdirectiveInject(LayerListToolState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(ImportExportState)); };
|
|
2434
2682
|
MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsComponent, selectors: [["igo-map-tools"]], viewQuery: function MapToolsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2435
2683
|
i0.ɵɵviewQuery(_c0$1, 7);
|
|
2436
2684
|
} if (rf & 2) {
|
|
@@ -2471,7 +2719,7 @@ MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsC
|
|
|
2471
2719
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 17, ctx.layers$).length !== 0)("ngIfElse", _r5);
|
|
2472
2720
|
i0.ɵɵadvance(2);
|
|
2473
2721
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
|
|
2474
|
-
} }, directives: [i5.MatTabGroup, i5.MatTab, i4.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, i1.MetadataButtonComponent, i1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1.TimeFilterButtonComponent, i1.OgcFilterButtonComponent, i1.ExportButtonComponent, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7
|
|
2722
|
+
} }, directives: [i5.MatTabGroup, i5.MatTab, i4$1.NgIf, i1$1.LayerListComponent, i1$1.LayerListBindingDirective, i1$1.MetadataButtonComponent, i1$1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1$1.TimeFilterButtonComponent, i1$1.OgcFilterButtonComponent, i1$1.ExportButtonComponent, i1$1.LayerLegendListComponent, i1$1.LayerLegendListBindingDirective, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
2475
2723
|
MapToolsComponent = __decorate([
|
|
2476
2724
|
ToolComponent({
|
|
2477
2725
|
name: 'mapTools',
|
|
@@ -2487,7 +2735,7 @@ MapToolsComponent = __decorate([
|
|
|
2487
2735
|
styleUrls: ['./map-tools.component.scss'],
|
|
2488
2736
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2489
2737
|
}]
|
|
2490
|
-
}], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
|
|
2738
|
+
}], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1$1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
|
|
2491
2739
|
type: Input
|
|
2492
2740
|
}], showAllLegendsValue: [{
|
|
2493
2741
|
type: Input
|
|
@@ -2744,7 +2992,7 @@ let MapLegendToolComponent = class MapLegendToolComponent {
|
|
|
2744
2992
|
this.toolState.toolbox.activateTool('contextManager');
|
|
2745
2993
|
}
|
|
2746
2994
|
};
|
|
2747
|
-
MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
2995
|
+
MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || MapLegendToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(i1$1.SearchSourceService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
2748
2996
|
MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapLegendToolComponent, selectors: [["igo-map-legend-tool"]], inputs: { updateLegendOnResolutionChange: "updateLegendOnResolutionChange", layerAdditionAllowed: "layerAdditionAllowed", allowShowAllLegends: "allowShowAllLegends", showAllLegendsValue: "showAllLegendsValue", layerListControls: "layerListControls" }, decls: 8, vars: 10, consts: [["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["class", "map-empty mat-typography", 4, "ngIf"], ["emptyLayers", ""], ["igoLayerLegendListBinding", "", 3, "excludeBaseLayers", "allowShowAllLegends", "updateLegendOnResolutionChange", "showAllLegendsValue", "allLegendsShown"], [1, "map-empty", "mat-typography"], [4, "ngIf"], ["mat-list-icon", ""], ["viewBox", "0 0 24 24", "fit", "", "height", "100%", "width", "100%", "preserveAspectRatio", "xMidYMid meet", "focusable", "false"], ["d", "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["d", "M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["d", "M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function MapLegendToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2749
2997
|
i0.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
|
|
2750
2998
|
i0.ɵɵtemplate(1, MapLegendToolComponent_1_Template, 1, 0, undefined, 1);
|
|
@@ -2760,7 +3008,7 @@ MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapL
|
|
|
2760
3008
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
|
|
2761
3009
|
i0.ɵɵadvance(2);
|
|
2762
3010
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
2763
|
-
} }, directives: [i4.NgIf, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7
|
|
3011
|
+
} }, directives: [i4$1.NgIf, i1$1.LayerLegendListComponent, i1$1.LayerLegendListBindingDirective, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4$1.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}"] });
|
|
2764
3012
|
MapLegendToolComponent = __decorate([
|
|
2765
3013
|
ToolComponent({
|
|
2766
3014
|
name: 'mapLegend',
|
|
@@ -2775,7 +3023,7 @@ MapLegendToolComponent = __decorate([
|
|
|
2775
3023
|
templateUrl: './map-legend-tool.component.html',
|
|
2776
3024
|
styleUrls: ['./map-legend-tool.component.scss']
|
|
2777
3025
|
}]
|
|
2778
|
-
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
3026
|
+
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1$1.SearchSourceService }, { type: i0.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
2779
3027
|
type: Input
|
|
2780
3028
|
}], layerAdditionAllowed: [{
|
|
2781
3029
|
type: Input
|
|
@@ -2988,14 +3236,14 @@ class AdvancedSwipeComponent {
|
|
|
2988
3236
|
this.toolState.toolbox.activateTool('contextManager');
|
|
2989
3237
|
}
|
|
2990
3238
|
}
|
|
2991
|
-
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(
|
|
3239
|
+
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i3$1.FormBuilder), i0.ɵɵdirectiveInject(ToolState)); };
|
|
2992
3240
|
AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedSwipeComponent, selectors: [["igo-advanced-swipe"]], decls: 3, vars: 2, consts: [["class", "igo-swipe-select-container", 4, "ngIf", "ngIfElse"], ["noLayersBlock", ""], [1, "igo-swipe-select-container"], [1, "igo-form", 3, "formGroup"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", "click", 4, "ngFor", "ngForOf"], [1, "swipe-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "map-empty", "mat-typography"], ["mat-list-icon", "", "svgIcon", "magnify"], ["matLine", "", 1, "search-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "layers-plus"], ["matLine", "", 1, "catalog-tool", "mat-typography", 3, "click"], ["mat-list-icon", "", "svgIcon", "star"], ["matLine", "", 1, "context-tool", "mat-typography", 3, "click"]], template: function AdvancedSwipeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2993
3241
|
i0.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
|
|
2994
3242
|
i0.ɵɵtemplate(1, AdvancedSwipeComponent_ng_template_1_Template, 22, 15, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
2995
3243
|
} if (rf & 2) {
|
|
2996
3244
|
const _r1 = i0.ɵɵreference(2);
|
|
2997
3245
|
i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
2998
|
-
} }, directives: [i4.NgIf, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$
|
|
3246
|
+
} }, directives: [i4$1.NgIf, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$1.MatSelect, i3$1.NgControlStatus, i3$1.FormControlName, i8$1.MatOption, i9.MatDivider, i4$1.NgForOf, i10.MatSlideToggle, i7.MatList, i7.MatListItem, i6.MatIcon, i7.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i8.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
|
|
2999
3247
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
3000
3248
|
type: Component,
|
|
3001
3249
|
args: [{
|
|
@@ -3003,7 +3251,7 @@ AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Adva
|
|
|
3003
3251
|
templateUrl: './advanced-swipe.component.html',
|
|
3004
3252
|
styleUrls: ['./advanced-swipe.component.scss']
|
|
3005
3253
|
}]
|
|
3006
|
-
}], function () { return [{ type: MapState }, { type:
|
|
3254
|
+
}], function () { return [{ type: MapState }, { type: i1.ContextService }, { type: i3$1.FormBuilder }, { type: ToolState }]; }, null); })();
|
|
3007
3255
|
|
|
3008
3256
|
function AdvancedCoordinatesComponent_mat_form_field_0_Template(rf, ctx) { if (rf & 1) {
|
|
3009
3257
|
i0.ɵɵelementStart(0, "mat-form-field", 12);
|
|
@@ -3382,7 +3630,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3382
3630
|
});
|
|
3383
3631
|
}
|
|
3384
3632
|
}
|
|
3385
|
-
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$
|
|
3633
|
+
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$1.StorageService), i0.ɵɵdirectiveInject(i2$1.ConfigService), i0.ɵɵdirectiveInject(i3$1.FormBuilder)); };
|
|
3386
3634
|
AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls: 32, vars: 37, consts: [["class", "coordinates", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["class", "coordinates2", 4, "ngIf", "ngIfElse"], ["elseBlock2", ""], ["mat-raised-button", "", 1, "igo-form-button-group", 3, "click"], ["svgIcon", "content-copy"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], ["matTooltipShowDelay", "500", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "center-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "igo-zoom", "mat-typography"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["matTooltipShowDelay", "500", 3, "value", "click"]], template: function AdvancedCoordinatesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3387
3635
|
i0.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
|
|
3388
3636
|
i0.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -3452,7 +3700,7 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3452
3700
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
|
|
3453
3701
|
i0.ɵɵadvance(4);
|
|
3454
3702
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
|
|
3455
|
-
} }, directives: [i4.NgIf, i3.MatButton, i6.MatIcon, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$
|
|
3703
|
+
} }, directives: [i4$1.NgIf, i3.MatButton, i6.MatIcon, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$1.MatSelect, i4$1.NgForOf, i10.MatSlideToggle, i10$1.MatInput, i8$1.MatOption], pipes: [i8.TranslatePipe, i4$1.AsyncPipe, i4$1.DecimalPipe], styles: ["textarea[_ngcontent-%COMP%]{resize:none}mat-form-field[_ngcontent-%COMP%]{padding:10px 15px}mat-form-field.coordinates[_ngcontent-%COMP%]{width:120px}mat-form-field.coordinates2[_ngcontent-%COMP%]{width:120px;padding:0 10px 0 3px}mat-form-field.igo-input-container[_ngcontent-%COMP%]{width:60%;padding:0 15px}.igo-form-button-group[_ngcontent-%COMP%]{padding:0 10px;margin:0 10px}.center-toggle[_ngcontent-%COMP%]{padding:10px 15px 35px}mat-slide-toggle[_ngcontent-%COMP%]{font-size:small}.igo-zoom[_ngcontent-%COMP%]{padding:0 15px}"] });
|
|
3456
3704
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
|
|
3457
3705
|
type: Component,
|
|
3458
3706
|
args: [{
|
|
@@ -3460,7 +3708,7 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3460
3708
|
templateUrl: './advanced-coordinates.component.html',
|
|
3461
3709
|
styleUrls: ['./advanced-coordinates.component.scss']
|
|
3462
3710
|
}]
|
|
3463
|
-
}], function () { return [{ type: MapState }, { type: i2$
|
|
3711
|
+
}], function () { return [{ type: MapState }, { type: i2$1.LanguageService }, { type: i2$1.MessageService }, { type: i0.ChangeDetectorRef }, { type: i2$1.StorageService }, { type: i2$1.ConfigService }, { type: i3$1.FormBuilder }]; }, { projectionsLimitations: [{
|
|
3464
3712
|
type: Input
|
|
3465
3713
|
}] }); })();
|
|
3466
3714
|
|
|
@@ -3663,7 +3911,7 @@ MeasurerToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Measu
|
|
|
3663
3911
|
i0.ɵɵelement(0, "igo-measurer", 0);
|
|
3664
3912
|
} if (rf & 2) {
|
|
3665
3913
|
i0.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
3666
|
-
} }, directives: [i1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
|
|
3914
|
+
} }, directives: [i1$1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
|
|
3667
3915
|
MeasurerToolComponent = __decorate([
|
|
3668
3916
|
ToolComponent({
|
|
3669
3917
|
name: 'measurer',
|
|
@@ -3733,7 +3981,7 @@ PrintToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PrintToo
|
|
|
3733
3981
|
i0.ɵɵelement(0, "igo-print", 0);
|
|
3734
3982
|
} if (rf & 2) {
|
|
3735
3983
|
i0.ɵɵproperty("map", ctx.map);
|
|
3736
|
-
} }, directives: [i1.PrintComponent], encapsulation: 2 });
|
|
3984
|
+
} }, directives: [i1$1.PrintComponent], encapsulation: 2 });
|
|
3737
3985
|
PrintToolComponent = __decorate([
|
|
3738
3986
|
ToolComponent({
|
|
3739
3987
|
name: 'print',
|
|
@@ -3863,14 +4111,14 @@ class SearchState {
|
|
|
3863
4111
|
this.searchResultsGeometryEnabled$.next(value);
|
|
3864
4112
|
}
|
|
3865
4113
|
}
|
|
3866
|
-
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1.SearchSourceService), i0.ɵɵinject(i2$
|
|
4114
|
+
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0.ɵɵinject(i1$1.SearchSourceService), i0.ɵɵinject(i2$1.StorageService), i0.ɵɵinject(i2$1.ConfigService)); };
|
|
3867
4115
|
SearchState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SearchState, factory: SearchState.ɵfac, providedIn: 'root' });
|
|
3868
4116
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchState, [{
|
|
3869
4117
|
type: Injectable,
|
|
3870
4118
|
args: [{
|
|
3871
4119
|
providedIn: 'root'
|
|
3872
4120
|
}]
|
|
3873
|
-
}], function () { return [{ type: i1.SearchSourceService }, { type: i2$
|
|
4121
|
+
}], function () { return [{ type: i1$1.SearchSourceService }, { type: i2$1.StorageService }, { type: i2$1.ConfigService }]; }, null); })();
|
|
3874
4122
|
|
|
3875
4123
|
class SearchBarBindingDirective {
|
|
3876
4124
|
constructor(component, searchState) {
|
|
@@ -3910,7 +4158,7 @@ class SearchBarBindingDirective {
|
|
|
3910
4158
|
}
|
|
3911
4159
|
}
|
|
3912
4160
|
}
|
|
3913
|
-
SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0.ɵɵdirectiveInject(i1.SearchBarComponent, 2), i0.ɵɵdirectiveInject(SearchState)); };
|
|
4161
|
+
SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0.ɵɵdirectiveInject(i1$1.SearchBarComponent, 2), i0.ɵɵdirectiveInject(SearchState)); };
|
|
3914
4162
|
SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SearchBarBindingDirective, selectors: [["", "igoSearchBarBinding", ""]], hostBindings: function SearchBarBindingDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
3915
4163
|
i0.ɵɵlistener("searchTermChange", function SearchBarBindingDirective_searchTermChange_HostBindingHandler($event) { return ctx.onSearchTermChange($event); })("searchTypeChange", function SearchBarBindingDirective_searchTypeChange_HostBindingHandler($event) { return ctx.onSearchTypeChange($event); });
|
|
3916
4164
|
} } });
|
|
@@ -3919,7 +4167,7 @@ SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: S
|
|
|
3919
4167
|
args: [{
|
|
3920
4168
|
selector: '[igoSearchBarBinding]'
|
|
3921
4169
|
}]
|
|
3922
|
-
}], function () { return [{ type: i1.SearchBarComponent, decorators: [{
|
|
4170
|
+
}], function () { return [{ type: i1$1.SearchBarComponent, decorators: [{
|
|
3923
4171
|
type: Self
|
|
3924
4172
|
}] }, { type: SearchState }]; }, { onSearchTermChange: [{
|
|
3925
4173
|
type: HostListener,
|
|
@@ -4466,7 +4714,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4466
4714
|
}, 250);
|
|
4467
4715
|
}
|
|
4468
4716
|
};
|
|
4469
|
-
SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2$
|
|
4717
|
+
SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2$1.ConfigService)); };
|
|
4470
4718
|
SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultsToolComponent, selectors: [["igo-search-results-tool"]], inputs: { showIcons: "showIcons", topPanelState: "topPanelState" }, decls: 3, vars: 4, consts: [["style", "margin: 10px;", 4, "ngIf"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state", 4, "ngIf"], [2, "margin", "10px"], [1, "mat-typography"], [3, "innerHTML"], ["initial", "100%", "initialMobile", "100%", "collapsed", "calc(100% - 58px)", "collapsedMobile", "calc(100% - 58px)", "expanded", "60%", "expandedMobile", "60%", 3, "state"], ["topPanel", ""], [1, "igo-content"], ["placeholder", "false", 3, "store", "showIcons", "term", "termSplitter", "settingsChange$", "resultFocus", "resultSelect", "resultUnfocus", "resultMouseenter", "resultMouseleave", "moreResults"], ["igoSearchItemToolbar", ""], ["igoFlexibleFill", "", 1, "igo-content"], [3, "title", 4, "ngIf"], [3, "map", "layer"], [3, "title"], ["mat-icon-button", "", "panelLeftButton", "", 1, "igo-icon-button", 3, "click"], [3, "svgIcon"], ["mat-icon-button", "", "panelRightButton", "", "class", "igo-icon-button", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["igoFeatureDetailsDirective", "", 3, "feature", "map", "toolbox", "routingEvent"], ["mat-icon-button", "", "panelRightButton", "", "matTooltipShowDelay", "500", 1, "igo-icon-button", 3, "matTooltip", "click"], ["matBadgeColor", "accent", "matBadgeSize", "small", "svgIcon", "magnify-plus-outline", 3, "matBadge", "matBadgeHidden"]], template: function SearchResultsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4471
4719
|
i0.ɵɵtemplate(0, SearchResultsToolComponent_div_0_Template, 13, 11, "div", 0);
|
|
4472
4720
|
i0.ɵɵtemplate(1, SearchResultsToolComponent_igo_flexible_1_Template, 10, 11, "igo-flexible", 1);
|
|
@@ -4475,7 +4723,7 @@ SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
4475
4723
|
i0.ɵɵproperty("ngIf", !ctx.store || ctx.store.stateView.empty);
|
|
4476
4724
|
i0.ɵɵadvance(1);
|
|
4477
4725
|
i0.ɵɵproperty("ngIf", ctx.store && i0.ɵɵpipeBind1(2, 2, ctx.store.stateView.empty$) === false);
|
|
4478
|
-
} }, directives: [i4.NgIf,
|
|
4726
|
+
} }, directives: [i4$1.NgIf, i4.FlexibleComponent, i1$1.SearchResultsComponent, i1$1.SearchResultAddButtonComponent, i4.PanelComponent, i3.MatButton, i6.MatIcon, i1$1.FeatureDetailsComponent, i1$1.FeatureDetailsDirective, i4$2.MatTooltip, i12.MatBadge], pipes: [i4$1.AsyncPipe, i8.TranslatePipe, i4.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
|
|
4479
4727
|
SearchResultsToolComponent = __decorate([
|
|
4480
4728
|
ToolComponent({
|
|
4481
4729
|
name: 'searchResults',
|
|
@@ -4490,7 +4738,7 @@ SearchResultsToolComponent = __decorate([
|
|
|
4490
4738
|
templateUrl: './search-results-tool.component.html',
|
|
4491
4739
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4492
4740
|
}]
|
|
4493
|
-
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2$
|
|
4741
|
+
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2$1.ConfigService }]; }, { showIcons: [{
|
|
4494
4742
|
type: Input
|
|
4495
4743
|
}], topPanelState: [{
|
|
4496
4744
|
type: Input
|
|
@@ -4578,7 +4826,7 @@ let OgcFilterToolComponent = class OgcFilterToolComponent {
|
|
|
4578
4826
|
OgcFilterToolComponent.ɵfac = function OgcFilterToolComponent_Factory(t) { return new (t || OgcFilterToolComponent)(); };
|
|
4579
4827
|
OgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OgcFilterToolComponent, selectors: [["igo-ogc-filter-tool"]], decls: 1, vars: 0, consts: [["igoOgcFilterableListBinding", ""]], template: function OgcFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4580
4828
|
i0.ɵɵelement(0, "igo-ogc-filterable-list", 0);
|
|
4581
|
-
} }, directives: [i1.OgcFilterableListComponent, i1.OgcFilterableListBindingDirective], encapsulation: 2 });
|
|
4829
|
+
} }, directives: [i1$1.OgcFilterableListComponent, i1$1.OgcFilterableListBindingDirective], encapsulation: 2 });
|
|
4582
4830
|
OgcFilterToolComponent = __decorate([
|
|
4583
4831
|
ToolComponent({
|
|
4584
4832
|
name: 'ogcFilter',
|
|
@@ -4600,7 +4848,7 @@ let TimeFilterToolComponent = class TimeFilterToolComponent {
|
|
|
4600
4848
|
TimeFilterToolComponent.ɵfac = function TimeFilterToolComponent_Factory(t) { return new (t || TimeFilterToolComponent)(); };
|
|
4601
4849
|
TimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeFilterToolComponent, selectors: [["igo-time-filter-tool"]], decls: 1, vars: 0, consts: [["igoTimeFilterListBinding", ""]], template: function TimeFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4602
4850
|
i0.ɵɵelement(0, "igo-time-filter-list", 0);
|
|
4603
|
-
} }, directives: [i1.TimeFilterListComponent, i1.TimeFilterListBindingDirective], encapsulation: 2 });
|
|
4851
|
+
} }, directives: [i1$1.TimeFilterListComponent, i1$1.TimeFilterListBindingDirective], encapsulation: 2 });
|
|
4604
4852
|
TimeFilterToolComponent = __decorate([
|
|
4605
4853
|
ToolComponent({
|
|
4606
4854
|
name: 'timeFilter',
|
|
@@ -4894,6 +5142,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
4894
5142
|
.pipe(take(1))
|
|
4895
5143
|
.subscribe((dataSource) => {
|
|
4896
5144
|
const olLayer = this.layerService.createLayer({
|
|
5145
|
+
isIgoInternalLayer: true,
|
|
4897
5146
|
title: ('Zone ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
4898
5147
|
workspace: { enabled: true },
|
|
4899
5148
|
_internal: {
|
|
@@ -4984,6 +5233,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
4984
5233
|
style = this.createSvgIcon(icon) || createOverlayMarkerStyle();
|
|
4985
5234
|
}
|
|
4986
5235
|
const olLayer = this.layerService.createLayer({
|
|
5236
|
+
isIgoInternalLayer: true,
|
|
4987
5237
|
title: (features[0].meta.title + ' ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
4988
5238
|
source: dataSource,
|
|
4989
5239
|
visible: true,
|
|
@@ -5049,6 +5299,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5049
5299
|
.pipe(take(1))
|
|
5050
5300
|
.subscribe((dataSource) => {
|
|
5051
5301
|
const olLayer = this.layerService.createLayer({
|
|
5302
|
+
isIgoInternalLayer: true,
|
|
5052
5303
|
title: (features[0].meta.title + ' ' + i + ' - ' + this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
5053
5304
|
source: dataSource,
|
|
5054
5305
|
visible: true
|
|
@@ -5089,7 +5340,7 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
5089
5340
|
this.activeLayers.push(layer);
|
|
5090
5341
|
}
|
|
5091
5342
|
};
|
|
5092
|
-
SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i6.MatIconRegistry), i0.ɵɵdirectiveInject(i1.SpatialFilterService), i0.ɵɵdirectiveInject(i1.DataSourceService), i0.ɵɵdirectiveInject(i1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$
|
|
5343
|
+
SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i6.MatIconRegistry), i0.ɵɵdirectiveInject(i1$1.SpatialFilterService), i0.ɵɵdirectiveInject(i1$1.DataSourceService), i0.ɵɵdirectiveInject(i1$1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$1.MessageService), i0.ɵɵdirectiveInject(i2$1.LanguageService), i0.ɵɵdirectiveInject(ImportExportState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(WorkspaceState), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5093
5344
|
SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace", "entityChange"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5094
5345
|
i0.ɵɵelementStart(0, "igo-panel");
|
|
5095
5346
|
i0.ɵɵelementStart(1, "igo-spatial-filter-type", 0);
|
|
@@ -5110,7 +5361,7 @@ SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
5110
5361
|
i0.ɵɵproperty("type", ctx.type)("queryType", ctx.queryType)("map", ctx.map)("zone", ctx.zone)("loading", ctx.loading)("store", ctx.store)("layers", ctx.activeLayers)("allLayers", ctx.layers)("thematicLength", ctx.thematicLength);
|
|
5111
5362
|
i0.ɵɵadvance(2);
|
|
5112
5363
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
|
|
5113
|
-
} }, directives: [i1.SpatialFilterTypeComponent, i1.SpatialFilterItemComponent, i4.NgIf], pipes: [i4.AsyncPipe], styles: [""], changeDetection: 0 });
|
|
5364
|
+
} }, directives: [i1$1.SpatialFilterTypeComponent, i1$1.SpatialFilterItemComponent, i4$1.NgIf], pipes: [i4$1.AsyncPipe], styles: [""], changeDetection: 0 });
|
|
5114
5365
|
SpatialFilterToolComponent = __decorate([
|
|
5115
5366
|
ToolComponent({
|
|
5116
5367
|
name: 'spatialFilter',
|
|
@@ -5129,7 +5380,7 @@ SpatialFilterToolComponent = __decorate([
|
|
|
5129
5380
|
styleUrls: ['./spatial-filter-tool.component.scss'],
|
|
5130
5381
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5131
5382
|
}]
|
|
5132
|
-
}], function () { return [{ type: i6.MatIconRegistry }, { type: i1.SpatialFilterService }, { type: i1.DataSourceService }, { type: i1.LayerService }, { type: MapState }, { type: i2$
|
|
5383
|
+
}], function () { return [{ type: i6.MatIconRegistry }, { type: i1$1.SpatialFilterService }, { type: i1$1.DataSourceService }, { type: i1$1.LayerService }, { type: MapState }, { type: i2$1.MessageService }, { type: i2$1.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0.ChangeDetectorRef }]; }, { type: [{
|
|
5133
5384
|
type: Input
|
|
5134
5385
|
}], itemType: [{
|
|
5135
5386
|
type: Input
|
|
@@ -5168,7 +5419,7 @@ ActiveTimeFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
5168
5419
|
i0.ɵɵelement(0, "igo-time-filter-item", 0);
|
|
5169
5420
|
} if (rf & 2) {
|
|
5170
5421
|
i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
5171
|
-
} }, directives: [i1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
|
|
5422
|
+
} }, directives: [i1$1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
|
|
5172
5423
|
ActiveTimeFilterToolComponent = __decorate([
|
|
5173
5424
|
ToolComponent({
|
|
5174
5425
|
name: 'activeTimeFilter',
|
|
@@ -5217,7 +5468,7 @@ ActiveOgcFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
5217
5468
|
i0.ɵɵelement(0, "igo-ogc-filterable-item", 0);
|
|
5218
5469
|
} if (rf & 2) {
|
|
5219
5470
|
i0.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
5220
|
-
} }, directives: [i1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
|
|
5471
|
+
} }, directives: [i1$1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
|
|
5221
5472
|
ActiveOgcFilterToolComponent = __decorate([
|
|
5222
5473
|
ToolComponent({
|
|
5223
5474
|
name: 'activeOgcFilter',
|
|
@@ -5343,8 +5594,8 @@ let AboutToolComponent = class AboutToolComponent {
|
|
|
5343
5594
|
this._headerHtml = this.languageService.translate.instant('igo.integration.aboutTool.headerHtml');
|
|
5344
5595
|
this.loading = false;
|
|
5345
5596
|
this.version = configService.getConfig('version');
|
|
5346
|
-
this.baseUrlProfil = configService.getConfig('
|
|
5347
|
-
this.baseUrlGuide = configService.getConfig('depot.url') + '
|
|
5597
|
+
this.baseUrlProfil = configService.getConfig('storage.url');
|
|
5598
|
+
this.baseUrlGuide = configService.getConfig('depot.url') + configService.getConfig('depot.guideUrl');
|
|
5348
5599
|
}
|
|
5349
5600
|
get headerHtml() {
|
|
5350
5601
|
return this._headerHtml;
|
|
@@ -5401,7 +5652,7 @@ let AboutToolComponent = class AboutToolComponent {
|
|
|
5401
5652
|
return name;
|
|
5402
5653
|
}
|
|
5403
5654
|
};
|
|
5404
|
-
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$
|
|
5655
|
+
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$1.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3$2.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$1.LanguageService)); };
|
|
5405
5656
|
AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToolComponent, selectors: [["igo-about-tool"]], inputs: { headerHtml: "headerHtml", html: "html", discoverTitleInLocale: "discoverTitleInLocale", trainingGuideURLs: "trainingGuideURLs" }, decls: 10, vars: 11, consts: [["mat-raised-button", "", "tourToStart", "global", "menuIsOpen", "true", "styleButton", "raised", 3, "discoverTitleInLocale$"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "click", 4, "ngIf"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["menu", "matMenu"], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "click"], ["svgIcon", "file-document"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click"]], template: function AboutToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5406
5657
|
i0.ɵɵelement(0, "p");
|
|
5407
5658
|
i0.ɵɵelement(1, "igo-interactive-tour", 0);
|
|
@@ -5426,7 +5677,7 @@ AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToo
|
|
|
5426
5677
|
i0.ɵɵproperty("ngIf", ctx.headerHtml !== "");
|
|
5427
5678
|
i0.ɵɵadvance(1);
|
|
5428
5679
|
i0.ɵɵproperty("html", i0.ɵɵpipeBind2(9, 6, ctx.html, i0.ɵɵpureFunction1(9, _c0, ctx.version)));
|
|
5429
|
-
} }, directives: [
|
|
5680
|
+
} }, directives: [i4.InteractiveTourComponent, i4$1.NgIf, i6$2.MatMenu, i4$1.NgForOf, i4.CustomHtmlComponent, i3.MatButton, i4$2.MatTooltip, i6.MatIcon, i6$2.MatMenuTrigger, i6$2.MatMenuItem], pipes: [i8.TranslatePipe], styles: ["igo-interactive-tour[_ngcontent-%COMP%]{margin-left:20px}.training-guide-button[_ngcontent-%COMP%]{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}"] });
|
|
5430
5681
|
AboutToolComponent = __decorate([
|
|
5431
5682
|
ToolComponent({
|
|
5432
5683
|
name: 'about',
|
|
@@ -5441,7 +5692,7 @@ AboutToolComponent = __decorate([
|
|
|
5441
5692
|
templateUrl: './about-tool.component.html',
|
|
5442
5693
|
styleUrls: ['./about-tool.component.scss']
|
|
5443
5694
|
}]
|
|
5444
|
-
}], function () { return [{ type: i2$
|
|
5695
|
+
}], function () { return [{ type: i2$1.ConfigService }, { type: i2.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$1.LanguageService }]; }, { headerHtml: [{
|
|
5445
5696
|
type: Input
|
|
5446
5697
|
}], html: [{
|
|
5447
5698
|
type: Input
|
|
@@ -5582,87 +5833,6 @@ IgoAppToolModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[]] });
|
|
|
5582
5833
|
}]
|
|
5583
5834
|
}], null, null); })();
|
|
5584
5835
|
|
|
5585
|
-
/**
|
|
5586
|
-
* Service that holds the state of the context module
|
|
5587
|
-
*/
|
|
5588
|
-
class ContextState {
|
|
5589
|
-
constructor(contextService, toolService, toolState, languageService) {
|
|
5590
|
-
this.contextService = contextService;
|
|
5591
|
-
this.toolService = toolService;
|
|
5592
|
-
this.toolState = toolState;
|
|
5593
|
-
this.languageService = languageService;
|
|
5594
|
-
/**
|
|
5595
|
-
* Observable of the active context
|
|
5596
|
-
*/
|
|
5597
|
-
this.context$ = new BehaviorSubject(undefined);
|
|
5598
|
-
this.contextService.context$.subscribe((context) => {
|
|
5599
|
-
this.onContextChange(context);
|
|
5600
|
-
});
|
|
5601
|
-
this.contextService.toolsChanged$.subscribe((context) => {
|
|
5602
|
-
this.updateTools(context);
|
|
5603
|
-
});
|
|
5604
|
-
}
|
|
5605
|
-
/**
|
|
5606
|
-
* Set the active context
|
|
5607
|
-
* @param context Detailed context
|
|
5608
|
-
*/
|
|
5609
|
-
setContext(context) {
|
|
5610
|
-
this.updateTools(context);
|
|
5611
|
-
this.context$.next(context);
|
|
5612
|
-
}
|
|
5613
|
-
/**
|
|
5614
|
-
* Update the tool state with the context's tools
|
|
5615
|
-
* @param context Detailed context
|
|
5616
|
-
*/
|
|
5617
|
-
updateTools(context) {
|
|
5618
|
-
const toolbox = this.toolState.toolbox;
|
|
5619
|
-
const tools = [];
|
|
5620
|
-
const contextTools = context.tools || [];
|
|
5621
|
-
contextTools.forEach((contextTool) => {
|
|
5622
|
-
const baseTool = this.toolService.getTool(contextTool.name);
|
|
5623
|
-
if (baseTool === undefined) {
|
|
5624
|
-
return;
|
|
5625
|
-
}
|
|
5626
|
-
const options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
|
|
5627
|
-
const tool = Object.assign({}, baseTool, contextTool, { options });
|
|
5628
|
-
tools.push(tool);
|
|
5629
|
-
});
|
|
5630
|
-
tools.forEach((tool) => {
|
|
5631
|
-
if (tool.parent) {
|
|
5632
|
-
const parentIndex = tools.findIndex((el) => el.name === tool.parent);
|
|
5633
|
-
if (parentIndex !== -1) {
|
|
5634
|
-
tools[parentIndex].children = [];
|
|
5635
|
-
tools[parentIndex].children.push(tool.name);
|
|
5636
|
-
}
|
|
5637
|
-
}
|
|
5638
|
-
});
|
|
5639
|
-
toolbox.setTools(tools);
|
|
5640
|
-
toolbox.setToolbar(context.toolbar || []);
|
|
5641
|
-
// TODO: This is a patch so the context service can work without
|
|
5642
|
-
// injecting the ToolState or without being completely refactored
|
|
5643
|
-
this.contextService.setTools([].concat(tools));
|
|
5644
|
-
this.contextService.setToolbar(context.toolbar || []);
|
|
5645
|
-
}
|
|
5646
|
-
/**
|
|
5647
|
-
* Set a new context and update the tool state
|
|
5648
|
-
* @param context Detailed context
|
|
5649
|
-
*/
|
|
5650
|
-
onContextChange(context) {
|
|
5651
|
-
if (context === undefined) {
|
|
5652
|
-
return;
|
|
5653
|
-
}
|
|
5654
|
-
this.setContext(context);
|
|
5655
|
-
}
|
|
5656
|
-
}
|
|
5657
|
-
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0.ɵɵinject(i2.ContextService), i0.ɵɵinject(i7.ToolService), i0.ɵɵinject(ToolState), i0.ɵɵinject(i2$2.LanguageService)); };
|
|
5658
|
-
ContextState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
|
|
5659
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextState, [{
|
|
5660
|
-
type: Injectable,
|
|
5661
|
-
args: [{
|
|
5662
|
-
providedIn: 'root'
|
|
5663
|
-
}]
|
|
5664
|
-
}], function () { return [{ type: i2.ContextService }, { type: i7.ToolService }, { type: ToolState }, { type: i2$2.LanguageService }]; }, null); })();
|
|
5665
|
-
|
|
5666
5836
|
/**
|
|
5667
5837
|
* Service that holds the state of the search module
|
|
5668
5838
|
*/
|
|
@@ -5718,14 +5888,14 @@ class AnalyticsListenerService {
|
|
|
5718
5888
|
});
|
|
5719
5889
|
}
|
|
5720
5890
|
}
|
|
5721
|
-
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2$
|
|
5891
|
+
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0.ɵɵinject(i2$1.AnalyticsService), i0.ɵɵinject(i2.AuthService), i0.ɵɵinject(ContextState), i0.ɵɵinject(SearchState), i0.ɵɵinject(ToolState)); };
|
|
5722
5892
|
AnalyticsListenerService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsListenerService, factory: AnalyticsListenerService.ɵfac, providedIn: 'root' });
|
|
5723
5893
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnalyticsListenerService, [{
|
|
5724
5894
|
type: Injectable,
|
|
5725
5895
|
args: [{
|
|
5726
5896
|
providedIn: 'root'
|
|
5727
5897
|
}]
|
|
5728
|
-
}], function () { return [{ type: i2$
|
|
5898
|
+
}], function () { return [{ type: i2$1.AnalyticsService }, { type: i2.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null); })();
|
|
5729
5899
|
|
|
5730
5900
|
/**
|
|
5731
5901
|
* Service that holds the state of the query module
|
|
@@ -5748,14 +5918,14 @@ class QueryState {
|
|
|
5748
5918
|
}
|
|
5749
5919
|
}
|
|
5750
5920
|
}
|
|
5751
|
-
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2$
|
|
5921
|
+
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0.ɵɵinject(i2$1.ConfigService)); };
|
|
5752
5922
|
QueryState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryState, factory: QueryState.ɵfac, providedIn: 'root' });
|
|
5753
5923
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryState, [{
|
|
5754
5924
|
type: Injectable,
|
|
5755
5925
|
args: [{
|
|
5756
5926
|
providedIn: 'root'
|
|
5757
5927
|
}]
|
|
5758
|
-
}], function () { return [{ type: i2$
|
|
5928
|
+
}], function () { return [{ type: i2$1.ConfigService }]; }, null); })();
|
|
5759
5929
|
|
|
5760
5930
|
/*
|
|
5761
5931
|
* Public API Surface of tools
|