@igo2/integration 1.9.0 → 1.10.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 +280 -155
- package/bundles/igo2-integration.umd.js.map +1 -1
- package/esm2015/lib/about/about-tool/about-tool.component.js +40 -33
- package/esm2015/lib/about/about-tool/index.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.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/index.js +1 -1
- package/esm2015/lib/directions/directions-tool/directions-tool.component.js +40 -17
- 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 +35 -17
- package/esm2015/lib/directions/index.js +2 -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 +24 -6
- 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/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.js +28 -8
- package/esm2015/lib/map/advanced-map-tool/advanced-map-tool.component.js +1 -2
- package/esm2015/lib/map/advanced-map-tool/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.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/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 +36 -9
- 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/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/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 +1 -1
- package/fesm2015/igo2-integration.js +208 -99
- package/fesm2015/igo2-integration.js.map +1 -1
- package/lib/about/about-tool/about-tool.component.d.ts +3 -2
- package/lib/directions/directions-tool/directions-tool.component.d.ts +28 -7
- package/lib/directions/directions.state.d.ts +14 -10
- package/lib/directions/index.d.ts +1 -0
- package/lib/filter/spatial-filter-tool/spatial-filter-tool.component.d.ts +3 -1
- package/lib/map/advanced-map-tool/advanced-coordinates/advanced-coordinates.component.d.ts +2 -0
- package/lib/map/advanced-map-tool/advanced-map-tool.component.d.ts +1 -3
- package/lib/search/search-results-tool/search-results-tool.component.d.ts +2 -1
- package/ngcc.config.js +3 -3
- package/package.json +6 -5
|
@@ -5,23 +5,23 @@ import { IgoContextModule, IgoContextImportExportModule } from '@igo2/context';
|
|
|
5
5
|
import { __decorate } from 'tslib';
|
|
6
6
|
import * as i7 from '@igo2/common';
|
|
7
7
|
import { ToolComponent, EntityStore, EntityStoreFilterCustomFuncStrategy, EntityStoreFilterSelectionStrategy, WorkspaceStore, IgoSpinnerModule, getEntityTitle, FlexibleComponent, IgoFlexibleModule, IgoPanelModule, IgoCustomHtmlModule, IgoInteractiveTourModule } from '@igo2/common';
|
|
8
|
-
import { BehaviorSubject, combineLatest, ReplaySubject,
|
|
8
|
+
import { BehaviorSubject, Subject, combineLatest, ReplaySubject, forkJoin, of } from 'rxjs';
|
|
9
9
|
import * as i1 from '@igo2/geo';
|
|
10
|
-
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule,
|
|
11
|
-
import * as
|
|
10
|
+
import { IgoMap, IgoCatalogLibraryModule, IgoCatalogBrowserModule, StopsStore, StopsFeatureStore, RoutesFeatureStore, StepFeatureStore, IgoDirectionsModule, FeatureStore, IgoDrawingToolModule, FeatureStoreSelectionStrategy, FeatureMotion, mapExtentStrategyActiveToolTip, noElementSelected, OgcFilterWidget, WfsWorkspace, FeatureWorkspace, IgoImportExportModule, LayerListControlsEnum, sourceCanSearch, VectorLayer, zoneMtm, zoneUtm, formatScale, computeProjectionsConstraints, IgoLayerModule, IgoMetadataModule, IgoDownloadModule, IgoFilterModule, IgoMeasurerModule, IgoPrintModule, IgoSearchModule, FEATURE, getCommonVectorStyle, featureToOl, computeOlFeaturesExtent, featuresAreOutOfView, featuresAreTooDeepInView, featureFromOl, getCommonVectorSelectedStyle, moveToOlFeatures, IgoFeatureModule, IgoFeatureDetailsModule, SpatialFilterItemType, MeasureLengthUnit, SpatialFilterType, createOverlayMarkerStyle, IgoQueryModule } from '@igo2/geo';
|
|
11
|
+
import * as i4 from '@angular/common';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
13
|
import { take, skipWhile, map, debounceTime, takeUntil, tap, skip } from 'rxjs/operators';
|
|
14
14
|
import * as i2$1 from '@igo2/auth';
|
|
15
15
|
import * as i2$2 from '@igo2/core';
|
|
16
|
-
import { StorageServiceEventEnum, IgoLanguageModule
|
|
16
|
+
import { StorageScope, StorageServiceEventEnum, IgoLanguageModule } from '@igo2/core';
|
|
17
17
|
import * as i3 from '@angular/material/button';
|
|
18
18
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
|
-
import * as i4 from '@angular/material/tooltip';
|
|
19
|
+
import * as i4$1 from '@angular/material/tooltip';
|
|
20
20
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
21
21
|
import * as i6 from '@angular/material/icon';
|
|
22
22
|
import { MatIconModule } from '@angular/material/icon';
|
|
23
23
|
import * as i8 from '@ngx-translate/core';
|
|
24
|
-
import * as i5
|
|
24
|
+
import * as i5 from '@angular/material/tabs';
|
|
25
25
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
26
26
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
27
27
|
import * as i7$1 from '@angular/material/list';
|
|
@@ -50,6 +50,7 @@ import { MatBadgeModule } from '@angular/material/badge';
|
|
|
50
50
|
import olFormatGeoJSON from 'ol/format/GeoJSON';
|
|
51
51
|
import olFeature from 'ol/Feature';
|
|
52
52
|
import olPoint from 'ol/geom/Point';
|
|
53
|
+
import pointOnFeature from '@turf/point-on-feature';
|
|
53
54
|
import * as olstyle from 'ol/style';
|
|
54
55
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
55
56
|
import * as i3$2 from '@angular/common/http';
|
|
@@ -627,7 +628,7 @@ CatalogBrowserToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
627
628
|
i0.ɵɵpipe(1, "async");
|
|
628
629
|
} if (rf & 2) {
|
|
629
630
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.store$));
|
|
630
|
-
} }, directives: [
|
|
631
|
+
} }, directives: [i4.NgIf, i1.CatalogBrowserComponent], pipes: [i4.AsyncPipe], encapsulation: 2, changeDetection: 0 });
|
|
631
632
|
CatalogBrowserToolComponent = __decorate([
|
|
632
633
|
ToolComponent({
|
|
633
634
|
name: 'catalogBrowser',
|
|
@@ -697,80 +698,119 @@ IgoAppCatalogModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[],
|
|
|
697
698
|
* Service that holds the state of the direction module
|
|
698
699
|
*/
|
|
699
700
|
class DirectionState {
|
|
700
|
-
constructor(mapState
|
|
701
|
+
constructor(mapState) {
|
|
701
702
|
this.mapState = mapState;
|
|
702
|
-
this.
|
|
703
|
+
this.zoomToActiveRoute$ = new Subject();
|
|
704
|
+
/**
|
|
705
|
+
* Store that holds the stop
|
|
706
|
+
*/
|
|
707
|
+
this.stopsStore = new StopsStore([]);
|
|
703
708
|
/**
|
|
704
|
-
* Store that holds the
|
|
709
|
+
* Store that holds the driving stops as feature
|
|
705
710
|
*/
|
|
706
|
-
this.
|
|
711
|
+
this.stopsFeatureStore = new StopsFeatureStore([], {
|
|
707
712
|
map: this.mapState.map
|
|
708
713
|
});
|
|
709
714
|
/**
|
|
710
|
-
* Store that holds the driving route
|
|
715
|
+
* Store that holds the driving route as feature
|
|
711
716
|
*/
|
|
712
|
-
this.
|
|
717
|
+
this.routesFeatureStore = new RoutesFeatureStore([], {
|
|
718
|
+
map: this.mapState.map
|
|
719
|
+
});
|
|
720
|
+
this.stepFeatureStore = new StepFeatureStore([], {
|
|
713
721
|
map: this.mapState.map
|
|
714
722
|
});
|
|
715
|
-
this.
|
|
723
|
+
this.debounceTime = 200;
|
|
724
|
+
this.mapState.map.ol.once('rendercomplete', () => {
|
|
725
|
+
this.stopsFeatureStore.empty$.subscribe((empty) => {
|
|
726
|
+
var _a;
|
|
727
|
+
if ((_a = this.stopsFeatureStore.layer) === null || _a === void 0 ? void 0 : _a.options) {
|
|
728
|
+
this.stopsFeatureStore.layer.options.showInLayerList = !empty;
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
this.routesFeatureStore.empty$.subscribe((empty) => {
|
|
732
|
+
var _a;
|
|
733
|
+
if ((_a = this.routesFeatureStore.layer) === null || _a === void 0 ? void 0 : _a.options) {
|
|
734
|
+
this.routesFeatureStore.layer.options.showInLayerList = !empty;
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
});
|
|
716
738
|
this.mapState.map.layers$.subscribe(() => {
|
|
717
739
|
if (!this.mapState.map.getLayerById('igo-direction-stops-layer')) {
|
|
718
740
|
this.stopsStore.deleteMany(this.stopsStore.all());
|
|
719
|
-
this.
|
|
741
|
+
this.stopsFeatureStore.deleteMany(this.stopsFeatureStore.all()); // not necessary
|
|
720
742
|
}
|
|
721
743
|
if (!this.mapState.map.getLayerById('igo-direction-route-layer')) {
|
|
722
|
-
this.
|
|
744
|
+
this.routesFeatureStore.deleteMany(this.routesFeatureStore.all());
|
|
723
745
|
}
|
|
724
746
|
});
|
|
725
747
|
}
|
|
726
|
-
setRouteFromFeatureDetail(value) {
|
|
727
|
-
this.routeFromFeatureDetail = value;
|
|
728
|
-
}
|
|
729
748
|
}
|
|
730
|
-
DirectionState.ɵfac = function DirectionState_Factory(t) { return new (t || DirectionState)(i0.ɵɵinject(MapState)
|
|
749
|
+
DirectionState.ɵfac = function DirectionState_Factory(t) { return new (t || DirectionState)(i0.ɵɵinject(MapState)); };
|
|
731
750
|
DirectionState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DirectionState, factory: DirectionState.ɵfac, providedIn: 'root' });
|
|
732
751
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DirectionState, [{
|
|
733
752
|
type: Injectable,
|
|
734
753
|
args: [{
|
|
735
754
|
providedIn: 'root'
|
|
736
755
|
}]
|
|
737
|
-
}], function () { return [{ type: MapState }
|
|
756
|
+
}], function () { return [{ type: MapState }]; }, null); })();
|
|
738
757
|
|
|
739
758
|
let DirectionsToolComponent = class DirectionsToolComponent {
|
|
740
|
-
constructor(directionState, mapState) {
|
|
759
|
+
constructor(directionState, mapState, languageService, messageService, storageService) {
|
|
741
760
|
this.directionState = directionState;
|
|
742
761
|
this.mapState = mapState;
|
|
762
|
+
this.languageService = languageService;
|
|
763
|
+
this.messageService = messageService;
|
|
764
|
+
this.storageService = storageService;
|
|
743
765
|
}
|
|
744
766
|
/**
|
|
745
767
|
* stops
|
|
746
768
|
* @internal
|
|
747
769
|
*/
|
|
748
770
|
get stopsStore() { return this.directionState.stopsStore; }
|
|
771
|
+
get debounceTime() { return this.directionState.debounceTime; }
|
|
772
|
+
/**
|
|
773
|
+
* stops
|
|
774
|
+
* @internal
|
|
775
|
+
*/
|
|
776
|
+
get stopsFeatureStore() { return this.directionState.stopsFeatureStore; }
|
|
749
777
|
/**
|
|
750
778
|
* routes
|
|
751
779
|
* @internal
|
|
752
780
|
*/
|
|
753
|
-
get
|
|
781
|
+
get routesFeatureStore() { return this.directionState.routesFeatureStore; }
|
|
782
|
+
/**
|
|
783
|
+
* step store
|
|
784
|
+
* @internal
|
|
785
|
+
*/
|
|
786
|
+
get stepFeatureStore() { return this.directionState.stepFeatureStore; }
|
|
787
|
+
/**
|
|
788
|
+
* step store
|
|
789
|
+
* @internal
|
|
790
|
+
*/
|
|
791
|
+
get zoomToActiveRoute$() { return this.directionState.zoomToActiveRoute$; }
|
|
754
792
|
/**
|
|
755
793
|
* Map to measure on
|
|
756
794
|
* @internal
|
|
757
795
|
*/
|
|
758
796
|
get map() { return this.mapState.map; }
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
797
|
+
ngOnInit() {
|
|
798
|
+
const warningShown = this.storageService.get('direction.warning.shown');
|
|
799
|
+
if (!warningShown) {
|
|
800
|
+
const translate = this.languageService.translate;
|
|
801
|
+
const title = translate.instant('igo.integration.directions.warning.title');
|
|
802
|
+
const msg = translate.instant('igo.integration.directions.warning.message');
|
|
803
|
+
this.messageService.info(msg, title, { timeOut: 20000 });
|
|
804
|
+
this.storageService.set('direction.warning.shown', true, StorageScope.SESSION);
|
|
805
|
+
}
|
|
764
806
|
}
|
|
765
807
|
};
|
|
766
|
-
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState)); };
|
|
767
|
-
DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars:
|
|
768
|
-
i0.ɵɵ
|
|
769
|
-
i0.ɵɵlistener("activeRouteDescription", function DirectionsToolComponent_Template_igo_directions_form_activeRouteDescription_0_listener($event) { return ctx.onActiveRouteDescriptionChange($event); });
|
|
770
|
-
i0.ɵɵelementEnd();
|
|
808
|
+
DirectionsToolComponent.ɵfac = function DirectionsToolComponent_Factory(t) { return new (t || DirectionsToolComponent)(i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i2$2.StorageService)); };
|
|
809
|
+
DirectionsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DirectionsToolComponent, selectors: [["igo-directions-tool"]], decls: 1, vars: 6, consts: [[3, "debounceTime", "stopsStore", "stopsFeatureStore", "stepFeatureStore", "routesFeatureStore", "zoomToActiveRoute$"]], template: function DirectionsToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
810
|
+
i0.ɵɵelement(0, "igo-directions", 0);
|
|
771
811
|
} if (rf & 2) {
|
|
772
|
-
i0.ɵɵproperty("stopsStore", ctx.stopsStore)("
|
|
773
|
-
} }, directives: [i1.
|
|
812
|
+
i0.ɵɵproperty("debounceTime", ctx.debounceTime)("stopsStore", ctx.stopsStore)("stopsFeatureStore", ctx.stopsFeatureStore)("stepFeatureStore", ctx.stepFeatureStore)("routesFeatureStore", ctx.routesFeatureStore)("zoomToActiveRoute$", ctx.zoomToActiveRoute$);
|
|
813
|
+
} }, directives: [i1.DirectionsComponent], encapsulation: 2 });
|
|
774
814
|
DirectionsToolComponent = __decorate([
|
|
775
815
|
ToolComponent({
|
|
776
816
|
name: 'directions',
|
|
@@ -784,7 +824,7 @@ DirectionsToolComponent = __decorate([
|
|
|
784
824
|
selector: 'igo-directions-tool',
|
|
785
825
|
templateUrl: './directions-tool.component.html'
|
|
786
826
|
}]
|
|
787
|
-
}], function () { return [{ type: DirectionState }, { type: MapState }]; }, null); })();
|
|
827
|
+
}], function () { return [{ type: DirectionState }, { type: MapState }, { type: i2$2.LanguageService }, { type: i2$2.MessageService }, { type: i2$2.StorageService }]; }, null); })();
|
|
788
828
|
|
|
789
829
|
class IgoAppDirectionsModule {
|
|
790
830
|
static forRoot() {
|
|
@@ -1398,7 +1438,7 @@ WorkspaceButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wo
|
|
|
1398
1438
|
i0.ɵɵpipe(1, "async");
|
|
1399
1439
|
} if (rf & 2) {
|
|
1400
1440
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.hasWorkspace$));
|
|
1401
|
-
} }, directives: [
|
|
1441
|
+
} }, directives: [i4.NgIf, i3.MatButton, i4$1.MatTooltip, i6.MatIcon], pipes: [i4.AsyncPipe, i8.TranslatePipe], styles: [""], changeDetection: 0 });
|
|
1402
1442
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceButtonComponent, [{
|
|
1403
1443
|
type: Component,
|
|
1404
1444
|
args: [{
|
|
@@ -1549,7 +1589,7 @@ ImportExportToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: I
|
|
|
1549
1589
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "layer");
|
|
1550
1590
|
i0.ɵɵadvance(1);
|
|
1551
1591
|
i0.ɵɵproperty("ngIf", !ctx.importExportShowBothType && ctx.importExportType === "context");
|
|
1552
|
-
} }, directives: [
|
|
1592
|
+
} }, directives: [i4.NgIf, i5.MatTabGroup, i5.MatTab, i1.ImportExportComponent, i2.ContextImportExportComponent], pipes: [i8.TranslatePipe, i4.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
1553
1593
|
ImportExportToolComponent = __decorate([
|
|
1554
1594
|
ToolComponent({
|
|
1555
1595
|
name: 'importExport',
|
|
@@ -1839,7 +1879,7 @@ MapDetailsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Map
|
|
|
1839
1879
|
} if (rf & 2) {
|
|
1840
1880
|
const _r1 = i0.ɵɵreference(3);
|
|
1841
1881
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 2, ctx.layers$).length)("ngIfElse", _r1);
|
|
1842
|
-
} }, directives: [
|
|
1882
|
+
} }, directives: [i4.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, WorkspaceButtonComponent, i1.ExportButtonComponent, i1.OgcFilterButtonComponent, i1.TimeFilterButtonComponent, i1.TrackFeatureButtonComponent, i1.MetadataButtonComponent, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}.mapDetailsList[_ngcontent-%COMP%]{overflow:hidden}"] });
|
|
1843
1883
|
MapDetailsToolComponent = __decorate([
|
|
1844
1884
|
ToolComponent({
|
|
1845
1885
|
name: 'mapDetails',
|
|
@@ -1967,7 +2007,7 @@ MapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolCom
|
|
|
1967
2007
|
i0.ɵɵproperty("map", ctx.map)("excludeBaseLayers", ctx.excludeBaseLayers)("layerFilterAndSortOptions", ctx.layerFilterAndSortOptions)("expandLegendOfVisibleLayers", ctx.expandLegendOfVisibleLayers)("toggleLegendOnVisibilityChange", ctx.toggleLegendOnVisibilityChange)("updateLegendOnResolutionChange", ctx.updateLegendOnResolutionChange)("floatLabel", false)("queryBadge", ctx.queryBadge);
|
|
1968
2008
|
i0.ɵɵadvance(3);
|
|
1969
2009
|
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(7, 12, "igo.integration.tools.contexts"));
|
|
1970
|
-
} }, directives: [i5
|
|
2010
|
+
} }, directives: [i5.MatTabGroup, i5.MatTab, i1.LayerListComponent, i1.LayerListBindingDirective, i2.ContextListComponent, i2.ContextListBindingDirective, WorkspaceButtonComponent, i1.ExportButtonComponent, i1.OgcFilterButtonComponent, i1.TimeFilterButtonComponent, i1.TrackFeatureButtonComponent, i1.MetadataButtonComponent], pipes: [i8.TranslatePipe], styles: ["mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
1971
2011
|
MapToolComponent = __decorate([
|
|
1972
2012
|
ToolComponent({
|
|
1973
2013
|
name: 'map',
|
|
@@ -2431,7 +2471,7 @@ MapToolsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapToolsC
|
|
|
2431
2471
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 17, ctx.layers$).length !== 0)("ngIfElse", _r5);
|
|
2432
2472
|
i0.ɵɵadvance(2);
|
|
2433
2473
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(13, 19, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(14, 21, ctx.visibleOrInRangeLayers$).length === 0);
|
|
2434
|
-
} }, directives: [i5
|
|
2474
|
+
} }, directives: [i5.MatTabGroup, i5.MatTab, i4.NgIf, i1.LayerListComponent, i1.LayerListBindingDirective, i1.MetadataButtonComponent, i1.TrackFeatureButtonComponent, WorkspaceButtonComponent, i1.TimeFilterButtonComponent, i1.OgcFilterButtonComponent, i1.ExportButtonComponent, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}mat-tab-group[_ngcontent-%COMP%], mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%;overflow:hidden}[_nghost-%COMP%] .mat-tab-body-content{overflow:hidden}"], changeDetection: 0 });
|
|
2435
2475
|
MapToolsComponent = __decorate([
|
|
2436
2476
|
ToolComponent({
|
|
2437
2477
|
name: 'mapTools',
|
|
@@ -2720,7 +2760,7 @@ MapLegendToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MapL
|
|
|
2720
2760
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 4, ctx.layers$).length !== 0)("ngIfElse", _r3);
|
|
2721
2761
|
i0.ɵɵadvance(2);
|
|
2722
2762
|
i0.ɵɵproperty("ngIf", !ctx.allowShowAllLegends && i0.ɵɵpipeBind1(4, 6, ctx.layers$).length !== 0 && i0.ɵɵpipeBind1(5, 8, ctx.visibleOrInRangeLayers$).length === 0);
|
|
2723
|
-
} }, directives: [
|
|
2763
|
+
} }, directives: [i4.NgIf, i1.LayerLegendListComponent, i1.LayerLegendListBindingDirective, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i4.AsyncPipe, i8.TranslatePipe], styles: [".map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:10px}.map-empty[_ngcontent-%COMP%]{text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:5px}"] });
|
|
2724
2764
|
MapLegendToolComponent = __decorate([
|
|
2725
2765
|
ToolComponent({
|
|
2726
2766
|
name: 'mapLegend',
|
|
@@ -2955,7 +2995,7 @@ AdvancedSwipeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Adva
|
|
|
2955
2995
|
} if (rf & 2) {
|
|
2956
2996
|
const _r1 = i0.ɵɵreference(2);
|
|
2957
2997
|
i0.ɵɵproperty("ngIf", ctx.userControlledLayerList.length)("ngIfElse", _r1);
|
|
2958
|
-
} }, directives: [
|
|
2998
|
+
} }, directives: [i4.NgIf, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$2.MatSelect, i3$1.NgControlStatus, i3$1.FormControlName, i8$1.MatOption, i9.MatDivider, i4.NgForOf, i10.MatSlideToggle, i7$1.MatList, i7$1.MatListItem, i6.MatIcon, i7$1.MatListIconCssMatStyler, i8$1.MatLine], pipes: [i8.TranslatePipe], styles: [".nameOfTool[_ngcontent-%COMP%]{text-align:center;font-weight:bold;font-size:small;margin:15px 10px 0}.igo-swipe-select-container[_ngcontent-%COMP%]{padding:10px}.igo-swipe-select-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.igo-form[_ngcontent-%COMP%]{padding:1px 5px;width:100%}.swipe-toggle[_ngcontent-%COMP%]{padding:10px 5px 35px}.map-empty[_ngcontent-%COMP%], .search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{margin:5px}.map-empty[_ngcontent-%COMP%]{padding:10px;text-align:justify}.search-tool[_ngcontent-%COMP%], .catalog-tool[_ngcontent-%COMP%], .context-tool[_ngcontent-%COMP%]{cursor:pointer}mat-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:bold}mat-list-item[_ngcontent-%COMP%] .mat-list-text{font-size:smaller}mat-list.mat-list-base[_ngcontent-%COMP%] mat-list-item.mat-list-item[_ngcontent-%COMP%] div.mat-list-item-content div.mat-list-text{padding-left:15px}.advanced-tool-line[_ngcontent-%COMP%]{height:2px;background-color:gray}"] });
|
|
2959
2999
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedSwipeComponent, [{
|
|
2960
3000
|
type: Component,
|
|
2961
3001
|
args: [{
|
|
@@ -3028,6 +3068,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3028
3068
|
this.storageService = storageService;
|
|
3029
3069
|
this.config = config;
|
|
3030
3070
|
this.formBuilder = formBuilder;
|
|
3071
|
+
this.formattedScale$ = new BehaviorSubject('');
|
|
3031
3072
|
this.projections$ = new BehaviorSubject([]);
|
|
3032
3073
|
this.center = this.storageService.get('centerToggle');
|
|
3033
3074
|
this.inMtmZone = true;
|
|
@@ -3063,6 +3104,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3063
3104
|
ngOnInit() {
|
|
3064
3105
|
this.mapState$$ = combineLatest([this.map.viewController.state$.pipe(debounceTime(50)), this.form.valueChanges])
|
|
3065
3106
|
.subscribe(() => {
|
|
3107
|
+
this.setScaleValue(this.map);
|
|
3066
3108
|
this.currentCenterDefaultProj = this.map.viewController.getCenter(this.defaultProj.code);
|
|
3067
3109
|
const currentMtmZone = zoneMtm(this.currentCenterDefaultProj[0]);
|
|
3068
3110
|
const currentUtmZone = zoneUtm(this.currentCenterDefaultProj[0]);
|
|
@@ -3101,6 +3143,9 @@ class AdvancedCoordinatesComponent {
|
|
|
3101
3143
|
this.map.mapCenter$.next(false);
|
|
3102
3144
|
this.mapState$$.unsubscribe();
|
|
3103
3145
|
}
|
|
3146
|
+
setScaleValue(map) {
|
|
3147
|
+
this.formattedScale$.next(': ~ 1 / ' + formatScale(map.viewController.getScale()));
|
|
3148
|
+
}
|
|
3104
3149
|
/**
|
|
3105
3150
|
* Coordinates of the center of the map on the appropriate systeme of coordinates
|
|
3106
3151
|
* @returns Array of two numbers
|
|
@@ -3338,7 +3383,7 @@ class AdvancedCoordinatesComponent {
|
|
|
3338
3383
|
}
|
|
3339
3384
|
}
|
|
3340
3385
|
AdvancedCoordinatesComponent.ɵfac = function AdvancedCoordinatesComponent_Factory(t) { return new (t || AdvancedCoordinatesComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$2.StorageService), i0.ɵɵdirectiveInject(i2$2.ConfigService), i0.ɵɵdirectiveInject(i3$1.FormBuilder)); };
|
|
3341
|
-
AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls:
|
|
3386
|
+
AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedCoordinatesComponent, selectors: [["igo-advanced-coordinates"]], inputs: { projectionsLimitations: "projectionsLimitations" }, decls: 32, vars: 37, consts: [["class", "coordinates", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], ["class", "coordinates2", 4, "ngIf", "ngIfElse"], ["elseBlock2", ""], ["mat-raised-button", "", 1, "igo-form-button-group", 3, "click"], ["svgIcon", "content-copy"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [3, "value", "valueChange"], ["matTooltipShowDelay", "500", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "center-toggle", "mat-typography", 3, "checked", "labelPosition", "change"], [1, "igo-zoom", "mat-typography"], [1, "coordinates"], ["matInput", "", "readonly", "", "rows", "1", 3, "placeholder", "value"], ["textArea", ""], [1, "coordinates2"], ["matTooltipShowDelay", "500", 3, "value", "click"]], template: function AdvancedCoordinatesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3342
3387
|
i0.ɵɵtemplate(0, AdvancedCoordinatesComponent_mat_form_field_0_Template, 4, 4, "mat-form-field", 0);
|
|
3343
3388
|
i0.ɵɵtemplate(1, AdvancedCoordinatesComponent_ng_template_1_Template, 4, 4, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
3344
3389
|
i0.ɵɵtemplate(3, AdvancedCoordinatesComponent_mat_form_field_3_Template, 4, 4, "mat-form-field", 2);
|
|
@@ -3371,6 +3416,16 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3371
3416
|
i0.ɵɵtext(22);
|
|
3372
3417
|
i0.ɵɵpipe(23, "translate");
|
|
3373
3418
|
i0.ɵɵelementEnd();
|
|
3419
|
+
i0.ɵɵelementStart(24, "p", 11);
|
|
3420
|
+
i0.ɵɵtext(25);
|
|
3421
|
+
i0.ɵɵpipe(26, "translate");
|
|
3422
|
+
i0.ɵɵpipe(27, "async");
|
|
3423
|
+
i0.ɵɵelementEnd();
|
|
3424
|
+
i0.ɵɵelementStart(28, "p", 11);
|
|
3425
|
+
i0.ɵɵtext(29);
|
|
3426
|
+
i0.ɵɵpipe(30, "translate");
|
|
3427
|
+
i0.ɵɵpipe(31, "number");
|
|
3428
|
+
i0.ɵɵelementEnd();
|
|
3374
3429
|
} if (rf & 2) {
|
|
3375
3430
|
const _r1 = i0.ɵɵreference(2);
|
|
3376
3431
|
const _r4 = i0.ɵɵreference(5);
|
|
@@ -3378,22 +3433,26 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3378
3433
|
i0.ɵɵadvance(3);
|
|
3379
3434
|
i0.ɵɵproperty("ngIf", ctx.units)("ngIfElse", _r4);
|
|
3380
3435
|
i0.ɵɵadvance(5);
|
|
3381
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
3436
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 18, "igo.integration.advanced-map-tool.advanced-coordinates.copy"), "\n");
|
|
3382
3437
|
i0.ɵɵadvance(2);
|
|
3383
3438
|
i0.ɵɵproperty("formGroup", ctx.form);
|
|
3384
3439
|
i0.ɵɵadvance(3);
|
|
3385
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14,
|
|
3440
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 20, "igo.integration.advanced-map-tool.advanced-coordinates.coordSystem"));
|
|
3386
3441
|
i0.ɵɵadvance(2);
|
|
3387
3442
|
i0.ɵɵproperty("value", ctx.inputProj);
|
|
3388
3443
|
i0.ɵɵadvance(1);
|
|
3389
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(17,
|
|
3444
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(17, 22, ctx.projections$));
|
|
3390
3445
|
i0.ɵɵadvance(2);
|
|
3391
3446
|
i0.ɵɵproperty("checked", ctx.center)("labelPosition", "before");
|
|
3392
3447
|
i0.ɵɵadvance(1);
|
|
3393
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20,
|
|
3448
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 24, "igo.integration.advanced-map-tool.advanced-coordinates.center"), " ");
|
|
3394
3449
|
i0.ɵɵadvance(3);
|
|
3395
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(23,
|
|
3396
|
-
|
|
3450
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(23, 26, "igo.integration.advanced-map-tool.advanced-coordinates.zoom"), " ", ctx.map.viewController.getZoom(), "");
|
|
3451
|
+
i0.ɵɵadvance(3);
|
|
3452
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(26, 28, "igo.integration.advanced-map-tool.advanced-coordinates.scale"), " ", i0.ɵɵpipeBind1(27, 30, ctx.formattedScale$), "");
|
|
3453
|
+
i0.ɵɵadvance(4);
|
|
3454
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(30, 32, "igo.integration.advanced-map-tool.advanced-coordinates.resolution"), " ", i0.ɵɵpipeBind2(31, 34, ctx.map.viewController.getResolution(), "1.0-0"), "");
|
|
3455
|
+
} }, directives: [i4.NgIf, i3.MatButton, i6.MatIcon, i3$1.ɵNgNoValidate, i3$1.NgControlStatusGroup, i3$1.FormGroupDirective, i6$1.MatFormField, i6$1.MatLabel, i7$2.MatSelect, i4.NgForOf, i10.MatSlideToggle, i10$1.MatInput, i8$1.MatOption], pipes: [i8.TranslatePipe, i4.AsyncPipe, i4.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}"] });
|
|
3397
3456
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdvancedCoordinatesComponent, [{
|
|
3398
3457
|
type: Component,
|
|
3399
3458
|
args: [{
|
|
@@ -3406,7 +3465,6 @@ AdvancedCoordinatesComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
3406
3465
|
}] }); })();
|
|
3407
3466
|
|
|
3408
3467
|
let AdvancedMapToolComponent = class AdvancedMapToolComponent {
|
|
3409
|
-
ngOnInit() { }
|
|
3410
3468
|
};
|
|
3411
3469
|
AdvancedMapToolComponent.ɵfac = function AdvancedMapToolComponent_Factory(t) { return new (t || AdvancedMapToolComponent)(); };
|
|
3412
3470
|
AdvancedMapToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdvancedMapToolComponent, selectors: [["igo-advanced-map-tool"]], decls: 10, vars: 6, consts: [[1, "nameOfTool"], [1, "advanced-tool-line"]], template: function AdvancedMapToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -3938,7 +3996,7 @@ function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template
|
|
|
3938
3996
|
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
3939
3997
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, ctx_r7.isSelectedResultOutOfView$) ? "igo.integration.searchResultsTool.zoomOnFeatureTooltipOutOfView" : "igo.integration.searchResultsTool.zoomOnFeatureTooltip"));
|
|
3940
3998
|
i0.ɵɵadvance(3);
|
|
3941
|
-
i0.ɵɵproperty("matBadge", i0.ɵɵpipeBind1(4, 7, ctx_r7.isSelectedResultOutOfView$) ? "!" : "")("matBadgeHidden",
|
|
3999
|
+
i0.ɵɵproperty("matBadge", i0.ɵɵpipeBind1(4, 7, ctx_r7.isSelectedResultOutOfView$) ? "!" : "")("matBadgeHidden", i0.ɵɵpipeBind1(5, 9, ctx_r7.isSelectedResultOutOfView$) === false);
|
|
3942
4000
|
} }
|
|
3943
4001
|
function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template(rf, ctx) { if (rf & 1) {
|
|
3944
4002
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
@@ -3950,7 +4008,7 @@ function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template(rf, ctx)
|
|
|
3950
4008
|
i0.ɵɵelementEnd();
|
|
3951
4009
|
i0.ɵɵtemplate(4, SearchResultsToolComponent_igo_flexible_1_igo_panel_8_button_4_Template, 6, 11, "button", 16);
|
|
3952
4010
|
i0.ɵɵelementStart(5, "igo-feature-details", 17);
|
|
3953
|
-
i0.ɵɵlistener("routingEvent", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template_igo_feature_details_routingEvent_5_listener(
|
|
4011
|
+
i0.ɵɵlistener("routingEvent", function SearchResultsToolComponent_igo_flexible_1_igo_panel_8_Template_igo_feature_details_routingEvent_5_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.getRoute(); });
|
|
3954
4012
|
i0.ɵɵpipe(6, "async");
|
|
3955
4013
|
i0.ɵɵelementEnd();
|
|
3956
4014
|
i0.ɵɵelementEnd();
|
|
@@ -4214,6 +4272,9 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4214
4272
|
if (this.showResultsGeometries$$) {
|
|
4215
4273
|
this.showResultsGeometries$$.unsubscribe();
|
|
4216
4274
|
}
|
|
4275
|
+
if (this.getRoute$$) {
|
|
4276
|
+
this.getRoute$$.unsubscribe();
|
|
4277
|
+
}
|
|
4217
4278
|
}
|
|
4218
4279
|
/**
|
|
4219
4280
|
* Try to add a feature to the map when it's being focused
|
|
@@ -4317,7 +4378,7 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4317
4378
|
const items = document.getElementsByTagName('igo-search-results-item');
|
|
4318
4379
|
const igoList = this.elRef.nativeElement.getElementsByTagName('igo-list')[0];
|
|
4319
4380
|
let selectedItem;
|
|
4320
|
-
//
|
|
4381
|
+
// eslint-disable-next-line
|
|
4321
4382
|
for (let i = 0; i < items.length; i++) {
|
|
4322
4383
|
if (items[i].className.includes('igo-list-item-selected')) {
|
|
4323
4384
|
selectedItem = items[i];
|
|
@@ -4375,11 +4436,34 @@ let SearchResultsToolComponent = class SearchResultsToolComponent {
|
|
|
4375
4436
|
const elemBottom = elemTop + elem.clientHeight + padding;
|
|
4376
4437
|
return elemBottom <= docViewBottom && elemTop >= docViewTop;
|
|
4377
4438
|
}
|
|
4378
|
-
getRoute(
|
|
4439
|
+
getRoute() {
|
|
4379
4440
|
this.toolState.toolbox.activateTool('directions');
|
|
4380
|
-
this.directionState.stopsStore.
|
|
4381
|
-
|
|
4382
|
-
|
|
4441
|
+
this.directionState.stopsStore.clearStops();
|
|
4442
|
+
setTimeout(() => {
|
|
4443
|
+
let routingCoordLoaded = false;
|
|
4444
|
+
if (this.getRoute$$) {
|
|
4445
|
+
this.getRoute$$.unsubscribe();
|
|
4446
|
+
}
|
|
4447
|
+
this.getRoute$$ = this.directionState.stopsStore.storeInitialized$.subscribe((init) => {
|
|
4448
|
+
if (this.directionState.stopsStore.storeInitialized$.value && !routingCoordLoaded) {
|
|
4449
|
+
routingCoordLoaded = true;
|
|
4450
|
+
const stop = this.directionState.stopsStore.all().find((e) => e.position === 1);
|
|
4451
|
+
let coord;
|
|
4452
|
+
if (this.feature.geometry) {
|
|
4453
|
+
if (this.feature.geometry.type === 'Point') {
|
|
4454
|
+
coord = [this.feature.geometry.coordinates[0], this.feature.geometry.coordinates[1]];
|
|
4455
|
+
}
|
|
4456
|
+
else {
|
|
4457
|
+
const point = pointOnFeature(this.feature.geometry);
|
|
4458
|
+
coord = [point.geometry.coordinates[0], point.geometry.coordinates[1]];
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
stop.text = this.featureTitle;
|
|
4462
|
+
stop.coordinates = coord;
|
|
4463
|
+
this.directionState.stopsStore.update(stop);
|
|
4464
|
+
}
|
|
4465
|
+
});
|
|
4466
|
+
}, 250);
|
|
4383
4467
|
}
|
|
4384
4468
|
};
|
|
4385
4469
|
SearchResultsToolComponent.ɵfac = function SearchResultsToolComponent_Factory(t) { return new (t || SearchResultsToolComponent)(i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(SearchState), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(DirectionState), i0.ɵɵdirectiveInject(i2$2.ConfigService)); };
|
|
@@ -4390,8 +4474,8 @@ SearchResultsToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
4390
4474
|
} if (rf & 2) {
|
|
4391
4475
|
i0.ɵɵproperty("ngIf", !ctx.store || ctx.store.stateView.empty);
|
|
4392
4476
|
i0.ɵɵadvance(1);
|
|
4393
|
-
i0.ɵɵproperty("ngIf", ctx.store &&
|
|
4394
|
-
} }, directives: [
|
|
4477
|
+
i0.ɵɵproperty("ngIf", ctx.store && i0.ɵɵpipeBind1(2, 2, ctx.store.stateView.empty$) === false);
|
|
4478
|
+
} }, directives: [i4.NgIf, i7.FlexibleComponent, i1.SearchResultsComponent, i1.SearchResultAddButtonComponent, i7.PanelComponent, i3.MatButton, i6.MatIcon, i1.FeatureDetailsComponent, i1.FeatureDetailsDirective, i4$1.MatTooltip, i12.MatBadge], pipes: [i4.AsyncPipe, i8.TranslatePipe, i7.SanitizeHtmlPipe], encapsulation: 2, changeDetection: 0 });
|
|
4395
4479
|
SearchResultsToolComponent = __decorate([
|
|
4396
4480
|
ToolComponent({
|
|
4397
4481
|
name: 'searchResults',
|
|
@@ -4597,17 +4681,20 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
4597
4681
|
}
|
|
4598
4682
|
activateExportTool() {
|
|
4599
4683
|
const ids = [];
|
|
4684
|
+
const re = new RegExp('^Zone \\d+');
|
|
4600
4685
|
for (const layer of this.layers) {
|
|
4601
|
-
|
|
4686
|
+
if (!layer.title.match(re)) {
|
|
4687
|
+
ids.push(layer.id);
|
|
4688
|
+
}
|
|
4602
4689
|
}
|
|
4603
4690
|
this.importExportState.setMode(ImportExportMode.export);
|
|
4604
4691
|
this.importExportState.setsExportOptions({ layers: ids });
|
|
4605
4692
|
this.toolState.toolbox.activateTool('importExport');
|
|
4606
4693
|
}
|
|
4607
|
-
activateWorkspace() {
|
|
4694
|
+
activateWorkspace(record) {
|
|
4608
4695
|
let layerToOpenWks;
|
|
4609
4696
|
this.workspaceState.store.entities$.pipe(takeUntil(this.unsubscribe$)).subscribe(() => {
|
|
4610
|
-
if (this.activeLayers.length && this.workspaceState.store.all().length > 1) {
|
|
4697
|
+
if (!record && this.activeLayers.length && this.workspaceState.store.all().length > 1) {
|
|
4611
4698
|
if (this.itemType === SpatialFilterItemType.Thematics) {
|
|
4612
4699
|
for (const thematic of this.thematics) {
|
|
4613
4700
|
if (!thematic.zeroResults) {
|
|
@@ -4629,6 +4716,21 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
4629
4716
|
this.workspaceState.setActiveWorkspaceById(layerToOpenWks.id);
|
|
4630
4717
|
}
|
|
4631
4718
|
}
|
|
4719
|
+
else if (record && this.activeLayers.length && this.workspaceState.store.all().length > 1) {
|
|
4720
|
+
this.selectWorkspaceEntity(record);
|
|
4721
|
+
this.moveendKey = this.map.ol.on('moveend', () => {
|
|
4722
|
+
this.selectWorkspaceEntity(record);
|
|
4723
|
+
});
|
|
4724
|
+
}
|
|
4725
|
+
});
|
|
4726
|
+
}
|
|
4727
|
+
selectWorkspaceEntity(record) {
|
|
4728
|
+
this.workspaceState.store.all().forEach(workspace => {
|
|
4729
|
+
workspace.entityStore.state.updateAll({ selected: false });
|
|
4730
|
+
if (workspace.title.includes(record.added[0].meta.title)) {
|
|
4731
|
+
this.workspaceState.setActiveWorkspaceById(workspace.id);
|
|
4732
|
+
workspace.entityStore.state.updateMany(record.added, { selected: true });
|
|
4733
|
+
}
|
|
4632
4734
|
});
|
|
4633
4735
|
}
|
|
4634
4736
|
loadFilterList() {
|
|
@@ -4988,13 +5090,13 @@ let SpatialFilterToolComponent = class SpatialFilterToolComponent {
|
|
|
4988
5090
|
}
|
|
4989
5091
|
};
|
|
4990
5092
|
SpatialFilterToolComponent.ɵfac = function SpatialFilterToolComponent_Factory(t) { return new (t || SpatialFilterToolComponent)(i0.ɵɵdirectiveInject(i6.MatIconRegistry), i0.ɵɵdirectiveInject(i1.SpatialFilterService), i0.ɵɵdirectiveInject(i1.DataSourceService), i0.ɵɵdirectiveInject(i1.LayerService), i0.ɵɵdirectiveInject(MapState), i0.ɵɵdirectiveInject(i2$2.MessageService), i0.ɵɵdirectiveInject(i2$2.LanguageService), i0.ɵɵdirectiveInject(ImportExportState), i0.ɵɵdirectiveInject(ToolState), i0.ɵɵdirectiveInject(WorkspaceState), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
4991
|
-
SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5093
|
+
SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SpatialFilterToolComponent, selectors: [["igo-spatial-filter-tool"]], inputs: { type: "type", itemType: "itemType", freehandDrawIsActive: "freehandDrawIsActive" }, decls: 6, vars: 16, consts: [[3, "store", "selectedQueryType", "zone", "layers", "eventType", "eventQueryType", "zoneChange", "zoneWithBufferChange", "bufferChange", "measureUnitChange"], [3, "type", "queryType", "map", "zone", "loading", "store", "layers", "allLayers", "thematicLength", "radiusEvent", "bufferEvent", "measureUnitChange", "freehandControl", "drawZoneEvent", "zoneWithBufferChange", "itemTypeChange", "thematicChange", "toggleSearch", "clearButtonEvent", "clearSearchEvent", "export", "openWorkspace", "entityChange"], [4, "ngIf"], [3, "feature"]], template: function SpatialFilterToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4992
5094
|
i0.ɵɵelementStart(0, "igo-panel");
|
|
4993
5095
|
i0.ɵɵelementStart(1, "igo-spatial-filter-type", 0);
|
|
4994
5096
|
i0.ɵɵlistener("eventType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventType_1_listener($event) { return ctx.getOutputType($event); })("eventQueryType", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_eventQueryType_1_listener($event) { return ctx.getOutputQueryType($event); })("zoneChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneChange_1_listener($event) { return ctx.onZoneChange($event); })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_zoneWithBufferChange_1_listener($event) { return ctx.onZoneChange($event, true); })("bufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_bufferChange_1_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_type_measureUnitChange_1_listener($event) { return ctx.measureUnit = $event; });
|
|
4995
5097
|
i0.ɵɵelementEnd();
|
|
4996
5098
|
i0.ɵɵelementStart(2, "igo-spatial-filter-item", 1);
|
|
4997
|
-
i0.ɵɵlistener("radiusEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_radiusEvent_2_listener($event) { return ctx.buffer = $event; })("bufferEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_bufferEvent_2_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_measureUnitChange_2_listener($event) { return ctx.measureUnit = $event; })("freehandControl", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_freehandControl_2_listener($event) { return ctx.freehandDrawIsActive = $event; })("drawZoneEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_drawZoneEvent_2_listener($event) { return ctx.zone = $event; })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_zoneWithBufferChange_2_listener($event) { return ctx.onZoneChange($event, true); })("itemTypeChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_itemTypeChange_2_listener($event) { return ctx.itemType = $event; })("thematicChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_thematicChange_2_listener($event) { return ctx.thematics = $event; })("toggleSearch", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_toggleSearch_2_listener() { return ctx.getOutputToggleSearch(); })("clearButtonEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearButtonEvent_2_listener() { return ctx.clearMap(); })("clearSearchEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearSearchEvent_2_listener() { return ctx.getOutputClearSearch(); })("export", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_export_2_listener() { return ctx.activateExportTool(); })("openWorkspace", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_openWorkspace_2_listener() { return ctx.activateWorkspace(); });
|
|
5099
|
+
i0.ɵɵlistener("radiusEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_radiusEvent_2_listener($event) { return ctx.buffer = $event; })("bufferEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_bufferEvent_2_listener($event) { return ctx.buffer = $event; })("measureUnitChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_measureUnitChange_2_listener($event) { return ctx.measureUnit = $event; })("freehandControl", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_freehandControl_2_listener($event) { return ctx.freehandDrawIsActive = $event; })("drawZoneEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_drawZoneEvent_2_listener($event) { return ctx.zone = $event; })("zoneWithBufferChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_zoneWithBufferChange_2_listener($event) { return ctx.onZoneChange($event, true); })("itemTypeChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_itemTypeChange_2_listener($event) { return ctx.itemType = $event; })("thematicChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_thematicChange_2_listener($event) { return ctx.thematics = $event; })("toggleSearch", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_toggleSearch_2_listener() { return ctx.getOutputToggleSearch(); })("clearButtonEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearButtonEvent_2_listener() { return ctx.clearMap(); })("clearSearchEvent", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_clearSearchEvent_2_listener() { return ctx.getOutputClearSearch(); })("export", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_export_2_listener() { return ctx.activateExportTool(); })("openWorkspace", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_openWorkspace_2_listener() { return ctx.activateWorkspace(); })("entityChange", function SpatialFilterToolComponent_Template_igo_spatial_filter_item_entityChange_2_listener($event) { return ctx.activateWorkspace($event); });
|
|
4998
5100
|
i0.ɵɵelementEnd();
|
|
4999
5101
|
i0.ɵɵelementEnd();
|
|
5000
5102
|
i0.ɵɵelementStart(3, "igo-panel");
|
|
@@ -5008,7 +5110,7 @@ SpatialFilterToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
5008
5110
|
i0.ɵɵproperty("type", ctx.type)("queryType", ctx.queryType)("map", ctx.map)("zone", ctx.zone)("loading", ctx.loading)("store", ctx.store)("layers", ctx.activeLayers)("allLayers", ctx.layers)("thematicLength", ctx.thematicLength);
|
|
5009
5111
|
i0.ɵɵadvance(2);
|
|
5010
5112
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 14, ctx.selectedFeature$));
|
|
5011
|
-
} }, directives: [i1.SpatialFilterTypeComponent, i1.SpatialFilterItemComponent,
|
|
5113
|
+
} }, directives: [i1.SpatialFilterTypeComponent, i1.SpatialFilterItemComponent, i4.NgIf], pipes: [i4.AsyncPipe], styles: [""], changeDetection: 0 });
|
|
5012
5114
|
SpatialFilterToolComponent = __decorate([
|
|
5013
5115
|
ToolComponent({
|
|
5014
5116
|
name: 'spatialFilter',
|
|
@@ -5175,16 +5277,16 @@ IgoAppFilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[IgoF
|
|
|
5175
5277
|
ActiveTimeFilterToolComponent,
|
|
5176
5278
|
SpatialFilterToolComponent] }); })();
|
|
5177
5279
|
|
|
5178
|
-
function
|
|
5179
|
-
const
|
|
5180
|
-
i0.ɵɵelementStart(0, "button",
|
|
5181
|
-
i0.ɵɵlistener("click", function
|
|
5280
|
+
function AboutToolComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
5281
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
5282
|
+
i0.ɵɵelementStart(0, "button", 7);
|
|
5283
|
+
i0.ɵɵlistener("click", function AboutToolComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.openGuide(); });
|
|
5182
5284
|
i0.ɵɵpipe(1, "translate");
|
|
5183
5285
|
i0.ɵɵelementStart(2, "span");
|
|
5184
5286
|
i0.ɵɵtext(3);
|
|
5185
5287
|
i0.ɵɵpipe(4, "translate");
|
|
5186
5288
|
i0.ɵɵelementEnd();
|
|
5187
|
-
i0.ɵɵelement(5, "mat-icon",
|
|
5289
|
+
i0.ɵɵelement(5, "mat-icon", 8);
|
|
5188
5290
|
i0.ɵɵelementEnd();
|
|
5189
5291
|
} if (rf & 2) {
|
|
5190
5292
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -5192,45 +5294,53 @@ function AboutToolComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
5192
5294
|
i0.ɵɵadvance(3);
|
|
5193
5295
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "igo.integration.aboutTool.trainingGuide"));
|
|
5194
5296
|
} }
|
|
5195
|
-
function
|
|
5196
|
-
i0.ɵɵelementStart(0, "button",
|
|
5297
|
+
function AboutToolComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
5298
|
+
i0.ɵɵelementStart(0, "button", 9);
|
|
5197
5299
|
i0.ɵɵpipe(1, "translate");
|
|
5198
5300
|
i0.ɵɵelementStart(2, "span");
|
|
5199
5301
|
i0.ɵɵtext(3);
|
|
5200
5302
|
i0.ɵɵpipe(4, "translate");
|
|
5201
5303
|
i0.ɵɵelementEnd();
|
|
5202
|
-
i0.ɵɵelement(5, "mat-icon",
|
|
5304
|
+
i0.ɵɵelement(5, "mat-icon", 8);
|
|
5203
5305
|
i0.ɵɵelementEnd();
|
|
5204
5306
|
} if (rf & 2) {
|
|
5205
5307
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
5206
|
-
const _r2 = i0.ɵɵreference(
|
|
5308
|
+
const _r2 = i0.ɵɵreference(5);
|
|
5207
5309
|
i0.ɵɵproperty("disabled", ctx_r1.loading)("matTooltip", i0.ɵɵpipeBind1(1, 4, "igo.integration.aboutTool.trainingGuideTooltip"))("matMenuTriggerFor", _r2);
|
|
5208
5310
|
i0.ɵɵadvance(3);
|
|
5209
5311
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, "igo.integration.aboutTool.trainingGuide"));
|
|
5210
5312
|
} }
|
|
5211
|
-
function
|
|
5212
|
-
const
|
|
5213
|
-
i0.ɵɵelementStart(0, "button",
|
|
5214
|
-
i0.ɵɵlistener("click", function
|
|
5313
|
+
function AboutToolComponent_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
5314
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
5315
|
+
i0.ɵɵelementStart(0, "button", 10);
|
|
5316
|
+
i0.ɵɵlistener("click", function AboutToolComponent_button_6_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r9); const guide_r7 = restoredCtx.$implicit; const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.openGuide(guide_r7); });
|
|
5215
5317
|
i0.ɵɵtext(1);
|
|
5216
5318
|
i0.ɵɵelementEnd();
|
|
5217
5319
|
} if (rf & 2) {
|
|
5218
|
-
const
|
|
5320
|
+
const guide_r7 = ctx.$implicit;
|
|
5219
5321
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
5220
5322
|
i0.ɵɵadvance(1);
|
|
5221
|
-
i0.ɵɵtextInterpolate(ctx_r3.formatFileName(
|
|
5323
|
+
i0.ɵɵtextInterpolate(ctx_r3.formatFileName(guide_r7));
|
|
5324
|
+
} }
|
|
5325
|
+
function AboutToolComponent_igo_custom_html_7_Template(rf, ctx) { if (rf & 1) {
|
|
5326
|
+
i0.ɵɵelement(0, "igo-custom-html", 6);
|
|
5327
|
+
i0.ɵɵpipe(1, "translate");
|
|
5328
|
+
} if (rf & 2) {
|
|
5329
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
5330
|
+
i0.ɵɵproperty("html", i0.ɵɵpipeBind1(1, 1, ctx_r4.headerHtml));
|
|
5222
5331
|
} }
|
|
5223
5332
|
const _c0 = function (a0) { return { version: a0 }; };
|
|
5224
5333
|
let AboutToolComponent = class AboutToolComponent {
|
|
5225
|
-
constructor(configService, auth, http, cdRef) {
|
|
5334
|
+
constructor(configService, auth, http, cdRef, languageService) {
|
|
5226
5335
|
this.configService = configService;
|
|
5227
5336
|
this.auth = auth;
|
|
5228
5337
|
this.http = http;
|
|
5229
5338
|
this.cdRef = cdRef;
|
|
5339
|
+
this.languageService = languageService;
|
|
5230
5340
|
this._discoverTitleInLocale = 'IGO';
|
|
5231
5341
|
this.discoverTitleInLocale$ = of(this._discoverTitleInLocale);
|
|
5232
5342
|
this._html = 'igo.integration.aboutTool.html';
|
|
5233
|
-
this._headerHtml = 'igo.integration.aboutTool.headerHtml';
|
|
5343
|
+
this._headerHtml = this.languageService.translate.instant('igo.integration.aboutTool.headerHtml');
|
|
5234
5344
|
this.loading = false;
|
|
5235
5345
|
this.version = configService.getConfig('version');
|
|
5236
5346
|
this.baseUrlProfil = configService.getConfig('context.url') + '/user/igo?';
|
|
@@ -5291,33 +5401,32 @@ let AboutToolComponent = class AboutToolComponent {
|
|
|
5291
5401
|
return name;
|
|
5292
5402
|
}
|
|
5293
5403
|
};
|
|
5294
|
-
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$2.ConfigService), i0.ɵɵdirectiveInject(i2$1.AuthService), i0.ɵɵdirectiveInject(i3$2.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5295
|
-
AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToolComponent, selectors: [["igo-about-tool"]], inputs: { headerHtml: "headerHtml", html: "html", discoverTitleInLocale: "discoverTitleInLocale", trainingGuideURLs: "trainingGuideURLs" }, decls:
|
|
5404
|
+
AboutToolComponent.ɵfac = function AboutToolComponent_Factory(t) { return new (t || AboutToolComponent)(i0.ɵɵdirectiveInject(i2$2.ConfigService), i0.ɵɵdirectiveInject(i2$1.AuthService), i0.ɵɵdirectiveInject(i3$2.HttpClient), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2$2.LanguageService)); };
|
|
5405
|
+
AboutToolComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AboutToolComponent, selectors: [["igo-about-tool"]], inputs: { headerHtml: "headerHtml", html: "html", discoverTitleInLocale: "discoverTitleInLocale", trainingGuideURLs: "trainingGuideURLs" }, decls: 10, vars: 11, consts: [["mat-raised-button", "", "tourToStart", "global", "menuIsOpen", "true", "styleButton", "raised", 3, "discoverTitleInLocale$"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "click", 4, "ngIf"], ["class", "training-guide-button", "mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "disabled", "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["menu", "matMenu"], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "click"], ["svgIcon", "file-document"], ["mat-raised-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 1, "training-guide-button", 3, "disabled", "matTooltip", "matMenuTriggerFor"], ["mat-menu-item", "", 3, "click"]], template: function AboutToolComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5296
5406
|
i0.ɵɵelement(0, "p");
|
|
5297
5407
|
i0.ɵɵelement(1, "igo-interactive-tour", 0);
|
|
5298
|
-
i0.ɵɵ
|
|
5299
|
-
i0.ɵɵ
|
|
5300
|
-
i0.ɵɵ
|
|
5301
|
-
i0.ɵɵtemplate(
|
|
5302
|
-
i0.ɵɵelementStart(6, "mat-menu", null, 4);
|
|
5303
|
-
i0.ɵɵtemplate(8, AboutToolComponent_button_8_Template, 2, 1, "button", 5);
|
|
5408
|
+
i0.ɵɵtemplate(2, AboutToolComponent_button_2_Template, 6, 7, "button", 1);
|
|
5409
|
+
i0.ɵɵtemplate(3, AboutToolComponent_button_3_Template, 6, 8, "button", 2);
|
|
5410
|
+
i0.ɵɵelementStart(4, "mat-menu", null, 3);
|
|
5411
|
+
i0.ɵɵtemplate(6, AboutToolComponent_button_6_Template, 2, 1, "button", 4);
|
|
5304
5412
|
i0.ɵɵelementEnd();
|
|
5305
|
-
i0.ɵɵ
|
|
5306
|
-
i0.ɵɵ
|
|
5413
|
+
i0.ɵɵtemplate(7, AboutToolComponent_igo_custom_html_7_Template, 2, 3, "igo-custom-html", 5);
|
|
5414
|
+
i0.ɵɵelement(8, "igo-custom-html", 6);
|
|
5415
|
+
i0.ɵɵpipe(9, "translate");
|
|
5307
5416
|
} if (rf & 2) {
|
|
5308
5417
|
i0.ɵɵadvance(1);
|
|
5309
5418
|
i0.ɵɵproperty("discoverTitleInLocale$", ctx.discoverTitleInLocale$);
|
|
5310
5419
|
i0.ɵɵadvance(1);
|
|
5311
|
-
i0.ɵɵproperty("html", i0.ɵɵpipeBind1(3, 6, ctx.headerHtml));
|
|
5312
|
-
i0.ɵɵadvance(2);
|
|
5313
5420
|
i0.ɵɵproperty("ngIf", ctx.auth.authenticated && ctx.trainingGuideURLs && ctx.trainingGuideURLs.length === 1);
|
|
5314
5421
|
i0.ɵɵadvance(1);
|
|
5315
5422
|
i0.ɵɵproperty("ngIf", ctx.auth.authenticated && ctx.trainingGuideURLs && ctx.trainingGuideURLs.length > 1);
|
|
5316
5423
|
i0.ɵɵadvance(3);
|
|
5317
5424
|
i0.ɵɵproperty("ngForOf", ctx.trainingGuideURLs);
|
|
5318
5425
|
i0.ɵɵadvance(1);
|
|
5319
|
-
i0.ɵɵproperty("
|
|
5320
|
-
|
|
5426
|
+
i0.ɵɵproperty("ngIf", ctx.headerHtml !== "");
|
|
5427
|
+
i0.ɵɵadvance(1);
|
|
5428
|
+
i0.ɵɵproperty("html", i0.ɵɵpipeBind2(9, 6, ctx.html, i0.ɵɵpureFunction1(9, _c0, ctx.version)));
|
|
5429
|
+
} }, directives: [i7.InteractiveTourComponent, i4.NgIf, i6$2.MatMenu, i4.NgForOf, i7.CustomHtmlComponent, i3.MatButton, i4$1.MatTooltip, i6.MatIcon, i6$2.MatMenuTrigger, i6$2.MatMenuItem], pipes: [i8.TranslatePipe], styles: ["igo-interactive-tour[_ngcontent-%COMP%]{margin-left:20px}.training-guide-button[_ngcontent-%COMP%]{margin-left:5px;background-color:#1976d2;color:#fff;padding:0 12px}"] });
|
|
5321
5430
|
AboutToolComponent = __decorate([
|
|
5322
5431
|
ToolComponent({
|
|
5323
5432
|
name: 'about',
|
|
@@ -5332,7 +5441,7 @@ AboutToolComponent = __decorate([
|
|
|
5332
5441
|
templateUrl: './about-tool.component.html',
|
|
5333
5442
|
styleUrls: ['./about-tool.component.scss']
|
|
5334
5443
|
}]
|
|
5335
|
-
}], function () { return [{ type: i2$2.ConfigService }, { type: i2$1.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }]; }, { headerHtml: [{
|
|
5444
|
+
}], function () { return [{ type: i2$2.ConfigService }, { type: i2$1.AuthService }, { type: i3$2.HttpClient }, { type: i0.ChangeDetectorRef }, { type: i2$2.LanguageService }]; }, { headerHtml: [{
|
|
5336
5445
|
type: Input
|
|
5337
5446
|
}], html: [{
|
|
5338
5447
|
type: Input
|
|
@@ -5656,5 +5765,5 @@ QueryState.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryState, f
|
|
|
5656
5765
|
* Generated bundle index. Do not edit.
|
|
5657
5766
|
*/
|
|
5658
5767
|
|
|
5659
|
-
export { AboutToolComponent, ActiveOgcFilterToolComponent, ActiveTimeFilterToolComponent, AdvancedMapToolComponent, AnalyticsListenerService, CatalogBrowserToolComponent, CatalogLibraryToolComponent, CatalogState, ContextEditorToolComponent, ContextManagerToolComponent, ContextPermissionManagerToolComponent, ContextShareToolComponent, ContextState, DirectionsToolComponent, DrawState, DrawingToolComponent, FeatureActionsService, IgoAppAboutModule, IgoAppAnalyticsModule, IgoAppCatalogBrowserToolModule, IgoAppCatalogLibraryToolModule, IgoAppCatalogModule, IgoAppContextModule, IgoAppDirectionsModule, IgoAppDrawModule, IgoAppFilterModule, IgoAppImportExportModule, IgoAppMapModule, IgoAppMeasureModule, IgoAppMeasurerToolModule, IgoAppPrintModule, IgoAppSearchBarModule, IgoAppSearchModule, IgoAppSearchResultsToolModule, IgoAppStorageModule, IgoAppToolModule, IgoAppWorkspaceModule, IgoIntegrationModule, ImportExportMode, ImportExportState, ImportExportToolComponent, ImportExportType, MapDetailsToolComponent, MapLegendToolComponent, MapState, MapToolComponent, MapToolsComponent, MeasureState, MeasurerToolComponent, OgcFilterToolComponent, PrintToolComponent, QueryState, SearchBarBindingDirective, SearchResultsToolComponent, SearchState, SpatialFilterToolComponent, StorageState, TimeFilterToolComponent, ToolState, WfsActionsService, WorkspaceButtonComponent, WorkspaceState };
|
|
5768
|
+
export { AboutToolComponent, ActiveOgcFilterToolComponent, ActiveTimeFilterToolComponent, AdvancedMapToolComponent, AnalyticsListenerService, CatalogBrowserToolComponent, CatalogLibraryToolComponent, CatalogState, ContextEditorToolComponent, ContextManagerToolComponent, ContextPermissionManagerToolComponent, ContextShareToolComponent, ContextState, DirectionState, DirectionsToolComponent, DrawState, DrawingToolComponent, FeatureActionsService, IgoAppAboutModule, IgoAppAnalyticsModule, IgoAppCatalogBrowserToolModule, IgoAppCatalogLibraryToolModule, IgoAppCatalogModule, IgoAppContextModule, IgoAppDirectionsModule, IgoAppDrawModule, IgoAppFilterModule, IgoAppImportExportModule, IgoAppMapModule, IgoAppMeasureModule, IgoAppMeasurerToolModule, IgoAppPrintModule, IgoAppSearchBarModule, IgoAppSearchModule, IgoAppSearchResultsToolModule, IgoAppStorageModule, IgoAppToolModule, IgoAppWorkspaceModule, IgoIntegrationModule, ImportExportMode, ImportExportState, ImportExportToolComponent, ImportExportType, MapDetailsToolComponent, MapLegendToolComponent, MapState, MapToolComponent, MapToolsComponent, MeasureState, MeasurerToolComponent, OgcFilterToolComponent, PrintToolComponent, QueryState, SearchBarBindingDirective, SearchResultsToolComponent, SearchState, SpatialFilterToolComponent, StorageState, TimeFilterToolComponent, ToolState, WfsActionsService, WorkspaceButtonComponent, WorkspaceState };
|
|
5660
5769
|
//# sourceMappingURL=igo2-integration.js.map
|