@igo2/context 1.15.3 → 1.15.5
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/esm2020/igo2-context.mjs +4 -4
- package/esm2020/lib/context-import-export/context-import-export/context-import-export.component.mjs +228 -228
- package/esm2020/lib/context-import-export/context-import-export.module.mjs +85 -85
- package/esm2020/lib/context-import-export/index.mjs +3 -3
- package/esm2020/lib/context-import-export/shared/context-export.errors.mjs +15 -15
- package/esm2020/lib/context-import-export/shared/context-export.interface.mjs +2 -2
- package/esm2020/lib/context-import-export/shared/context-export.service.mjs +38 -38
- package/esm2020/lib/context-import-export/shared/context-export.utils.mjs +15 -15
- package/esm2020/lib/context-import-export/shared/context-import.errors.mjs +33 -33
- package/esm2020/lib/context-import-export/shared/context-import.service.mjs +79 -79
- package/esm2020/lib/context-import-export/shared/context-import.utils.mjs +133 -133
- package/esm2020/lib/context-import-export/shared/index.mjs +8 -8
- package/esm2020/lib/context-manager/context-edit/context-edit-binding.directive.mjs +50 -50
- package/esm2020/lib/context-manager/context-edit/context-edit.component.mjs +46 -46
- package/esm2020/lib/context-manager/context-edit/index.mjs +3 -3
- package/esm2020/lib/context-manager/context-form/context-form.component.mjs +143 -143
- package/esm2020/lib/context-manager/context-form/index.mjs +2 -2
- package/esm2020/lib/context-manager/context-item/context-item.component.mjs +245 -245
- package/esm2020/lib/context-manager/context-item/index.mjs +2 -2
- package/esm2020/lib/context-manager/context-list/context-list-binding.directive.mjs +240 -240
- package/esm2020/lib/context-manager/context-list/context-list.component.mjs +592 -592
- package/esm2020/lib/context-manager/context-list/context-list.enum.mjs +7 -7
- package/esm2020/lib/context-manager/context-list/index.mjs +3 -3
- package/esm2020/lib/context-manager/context-manager.module.mjs +162 -162
- package/esm2020/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs +99 -99
- package/esm2020/lib/context-manager/context-permissions/context-permissions.component.mjs +306 -306
- package/esm2020/lib/context-manager/context-permissions/index.mjs +3 -3
- package/esm2020/lib/context-manager/index.mjs +7 -7
- package/esm2020/lib/context-manager/shared/context.enum.mjs +13 -13
- package/esm2020/lib/context-manager/shared/context.interface.mjs +2 -2
- package/esm2020/lib/context-manager/shared/context.service.mjs +632 -632
- package/esm2020/lib/context-manager/shared/index.mjs +6 -6
- package/esm2020/lib/context-manager/shared/layer-context.directive.mjs +162 -162
- package/esm2020/lib/context-manager/shared/map-context.directive.mjs +70 -70
- package/esm2020/lib/context-map-button/bookmark-button/bookmark-button.component.mjs +66 -66
- package/esm2020/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +50 -50
- package/esm2020/lib/context-map-button/bookmark-button/index.mjs +3 -3
- package/esm2020/lib/context-map-button/context-map-button.module.mjs +96 -96
- package/esm2020/lib/context-map-button/index.mjs +4 -4
- package/esm2020/lib/context-map-button/poi-button/index.mjs +4 -4
- package/esm2020/lib/context-map-button/poi-button/poi-button.component.mjs +161 -161
- package/esm2020/lib/context-map-button/poi-button/poi-dialog.component.mjs +50 -50
- package/esm2020/lib/context-map-button/poi-button/shared/index.mjs +3 -3
- package/esm2020/lib/context-map-button/poi-button/shared/poi.interface.mjs +2 -2
- package/esm2020/lib/context-map-button/poi-button/shared/poi.service.mjs +33 -33
- package/esm2020/lib/context-map-button/user-button/index.mjs +3 -3
- package/esm2020/lib/context-map-button/user-button/user-button.animation.mjs +17 -17
- package/esm2020/lib/context-map-button/user-button/user-button.component.mjs +104 -104
- package/esm2020/lib/context-map-button/user-button/user-dialog.component.mjs +66 -66
- package/esm2020/lib/context.module.mjs +45 -45
- package/esm2020/lib/share-map/index.mjs +5 -5
- package/esm2020/lib/share-map/share-map/share-map-api.component.mjs +170 -170
- package/esm2020/lib/share-map/share-map/share-map-url.component.mjs +243 -243
- package/esm2020/lib/share-map/share-map/share-map.component.mjs +57 -57
- package/esm2020/lib/share-map/share-map.module.mjs +67 -67
- package/esm2020/lib/share-map/shared/index.mjs +2 -2
- package/esm2020/lib/share-map/shared/share-map.service.mjs +210 -210
- package/esm2020/lib/sidenav/index.mjs +2 -2
- package/esm2020/lib/sidenav/sidenav.component.mjs +170 -170
- package/esm2020/lib/sidenav/sidenav.module.mjs +61 -61
- package/esm2020/public_api.mjs +15 -15
- package/fesm2015/igo2-context.mjs +4948 -4948
- package/fesm2015/igo2-context.mjs.map +1 -1
- package/fesm2020/igo2-context.mjs +4597 -4597
- package/fesm2020/igo2-context.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +44 -44
- package/lib/context-import-export/context-import-export.module.d.ts +23 -23
- package/lib/context-import-export/index.d.ts +2 -2
- package/lib/context-import-export/shared/context-export.errors.d.ts +8 -8
- package/lib/context-import-export/shared/context-export.interface.d.ts +5 -5
- package/lib/context-import-export/shared/context-export.service.d.ts +10 -10
- package/lib/context-import-export/shared/context-export.utils.d.ts +4 -4
- package/lib/context-import-export/shared/context-import.errors.d.ts +17 -17
- package/lib/context-import-export/shared/context-import.service.d.ts +18 -18
- package/lib/context-import-export/shared/context-import.utils.d.ts +17 -17
- package/lib/context-import-export/shared/index.d.ts +7 -7
- package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +20 -20
- package/lib/context-manager/context-edit/context-edit.component.d.ts +14 -14
- package/lib/context-manager/context-edit/index.d.ts +2 -2
- package/lib/context-manager/context-form/context-form.component.d.ts +30 -30
- package/lib/context-manager/context-form/index.d.ts +1 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +32 -32
- package/lib/context-manager/context-item/index.d.ts +1 -1
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +46 -46
- package/lib/context-manager/context-list/context-list.component.d.ts +93 -93
- package/lib/context-manager/context-list/context-list.enum.d.ts +5 -5
- package/lib/context-manager/context-list/index.d.ts +2 -2
- package/lib/context-manager/context-manager.module.d.ts +37 -37
- package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +23 -23
- package/lib/context-manager/context-permissions/context-permissions.component.d.ts +40 -40
- package/lib/context-manager/context-permissions/index.d.ts +2 -2
- package/lib/context-manager/index.d.ts +6 -6
- package/lib/context-manager/shared/context.enum.d.ts +10 -10
- package/lib/context-manager/shared/context.interface.d.ts +75 -75
- package/lib/context-manager/shared/context.service.d.ts +75 -75
- package/lib/context-manager/shared/index.d.ts +5 -5
- package/lib/context-manager/shared/layer-context.directive.d.ts +28 -28
- package/lib/context-manager/shared/map-context.directive.d.ts +19 -19
- package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +20 -20
- package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +9 -9
- package/lib/context-map-button/bookmark-button/index.d.ts +2 -2
- package/lib/context-map-button/context-map-button.module.d.ts +27 -27
- package/lib/context-map-button/index.d.ts +3 -3
- package/lib/context-map-button/poi-button/index.d.ts +3 -3
- package/lib/context-map-button/poi-button/poi-button.component.d.ts +34 -34
- package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +9 -9
- package/lib/context-map-button/poi-button/shared/index.d.ts +2 -2
- package/lib/context-map-button/poi-button/shared/poi.interface.d.ts +7 -7
- package/lib/context-map-button/poi-button/shared/poi.service.d.ts +16 -16
- package/lib/context-map-button/user-button/index.d.ts +2 -2
- package/lib/context-map-button/user-button/user-button.animation.d.ts +2 -2
- package/lib/context-map-button/user-button/user-button.component.d.ts +25 -25
- package/lib/context-map-button/user-button/user-dialog.component.d.ts +15 -15
- package/lib/context.module.d.ts +16 -16
- package/lib/share-map/index.d.ts +4 -4
- package/lib/share-map/share-map/share-map-api.component.d.ts +27 -27
- package/lib/share-map/share-map/share-map-url.component.d.ts +26 -26
- package/lib/share-map/share-map/share-map.component.d.ts +11 -11
- package/lib/share-map/share-map.module.d.ts +21 -21
- package/lib/share-map/shared/index.d.ts +1 -1
- package/lib/share-map/shared/share-map.service.d.ts +17 -17
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav.component.d.ts +35 -35
- package/lib/sidenav/sidenav.module.d.ts +18 -18
- package/ngcc.config.js +3 -3
- package/package.json +6 -6
- package/public_api.d.ts +11 -11
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
2
|
-
export function userButtonSlideInOut() {
|
|
3
|
-
return trigger('userButtonState', [
|
|
4
|
-
state('collapse', style({
|
|
5
|
-
width: '0',
|
|
6
|
-
overflow: 'hidden',
|
|
7
|
-
display: 'none'
|
|
8
|
-
})),
|
|
9
|
-
state('expand', style({
|
|
10
|
-
overflow: 'hidden',
|
|
11
|
-
display: 'display'
|
|
12
|
-
})),
|
|
13
|
-
transition('collapse => expand', animate('200ms')),
|
|
14
|
-
transition('expand => collapse', animate('200ms'))
|
|
15
|
-
]);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
2
|
+
export function userButtonSlideInOut() {
|
|
3
|
+
return trigger('userButtonState', [
|
|
4
|
+
state('collapse', style({
|
|
5
|
+
width: '0',
|
|
6
|
+
overflow: 'hidden',
|
|
7
|
+
display: 'none'
|
|
8
|
+
})),
|
|
9
|
+
state('expand', style({
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
display: 'display'
|
|
12
|
+
})),
|
|
13
|
+
transition('collapse => expand', animate('200ms')),
|
|
14
|
+
transition('expand => collapse', animate('200ms'))
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1idXR0b24uYW5pbWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29udGV4dC9zcmMvbGliL2NvbnRleHQtbWFwLWJ1dHRvbi91c2VyLWJ1dHRvbi91c2VyLWJ1dHRvbi5hbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9B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b3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgICBkaXNwbGF5OiAnbm9uZSdcbiAgICAgIH0pXG4gICAgKSxcbiAgICBzdGF0ZShcbiAgICAgICdleHBhbmQnLFxuICAgICAgc3R5bGUoe1xuICAgICAgICBvdmVyZmxvdzogJ2hpZGRlbicsXG4gICAgICAgIGRpc3BsYXk6ICdkaXNwbGF5J1xuICAgICAgfSlcbiAgICApLFxuICAgIHRyYW5zaXRpb24oJ2NvbGxhcHNlID0+IGV4cGFuZCcsIGFuaW1hdGUoJzIwMG1zJykpLFxuICAgIHRyYW5zaXRpb24oJ2V4cGFuZCA9PiBjb2xsYXBzZScsIGFuaW1hdGUoJzIwMG1zJykpXG4gIF0pO1xufVxuIl19
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { UserDialogComponent } from './user-dialog.component';
|
|
3
|
-
import { userButtonSlideInOut } from './user-button.animation';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/material/dialog";
|
|
6
|
-
import * as i2 from "@igo2/core";
|
|
7
|
-
import * as i3 from "@igo2/auth";
|
|
8
|
-
import * as i4 from "@angular/common";
|
|
9
|
-
import * as i5 from "@angular/material/icon";
|
|
10
|
-
import * as i6 from "@angular/material/button";
|
|
11
|
-
import * as i7 from "@angular/material/tooltip";
|
|
12
|
-
import * as i8 from "../poi-button/poi-button.component";
|
|
13
|
-
import * as i9 from "@ngx-translate/core";
|
|
14
|
-
function UserButtonComponent_div_0_igo_poi_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelement(0, "igo-poi-button", 9);
|
|
16
|
-
} if (rf & 2) {
|
|
17
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
18
|
-
i0.ɵɵproperty("color", ctx_r1.color)("map", ctx_r1.map);
|
|
19
|
-
} }
|
|
20
|
-
function UserButtonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
22
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
23
|
-
i0.ɵɵtemplate(2, UserButtonComponent_div_0_igo_poi_button_2_Template, 1, 2, "igo-poi-button", 3);
|
|
24
|
-
i0.ɵɵelementStart(3, "button", 4);
|
|
25
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.infoUser()); });
|
|
26
|
-
i0.ɵɵpipe(4, "translate");
|
|
27
|
-
i0.ɵɵelement(5, "mat-icon", 5);
|
|
28
|
-
i0.ɵɵelementEnd();
|
|
29
|
-
i0.ɵɵelementStart(6, "button", 4);
|
|
30
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.logout()); });
|
|
31
|
-
i0.ɵɵpipe(7, "translate");
|
|
32
|
-
i0.ɵɵelement(8, "mat-icon", 6);
|
|
33
|
-
i0.ɵɵelementEnd()();
|
|
34
|
-
i0.ɵɵelementStart(9, "button", 7);
|
|
35
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.accountClick()); });
|
|
36
|
-
i0.ɵɵelement(10, "mat-icon", 8);
|
|
37
|
-
i0.ɵɵelementEnd()();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
40
|
-
i0.ɵɵadvance(1);
|
|
41
|
-
i0.ɵɵproperty("@userButtonState", ctx_r0.expand ? "expand" : "collapse");
|
|
42
|
-
i0.ɵɵadvance(1);
|
|
43
|
-
i0.ɵɵproperty("ngIf", ctx_r0.hasApi);
|
|
44
|
-
i0.ɵɵadvance(1);
|
|
45
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(4, 7, "igo.context.userButton.infoTitle"))("color", ctx_r0.color);
|
|
46
|
-
i0.ɵɵadvance(3);
|
|
47
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(7, 9, "igo.context.userButton.logout"))("color", ctx_r0.color);
|
|
48
|
-
i0.ɵɵadvance(3);
|
|
49
|
-
i0.ɵɵproperty("color", ctx_r0.auth.authenticated ? ctx_r0.color : "warn");
|
|
50
|
-
} }
|
|
51
|
-
export class UserButtonComponent {
|
|
52
|
-
constructor(dialog, config, auth) {
|
|
53
|
-
this.dialog = dialog;
|
|
54
|
-
this.config = config;
|
|
55
|
-
this.auth = auth;
|
|
56
|
-
this.expand = false;
|
|
57
|
-
this.visible = false;
|
|
58
|
-
this.hasApi = false;
|
|
59
|
-
this.visible = this.config.getConfig('auth') ? true : false;
|
|
60
|
-
this.hasApi = this.config.getConfig('context.url') !== undefined;
|
|
61
|
-
}
|
|
62
|
-
get map() {
|
|
63
|
-
return this._map;
|
|
64
|
-
}
|
|
65
|
-
set map(value) {
|
|
66
|
-
this._map = value;
|
|
67
|
-
}
|
|
68
|
-
get color() {
|
|
69
|
-
return this._color;
|
|
70
|
-
}
|
|
71
|
-
set color(value) {
|
|
72
|
-
this._color = value;
|
|
73
|
-
}
|
|
74
|
-
accountClick() {
|
|
75
|
-
if (this.auth.authenticated) {
|
|
76
|
-
this.expand = !this.expand;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
this.auth.logout();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
logout() {
|
|
83
|
-
this.expand = false;
|
|
84
|
-
this.auth.logout();
|
|
85
|
-
}
|
|
86
|
-
infoUser() {
|
|
87
|
-
this.dialog.open(UserDialogComponent, { disableClose: false });
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1.MatDialog), i0.ɵɵdirectiveInject(i2.ConfigService), i0.ɵɵdirectiveInject(i3.AuthService)); };
|
|
91
|
-
UserButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserButtonComponent, selectors: [["igo-user-button"]], inputs: { map: "map", color: "color" }, decls: 1, vars: 1, consts: [["class", "igo-user-button-container", 4, "ngIf"], [1, "igo-user-button-container"], [1, "igo-user-button-more-container"], [3, "color", "map", 4, "ngIf"], ["mat-icon-button", "", "matTooltipPosition", "above", 3, "matTooltip", "color", "click"], ["svgIcon", "information-outline"], ["svgIcon", "power"], ["mat-icon-button", "", 3, "color", "click"], ["svgIcon", "account-box"], [3, "color", "map"]], template: function UserButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵtemplate(0, UserButtonComponent_div_0_Template, 11, 11, "div", 0);
|
|
93
|
-
} if (rf & 2) {
|
|
94
|
-
i0.ɵɵproperty("ngIf", ctx.visible);
|
|
95
|
-
} }, dependencies: [i4.NgIf, i5.MatIcon, i6.MatButton, i7.MatTooltip, i8.PoiButtonComponent, i9.TranslatePipe], styles: [".igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:absolute;bottom:0}}.igo-user-button-more-container[_ngcontent-%COMP%]{float:left;height:40px}.igo-user-button-more-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container[_ngcontent-%COMP%]{height:80px;width:150px;position:relative;left:24px}}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"], data: { animation: [userButtonSlideInOut()] } });
|
|
96
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserButtonComponent, [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{ selector: 'igo-user-button', animations: [userButtonSlideInOut()], template: "<div *ngIf=\"visible\" class=\"igo-user-button-container\">\
|
|
99
|
-
}], function () { return [{ type: i1.MatDialog }, { type: i2.ConfigService }, { type: i3.AuthService }]; }, { map: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], color: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}] }); })();
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { UserDialogComponent } from './user-dialog.component';
|
|
3
|
+
import { userButtonSlideInOut } from './user-button.animation';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/dialog";
|
|
6
|
+
import * as i2 from "@igo2/core";
|
|
7
|
+
import * as i3 from "@igo2/auth";
|
|
8
|
+
import * as i4 from "@angular/common";
|
|
9
|
+
import * as i5 from "@angular/material/icon";
|
|
10
|
+
import * as i6 from "@angular/material/button";
|
|
11
|
+
import * as i7 from "@angular/material/tooltip";
|
|
12
|
+
import * as i8 from "../poi-button/poi-button.component";
|
|
13
|
+
import * as i9 from "@ngx-translate/core";
|
|
14
|
+
function UserButtonComponent_div_0_igo_poi_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
+
i0.ɵɵelement(0, "igo-poi-button", 9);
|
|
16
|
+
} if (rf & 2) {
|
|
17
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
18
|
+
i0.ɵɵproperty("color", ctx_r1.color)("map", ctx_r1.map);
|
|
19
|
+
} }
|
|
20
|
+
function UserButtonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
22
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
23
|
+
i0.ɵɵtemplate(2, UserButtonComponent_div_0_igo_poi_button_2_Template, 1, 2, "igo-poi-button", 3);
|
|
24
|
+
i0.ɵɵelementStart(3, "button", 4);
|
|
25
|
+
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.infoUser()); });
|
|
26
|
+
i0.ɵɵpipe(4, "translate");
|
|
27
|
+
i0.ɵɵelement(5, "mat-icon", 5);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
i0.ɵɵelementStart(6, "button", 4);
|
|
30
|
+
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.logout()); });
|
|
31
|
+
i0.ɵɵpipe(7, "translate");
|
|
32
|
+
i0.ɵɵelement(8, "mat-icon", 6);
|
|
33
|
+
i0.ɵɵelementEnd()();
|
|
34
|
+
i0.ɵɵelementStart(9, "button", 7);
|
|
35
|
+
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.accountClick()); });
|
|
36
|
+
i0.ɵɵelement(10, "mat-icon", 8);
|
|
37
|
+
i0.ɵɵelementEnd()();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
40
|
+
i0.ɵɵadvance(1);
|
|
41
|
+
i0.ɵɵproperty("@userButtonState", ctx_r0.expand ? "expand" : "collapse");
|
|
42
|
+
i0.ɵɵadvance(1);
|
|
43
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasApi);
|
|
44
|
+
i0.ɵɵadvance(1);
|
|
45
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(4, 7, "igo.context.userButton.infoTitle"))("color", ctx_r0.color);
|
|
46
|
+
i0.ɵɵadvance(3);
|
|
47
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(7, 9, "igo.context.userButton.logout"))("color", ctx_r0.color);
|
|
48
|
+
i0.ɵɵadvance(3);
|
|
49
|
+
i0.ɵɵproperty("color", ctx_r0.auth.authenticated ? ctx_r0.color : "warn");
|
|
50
|
+
} }
|
|
51
|
+
export class UserButtonComponent {
|
|
52
|
+
constructor(dialog, config, auth) {
|
|
53
|
+
this.dialog = dialog;
|
|
54
|
+
this.config = config;
|
|
55
|
+
this.auth = auth;
|
|
56
|
+
this.expand = false;
|
|
57
|
+
this.visible = false;
|
|
58
|
+
this.hasApi = false;
|
|
59
|
+
this.visible = this.config.getConfig('auth') ? true : false;
|
|
60
|
+
this.hasApi = this.config.getConfig('context.url') !== undefined;
|
|
61
|
+
}
|
|
62
|
+
get map() {
|
|
63
|
+
return this._map;
|
|
64
|
+
}
|
|
65
|
+
set map(value) {
|
|
66
|
+
this._map = value;
|
|
67
|
+
}
|
|
68
|
+
get color() {
|
|
69
|
+
return this._color;
|
|
70
|
+
}
|
|
71
|
+
set color(value) {
|
|
72
|
+
this._color = value;
|
|
73
|
+
}
|
|
74
|
+
accountClick() {
|
|
75
|
+
if (this.auth.authenticated) {
|
|
76
|
+
this.expand = !this.expand;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
this.auth.logout();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
logout() {
|
|
83
|
+
this.expand = false;
|
|
84
|
+
this.auth.logout();
|
|
85
|
+
}
|
|
86
|
+
infoUser() {
|
|
87
|
+
this.dialog.open(UserDialogComponent, { disableClose: false });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1.MatDialog), i0.ɵɵdirectiveInject(i2.ConfigService), i0.ɵɵdirectiveInject(i3.AuthService)); };
|
|
91
|
+
UserButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserButtonComponent, selectors: [["igo-user-button"]], inputs: { map: "map", color: "color" }, decls: 1, vars: 1, consts: [["class", "igo-user-button-container", 4, "ngIf"], [1, "igo-user-button-container"], [1, "igo-user-button-more-container"], [3, "color", "map", 4, "ngIf"], ["mat-icon-button", "", "matTooltipPosition", "above", 3, "matTooltip", "color", "click"], ["svgIcon", "information-outline"], ["svgIcon", "power"], ["mat-icon-button", "", 3, "color", "click"], ["svgIcon", "account-box"], [3, "color", "map"]], template: function UserButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
i0.ɵɵtemplate(0, UserButtonComponent_div_0_Template, 11, 11, "div", 0);
|
|
93
|
+
} if (rf & 2) {
|
|
94
|
+
i0.ɵɵproperty("ngIf", ctx.visible);
|
|
95
|
+
} }, dependencies: [i4.NgIf, i5.MatIcon, i6.MatButton, i7.MatTooltip, i8.PoiButtonComponent, i9.TranslatePipe], styles: [".igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:absolute;bottom:0}}.igo-user-button-more-container[_ngcontent-%COMP%]{float:left;height:40px}.igo-user-button-more-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container[_ngcontent-%COMP%]{height:80px;width:150px;position:relative;left:24px}}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"], data: { animation: [userButtonSlideInOut()] } });
|
|
96
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserButtonComponent, [{
|
|
97
|
+
type: Component,
|
|
98
|
+
args: [{ selector: 'igo-user-button', animations: [userButtonSlideInOut()], template: "<div *ngIf=\"visible\" class=\"igo-user-button-container\">\n <div class=\"igo-user-button-more-container\" [@userButtonState]=\"expand ? 'expand' : 'collapse'\">\n\n <igo-poi-button *ngIf=\"hasApi\" [color]=\"color\" [map]=\"map\"></igo-poi-button>\n\n <button\n mat-icon-button\n [matTooltip]=\"'igo.context.userButton.infoTitle' | translate\"\n matTooltipPosition=\"above\"\n [color]=\"color\"\n (click)=\"infoUser()\">\n <mat-icon svgIcon=\"information-outline\"></mat-icon>\n </button>\n\n <button\n mat-icon-button\n [matTooltip]=\"'igo.context.userButton.logout' |\u00A0translate\"\n matTooltipPosition=\"above\"\n [color]=\"color\"\n (click)=\"logout()\">\n <mat-icon svgIcon=\"power\"></mat-icon>\n </button>\n\n </div>\n\n <button\n mat-icon-button\n [color]=\"auth.authenticated ? color : 'warn'\"\n (click)=\"accountClick()\">\n <mat-icon svgIcon=\"account-box\"></mat-icon>\n </button>\n</div>\n", styles: [".igo-user-button-container button{background-color:#fff}.igo-user-button-container button:hover{background-color:#efefef}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-container>button{position:absolute;bottom:0}}.igo-user-button-more-container{float:left;height:40px}.igo-user-button-more-container>*{margin-right:2px;float:left}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){.igo-user-button-more-container{height:80px;width:150px;position:relative;left:24px}}button,:host ::ng-deep button .mat-button-ripple-round{border-radius:0}\n"] }]
|
|
99
|
+
}], function () { return [{ type: i1.MatDialog }, { type: i2.ConfigService }, { type: i3.AuthService }]; }, { map: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], color: [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xuICAgIDxidXR0b25cbiAgICAgIG1hdC1pY29uLWJ1dHRvblxuICAgICAgW21hdFRvb2x0aXBdPVwiJ2lnby5jb250ZXh0LnVzZXJCdXR0b24uaW5mb1RpdGxlJyB8IHRyYW5zbGF0ZVwiXG4gICAgICBtYXRUb29sdGlwUG9zaXRpb249XCJhYm92ZVwiXG4gICAgICBbY29sb3JdPVwiY29sb3JcIlxuICAgICAgKGNsaWNrKT1cImluZm9Vc2VyKClcIj5cbiAgICAgIDxtYXQtaWNvbiBzdmdJY29uPVwiaW5mb3JtYXRpb24tb3V0bGluZVwiPjwvbWF0LWljb24+XG4gICAgPC9idXR0b24+XG5cbiAgICA8YnV0dG9uXG4gICAgICBtYXQtaWNvbi1idXR0b25cbiAgICAgIFttYXRUb29sdGlwXT1cIidpZ28uY29udGV4dC51c2VyQnV0dG9uLmxvZ291dCcgfMKgdHJhbnNsYXRlXCJcbiAgICAgIG1hdFRvb2x0aXBQb3NpdGlvbj1cImFib3ZlXCJcbiAgICAgIFtjb2xvcl09XCJjb2xvclwiXG4gICAgICAoY2xpY2spPVwibG9nb3V0KClcIj5cbiAgICAgIDxtYXQtaWNvbiBzdmdJY29uPVwicG93ZXJcIj48L21hdC1pY29uPlxuICAgIDwvYnV0dG9uPlxuXG4gIDwvZGl2PlxuXG4gIDxidXR0b25cbiAgICBtYXQtaWNvbi1idXR0b25cbiAgICBbY29sb3JdPVwiYXV0aC5hdXRoZW50aWNhdGVkID8gY29sb3IgOiAnd2FybidcIlxuICAgIChjbGljayk9XCJhY2NvdW50Q2xpY2soKVwiPlxuICAgIDxtYXQtaWNvbiBzdmdJY29uPVwiYWNjb3VudC1ib3hcIj48L21hdC1pY29uPlxuICA8L2J1dHRvbj5cbjwvZGl2PlxuIl19
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/dialog";
|
|
4
|
-
import * as i2 from "@igo2/auth";
|
|
5
|
-
import * as i3 from "@igo2/core";
|
|
6
|
-
import * as i4 from "@angular/material/button";
|
|
7
|
-
import * as i5 from "@ngx-translate/core";
|
|
8
|
-
export class UserDialogComponent {
|
|
9
|
-
constructor(dialogRef, auth, storageService) {
|
|
10
|
-
this.dialogRef = dialogRef;
|
|
11
|
-
this.auth = auth;
|
|
12
|
-
this.storageService = storageService;
|
|
13
|
-
const decodeToken = this.auth.decodeToken();
|
|
14
|
-
this.user = decodeToken.user;
|
|
15
|
-
this.exp = new Date(decodeToken.exp * 1000).toLocaleString();
|
|
16
|
-
}
|
|
17
|
-
clearPreferences() {
|
|
18
|
-
this.storageService.clear();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
|
|
22
|
-
UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDialogComponent, selectors: [["igo-user-dialog"]], decls: 20, vars: 18, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", "", 1, "mat-typography"], ["mat-stroked-button", "", "color", "primary", 3, "click"], ["mat-dialog-actions", "", 2, "justify-content", "center"], ["mat-raised-button", "", "color", "primary", 3, "click"]], template: function UserDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelementStart(0, "h1", 0);
|
|
24
|
-
i0.ɵɵtext(1);
|
|
25
|
-
i0.ɵɵpipe(2, "translate");
|
|
26
|
-
i0.ɵɵelementEnd();
|
|
27
|
-
i0.ɵɵelementStart(3, "div", 1)(4, "p");
|
|
28
|
-
i0.ɵɵtext(5);
|
|
29
|
-
i0.ɵɵpipe(6, "translate");
|
|
30
|
-
i0.ɵɵelementEnd();
|
|
31
|
-
i0.ɵɵelementStart(7, "p");
|
|
32
|
-
i0.ɵɵtext(8);
|
|
33
|
-
i0.ɵɵpipe(9, "translate");
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
i0.ɵɵelementStart(10, "p");
|
|
36
|
-
i0.ɵɵtext(11);
|
|
37
|
-
i0.ɵɵpipe(12, "translate");
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
i0.ɵɵelementStart(13, "button", 2);
|
|
40
|
-
i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_13_listener() { return ctx.clearPreferences(); });
|
|
41
|
-
i0.ɵɵtext(14);
|
|
42
|
-
i0.ɵɵpipe(15, "translate");
|
|
43
|
-
i0.ɵɵelementEnd();
|
|
44
|
-
i0.ɵɵelement(16, "br");
|
|
45
|
-
i0.ɵɵelementEnd();
|
|
46
|
-
i0.ɵɵelementStart(17, "div", 3)(18, "button", 4);
|
|
47
|
-
i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_18_listener() { return ctx.dialogRef.close(false); });
|
|
48
|
-
i0.ɵɵtext(19, " OK ");
|
|
49
|
-
i0.ɵɵelementEnd()();
|
|
50
|
-
} if (rf & 2) {
|
|
51
|
-
i0.ɵɵadvance(1);
|
|
52
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 8, "igo.context.userButton.infoTitle"));
|
|
53
|
-
i0.ɵɵadvance(4);
|
|
54
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(6, 10, "igo.context.userButton.dialog.user"), ": ", ctx.user.sourceId, "");
|
|
55
|
-
i0.ɵɵadvance(3);
|
|
56
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(9, 12, "igo.context.userButton.dialog.email"), ": ", ctx.user.email, "");
|
|
57
|
-
i0.ɵɵadvance(3);
|
|
58
|
-
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(12, 14, "igo.context.userButton.dialog.expiration"), ": ", ctx.exp, "");
|
|
59
|
-
i0.ɵɵadvance(3);
|
|
60
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, "igo.context.userButton.dialog.clearPreferences"), " ");
|
|
61
|
-
} }, dependencies: [i4.MatButton, i1.MatDialogTitle, i1.MatDialogContent, i1.MatDialogActions, i5.TranslatePipe], encapsulation: 2 });
|
|
62
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserDialogComponent, [{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector: 'igo-user-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{'igo.context.userButton.infoTitle' | translate}}</h1>\
|
|
65
|
-
}], function () { return [{ type: i1.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/material/dialog";
|
|
4
|
+
import * as i2 from "@igo2/auth";
|
|
5
|
+
import * as i3 from "@igo2/core";
|
|
6
|
+
import * as i4 from "@angular/material/button";
|
|
7
|
+
import * as i5 from "@ngx-translate/core";
|
|
8
|
+
export class UserDialogComponent {
|
|
9
|
+
constructor(dialogRef, auth, storageService) {
|
|
10
|
+
this.dialogRef = dialogRef;
|
|
11
|
+
this.auth = auth;
|
|
12
|
+
this.storageService = storageService;
|
|
13
|
+
const decodeToken = this.auth.decodeToken();
|
|
14
|
+
this.user = decodeToken.user;
|
|
15
|
+
this.exp = new Date(decodeToken.exp * 1000).toLocaleString();
|
|
16
|
+
}
|
|
17
|
+
clearPreferences() {
|
|
18
|
+
this.storageService.clear();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1.MatDialogRef), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
|
|
22
|
+
UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDialogComponent, selectors: [["igo-user-dialog"]], decls: 20, vars: 18, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", "", 1, "mat-typography"], ["mat-stroked-button", "", "color", "primary", 3, "click"], ["mat-dialog-actions", "", 2, "justify-content", "center"], ["mat-raised-button", "", "color", "primary", 3, "click"]], template: function UserDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵelementStart(0, "h1", 0);
|
|
24
|
+
i0.ɵɵtext(1);
|
|
25
|
+
i0.ɵɵpipe(2, "translate");
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
i0.ɵɵelementStart(3, "div", 1)(4, "p");
|
|
28
|
+
i0.ɵɵtext(5);
|
|
29
|
+
i0.ɵɵpipe(6, "translate");
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
i0.ɵɵelementStart(7, "p");
|
|
32
|
+
i0.ɵɵtext(8);
|
|
33
|
+
i0.ɵɵpipe(9, "translate");
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
i0.ɵɵelementStart(10, "p");
|
|
36
|
+
i0.ɵɵtext(11);
|
|
37
|
+
i0.ɵɵpipe(12, "translate");
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
i0.ɵɵelementStart(13, "button", 2);
|
|
40
|
+
i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_13_listener() { return ctx.clearPreferences(); });
|
|
41
|
+
i0.ɵɵtext(14);
|
|
42
|
+
i0.ɵɵpipe(15, "translate");
|
|
43
|
+
i0.ɵɵelementEnd();
|
|
44
|
+
i0.ɵɵelement(16, "br");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementStart(17, "div", 3)(18, "button", 4);
|
|
47
|
+
i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_18_listener() { return ctx.dialogRef.close(false); });
|
|
48
|
+
i0.ɵɵtext(19, " OK ");
|
|
49
|
+
i0.ɵɵelementEnd()();
|
|
50
|
+
} if (rf & 2) {
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 8, "igo.context.userButton.infoTitle"));
|
|
53
|
+
i0.ɵɵadvance(4);
|
|
54
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(6, 10, "igo.context.userButton.dialog.user"), ": ", ctx.user.sourceId, "");
|
|
55
|
+
i0.ɵɵadvance(3);
|
|
56
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(9, 12, "igo.context.userButton.dialog.email"), ": ", ctx.user.email, "");
|
|
57
|
+
i0.ɵɵadvance(3);
|
|
58
|
+
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(12, 14, "igo.context.userButton.dialog.expiration"), ": ", ctx.exp, "");
|
|
59
|
+
i0.ɵɵadvance(3);
|
|
60
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, "igo.context.userButton.dialog.clearPreferences"), " ");
|
|
61
|
+
} }, dependencies: [i4.MatButton, i1.MatDialogTitle, i1.MatDialogContent, i1.MatDialogActions, i5.TranslatePipe], encapsulation: 2 });
|
|
62
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserDialogComponent, [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{ selector: 'igo-user-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{'igo.context.userButton.infoTitle' | translate}}</h1>\n<div mat-dialog-content class=\"mat-typography\">\n <p>{{'igo.context.userButton.dialog.user' | translate}}: {{user.sourceId}}</p>\n <p>{{'igo.context.userButton.dialog.email' | translate}}: {{user.email}}</p>\n <p>{{'igo.context.userButton.dialog.expiration' | translate}}: {{exp}}</p>\n <button mat-stroked-button color=\"primary\" (click)=\"clearPreferences()\">\n {{'igo.context.userButton.dialog.clearPreferences' | translate}}\n </button>\n <br>\n</div>\n<div mat-dialog-actions style=\"justify-content: center\">\n <button mat-raised-button color=\"primary\"\n (click)=\"dialogRef.close(false)\">\n OK\n </button>\n</div>\n" }]
|
|
65
|
+
}], function () { return [{ type: i1.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29udGV4dC9zcmMvbGliL2NvbnRleHQtbWFwLWJ1dHRvbi91c2VyLWJ1dHRvbi91c2VyLWRpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9saWIvY29udGV4dC1tYXAtYnV0dG9uL3VzZXItYnV0dG9uL3VzZXItZGlhbG9nLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7QUFVMUMsTUFBTSxPQUFPLG1CQUFtQjtJQUk5QixZQUNTLFNBQTRDLEVBQzNDLElBQWlCLEVBQ2pCLGNBQThCO1FBRi9CLGNBQVMsR0FBVCxTQUFTLENBQW1DO1FBQzNDLFNBQUksR0FBSixJQUFJLENBQWE7UUFDakIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBRXRDLE1BQU0sV0FBVyxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDNUMsSUFBSSxDQUFDLElBQUksR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDO1FBQzdCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxJQUFJLENBQUMsV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IHwgdHJhbnNsYXRlfX06IHt7dXNlci5zb3VyY2VJZH19PC9wPlxuICA8cD57eydpZ28uY29udGV4dC51c2VyQnV0dG9uLmRpYWxvZy5lbWFpbCcgfCB0cmFuc2xhdGV9fToge3t1c2VyLmVtYWlsfX08L3A+XG4gIDxwPnt7J2lnby5jb250ZXh0LnVzZXJCdXR0b24uZGlhbG9nLmV4cGlyYXRpb24nIHwgdHJhbnNsYXRlfX06IHt7ZXhwfX08L3A+XG4gIDxidXR0b24gbWF0LXN0cm9rZWQtYnV0dG9uIGNvbG9yPVwicHJpbWFyeVwiIChjbGljayk9XCJjbGVhclByZWZlcmVuY2VzKClcIj5cbiAgICB7eydpZ28uY29udGV4dC51c2VyQnV0dG9uLmRpYWxvZy5jbGVhclByZWZlcmVuY2VzJyB8IHRyYW5zbGF0ZX19XG4gIDwvYnV0dG9uPlxuICA8YnI+XG48L2Rpdj5cbjxkaXYgbWF0LWRpYWxvZy1hY3Rpb25zIHN0eWxlPVwianVzdGlmeS1jb250ZW50OiBjZW50ZXJcIj5cbiAgPGJ1dHRvbiBtYXQtcmFpc2VkLWJ1dHRvbiBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgKGNsaWNrKT1cImRpYWxvZ1JlZi5jbG9zZShmYWxzZSlcIj5cbiAgICBPS1xuICA8L2J1dHRvbj5cbjwvZGl2PlxuIl19
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
3
|
-
import { MatInputModule } from '@angular/material/input';
|
|
4
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
5
|
-
import { IgoContextImportExportModule } from './context-import-export/context-import-export.module';
|
|
6
|
-
import { IgoContextManagerModule } from './context-manager/context-manager.module';
|
|
7
|
-
import { IgoContextMapButtonModule } from './context-map-button/context-map-button.module';
|
|
8
|
-
import { IgoShareMapModule } from './share-map/share-map.module';
|
|
9
|
-
import { IgoSidenavModule } from './sidenav/sidenav.module';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export class IgoContextModule {
|
|
12
|
-
static forRoot() {
|
|
13
|
-
return {
|
|
14
|
-
ngModule: IgoContextModule,
|
|
15
|
-
providers: []
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
IgoContextModule.ɵfac = function IgoContextModule_Factory(t) { return new (t || IgoContextModule)(); };
|
|
20
|
-
IgoContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextModule });
|
|
21
|
-
IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatInputModule, MatFormFieldModule, MatMenuModule, IgoContextImportExportModule,
|
|
22
|
-
IgoContextManagerModule,
|
|
23
|
-
IgoContextMapButtonModule,
|
|
24
|
-
IgoShareMapModule,
|
|
25
|
-
IgoSidenavModule] });
|
|
26
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextModule, [{
|
|
27
|
-
type: NgModule,
|
|
28
|
-
args: [{
|
|
29
|
-
imports: [MatInputModule, MatFormFieldModule, MatMenuModule],
|
|
30
|
-
declarations: [],
|
|
31
|
-
exports: [
|
|
32
|
-
IgoContextImportExportModule,
|
|
33
|
-
IgoContextManagerModule,
|
|
34
|
-
IgoContextMapButtonModule,
|
|
35
|
-
IgoShareMapModule,
|
|
36
|
-
IgoSidenavModule
|
|
37
|
-
]
|
|
38
|
-
}]
|
|
39
|
-
}], null, null); })();
|
|
40
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoContextModule, { imports: [MatInputModule, MatFormFieldModule, MatMenuModule], exports: [IgoContextImportExportModule,
|
|
41
|
-
IgoContextManagerModule,
|
|
42
|
-
IgoContextMapButtonModule,
|
|
43
|
-
IgoShareMapModule,
|
|
44
|
-
IgoSidenavModule] }); })();
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
3
|
+
import { MatInputModule } from '@angular/material/input';
|
|
4
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
5
|
+
import { IgoContextImportExportModule } from './context-import-export/context-import-export.module';
|
|
6
|
+
import { IgoContextManagerModule } from './context-manager/context-manager.module';
|
|
7
|
+
import { IgoContextMapButtonModule } from './context-map-button/context-map-button.module';
|
|
8
|
+
import { IgoShareMapModule } from './share-map/share-map.module';
|
|
9
|
+
import { IgoSidenavModule } from './sidenav/sidenav.module';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export class IgoContextModule {
|
|
12
|
+
static forRoot() {
|
|
13
|
+
return {
|
|
14
|
+
ngModule: IgoContextModule,
|
|
15
|
+
providers: []
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
IgoContextModule.ɵfac = function IgoContextModule_Factory(t) { return new (t || IgoContextModule)(); };
|
|
20
|
+
IgoContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextModule });
|
|
21
|
+
IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatInputModule, MatFormFieldModule, MatMenuModule, IgoContextImportExportModule,
|
|
22
|
+
IgoContextManagerModule,
|
|
23
|
+
IgoContextMapButtonModule,
|
|
24
|
+
IgoShareMapModule,
|
|
25
|
+
IgoSidenavModule] });
|
|
26
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextModule, [{
|
|
27
|
+
type: NgModule,
|
|
28
|
+
args: [{
|
|
29
|
+
imports: [MatInputModule, MatFormFieldModule, MatMenuModule],
|
|
30
|
+
declarations: [],
|
|
31
|
+
exports: [
|
|
32
|
+
IgoContextImportExportModule,
|
|
33
|
+
IgoContextManagerModule,
|
|
34
|
+
IgoContextMapButtonModule,
|
|
35
|
+
IgoShareMapModule,
|
|
36
|
+
IgoSidenavModule
|
|
37
|
+
]
|
|
38
|
+
}]
|
|
39
|
+
}], null, null); })();
|
|
40
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoContextModule, { imports: [MatInputModule, MatFormFieldModule, MatMenuModule], exports: [IgoContextImportExportModule,
|
|
41
|
+
IgoContextManagerModule,
|
|
42
|
+
IgoContextMapButtonModule,
|
|
43
|
+
IgoShareMapModule,
|
|
44
|
+
IgoSidenavModule] }); })();
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9saWIvY29udGV4dC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUV2RCxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSxzREFBc0QsQ0FBQztBQUNwRyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwwQ0FBMEMsQ0FBQztBQUNuRixPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxnREFBZ0QsQ0FBQztBQUMzRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7QUFhN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W9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBJZ29Db250ZXh0TW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './share-map/share-map.component';
|
|
3
|
-
export * from './share-map/share-map-url.component';
|
|
4
|
-
export * from './share-map/share-map-api.component';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './shared';
|
|
2
|
+
export * from './share-map/share-map.component';
|
|
3
|
+
export * from './share-map/share-map-url.component';
|
|
4
|
+
export * from './share-map/share-map-api.component';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9saWIvc2hhcmUtbWFwL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLHFDQUFxQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zaGFyZWQnO1xuZXhwb3J0ICogZnJvbSAnLi9zaGFyZS1tYXAvc2hhcmUtbWFwLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3NoYXJlLW1hcC9zaGFyZS1tYXAtdXJsLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3NoYXJlLW1hcC9zaGFyZS1tYXAtYXBpLmNvbXBvbmVudCc7XG4iXX0=
|