@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@igo2/context'), require('@igo2/common'), require('rxjs'), require('@igo2/geo'), require('@angular/common'), require('rxjs/operators'), require('@igo2/auth'), require('@igo2/core'), require('@angular/material/button'), require('@angular/material/tooltip'), require('@angular/material/icon'), require('@ngx-translate/core'), require('@angular/material/tabs'), require('@angular/material/button-toggle'), require('@angular/material/list'), require('@angular/material/slide-toggle'), require('@angular/material/menu'), require('@angular/material/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/divider'), require('@igo2/utils'), require('ol/proj'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/badge'), require('ol/format/GeoJSON'), require('ol/Feature'), require('ol/geom/Point'), require('@turf/point-on-feature'), require('ol/style'), require('@angular/animations'), require('@angular/common/http')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@igo2/integration', ['exports', '@angular/core', '@igo2/context', '@igo2/common', 'rxjs', '@igo2/geo', '@angular/common', 'rxjs/operators', '@igo2/auth', '@igo2/core', '@angular/material/button', '@angular/material/tooltip', '@angular/material/icon', '@ngx-translate/core', '@angular/material/tabs', '@angular/material/button-toggle', '@angular/material/list', '@angular/material/slide-toggle', '@angular/material/menu', '@angular/material/core', '@angular/forms', '@angular/material/form-field', '@angular/material/select', '@angular/material/divider', '@igo2/utils', 'ol/proj', '@angular/material/input', '@angular/material/checkbox', '@angular/material/badge', 'ol/format/GeoJSON', 'ol/Feature', 'ol/geom/Point', '@turf/point-on-feature', 'ol/style', '@angular/animations', '@angular/common/http'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.integration = {}), global.ng.core, global.igoContext, global.igoCommon, global.rxjs, global.igoGeo, global.ng.common, global.rxjs.operators, global.igoAuth, global.igoCore, global.ng.material.button, global.ng.material.tooltip, global.ng.material.icon, global["ngxt-core"], global.ng.material.tabs, global.ng.material.buttonToggle, global.ng.material.list, global.ng.material.slideToggle, global.ng.material.menu, global.ng.material.core, global.ng.forms, global.ng.material.formField, global.ng.material.select, global.ng.material.divider, global.igoUtils, global.olProj, global.ng.material.input, global.ng.material.checkbox, global.ng.material.badge, global.olFormatGeoJSON, global.olFeature, global.olPoint, global.pointOnFeature, global.olstyle, global.ng.animations, global.ng.common.http));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
5
|
+
})(this, (function (exports, i0, i1, i4, rxjs, i1$1, i4$1, operators, i2, i2$1, i3, i4$2, i6, i8, i5, buttonToggle, i7, i10, i6$2, i8$1, i3$1, i6$1, i7$1, i9, utils, olproj, i10$1, checkbox, i12, olFormatGeoJSON, olFeature, olPoint, pointOnFeature, olstyle, animations, i3$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
29
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
30
28
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
29
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
32
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
32
33
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
33
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
|
|
34
34
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
35
|
-
var i4__namespace$
|
|
35
|
+
var i4__namespace$2 = /*#__PURE__*/_interopNamespace(i4$2);
|
|
36
36
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
37
37
|
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
38
38
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
39
|
-
var i7__namespace
|
|
39
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
40
40
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
41
41
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
42
42
|
var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
|
|
43
43
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
44
44
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
45
|
-
var i7__namespace$
|
|
45
|
+
var i7__namespace$1 = /*#__PURE__*/_interopNamespace(i7$1);
|
|
46
46
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
47
47
|
var olproj__namespace = /*#__PURE__*/_interopNamespace(olproj);
|
|
48
48
|
var i10__namespace$1 = /*#__PURE__*/_interopNamespace(i10$1);
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
};
|
|
475
475
|
return ToolState;
|
|
476
476
|
}());
|
|
477
|
-
ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0__namespace.ɵɵinject(
|
|
477
|
+
ToolState.ɵfac = function ToolState_Factory(t) { return new (t || ToolState)(i0__namespace.ɵɵinject(i4__namespace.ToolService), i0__namespace.ɵɵinject(ImportExportState)); };
|
|
478
478
|
ToolState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ToolState, factory: ToolState.ɵfac, providedIn: 'root' });
|
|
479
479
|
(function () {
|
|
480
480
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ToolState, [{
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
args: [{
|
|
483
483
|
providedIn: 'root'
|
|
484
484
|
}]
|
|
485
|
-
}], function () { return [{ type:
|
|
485
|
+
}], function () { return [{ type: i4__namespace.ToolService }, { type: ImportExportState }]; }, null);
|
|
486
486
|
})();
|
|
487
487
|
|
|
488
488
|
exports.ContextEditorToolComponent = /** @class */ (function () {
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
i0__namespace.ɵɵlistener("submitSuccessed", function ContextEditorToolComponent_Template_igo_context_edit_submitSuccessed_0_listener() { return ctx.submitSuccessed(); });
|
|
502
502
|
i0__namespace.ɵɵelementEnd();
|
|
503
503
|
}
|
|
504
|
-
}, directives: [
|
|
504
|
+
}, directives: [i1__namespace.ContextEditComponent, i1__namespace.ContextEditBindingDirective], encapsulation: 2 });
|
|
505
505
|
exports.ContextEditorToolComponent = __decorate([
|
|
506
|
-
|
|
506
|
+
i4.ToolComponent({
|
|
507
507
|
name: 'contextEditor',
|
|
508
508
|
title: 'igo.integration.tools.contexts',
|
|
509
509
|
icon: 'star',
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
) {
|
|
530
530
|
this.mapService = mapService;
|
|
531
531
|
this.projectionService = projectionService;
|
|
532
|
-
this._map = new i1.IgoMap({
|
|
532
|
+
this._map = new i1$1.IgoMap({
|
|
533
533
|
controls: {
|
|
534
534
|
scaleLine: true,
|
|
535
535
|
attribution: {
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
});
|
|
561
561
|
return MapState;
|
|
562
562
|
}());
|
|
563
|
-
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0__namespace.ɵɵinject(i1__namespace.MapService), i0__namespace.ɵɵinject(i1__namespace.ProjectionService)); };
|
|
563
|
+
MapState.ɵfac = function MapState_Factory(t) { return new (t || MapState)(i0__namespace.ɵɵinject(i1__namespace$1.MapService), i0__namespace.ɵɵinject(i1__namespace$1.ProjectionService)); };
|
|
564
564
|
MapState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MapState, factory: MapState.ɵfac, providedIn: 'root' });
|
|
565
565
|
(function () {
|
|
566
566
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MapState, [{
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
args: [{
|
|
569
569
|
providedIn: 'root'
|
|
570
570
|
}]
|
|
571
|
-
}], function () { return [{ type: i1__namespace.MapService }, { type: i1__namespace.ProjectionService }]; }, null);
|
|
571
|
+
}], function () { return [{ type: i1__namespace$1.MapService }, { type: i1__namespace$1.ProjectionService }]; }, null);
|
|
572
572
|
})();
|
|
573
573
|
|
|
574
574
|
exports.ContextManagerToolComponent = /** @class */ (function () {
|
|
@@ -600,9 +600,9 @@
|
|
|
600
600
|
if (rf & 2) {
|
|
601
601
|
i0__namespace.ɵɵproperty("map", ctx.map);
|
|
602
602
|
}
|
|
603
|
-
}, directives: [
|
|
603
|
+
}, directives: [i1__namespace.ContextListComponent, i1__namespace.ContextListBindingDirective], encapsulation: 2 });
|
|
604
604
|
exports.ContextManagerToolComponent = __decorate([
|
|
605
|
-
|
|
605
|
+
i4.ToolComponent({
|
|
606
606
|
name: 'contextManager',
|
|
607
607
|
title: 'igo.integration.tools.contexts',
|
|
608
608
|
icon: 'star'
|
|
@@ -630,9 +630,9 @@
|
|
|
630
630
|
if (rf & 1) {
|
|
631
631
|
i0__namespace.ɵɵelement(0, "igo-context-permissions", 0);
|
|
632
632
|
}
|
|
633
|
-
}, directives: [
|
|
633
|
+
}, directives: [i1__namespace.ContextPermissionsComponent, i1__namespace.ContextPermissionsBindingDirective], encapsulation: 2 });
|
|
634
634
|
exports.ContextPermissionManagerToolComponent = __decorate([
|
|
635
|
-
|
|
635
|
+
i4.ToolComponent({
|
|
636
636
|
name: 'contextPermissionManager',
|
|
637
637
|
title: 'igo.integration.tools.contexts',
|
|
638
638
|
icon: 'star',
|
|
@@ -716,9 +716,9 @@
|
|
|
716
716
|
if (rf & 2) {
|
|
717
717
|
i0__namespace.ɵɵproperty("map", ctx.map);
|
|
718
718
|
}
|
|
719
|
-
}, directives: [
|
|
719
|
+
}, directives: [i1__namespace.ShareMapComponent], encapsulation: 2 });
|
|
720
720
|
exports.ContextShareToolComponent = __decorate([
|
|
721
|
-
|
|
721
|
+
i4.ToolComponent({
|
|
722
722
|
name: 'shareMap',
|
|
723
723
|
title: 'igo.integration.tools.shareMap',
|
|
724
724
|
icon: 'share-variant'
|
|
@@ -741,12 +741,12 @@
|
|
|
741
741
|
}());
|
|
742
742
|
IgoAppContextModule.ɵfac = function IgoAppContextModule_Factory(t) { return new (t || IgoAppContextModule)(); };
|
|
743
743
|
IgoAppContextModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppContextModule });
|
|
744
|
-
IgoAppContextModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
744
|
+
IgoAppContextModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoContextModule]] });
|
|
745
745
|
(function () {
|
|
746
746
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppContextModule, [{
|
|
747
747
|
type: i0.NgModule,
|
|
748
748
|
args: [{
|
|
749
|
-
imports: [
|
|
749
|
+
imports: [i1.IgoContextModule],
|
|
750
750
|
declarations: [
|
|
751
751
|
exports.ContextEditorToolComponent,
|
|
752
752
|
exports.ContextManagerToolComponent,
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppContextModule, { declarations: [exports.ContextEditorToolComponent,
|
|
768
768
|
exports.ContextManagerToolComponent,
|
|
769
769
|
exports.ContextPermissionManagerToolComponent,
|
|
770
|
-
exports.ContextShareToolComponent], imports: [
|
|
770
|
+
exports.ContextShareToolComponent], imports: [i1.IgoContextModule], exports: [exports.ContextEditorToolComponent,
|
|
771
771
|
exports.ContextManagerToolComponent,
|
|
772
772
|
exports.ContextPermissionManagerToolComponent,
|
|
773
773
|
exports.ContextShareToolComponent] });
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
* Catalog -> Catalog items store mapping
|
|
784
784
|
*/
|
|
785
785
|
this.catalogItemsStores = new Map();
|
|
786
|
-
this._catalogStore = new
|
|
786
|
+
this._catalogStore = new i4.EntityStore([]);
|
|
787
787
|
authService.authenticate$.subscribe(function () {
|
|
788
788
|
_this.clearCatalogItemsStores();
|
|
789
789
|
});
|
|
@@ -820,7 +820,7 @@
|
|
|
820
820
|
};
|
|
821
821
|
return CatalogState;
|
|
822
822
|
}());
|
|
823
|
-
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0__namespace.ɵɵinject(i2__namespace
|
|
823
|
+
CatalogState.ɵfac = function CatalogState_Factory(t) { return new (t || CatalogState)(i0__namespace.ɵɵinject(i2__namespace.AuthService)); };
|
|
824
824
|
CatalogState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: CatalogState, factory: CatalogState.ɵfac, providedIn: 'root' });
|
|
825
825
|
(function () {
|
|
826
826
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogState, [{
|
|
@@ -828,7 +828,7 @@
|
|
|
828
828
|
args: [{
|
|
829
829
|
providedIn: 'root'
|
|
830
830
|
}]
|
|
831
|
-
}], function () { return [{ type: i2__namespace
|
|
831
|
+
}], function () { return [{ type: i2__namespace.AuthService }]; }, null);
|
|
832
832
|
})();
|
|
833
833
|
|
|
834
834
|
/**
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
};
|
|
893
893
|
return CatalogLibraryToolComponent;
|
|
894
894
|
}());
|
|
895
|
-
exports.CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || exports.CatalogLibraryToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
895
|
+
exports.CatalogLibraryToolComponent.ɵfac = function CatalogLibraryToolComponent_Factory(t) { return new (t || exports.CatalogLibraryToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.StorageService)); };
|
|
896
896
|
exports.CatalogLibraryToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
897
897
|
if (rf & 1) {
|
|
898
898
|
i0__namespace.ɵɵelementStart(0, "igo-catalog-library", 0);
|
|
@@ -902,9 +902,9 @@
|
|
|
902
902
|
if (rf & 2) {
|
|
903
903
|
i0__namespace.ɵɵproperty("predefinedCatalogs", ctx.predefinedCatalogs)("addCatalogAllowed", ctx.addCatalogAllowed)("store", ctx.store);
|
|
904
904
|
}
|
|
905
|
-
}, directives: [i1__namespace.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
|
|
905
|
+
}, directives: [i1__namespace$1.CatalogLibaryComponent], encapsulation: 2, changeDetection: 0 });
|
|
906
906
|
exports.CatalogLibraryToolComponent = __decorate([
|
|
907
|
-
|
|
907
|
+
i4.ToolComponent({
|
|
908
908
|
name: 'catalog',
|
|
909
909
|
title: 'igo.integration.tools.catalog',
|
|
910
910
|
icon: 'layers-plus'
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
templateUrl: './catalog-library-tool.component.html',
|
|
919
919
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
920
920
|
}]
|
|
921
|
-
}], function () { return [{ type: i1__namespace.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2__namespace$
|
|
921
|
+
}], function () { return [{ type: i1__namespace$1.CatalogService }, { type: CatalogState }, { type: ToolState }, { type: i2__namespace$1.StorageService }]; }, { addCatalogAllowed: [{
|
|
922
922
|
type: i0.Input
|
|
923
923
|
}], predefinedCatalogs: [{
|
|
924
924
|
type: i0.Input
|
|
@@ -936,16 +936,16 @@
|
|
|
936
936
|
IgoAppCatalogLibraryToolModule.ɵfac = function IgoAppCatalogLibraryToolModule_Factory(t) { return new (t || IgoAppCatalogLibraryToolModule)(); };
|
|
937
937
|
IgoAppCatalogLibraryToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppCatalogLibraryToolModule });
|
|
938
938
|
IgoAppCatalogLibraryToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
939
|
-
i4.CommonModule,
|
|
940
|
-
i1.IgoCatalogLibraryModule
|
|
939
|
+
i4$1.CommonModule,
|
|
940
|
+
i1$1.IgoCatalogLibraryModule
|
|
941
941
|
]] });
|
|
942
942
|
(function () {
|
|
943
943
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppCatalogLibraryToolModule, [{
|
|
944
944
|
type: i0.NgModule,
|
|
945
945
|
args: [{
|
|
946
946
|
imports: [
|
|
947
|
-
i4.CommonModule,
|
|
948
|
-
i1.IgoCatalogLibraryModule
|
|
947
|
+
i4$1.CommonModule,
|
|
948
|
+
i1$1.IgoCatalogLibraryModule
|
|
949
949
|
],
|
|
950
950
|
declarations: [exports.CatalogLibraryToolComponent],
|
|
951
951
|
exports: [exports.CatalogLibraryToolComponent],
|
|
@@ -954,8 +954,8 @@
|
|
|
954
954
|
}], null, null);
|
|
955
955
|
})();
|
|
956
956
|
(function () {
|
|
957
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogLibraryToolModule, { declarations: [exports.CatalogLibraryToolComponent], imports: [i4.CommonModule,
|
|
958
|
-
i1.IgoCatalogLibraryModule], exports: [exports.CatalogLibraryToolComponent] });
|
|
957
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogLibraryToolModule, { declarations: [exports.CatalogLibraryToolComponent], imports: [i4$1.CommonModule,
|
|
958
|
+
i1$1.IgoCatalogLibraryModule], exports: [exports.CatalogLibraryToolComponent] });
|
|
959
959
|
})();
|
|
960
960
|
|
|
961
961
|
function CatalogBrowserToolComponent_igo_catalog_browser_0_Template(rf, ctx) {
|
|
@@ -1035,7 +1035,7 @@
|
|
|
1035
1035
|
this.store$.next(store);
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
|
-
store = new
|
|
1038
|
+
store = new i4.EntityStore([]);
|
|
1039
1039
|
this.catalogState.setCatalogItemsStore(catalog, store);
|
|
1040
1040
|
this.catalogService
|
|
1041
1041
|
.loadCatalogItems(catalog)
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
};
|
|
1048
1048
|
return CatalogBrowserToolComponent;
|
|
1049
1049
|
}());
|
|
1050
|
-
exports.CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || exports.CatalogBrowserToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace
|
|
1050
|
+
exports.CatalogBrowserToolComponent.ɵfac = function CatalogBrowserToolComponent_Factory(t) { return new (t || exports.CatalogBrowserToolComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.CatalogService), i0__namespace.ɵɵdirectiveInject(CatalogState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService)); };
|
|
1051
1051
|
exports.CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
1052
1052
|
if (rf & 1) {
|
|
1053
1053
|
i0__namespace.ɵɵtemplate(0, CatalogBrowserToolComponent_igo_catalog_browser_0_Template, 1, 4, "igo-catalog-browser", 0);
|
|
@@ -1056,9 +1056,9 @@
|
|
|
1056
1056
|
if (rf & 2) {
|
|
1057
1057
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.store$));
|
|
1058
1058
|
}
|
|
1059
|
-
}, directives: [i4__namespace.NgIf, i1__namespace.CatalogBrowserComponent], pipes: [i4__namespace.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
1059
|
+
}, directives: [i4__namespace$1.NgIf, i1__namespace$1.CatalogBrowserComponent], pipes: [i4__namespace$1.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
1060
1060
|
exports.CatalogBrowserToolComponent = __decorate([
|
|
1061
|
-
|
|
1061
|
+
i4.ToolComponent({
|
|
1062
1062
|
name: 'catalogBrowser',
|
|
1063
1063
|
title: 'igo.integration.tools.catalog',
|
|
1064
1064
|
icon: 'photo-browser',
|
|
@@ -1073,7 +1073,7 @@
|
|
|
1073
1073
|
templateUrl: './catalog-browser-tool.component.html',
|
|
1074
1074
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1075
1075
|
}]
|
|
1076
|
-
}], function () { return [{ type: i1__namespace.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2__namespace
|
|
1076
|
+
}], function () { return [{ type: i1__namespace$1.CatalogService }, { type: CatalogState }, { type: MapState }, { type: i2__namespace.AuthService }]; }, { toggleCollapsedGroup: [{
|
|
1077
1077
|
type: i0.Input
|
|
1078
1078
|
}] });
|
|
1079
1079
|
})();
|
|
@@ -1089,16 +1089,16 @@
|
|
|
1089
1089
|
IgoAppCatalogBrowserToolModule.ɵfac = function IgoAppCatalogBrowserToolModule_Factory(t) { return new (t || IgoAppCatalogBrowserToolModule)(); };
|
|
1090
1090
|
IgoAppCatalogBrowserToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppCatalogBrowserToolModule });
|
|
1091
1091
|
IgoAppCatalogBrowserToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
1092
|
-
i4.CommonModule,
|
|
1093
|
-
i1.IgoCatalogBrowserModule
|
|
1092
|
+
i4$1.CommonModule,
|
|
1093
|
+
i1$1.IgoCatalogBrowserModule
|
|
1094
1094
|
]] });
|
|
1095
1095
|
(function () {
|
|
1096
1096
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppCatalogBrowserToolModule, [{
|
|
1097
1097
|
type: i0.NgModule,
|
|
1098
1098
|
args: [{
|
|
1099
1099
|
imports: [
|
|
1100
|
-
i4.CommonModule,
|
|
1101
|
-
i1.IgoCatalogBrowserModule
|
|
1100
|
+
i4$1.CommonModule,
|
|
1101
|
+
i1$1.IgoCatalogBrowserModule
|
|
1102
1102
|
],
|
|
1103
1103
|
declarations: [exports.CatalogBrowserToolComponent],
|
|
1104
1104
|
exports: [exports.CatalogBrowserToolComponent],
|
|
@@ -1107,8 +1107,8 @@
|
|
|
1107
1107
|
}], null, null);
|
|
1108
1108
|
})();
|
|
1109
1109
|
(function () {
|
|
1110
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogBrowserToolModule, { declarations: [exports.CatalogBrowserToolComponent], imports: [i4.CommonModule,
|
|
1111
|
-
i1.IgoCatalogBrowserModule], exports: [exports.CatalogBrowserToolComponent] });
|
|
1110
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppCatalogBrowserToolModule, { declarations: [exports.CatalogBrowserToolComponent], imports: [i4$1.CommonModule,
|
|
1111
|
+
i1$1.IgoCatalogBrowserModule], exports: [exports.CatalogBrowserToolComponent] });
|
|
1112
1112
|
})();
|
|
1113
1113
|
|
|
1114
1114
|
var IgoAppCatalogModule = /** @class */ (function () {
|
|
@@ -1149,20 +1149,20 @@
|
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Store that holds the stop
|
|
1151
1151
|
*/
|
|
1152
|
-
this.stopsStore = new i1.StopsStore([]);
|
|
1152
|
+
this.stopsStore = new i1$1.StopsStore([]);
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Store that holds the driving stops as feature
|
|
1155
1155
|
*/
|
|
1156
|
-
this.stopsFeatureStore = new i1.StopsFeatureStore([], {
|
|
1156
|
+
this.stopsFeatureStore = new i1$1.StopsFeatureStore([], {
|
|
1157
1157
|
map: this.mapState.map
|
|
1158
1158
|
});
|
|
1159
1159
|
/**
|
|
1160
1160
|
* Store that holds the driving route as feature
|
|
1161
1161
|
*/
|
|
1162
|
-
this.routesFeatureStore = new i1.RoutesFeatureStore([], {
|
|
1162
|
+
this.routesFeatureStore = new i1$1.RoutesFeatureStore([], {
|
|
1163
1163
|
map: this.mapState.map
|
|
1164
1164
|
});
|
|
1165
|
-
this.stepFeatureStore = new i1.StepFeatureStore([], {
|
|
1165
|
+
this.stepFeatureStore = new i1$1.StepFeatureStore([], {
|
|
1166
1166
|
map: this.mapState.map
|
|
1167
1167
|
});
|
|
1168
1168
|
this.debounceTime = 200;
|
|
@@ -1203,13 +1203,101 @@
|
|
|
1203
1203
|
}], function () { return [{ type: MapState }]; }, null);
|
|
1204
1204
|
})();
|
|
1205
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* Service that holds the state of the context module
|
|
1208
|
+
*/
|
|
1209
|
+
var ContextState = /** @class */ (function () {
|
|
1210
|
+
function ContextState(contextService, toolService, toolState, languageService) {
|
|
1211
|
+
var _this = this;
|
|
1212
|
+
this.contextService = contextService;
|
|
1213
|
+
this.toolService = toolService;
|
|
1214
|
+
this.toolState = toolState;
|
|
1215
|
+
this.languageService = languageService;
|
|
1216
|
+
/**
|
|
1217
|
+
* Observable of the active context
|
|
1218
|
+
*/
|
|
1219
|
+
this.context$ = new rxjs.BehaviorSubject(undefined);
|
|
1220
|
+
this.contextService.context$.subscribe(function (context) {
|
|
1221
|
+
_this.onContextChange(context);
|
|
1222
|
+
});
|
|
1223
|
+
this.contextService.toolsChanged$.subscribe(function (context) {
|
|
1224
|
+
_this.updateTools(context);
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Set the active context
|
|
1229
|
+
* @param context Detailed context
|
|
1230
|
+
*/
|
|
1231
|
+
ContextState.prototype.setContext = function (context) {
|
|
1232
|
+
this.updateTools(context);
|
|
1233
|
+
this.context$.next(context);
|
|
1234
|
+
};
|
|
1235
|
+
/**
|
|
1236
|
+
* Update the tool state with the context's tools
|
|
1237
|
+
* @param context Detailed context
|
|
1238
|
+
*/
|
|
1239
|
+
ContextState.prototype.updateTools = function (context) {
|
|
1240
|
+
var _this = this;
|
|
1241
|
+
var toolbox = this.toolState.toolbox;
|
|
1242
|
+
var tools = [];
|
|
1243
|
+
var contextTools = context.tools || [];
|
|
1244
|
+
contextTools.forEach(function (contextTool) {
|
|
1245
|
+
var baseTool = _this.toolService.getTool(contextTool.name);
|
|
1246
|
+
if (baseTool === undefined) {
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
var options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
|
|
1250
|
+
var tool = Object.assign({}, baseTool, contextTool, { options: options });
|
|
1251
|
+
tools.push(tool);
|
|
1252
|
+
});
|
|
1253
|
+
tools.forEach(function (tool) {
|
|
1254
|
+
if (tool.parent) {
|
|
1255
|
+
var parentIndex = tools.findIndex(function (el) { return el.name === tool.parent; });
|
|
1256
|
+
if (parentIndex !== -1) {
|
|
1257
|
+
tools[parentIndex].children = [];
|
|
1258
|
+
tools[parentIndex].children.push(tool.name);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
toolbox.setTools(tools);
|
|
1263
|
+
toolbox.setToolbar(context.toolbar || []);
|
|
1264
|
+
// TODO: This is a patch so the context service can work without
|
|
1265
|
+
// injecting the ToolState or without being completely refactored
|
|
1266
|
+
this.contextService.setTools([].concat(tools));
|
|
1267
|
+
this.contextService.setToolbar(context.toolbar || []);
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* Set a new context and update the tool state
|
|
1271
|
+
* @param context Detailed context
|
|
1272
|
+
*/
|
|
1273
|
+
ContextState.prototype.onContextChange = function (context) {
|
|
1274
|
+
if (context === undefined) {
|
|
1275
|
+
return;
|
|
1276
|
+
}
|
|
1277
|
+
this.setContext(context);
|
|
1278
|
+
};
|
|
1279
|
+
return ContextState;
|
|
1280
|
+
}());
|
|
1281
|
+
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0__namespace.ɵɵinject(i1__namespace.ContextService), i0__namespace.ɵɵinject(i4__namespace.ToolService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace$1.LanguageService)); };
|
|
1282
|
+
ContextState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
|
|
1283
|
+
(function () {
|
|
1284
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextState, [{
|
|
1285
|
+
type: i0.Injectable,
|
|
1286
|
+
args: [{
|
|
1287
|
+
providedIn: 'root'
|
|
1288
|
+
}]
|
|
1289
|
+
}], function () { return [{ type: i1__namespace.ContextService }, { type: i4__namespace.ToolService }, { type: ToolState }, { type: i2__namespace$1.LanguageService }]; }, null);
|
|
1290
|
+
})();
|
|
1291
|
+
|
|
1206
1292
|
exports.DirectionsToolComponent = /** @class */ (function () {
|
|
1207
|
-
function DirectionsToolComponent(directionState, mapState, languageService, messageService, storageService) {
|
|
1293
|
+
function DirectionsToolComponent(directionState, mapState, languageService, messageService, storageService, contextState, authService) {
|
|
1208
1294
|
this.directionState = directionState;
|
|
1209
1295
|
this.mapState = mapState;
|
|
1210
1296
|
this.languageService = languageService;
|
|
1211
1297
|
this.messageService = messageService;
|
|
1212
1298
|
this.storageService = storageService;
|
|
1299
|
+
this.contextState = contextState;
|
|
1300
|
+
this.authService = authService;
|
|
1213
1301
|
}
|
|
1214
1302
|
Object.defineProperty(DirectionsToolComponent.prototype, "stopsStore", {
|
|
1215
1303
|
/**
|
|
@@ -1271,28 +1359,34 @@
|
|
|
1271
1359
|
configurable: true
|
|
1272
1360
|
});
|
|
1273
1361
|
DirectionsToolComponent.prototype.ngOnInit = function () {
|
|
1362
|
+
var _this = this;
|
|
1274
1363
|
var warningShown = this.storageService.get('direction.warning.shown');
|
|
1275
1364
|
if (!warningShown) {
|
|
1276
1365
|
var translate = this.languageService.translate;
|
|
1277
1366
|
var title = translate.instant('igo.integration.directions.warning.title');
|
|
1278
1367
|
var msg = translate.instant('igo.integration.directions.warning.message');
|
|
1279
1368
|
this.messageService.info(msg, title, { timeOut: 20000 });
|
|
1280
|
-
this.storageService.set('direction.warning.shown', true, i2$
|
|
1369
|
+
this.storageService.set('direction.warning.shown', true, i2$1.StorageScope.SESSION);
|
|
1281
1370
|
}
|
|
1371
|
+
this.contextState.context$.subscribe(function (c) {
|
|
1372
|
+
if (!_this.authService.authenticated) {
|
|
1373
|
+
_this.currentContextUri = c.uri;
|
|
1374
|
+
}
|
|
1375
|
+
});
|
|
1282
1376
|
};
|
|
1283
1377
|
return DirectionsToolComponent;
|
|
1284
1378
|
}());
|
|
1285
|
-
exports.DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || exports.DirectionsToolComponent)(i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
1286
|
-
exports.DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars:
|
|
1379
|
+
exports.DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || exports.DirectionsToolComponent)(i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.StorageService), i0__namespace.ɵɵdirectiveInject(ContextState), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService)); };
|
|
1380
|
+
exports.DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 7, consts: [[3, "contextUri", "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) {
|
|
1287
1381
|
if (rf & 1) {
|
|
1288
1382
|
i0__namespace.ɵɵelement(0, "igo-directions", 0);
|
|
1289
1383
|
}
|
|
1290
1384
|
if (rf & 2) {
|
|
1291
|
-
i0__namespace.ɵɵproperty("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
1385
|
+
i0__namespace.ɵɵproperty("contextUri", ctx.currentContextUri)("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
1292
1386
|
}
|
|
1293
|
-
}, directives: [i1__namespace.DirectionsComponent], encapsulation: 2 });
|
|
1387
|
+
}, directives: [i1__namespace$1.DirectionsComponent], encapsulation: 2 });
|
|
1294
1388
|
exports.DirectionsToolComponent = __decorate([
|
|
1295
|
-
|
|
1389
|
+
i4.ToolComponent({
|
|
1296
1390
|
name: 'directions',
|
|
1297
1391
|
title: 'igo.integration.tools.directions',
|
|
1298
1392
|
icon: 'directions'
|
|
@@ -1305,7 +1399,7 @@
|
|
|
1305
1399
|
selector: 'igo-directions-tool',
|
|
1306
1400
|
templateUrl: './directions-tool.component.html'
|
|
1307
1401
|
}]
|
|
1308
|
-
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2__namespace$
|
|
1402
|
+
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2__namespace$1.LanguageService }, { type: i2__namespace$1.MessageService }, { type: i2__namespace$1.StorageService }, { type: ContextState }, { type: i2__namespace.AuthService }]; }, null);
|
|
1309
1403
|
})();
|
|
1310
1404
|
|
|
1311
1405
|
var IgoAppDirectionsModule = /** @class */ (function () {
|
|
@@ -1321,19 +1415,19 @@
|
|
|
1321
1415
|
}());
|
|
1322
1416
|
IgoAppDirectionsModule.ɵfac = function IgoAppDirectionsModule_Factory(t) { return new (t || IgoAppDirectionsModule)(); };
|
|
1323
1417
|
IgoAppDirectionsModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppDirectionsModule });
|
|
1324
|
-
IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoDirectionsModule]] });
|
|
1418
|
+
IgoAppDirectionsModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoDirectionsModule]] });
|
|
1325
1419
|
(function () {
|
|
1326
1420
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppDirectionsModule, [{
|
|
1327
1421
|
type: i0.NgModule,
|
|
1328
1422
|
args: [{
|
|
1329
|
-
imports: [i1.IgoDirectionsModule],
|
|
1423
|
+
imports: [i1$1.IgoDirectionsModule],
|
|
1330
1424
|
declarations: [exports.DirectionsToolComponent],
|
|
1331
1425
|
exports: [exports.DirectionsToolComponent],
|
|
1332
1426
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
|
|
1333
1427
|
}]
|
|
1334
1428
|
}], null, null);
|
|
1335
1429
|
})();
|
|
1336
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDirectionsModule, { declarations: [exports.DirectionsToolComponent], imports: [i1.IgoDirectionsModule], exports: [exports.DirectionsToolComponent] }); })();
|
|
1430
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDirectionsModule, { declarations: [exports.DirectionsToolComponent], imports: [i1$1.IgoDirectionsModule], exports: [exports.DirectionsToolComponent] }); })();
|
|
1337
1431
|
|
|
1338
1432
|
/**
|
|
1339
1433
|
* Service that holds the state of the measure module
|
|
@@ -1345,7 +1439,7 @@
|
|
|
1345
1439
|
/**
|
|
1346
1440
|
* Store that holds the measures
|
|
1347
1441
|
*/
|
|
1348
|
-
this.store = new i1.FeatureStore([], {
|
|
1442
|
+
this.store = new i1$1.FeatureStore([], {
|
|
1349
1443
|
map: this.mapState.map
|
|
1350
1444
|
});
|
|
1351
1445
|
this.mapState.map.layers$.subscribe(function () {
|
|
@@ -1403,9 +1497,9 @@
|
|
|
1403
1497
|
if (rf & 2) {
|
|
1404
1498
|
i0__namespace.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
1405
1499
|
}
|
|
1406
|
-
}, directives: [i1__namespace.DrawComponent], encapsulation: 2, changeDetection: 0 });
|
|
1500
|
+
}, directives: [i1__namespace$1.DrawComponent], encapsulation: 2, changeDetection: 0 });
|
|
1407
1501
|
exports.DrawingToolComponent = __decorate([
|
|
1408
|
-
|
|
1502
|
+
i4.ToolComponent({
|
|
1409
1503
|
name: 'draw',
|
|
1410
1504
|
title: 'igo.integration.tools.draw',
|
|
1411
1505
|
icon: 'draw'
|
|
@@ -1429,12 +1523,12 @@
|
|
|
1429
1523
|
}());
|
|
1430
1524
|
IgoAppDrawModule.ɵfac = function IgoAppDrawModule_Factory(t) { return new (t || IgoAppDrawModule)(); };
|
|
1431
1525
|
IgoAppDrawModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppDrawModule });
|
|
1432
|
-
IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoDrawingToolModule]] });
|
|
1526
|
+
IgoAppDrawModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoDrawingToolModule]] });
|
|
1433
1527
|
(function () {
|
|
1434
1528
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppDrawModule, [{
|
|
1435
1529
|
type: i0.NgModule,
|
|
1436
1530
|
args: [{
|
|
1437
|
-
imports: [i1.IgoDrawingToolModule],
|
|
1531
|
+
imports: [i1$1.IgoDrawingToolModule],
|
|
1438
1532
|
declarations: [exports.DrawingToolComponent],
|
|
1439
1533
|
exports: [
|
|
1440
1534
|
exports.DrawingToolComponent
|
|
@@ -1442,12 +1536,12 @@
|
|
|
1442
1536
|
}]
|
|
1443
1537
|
}], null, null);
|
|
1444
1538
|
})();
|
|
1445
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDrawModule, { declarations: [exports.DrawingToolComponent], imports: [i1.IgoDrawingToolModule], exports: [exports.DrawingToolComponent] }); })();
|
|
1539
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppDrawModule, { declarations: [exports.DrawingToolComponent], imports: [i1$1.IgoDrawingToolModule], exports: [exports.DrawingToolComponent] }); })();
|
|
1446
1540
|
|
|
1447
1541
|
function handleZoomAuto(workspace, storageService) {
|
|
1448
1542
|
var zoomStrategy = workspace.entityStore
|
|
1449
|
-
.getStrategyOfType(i1.FeatureStoreSelectionStrategy);
|
|
1450
|
-
zoomStrategy.setMotion(storageService.get('zoomAuto') ? i1.FeatureMotion.Default : i1.FeatureMotion.None);
|
|
1543
|
+
.getStrategyOfType(i1$1.FeatureStoreSelectionStrategy);
|
|
1544
|
+
zoomStrategy.setMotion(storageService.get('zoomAuto') ? i1$1.FeatureMotion.Default : i1$1.FeatureMotion.None);
|
|
1451
1545
|
}
|
|
1452
1546
|
|
|
1453
1547
|
/**
|
|
@@ -1466,7 +1560,7 @@
|
|
|
1466
1560
|
});
|
|
1467
1561
|
return StorageState;
|
|
1468
1562
|
}());
|
|
1469
|
-
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0__namespace.ɵɵinject(i2__namespace$
|
|
1563
|
+
StorageState.ɵfac = function StorageState_Factory(t) { return new (t || StorageState)(i0__namespace.ɵɵinject(i2__namespace$1.StorageService)); };
|
|
1470
1564
|
StorageState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: StorageState, factory: StorageState.ɵfac, providedIn: 'root' });
|
|
1471
1565
|
(function () {
|
|
1472
1566
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(StorageState, [{
|
|
@@ -1474,7 +1568,7 @@
|
|
|
1474
1568
|
args: [{
|
|
1475
1569
|
providedIn: 'root'
|
|
1476
1570
|
}]
|
|
1477
|
-
}], function () { return [{ type: i2__namespace$
|
|
1571
|
+
}], function () { return [{ type: i2__namespace$1.StorageService }]; }, null);
|
|
1478
1572
|
})();
|
|
1479
1573
|
|
|
1480
1574
|
var FeatureActionsService = /** @class */ (function () {
|
|
@@ -1513,7 +1607,7 @@
|
|
|
1513
1607
|
var _this = this;
|
|
1514
1608
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1515
1609
|
this.storageChange$$ = this.storageService.storageChange$
|
|
1516
|
-
.pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$
|
|
1610
|
+
.pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$1.StorageServiceEventEnum.CLEARED; }))
|
|
1517
1611
|
.subscribe(function () {
|
|
1518
1612
|
_this.zoomAuto$.next(_this.zoomAuto);
|
|
1519
1613
|
handleZoomAuto(workspace, _this.storageService);
|
|
@@ -1534,7 +1628,7 @@
|
|
|
1534
1628
|
id: 'filterInMapExtent',
|
|
1535
1629
|
checkbox: true,
|
|
1536
1630
|
title: 'igo.integration.workspace.inMapExtent.title',
|
|
1537
|
-
tooltip: i1.mapExtentStrategyActiveToolTip(workspace),
|
|
1631
|
+
tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
|
|
1538
1632
|
checkCondition: rowsInMapExtentCheckCondition$,
|
|
1539
1633
|
handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
|
|
1540
1634
|
},
|
|
@@ -1557,7 +1651,7 @@
|
|
|
1557
1651
|
});
|
|
1558
1652
|
},
|
|
1559
1653
|
args: [workspace],
|
|
1560
|
-
availability: function (ws) { return i1.noElementSelected(ws); }
|
|
1654
|
+
availability: function (ws) { return i1$1.noElementSelected(ws); }
|
|
1561
1655
|
},
|
|
1562
1656
|
{
|
|
1563
1657
|
id: 'featureDownload',
|
|
@@ -1565,8 +1659,8 @@
|
|
|
1565
1659
|
title: 'igo.integration.workspace.download.title',
|
|
1566
1660
|
tooltip: 'igo.integration.workspace.download.tooltip',
|
|
1567
1661
|
handler: function (ws) {
|
|
1568
|
-
var filterStrategy = ws.entityStore.getStrategyOfType(
|
|
1569
|
-
var filterSelectionStrategy = ws.entityStore.getStrategyOfType(
|
|
1662
|
+
var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
1663
|
+
var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
|
|
1570
1664
|
var layersWithSelection = filterSelectionStrategy.active
|
|
1571
1665
|
? [ws.layer.id]
|
|
1572
1666
|
: [];
|
|
@@ -1611,7 +1705,7 @@
|
|
|
1611
1705
|
};
|
|
1612
1706
|
return FeatureActionsService;
|
|
1613
1707
|
}());
|
|
1614
|
-
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$
|
|
1708
|
+
FeatureActionsService.ɵfac = function FeatureActionsService_Factory(t) { return new (t || FeatureActionsService)(i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$1.LanguageService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace$1.MediaService)); };
|
|
1615
1709
|
FeatureActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: FeatureActionsService, factory: FeatureActionsService.ɵfac, providedIn: 'root' });
|
|
1616
1710
|
(function () {
|
|
1617
1711
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FeatureActionsService, [{
|
|
@@ -1619,7 +1713,7 @@
|
|
|
1619
1713
|
args: [{
|
|
1620
1714
|
providedIn: 'root'
|
|
1621
1715
|
}]
|
|
1622
|
-
}], function () { return [{ type: StorageState }, { type: i2__namespace$
|
|
1716
|
+
}], function () { return [{ type: StorageState }, { type: i2__namespace$1.LanguageService }, { type: ToolState }, { type: i2__namespace$1.MediaService }]; }, null);
|
|
1623
1717
|
})();
|
|
1624
1718
|
|
|
1625
1719
|
var WfsActionsService = /** @class */ (function () {
|
|
@@ -1662,7 +1756,7 @@
|
|
|
1662
1756
|
var _a, _b;
|
|
1663
1757
|
this.zoomAuto$.next(this.zoomAuto);
|
|
1664
1758
|
this.storageChange$$ = this.storageService.storageChange$
|
|
1665
|
-
.pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$
|
|
1759
|
+
.pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$1.StorageServiceEventEnum.CLEARED; }))
|
|
1666
1760
|
.subscribe(function () {
|
|
1667
1761
|
_this.zoomAuto$.next(_this.zoomAuto);
|
|
1668
1762
|
handleZoomAuto(workspace, _this.storageService);
|
|
@@ -1683,7 +1777,7 @@
|
|
|
1683
1777
|
id: 'filterInMapExtent',
|
|
1684
1778
|
checkbox: true,
|
|
1685
1779
|
title: 'igo.integration.workspace.inMapExtent.title',
|
|
1686
|
-
tooltip: i1.mapExtentStrategyActiveToolTip(workspace),
|
|
1780
|
+
tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
|
|
1687
1781
|
checkCondition: rowsInMapExtentCheckCondition$,
|
|
1688
1782
|
handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
|
|
1689
1783
|
},
|
|
@@ -1704,7 +1798,7 @@
|
|
|
1704
1798
|
ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
|
|
1705
1799
|
},
|
|
1706
1800
|
args: [workspace],
|
|
1707
|
-
availability: function (ws) { return i1.noElementSelected(ws); }
|
|
1801
|
+
availability: function (ws) { return i1$1.noElementSelected(ws); }
|
|
1708
1802
|
},
|
|
1709
1803
|
{
|
|
1710
1804
|
id: 'wfsDownload',
|
|
@@ -1712,8 +1806,8 @@
|
|
|
1712
1806
|
title: 'igo.integration.workspace.download.title',
|
|
1713
1807
|
tooltip: 'igo.integration.workspace.download.tooltip',
|
|
1714
1808
|
handler: function (ws) {
|
|
1715
|
-
var filterStrategy = ws.entityStore.getStrategyOfType(
|
|
1716
|
-
var filterSelectionStrategy = ws.entityStore.getStrategyOfType(
|
|
1809
|
+
var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
1810
|
+
var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
|
|
1717
1811
|
var layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
|
|
1718
1812
|
_this.toolState.toolToActivateFromOptions({
|
|
1719
1813
|
tool: 'importExport',
|
|
@@ -1767,7 +1861,7 @@
|
|
|
1767
1861
|
};
|
|
1768
1862
|
return WfsActionsService;
|
|
1769
1863
|
}());
|
|
1770
|
-
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0__namespace.ɵɵinject(i1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$
|
|
1864
|
+
WfsActionsService.ɵfac = function WfsActionsService_Factory(t) { return new (t || WfsActionsService)(i0__namespace.ɵɵinject(i1$1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$1.LanguageService), i0__namespace.ɵɵinject(i2__namespace$1.MediaService), i0__namespace.ɵɵinject(ToolState)); };
|
|
1771
1865
|
WfsActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: WfsActionsService, factory: WfsActionsService.ɵfac, providedIn: 'root' });
|
|
1772
1866
|
(function () {
|
|
1773
1867
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WfsActionsService, [{
|
|
@@ -1776,10 +1870,169 @@
|
|
|
1776
1870
|
providedIn: 'root'
|
|
1777
1871
|
}]
|
|
1778
1872
|
}], function () {
|
|
1779
|
-
return [{ type:
|
|
1873
|
+
return [{ type: i4__namespace.Widget, decorators: [{
|
|
1780
1874
|
type: i0.Inject,
|
|
1781
|
-
args: [i1.OgcFilterWidget]
|
|
1782
|
-
}] }, { type: StorageState }, { type: i2__namespace$
|
|
1875
|
+
args: [i1$1.OgcFilterWidget]
|
|
1876
|
+
}] }, { type: StorageState }, { type: i2__namespace$1.LanguageService }, { type: i2__namespace$1.MediaService }, { type: ToolState }];
|
|
1877
|
+
}, null);
|
|
1878
|
+
})();
|
|
1879
|
+
|
|
1880
|
+
var EditionActionsService = /** @class */ (function () {
|
|
1881
|
+
function EditionActionsService(ogcFilterWidget, storageState, languageService, mediaService, toolState) {
|
|
1882
|
+
this.ogcFilterWidget = ogcFilterWidget;
|
|
1883
|
+
this.storageState = storageState;
|
|
1884
|
+
this.languageService = languageService;
|
|
1885
|
+
this.mediaService = mediaService;
|
|
1886
|
+
this.toolState = toolState;
|
|
1887
|
+
this.maximize$ = new rxjs.BehaviorSubject(this.storageService.get('workspaceMaximize'));
|
|
1888
|
+
this.zoomAuto$ = new rxjs.BehaviorSubject(false);
|
|
1889
|
+
}
|
|
1890
|
+
Object.defineProperty(EditionActionsService.prototype, "storageService", {
|
|
1891
|
+
get: function () {
|
|
1892
|
+
return this.storageState.storageService;
|
|
1893
|
+
},
|
|
1894
|
+
enumerable: false,
|
|
1895
|
+
configurable: true
|
|
1896
|
+
});
|
|
1897
|
+
Object.defineProperty(EditionActionsService.prototype, "zoomAuto", {
|
|
1898
|
+
get: function () {
|
|
1899
|
+
return this.storageService.get('zoomAuto');
|
|
1900
|
+
},
|
|
1901
|
+
enumerable: false,
|
|
1902
|
+
configurable: true
|
|
1903
|
+
});
|
|
1904
|
+
EditionActionsService.prototype.ngOnDestroy = function () {
|
|
1905
|
+
if (this.storageChange$$) {
|
|
1906
|
+
this.storageChange$$.unsubscribe();
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
EditionActionsService.prototype.loadActions = function (workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1910
|
+
var actions = this.buildActions(workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$);
|
|
1911
|
+
workspace.actionStore.load(actions);
|
|
1912
|
+
};
|
|
1913
|
+
EditionActionsService.prototype.buildActions = function (workspace, rowsInMapExtentCheckCondition$, selectOnlyCheckCondition$) {
|
|
1914
|
+
var _this = this;
|
|
1915
|
+
var _a, _b;
|
|
1916
|
+
this.zoomAuto$.next(this.zoomAuto);
|
|
1917
|
+
this.storageChange$$ = this.storageService.storageChange$
|
|
1918
|
+
.pipe(operators.skipWhile(function (storageChange) { return storageChange.key !== 'zoomAuto' || storageChange.event === i2$1.StorageServiceEventEnum.CLEARED; }))
|
|
1919
|
+
.subscribe(function () {
|
|
1920
|
+
_this.zoomAuto$.next(_this.zoomAuto);
|
|
1921
|
+
handleZoomAuto(workspace, _this.storageService);
|
|
1922
|
+
});
|
|
1923
|
+
var actions = [
|
|
1924
|
+
{
|
|
1925
|
+
id: 'zoomAuto',
|
|
1926
|
+
checkbox: true,
|
|
1927
|
+
title: 'igo.integration.workspace.zoomAuto.title',
|
|
1928
|
+
tooltip: 'igo.integration.workspace.zoomAuto.tooltip',
|
|
1929
|
+
checkCondition: this.zoomAuto$,
|
|
1930
|
+
handler: function () {
|
|
1931
|
+
handleZoomAuto(workspace, _this.storageService);
|
|
1932
|
+
_this.storageService.set('zoomAuto', !_this.storageService.get('zoomAuto'));
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
id: 'filterInMapExtent',
|
|
1937
|
+
checkbox: true,
|
|
1938
|
+
title: 'igo.integration.workspace.inMapExtent.title',
|
|
1939
|
+
tooltip: i1$1.mapExtentStrategyActiveToolTip(workspace),
|
|
1940
|
+
checkCondition: rowsInMapExtentCheckCondition$,
|
|
1941
|
+
handler: function () { return rowsInMapExtentCheckCondition$.next(!rowsInMapExtentCheckCondition$.value); }
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
id: 'selectedOnly',
|
|
1945
|
+
checkbox: true,
|
|
1946
|
+
title: 'igo.integration.workspace.selected.title',
|
|
1947
|
+
tooltip: 'igo.integration.workspace.selected.title',
|
|
1948
|
+
checkCondition: selectOnlyCheckCondition$,
|
|
1949
|
+
handler: function () { return selectOnlyCheckCondition$.next(!selectOnlyCheckCondition$.value); }
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
id: 'clearselection',
|
|
1953
|
+
icon: 'select-off',
|
|
1954
|
+
title: 'igo.integration.workspace.clearSelection.title',
|
|
1955
|
+
tooltip: 'igo.integration.workspace.clearSelection.tooltip',
|
|
1956
|
+
handler: function (ws) {
|
|
1957
|
+
ws.entityStore.state.updateMany(ws.entityStore.view.all(), { selected: false });
|
|
1958
|
+
},
|
|
1959
|
+
args: [workspace],
|
|
1960
|
+
availability: function (ws) { return i1$1.noElementSelected(ws); }
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
id: 'wfsDownload',
|
|
1964
|
+
icon: 'file-export',
|
|
1965
|
+
title: 'igo.integration.workspace.download.title',
|
|
1966
|
+
tooltip: 'igo.integration.workspace.download.tooltip',
|
|
1967
|
+
handler: function (ws) {
|
|
1968
|
+
var filterStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
1969
|
+
var filterSelectionStrategy = ws.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
|
|
1970
|
+
var layersWithSelection = filterSelectionStrategy.active ? [ws.layer.id] : [];
|
|
1971
|
+
_this.toolState.toolToActivateFromOptions({
|
|
1972
|
+
tool: 'importExport',
|
|
1973
|
+
options: { layers: [ws.layer.id], featureInMapExtent: filterStrategy.active, layersWithSelection: layersWithSelection }
|
|
1974
|
+
});
|
|
1975
|
+
},
|
|
1976
|
+
args: [workspace]
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
id: 'ogcFilter',
|
|
1980
|
+
icon: 'filter',
|
|
1981
|
+
title: 'igo.integration.workspace.ogcFilter.title',
|
|
1982
|
+
tooltip: 'igo.integration.workspace.ogcFilter.tooltip',
|
|
1983
|
+
handler: function (widget, ws) {
|
|
1984
|
+
ws.activateWidget(widget, {
|
|
1985
|
+
map: ws.map,
|
|
1986
|
+
layer: ws.layer
|
|
1987
|
+
});
|
|
1988
|
+
},
|
|
1989
|
+
args: [this.ogcFilterWidget, workspace]
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
id: 'maximize',
|
|
1993
|
+
title: this.languageService.translate.instant('igo.integration.workspace.maximize'),
|
|
1994
|
+
tooltip: this.languageService.translate.instant('igo.integration.workspace.maximizeTooltip'),
|
|
1995
|
+
icon: 'resize',
|
|
1996
|
+
display: function () {
|
|
1997
|
+
return _this.maximize$.pipe(operators.map(function (v) { return !v && !_this.mediaService.isMobile(); }));
|
|
1998
|
+
},
|
|
1999
|
+
handler: function () {
|
|
2000
|
+
if (!_this.mediaService.isMobile()) {
|
|
2001
|
+
_this.maximize$.next(true);
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
id: 'standardExtent',
|
|
2007
|
+
title: this.languageService.translate.instant('igo.integration.workspace.standardExtent'),
|
|
2008
|
+
tooltip: this.languageService.translate.instant('igo.integration.workspace.standardExtentTooltip'),
|
|
2009
|
+
icon: 'resize',
|
|
2010
|
+
display: function () {
|
|
2011
|
+
return _this.maximize$.pipe(operators.map(function (v) { return v && !_this.mediaService.isMobile(); }));
|
|
2012
|
+
},
|
|
2013
|
+
handler: function () {
|
|
2014
|
+
_this.maximize$.next(false);
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
];
|
|
2018
|
+
return ((_b = (_a = workspace.layer.dataSource.ogcFilters$) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.enabled) ?
|
|
2019
|
+
actions : actions.filter(function (action) { return action.id !== 'ogcFilter'; });
|
|
2020
|
+
};
|
|
2021
|
+
return EditionActionsService;
|
|
2022
|
+
}());
|
|
2023
|
+
EditionActionsService.ɵfac = function EditionActionsService_Factory(t) { return new (t || EditionActionsService)(i0__namespace.ɵɵinject(i1$1.OgcFilterWidget), i0__namespace.ɵɵinject(StorageState), i0__namespace.ɵɵinject(i2__namespace$1.LanguageService), i0__namespace.ɵɵinject(i2__namespace$1.MediaService), i0__namespace.ɵɵinject(ToolState)); };
|
|
2024
|
+
EditionActionsService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: EditionActionsService, factory: EditionActionsService.ɵfac, providedIn: 'root' });
|
|
2025
|
+
(function () {
|
|
2026
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EditionActionsService, [{
|
|
2027
|
+
type: i0.Injectable,
|
|
2028
|
+
args: [{
|
|
2029
|
+
providedIn: 'root'
|
|
2030
|
+
}]
|
|
2031
|
+
}], function () {
|
|
2032
|
+
return [{ type: i4__namespace.Widget, decorators: [{
|
|
2033
|
+
type: i0.Inject,
|
|
2034
|
+
args: [i1$1.OgcFilterWidget]
|
|
2035
|
+
}] }, { type: StorageState }, { type: i2__namespace$1.LanguageService }, { type: i2__namespace$1.MediaService }, { type: ToolState }];
|
|
1783
2036
|
}, null);
|
|
1784
2037
|
})();
|
|
1785
2038
|
|
|
@@ -1787,9 +2040,10 @@
|
|
|
1787
2040
|
* Service that holds the state of the workspace module
|
|
1788
2041
|
*/
|
|
1789
2042
|
var WorkspaceState = /** @class */ (function () {
|
|
1790
|
-
function WorkspaceState(featureActionsService, wfsActionsService, storageService) {
|
|
2043
|
+
function WorkspaceState(featureActionsService, wfsActionsService, editionActionsService, storageService) {
|
|
1791
2044
|
this.featureActionsService = featureActionsService;
|
|
1792
2045
|
this.wfsActionsService = wfsActionsService;
|
|
2046
|
+
this.editionActionsService = editionActionsService;
|
|
1793
2047
|
this.storageService = storageService;
|
|
1794
2048
|
this.workspacePanelExpanded = false;
|
|
1795
2049
|
this.workspaceEnabled$ = new rxjs.BehaviorSubject(false);
|
|
@@ -1820,7 +2074,7 @@
|
|
|
1820
2074
|
*/
|
|
1821
2075
|
WorkspaceState.prototype.initWorkspaces = function () {
|
|
1822
2076
|
var _this = this;
|
|
1823
|
-
this._store = new
|
|
2077
|
+
this._store = new i4.WorkspaceStore([]);
|
|
1824
2078
|
this._store.stateView
|
|
1825
2079
|
.firstBy$(function (record) { return record.state.active === true; })
|
|
1826
2080
|
.subscribe(function (record) {
|
|
@@ -1831,12 +2085,15 @@
|
|
|
1831
2085
|
.subscribe(function (workspaces) {
|
|
1832
2086
|
workspaces.map(function (wks) {
|
|
1833
2087
|
if (wks.entity.actionStore.empty) {
|
|
1834
|
-
if (wks.entity instanceof i1.WfsWorkspace) {
|
|
2088
|
+
if (wks.entity instanceof i1$1.WfsWorkspace) {
|
|
1835
2089
|
_this.wfsActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
|
|
1836
2090
|
}
|
|
1837
|
-
else if (wks.entity instanceof i1.FeatureWorkspace) {
|
|
2091
|
+
else if (wks.entity instanceof i1$1.FeatureWorkspace) {
|
|
1838
2092
|
_this.featureActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
|
|
1839
2093
|
}
|
|
2094
|
+
else if (wks.entity instanceof i1$1.EditionWorkspace) {
|
|
2095
|
+
_this.editionActionsService.loadActions(wks.entity, _this.rowsInMapExtentCheckCondition$, _this.selectOnlyCheckCondition$);
|
|
2096
|
+
}
|
|
1840
2097
|
}
|
|
1841
2098
|
});
|
|
1842
2099
|
});
|
|
@@ -1846,6 +2103,9 @@
|
|
|
1846
2103
|
this.actionMaximize$$.push(this.wfsActionsService.maximize$.subscribe(function (maximized) {
|
|
1847
2104
|
_this.setWorkspaceIsMaximized(maximized);
|
|
1848
2105
|
}));
|
|
2106
|
+
this.actionMaximize$$.push(this.editionActionsService.maximize$.subscribe(function (maximized) {
|
|
2107
|
+
_this.setWorkspaceIsMaximized(maximized);
|
|
2108
|
+
}));
|
|
1849
2109
|
this.activeWorkspace$$ = this.workspace$
|
|
1850
2110
|
.subscribe(function (workspace) {
|
|
1851
2111
|
if (_this.activeWorkspaceWidget$$ !== undefined) {
|
|
@@ -1860,7 +2120,7 @@
|
|
|
1860
2120
|
this.rowsInMapExtentCheckCondition$$ = this.rowsInMapExtentCheckCondition$.subscribe(function (rowsInMapExtent) {
|
|
1861
2121
|
_this._store.stateView.all().map(function (wks) {
|
|
1862
2122
|
if (!wks.entity.actionStore.empty) {
|
|
1863
|
-
var filterStrategy = wks.entity.entityStore.getStrategyOfType(
|
|
2123
|
+
var filterStrategy = wks.entity.entityStore.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
1864
2124
|
if (filterStrategy) {
|
|
1865
2125
|
if (rowsInMapExtent) {
|
|
1866
2126
|
filterStrategy.activate();
|
|
@@ -1875,7 +2135,7 @@
|
|
|
1875
2135
|
this.selectOnlyCheckCondition$$ = this.selectOnlyCheckCondition$.subscribe(function (selectOnly) {
|
|
1876
2136
|
_this._store.stateView.all().map(function (wks) {
|
|
1877
2137
|
if (!wks.entity.actionStore.empty) {
|
|
1878
|
-
var filterStrategy = wks.entity.entityStore.getStrategyOfType(
|
|
2138
|
+
var filterStrategy = wks.entity.entityStore.getStrategyOfType(i4.EntityStoreFilterSelectionStrategy);
|
|
1879
2139
|
if (filterStrategy) {
|
|
1880
2140
|
if (selectOnly) {
|
|
1881
2141
|
filterStrategy.activate();
|
|
@@ -1900,6 +2160,14 @@
|
|
|
1900
2160
|
this.store.activateWorkspace(wksFromId);
|
|
1901
2161
|
}
|
|
1902
2162
|
};
|
|
2163
|
+
WorkspaceState.prototype.setActiveWorkspaceByTitle = function (title) {
|
|
2164
|
+
var wksFromTitle = this.store
|
|
2165
|
+
.all()
|
|
2166
|
+
.find(function (workspace) { return workspace.title === title; });
|
|
2167
|
+
if (wksFromTitle) {
|
|
2168
|
+
this.store.activateWorkspace(wksFromTitle);
|
|
2169
|
+
}
|
|
2170
|
+
};
|
|
1903
2171
|
/**
|
|
1904
2172
|
* Teardown all the workspaces
|
|
1905
2173
|
* @internal
|
|
@@ -1928,7 +2196,7 @@
|
|
|
1928
2196
|
};
|
|
1929
2197
|
return WorkspaceState;
|
|
1930
2198
|
}());
|
|
1931
|
-
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0__namespace.ɵɵinject(FeatureActionsService), i0__namespace.ɵɵinject(WfsActionsService), i0__namespace.ɵɵinject(i2__namespace$
|
|
2199
|
+
WorkspaceState.ɵfac = function WorkspaceState_Factory(t) { return new (t || WorkspaceState)(i0__namespace.ɵɵinject(FeatureActionsService), i0__namespace.ɵɵinject(WfsActionsService), i0__namespace.ɵɵinject(EditionActionsService), i0__namespace.ɵɵinject(i2__namespace$1.StorageService)); };
|
|
1932
2200
|
WorkspaceState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: WorkspaceState, factory: WorkspaceState.ɵfac, providedIn: 'root' });
|
|
1933
2201
|
(function () {
|
|
1934
2202
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkspaceState, [{
|
|
@@ -1936,7 +2204,7 @@
|
|
|
1936
2204
|
args: [{
|
|
1937
2205
|
providedIn: 'root'
|
|
1938
2206
|
}]
|
|
1939
|
-
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: i2__namespace$
|
|
2207
|
+
}], function () { return [{ type: FeatureActionsService }, { type: WfsActionsService }, { type: EditionActionsService }, { type: i2__namespace$1.StorageService }]; }, null);
|
|
1940
2208
|
})();
|
|
1941
2209
|
|
|
1942
2210
|
function WorkspaceButtonComponent_button_0_Template(rf, ctx) {
|
|
@@ -2001,7 +2269,7 @@
|
|
|
2001
2269
|
if (rf & 2) {
|
|
2002
2270
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
|
|
2003
2271
|
}
|
|
2004
|
-
}, directives: [i4__namespace.NgIf, i3__namespace.MatButton, i4__namespace$
|
|
2272
|
+
}, directives: [i4__namespace$1.NgIf, i3__namespace.MatButton, i4__namespace$2.MatTooltip, i6__namespace.MatIcon], pipes: [i4__namespace$1.AsyncPipe, i8__namespace.TranslatePipe], styles: [""], changeDetection: 0 });
|
|
2005
2273
|
(function () {
|
|
2006
2274
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkspaceButtonComponent, [{
|
|
2007
2275
|
type: i0.Component,
|
|
@@ -2026,22 +2294,22 @@
|
|
|
2026
2294
|
IgoAppWorkspaceModule.ɵfac = function IgoAppWorkspaceModule_Factory(t) { return new (t || IgoAppWorkspaceModule)(); };
|
|
2027
2295
|
IgoAppWorkspaceModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppWorkspaceModule });
|
|
2028
2296
|
IgoAppWorkspaceModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
2029
|
-
i4.CommonModule,
|
|
2297
|
+
i4$1.CommonModule,
|
|
2030
2298
|
i6.MatIconModule,
|
|
2031
2299
|
i3.MatButtonModule,
|
|
2032
|
-
i4$
|
|
2033
|
-
i2$
|
|
2300
|
+
i4$2.MatTooltipModule,
|
|
2301
|
+
i2$1.IgoLanguageModule
|
|
2034
2302
|
]] });
|
|
2035
2303
|
(function () {
|
|
2036
2304
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppWorkspaceModule, [{
|
|
2037
2305
|
type: i0.NgModule,
|
|
2038
2306
|
args: [{
|
|
2039
2307
|
imports: [
|
|
2040
|
-
i4.CommonModule,
|
|
2308
|
+
i4$1.CommonModule,
|
|
2041
2309
|
i6.MatIconModule,
|
|
2042
2310
|
i3.MatButtonModule,
|
|
2043
|
-
i4$
|
|
2044
|
-
i2$
|
|
2311
|
+
i4$2.MatTooltipModule,
|
|
2312
|
+
i2$1.IgoLanguageModule
|
|
2045
2313
|
],
|
|
2046
2314
|
declarations: [WorkspaceButtonComponent],
|
|
2047
2315
|
exports: [WorkspaceButtonComponent]
|
|
@@ -2049,11 +2317,11 @@
|
|
|
2049
2317
|
}], null, null);
|
|
2050
2318
|
})();
|
|
2051
2319
|
(function () {
|
|
2052
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppWorkspaceModule, { declarations: [WorkspaceButtonComponent], imports: [i4.CommonModule,
|
|
2320
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppWorkspaceModule, { declarations: [WorkspaceButtonComponent], imports: [i4$1.CommonModule,
|
|
2053
2321
|
i6.MatIconModule,
|
|
2054
2322
|
i3.MatButtonModule,
|
|
2055
|
-
i4$
|
|
2056
|
-
i2$
|
|
2323
|
+
i4$2.MatTooltipModule,
|
|
2324
|
+
i2$1.IgoLanguageModule], exports: [WorkspaceButtonComponent] });
|
|
2057
2325
|
})();
|
|
2058
2326
|
|
|
2059
2327
|
function ImportExportToolComponent_mat_tab_group_0_Template(rf, ctx) {
|
|
@@ -2182,9 +2450,9 @@
|
|
|
2182
2450
|
i0__namespace.ɵɵadvance(1);
|
|
2183
2451
|
i0__namespace.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
|
|
2184
2452
|
}
|
|
2185
|
-
}, directives: [i4__namespace.NgIf, i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace.ImportExportComponent,
|
|
2453
|
+
}, directives: [i4__namespace$1.NgIf, i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace$1.ImportExportComponent, i1__namespace.ContextImportExportComponent], pipes: [i8__namespace.TranslatePipe, i4__namespace$1.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
2186
2454
|
exports.ImportExportToolComponent = __decorate([
|
|
2187
|
-
|
|
2455
|
+
i4.ToolComponent({
|
|
2188
2456
|
name: 'importExport',
|
|
2189
2457
|
title: 'igo.integration.tools.importExport',
|
|
2190
2458
|
icon: 'file-move'
|
|
@@ -2224,10 +2492,10 @@
|
|
|
2224
2492
|
IgoAppImportExportModule.ɵfac = function IgoAppImportExportModule_Factory(t) { return new (t || IgoAppImportExportModule)(); };
|
|
2225
2493
|
IgoAppImportExportModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppImportExportModule });
|
|
2226
2494
|
IgoAppImportExportModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
2227
|
-
i1.IgoImportExportModule,
|
|
2228
|
-
|
|
2229
|
-
i4.CommonModule,
|
|
2230
|
-
i2$
|
|
2495
|
+
i1$1.IgoImportExportModule,
|
|
2496
|
+
i1.IgoContextImportExportModule,
|
|
2497
|
+
i4$1.CommonModule,
|
|
2498
|
+
i2$1.IgoLanguageModule,
|
|
2231
2499
|
buttonToggle.MatButtonToggleModule,
|
|
2232
2500
|
i5.MatTabsModule
|
|
2233
2501
|
]] });
|
|
@@ -2236,10 +2504,10 @@
|
|
|
2236
2504
|
type: i0.NgModule,
|
|
2237
2505
|
args: [{
|
|
2238
2506
|
imports: [
|
|
2239
|
-
i1.IgoImportExportModule,
|
|
2240
|
-
|
|
2241
|
-
i4.CommonModule,
|
|
2242
|
-
i2$
|
|
2507
|
+
i1$1.IgoImportExportModule,
|
|
2508
|
+
i1.IgoContextImportExportModule,
|
|
2509
|
+
i4$1.CommonModule,
|
|
2510
|
+
i2$1.IgoLanguageModule,
|
|
2243
2511
|
buttonToggle.MatButtonToggleModule,
|
|
2244
2512
|
i5.MatTabsModule
|
|
2245
2513
|
],
|
|
@@ -2250,10 +2518,10 @@
|
|
|
2250
2518
|
}], null, null);
|
|
2251
2519
|
})();
|
|
2252
2520
|
(function () {
|
|
2253
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppImportExportModule, { declarations: [exports.ImportExportToolComponent], imports: [i1.IgoImportExportModule,
|
|
2254
|
-
|
|
2255
|
-
i4.CommonModule,
|
|
2256
|
-
i2$
|
|
2521
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppImportExportModule, { declarations: [exports.ImportExportToolComponent], imports: [i1$1.IgoImportExportModule,
|
|
2522
|
+
i1.IgoContextImportExportModule,
|
|
2523
|
+
i4$1.CommonModule,
|
|
2524
|
+
i2$1.IgoLanguageModule,
|
|
2257
2525
|
buttonToggle.MatButtonToggleModule,
|
|
2258
2526
|
i5.MatTabsModule], exports: [exports.ImportExportToolComponent] });
|
|
2259
2527
|
})();
|
|
@@ -2457,14 +2725,14 @@
|
|
|
2457
2725
|
Object.defineProperty(MapDetailsToolComponent.prototype, "layerFilterAndSortOptions", {
|
|
2458
2726
|
get: function () {
|
|
2459
2727
|
var filterSortOptions = Object.assign({
|
|
2460
|
-
showToolbar: i1.LayerListControlsEnum.default
|
|
2728
|
+
showToolbar: i1$1.LayerListControlsEnum.default
|
|
2461
2729
|
}, this.layerListControls);
|
|
2462
2730
|
switch (this.layerListControls.showToolbar) {
|
|
2463
|
-
case i1.LayerListControlsEnum.always:
|
|
2464
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
|
|
2731
|
+
case i1$1.LayerListControlsEnum.always:
|
|
2732
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
|
|
2465
2733
|
break;
|
|
2466
|
-
case i1.LayerListControlsEnum.never:
|
|
2467
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
|
|
2734
|
+
case i1$1.LayerListControlsEnum.never:
|
|
2735
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
|
|
2468
2736
|
break;
|
|
2469
2737
|
default:
|
|
2470
2738
|
break;
|
|
@@ -2479,7 +2747,7 @@
|
|
|
2479
2747
|
return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
|
|
2480
2748
|
this.searchSourceService
|
|
2481
2749
|
.getSources()
|
|
2482
|
-
.filter(i1.sourceCanSearch)
|
|
2750
|
+
.filter(i1$1.sourceCanSearch)
|
|
2483
2751
|
.filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
|
|
2484
2752
|
},
|
|
2485
2753
|
enumerable: false,
|
|
@@ -2528,7 +2796,7 @@
|
|
|
2528
2796
|
};
|
|
2529
2797
|
return MapDetailsToolComponent;
|
|
2530
2798
|
}());
|
|
2531
|
-
exports.MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || exports.MapDetailsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
|
|
2799
|
+
exports.MapDetailsToolComponent.ɵfac = function MapDetailsToolComponent_Factory(t) { return new (t || exports.MapDetailsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
|
|
2532
2800
|
exports.MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
2533
2801
|
if (rf & 1) {
|
|
2534
2802
|
i0__namespace.ɵɵtemplate(0, MapDetailsToolComponent_igo_layer_list_0_Template, 3, 7, "igo-layer-list", 0);
|
|
@@ -2539,9 +2807,9 @@
|
|
|
2539
2807
|
var _r1 = i0__namespace.ɵɵreference(3);
|
|
2540
2808
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
|
|
2541
2809
|
}
|
|
2542
|
-
}, directives: [i4__namespace.NgIf, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective, WorkspaceButtonComponent, i1__namespace.ExportButtonComponent, i1__namespace.OgcFilterButtonComponent, i1__namespace.TimeFilterButtonComponent, i1__namespace.TrackFeatureButtonComponent, i1__namespace.MetadataButtonComponent, i7__namespace
|
|
2810
|
+
}, directives: [i4__namespace$1.NgIf, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, WorkspaceButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, i1__namespace$1.MetadataButtonComponent, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace$1.AsyncPipe, i8__namespace.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}"] });
|
|
2543
2811
|
exports.MapDetailsToolComponent = __decorate([
|
|
2544
|
-
|
|
2812
|
+
i4.ToolComponent({
|
|
2545
2813
|
name: 'mapDetails',
|
|
2546
2814
|
title: 'igo.integration.tools.map',
|
|
2547
2815
|
icon: 'map'
|
|
@@ -2555,7 +2823,7 @@
|
|
|
2555
2823
|
templateUrl: './map-details-tool.component.html',
|
|
2556
2824
|
styleUrls: ['./map-details-tool.component.scss']
|
|
2557
2825
|
}]
|
|
2558
|
-
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
2826
|
+
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace$1.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }, { type: ImportExportState }]; }, { toggleLegendOnVisibilityChange: [{
|
|
2559
2827
|
type: i0.Input
|
|
2560
2828
|
}], expandLegendOfVisibleLayers: [{
|
|
2561
2829
|
type: i0.Input
|
|
@@ -2635,14 +2903,14 @@
|
|
|
2635
2903
|
Object.defineProperty(MapToolComponent.prototype, "layerFilterAndSortOptions", {
|
|
2636
2904
|
get: function () {
|
|
2637
2905
|
var filterSortOptions = Object.assign({
|
|
2638
|
-
showToolbar: i1.LayerListControlsEnum.default
|
|
2906
|
+
showToolbar: i1$1.LayerListControlsEnum.default
|
|
2639
2907
|
}, this.layerListControls);
|
|
2640
2908
|
switch (this.layerListControls.showToolbar) {
|
|
2641
|
-
case i1.LayerListControlsEnum.always:
|
|
2642
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
|
|
2909
|
+
case i1$1.LayerListControlsEnum.always:
|
|
2910
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
|
|
2643
2911
|
break;
|
|
2644
|
-
case i1.LayerListControlsEnum.never:
|
|
2645
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
|
|
2912
|
+
case i1$1.LayerListControlsEnum.never:
|
|
2913
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
|
|
2646
2914
|
break;
|
|
2647
2915
|
default:
|
|
2648
2916
|
break;
|
|
@@ -2688,9 +2956,9 @@
|
|
|
2688
2956
|
i0__namespace.ɵɵadvance(3);
|
|
2689
2957
|
i0__namespace.ɵɵproperty("label", i0__namespace.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
|
|
2690
2958
|
}
|
|
2691
|
-
}, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective,
|
|
2959
|
+
}, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, i1__namespace.ContextListComponent, i1__namespace.ContextListBindingDirective, WorkspaceButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, i1__namespace$1.MetadataButtonComponent], pipes: [i8__namespace.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 });
|
|
2692
2960
|
exports.MapToolComponent = __decorate([
|
|
2693
|
-
|
|
2961
|
+
i4.ToolComponent({
|
|
2694
2962
|
name: 'map',
|
|
2695
2963
|
title: 'igo.integration.tools.map',
|
|
2696
2964
|
icon: 'map'
|
|
@@ -3027,14 +3295,14 @@
|
|
|
3027
3295
|
Object.defineProperty(MapToolsComponent.prototype, "layerFilterAndSortOptions", {
|
|
3028
3296
|
get: function () {
|
|
3029
3297
|
var filterSortOptions = Object.assign({
|
|
3030
|
-
showToolbar: i1.LayerListControlsEnum.default
|
|
3298
|
+
showToolbar: i1$1.LayerListControlsEnum.default
|
|
3031
3299
|
}, this.layerListControls);
|
|
3032
3300
|
switch (this.layerListControls.showToolbar) {
|
|
3033
|
-
case i1.LayerListControlsEnum.always:
|
|
3034
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.always;
|
|
3301
|
+
case i1$1.LayerListControlsEnum.always:
|
|
3302
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.always;
|
|
3035
3303
|
break;
|
|
3036
|
-
case i1.LayerListControlsEnum.never:
|
|
3037
|
-
filterSortOptions.showToolbar = i1.LayerListControlsEnum.never;
|
|
3304
|
+
case i1$1.LayerListControlsEnum.never:
|
|
3305
|
+
filterSortOptions.showToolbar = i1$1.LayerListControlsEnum.never;
|
|
3038
3306
|
break;
|
|
3039
3307
|
default:
|
|
3040
3308
|
break;
|
|
@@ -3049,7 +3317,7 @@
|
|
|
3049
3317
|
return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
|
|
3050
3318
|
this.searchSourceService
|
|
3051
3319
|
.getSources()
|
|
3052
|
-
.filter(i1.sourceCanSearch)
|
|
3320
|
+
.filter(i1$1.sourceCanSearch)
|
|
3053
3321
|
.filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
|
|
3054
3322
|
},
|
|
3055
3323
|
enumerable: false,
|
|
@@ -3184,7 +3452,7 @@
|
|
|
3184
3452
|
};
|
|
3185
3453
|
MapToolsComponent.prototype.isExportButton = function (layer) {
|
|
3186
3454
|
var _a, _b;
|
|
3187
|
-
if ((layer instanceof i1.VectorLayer && layer.exportable === true) ||
|
|
3455
|
+
if ((layer instanceof i1$1.VectorLayer && layer.exportable === true) ||
|
|
3188
3456
|
(layer.dataSource.options.download && layer.dataSource.options.download.url) ||
|
|
3189
3457
|
(((_a = layer.options.workspace) === null || _a === void 0 ? void 0 : _a.enabled) && ((_b = layer.options.workspace) === null || _b === void 0 ? void 0 : _b.workspaceId) !== layer.id)) {
|
|
3190
3458
|
return true;
|
|
@@ -3193,7 +3461,7 @@
|
|
|
3193
3461
|
};
|
|
3194
3462
|
return MapToolsComponent;
|
|
3195
3463
|
}());
|
|
3196
|
-
exports.MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || exports.MapToolsComponent)(i0__namespace.ɵɵdirectiveInject(LayerListToolState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
|
|
3464
|
+
exports.MapToolsComponent.ɵfac = function MapToolsComponent_Factory(t) { return new (t || exports.MapToolsComponent)(i0__namespace.ɵɵdirectiveInject(LayerListToolState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(ImportExportState)); };
|
|
3197
3465
|
exports.MapToolsComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.MapToolsComponent, selectors: [["igo-map-tools"]], viewQuery: function MapToolsComponent_Query(rf, ctx) {
|
|
3198
3466
|
if (rf & 1) {
|
|
3199
3467
|
i0__namespace.ɵɵviewQuery(_c0$1, 7);
|
|
@@ -3240,9 +3508,9 @@
|
|
|
3240
3508
|
i0__namespace.ɵɵadvance(2);
|
|
3241
3509
|
i0__namespace.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0__namespace.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0__namespace.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
|
|
3242
3510
|
}
|
|
3243
|
-
}, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i4__namespace.NgIf, i1__namespace.LayerListComponent, i1__namespace.LayerListBindingDirective, i1__namespace.MetadataButtonComponent, i1__namespace.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1__namespace.TimeFilterButtonComponent, i1__namespace.OgcFilterButtonComponent, i1__namespace.ExportButtonComponent, i1__namespace.LayerLegendListComponent, i1__namespace.LayerLegendListBindingDirective, i7__namespace
|
|
3511
|
+
}, directives: [i5__namespace.MatTabGroup, i5__namespace.MatTab, i4__namespace$1.NgIf, i1__namespace$1.LayerListComponent, i1__namespace$1.LayerListBindingDirective, i1__namespace$1.MetadataButtonComponent, i1__namespace$1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1__namespace$1.TimeFilterButtonComponent, i1__namespace$1.OgcFilterButtonComponent, i1__namespace$1.ExportButtonComponent, i1__namespace$1.LayerLegendListComponent, i1__namespace$1.LayerLegendListBindingDirective, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace$1.AsyncPipe, i8__namespace.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 });
|
|
3244
3512
|
exports.MapToolsComponent = __decorate([
|
|
3245
|
-
|
|
3513
|
+
i4.ToolComponent({
|
|
3246
3514
|
name: 'mapTools',
|
|
3247
3515
|
title: 'igo.integration.tools.map',
|
|
3248
3516
|
icon: 'map'
|
|
@@ -3257,7 +3525,7 @@
|
|
|
3257
3525
|
styleUrls: ['./map-tools.component.scss'],
|
|
3258
3526
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3259
3527
|
}]
|
|
3260
|
-
}], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1__namespace.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
|
|
3528
|
+
}], function () { return [{ type: LayerListToolState }, { type: ToolState }, { type: MapState }, { type: i1__namespace$1.SearchSourceService }, { type: ImportExportState }]; }, { allowShowAllLegends: [{
|
|
3261
3529
|
type: i0.Input
|
|
3262
3530
|
}], showAllLegendsValue: [{
|
|
3263
3531
|
type: i0.Input
|
|
@@ -3485,7 +3753,7 @@
|
|
|
3485
3753
|
return (this.toolState.toolbox.getToolbar().indexOf('searchResults') !== -1 &&
|
|
3486
3754
|
this.searchSourceService
|
|
3487
3755
|
.getSources()
|
|
3488
|
-
.filter(i1.sourceCanSearch)
|
|
3756
|
+
.filter(i1$1.sourceCanSearch)
|
|
3489
3757
|
.filter(function (s) { return s.available && s.getType() === 'Layer'; }).length > 0);
|
|
3490
3758
|
},
|
|
3491
3759
|
enumerable: false,
|
|
@@ -3571,7 +3839,7 @@
|
|
|
3571
3839
|
};
|
|
3572
3840
|
return MapLegendToolComponent;
|
|
3573
3841
|
}());
|
|
3574
|
-
exports.MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || exports.MapLegendToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
3842
|
+
exports.MapLegendToolComponent.ɵfac = function MapLegendToolComponent_Factory(t) { return new (t || exports.MapLegendToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
3575
3843
|
exports.MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
3576
3844
|
if (rf & 1) {
|
|
3577
3845
|
i0__namespace.ɵɵtemplate(0, MapLegendToolComponent_igo_layer_legend_list_0_Template, 2, 6, "igo-layer-legend-list", 0);
|
|
@@ -3590,9 +3858,9 @@
|
|
|
3590
3858
|
i0__namespace.ɵɵadvance(2);
|
|
3591
3859
|
i0__namespace.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0__namespace.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0__namespace.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
3592
3860
|
}
|
|
3593
|
-
}, directives: [i4__namespace.NgIf, i1__namespace.LayerLegendListComponent, i1__namespace.LayerLegendListBindingDirective, i7__namespace
|
|
3861
|
+
}, directives: [i4__namespace$1.NgIf, i1__namespace$1.LayerLegendListComponent, i1__namespace$1.LayerLegendListBindingDirective, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i4__namespace$1.AsyncPipe, i8__namespace.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}"] });
|
|
3594
3862
|
exports.MapLegendToolComponent = __decorate([
|
|
3595
|
-
|
|
3863
|
+
i4.ToolComponent({
|
|
3596
3864
|
name: 'mapLegend',
|
|
3597
3865
|
title: 'igo.integration.tools.legend',
|
|
3598
3866
|
icon: 'format-list-bulleted-type'
|
|
@@ -3606,7 +3874,7 @@
|
|
|
3606
3874
|
templateUrl: './map-legend-tool.component.html',
|
|
3607
3875
|
styleUrls: ['./map-legend-tool.component.scss']
|
|
3608
3876
|
}]
|
|
3609
|
-
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
3877
|
+
}], function () { return [{ type: MapState }, { type: ToolState }, { type: i1__namespace$1.SearchSourceService }, { type: i0__namespace.ChangeDetectorRef }]; }, { updateLegendOnResolutionChange: [{
|
|
3610
3878
|
type: i0.Input
|
|
3611
3879
|
}], layerAdditionAllowed: [{
|
|
3612
3880
|
type: i0.Input
|
|
@@ -3846,7 +4114,7 @@
|
|
|
3846
4114
|
};
|
|
3847
4115
|
return AdvancedSwipeComponent;
|
|
3848
4116
|
}());
|
|
3849
|
-
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(
|
|
4117
|
+
AdvancedSwipeComponent.ɵfac = function AdvancedSwipeComponent_Factory(t) { return new (t || AdvancedSwipeComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i1__namespace.ContextService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(ToolState)); };
|
|
3850
4118
|
AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
|
|
3851
4119
|
if (rf & 1) {
|
|
3852
4120
|
i0__namespace.ɵɵtemplate(0, AdvancedSwipeComponent_div_0_Template, 16, 14, "div", 0);
|
|
@@ -3856,7 +4124,7 @@
|
|
|
3856
4124
|
var _r1 = i0__namespace.ɵɵreference(2);
|
|
3857
4125
|
i0__namespace.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
3858
4126
|
}
|
|
3859
|
-
}, directives: [i4__namespace.NgIf, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$
|
|
4127
|
+
}, directives: [i4__namespace$1.NgIf, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$1.MatSelect, i3__namespace$1.NgControlStatus, i3__namespace$1.FormControlName, i8__namespace$1.MatOption, i9__namespace.MatDivider, i4__namespace$1.NgForOf, i10__namespace.MatSlideToggle, i7__namespace.MatList, i7__namespace.MatListItem, i6__namespace.MatIcon, i7__namespace.MatListIconCssMatStyler, i8__namespace$1.MatLine], pipes: [i8__namespace.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}"] });
|
|
3860
4128
|
(function () {
|
|
3861
4129
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
3862
4130
|
type: i0.Component,
|
|
@@ -3865,7 +4133,7 @@
|
|
|
3865
4133
|
templateUrl: './advanced-swipe.component.html',
|
|
3866
4134
|
styleUrls: ['./advanced-swipe.component.scss']
|
|
3867
4135
|
}]
|
|
3868
|
-
}], function () { return [{ type: MapState }, { type:
|
|
4136
|
+
}], function () { return [{ type: MapState }, { type: i1__namespace.ContextService }, { type: i3__namespace$1.FormBuilder }, { type: ToolState }]; }, null);
|
|
3869
4137
|
})();
|
|
3870
4138
|
|
|
3871
4139
|
function AdvancedCoordinatesComponent_mat_form_field_0_Template(rf, ctx) {
|
|
@@ -3997,8 +4265,8 @@
|
|
|
3997
4265
|
.subscribe(function () {
|
|
3998
4266
|
_this.setScaleValue(_this.map);
|
|
3999
4267
|
_this.currentCenterDefaultProj = _this.map.viewController.getCenter(_this.defaultProj.code);
|
|
4000
|
-
var currentMtmZone = i1.zoneMtm(_this.currentCenterDefaultProj[0]);
|
|
4001
|
-
var currentUtmZone = i1.zoneUtm(_this.currentCenterDefaultProj[0]);
|
|
4268
|
+
var currentMtmZone = i1$1.zoneMtm(_this.currentCenterDefaultProj[0]);
|
|
4269
|
+
var currentUtmZone = i1$1.zoneUtm(_this.currentCenterDefaultProj[0]);
|
|
4002
4270
|
if (!_this.inMtmZone && currentMtmZone !== _this.currentZones.mtm) {
|
|
4003
4271
|
_this.back2quebec();
|
|
4004
4272
|
}
|
|
@@ -4017,7 +4285,7 @@
|
|
|
4017
4285
|
_this.checkLambert(_this.currentCenterDefaultProj);
|
|
4018
4286
|
_this.coordinates = _this.getCoordinates();
|
|
4019
4287
|
_this.cdRef.detectChanges();
|
|
4020
|
-
_this.storageService.set('currentProjection', _this.inputProj, i2$
|
|
4288
|
+
_this.storageService.set('currentProjection', _this.inputProj, i2$1.StorageScope.SESSION);
|
|
4021
4289
|
});
|
|
4022
4290
|
var tempInputProj = this.storageService.get('currentProjection');
|
|
4023
4291
|
this.inputProj = this.projections$.value[0];
|
|
@@ -4035,15 +4303,15 @@
|
|
|
4035
4303
|
this.mapState$$.unsubscribe();
|
|
4036
4304
|
};
|
|
4037
4305
|
AdvancedCoordinatesComponent.prototype.setScaleValue = function (map) {
|
|
4038
|
-
this.formattedScale$.next(': ~ 1 / ' + i1.formatScale(map.viewController.getScale()));
|
|
4306
|
+
this.formattedScale$.next(': ~ 1 / ' + i1$1.formatScale(map.viewController.getScale()));
|
|
4039
4307
|
};
|
|
4040
4308
|
/**
|
|
4041
4309
|
* Coordinates of the center of the map on the appropriate systeme of coordinates
|
|
4042
4310
|
* @returns Array of two numbers
|
|
4043
4311
|
*/
|
|
4044
4312
|
AdvancedCoordinatesComponent.prototype.getCoordinates = function () {
|
|
4045
|
-
this.currentZones.mtm = i1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4046
|
-
this.currentZones.utm = i1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4313
|
+
this.currentZones.mtm = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4314
|
+
this.currentZones.utm = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4047
4315
|
var coord;
|
|
4048
4316
|
var code = this.inputProj.code;
|
|
4049
4317
|
var decimal = 2;
|
|
@@ -4072,7 +4340,7 @@
|
|
|
4072
4340
|
AdvancedCoordinatesComponent.prototype.displayCenter = function (toggle) {
|
|
4073
4341
|
this.center = toggle;
|
|
4074
4342
|
this.map.mapCenter$.next(toggle);
|
|
4075
|
-
this.storageService.set('centerToggle', toggle, i2$
|
|
4343
|
+
this.storageService.set('centerToggle', toggle, i2$1.StorageScope.SESSION);
|
|
4076
4344
|
};
|
|
4077
4345
|
/**
|
|
4078
4346
|
* Builder of the form
|
|
@@ -4091,7 +4359,7 @@
|
|
|
4091
4359
|
var translate = this.languageService.translate;
|
|
4092
4360
|
modifiedProj.map(function (p) {
|
|
4093
4361
|
if (p.translateKey === 'mtm') {
|
|
4094
|
-
var zone = i1.zoneMtm(_this.currentCenterDefaultProj[0]);
|
|
4362
|
+
var zone = i1$1.zoneMtm(_this.currentCenterDefaultProj[0]);
|
|
4095
4363
|
if (zone) {
|
|
4096
4364
|
var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
|
|
4097
4365
|
p.alias = "MTM " + zone;
|
|
@@ -4108,7 +4376,7 @@
|
|
|
4108
4376
|
}
|
|
4109
4377
|
}
|
|
4110
4378
|
if (p.translateKey === 'utm') {
|
|
4111
|
-
var zone = i1.zoneUtm(_this.currentCenterDefaultProj[0]);
|
|
4379
|
+
var zone = i1$1.zoneUtm(_this.currentCenterDefaultProj[0]);
|
|
4112
4380
|
var code = "EPSG:326" + zone;
|
|
4113
4381
|
p.alias = "UTM " + zone;
|
|
4114
4382
|
p.code = code;
|
|
@@ -4123,7 +4391,7 @@
|
|
|
4123
4391
|
* Create a list of currents projections
|
|
4124
4392
|
*/
|
|
4125
4393
|
AdvancedCoordinatesComponent.prototype.computeProjections = function () {
|
|
4126
|
-
this.projectionsConstraints = i1.computeProjectionsConstraints(this.projectionsLimitations);
|
|
4394
|
+
this.projectionsConstraints = i1$1.computeProjectionsConstraints(this.projectionsLimitations);
|
|
4127
4395
|
var projections = [];
|
|
4128
4396
|
if (!this.currentCenterDefaultProj) {
|
|
4129
4397
|
this.currentCenterDefaultProj = this.map.viewController.getCenter(this.defaultProj.code);
|
|
@@ -4149,7 +4417,7 @@
|
|
|
4149
4417
|
}
|
|
4150
4418
|
if (this.projectionsConstraints.mtm) {
|
|
4151
4419
|
// Quebec
|
|
4152
|
-
var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4420
|
+
var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4153
4421
|
if (zone) {
|
|
4154
4422
|
this.inMtmZone = true;
|
|
4155
4423
|
var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
|
|
@@ -4166,7 +4434,7 @@
|
|
|
4166
4434
|
}
|
|
4167
4435
|
if (this.projectionsConstraints.utm) {
|
|
4168
4436
|
var order = this.inMtmZone ? 4 : 3;
|
|
4169
|
-
var zone = i1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4437
|
+
var zone = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4170
4438
|
var code = zone < 10 ? "EPSG:3260" + zone : "EPSG:326" + zone;
|
|
4171
4439
|
projections.splice(order, 0, {
|
|
4172
4440
|
translatedValue: this.languageService.translate.instant('igo.geo.importExportForm.projections.utm', { code: code, zone: zone }),
|
|
@@ -4187,7 +4455,7 @@
|
|
|
4187
4455
|
*/
|
|
4188
4456
|
AdvancedCoordinatesComponent.prototype.pushMtm = function (projections) {
|
|
4189
4457
|
if (this.projectionsConstraints.mtm) {
|
|
4190
|
-
var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4458
|
+
var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4191
4459
|
var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
|
|
4192
4460
|
projections.splice(3, 0, {
|
|
4193
4461
|
translatedValue: this.languageService.translate.instant('igo.geo.importExportForm.projections.mtm', { code: code, zone: zone }),
|
|
@@ -4211,7 +4479,7 @@
|
|
|
4211
4479
|
*/
|
|
4212
4480
|
AdvancedCoordinatesComponent.prototype.updateZoneMtmUtm = function () {
|
|
4213
4481
|
if (this.inputProj.translateKey === 'mtm') {
|
|
4214
|
-
var zone = i1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4482
|
+
var zone = i1$1.zoneMtm(this.currentCenterDefaultProj[0]);
|
|
4215
4483
|
this.inputProj.alias = "MTM " + zone;
|
|
4216
4484
|
var code = zone < 10 ? "EPSG:3218" + zone : "EPSG:321" + (80 + zone);
|
|
4217
4485
|
this.inputProj.code = code;
|
|
@@ -4219,7 +4487,7 @@
|
|
|
4219
4487
|
this.inputProj.translatedValue = this.languageService.translate.instant('igo.geo.importExportForm.projections.mtm', { code: code, zone: zone });
|
|
4220
4488
|
}
|
|
4221
4489
|
if (this.inputProj.translateKey === 'utm') {
|
|
4222
|
-
var zone = i1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4490
|
+
var zone = i1$1.zoneUtm(this.currentCenterDefaultProj[0]);
|
|
4223
4491
|
this.inputProj.alias = "UTM " + zone;
|
|
4224
4492
|
var code = zone < 10 ? "EPSG:3260" + zone : "EPSG:326" + zone;
|
|
4225
4493
|
this.inputProj.code = code;
|
|
@@ -4282,7 +4550,7 @@
|
|
|
4282
4550
|
};
|
|
4283
4551
|
return AdvancedCoordinatesComponent;
|
|
4284
4552
|
}());
|
|
4285
|
-
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
4553
|
+
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MessageService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.StorageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ConfigService), i0__namespace.ɵɵdirectiveInject(i3__namespace$1.FormBuilder)); };
|
|
4286
4554
|
AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
|
|
4287
4555
|
if (rf & 1) {
|
|
4288
4556
|
i0__namespace.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
|
|
@@ -4355,7 +4623,7 @@
|
|
|
4355
4623
|
i0__namespace.ɵɵadvance(4);
|
|
4356
4624
|
i0__namespace.ɵɵtextInterpolate2("", i0__namespace.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0__namespace.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
|
|
4357
4625
|
}
|
|
4358
|
-
}, directives: [i4__namespace.NgIf, i3__namespace.MatButton, i6__namespace.MatIcon, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$
|
|
4626
|
+
}, directives: [i4__namespace$1.NgIf, i3__namespace.MatButton, i6__namespace.MatIcon, i3__namespace$1.ɵNgNoValidate, i3__namespace$1.NgControlStatusGroup, i3__namespace$1.FormGroupDirective, i6__namespace$1.MatFormField, i6__namespace$1.MatLabel, i7__namespace$1.MatSelect, i4__namespace$1.NgForOf, i10__namespace.MatSlideToggle, i10__namespace$1.MatInput, i8__namespace$1.MatOption], pipes: [i8__namespace.TranslatePipe, i4__namespace$1.AsyncPipe, i4__namespace$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}"] });
|
|
4359
4627
|
(function () {
|
|
4360
4628
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
|
|
4361
4629
|
type: i0.Component,
|
|
@@ -4364,7 +4632,7 @@
|
|
|
4364
4632
|
templateUrl: './advanced-coordinates.component.html',
|
|
4365
4633
|
styleUrls: ['./advanced-coordinates.component.scss']
|
|
4366
4634
|
}]
|
|
4367
|
-
}], function () { return [{ type: MapState }, { type: i2__namespace$
|
|
4635
|
+
}], function () { return [{ type: MapState }, { type: i2__namespace$1.LanguageService }, { type: i2__namespace$1.MessageService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.StorageService }, { type: i2__namespace$1.ConfigService }, { type: i3__namespace$1.FormBuilder }]; }, { projectionsLimitations: [{
|
|
4368
4636
|
type: i0.Input
|
|
4369
4637
|
}] });
|
|
4370
4638
|
})();
|
|
@@ -4398,7 +4666,7 @@
|
|
|
4398
4666
|
}
|
|
4399
4667
|
}, directives: [AdvancedSwipeComponent, i9__namespace.MatDivider, AdvancedCoordinatesComponent], pipes: [i8__namespace.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
|
|
4400
4668
|
exports.AdvancedMapToolComponent = __decorate([
|
|
4401
|
-
|
|
4669
|
+
i4.ToolComponent({
|
|
4402
4670
|
name: 'advancedMap',
|
|
4403
4671
|
title: 'igo.integration.tools.advancedMap',
|
|
4404
4672
|
icon: 'toolbox'
|
|
@@ -4436,28 +4704,28 @@
|
|
|
4436
4704
|
i3$1.ReactiveFormsModule,
|
|
4437
4705
|
buttonToggle.MatButtonToggleModule,
|
|
4438
4706
|
i9.MatDividerModule,
|
|
4439
|
-
i7$
|
|
4707
|
+
i7$1.MatSelectModule,
|
|
4440
4708
|
i8$1.MatOptionModule,
|
|
4441
4709
|
i6$1.MatFormFieldModule,
|
|
4442
4710
|
i10$1.MatInputModule,
|
|
4443
4711
|
checkbox.MatCheckboxModule,
|
|
4444
|
-
|
|
4445
|
-
i4.CommonModule,
|
|
4712
|
+
i4.IgoSpinnerModule,
|
|
4713
|
+
i4$1.CommonModule,
|
|
4446
4714
|
i5.MatTabsModule,
|
|
4447
|
-
i7
|
|
4715
|
+
i7.MatListModule,
|
|
4448
4716
|
i6.MatIconModule,
|
|
4449
|
-
i2$
|
|
4450
|
-
i1.IgoLayerModule,
|
|
4451
|
-
i1.IgoMetadataModule,
|
|
4452
|
-
i1.IgoDownloadModule,
|
|
4453
|
-
i1.IgoImportExportModule,
|
|
4454
|
-
i1.IgoFilterModule,
|
|
4455
|
-
|
|
4717
|
+
i2$1.IgoLanguageModule,
|
|
4718
|
+
i1$1.IgoLayerModule,
|
|
4719
|
+
i1$1.IgoMetadataModule,
|
|
4720
|
+
i1$1.IgoDownloadModule,
|
|
4721
|
+
i1$1.IgoImportExportModule,
|
|
4722
|
+
i1$1.IgoFilterModule,
|
|
4723
|
+
i1.IgoContextModule,
|
|
4456
4724
|
IgoAppWorkspaceModule,
|
|
4457
4725
|
i10.MatSlideToggleModule,
|
|
4458
4726
|
i6$2.MatMenuModule,
|
|
4459
4727
|
i3.MatButtonModule,
|
|
4460
|
-
i4$
|
|
4728
|
+
i4$2.MatTooltipModule
|
|
4461
4729
|
]] });
|
|
4462
4730
|
(function () {
|
|
4463
4731
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppMapModule, [{
|
|
@@ -4468,28 +4736,28 @@
|
|
|
4468
4736
|
i3$1.ReactiveFormsModule,
|
|
4469
4737
|
buttonToggle.MatButtonToggleModule,
|
|
4470
4738
|
i9.MatDividerModule,
|
|
4471
|
-
i7$
|
|
4739
|
+
i7$1.MatSelectModule,
|
|
4472
4740
|
i8$1.MatOptionModule,
|
|
4473
4741
|
i6$1.MatFormFieldModule,
|
|
4474
4742
|
i10$1.MatInputModule,
|
|
4475
4743
|
checkbox.MatCheckboxModule,
|
|
4476
|
-
|
|
4477
|
-
i4.CommonModule,
|
|
4744
|
+
i4.IgoSpinnerModule,
|
|
4745
|
+
i4$1.CommonModule,
|
|
4478
4746
|
i5.MatTabsModule,
|
|
4479
|
-
i7
|
|
4747
|
+
i7.MatListModule,
|
|
4480
4748
|
i6.MatIconModule,
|
|
4481
|
-
i2$
|
|
4482
|
-
i1.IgoLayerModule,
|
|
4483
|
-
i1.IgoMetadataModule,
|
|
4484
|
-
i1.IgoDownloadModule,
|
|
4485
|
-
i1.IgoImportExportModule,
|
|
4486
|
-
i1.IgoFilterModule,
|
|
4487
|
-
|
|
4749
|
+
i2$1.IgoLanguageModule,
|
|
4750
|
+
i1$1.IgoLayerModule,
|
|
4751
|
+
i1$1.IgoMetadataModule,
|
|
4752
|
+
i1$1.IgoDownloadModule,
|
|
4753
|
+
i1$1.IgoImportExportModule,
|
|
4754
|
+
i1$1.IgoFilterModule,
|
|
4755
|
+
i1.IgoContextModule,
|
|
4488
4756
|
IgoAppWorkspaceModule,
|
|
4489
4757
|
i10.MatSlideToggleModule,
|
|
4490
4758
|
i6$2.MatMenuModule,
|
|
4491
4759
|
i3.MatButtonModule,
|
|
4492
|
-
i4$
|
|
4760
|
+
i4$2.MatTooltipModule
|
|
4493
4761
|
],
|
|
4494
4762
|
declarations: [exports.AdvancedMapToolComponent, exports.MapToolComponent,
|
|
4495
4763
|
exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent, AdvancedSwipeComponent, AdvancedCoordinatesComponent],
|
|
@@ -4504,28 +4772,28 @@
|
|
|
4504
4772
|
i3$1.ReactiveFormsModule,
|
|
4505
4773
|
buttonToggle.MatButtonToggleModule,
|
|
4506
4774
|
i9.MatDividerModule,
|
|
4507
|
-
i7$
|
|
4775
|
+
i7$1.MatSelectModule,
|
|
4508
4776
|
i8$1.MatOptionModule,
|
|
4509
4777
|
i6$1.MatFormFieldModule,
|
|
4510
4778
|
i10$1.MatInputModule,
|
|
4511
4779
|
checkbox.MatCheckboxModule,
|
|
4512
|
-
|
|
4513
|
-
i4.CommonModule,
|
|
4780
|
+
i4.IgoSpinnerModule,
|
|
4781
|
+
i4$1.CommonModule,
|
|
4514
4782
|
i5.MatTabsModule,
|
|
4515
|
-
i7
|
|
4783
|
+
i7.MatListModule,
|
|
4516
4784
|
i6.MatIconModule,
|
|
4517
|
-
i2$
|
|
4518
|
-
i1.IgoLayerModule,
|
|
4519
|
-
i1.IgoMetadataModule,
|
|
4520
|
-
i1.IgoDownloadModule,
|
|
4521
|
-
i1.IgoImportExportModule,
|
|
4522
|
-
i1.IgoFilterModule,
|
|
4523
|
-
|
|
4785
|
+
i2$1.IgoLanguageModule,
|
|
4786
|
+
i1$1.IgoLayerModule,
|
|
4787
|
+
i1$1.IgoMetadataModule,
|
|
4788
|
+
i1$1.IgoDownloadModule,
|
|
4789
|
+
i1$1.IgoImportExportModule,
|
|
4790
|
+
i1$1.IgoFilterModule,
|
|
4791
|
+
i1.IgoContextModule,
|
|
4524
4792
|
IgoAppWorkspaceModule,
|
|
4525
4793
|
i10.MatSlideToggleModule,
|
|
4526
4794
|
i6$2.MatMenuModule,
|
|
4527
4795
|
i3.MatButtonModule,
|
|
4528
|
-
i4$
|
|
4796
|
+
i4$2.MatTooltipModule], exports: [exports.AdvancedMapToolComponent, exports.MapToolComponent, exports.MapToolsComponent, exports.MapDetailsToolComponent, exports.MapLegendToolComponent] });
|
|
4529
4797
|
})();
|
|
4530
4798
|
|
|
4531
4799
|
/**
|
|
@@ -4538,7 +4806,7 @@
|
|
|
4538
4806
|
/**
|
|
4539
4807
|
* Store that holds the measures
|
|
4540
4808
|
*/
|
|
4541
|
-
this.store = new i1.FeatureStore([], {
|
|
4809
|
+
this.store = new i1$1.FeatureStore([], {
|
|
4542
4810
|
map: this.mapState.map
|
|
4543
4811
|
});
|
|
4544
4812
|
this.mapState.map.layers$.subscribe(function (layers) {
|
|
@@ -4599,9 +4867,9 @@
|
|
|
4599
4867
|
if (rf & 2) {
|
|
4600
4868
|
i0__namespace.ɵɵproperty("store", ctx.store)("map", ctx.map);
|
|
4601
4869
|
}
|
|
4602
|
-
}, directives: [i1__namespace.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
|
|
4870
|
+
}, directives: [i1__namespace$1.MeasurerComponent], encapsulation: 2, changeDetection: 0 });
|
|
4603
4871
|
exports.MeasurerToolComponent = __decorate([
|
|
4604
|
-
|
|
4872
|
+
i4.ToolComponent({
|
|
4605
4873
|
name: 'measurer',
|
|
4606
4874
|
title: 'igo.integration.tools.measurer',
|
|
4607
4875
|
icon: 'ruler'
|
|
@@ -4629,14 +4897,14 @@
|
|
|
4629
4897
|
IgoAppMeasurerToolModule.ɵfac = function IgoAppMeasurerToolModule_Factory(t) { return new (t || IgoAppMeasurerToolModule)(); };
|
|
4630
4898
|
IgoAppMeasurerToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppMeasurerToolModule });
|
|
4631
4899
|
IgoAppMeasurerToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
4632
|
-
i1.IgoMeasurerModule
|
|
4900
|
+
i1$1.IgoMeasurerModule
|
|
4633
4901
|
]] });
|
|
4634
4902
|
(function () {
|
|
4635
4903
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppMeasurerToolModule, [{
|
|
4636
4904
|
type: i0.NgModule,
|
|
4637
4905
|
args: [{
|
|
4638
4906
|
imports: [
|
|
4639
|
-
i1.IgoMeasurerModule
|
|
4907
|
+
i1$1.IgoMeasurerModule
|
|
4640
4908
|
],
|
|
4641
4909
|
declarations: [exports.MeasurerToolComponent],
|
|
4642
4910
|
exports: [exports.MeasurerToolComponent],
|
|
@@ -4644,7 +4912,7 @@
|
|
|
4644
4912
|
}]
|
|
4645
4913
|
}], null, null);
|
|
4646
4914
|
})();
|
|
4647
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMeasurerToolModule, { declarations: [exports.MeasurerToolComponent], imports: [i1.IgoMeasurerModule], exports: [exports.MeasurerToolComponent] }); })();
|
|
4915
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppMeasurerToolModule, { declarations: [exports.MeasurerToolComponent], imports: [i1$1.IgoMeasurerModule], exports: [exports.MeasurerToolComponent] }); })();
|
|
4648
4916
|
|
|
4649
4917
|
var IgoAppMeasureModule = /** @class */ (function () {
|
|
4650
4918
|
function IgoAppMeasureModule() {
|
|
@@ -4689,9 +4957,9 @@
|
|
|
4689
4957
|
if (rf & 2) {
|
|
4690
4958
|
i0__namespace.ɵɵproperty("map", ctx.map);
|
|
4691
4959
|
}
|
|
4692
|
-
}, directives: [i1__namespace.PrintComponent], encapsulation: 2 });
|
|
4960
|
+
}, directives: [i1__namespace$1.PrintComponent], encapsulation: 2 });
|
|
4693
4961
|
exports.PrintToolComponent = __decorate([
|
|
4694
|
-
|
|
4962
|
+
i4.ToolComponent({
|
|
4695
4963
|
name: 'print',
|
|
4696
4964
|
title: 'igo.integration.tools.print',
|
|
4697
4965
|
icon: 'printer'
|
|
@@ -4720,19 +4988,19 @@
|
|
|
4720
4988
|
}());
|
|
4721
4989
|
IgoAppPrintModule.ɵfac = function IgoAppPrintModule_Factory(t) { return new (t || IgoAppPrintModule)(); };
|
|
4722
4990
|
IgoAppPrintModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppPrintModule });
|
|
4723
|
-
IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoPrintModule]] });
|
|
4991
|
+
IgoAppPrintModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoPrintModule]] });
|
|
4724
4992
|
(function () {
|
|
4725
4993
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppPrintModule, [{
|
|
4726
4994
|
type: i0.NgModule,
|
|
4727
4995
|
args: [{
|
|
4728
|
-
imports: [i1.IgoPrintModule],
|
|
4996
|
+
imports: [i1$1.IgoPrintModule],
|
|
4729
4997
|
declarations: [exports.PrintToolComponent],
|
|
4730
4998
|
exports: [exports.PrintToolComponent],
|
|
4731
4999
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA]
|
|
4732
5000
|
}]
|
|
4733
5001
|
}], null, null);
|
|
4734
5002
|
})();
|
|
4735
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppPrintModule, { declarations: [exports.PrintToolComponent], imports: [i1.IgoPrintModule], exports: [exports.PrintToolComponent] }); })();
|
|
5003
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppPrintModule, { declarations: [exports.PrintToolComponent], imports: [i1$1.IgoPrintModule], exports: [exports.PrintToolComponent] }); })();
|
|
4736
5004
|
|
|
4737
5005
|
/**
|
|
4738
5006
|
* Service that holds the state of the search module
|
|
@@ -4755,7 +5023,7 @@
|
|
|
4755
5023
|
/**
|
|
4756
5024
|
* Store that holds the search results
|
|
4757
5025
|
*/
|
|
4758
|
-
this.store = new
|
|
5026
|
+
this.store = new i4.EntityStore([]);
|
|
4759
5027
|
var searchOverlayStyle = this.configService.getConfig('searchOverlayStyle');
|
|
4760
5028
|
if (searchOverlayStyle) {
|
|
4761
5029
|
this.searchOverlayStyle = searchOverlayStyle.base;
|
|
@@ -4784,14 +5052,14 @@
|
|
|
4784
5052
|
var filterClauseFunc = function (record) {
|
|
4785
5053
|
return record.entity.meta.score === 100;
|
|
4786
5054
|
};
|
|
4787
|
-
return new
|
|
5055
|
+
return new i4.EntityStoreFilterCustomFuncStrategy({ filterClauseFunc: filterClauseFunc });
|
|
4788
5056
|
};
|
|
4789
5057
|
/**
|
|
4790
5058
|
* Activate custom strategy
|
|
4791
5059
|
*
|
|
4792
5060
|
*/
|
|
4793
5061
|
SearchState.prototype.activateCustomFilterTermStrategy = function () {
|
|
4794
|
-
var strategy = this.store.getStrategyOfType(
|
|
5062
|
+
var strategy = this.store.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
4795
5063
|
if (strategy !== undefined) {
|
|
4796
5064
|
strategy.activate();
|
|
4797
5065
|
}
|
|
@@ -4801,7 +5069,7 @@
|
|
|
4801
5069
|
*
|
|
4802
5070
|
*/
|
|
4803
5071
|
SearchState.prototype.deactivateCustomFilterTermStrategy = function () {
|
|
4804
|
-
var strategy = this.store.getStrategyOfType(
|
|
5072
|
+
var strategy = this.store.getStrategyOfType(i4.EntityStoreFilterCustomFuncStrategy);
|
|
4805
5073
|
if (strategy !== undefined) {
|
|
4806
5074
|
strategy.deactivate();
|
|
4807
5075
|
}
|
|
@@ -4831,7 +5099,7 @@
|
|
|
4831
5099
|
};
|
|
4832
5100
|
return SearchState;
|
|
4833
5101
|
}());
|
|
4834
|
-
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0__namespace.ɵɵinject(i1__namespace.SearchSourceService), i0__namespace.ɵɵinject(i2__namespace$
|
|
5102
|
+
SearchState.ɵfac = function SearchState_Factory(t) { return new (t || SearchState)(i0__namespace.ɵɵinject(i1__namespace$1.SearchSourceService), i0__namespace.ɵɵinject(i2__namespace$1.StorageService), i0__namespace.ɵɵinject(i2__namespace$1.ConfigService)); };
|
|
4835
5103
|
SearchState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: SearchState, factory: SearchState.ɵfac, providedIn: 'root' });
|
|
4836
5104
|
(function () {
|
|
4837
5105
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchState, [{
|
|
@@ -4839,7 +5107,7 @@
|
|
|
4839
5107
|
args: [{
|
|
4840
5108
|
providedIn: 'root'
|
|
4841
5109
|
}]
|
|
4842
|
-
}], function () { return [{ type: i1__namespace.SearchSourceService }, { type: i2__namespace$
|
|
5110
|
+
}], function () { return [{ type: i1__namespace$1.SearchSourceService }, { type: i2__namespace$1.StorageService }, { type: i2__namespace$1.ConfigService }]; }, null);
|
|
4843
5111
|
})();
|
|
4844
5112
|
|
|
4845
5113
|
var SearchBarBindingDirective = /** @class */ (function () {
|
|
@@ -4890,7 +5158,7 @@
|
|
|
4890
5158
|
};
|
|
4891
5159
|
return SearchBarBindingDirective;
|
|
4892
5160
|
}());
|
|
4893
|
-
SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace.SearchBarComponent, 2), i0__namespace.ɵɵdirectiveInject(SearchState)); };
|
|
5161
|
+
SearchBarBindingDirective.ɵfac = function SearchBarBindingDirective_Factory(t) { return new (t || SearchBarBindingDirective)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SearchBarComponent, 2), i0__namespace.ɵɵdirectiveInject(SearchState)); };
|
|
4894
5162
|
SearchBarBindingDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: SearchBarBindingDirective, selectors: [["", "igoSearchBarBinding", ""]], hostBindings: function SearchBarBindingDirective_HostBindings(rf, ctx) {
|
|
4895
5163
|
if (rf & 1) {
|
|
4896
5164
|
i0__namespace.ɵɵlistener("searchTermChange", function SearchBarBindingDirective_searchTermChange_HostBindingHandler($event) { return ctx.onSearchTermChange($event); })("searchTypeChange", function SearchBarBindingDirective_searchTypeChange_HostBindingHandler($event) { return ctx.onSearchTypeChange($event); });
|
|
@@ -4903,7 +5171,7 @@
|
|
|
4903
5171
|
selector: '[igoSearchBarBinding]'
|
|
4904
5172
|
}]
|
|
4905
5173
|
}], function () {
|
|
4906
|
-
return [{ type: i1__namespace.SearchBarComponent, decorators: [{
|
|
5174
|
+
return [{ type: i1__namespace$1.SearchBarComponent, decorators: [{
|
|
4907
5175
|
type: i0.Self
|
|
4908
5176
|
}] }, { type: SearchState }];
|
|
4909
5177
|
}, { onSearchTermChange: [{
|
|
@@ -4925,18 +5193,18 @@
|
|
|
4925
5193
|
}());
|
|
4926
5194
|
IgoAppSearchBarModule.ɵfac = function IgoAppSearchBarModule_Factory(t) { return new (t || IgoAppSearchBarModule)(); };
|
|
4927
5195
|
IgoAppSearchBarModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppSearchBarModule });
|
|
4928
|
-
IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoSearchModule]] });
|
|
5196
|
+
IgoAppSearchBarModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoSearchModule]] });
|
|
4929
5197
|
(function () {
|
|
4930
5198
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppSearchBarModule, [{
|
|
4931
5199
|
type: i0.NgModule,
|
|
4932
5200
|
args: [{
|
|
4933
|
-
imports: [i1.IgoSearchModule],
|
|
5201
|
+
imports: [i1$1.IgoSearchModule],
|
|
4934
5202
|
declarations: [SearchBarBindingDirective],
|
|
4935
5203
|
exports: [SearchBarBindingDirective],
|
|
4936
5204
|
}]
|
|
4937
5205
|
}], null, null);
|
|
4938
5206
|
})();
|
|
4939
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchBarModule, { declarations: [SearchBarBindingDirective], imports: [i1.IgoSearchModule], exports: [SearchBarBindingDirective] }); })();
|
|
5207
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchBarModule, { declarations: [SearchBarBindingDirective], imports: [i1$1.IgoSearchModule], exports: [SearchBarBindingDirective] }); })();
|
|
4940
5208
|
|
|
4941
5209
|
function SearchResultsToolComponent_div_0_Template(rf, ctx) {
|
|
4942
5210
|
if (rf & 1) {
|
|
@@ -5100,7 +5368,7 @@
|
|
|
5100
5368
|
});
|
|
5101
5369
|
Object.defineProperty(SearchResultsToolComponent.prototype, "featureTitle", {
|
|
5102
5370
|
get: function () {
|
|
5103
|
-
return this.feature ?
|
|
5371
|
+
return this.feature ? i4.getEntityTitle(this.feature) : undefined;
|
|
5104
5372
|
},
|
|
5105
5373
|
enumerable: false,
|
|
5106
5374
|
configurable: true
|
|
@@ -5169,7 +5437,7 @@
|
|
|
5169
5437
|
if (!_this.isScrolledIntoView(igoList, selected)) {
|
|
5170
5438
|
_this.adjustTopPanel(igoList, selected);
|
|
5171
5439
|
}
|
|
5172
|
-
},
|
|
5440
|
+
}, i4.FlexibleComponent.transitionTime + 50);
|
|
5173
5441
|
}
|
|
5174
5442
|
});
|
|
5175
5443
|
if (this.hasFeatureEmphasisOnSelection) {
|
|
@@ -5202,7 +5470,7 @@
|
|
|
5202
5470
|
}
|
|
5203
5471
|
_this.shownResultsGeometries.map(function (result) { return _this.map.queryResultsOverlay.removeFeature(result); });
|
|
5204
5472
|
var featureToHandleGeom = searchResults
|
|
5205
|
-
.filter(function (result) { return result.entity.meta.dataType === i1.FEATURE &&
|
|
5473
|
+
.filter(function (result) { return result.entity.meta.dataType === i1$1.FEATURE &&
|
|
5206
5474
|
result.entity.data.geometry &&
|
|
5207
5475
|
!result.state.selected &&
|
|
5208
5476
|
!result.state.focused; });
|
|
@@ -5210,9 +5478,9 @@
|
|
|
5210
5478
|
var _a;
|
|
5211
5479
|
if (searchResultsGeometryEnabled) {
|
|
5212
5480
|
result.entity.data.meta.style =
|
|
5213
|
-
i1.getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, _this.searchState.searchOverlayStyle, ((_a = result.entity.style) === null || _a === void 0 ? void 0 : _a.base) ? result.entity.style.base : {}));
|
|
5481
|
+
i1$1.getCommonVectorStyle(Object.assign({}, { feature: result.entity.data }, _this.searchState.searchOverlayStyle, ((_a = result.entity.style) === null || _a === void 0 ? void 0 : _a.base) ? result.entity.style.base : {}));
|
|
5214
5482
|
_this.shownResultsGeometries.push(result.entity.data);
|
|
5215
|
-
_this.map.queryResultsOverlay.addFeature(result.entity.data, i1.FeatureMotion.None);
|
|
5483
|
+
_this.map.queryResultsOverlay.addFeature(result.entity.data, i1$1.FeatureMotion.None);
|
|
5216
5484
|
if (_this.hasFeatureEmphasisOnSelection) {
|
|
5217
5485
|
_this.buildResultEmphasis(result.entity, 'shown');
|
|
5218
5486
|
}
|
|
@@ -5234,11 +5502,11 @@
|
|
|
5234
5502
|
return;
|
|
5235
5503
|
}
|
|
5236
5504
|
if (selectedResult.data.geometry) {
|
|
5237
|
-
var selectedOlFeature = i1.featureToOl(selectedResult.data, _this.map.projection);
|
|
5238
|
-
var selectedOlFeatureExtent = i1.computeOlFeaturesExtent(_this.map, [
|
|
5505
|
+
var selectedOlFeature = i1$1.featureToOl(selectedResult.data, _this.map.projection);
|
|
5506
|
+
var selectedOlFeatureExtent = i1$1.computeOlFeaturesExtent(_this.map, [
|
|
5239
5507
|
selectedOlFeature
|
|
5240
5508
|
]);
|
|
5241
|
-
_this.isSelectedResultOutOfView$.next(i1.featuresAreOutOfView(_this.map, selectedOlFeatureExtent));
|
|
5509
|
+
_this.isSelectedResultOutOfView$.next(i1$1.featuresAreOutOfView(_this.map, selectedOlFeatureExtent));
|
|
5242
5510
|
}
|
|
5243
5511
|
});
|
|
5244
5512
|
};
|
|
@@ -5250,9 +5518,9 @@
|
|
|
5250
5518
|
if (!result || !result.data.geometry) {
|
|
5251
5519
|
return;
|
|
5252
5520
|
}
|
|
5253
|
-
var myOlFeature = i1.featureToOl(result.data, this.map.projection);
|
|
5521
|
+
var myOlFeature = i1$1.featureToOl(result.data, this.map.projection);
|
|
5254
5522
|
var olGeometry = myOlFeature.getGeometry();
|
|
5255
|
-
if (i1.featuresAreTooDeepInView(this.map, olGeometry.getExtent(), 0.0025)) {
|
|
5523
|
+
if (i1$1.featuresAreTooDeepInView(this.map, olGeometry.getExtent(), 0.0025)) {
|
|
5256
5524
|
var extent = olGeometry.getExtent();
|
|
5257
5525
|
var x = extent[0] + (extent[2] - extent[0]) / 2;
|
|
5258
5526
|
var y = extent[1] + (extent[3] - extent[1]) / 2;
|
|
@@ -5260,25 +5528,25 @@
|
|
|
5260
5528
|
name: trigger + "AbstractResult'",
|
|
5261
5529
|
geometry: new olPoint__default["default"]([x, y])
|
|
5262
5530
|
});
|
|
5263
|
-
var abstractResult = i1.featureFromOl(feature1, this.map.projection);
|
|
5531
|
+
var abstractResult = i1$1.featureFromOl(feature1, this.map.projection);
|
|
5264
5532
|
var computedStyle = void 0;
|
|
5265
5533
|
var zIndexOffset = 0;
|
|
5266
5534
|
switch (trigger) {
|
|
5267
5535
|
case 'focused':
|
|
5268
|
-
computedStyle = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5536
|
+
computedStyle = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5269
5537
|
zIndexOffset = 2;
|
|
5270
5538
|
break;
|
|
5271
5539
|
case 'shown':
|
|
5272
|
-
computedStyle = i1.getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle, ((_b = result.style) === null || _b === void 0 ? void 0 : _b.base) ? result.style.base : {}));
|
|
5540
|
+
computedStyle = i1$1.getCommonVectorStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyle, ((_b = result.style) === null || _b === void 0 ? void 0 : _b.base) ? result.style.base : {}));
|
|
5273
5541
|
break;
|
|
5274
5542
|
case 'selected':
|
|
5275
|
-
computedStyle = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection, ((_c = result.style) === null || _c === void 0 ? void 0 : _c.selection) ? result.style.selection : {}));
|
|
5543
|
+
computedStyle = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: abstractResult }, this.searchState.searchOverlayStyleSelection, ((_c = result.style) === null || _c === void 0 ? void 0 : _c.selection) ? result.style.selection : {}));
|
|
5276
5544
|
zIndexOffset = 1;
|
|
5277
5545
|
break;
|
|
5278
5546
|
}
|
|
5279
5547
|
abstractResult.meta.style = computedStyle;
|
|
5280
5548
|
abstractResult.meta.style.setZIndex(2000 + zIndexOffset);
|
|
5281
|
-
this.map.searchResultsOverlay.addFeature(abstractResult, i1.FeatureMotion.None);
|
|
5549
|
+
this.map.searchResultsOverlay.addFeature(abstractResult, i1$1.FeatureMotion.None);
|
|
5282
5550
|
if (trigger === 'focused') {
|
|
5283
5551
|
this.abstractFocusedResult = abstractResult;
|
|
5284
5552
|
}
|
|
@@ -5329,26 +5597,26 @@
|
|
|
5329
5597
|
SearchResultsToolComponent.prototype.onResultFocus = function (result) {
|
|
5330
5598
|
var _a;
|
|
5331
5599
|
this.focusedResult$.next(result);
|
|
5332
|
-
if (result.meta.dataType === i1.FEATURE && result.data.geometry) {
|
|
5333
|
-
result.data.meta.style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5600
|
+
if (result.meta.dataType === i1$1.FEATURE && result.data.geometry) {
|
|
5601
|
+
result.data.meta.style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5334
5602
|
var feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
|
|
5335
5603
|
if (feature) {
|
|
5336
5604
|
feature.setStyle(result.data.meta.style);
|
|
5337
5605
|
return;
|
|
5338
5606
|
}
|
|
5339
|
-
this.map.searchResultsOverlay.addFeature(result.data, i1.FeatureMotion.None);
|
|
5607
|
+
this.map.searchResultsOverlay.addFeature(result.data, i1$1.FeatureMotion.None);
|
|
5340
5608
|
}
|
|
5341
5609
|
};
|
|
5342
5610
|
SearchResultsToolComponent.prototype.onResultUnfocus = function (result) {
|
|
5343
5611
|
var _a;
|
|
5344
5612
|
this.focusedResult$.next(undefined);
|
|
5345
|
-
if (result.meta.dataType !== i1.FEATURE) {
|
|
5613
|
+
if (result.meta.dataType !== i1$1.FEATURE) {
|
|
5346
5614
|
return;
|
|
5347
5615
|
}
|
|
5348
5616
|
if (this.store.state.get(result).selected === true) {
|
|
5349
5617
|
var feature = this.map.searchResultsOverlay.dataSource.ol.getFeatureById(result.meta.id);
|
|
5350
5618
|
if (feature) {
|
|
5351
|
-
var style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5619
|
+
var style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: result.data }, this.searchState.searchOverlayStyleFocus, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.focus) ? result.style.focus : {}));
|
|
5352
5620
|
feature.setStyle(style);
|
|
5353
5621
|
}
|
|
5354
5622
|
return;
|
|
@@ -5373,7 +5641,7 @@
|
|
|
5373
5641
|
if (!_this.isScrolledIntoView(igoList_1, selected_1)) {
|
|
5374
5642
|
_this.adjustTopPanel(igoList_1, selected_1);
|
|
5375
5643
|
}
|
|
5376
|
-
},
|
|
5644
|
+
}, i4.FlexibleComponent.transitionTime + 50);
|
|
5377
5645
|
}
|
|
5378
5646
|
if (this.topPanelState === 'initial') {
|
|
5379
5647
|
this.topPanelState = 'expanded';
|
|
@@ -5466,7 +5734,7 @@
|
|
|
5466
5734
|
dataProjection: this.feature.projection,
|
|
5467
5735
|
featureProjection: this.map.projection
|
|
5468
5736
|
});
|
|
5469
|
-
i1.moveToOlFeatures(this.map, [localOlFeature], i1.FeatureMotion.Zoom);
|
|
5737
|
+
i1$1.moveToOlFeatures(this.map, [localOlFeature], i1$1.FeatureMotion.Zoom);
|
|
5470
5738
|
}
|
|
5471
5739
|
};
|
|
5472
5740
|
/**
|
|
@@ -5475,7 +5743,7 @@
|
|
|
5475
5743
|
*/
|
|
5476
5744
|
SearchResultsToolComponent.prototype.tryAddFeatureToMap = function (result) {
|
|
5477
5745
|
var _a;
|
|
5478
|
-
if (result.meta.dataType !== i1.FEATURE) {
|
|
5746
|
+
if (result.meta.dataType !== i1$1.FEATURE) {
|
|
5479
5747
|
return undefined;
|
|
5480
5748
|
}
|
|
5481
5749
|
var feature = result.data;
|
|
@@ -5483,7 +5751,7 @@
|
|
|
5483
5751
|
if (!feature.geometry) {
|
|
5484
5752
|
return;
|
|
5485
5753
|
}
|
|
5486
|
-
feature.meta.style = i1.getCommonVectorSelectedStyle(Object.assign({}, { feature: feature }, this.searchState.searchOverlayStyleSelection, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.selection) ? result.style.selection : {}));
|
|
5754
|
+
feature.meta.style = i1$1.getCommonVectorSelectedStyle(Object.assign({}, { feature: feature }, this.searchState.searchOverlayStyleSelection, ((_a = result.style) === null || _a === void 0 ? void 0 : _a.selection) ? result.style.selection : {}));
|
|
5487
5755
|
this.map.searchResultsOverlay.addFeature(feature);
|
|
5488
5756
|
};
|
|
5489
5757
|
SearchResultsToolComponent.prototype.isScrolledIntoView = function (elemSource, elem) {
|
|
@@ -5526,7 +5794,7 @@
|
|
|
5526
5794
|
};
|
|
5527
5795
|
return SearchResultsToolComponent;
|
|
5528
5796
|
}());
|
|
5529
|
-
exports.SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || exports.SearchResultsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(SearchState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
5797
|
+
exports.SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || exports.SearchResultsToolComponent)(i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(SearchState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(DirectionState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ConfigService)); };
|
|
5530
5798
|
exports.SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
5531
5799
|
if (rf & 1) {
|
|
5532
5800
|
i0__namespace.ɵɵtemplate(0, SearchResultsToolComponent_div_0_Template, 13, 11, "div", 0);
|
|
@@ -5538,9 +5806,9 @@
|
|
|
5538
5806
|
i0__namespace.ɵɵadvance(1);
|
|
5539
5807
|
i0__namespace.ɵɵproperty("ngIf", ctx.store && i0__namespace.ɵɵpipeBind1(2, 2, ctx.store.stateView.empty$) === false);
|
|
5540
5808
|
}
|
|
5541
|
-
}, directives: [i4__namespace.NgIf,
|
|
5809
|
+
}, directives: [i4__namespace$1.NgIf, i4__namespace.FlexibleComponent, i1__namespace$1.SearchResultsComponent, i1__namespace$1.SearchResultAddButtonComponent, i4__namespace.PanelComponent, i3__namespace.MatButton, i6__namespace.MatIcon, i1__namespace$1.FeatureDetailsComponent, i1__namespace$1.FeatureDetailsDirective, i4__namespace$2.MatTooltip, i12__namespace.MatBadge], pipes: [i4__namespace$1.AsyncPipe, i8__namespace.TranslatePipe, i4__namespace.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
|
|
5542
5810
|
exports.SearchResultsToolComponent = __decorate([
|
|
5543
|
-
|
|
5811
|
+
i4.ToolComponent({
|
|
5544
5812
|
name: 'searchResults',
|
|
5545
5813
|
title: 'igo.integration.tools.searchResults',
|
|
5546
5814
|
icon: 'magnify'
|
|
@@ -5554,7 +5822,7 @@
|
|
|
5554
5822
|
templateUrl: './search-results-tool.component.html',
|
|
5555
5823
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5556
5824
|
}]
|
|
5557
|
-
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0__namespace.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2__namespace$
|
|
5825
|
+
}], function () { return [{ type: MapState }, { type: SearchState }, { type: i0__namespace.ElementRef }, { type: ToolState }, { type: DirectionState }, { type: i2__namespace$1.ConfigService }]; }, { showIcons: [{
|
|
5558
5826
|
type: i0.Input
|
|
5559
5827
|
}], topPanelState: [{
|
|
5560
5828
|
type: i0.Input
|
|
@@ -5572,36 +5840,36 @@
|
|
|
5572
5840
|
IgoAppSearchResultsToolModule.ɵfac = function IgoAppSearchResultsToolModule_Factory(t) { return new (t || IgoAppSearchResultsToolModule)(); };
|
|
5573
5841
|
IgoAppSearchResultsToolModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppSearchResultsToolModule });
|
|
5574
5842
|
IgoAppSearchResultsToolModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
5575
|
-
i4.CommonModule,
|
|
5843
|
+
i4$1.CommonModule,
|
|
5576
5844
|
i6.MatIconModule,
|
|
5577
5845
|
i12.MatBadgeModule,
|
|
5578
|
-
i4$
|
|
5846
|
+
i4$2.MatTooltipModule,
|
|
5579
5847
|
i3.MatButtonModule,
|
|
5580
|
-
i2$
|
|
5581
|
-
i1.IgoFeatureModule,
|
|
5582
|
-
i1.IgoSearchModule,
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
i1.IgoFeatureDetailsModule,
|
|
5586
|
-
|
|
5848
|
+
i2$1.IgoLanguageModule,
|
|
5849
|
+
i1$1.IgoFeatureModule,
|
|
5850
|
+
i1$1.IgoSearchModule,
|
|
5851
|
+
i4.IgoFlexibleModule,
|
|
5852
|
+
i4.IgoPanelModule,
|
|
5853
|
+
i1$1.IgoFeatureDetailsModule,
|
|
5854
|
+
i4.IgoCustomHtmlModule
|
|
5587
5855
|
]] });
|
|
5588
5856
|
(function () {
|
|
5589
5857
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppSearchResultsToolModule, [{
|
|
5590
5858
|
type: i0.NgModule,
|
|
5591
5859
|
args: [{
|
|
5592
5860
|
imports: [
|
|
5593
|
-
i4.CommonModule,
|
|
5861
|
+
i4$1.CommonModule,
|
|
5594
5862
|
i6.MatIconModule,
|
|
5595
5863
|
i12.MatBadgeModule,
|
|
5596
|
-
i4$
|
|
5864
|
+
i4$2.MatTooltipModule,
|
|
5597
5865
|
i3.MatButtonModule,
|
|
5598
|
-
i2$
|
|
5599
|
-
i1.IgoFeatureModule,
|
|
5600
|
-
i1.IgoSearchModule,
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
i1.IgoFeatureDetailsModule,
|
|
5604
|
-
|
|
5866
|
+
i2$1.IgoLanguageModule,
|
|
5867
|
+
i1$1.IgoFeatureModule,
|
|
5868
|
+
i1$1.IgoSearchModule,
|
|
5869
|
+
i4.IgoFlexibleModule,
|
|
5870
|
+
i4.IgoPanelModule,
|
|
5871
|
+
i1$1.IgoFeatureDetailsModule,
|
|
5872
|
+
i4.IgoCustomHtmlModule
|
|
5605
5873
|
],
|
|
5606
5874
|
declarations: [exports.SearchResultsToolComponent],
|
|
5607
5875
|
exports: [exports.SearchResultsToolComponent],
|
|
@@ -5610,18 +5878,18 @@
|
|
|
5610
5878
|
}], null, null);
|
|
5611
5879
|
})();
|
|
5612
5880
|
(function () {
|
|
5613
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchResultsToolModule, { declarations: [exports.SearchResultsToolComponent], imports: [i4.CommonModule,
|
|
5881
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppSearchResultsToolModule, { declarations: [exports.SearchResultsToolComponent], imports: [i4$1.CommonModule,
|
|
5614
5882
|
i6.MatIconModule,
|
|
5615
5883
|
i12.MatBadgeModule,
|
|
5616
|
-
i4$
|
|
5884
|
+
i4$2.MatTooltipModule,
|
|
5617
5885
|
i3.MatButtonModule,
|
|
5618
|
-
i2$
|
|
5619
|
-
i1.IgoFeatureModule,
|
|
5620
|
-
i1.IgoSearchModule,
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
i1.IgoFeatureDetailsModule,
|
|
5624
|
-
|
|
5886
|
+
i2$1.IgoLanguageModule,
|
|
5887
|
+
i1$1.IgoFeatureModule,
|
|
5888
|
+
i1$1.IgoSearchModule,
|
|
5889
|
+
i4.IgoFlexibleModule,
|
|
5890
|
+
i4.IgoPanelModule,
|
|
5891
|
+
i1$1.IgoFeatureDetailsModule,
|
|
5892
|
+
i4.IgoCustomHtmlModule], exports: [exports.SearchResultsToolComponent] });
|
|
5625
5893
|
})();
|
|
5626
5894
|
|
|
5627
5895
|
var IgoAppSearchModule = /** @class */ (function () {
|
|
@@ -5661,9 +5929,9 @@
|
|
|
5661
5929
|
if (rf & 1) {
|
|
5662
5930
|
i0__namespace.ɵɵelement(0, "igo-ogc-filterable-list", 0);
|
|
5663
5931
|
}
|
|
5664
|
-
}, directives: [i1__namespace.OgcFilterableListComponent, i1__namespace.OgcFilterableListBindingDirective], encapsulation: 2 });
|
|
5932
|
+
}, directives: [i1__namespace$1.OgcFilterableListComponent, i1__namespace$1.OgcFilterableListBindingDirective], encapsulation: 2 });
|
|
5665
5933
|
exports.OgcFilterToolComponent = __decorate([
|
|
5666
|
-
|
|
5934
|
+
i4.ToolComponent({
|
|
5667
5935
|
name: 'ogcFilter',
|
|
5668
5936
|
title: 'igo.integration.tools.ogcFilter',
|
|
5669
5937
|
icon: 'filter'
|
|
@@ -5689,9 +5957,9 @@
|
|
|
5689
5957
|
if (rf & 1) {
|
|
5690
5958
|
i0__namespace.ɵɵelement(0, "igo-time-filter-list", 0);
|
|
5691
5959
|
}
|
|
5692
|
-
}, directives: [i1__namespace.TimeFilterListComponent, i1__namespace.TimeFilterListBindingDirective], encapsulation: 2 });
|
|
5960
|
+
}, directives: [i1__namespace$1.TimeFilterListComponent, i1__namespace$1.TimeFilterListBindingDirective], encapsulation: 2 });
|
|
5693
5961
|
exports.TimeFilterToolComponent = __decorate([
|
|
5694
|
-
|
|
5962
|
+
i4.ToolComponent({
|
|
5695
5963
|
name: 'timeFilter',
|
|
5696
5964
|
title: 'igo.integration.tools.timeFilter',
|
|
5697
5965
|
icon: 'history'
|
|
@@ -5735,18 +6003,18 @@
|
|
|
5735
6003
|
this.toolState = toolState;
|
|
5736
6004
|
this.workspaceState = workspaceState;
|
|
5737
6005
|
this.cdRef = cdRef;
|
|
5738
|
-
this.itemType = i1.SpatialFilterItemType.Address;
|
|
6006
|
+
this.itemType = i1$1.SpatialFilterItemType.Address;
|
|
5739
6007
|
this.layers = [];
|
|
5740
6008
|
this.activeLayers = [];
|
|
5741
6009
|
this.buffer = 0;
|
|
5742
6010
|
this.iterator = 1;
|
|
5743
6011
|
this.selectedFeature$ = new rxjs.BehaviorSubject(undefined);
|
|
5744
6012
|
this.format = new olFormatGeoJSON__default["default"]();
|
|
5745
|
-
this.store = new
|
|
5746
|
-
this.spatialListStore = new
|
|
6013
|
+
this.store = new i4.EntityStore([]); // Store to print results at the end
|
|
6014
|
+
this.spatialListStore = new i4.EntityStore([]);
|
|
5747
6015
|
this.loading = false;
|
|
5748
6016
|
this.thematicLength = 0;
|
|
5749
|
-
this.measureUnit = i1.MeasureLengthUnit.Meters;
|
|
6017
|
+
this.measureUnit = i1$1.MeasureLengthUnit.Meters;
|
|
5750
6018
|
this.unsubscribe$ = new rxjs.Subject();
|
|
5751
6019
|
}
|
|
5752
6020
|
Object.defineProperty(SpatialFilterToolComponent.prototype, "map", {
|
|
@@ -5817,7 +6085,7 @@
|
|
|
5817
6085
|
this.workspaceState.store.entities$.pipe(operators.takeUntil(this.unsubscribe$)).subscribe(function () {
|
|
5818
6086
|
var e_3, _e;
|
|
5819
6087
|
if (!record && _this.activeLayers.length && _this.workspaceState.store.all().length > 1) {
|
|
5820
|
-
if (_this.itemType === i1.SpatialFilterItemType.Thematics) {
|
|
6088
|
+
if (_this.itemType === i1$1.SpatialFilterItemType.Thematics) {
|
|
5821
6089
|
var _loop_1 = function (thematic) {
|
|
5822
6090
|
if (!thematic.zeroResults) {
|
|
5823
6091
|
layerToOpenWks = _this.activeLayers.find(function (layer) { return layer.title.includes(thematic.name + ' ' + _this.iterator.toString()); });
|
|
@@ -5903,7 +6171,7 @@
|
|
|
5903
6171
|
this.activeLayers = [];
|
|
5904
6172
|
this.thematicLength = 0;
|
|
5905
6173
|
this.iterator = 1;
|
|
5906
|
-
if (this.type === i1.SpatialFilterType.Predefined) {
|
|
6174
|
+
if (this.type === i1$1.SpatialFilterType.Predefined) {
|
|
5907
6175
|
this.zone = undefined;
|
|
5908
6176
|
this.queryType = undefined;
|
|
5909
6177
|
}
|
|
@@ -5913,10 +6181,10 @@
|
|
|
5913
6181
|
this.loading = true;
|
|
5914
6182
|
var zeroResults = true;
|
|
5915
6183
|
var thematics;
|
|
5916
|
-
if (this.buffer === 0 || this.type === i1.SpatialFilterType.Point) {
|
|
6184
|
+
if (this.buffer === 0 || this.type === i1$1.SpatialFilterType.Point) {
|
|
5917
6185
|
this.tryAddFeaturesToMap([this.zone]);
|
|
5918
6186
|
}
|
|
5919
|
-
if (this.itemType !== i1.SpatialFilterItemType.Thematics) {
|
|
6187
|
+
if (this.itemType !== i1$1.SpatialFilterItemType.Thematics) {
|
|
5920
6188
|
var theme = {
|
|
5921
6189
|
name: ''
|
|
5922
6190
|
};
|
|
@@ -5925,10 +6193,10 @@
|
|
|
5925
6193
|
else {
|
|
5926
6194
|
thematics = this.thematics;
|
|
5927
6195
|
}
|
|
5928
|
-
if (this.measureUnit === i1.MeasureLengthUnit.Kilometers && this.type !== i1.SpatialFilterType.Point) {
|
|
6196
|
+
if (this.measureUnit === i1$1.MeasureLengthUnit.Kilometers && this.type !== i1$1.SpatialFilterType.Point) {
|
|
5929
6197
|
this.buffer = this.buffer * 1000;
|
|
5930
6198
|
}
|
|
5931
|
-
if (this.type === i1.SpatialFilterType.Polygon) {
|
|
6199
|
+
if (this.type === i1$1.SpatialFilterType.Polygon) {
|
|
5932
6200
|
this.buffer = 0; // to avoid buffer enter a second time in terrAPI
|
|
5933
6201
|
}
|
|
5934
6202
|
var observables$ = [];
|
|
@@ -5993,7 +6261,7 @@
|
|
|
5993
6261
|
var i = 1;
|
|
5994
6262
|
var _loop_2 = function (feature) {
|
|
5995
6263
|
var e_5, _f, e_6, _g, e_7, _h;
|
|
5996
|
-
if (this_1.type === i1.SpatialFilterType.Predefined) {
|
|
6264
|
+
if (this_1.type === i1$1.SpatialFilterType.Predefined) {
|
|
5997
6265
|
try {
|
|
5998
6266
|
for (var _j = (e_5 = void 0, __values(this_1.layers)), _k = _j.next(); !_k.done; _k = _j.next()) {
|
|
5999
6267
|
var layer = _k.value;
|
|
@@ -6067,10 +6335,11 @@
|
|
|
6067
6335
|
.pipe(operators.take(1))
|
|
6068
6336
|
.subscribe(function (dataSource) {
|
|
6069
6337
|
var olLayer = _this.layerService.createLayer({
|
|
6338
|
+
isIgoInternalLayer: true,
|
|
6070
6339
|
title: ('Zone ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
6071
6340
|
workspace: { enabled: true },
|
|
6072
6341
|
_internal: {
|
|
6073
|
-
code: _this.type === i1.SpatialFilterType.Predefined
|
|
6342
|
+
code: _this.type === i1$1.SpatialFilterType.Predefined
|
|
6074
6343
|
? feature.properties.code
|
|
6075
6344
|
: undefined
|
|
6076
6345
|
},
|
|
@@ -6104,10 +6373,10 @@
|
|
|
6104
6373
|
}
|
|
6105
6374
|
});
|
|
6106
6375
|
var featuresOl = features.map(function (f) {
|
|
6107
|
-
return i1.featureToOl(f, _this.map.projection);
|
|
6376
|
+
return i1$1.featureToOl(f, _this.map.projection);
|
|
6108
6377
|
});
|
|
6109
|
-
if (_this.type !== i1.SpatialFilterType.Predefined) {
|
|
6110
|
-
var type = _this.type === i1.SpatialFilterType.Point ? 'Cercle' : 'Polygone';
|
|
6378
|
+
if (_this.type !== i1$1.SpatialFilterType.Predefined) {
|
|
6379
|
+
var type = _this.type === i1$1.SpatialFilterType.Point ? 'Cercle' : 'Polygone';
|
|
6111
6380
|
featuresOl[0].set('nom', 'Zone', true);
|
|
6112
6381
|
featuresOl[0].set('type', type, true);
|
|
6113
6382
|
}
|
|
@@ -6179,19 +6448,20 @@
|
|
|
6179
6448
|
var icon = features[0].meta.icon;
|
|
6180
6449
|
var style;
|
|
6181
6450
|
if (!icon) {
|
|
6182
|
-
style = i1.createOverlayMarkerStyle();
|
|
6451
|
+
style = i1$1.createOverlayMarkerStyle();
|
|
6183
6452
|
}
|
|
6184
6453
|
else {
|
|
6185
|
-
style = _this.createSvgIcon(icon) || i1.createOverlayMarkerStyle();
|
|
6454
|
+
style = _this.createSvgIcon(icon) || i1$1.createOverlayMarkerStyle();
|
|
6186
6455
|
}
|
|
6187
6456
|
var olLayer = _this.layerService.createLayer({
|
|
6457
|
+
isIgoInternalLayer: true,
|
|
6188
6458
|
title: (features[0].meta.title + ' ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
6189
6459
|
source: dataSource,
|
|
6190
6460
|
visible: true,
|
|
6191
6461
|
style: style
|
|
6192
6462
|
});
|
|
6193
6463
|
var featuresOl = features.map(function (feature) {
|
|
6194
|
-
return i1.featureToOl(feature, _this.map.projection);
|
|
6464
|
+
return i1$1.featureToOl(feature, _this.map.projection);
|
|
6195
6465
|
});
|
|
6196
6466
|
var ol = dataSource.ol;
|
|
6197
6467
|
ol.getSource().addFeatures(featuresOl);
|
|
@@ -6262,12 +6532,13 @@
|
|
|
6262
6532
|
.pipe(operators.take(1))
|
|
6263
6533
|
.subscribe(function (dataSource) {
|
|
6264
6534
|
var olLayer = _this.layerService.createLayer({
|
|
6535
|
+
isIgoInternalLayer: true,
|
|
6265
6536
|
title: (features[0].meta.title + ' ' + i + ' - ' + _this.languageService.translate.instant('igo.geo.spatialFilter.spatialFilter')),
|
|
6266
6537
|
source: dataSource,
|
|
6267
6538
|
visible: true
|
|
6268
6539
|
});
|
|
6269
6540
|
var featuresOl = features.map(function (feature) {
|
|
6270
|
-
return i1.featureToOl(feature, _this.map.projection);
|
|
6541
|
+
return i1$1.featureToOl(feature, _this.map.projection);
|
|
6271
6542
|
});
|
|
6272
6543
|
var ol = dataSource.ol;
|
|
6273
6544
|
ol.addFeatures(featuresOl);
|
|
@@ -6290,7 +6561,7 @@
|
|
|
6290
6561
|
dataProjection: feature.projection,
|
|
6291
6562
|
featureProjection: this.map.projection
|
|
6292
6563
|
});
|
|
6293
|
-
i1.moveToOlFeatures(this.map, [olFeature], i1.FeatureMotion.Zoom);
|
|
6564
|
+
i1$1.moveToOlFeatures(this.map, [olFeature], i1$1.FeatureMotion.Zoom);
|
|
6294
6565
|
}
|
|
6295
6566
|
};
|
|
6296
6567
|
SpatialFilterToolComponent.prototype.pushLayer = function (layer) {
|
|
@@ -6314,7 +6585,7 @@
|
|
|
6314
6585
|
};
|
|
6315
6586
|
return SpatialFilterToolComponent;
|
|
6316
6587
|
}());
|
|
6317
|
-
exports.SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || exports.SpatialFilterToolComponent)(i0__namespace.ɵɵdirectiveInject(i6__namespace.MatIconRegistry), i0__namespace.ɵɵdirectiveInject(i1__namespace.SpatialFilterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.DataSourceService), i0__namespace.ɵɵdirectiveInject(i1__namespace.LayerService), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
6588
|
+
exports.SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || exports.SpatialFilterToolComponent)(i0__namespace.ɵɵdirectiveInject(i6__namespace.MatIconRegistry), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.SpatialFilterService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.DataSourceService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.LayerService), i0__namespace.ɵɵdirectiveInject(MapState), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService), i0__namespace.ɵɵdirectiveInject(ImportExportState), i0__namespace.ɵɵdirectiveInject(ToolState), i0__namespace.ɵɵdirectiveInject(WorkspaceState), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
6318
6589
|
exports.SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
6319
6590
|
if (rf & 1) {
|
|
6320
6591
|
i0__namespace.ɵɵelementStart(0, "igo-panel");
|
|
@@ -6338,9 +6609,9 @@
|
|
|
6338
6609
|
i0__namespace.ɵɵadvance(2);
|
|
6339
6610
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
|
|
6340
6611
|
}
|
|
6341
|
-
}, directives: [i1__namespace.SpatialFilterTypeComponent, i1__namespace.SpatialFilterItemComponent, i4__namespace.NgIf], pipes: [i4__namespace.AsyncPipe], styles: [""], changeDetection: 0 });
|
|
6612
|
+
}, directives: [i1__namespace$1.SpatialFilterTypeComponent, i1__namespace$1.SpatialFilterItemComponent, i4__namespace$1.NgIf], pipes: [i4__namespace$1.AsyncPipe], styles: [""], changeDetection: 0 });
|
|
6342
6613
|
exports.SpatialFilterToolComponent = __decorate([
|
|
6343
|
-
|
|
6614
|
+
i4.ToolComponent({
|
|
6344
6615
|
name: 'spatialFilter',
|
|
6345
6616
|
title: 'igo.integration.tools.spatialFilter',
|
|
6346
6617
|
icon: 'selection-marker'
|
|
@@ -6358,7 +6629,7 @@
|
|
|
6358
6629
|
styleUrls: ['./spatial-filter-tool.component.scss'],
|
|
6359
6630
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
6360
6631
|
}]
|
|
6361
|
-
}], function () { return [{ type: i6__namespace.MatIconRegistry }, { type: i1__namespace.SpatialFilterService }, { type: i1__namespace.DataSourceService }, { type: i1__namespace.LayerService }, { type: MapState }, { type: i2__namespace$
|
|
6632
|
+
}], function () { return [{ type: i6__namespace.MatIconRegistry }, { type: i1__namespace$1.SpatialFilterService }, { type: i1__namespace$1.DataSourceService }, { type: i1__namespace$1.LayerService }, { type: MapState }, { type: i2__namespace$1.MessageService }, { type: i2__namespace$1.LanguageService }, { type: ImportExportState }, { type: ToolState }, { type: WorkspaceState }, { type: i0__namespace.ChangeDetectorRef }]; }, { type: [{
|
|
6362
6633
|
type: i0.Input
|
|
6363
6634
|
}], itemType: [{
|
|
6364
6635
|
type: i0.Input
|
|
@@ -6423,9 +6694,9 @@
|
|
|
6423
6694
|
if (rf & 2) {
|
|
6424
6695
|
i0__namespace.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
6425
6696
|
}
|
|
6426
|
-
}, directives: [i1__namespace.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
|
|
6697
|
+
}, directives: [i1__namespace$1.TimeFilterItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut$1()] } });
|
|
6427
6698
|
exports.ActiveTimeFilterToolComponent = __decorate([
|
|
6428
|
-
|
|
6699
|
+
i4.ToolComponent({
|
|
6429
6700
|
name: 'activeTimeFilter',
|
|
6430
6701
|
title: 'igo.integration.tools.timeFilter',
|
|
6431
6702
|
icon: 'history',
|
|
@@ -6499,9 +6770,9 @@
|
|
|
6499
6770
|
if (rf & 2) {
|
|
6500
6771
|
i0__namespace.ɵɵproperty("map", ctx.map)("layer", ctx.layer)("header", false)("@toolSlideInOut", ctx.animate);
|
|
6501
6772
|
}
|
|
6502
|
-
}, directives: [i1__namespace.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
|
|
6773
|
+
}, directives: [i1__namespace$1.OgcFilterableItemComponent], encapsulation: 2, data: { animation: [toolSlideInOut()] } });
|
|
6503
6774
|
exports.ActiveOgcFilterToolComponent = __decorate([
|
|
6504
|
-
|
|
6775
|
+
i4.ToolComponent({
|
|
6505
6776
|
name: 'activeOgcFilter',
|
|
6506
6777
|
title: 'igo.integration.tools.ogcFilter',
|
|
6507
6778
|
icon: 'filter',
|
|
@@ -6532,12 +6803,12 @@
|
|
|
6532
6803
|
}());
|
|
6533
6804
|
IgoAppFilterModule.ɵfac = function IgoAppFilterModule_Factory(t) { return new (t || IgoAppFilterModule)(); };
|
|
6534
6805
|
IgoAppFilterModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppFilterModule });
|
|
6535
|
-
IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule]] });
|
|
6806
|
+
IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i1$1.IgoFilterModule, i1$1.IgoQueryModule, i4$1.CommonModule]] });
|
|
6536
6807
|
(function () {
|
|
6537
6808
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppFilterModule, [{
|
|
6538
6809
|
type: i0.NgModule,
|
|
6539
6810
|
args: [{
|
|
6540
|
-
imports: [i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule],
|
|
6811
|
+
imports: [i1$1.IgoFilterModule, i1$1.IgoQueryModule, i4$1.CommonModule],
|
|
6541
6812
|
declarations: [
|
|
6542
6813
|
exports.OgcFilterToolComponent,
|
|
6543
6814
|
exports.ActiveOgcFilterToolComponent,
|
|
@@ -6561,7 +6832,7 @@
|
|
|
6561
6832
|
exports.ActiveOgcFilterToolComponent,
|
|
6562
6833
|
exports.TimeFilterToolComponent,
|
|
6563
6834
|
exports.ActiveTimeFilterToolComponent,
|
|
6564
|
-
exports.SpatialFilterToolComponent], imports: [i1.IgoFilterModule, i1.IgoQueryModule, i4.CommonModule], exports: [exports.OgcFilterToolComponent,
|
|
6835
|
+
exports.SpatialFilterToolComponent], imports: [i1$1.IgoFilterModule, i1$1.IgoQueryModule, i4$1.CommonModule], exports: [exports.OgcFilterToolComponent,
|
|
6565
6836
|
exports.ActiveOgcFilterToolComponent,
|
|
6566
6837
|
exports.TimeFilterToolComponent,
|
|
6567
6838
|
exports.ActiveTimeFilterToolComponent,
|
|
@@ -6646,8 +6917,8 @@
|
|
|
6646
6917
|
this._headerHtml = this.languageService.translate.instant('igo.integration.aboutTool.headerHtml');
|
|
6647
6918
|
this.loading = false;
|
|
6648
6919
|
this.version = configService.getConfig('version');
|
|
6649
|
-
this.baseUrlProfil = configService.getConfig('
|
|
6650
|
-
this.baseUrlGuide = configService.getConfig('depot.url') + '
|
|
6920
|
+
this.baseUrlProfil = configService.getConfig('storage.url');
|
|
6921
|
+
this.baseUrlGuide = configService.getConfig('depot.url') + configService.getConfig('depot.guideUrl');
|
|
6651
6922
|
}
|
|
6652
6923
|
Object.defineProperty(AboutToolComponent.prototype, "headerHtml", {
|
|
6653
6924
|
get: function () {
|
|
@@ -6719,7 +6990,7 @@
|
|
|
6719
6990
|
};
|
|
6720
6991
|
return AboutToolComponent;
|
|
6721
6992
|
}());
|
|
6722
|
-
exports.AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || exports.AboutToolComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$
|
|
6993
|
+
exports.AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || exports.AboutToolComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ConfigService), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.HttpClient), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.LanguageService)); };
|
|
6723
6994
|
exports.AboutToolComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: exports.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) {
|
|
6724
6995
|
if (rf & 1) {
|
|
6725
6996
|
i0__namespace.ɵɵelement(0, "p");
|
|
@@ -6747,9 +7018,9 @@
|
|
|
6747
7018
|
i0__namespace.ɵɵadvance(1);
|
|
6748
7019
|
i0__namespace.ɵɵproperty("html", i0__namespace.ɵɵpipeBind2(9, 6, ctx.html, i0__namespace.ɵɵpureFunction1(9, _c0, ctx.version)));
|
|
6749
7020
|
}
|
|
6750
|
-
}, directives: [
|
|
7021
|
+
}, directives: [i4__namespace.InteractiveTourComponent, i4__namespace$1.NgIf, i6__namespace$2.MatMenu, i4__namespace$1.NgForOf, i4__namespace.CustomHtmlComponent, i3__namespace.MatButton, i4__namespace$2.MatTooltip, i6__namespace.MatIcon, i6__namespace$2.MatMenuTrigger, i6__namespace$2.MatMenuItem], pipes: [i8__namespace.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}"] });
|
|
6751
7022
|
exports.AboutToolComponent = __decorate([
|
|
6752
|
-
|
|
7023
|
+
i4.ToolComponent({
|
|
6753
7024
|
name: 'about',
|
|
6754
7025
|
title: 'igo.integration.tools.about',
|
|
6755
7026
|
icon: 'help-circle'
|
|
@@ -6763,7 +7034,7 @@
|
|
|
6763
7034
|
templateUrl: './about-tool.component.html',
|
|
6764
7035
|
styleUrls: ['./about-tool.component.scss']
|
|
6765
7036
|
}]
|
|
6766
|
-
}], function () { return [{ type: i2__namespace$
|
|
7037
|
+
}], function () { return [{ type: i2__namespace$1.ConfigService }, { type: i2__namespace.AuthService }, { type: i3__namespace$2.HttpClient }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace$1.LanguageService }]; }, { headerHtml: [{
|
|
6767
7038
|
type: i0.Input
|
|
6768
7039
|
}], html: [{
|
|
6769
7040
|
type: i0.Input
|
|
@@ -6788,28 +7059,28 @@
|
|
|
6788
7059
|
IgoAppAboutModule.ɵfac = function IgoAppAboutModule_Factory(t) { return new (t || IgoAppAboutModule)(); };
|
|
6789
7060
|
IgoAppAboutModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoAppAboutModule });
|
|
6790
7061
|
IgoAppAboutModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
6791
|
-
i2$
|
|
6792
|
-
|
|
7062
|
+
i2$1.IgoLanguageModule,
|
|
7063
|
+
i4.IgoCustomHtmlModule,
|
|
6793
7064
|
i3.MatButtonModule,
|
|
6794
|
-
i4$
|
|
7065
|
+
i4$2.MatTooltipModule,
|
|
6795
7066
|
i6.MatIconModule,
|
|
6796
7067
|
i6$2.MatMenuModule,
|
|
6797
|
-
|
|
6798
|
-
i4.CommonModule
|
|
7068
|
+
i4.IgoInteractiveTourModule,
|
|
7069
|
+
i4$1.CommonModule
|
|
6799
7070
|
]] });
|
|
6800
7071
|
(function () {
|
|
6801
7072
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoAppAboutModule, [{
|
|
6802
7073
|
type: i0.NgModule,
|
|
6803
7074
|
args: [{
|
|
6804
7075
|
imports: [
|
|
6805
|
-
i2$
|
|
6806
|
-
|
|
7076
|
+
i2$1.IgoLanguageModule,
|
|
7077
|
+
i4.IgoCustomHtmlModule,
|
|
6807
7078
|
i3.MatButtonModule,
|
|
6808
|
-
i4$
|
|
7079
|
+
i4$2.MatTooltipModule,
|
|
6809
7080
|
i6.MatIconModule,
|
|
6810
7081
|
i6$2.MatMenuModule,
|
|
6811
|
-
|
|
6812
|
-
i4.CommonModule
|
|
7082
|
+
i4.IgoInteractiveTourModule,
|
|
7083
|
+
i4$1.CommonModule
|
|
6813
7084
|
],
|
|
6814
7085
|
declarations: [exports.AboutToolComponent],
|
|
6815
7086
|
exports: [exports.AboutToolComponent],
|
|
@@ -6818,14 +7089,14 @@
|
|
|
6818
7089
|
}], null, null);
|
|
6819
7090
|
})();
|
|
6820
7091
|
(function () {
|
|
6821
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppAboutModule, { declarations: [exports.AboutToolComponent], imports: [i2$
|
|
6822
|
-
|
|
7092
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoAppAboutModule, { declarations: [exports.AboutToolComponent], imports: [i2$1.IgoLanguageModule,
|
|
7093
|
+
i4.IgoCustomHtmlModule,
|
|
6823
7094
|
i3.MatButtonModule,
|
|
6824
|
-
i4$
|
|
7095
|
+
i4$2.MatTooltipModule,
|
|
6825
7096
|
i6.MatIconModule,
|
|
6826
7097
|
i6$2.MatMenuModule,
|
|
6827
|
-
|
|
6828
|
-
i4.CommonModule], exports: [exports.AboutToolComponent] });
|
|
7098
|
+
i4.IgoInteractiveTourModule,
|
|
7099
|
+
i4$1.CommonModule], exports: [exports.AboutToolComponent] });
|
|
6829
7100
|
})();
|
|
6830
7101
|
|
|
6831
7102
|
var IgoAppStorageModule = /** @class */ (function () {
|
|
@@ -6929,92 +7200,6 @@
|
|
|
6929
7200
|
}], null, null);
|
|
6930
7201
|
})();
|
|
6931
7202
|
|
|
6932
|
-
/**
|
|
6933
|
-
* Service that holds the state of the context module
|
|
6934
|
-
*/
|
|
6935
|
-
var ContextState = /** @class */ (function () {
|
|
6936
|
-
function ContextState(contextService, toolService, toolState, languageService) {
|
|
6937
|
-
var _this = this;
|
|
6938
|
-
this.contextService = contextService;
|
|
6939
|
-
this.toolService = toolService;
|
|
6940
|
-
this.toolState = toolState;
|
|
6941
|
-
this.languageService = languageService;
|
|
6942
|
-
/**
|
|
6943
|
-
* Observable of the active context
|
|
6944
|
-
*/
|
|
6945
|
-
this.context$ = new rxjs.BehaviorSubject(undefined);
|
|
6946
|
-
this.contextService.context$.subscribe(function (context) {
|
|
6947
|
-
_this.onContextChange(context);
|
|
6948
|
-
});
|
|
6949
|
-
this.contextService.toolsChanged$.subscribe(function (context) {
|
|
6950
|
-
_this.updateTools(context);
|
|
6951
|
-
});
|
|
6952
|
-
}
|
|
6953
|
-
/**
|
|
6954
|
-
* Set the active context
|
|
6955
|
-
* @param context Detailed context
|
|
6956
|
-
*/
|
|
6957
|
-
ContextState.prototype.setContext = function (context) {
|
|
6958
|
-
this.updateTools(context);
|
|
6959
|
-
this.context$.next(context);
|
|
6960
|
-
};
|
|
6961
|
-
/**
|
|
6962
|
-
* Update the tool state with the context's tools
|
|
6963
|
-
* @param context Detailed context
|
|
6964
|
-
*/
|
|
6965
|
-
ContextState.prototype.updateTools = function (context) {
|
|
6966
|
-
var _this = this;
|
|
6967
|
-
var toolbox = this.toolState.toolbox;
|
|
6968
|
-
var tools = [];
|
|
6969
|
-
var contextTools = context.tools || [];
|
|
6970
|
-
contextTools.forEach(function (contextTool) {
|
|
6971
|
-
var baseTool = _this.toolService.getTool(contextTool.name);
|
|
6972
|
-
if (baseTool === undefined) {
|
|
6973
|
-
return;
|
|
6974
|
-
}
|
|
6975
|
-
var options = Object.assign({}, baseTool.options || {}, contextTool.options || {});
|
|
6976
|
-
var tool = Object.assign({}, baseTool, contextTool, { options: options });
|
|
6977
|
-
tools.push(tool);
|
|
6978
|
-
});
|
|
6979
|
-
tools.forEach(function (tool) {
|
|
6980
|
-
if (tool.parent) {
|
|
6981
|
-
var parentIndex = tools.findIndex(function (el) { return el.name === tool.parent; });
|
|
6982
|
-
if (parentIndex !== -1) {
|
|
6983
|
-
tools[parentIndex].children = [];
|
|
6984
|
-
tools[parentIndex].children.push(tool.name);
|
|
6985
|
-
}
|
|
6986
|
-
}
|
|
6987
|
-
});
|
|
6988
|
-
toolbox.setTools(tools);
|
|
6989
|
-
toolbox.setToolbar(context.toolbar || []);
|
|
6990
|
-
// TODO: This is a patch so the context service can work without
|
|
6991
|
-
// injecting the ToolState or without being completely refactored
|
|
6992
|
-
this.contextService.setTools([].concat(tools));
|
|
6993
|
-
this.contextService.setToolbar(context.toolbar || []);
|
|
6994
|
-
};
|
|
6995
|
-
/**
|
|
6996
|
-
* Set a new context and update the tool state
|
|
6997
|
-
* @param context Detailed context
|
|
6998
|
-
*/
|
|
6999
|
-
ContextState.prototype.onContextChange = function (context) {
|
|
7000
|
-
if (context === undefined) {
|
|
7001
|
-
return;
|
|
7002
|
-
}
|
|
7003
|
-
this.setContext(context);
|
|
7004
|
-
};
|
|
7005
|
-
return ContextState;
|
|
7006
|
-
}());
|
|
7007
|
-
ContextState.ɵfac = function ContextState_Factory(t) { return new (t || ContextState)(i0__namespace.ɵɵinject(i2__namespace.ContextService), i0__namespace.ɵɵinject(i7__namespace.ToolService), i0__namespace.ɵɵinject(ToolState), i0__namespace.ɵɵinject(i2__namespace$2.LanguageService)); };
|
|
7008
|
-
ContextState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ContextState, factory: ContextState.ɵfac, providedIn: 'root' });
|
|
7009
|
-
(function () {
|
|
7010
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextState, [{
|
|
7011
|
-
type: i0.Injectable,
|
|
7012
|
-
args: [{
|
|
7013
|
-
providedIn: 'root'
|
|
7014
|
-
}]
|
|
7015
|
-
}], function () { return [{ type: i2__namespace.ContextService }, { type: i7__namespace.ToolService }, { type: ToolState }, { type: i2__namespace$2.LanguageService }]; }, null);
|
|
7016
|
-
})();
|
|
7017
|
-
|
|
7018
7203
|
/**
|
|
7019
7204
|
* Service that holds the state of the search module
|
|
7020
7205
|
*/
|
|
@@ -7075,7 +7260,7 @@
|
|
|
7075
7260
|
};
|
|
7076
7261
|
return AnalyticsListenerService;
|
|
7077
7262
|
}());
|
|
7078
|
-
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0__namespace.ɵɵinject(i2__namespace$
|
|
7263
|
+
AnalyticsListenerService.ɵfac = function AnalyticsListenerService_Factory(t) { return new (t || AnalyticsListenerService)(i0__namespace.ɵɵinject(i2__namespace$1.AnalyticsService), i0__namespace.ɵɵinject(i2__namespace.AuthService), i0__namespace.ɵɵinject(ContextState), i0__namespace.ɵɵinject(SearchState), i0__namespace.ɵɵinject(ToolState)); };
|
|
7079
7264
|
AnalyticsListenerService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: AnalyticsListenerService, factory: AnalyticsListenerService.ɵfac, providedIn: 'root' });
|
|
7080
7265
|
(function () {
|
|
7081
7266
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AnalyticsListenerService, [{
|
|
@@ -7083,7 +7268,7 @@
|
|
|
7083
7268
|
args: [{
|
|
7084
7269
|
providedIn: 'root'
|
|
7085
7270
|
}]
|
|
7086
|
-
}], function () { return [{ type: i2__namespace$
|
|
7271
|
+
}], function () { return [{ type: i2__namespace$1.AnalyticsService }, { type: i2__namespace.AuthService }, { type: ContextState }, { type: SearchState }, { type: ToolState }]; }, null);
|
|
7087
7272
|
})();
|
|
7088
7273
|
|
|
7089
7274
|
/**
|
|
@@ -7095,7 +7280,7 @@
|
|
|
7095
7280
|
/**
|
|
7096
7281
|
* Store that holds the query results
|
|
7097
7282
|
*/
|
|
7098
|
-
this.store = new
|
|
7283
|
+
this.store = new i4.EntityStore([]);
|
|
7099
7284
|
this.queryOverlayStyle = {};
|
|
7100
7285
|
this.queryOverlayStyleSelection = {};
|
|
7101
7286
|
this.queryOverlayStyleFocus = {};
|
|
@@ -7108,7 +7293,7 @@
|
|
|
7108
7293
|
}
|
|
7109
7294
|
return QueryState;
|
|
7110
7295
|
}());
|
|
7111
|
-
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0__namespace.ɵɵinject(i2__namespace$
|
|
7296
|
+
QueryState.ɵfac = function QueryState_Factory(t) { return new (t || QueryState)(i0__namespace.ɵɵinject(i2__namespace$1.ConfigService)); };
|
|
7112
7297
|
QueryState.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: QueryState, factory: QueryState.ɵfac, providedIn: 'root' });
|
|
7113
7298
|
(function () {
|
|
7114
7299
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryState, [{
|
|
@@ -7116,7 +7301,7 @@
|
|
|
7116
7301
|
args: [{
|
|
7117
7302
|
providedIn: 'root'
|
|
7118
7303
|
}]
|
|
7119
|
-
}], function () { return [{ type: i2__namespace$
|
|
7304
|
+
}], function () { return [{ type: i2__namespace$1.ConfigService }]; }, null);
|
|
7120
7305
|
})();
|
|
7121
7306
|
|
|
7122
7307
|
/*
|