@igo2/context 1.11.1 → 1.12.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-context.umd.js +162 -133
- package/bundles/igo2-context.umd.js.map +1 -1
- package/esm2015/lib/context-import-export/context-import-export/context-import-export.component.js +1 -1
- package/esm2015/lib/context-import-export/context-import-export.module.js +1 -1
- package/esm2015/lib/context-import-export/index.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.errors.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.interface.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.service.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-export.utils.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.errors.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.service.js +1 -1
- package/esm2015/lib/context-import-export/shared/context-import.utils.js +10 -8
- package/esm2015/lib/context-import-export/shared/index.js +1 -1
- package/esm2015/lib/context-manager/context-edit/context-edit-binding.directive.js +1 -1
- package/esm2015/lib/context-manager/context-edit/context-edit.component.js +1 -1
- package/esm2015/lib/context-manager/context-edit/index.js +1 -1
- package/esm2015/lib/context-manager/context-form/context-form.component.js +1 -1
- package/esm2015/lib/context-manager/context-form/index.js +1 -1
- package/esm2015/lib/context-manager/context-item/context-item.component.js +101 -99
- package/esm2015/lib/context-manager/context-item/index.js +1 -1
- package/esm2015/lib/context-manager/context-list/context-list-binding.directive.js +18 -5
- package/esm2015/lib/context-manager/context-list/context-list.component.js +7 -6
- package/esm2015/lib/context-manager/context-list/context-list.enum.js +1 -1
- package/esm2015/lib/context-manager/context-list/index.js +1 -1
- package/esm2015/lib/context-manager/context-manager.module.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/context-permissions-binding.directive.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/context-permissions.component.js +1 -1
- package/esm2015/lib/context-manager/context-permissions/index.js +1 -1
- package/esm2015/lib/context-manager/index.js +1 -1
- package/esm2015/lib/context-manager/shared/context.enum.js +1 -1
- package/esm2015/lib/context-manager/shared/context.interface.js +1 -1
- package/esm2015/lib/context-manager/shared/context.service.js +25 -12
- package/esm2015/lib/context-manager/shared/index.js +1 -1
- package/esm2015/lib/context-manager/shared/layer-context.directive.js +1 -1
- package/esm2015/lib/context-manager/shared/map-context.directive.js +4 -1
- package/esm2015/lib/context-map-button/bookmark-button/bookmark-button.component.js +1 -1
- package/esm2015/lib/context-map-button/bookmark-button/bookmark-dialog.component.js +1 -1
- package/esm2015/lib/context-map-button/bookmark-button/index.js +1 -1
- package/esm2015/lib/context-map-button/context-map-button.module.js +1 -1
- package/esm2015/lib/context-map-button/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/poi-button.component.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/poi-dialog.component.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/index.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/poi.interface.js +1 -1
- package/esm2015/lib/context-map-button/poi-button/shared/poi.service.js +1 -1
- package/esm2015/lib/context-map-button/user-button/index.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-button.animation.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-button.component.js +1 -1
- package/esm2015/lib/context-map-button/user-button/user-dialog.component.js +1 -1
- package/esm2015/lib/context.module.js +1 -1
- package/esm2015/lib/share-map/index.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map-api.component.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map-url.component.js +1 -1
- package/esm2015/lib/share-map/share-map/share-map.component.js +1 -1
- package/esm2015/lib/share-map/share-map.module.js +1 -1
- package/esm2015/lib/share-map/shared/index.js +1 -1
- package/esm2015/lib/share-map/shared/share-map.service.js +1 -1
- package/esm2015/lib/sidenav/index.js +1 -1
- package/esm2015/lib/sidenav/sidenav.component.js +1 -1
- package/esm2015/lib/sidenav/sidenav.module.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/fesm2015/igo2-context.js +159 -125
- package/fesm2015/igo2-context.js.map +1 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +5 -8
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +5 -3
- package/lib/context-manager/shared/context.service.d.ts +4 -3
- package/ngcc.config.js +3 -3
- package/package.json +6 -6
|
@@ -516,6 +516,7 @@
|
|
|
516
516
|
source.ol.addFeatures(olFeatures);
|
|
517
517
|
var layer = new i1.VectorLayer({
|
|
518
518
|
title: layerTitle,
|
|
519
|
+
isIgoInternalLayer: true,
|
|
519
520
|
source: source,
|
|
520
521
|
style: new olStyle__namespace.Style({
|
|
521
522
|
stroke: stroke,
|
|
@@ -535,23 +536,23 @@
|
|
|
535
536
|
var distance;
|
|
536
537
|
if (styleListService.getStyleList(layerTitle.toString() + '.styleByAttribute')) {
|
|
537
538
|
var styleByAttribute_1 = styleListService.getStyleList(layerTitle.toString() + '.styleByAttribute');
|
|
538
|
-
style = function (feature) {
|
|
539
|
-
return styleService.createStyleByAttribute(feature, styleByAttribute_1);
|
|
539
|
+
style = function (feature, resolution) {
|
|
540
|
+
return styleService.createStyleByAttribute(feature, styleByAttribute_1, resolution);
|
|
540
541
|
};
|
|
541
542
|
}
|
|
542
543
|
else if (styleListService.getStyleList(layerTitle.toString() + '.clusterStyle')) {
|
|
543
544
|
var clusterParam_1 = styleListService.getStyleList(layerTitle.toString() + '.clusterParam');
|
|
544
545
|
distance = styleListService.getStyleList(layerTitle.toString() + '.distance');
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
return styleService.createClusterStyle(feature, clusterParam_1,
|
|
546
|
+
style = function (feature, resolution) {
|
|
547
|
+
var baseStyle = styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.clusterStyle'), feature, resolution);
|
|
548
|
+
return styleService.createClusterStyle(feature, resolution, clusterParam_1, baseStyle);
|
|
548
549
|
};
|
|
549
550
|
}
|
|
550
551
|
else if (styleListService.getStyleList(layerTitle.toString() + '.style')) {
|
|
551
|
-
style = styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.style'));
|
|
552
|
+
style = function (feature, resolution) { return styleService.createStyle(styleListService.getStyleList(layerTitle.toString() + '.style'), feature, resolution); };
|
|
552
553
|
}
|
|
553
554
|
else {
|
|
554
|
-
style = styleService.createStyle(styleListService.getStyleList('default.style'));
|
|
555
|
+
style = function (feature, resolution) { return styleService.createStyle(styleListService.getStyleList('default.style'), feature, resolution); };
|
|
555
556
|
}
|
|
556
557
|
var source;
|
|
557
558
|
if (styleListService.getStyleList(layerTitle.toString() + '.clusterStyle')) {
|
|
@@ -573,6 +574,7 @@
|
|
|
573
574
|
}
|
|
574
575
|
var layer = new i1.VectorLayer({
|
|
575
576
|
title: layerTitle,
|
|
577
|
+
isIgoInternalLayer: true,
|
|
576
578
|
source: source,
|
|
577
579
|
style: style
|
|
578
580
|
});
|
|
@@ -764,13 +766,14 @@
|
|
|
764
766
|
})(exports.Scope || (exports.Scope = {}));
|
|
765
767
|
|
|
766
768
|
var ContextService = /** @class */ (function () {
|
|
767
|
-
function ContextService(http, authService, languageService, config, messageService, route) {
|
|
769
|
+
function ContextService(http, authService, languageService, config, messageService, storageService, route) {
|
|
768
770
|
var _this = this;
|
|
769
771
|
this.http = http;
|
|
770
772
|
this.authService = authService;
|
|
771
773
|
this.languageService = languageService;
|
|
772
774
|
this.config = config;
|
|
773
775
|
this.messageService = messageService;
|
|
776
|
+
this.storageService = storageService;
|
|
774
777
|
this.route = route;
|
|
775
778
|
this.context$ = new rxjs.BehaviorSubject(undefined);
|
|
776
779
|
this.contexts$ = new rxjs.BehaviorSubject({ ours: [] });
|
|
@@ -803,7 +806,7 @@
|
|
|
803
806
|
}
|
|
804
807
|
Object.defineProperty(ContextService.prototype, "defaultContextUri", {
|
|
805
808
|
get: function () {
|
|
806
|
-
return this._defaultContextUri || this.options.defaultContextUri;
|
|
809
|
+
return this.storageService.get('favorite.context.uri') || this._defaultContextUri || this.options.defaultContextUri;
|
|
807
810
|
},
|
|
808
811
|
set: function (uri) {
|
|
809
812
|
this._defaultContextUri = uri;
|
|
@@ -835,10 +838,17 @@
|
|
|
835
838
|
};
|
|
836
839
|
ContextService.prototype.getDefault = function () {
|
|
837
840
|
var _this = this;
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
841
|
+
if (this.authService.authenticated) {
|
|
842
|
+
var url = this.baseUrl + '/contexts/default';
|
|
843
|
+
return this.http.get(url).pipe(operators.tap(function (context) {
|
|
844
|
+
_this.defaultContextId$.next(context.id);
|
|
845
|
+
}));
|
|
846
|
+
}
|
|
847
|
+
else {
|
|
848
|
+
var uri = this.storageService.get('favorite.context.uri');
|
|
849
|
+
this.defaultContextId$.next(uri);
|
|
850
|
+
return this.getContextByUri(uri);
|
|
851
|
+
}
|
|
842
852
|
};
|
|
843
853
|
ContextService.prototype.getProfilByUser = function () {
|
|
844
854
|
if (this.baseUrl) {
|
|
@@ -848,8 +858,14 @@
|
|
|
848
858
|
return rxjs.of([]);
|
|
849
859
|
};
|
|
850
860
|
ContextService.prototype.setDefault = function (id) {
|
|
851
|
-
|
|
852
|
-
|
|
861
|
+
if (this.authService.authenticated) {
|
|
862
|
+
var url = this.baseUrl + '/contexts/default';
|
|
863
|
+
return this.http.post(url, { defaultContextId: id });
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
this.storageService.set('favorite.context.uri', id);
|
|
867
|
+
return rxjs.of(undefined);
|
|
868
|
+
}
|
|
853
869
|
};
|
|
854
870
|
ContextService.prototype.hideContext = function (id) {
|
|
855
871
|
var url = this.baseUrl + '/contexts/' + id + '/hide';
|
|
@@ -1305,7 +1321,6 @@
|
|
|
1305
1321
|
if (centerKey && params[centerKey]) {
|
|
1306
1322
|
var centerParams = params[centerKey];
|
|
1307
1323
|
_this.mapViewFromRoute.center = centerParams.split(',').map(Number);
|
|
1308
|
-
_this.mapViewFromRoute.geolocate = false;
|
|
1309
1324
|
}
|
|
1310
1325
|
var projectionKey = _this.route.options.projectionKey;
|
|
1311
1326
|
if (projectionKey && params[projectionKey]) {
|
|
@@ -1407,7 +1422,7 @@
|
|
|
1407
1422
|
};
|
|
1408
1423
|
return ContextService;
|
|
1409
1424
|
}());
|
|
1410
|
-
ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(i2__namespace.AuthService), i0__namespace.ɵɵinject(i3__namespace.LanguageService), i0__namespace.ɵɵinject(i3__namespace.ConfigService), i0__namespace.ɵɵinject(i3__namespace.MessageService), i0__namespace.ɵɵinject(i3__namespace.RouteService, 8)); };
|
|
1425
|
+
ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(i2__namespace.AuthService), i0__namespace.ɵɵinject(i3__namespace.LanguageService), i0__namespace.ɵɵinject(i3__namespace.ConfigService), i0__namespace.ɵɵinject(i3__namespace.MessageService), i0__namespace.ɵɵinject(i3__namespace.StorageService), i0__namespace.ɵɵinject(i3__namespace.RouteService, 8)); };
|
|
1411
1426
|
ContextService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: ContextService, factory: ContextService.ɵfac, providedIn: 'root' });
|
|
1412
1427
|
(function () {
|
|
1413
1428
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextService, [{
|
|
@@ -1416,7 +1431,7 @@
|
|
|
1416
1431
|
providedIn: 'root'
|
|
1417
1432
|
}]
|
|
1418
1433
|
}], function () {
|
|
1419
|
-
return [{ type: i1__namespace.HttpClient }, { type: i2__namespace.AuthService }, { type: i3__namespace.LanguageService }, { type: i3__namespace.ConfigService }, { type: i3__namespace.MessageService }, { type: i3__namespace.RouteService, decorators: [{
|
|
1434
|
+
return [{ type: i1__namespace.HttpClient }, { type: i2__namespace.AuthService }, { type: i3__namespace.LanguageService }, { type: i3__namespace.ConfigService }, { type: i3__namespace.MessageService }, { type: i3__namespace.StorageService }, { type: i3__namespace.RouteService, decorators: [{
|
|
1420
1435
|
type: i0.Optional
|
|
1421
1436
|
}] }];
|
|
1422
1437
|
}, null);
|
|
@@ -1807,6 +1822,9 @@
|
|
|
1807
1822
|
if (!this.component.view || viewContext.keepCurrentView !== true) {
|
|
1808
1823
|
this.component.view = viewContext;
|
|
1809
1824
|
}
|
|
1825
|
+
if (this.component.map.geolocationController) {
|
|
1826
|
+
this.component.map.geolocationController.updateGeolocationOptions(viewContext);
|
|
1827
|
+
}
|
|
1810
1828
|
var controlsContext = context.map.controls;
|
|
1811
1829
|
if (!this.component.controls && controlsContext) {
|
|
1812
1830
|
if (this.mediaService.isMobile()) {
|
|
@@ -2051,8 +2069,8 @@
|
|
|
2051
2069
|
i0__namespace.ɵɵelement(0, "mat-icon", 7);
|
|
2052
2070
|
}
|
|
2053
2071
|
if (rf & 2) {
|
|
2054
|
-
var
|
|
2055
|
-
i0__namespace.ɵɵpropertyInterpolate("svgIcon",
|
|
2072
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
2073
|
+
i0__namespace.ɵɵpropertyInterpolate("svgIcon", ctx_r3.context.icon ? ctx_r3.context.icon : ctx_r3.context.scope === "public" ? "earth" : "star");
|
|
2056
2074
|
}
|
|
2057
2075
|
}
|
|
2058
2076
|
function ContextItemComponent_button_1_img_3_Template(rf, ctx) {
|
|
@@ -2060,15 +2078,15 @@
|
|
|
2060
2078
|
i0__namespace.ɵɵelement(0, "img", 8);
|
|
2061
2079
|
}
|
|
2062
2080
|
if (rf & 2) {
|
|
2063
|
-
var
|
|
2064
|
-
i0__namespace.ɵɵproperty("src",
|
|
2081
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
2082
|
+
i0__namespace.ɵɵproperty("src", ctx_r4.context.iconImage, i0__namespace.ɵɵsanitizeUrl);
|
|
2065
2083
|
}
|
|
2066
2084
|
}
|
|
2067
2085
|
function ContextItemComponent_button_1_Template(rf, ctx) {
|
|
2068
2086
|
if (rf & 1) {
|
|
2069
|
-
var
|
|
2087
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2070
2088
|
i0__namespace.ɵɵelementStart(0, "button", 4);
|
|
2071
|
-
i0__namespace.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
2089
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.favoriteClick(ctx_r5.context); });
|
|
2072
2090
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2073
2091
|
i0__namespace.ɵɵtemplate(2, ContextItemComponent_button_1_mat_icon_2_Template, 1, 1, "mat-icon", 5);
|
|
2074
2092
|
i0__namespace.ɵɵtemplate(3, ContextItemComponent_button_1_img_3_Template, 1, 1, "img", 6);
|
|
@@ -2083,141 +2101,155 @@
|
|
|
2083
2101
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.context.iconImage);
|
|
2084
2102
|
}
|
|
2085
2103
|
}
|
|
2086
|
-
function
|
|
2104
|
+
function ContextItemComponent_button_2_Template(rf, ctx) {
|
|
2087
2105
|
if (rf & 1) {
|
|
2088
|
-
var
|
|
2089
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2090
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2106
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2107
|
+
i0__namespace.ɵɵelementStart(0, "button", 4);
|
|
2108
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_button_2_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.favoriteClick(ctx_r7.context); });
|
|
2091
2109
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2092
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2110
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 9);
|
|
2093
2111
|
i0__namespace.ɵɵelementEnd();
|
|
2094
2112
|
}
|
|
2095
2113
|
if (rf & 2) {
|
|
2096
|
-
var
|
|
2097
|
-
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.
|
|
2114
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
2115
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.favorite"))("color", ctx_r1.default ? "primary" : "default");
|
|
2098
2116
|
}
|
|
2099
2117
|
}
|
|
2100
|
-
function
|
|
2118
|
+
function ContextItemComponent_div_5_button_1_Template(rf, ctx) {
|
|
2101
2119
|
if (rf & 1) {
|
|
2102
|
-
var
|
|
2103
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2104
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2120
|
+
var _r18_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2121
|
+
i0__namespace.ɵɵelementStart(0, "button", 21);
|
|
2122
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.save.emit(ctx_r17.context); });
|
|
2105
2123
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2106
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2124
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 22);
|
|
2107
2125
|
i0__namespace.ɵɵelementEnd();
|
|
2108
2126
|
}
|
|
2109
2127
|
if (rf & 2) {
|
|
2110
|
-
var
|
|
2111
|
-
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.
|
|
2128
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
2129
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.save"))("color", ctx_r9.color);
|
|
2112
2130
|
}
|
|
2113
2131
|
}
|
|
2114
|
-
function
|
|
2132
|
+
function ContextItemComponent_div_5_button_4_Template(rf, ctx) {
|
|
2115
2133
|
if (rf & 1) {
|
|
2116
|
-
var
|
|
2117
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2118
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2134
|
+
var _r20_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2135
|
+
i0__namespace.ɵɵelementStart(0, "button", 23);
|
|
2136
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_4_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.managePermissions.emit(ctx_r19.context); });
|
|
2119
2137
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2120
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2138
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 24);
|
|
2121
2139
|
i0__namespace.ɵɵelementEnd();
|
|
2122
2140
|
}
|
|
2123
2141
|
if (rf & 2) {
|
|
2124
|
-
var
|
|
2125
|
-
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.
|
|
2142
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
2143
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.managePermissions"))("color", ctx_r11.color);
|
|
2126
2144
|
}
|
|
2127
2145
|
}
|
|
2128
|
-
function
|
|
2146
|
+
function ContextItemComponent_div_5_button_5_Template(rf, ctx) {
|
|
2129
2147
|
if (rf & 1) {
|
|
2130
|
-
var
|
|
2131
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2132
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2148
|
+
var _r22_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2149
|
+
i0__namespace.ɵɵelementStart(0, "button", 25);
|
|
2150
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_5_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.clone.emit(ctx_r21.context); });
|
|
2133
2151
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2134
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2152
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 26);
|
|
2135
2153
|
i0__namespace.ɵɵelementEnd();
|
|
2136
2154
|
}
|
|
2137
2155
|
if (rf & 2) {
|
|
2138
|
-
var
|
|
2139
|
-
i0__namespace.ɵɵproperty("
|
|
2156
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
2157
|
+
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.clone"))("color", ctx_r12.color);
|
|
2140
2158
|
}
|
|
2141
2159
|
}
|
|
2142
|
-
function
|
|
2160
|
+
function ContextItemComponent_div_5_button_6_Template(rf, ctx) {
|
|
2143
2161
|
if (rf & 1) {
|
|
2144
|
-
var
|
|
2145
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2146
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2162
|
+
var _r24_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2163
|
+
i0__namespace.ɵɵelementStart(0, "button", 27);
|
|
2164
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_6_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.edit.emit(ctx_r23.context); });
|
|
2147
2165
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2148
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2166
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 28);
|
|
2149
2167
|
i0__namespace.ɵɵelementEnd();
|
|
2150
2168
|
}
|
|
2151
2169
|
if (rf & 2) {
|
|
2152
|
-
var
|
|
2153
|
-
i0__namespace.ɵɵproperty("color",
|
|
2170
|
+
var ctx_r13 = i0__namespace.ɵɵnextContext(2);
|
|
2171
|
+
i0__namespace.ɵɵproperty("color", ctx_r13.color)("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.edit"));
|
|
2154
2172
|
}
|
|
2155
2173
|
}
|
|
2156
|
-
function
|
|
2174
|
+
function ContextItemComponent_div_5_button_7_Template(rf, ctx) {
|
|
2157
2175
|
if (rf & 1) {
|
|
2158
|
-
var
|
|
2159
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2160
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2176
|
+
var _r26_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2177
|
+
i0__namespace.ɵɵelementStart(0, "button", 29);
|
|
2178
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_7_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(2); return ctx_r25.hide.emit(ctx_r25.context); });
|
|
2161
2179
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2162
2180
|
i0__namespace.ɵɵelement(2, "mat-icon", 30);
|
|
2163
2181
|
i0__namespace.ɵɵelementEnd();
|
|
2164
2182
|
}
|
|
2165
2183
|
if (rf & 2) {
|
|
2166
|
-
var
|
|
2167
|
-
i0__namespace.ɵɵproperty("color",
|
|
2184
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(2);
|
|
2185
|
+
i0__namespace.ɵɵproperty("color", ctx_r14.color)("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.hide"));
|
|
2168
2186
|
}
|
|
2169
2187
|
}
|
|
2170
|
-
function
|
|
2188
|
+
function ContextItemComponent_div_5_button_8_Template(rf, ctx) {
|
|
2171
2189
|
if (rf & 1) {
|
|
2172
|
-
var
|
|
2173
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
2174
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2190
|
+
var _r28_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2191
|
+
i0__namespace.ɵɵelementStart(0, "button", 29);
|
|
2192
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_8_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r28_1); var ctx_r27 = i0__namespace.ɵɵnextContext(2); return ctx_r27.show.emit(ctx_r27.context); });
|
|
2175
2193
|
i0__namespace.ɵɵpipe(1, "translate");
|
|
2176
|
-
i0__namespace.ɵɵelement(2, "mat-icon",
|
|
2194
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 31);
|
|
2195
|
+
i0__namespace.ɵɵelementEnd();
|
|
2196
|
+
}
|
|
2197
|
+
if (rf & 2) {
|
|
2198
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(2);
|
|
2199
|
+
i0__namespace.ɵɵproperty("color", ctx_r15.color)("matTooltip", i0__namespace.ɵɵpipeBind1(1, 2, "igo.context.contextManager.show"));
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
function ContextItemComponent_div_5_button_9_Template(rf, ctx) {
|
|
2203
|
+
if (rf & 1) {
|
|
2204
|
+
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2205
|
+
i0__namespace.ɵɵelementStart(0, "button", 32);
|
|
2206
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_button_9_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var ctx_r29 = i0__namespace.ɵɵnextContext(2); return ctx_r29.delete.emit(ctx_r29.context); });
|
|
2207
|
+
i0__namespace.ɵɵpipe(1, "translate");
|
|
2208
|
+
i0__namespace.ɵɵelement(2, "mat-icon", 33);
|
|
2177
2209
|
i0__namespace.ɵɵelementEnd();
|
|
2178
2210
|
}
|
|
2179
2211
|
if (rf & 2) {
|
|
2180
2212
|
i0__namespace.ɵɵproperty("matTooltip", i0__namespace.ɵɵpipeBind1(1, 1, "igo.context.contextManager.delete"));
|
|
2181
2213
|
}
|
|
2182
2214
|
}
|
|
2183
|
-
function
|
|
2215
|
+
function ContextItemComponent_div_5_Template(rf, ctx) {
|
|
2184
2216
|
if (rf & 1) {
|
|
2185
|
-
var
|
|
2186
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
2187
|
-
i0__namespace.ɵɵtemplate(1,
|
|
2188
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
2189
|
-
i0__namespace.ɵɵtemplate(4,
|
|
2190
|
-
i0__namespace.ɵɵtemplate(5,
|
|
2191
|
-
i0__namespace.ɵɵtemplate(6,
|
|
2192
|
-
i0__namespace.ɵɵtemplate(7,
|
|
2193
|
-
i0__namespace.ɵɵtemplate(8,
|
|
2194
|
-
i0__namespace.ɵɵtemplate(9,
|
|
2217
|
+
var _r32_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2218
|
+
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
2219
|
+
i0__namespace.ɵɵtemplate(1, ContextItemComponent_div_5_button_1_Template, 3, 4, "button", 11);
|
|
2220
|
+
i0__namespace.ɵɵelementStart(2, "div", 12, 13);
|
|
2221
|
+
i0__namespace.ɵɵtemplate(4, ContextItemComponent_div_5_button_4_Template, 3, 4, "button", 14);
|
|
2222
|
+
i0__namespace.ɵɵtemplate(5, ContextItemComponent_div_5_button_5_Template, 3, 4, "button", 15);
|
|
2223
|
+
i0__namespace.ɵɵtemplate(6, ContextItemComponent_div_5_button_6_Template, 3, 4, "button", 16);
|
|
2224
|
+
i0__namespace.ɵɵtemplate(7, ContextItemComponent_div_5_button_7_Template, 3, 4, "button", 17);
|
|
2225
|
+
i0__namespace.ɵɵtemplate(8, ContextItemComponent_div_5_button_8_Template, 3, 4, "button", 17);
|
|
2226
|
+
i0__namespace.ɵɵtemplate(9, ContextItemComponent_div_5_button_9_Template, 3, 3, "button", 18);
|
|
2195
2227
|
i0__namespace.ɵɵelementEnd();
|
|
2196
|
-
i0__namespace.ɵɵelementStart(10, "button",
|
|
2197
|
-
i0__namespace.ɵɵlistener("click", function
|
|
2198
|
-
i0__namespace.ɵɵelement(11, "mat-icon",
|
|
2228
|
+
i0__namespace.ɵɵelementStart(10, "button", 19);
|
|
2229
|
+
i0__namespace.ɵɵlistener("click", function ContextItemComponent_div_5_Template_button_click_10_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r31 = i0__namespace.ɵɵnextContext(); return ctx_r31.collapsed = !ctx_r31.collapsed; });
|
|
2230
|
+
i0__namespace.ɵɵelement(11, "mat-icon", 20);
|
|
2199
2231
|
i0__namespace.ɵɵelementEnd();
|
|
2200
2232
|
i0__namespace.ɵɵelementEnd();
|
|
2201
2233
|
}
|
|
2202
2234
|
if (rf & 2) {
|
|
2203
|
-
var
|
|
2204
|
-
var
|
|
2235
|
+
var _r10 = i0__namespace.ɵɵreference(3);
|
|
2236
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
2205
2237
|
i0__namespace.ɵɵadvance(1);
|
|
2206
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
2238
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.collapsed && ctx_r2.selected && (ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] || ctx_r2.context.imported));
|
|
2207
2239
|
i0__namespace.ɵɵadvance(3);
|
|
2208
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
2240
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.canShare && !ctx_r2.context.imported);
|
|
2209
2241
|
i0__namespace.ɵɵadvance(1);
|
|
2210
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
2242
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.context.imported);
|
|
2211
2243
|
i0__namespace.ɵɵadvance(1);
|
|
2212
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
2244
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] && !ctx_r2.context.imported);
|
|
2213
2245
|
i0__namespace.ɵɵadvance(1);
|
|
2214
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
2246
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.context.hidden && !ctx_r2.context.imported);
|
|
2215
2247
|
i0__namespace.ɵɵadvance(1);
|
|
2216
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
2248
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.context.hidden && !ctx_r2.context.imported);
|
|
2217
2249
|
i0__namespace.ɵɵadvance(1);
|
|
2218
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
2250
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.context.permission === ctx_r2.typePermission[ctx_r2.typePermission.write] || ctx_r2.context.imported);
|
|
2219
2251
|
i0__namespace.ɵɵadvance(1);
|
|
2220
|
-
i0__namespace.ɵɵproperty("color",
|
|
2252
|
+
i0__namespace.ɵɵproperty("color", ctx_r2.color)("target", _r10)("collapsed", ctx_r2.collapsed);
|
|
2221
2253
|
}
|
|
2222
2254
|
}
|
|
2223
2255
|
var _c0$1 = function (a0) { return { "mat-list-item-light": a0 }; };
|
|
@@ -2228,7 +2260,7 @@
|
|
|
2228
2260
|
this.typePermission = exports.TypePermission;
|
|
2229
2261
|
this.color = 'primary';
|
|
2230
2262
|
this.collapsed = true;
|
|
2231
|
-
this.
|
|
2263
|
+
this.showFavorite = true;
|
|
2232
2264
|
this.edit = new i0.EventEmitter();
|
|
2233
2265
|
this.delete = new i0.EventEmitter();
|
|
2234
2266
|
this.save = new i0.EventEmitter();
|
|
@@ -2239,26 +2271,6 @@
|
|
|
2239
2271
|
this.managePermissions = new i0.EventEmitter();
|
|
2240
2272
|
this.manageTools = new i0.EventEmitter();
|
|
2241
2273
|
}
|
|
2242
|
-
Object.defineProperty(ContextItemComponent.prototype, "context", {
|
|
2243
|
-
get: function () {
|
|
2244
|
-
return this._context;
|
|
2245
|
-
},
|
|
2246
|
-
set: function (value) {
|
|
2247
|
-
this._context = value;
|
|
2248
|
-
},
|
|
2249
|
-
enumerable: false,
|
|
2250
|
-
configurable: true
|
|
2251
|
-
});
|
|
2252
|
-
Object.defineProperty(ContextItemComponent.prototype, "default", {
|
|
2253
|
-
get: function () {
|
|
2254
|
-
return this._default;
|
|
2255
|
-
},
|
|
2256
|
-
set: function (value) {
|
|
2257
|
-
this._default = value;
|
|
2258
|
-
},
|
|
2259
|
-
enumerable: false,
|
|
2260
|
-
configurable: true
|
|
2261
|
-
});
|
|
2262
2274
|
Object.defineProperty(ContextItemComponent.prototype, "hidden", {
|
|
2263
2275
|
get: function () {
|
|
2264
2276
|
return this.context.hidden;
|
|
@@ -2274,27 +2286,28 @@
|
|
|
2274
2286
|
configurable: true
|
|
2275
2287
|
});
|
|
2276
2288
|
ContextItemComponent.prototype.favoriteClick = function (context) {
|
|
2277
|
-
|
|
2278
|
-
this.favorite.emit(context);
|
|
2279
|
-
}
|
|
2289
|
+
this.favorite.emit(context);
|
|
2280
2290
|
};
|
|
2281
2291
|
return ContextItemComponent;
|
|
2282
2292
|
}());
|
|
2283
2293
|
ContextItemComponent.ɵfac = function ContextItemComponent_Factory(t) { return new (t || ContextItemComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace.StorageService)); };
|
|
2284
|
-
ContextItemComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ContextItemComponent, selectors: [["igo-context-item"]], inputs: { context: "context", default: "default", selected: "selected" }, outputs: { edit: "edit", delete: "delete", save: "save", clone: "clone", hide: "hide", show: "show", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools" }, decls:
|
|
2294
|
+
ContextItemComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ContextItemComponent, selectors: [["igo-context-item"]], inputs: { showFavorite: "showFavorite", context: "context", default: "default", selected: "selected" }, outputs: { edit: "edit", delete: "delete", save: "save", clone: "clone", hide: "hide", show: "show", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools" }, decls: 6, vars: 7, consts: [[1, "mat-list-item", 3, "ngClass"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["matLine", ""], ["igoStopPropagation", "", "class", "igo-actions-container", 4, "ngIf"], ["mat-list-avatar", "", "mat-icon-button", "", "igoStopPropagation", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], [3, "svgIcon", 4, "ngIf"], [3, "src", 4, "ngIf"], [3, "svgIcon"], [3, "src"], ["svgIcon", "star"], ["igoStopPropagation", "", 1, "igo-actions-container"], ["class", "save-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], [1, "igo-actions-expand-container"], ["actions", ""], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "clone-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click", 4, "ngIf"], ["class", "edit-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "hide-button", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "color", "matTooltip", "click", 4, "ngIf"], ["class", "delete-button", "mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["mat-icon-button", "", "igoCollapse", "", 1, "actions-button", 3, "color", "target", "collapsed", "click"], ["svgIcon", "dots-horizontal"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "save-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-save"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "color", "click"], ["svgIcon", "account-arrow-right"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "clone-button", 3, "matTooltip", "color", "click"], ["svgIcon", "content-copy"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "edit-button", 3, "color", "matTooltip", "click"], ["svgIcon", "pencil"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "hide-button", 3, "color", "matTooltip", "click"], ["svgIcon", "eye"], ["svgIcon", "eye-off"], ["mat-icon-button", "", "color", "warn", "matTooltipShowDelay", "500", 1, "delete-button", 3, "matTooltip", "click"], ["svgIcon", "delete"]], template: function ContextItemComponent_Template(rf, ctx) {
|
|
2285
2295
|
if (rf & 1) {
|
|
2286
2296
|
i0__namespace.ɵɵelementStart(0, "mat-list-item", 0);
|
|
2287
2297
|
i0__namespace.ɵɵtemplate(1, ContextItemComponent_button_1_Template, 4, 6, "button", 1);
|
|
2288
|
-
i0__namespace.ɵɵ
|
|
2289
|
-
i0__namespace.ɵɵ
|
|
2298
|
+
i0__namespace.ɵɵtemplate(2, ContextItemComponent_button_2_Template, 3, 4, "button", 1);
|
|
2299
|
+
i0__namespace.ɵɵelementStart(3, "h4", 2);
|
|
2300
|
+
i0__namespace.ɵɵtext(4);
|
|
2290
2301
|
i0__namespace.ɵɵelementEnd();
|
|
2291
|
-
i0__namespace.ɵɵtemplate(
|
|
2302
|
+
i0__namespace.ɵɵtemplate(5, ContextItemComponent_div_5_Template, 12, 10, "div", 3);
|
|
2292
2303
|
i0__namespace.ɵɵelementEnd();
|
|
2293
2304
|
}
|
|
2294
2305
|
if (rf & 2) {
|
|
2295
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
2306
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$1, ctx.hidden));
|
|
2296
2307
|
i0__namespace.ɵɵadvance(1);
|
|
2297
2308
|
i0__namespace.ɵɵproperty("ngIf", ctx.auth.authenticated);
|
|
2309
|
+
i0__namespace.ɵɵadvance(1);
|
|
2310
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.auth.authenticated && ctx.showFavorite);
|
|
2298
2311
|
i0__namespace.ɵɵadvance(2);
|
|
2299
2312
|
i0__namespace.ɵɵtextInterpolate(ctx.context.title);
|
|
2300
2313
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -2310,7 +2323,9 @@
|
|
|
2310
2323
|
styleUrls: ['./context-item.component.scss'],
|
|
2311
2324
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2312
2325
|
}]
|
|
2313
|
-
}], function () { return [{ type: i2__namespace.AuthService }, { type: i3__namespace.StorageService }]; }, {
|
|
2326
|
+
}], function () { return [{ type: i2__namespace.AuthService }, { type: i3__namespace.StorageService }]; }, { showFavorite: [{
|
|
2327
|
+
type: i0.Input
|
|
2328
|
+
}], context: [{
|
|
2314
2329
|
type: i0.Input
|
|
2315
2330
|
}], default: [{
|
|
2316
2331
|
type: i0.Input
|
|
@@ -2519,18 +2534,18 @@
|
|
|
2519
2534
|
if (rf & 1) {
|
|
2520
2535
|
var _r56_1 = i0__namespace.ɵɵgetCurrentView();
|
|
2521
2536
|
i0__namespace.ɵɵelementStart(0, "igo-context-item", 32);
|
|
2522
|
-
i0__namespace.ɵɵlistener("
|
|
2537
|
+
i0__namespace.ɵɵlistener("favorite", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_favorite_0_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r56_1); var context_r54 = restoredCtx.$implicit; var ctx_r55 = i0__namespace.ɵɵnextContext(3); return ctx_r55.favorite.emit(context_r54); })("select", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_select_0_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r56_1); var context_r54 = restoredCtx.$implicit; var ctx_r57 = i0__namespace.ɵɵnextContext(3); return ctx_r57.select.emit(context_r54); })("unselect", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_unselect_0_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r56_1); var context_r54 = restoredCtx.$implicit; var ctx_r58 = i0__namespace.ɵɵnextContext(3); return ctx_r58.unselect.emit(context_r54); });
|
|
2523
2538
|
i0__namespace.ɵɵelementEnd();
|
|
2524
2539
|
}
|
|
2525
2540
|
if (rf & 2) {
|
|
2526
2541
|
var context_r54 = ctx.$implicit;
|
|
2527
2542
|
var ctx_r53 = i0__namespace.ɵɵnextContext(3);
|
|
2528
|
-
i0__namespace.ɵɵproperty("selected", ctx_r53.selectedContext && ctx_r53.selectedContext.uri === context_r54.uri)("context", context_r54)("default", ctx_r53.defaultContextId === context_r54.id);
|
|
2543
|
+
i0__namespace.ɵɵproperty("showFavorite", ctx_r53.configService.getConfig("favoriteContext4NonAuthenticated"))("selected", ctx_r53.selectedContext && ctx_r53.selectedContext.uri === context_r54.uri)("context", context_r54)("default", ctx_r53.configService.getConfig("context") ? ctx_r53.defaultContextId === context_r54.id : ctx_r53.defaultContextId === context_r54.uri);
|
|
2529
2544
|
}
|
|
2530
2545
|
}
|
|
2531
2546
|
function ContextListComponent_ng_template_14_1_Template(rf, ctx) {
|
|
2532
2547
|
if (rf & 1) {
|
|
2533
|
-
i0__namespace.ɵɵtemplate(0, ContextListComponent_ng_template_14_1_ng_template_0_Template, 1,
|
|
2548
|
+
i0__namespace.ɵɵtemplate(0, ContextListComponent_ng_template_14_1_ng_template_0_Template, 1, 4, "ng-template", 10);
|
|
2534
2549
|
}
|
|
2535
2550
|
if (rf & 2) {
|
|
2536
2551
|
var groupContexts_r32 = i0__namespace.ɵɵnextContext().$implicit;
|
|
@@ -2628,7 +2643,8 @@
|
|
|
2628
2643
|
});
|
|
2629
2644
|
Object.defineProperty(ContextListComponent.prototype, "defaultContextId", {
|
|
2630
2645
|
get: function () {
|
|
2631
|
-
return this._defaultContextId
|
|
2646
|
+
return this.configService.getConfig('context') ? this._defaultContextId :
|
|
2647
|
+
this.storageService.get('favorite.context.uri') || this._defaultContextId;
|
|
2632
2648
|
},
|
|
2633
2649
|
set: function (value) {
|
|
2634
2650
|
this._defaultContextId = value;
|
|
@@ -2916,7 +2932,7 @@
|
|
|
2916
2932
|
return ContextListComponent;
|
|
2917
2933
|
}());
|
|
2918
2934
|
ContextListComponent.ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i3__namespace.ConfigService), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService), i0__namespace.ɵɵdirectiveInject(i1__namespace$2.MatDialog), i0__namespace.ɵɵdirectiveInject(i3__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i3__namespace.StorageService)); };
|
|
2919
|
-
ContextListComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ContextListComponent, selectors: [["igo-context-list"]], inputs: { contexts: "contexts", selectedContext: "selectedContext", map: "map", defaultContextId: "defaultContextId", term: "term" }, outputs: { select: "select", unselect: "unselect", edit: "edit", delete: "delete", save: "save", clone: "clone", create: "create", hide: "hide", show: "show", showHiddenContexts: "showHiddenContexts", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools", filterPermissionsChanged: "filterPermissionsChanged" }, decls: 17, vars: 16, consts: [[3, "navigation"], [3, "ngClass", 4, "ngIf"], ["class", "sort-alpha", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["class", "add-context-button", "icon", "plus", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode", 4, "ngIf"], ["class", "users-filter", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["accountMenu", "matMenu"], [4, "ngFor", "ngForOf"], [1, "profilsMenu"], [1, "mat-menu-item", 3, "checked", "click", "change"], ["mat-menu-item", ""], ["ngFor", "", 3, "ngForOf"], [3, "ngClass"], ["matInput", "", "type", "text", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "class", "clear-button", "aria-label", "Clear", "color", "warn", 3, "click", 4, "ngIf"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "aria-label", "Clear", "color", "warn", 1, "clear-button", 3, "click"], ["svgIcon", "close"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "sort-alpha", 3, "matTooltip", "click"], ["color", "primary", "svgIcon", "sort-alphabetical-variant"], ["color", "warn", "svgIcon", "sort-variant-remove"], ["icon", "plus", 1, "add-context-button", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "users-filter", 3, "matTooltip", "matMenuTriggerFor"], ["color", "primary", "svgIcon", "filter-menu"], [1, "mat-menu-item", 3, "checked", "indeterminate", "click", "change"], ["mat-menu-item", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["subAccountMenu", "matMenu"], ["class", "mat-menu-item", 3, "checked", "click", "change", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "matMenuTriggerFor"], [3, "title", "collapsed", "toggle", 4, "ngIf"], [4, "ngIf"], [3, "title", "collapsed", "toggle"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "edit", "delete", "clone", "save", "hide", "show", "favorite", "manageTools", "managePermissions", "select", "unselect"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "select", "unselect"]], template: function ContextListComponent_Template(rf, ctx) {
|
|
2935
|
+
ContextListComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ContextListComponent, selectors: [["igo-context-list"]], inputs: { contexts: "contexts", selectedContext: "selectedContext", map: "map", defaultContextId: "defaultContextId", term: "term" }, outputs: { select: "select", unselect: "unselect", edit: "edit", delete: "delete", save: "save", clone: "clone", create: "create", hide: "hide", show: "show", showHiddenContexts: "showHiddenContexts", favorite: "favorite", managePermissions: "managePermissions", manageTools: "manageTools", filterPermissionsChanged: "filterPermissionsChanged" }, decls: 17, vars: 16, consts: [[3, "navigation"], [3, "ngClass", 4, "ngIf"], ["class", "sort-alpha", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "click", 4, "ngIf"], ["class", "add-context-button", "icon", "plus", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode", 4, "ngIf"], ["class", "users-filter", "mat-icon-button", "", "matTooltipShowDelay", "500", 3, "matTooltip", "matMenuTriggerFor", 4, "ngIf"], ["accountMenu", "matMenu"], [4, "ngFor", "ngForOf"], [1, "profilsMenu"], [1, "mat-menu-item", 3, "checked", "click", "change"], ["mat-menu-item", ""], ["ngFor", "", 3, "ngForOf"], [3, "ngClass"], ["matInput", "", "type", "text", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "class", "clear-button", "aria-label", "Clear", "color", "warn", 3, "click", 4, "ngIf"], ["mat-button", "", "mat-icon-button", "", "matSuffix", "", "aria-label", "Clear", "color", "warn", 1, "clear-button", 3, "click"], ["svgIcon", "close"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "sort-alpha", 3, "matTooltip", "click"], ["color", "primary", "svgIcon", "sort-alphabetical-variant"], ["color", "warn", "svgIcon", "sort-variant-remove"], ["icon", "plus", 1, "add-context-button", 3, "iconColor", "store", "withIcon", "withTitle", "horizontal", "mode"], ["mat-icon-button", "", "matTooltipShowDelay", "500", 1, "users-filter", 3, "matTooltip", "matMenuTriggerFor"], ["color", "primary", "svgIcon", "filter-menu"], [1, "mat-menu-item", 3, "checked", "indeterminate", "click", "change"], ["mat-menu-item", "", 3, "matMenuTriggerFor", 4, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["subAccountMenu", "matMenu"], ["class", "mat-menu-item", 3, "checked", "click", "change", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "matMenuTriggerFor"], [3, "title", "collapsed", "toggle", 4, "ngIf"], [4, "ngIf"], [3, "title", "collapsed", "toggle"], ["igoListItem", "", "color", "accent", 3, "selected", "context", "default", "edit", "delete", "clone", "save", "hide", "show", "favorite", "manageTools", "managePermissions", "select", "unselect"], ["igoListItem", "", "color", "accent", 3, "showFavorite", "selected", "context", "default", "favorite", "select", "unselect"]], template: function ContextListComponent_Template(rf, ctx) {
|
|
2920
2936
|
if (rf & 1) {
|
|
2921
2937
|
i0__namespace.ɵɵelementStart(0, "igo-list", 0);
|
|
2922
2938
|
i0__namespace.ɵɵtemplate(1, ContextListComponent_mat_form_field_1_Template, 4, 6, "mat-form-field", 1);
|
|
@@ -3014,7 +3030,7 @@
|
|
|
3014
3030
|
})();
|
|
3015
3031
|
|
|
3016
3032
|
var ContextListBindingDirective = /** @class */ (function () {
|
|
3017
|
-
function ContextListBindingDirective(component, contextService, mapService, languageService, confirmDialogService, messageService, auth, storageService) {
|
|
3033
|
+
function ContextListBindingDirective(component, contextService, mapService, languageService, confirmDialogService, messageService, auth, storageService, cdRef) {
|
|
3018
3034
|
this.contextService = contextService;
|
|
3019
3035
|
this.mapService = mapService;
|
|
3020
3036
|
this.languageService = languageService;
|
|
@@ -3022,6 +3038,7 @@
|
|
|
3022
3038
|
this.messageService = messageService;
|
|
3023
3039
|
this.auth = auth;
|
|
3024
3040
|
this.storageService = storageService;
|
|
3041
|
+
this.cdRef = cdRef;
|
|
3025
3042
|
this.component = component;
|
|
3026
3043
|
}
|
|
3027
3044
|
ContextListBindingDirective.prototype.onSelect = function (context) {
|
|
@@ -3063,14 +3080,22 @@
|
|
|
3063
3080
|
};
|
|
3064
3081
|
ContextListBindingDirective.prototype.onFavorite = function (context) {
|
|
3065
3082
|
var _this = this;
|
|
3083
|
+
if (!context.id) {
|
|
3084
|
+
context.id = context.uri;
|
|
3085
|
+
}
|
|
3066
3086
|
this.contextService.setDefault(context.id).subscribe(function () {
|
|
3087
|
+
if (_this.previousMessageId) {
|
|
3088
|
+
_this.messageService.remove(_this.previousMessageId);
|
|
3089
|
+
}
|
|
3067
3090
|
_this.contextService.defaultContextId$.next(context.id);
|
|
3068
3091
|
var translate = _this.languageService.translate;
|
|
3069
3092
|
var message = translate.instant('igo.context.contextManager.dialog.favoriteMsg', {
|
|
3070
3093
|
value: context.title
|
|
3071
3094
|
});
|
|
3072
3095
|
var title = translate.instant('igo.context.contextManager.dialog.favoriteTitle');
|
|
3073
|
-
_this.messageService.success(message, title);
|
|
3096
|
+
var messageObj = _this.messageService.success(message, title);
|
|
3097
|
+
_this.previousMessageId = messageObj.toastId;
|
|
3098
|
+
_this.cdRef.detectChanges();
|
|
3074
3099
|
});
|
|
3075
3100
|
};
|
|
3076
3101
|
ContextListBindingDirective.prototype.onManageTools = function (context) {
|
|
@@ -3170,6 +3195,10 @@
|
|
|
3170
3195
|
this.defaultContextId$$ = this.contextService.defaultContextId$.subscribe(function (id) {
|
|
3171
3196
|
_this.component.defaultContextId = id;
|
|
3172
3197
|
});
|
|
3198
|
+
var storedContextUri = this.storageService.get('favorite.context.uri');
|
|
3199
|
+
if (storedContextUri && !this.auth.authenticated) {
|
|
3200
|
+
this.contextService.defaultContextId$.next(storedContextUri);
|
|
3201
|
+
}
|
|
3173
3202
|
// See feature-list.component for an explanation about the debounce time
|
|
3174
3203
|
this.selectedContext$$ = this.contextService.context$
|
|
3175
3204
|
.pipe(operators.debounceTime(100))
|
|
@@ -3238,7 +3267,7 @@
|
|
|
3238
3267
|
};
|
|
3239
3268
|
return ContextListBindingDirective;
|
|
3240
3269
|
}());
|
|
3241
|
-
ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0__namespace.ɵɵdirectiveInject(ContextListComponent, 2), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.MapService), i0__namespace.ɵɵdirectiveInject(i3__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i5__namespace$1.ConfirmDialogService), i0__namespace.ɵɵdirectiveInject(i3__namespace.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace.StorageService)); };
|
|
3270
|
+
ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0__namespace.ɵɵdirectiveInject(ContextListComponent, 2), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.MapService), i0__namespace.ɵɵdirectiveInject(i3__namespace.LanguageService), i0__namespace.ɵɵdirectiveInject(i5__namespace$1.ConfirmDialogService), i0__namespace.ɵɵdirectiveInject(i3__namespace.MessageService), i0__namespace.ɵɵdirectiveInject(i2__namespace.AuthService), i0__namespace.ɵɵdirectiveInject(i3__namespace.StorageService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
3242
3271
|
ContextListBindingDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: ContextListBindingDirective, selectors: [["", "igoContextListBinding", ""]], hostBindings: function ContextListBindingDirective_HostBindings(rf, ctx) {
|
|
3243
3272
|
if (rf & 1) {
|
|
3244
3273
|
i0__namespace.ɵɵlistener("select", function ContextListBindingDirective_select_HostBindingHandler($event) { return ctx.onSelect($event); })("edit", function ContextListBindingDirective_edit_HostBindingHandler($event) { return ctx.onEdit($event); })("save", function ContextListBindingDirective_save_HostBindingHandler($event) { return ctx.onSave($event); })("favorite", function ContextListBindingDirective_favorite_HostBindingHandler($event) { return ctx.onFavorite($event); })("manageTools", function ContextListBindingDirective_manageTools_HostBindingHandler($event) { return ctx.onManageTools($event); })("managePermissions", function ContextListBindingDirective_managePermissions_HostBindingHandler($event) { return ctx.onManagePermissions($event); })("delete", function ContextListBindingDirective_delete_HostBindingHandler($event) { return ctx.onDelete($event); })("clone", function ContextListBindingDirective_clone_HostBindingHandler($event) { return ctx.onClone($event); })("create", function ContextListBindingDirective_create_HostBindingHandler($event) { return ctx.onCreate($event); })("filterPermissionsChanged", function ContextListBindingDirective_filterPermissionsChanged_HostBindingHandler() { return ctx.loadContexts(); })("showHiddenContexts", function ContextListBindingDirective_showHiddenContexts_HostBindingHandler() { return ctx.showHiddenContexts(); })("show", function ContextListBindingDirective_show_HostBindingHandler($event) { return ctx.onShowContext($event); })("hide", function ContextListBindingDirective_hide_HostBindingHandler($event) { return ctx.onHideContext($event); });
|
|
@@ -3253,7 +3282,7 @@
|
|
|
3253
3282
|
}], function () {
|
|
3254
3283
|
return [{ type: ContextListComponent, decorators: [{
|
|
3255
3284
|
type: i0.Self
|
|
3256
|
-
}] }, { type: ContextService }, { type: i1__namespace$1.MapService }, { type: i3__namespace.LanguageService }, { type: i5__namespace$1.ConfirmDialogService }, { type: i3__namespace.MessageService }, { type: i2__namespace.AuthService }, { type: i3__namespace.StorageService }];
|
|
3285
|
+
}] }, { type: ContextService }, { type: i1__namespace$1.MapService }, { type: i3__namespace.LanguageService }, { type: i5__namespace$1.ConfirmDialogService }, { type: i3__namespace.MessageService }, { type: i2__namespace.AuthService }, { type: i3__namespace.StorageService }, { type: i0__namespace.ChangeDetectorRef }];
|
|
3257
3286
|
}, { onSelect: [{
|
|
3258
3287
|
type: i0.HostListener,
|
|
3259
3288
|
args: ['select', ['$event']]
|