@igo2/context 1.12.0 → 1.13.0-alpha.1
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/{esm2015/igo2-context.js → esm2020/igo2-context.mjs} +0 -0
- package/esm2020/lib/context-import-export/context-import-export/context-import-export.component.mjs +229 -0
- package/{esm2015/lib/context-import-export/context-import-export.module.js → esm2020/lib/context-import-export/context-import-export.module.mjs} +16 -18
- package/{esm2015/lib/context-import-export/index.js → esm2020/lib/context-import-export/index.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-export.errors.js → esm2020/lib/context-import-export/shared/context-export.errors.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-export.interface.js → esm2020/lib/context-import-export/shared/context-export.interface.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-export.service.js → esm2020/lib/context-import-export/shared/context-export.service.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-export.utils.js → esm2020/lib/context-import-export/shared/context-export.utils.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-import.errors.js → esm2020/lib/context-import-export/shared/context-import.errors.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-import.service.js → esm2020/lib/context-import-export/shared/context-import.service.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/context-import.utils.js → esm2020/lib/context-import-export/shared/context-import.utils.mjs} +0 -0
- package/{esm2015/lib/context-import-export/shared/index.js → esm2020/lib/context-import-export/shared/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-edit/context-edit-binding.directive.js → esm2020/lib/context-manager/context-edit/context-edit-binding.directive.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-edit/context-edit.component.js → esm2020/lib/context-manager/context-edit/context-edit.component.mjs} +4 -7
- package/{esm2015/lib/context-manager/context-edit/index.js → esm2020/lib/context-manager/context-edit/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-form/context-form.component.js → esm2020/lib/context-manager/context-form/context-form.component.mjs} +13 -22
- package/{esm2015/lib/context-manager/context-form/index.js → esm2020/lib/context-manager/context-form/index.mjs} +0 -0
- package/esm2020/lib/context-manager/context-item/context-item.component.mjs +245 -0
- package/{esm2015/lib/context-manager/context-item/index.js → esm2020/lib/context-manager/context-item/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-list/context-list-binding.directive.js → esm2020/lib/context-manager/context-list/context-list-binding.directive.mjs} +0 -0
- package/esm2020/lib/context-manager/context-list/context-list.component.mjs +592 -0
- package/{esm2015/lib/context-manager/context-list/context-list.enum.js → esm2020/lib/context-manager/context-list/context-list.enum.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-list/index.js → esm2020/lib/context-manager/context-list/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/context-manager.module.js → esm2020/lib/context-manager/context-manager.module.mjs} +25 -27
- package/{esm2015/lib/context-manager/context-permissions/context-permissions-binding.directive.js → esm2020/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs} +0 -0
- package/esm2020/lib/context-manager/context-permissions/context-permissions.component.mjs +306 -0
- package/{esm2015/lib/context-manager/context-permissions/index.js → esm2020/lib/context-manager/context-permissions/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/index.js → esm2020/lib/context-manager/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/context.enum.js → esm2020/lib/context-manager/shared/context.enum.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/context.interface.js → esm2020/lib/context-manager/shared/context.interface.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/context.service.js → esm2020/lib/context-manager/shared/context.service.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/index.js → esm2020/lib/context-manager/shared/index.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/layer-context.directive.js → esm2020/lib/context-manager/shared/layer-context.directive.mjs} +0 -0
- package/{esm2015/lib/context-manager/shared/map-context.directive.js → esm2020/lib/context-manager/shared/map-context.directive.mjs} +0 -0
- package/{esm2015/lib/context-map-button/bookmark-button/bookmark-button.component.js → esm2020/lib/context-map-button/bookmark-button/bookmark-button.component.mjs} +8 -14
- package/esm2020/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +50 -0
- package/{esm2015/lib/context-map-button/bookmark-button/index.js → esm2020/lib/context-map-button/bookmark-button/index.mjs} +0 -0
- package/{esm2015/lib/context-map-button/context-map-button.module.js → esm2020/lib/context-map-button/context-map-button.module.mjs} +15 -17
- package/{esm2015/lib/context-map-button/index.js → esm2020/lib/context-map-button/index.mjs} +0 -0
- package/{esm2015/lib/context-map-button/poi-button/index.js → esm2020/lib/context-map-button/poi-button/index.mjs} +0 -0
- package/esm2020/lib/context-map-button/poi-button/poi-button.component.mjs +171 -0
- package/esm2020/lib/context-map-button/poi-button/poi-dialog.component.mjs +50 -0
- package/{esm2015/lib/context-map-button/poi-button/shared/index.js → esm2020/lib/context-map-button/poi-button/shared/index.mjs} +0 -0
- package/{esm2015/lib/context-map-button/poi-button/shared/poi.interface.js → esm2020/lib/context-map-button/poi-button/shared/poi.interface.mjs} +0 -0
- package/{esm2015/lib/context-map-button/poi-button/shared/poi.service.js → esm2020/lib/context-map-button/poi-button/shared/poi.service.mjs} +0 -0
- package/{esm2015/lib/context-map-button/user-button/index.js → esm2020/lib/context-map-button/user-button/index.mjs} +0 -0
- package/{esm2015/lib/context-map-button/user-button/user-button.animation.js → esm2020/lib/context-map-button/user-button/user-button.animation.mjs} +0 -0
- package/esm2020/lib/context-map-button/user-button/user-button.component.mjs +104 -0
- package/{esm2015/lib/context-map-button/user-button/user-dialog.component.js → esm2020/lib/context-map-button/user-button/user-dialog.component.mjs} +6 -12
- package/{esm2015/lib/context.module.js → esm2020/lib/context.module.mjs} +2 -2
- package/{esm2015/lib/share-map/index.js → esm2020/lib/share-map/index.mjs} +0 -0
- package/{esm2015/lib/share-map/share-map/share-map-api.component.js → esm2020/lib/share-map/share-map/share-map-api.component.mjs} +18 -31
- package/{esm2015/lib/share-map/share-map/share-map-url.component.js → esm2020/lib/share-map/share-map/share-map-url.component.mjs} +13 -23
- package/esm2020/lib/share-map/share-map/share-map.component.mjs +57 -0
- package/{esm2015/lib/share-map/share-map.module.js → esm2020/lib/share-map/share-map.module.mjs} +11 -13
- package/{esm2015/lib/share-map/shared/index.js → esm2020/lib/share-map/shared/index.mjs} +0 -0
- package/esm2020/lib/share-map/shared/share-map.service.mjs +201 -0
- package/{esm2015/lib/sidenav/index.js → esm2020/lib/sidenav/index.mjs} +0 -0
- package/esm2020/lib/sidenav/sidenav.component.mjs +170 -0
- package/{esm2015/lib/sidenav/sidenav.module.js → esm2020/lib/sidenav/sidenav.module.mjs} +11 -13
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/fesm2015/igo2-context.mjs +5143 -0
- package/fesm2015/igo2-context.mjs.map +1 -0
- package/{fesm2015/igo2-context.js → fesm2020/igo2-context.mjs} +424 -593
- package/fesm2020/igo2-context.mjs.map +1 -0
- package/{igo2-context.d.ts → index.d.ts} +0 -0
- package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +1 -1
- package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +1 -1
- package/lib/context-manager/context-edit/context-edit.component.d.ts +1 -1
- package/lib/context-manager/context-form/context-form.component.d.ts +1 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +1 -1
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +1 -1
- package/lib/context-manager/context-list/context-list.component.d.ts +1 -1
- package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +1 -1
- package/lib/context-manager/context-permissions/context-permissions.component.d.ts +2 -2
- package/lib/context-manager/shared/layer-context.directive.d.ts +1 -1
- package/lib/context-manager/shared/map-context.directive.d.ts +1 -1
- package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +1 -1
- package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +1 -1
- package/lib/context-map-button/poi-button/poi-button.component.d.ts +1 -1
- package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +1 -1
- package/lib/context-map-button/user-button/user-button.component.d.ts +1 -1
- package/lib/context-map-button/user-button/user-dialog.component.d.ts +1 -1
- package/lib/share-map/share-map/share-map-api.component.d.ts +1 -1
- package/lib/share-map/share-map/share-map-url.component.d.ts +1 -1
- package/lib/share-map/share-map/share-map.component.d.ts +1 -1
- package/lib/sidenav/sidenav.component.d.ts +1 -1
- package/package.json +31 -18
- package/bundles/igo2-context.umd.js +0 -6093
- package/bundles/igo2-context.umd.js.map +0 -1
- package/esm2015/lib/context-import-export/context-import-export/context-import-export.component.js +0 -257
- package/esm2015/lib/context-manager/context-item/context-item.component.js +0 -251
- package/esm2015/lib/context-manager/context-list/context-list.component.js +0 -602
- package/esm2015/lib/context-manager/context-permissions/context-permissions.component.js +0 -323
- package/esm2015/lib/context-map-button/bookmark-button/bookmark-dialog.component.js +0 -59
- package/esm2015/lib/context-map-button/poi-button/poi-button.component.js +0 -177
- package/esm2015/lib/context-map-button/poi-button/poi-dialog.component.js +0 -59
- package/esm2015/lib/context-map-button/user-button/user-button.component.js +0 -112
- package/esm2015/lib/share-map/share-map/share-map.component.js +0 -63
- package/esm2015/lib/share-map/shared/share-map.service.js +0 -201
- package/esm2015/lib/sidenav/sidenav.component.js +0 -183
- package/fesm2015/igo2-context.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Optional, Component, Input, NgModule, Directive, EventEmitter, ChangeDetectionStrategy, Output, Self, HostListener } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i4 from '@angular/material/form-field';
|
|
4
4
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i5$1 from '@angular/material/input';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i13 from '@angular/material/menu';
|
|
8
8
|
import { MatMenuModule } from '@angular/material/menu';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i5 from '@angular/common';
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i7 from '@angular/material/button';
|
|
12
12
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
-
import * as
|
|
13
|
+
import * as i8 from '@angular/material/button-toggle';
|
|
14
14
|
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i12 from '@angular/material/core';
|
|
16
16
|
import { MatOptionModule } from '@angular/material/core';
|
|
17
|
-
import * as
|
|
17
|
+
import * as i9 from '@angular/material/divider';
|
|
18
18
|
import { MatDividerModule } from '@angular/material/divider';
|
|
19
|
-
import * as
|
|
19
|
+
import * as i11 from '@angular/material/select';
|
|
20
20
|
import { MatSelectModule } from '@angular/material/select';
|
|
21
|
-
import * as
|
|
21
|
+
import * as i12$1 from '@angular/material/checkbox';
|
|
22
22
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
23
|
-
import * as i3$
|
|
23
|
+
import * as i3$1 from '@angular/material/tabs';
|
|
24
24
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
25
|
-
import * as i6$
|
|
25
|
+
import * as i6$1 from '@angular/material/tooltip';
|
|
26
26
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
27
27
|
import * as i3 from '@igo2/core';
|
|
28
28
|
import { IgoLanguageModule } from '@igo2/core';
|
|
29
|
-
import * as
|
|
29
|
+
import * as i1$1 from '@angular/forms';
|
|
30
30
|
import { Validators, FormsModule, ReactiveFormsModule, FormControl } from '@angular/forms';
|
|
31
31
|
import { Observable, BehaviorSubject, Subject, of, merge, ReplaySubject, EMPTY, timer, combineLatest } from 'rxjs';
|
|
32
32
|
import { skip, first, catchError, tap, map, mergeMap, debounceTime, take, filter, buffer, debounce } from 'rxjs/operators';
|
|
33
33
|
import * as olStyle from 'ol/style';
|
|
34
|
-
import * as i1$
|
|
34
|
+
import * as i1$2 from '@igo2/geo';
|
|
35
35
|
import { FeatureDataSource, VectorLayer, ClusterDataSource, moveToOlFeatures, FeatureMotion, IgoFeatureModule } from '@igo2/geo';
|
|
36
36
|
import { downloadContent, ObjectUtils, uuid, Clipboard } from '@igo2/utils';
|
|
37
37
|
import olPoint from 'ol/geom/Point';
|
|
@@ -41,25 +41,25 @@ import olVectorSource from 'ol/source/Vector';
|
|
|
41
41
|
import * as i1 from '@angular/common/http';
|
|
42
42
|
import * as i2 from '@igo2/auth';
|
|
43
43
|
import { IgoAuthModule } from '@igo2/auth';
|
|
44
|
-
import * as
|
|
44
|
+
import * as i14 from '@igo2/common';
|
|
45
45
|
import { IgoSpinnerModule, ActionStore, ActionbarMode, IgoConfirmDialogModule, IgoStopPropagationModule, IgoListModule, IgoKeyValueModule, IgoCollapsibleModule, IgoActionbarModule, getEntityTitle, IgoPanelModule, IgoFlexibleModule } from '@igo2/common';
|
|
46
|
-
import * as i6
|
|
47
|
-
import * as
|
|
46
|
+
import * as i6 from '@ngx-translate/core';
|
|
47
|
+
import * as i14$1 from '@angular/material/autocomplete';
|
|
48
48
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
49
|
-
import * as i1$
|
|
49
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
50
50
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
51
|
-
import * as
|
|
51
|
+
import * as i4$1 from '@angular/material/icon';
|
|
52
52
|
import { MatIconModule } from '@angular/material/icon';
|
|
53
|
-
import * as
|
|
53
|
+
import * as i7$1 from '@angular/material/list';
|
|
54
54
|
import { MatListModule } from '@angular/material/list';
|
|
55
|
-
import * as
|
|
55
|
+
import * as i13$1 from '@angular/material/radio';
|
|
56
56
|
import { MatRadioModule } from '@angular/material/radio';
|
|
57
57
|
import * as olproj from 'ol/proj';
|
|
58
58
|
import * as oleasing from 'ol/easing';
|
|
59
59
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
60
|
-
import * as
|
|
60
|
+
import * as i5$2 from '@angular/material/sidenav';
|
|
61
61
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
62
|
-
import * as i1$
|
|
62
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
63
63
|
|
|
64
64
|
class ExportError extends Error {
|
|
65
65
|
}
|
|
@@ -1021,11 +1021,8 @@ ContextService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ContextSe
|
|
|
1021
1021
|
const _c0$2 = function (a0) { return { size: a0 }; };
|
|
1022
1022
|
function ContextImportExportComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
1023
1023
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1024
|
-
i0.ɵɵelementStart(0, "div");
|
|
1025
|
-
i0.ɵɵ
|
|
1026
|
-
i0.ɵɵelementStart(2, "div", 6);
|
|
1027
|
-
i0.ɵɵelementStart(3, "button", 7);
|
|
1028
|
-
i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return _r2.click(); });
|
|
1024
|
+
i0.ɵɵelementStart(0, "div")(1, "form", 5)(2, "div", 6)(3, "button", 7);
|
|
1025
|
+
i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r2.click()); });
|
|
1029
1026
|
i0.ɵɵpipe(4, "async");
|
|
1030
1027
|
i0.ɵɵtext(5);
|
|
1031
1028
|
i0.ɵɵpipe(6, "translate");
|
|
@@ -1033,23 +1030,16 @@ function ContextImportExportComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1033
1030
|
i0.ɵɵelement(7, "igo-spinner", 8);
|
|
1034
1031
|
i0.ɵɵpipe(8, "async");
|
|
1035
1032
|
i0.ɵɵelementStart(9, "input", 9, 10);
|
|
1036
|
-
i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_input_click_9_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return _r2.value = null; })("change", function ContextImportExportComponent_div_8_Template_input_change_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.importFiles($event.target.files); });
|
|
1037
|
-
i0.ɵɵelementEnd();
|
|
1038
|
-
i0.ɵɵ
|
|
1039
|
-
i0.ɵɵelementEnd();
|
|
1040
|
-
i0.ɵɵelementStart(11, "section", 11);
|
|
1041
|
-
i0.ɵɵelementStart(12, "h4");
|
|
1033
|
+
i0.ɵɵlistener("click", function ContextImportExportComponent_div_8_Template_input_click_9_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r2.value = null); })("change", function ContextImportExportComponent_div_8_Template_input_change_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.importFiles($event.target.files)); });
|
|
1034
|
+
i0.ɵɵelementEnd()()();
|
|
1035
|
+
i0.ɵɵelementStart(11, "section", 11)(12, "h4");
|
|
1042
1036
|
i0.ɵɵtext(13);
|
|
1043
1037
|
i0.ɵɵpipe(14, "translate");
|
|
1044
1038
|
i0.ɵɵelementEnd();
|
|
1045
|
-
i0.ɵɵelementStart(15, "ul");
|
|
1046
|
-
i0.ɵɵelementStart(16, "li");
|
|
1039
|
+
i0.ɵɵelementStart(15, "ul")(16, "li");
|
|
1047
1040
|
i0.ɵɵtext(17);
|
|
1048
1041
|
i0.ɵɵpipe(18, "translate");
|
|
1049
|
-
i0.ɵɵelementEnd();
|
|
1050
|
-
i0.ɵɵelementEnd();
|
|
1051
|
-
i0.ɵɵelementEnd();
|
|
1052
|
-
i0.ɵɵelementEnd();
|
|
1042
|
+
i0.ɵɵelementEnd()()()();
|
|
1053
1043
|
} if (rf & 2) {
|
|
1054
1044
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1055
1045
|
i0.ɵɵadvance(3);
|
|
@@ -1077,44 +1067,33 @@ function ContextImportExportComponent_form_9_mat_option_18_Template(rf, ctx) { i
|
|
|
1077
1067
|
} }
|
|
1078
1068
|
function ContextImportExportComponent_form_9_Template(rf, ctx) { if (rf & 1) {
|
|
1079
1069
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
1080
|
-
i0.ɵɵelementStart(0, "form", 12);
|
|
1081
|
-
i0.ɵɵelementStart(1, "div", 13);
|
|
1082
|
-
i0.ɵɵelementStart(2, "mat-form-field", 14);
|
|
1083
|
-
i0.ɵɵelementStart(3, "mat-label");
|
|
1070
|
+
i0.ɵɵelementStart(0, "form", 12)(1, "div", 13)(2, "mat-form-field", 14)(3, "mat-label");
|
|
1084
1071
|
i0.ɵɵtext(4);
|
|
1085
1072
|
i0.ɵɵpipe(5, "translate");
|
|
1086
1073
|
i0.ɵɵelementEnd();
|
|
1087
1074
|
i0.ɵɵelement(6, "input", 15);
|
|
1088
|
-
i0.ɵɵelementEnd();
|
|
1089
|
-
i0.ɵɵ
|
|
1090
|
-
i0.ɵɵelementStart(7, "div", 13);
|
|
1091
|
-
i0.ɵɵelementStart(8, "mat-form-field");
|
|
1092
|
-
i0.ɵɵelementStart(9, "mat-label");
|
|
1075
|
+
i0.ɵɵelementEnd()();
|
|
1076
|
+
i0.ɵɵelementStart(7, "div", 13)(8, "mat-form-field")(9, "mat-label");
|
|
1093
1077
|
i0.ɵɵtext(10);
|
|
1094
1078
|
i0.ɵɵpipe(11, "translate");
|
|
1095
1079
|
i0.ɵɵelementEnd();
|
|
1096
|
-
i0.ɵɵelementStart(12, "mat-select", 16);
|
|
1097
|
-
i0.ɵɵ
|
|
1098
|
-
i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_mat_option_click_13_listener() { i0.ɵɵrestoreView(_r11); const _r7 = i0.ɵɵreference(14); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.selectAll(_r7); });
|
|
1080
|
+
i0.ɵɵelementStart(12, "mat-select", 16)(13, "mat-option", 17, 18);
|
|
1081
|
+
i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_mat_option_click_13_listener() { i0.ɵɵrestoreView(_r11); const _r7 = i0.ɵɵreference(14); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.selectAll(_r7)); });
|
|
1099
1082
|
i0.ɵɵtext(15);
|
|
1100
1083
|
i0.ɵɵpipe(16, "translate");
|
|
1101
1084
|
i0.ɵɵelementEnd();
|
|
1102
1085
|
i0.ɵɵelement(17, "mat-divider");
|
|
1103
1086
|
i0.ɵɵtemplate(18, ContextImportExportComponent_form_9_mat_option_18_Template, 2, 2, "mat-option", 19);
|
|
1104
|
-
i0.ɵɵelementEnd();
|
|
1105
|
-
i0.ɵɵ
|
|
1106
|
-
i0.ɵɵ
|
|
1107
|
-
i0.ɵɵelementStart(19, "div", 6);
|
|
1108
|
-
i0.ɵɵelementStart(20, "button", 7);
|
|
1109
|
-
i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.handleExportFormSubmit(ctx_r12.form.value); });
|
|
1087
|
+
i0.ɵɵelementEnd()()();
|
|
1088
|
+
i0.ɵɵelementStart(19, "div", 6)(20, "button", 7);
|
|
1089
|
+
i0.ɵɵlistener("click", function ContextImportExportComponent_form_9_Template_button_click_20_listener() { i0.ɵɵrestoreView(_r11); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.handleExportFormSubmit(ctx_r12.form.value)); });
|
|
1110
1090
|
i0.ɵɵpipe(21, "async");
|
|
1111
1091
|
i0.ɵɵtext(22);
|
|
1112
1092
|
i0.ɵɵpipe(23, "translate");
|
|
1113
1093
|
i0.ɵɵelementEnd();
|
|
1114
1094
|
i0.ɵɵelement(24, "igo-spinner", 8);
|
|
1115
1095
|
i0.ɵɵpipe(25, "async");
|
|
1116
|
-
i0.ɵɵelementEnd();
|
|
1117
|
-
i0.ɵɵelementEnd();
|
|
1096
|
+
i0.ɵɵelementEnd()();
|
|
1118
1097
|
} if (rf & 2) {
|
|
1119
1098
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
1120
1099
|
i0.ɵɵproperty("formGroup", ctx_r1.form);
|
|
@@ -1208,10 +1187,9 @@ class ContextImportExportComponent {
|
|
|
1208
1187
|
this.activeImportExport = event.value;
|
|
1209
1188
|
}
|
|
1210
1189
|
}
|
|
1211
|
-
ContextImportExportComponent.ɵfac = function ContextImportExportComponent_Factory(t) { return new (t || ContextImportExportComponent)(i0.ɵɵdirectiveInject(ContextImportService), i0.ɵɵdirectiveInject(ContextExportService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(
|
|
1190
|
+
ContextImportExportComponent.ɵfac = function ContextImportExportComponent_Factory(t) { return new (t || ContextImportExportComponent)(i0.ɵɵdirectiveInject(ContextImportService), i0.ɵɵdirectiveInject(ContextExportService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i1$1.FormBuilder), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(ContextService)); };
|
|
1212
1191
|
ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextImportExportComponent, selectors: [["igo-context-import-export"]], inputs: { map: "map" }, decls: 10, vars: 11, consts: [[1, "import-export-toggle", "mat-typography"], [3, "value", "change"], [3, "value"], [4, "ngIf"], ["class", "igo-form", 3, "formGroup", 4, "ngIf"], [1, "igo-form"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "button", 3, "disabled", "click"], [3, "shown"], ["type", "file", 3, "click", "change"], ["fileInput", ""], [1, "mat-typography"], [1, "igo-form", 3, "formGroup"], [1, "igo-input-container"], [1, "example-full-width"], ["formControlName", "name", "matInput", "", 3, "value"], ["formControlName", "layers", "multiple", ""], [3, "value", "click"], ["e", ""], [3, "value", 4, "ngFor", "ngForOf"]], template: function ContextImportExportComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1213
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
1214
|
-
i0.ɵɵelementStart(1, "mat-button-toggle-group", 1);
|
|
1192
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mat-button-toggle-group", 1);
|
|
1215
1193
|
i0.ɵɵlistener("change", function ContextImportExportComponent_Template_mat_button_toggle_group_change_1_listener($event) { return ctx.onImportExportChange($event); });
|
|
1216
1194
|
i0.ɵɵelementStart(2, "mat-button-toggle", 2);
|
|
1217
1195
|
i0.ɵɵtext(3);
|
|
@@ -1220,9 +1198,7 @@ ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
1220
1198
|
i0.ɵɵelementStart(5, "mat-button-toggle", 2);
|
|
1221
1199
|
i0.ɵɵtext(6);
|
|
1222
1200
|
i0.ɵɵpipe(7, "translate");
|
|
1223
|
-
i0.ɵɵelementEnd();
|
|
1224
|
-
i0.ɵɵelementEnd();
|
|
1225
|
-
i0.ɵɵelementEnd();
|
|
1201
|
+
i0.ɵɵelementEnd()()();
|
|
1226
1202
|
i0.ɵɵtemplate(8, ContextImportExportComponent_div_8_Template, 19, 20, "div", 3);
|
|
1227
1203
|
i0.ɵɵtemplate(9, ContextImportExportComponent_form_9_Template, 26, 21, "form", 4);
|
|
1228
1204
|
} if (rf & 2) {
|
|
@@ -1240,15 +1216,11 @@ ContextImportExportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
1240
1216
|
i0.ɵɵproperty("ngIf", ctx.activeImportExport === "import");
|
|
1241
1217
|
i0.ɵɵadvance(1);
|
|
1242
1218
|
i0.ɵɵproperty("ngIf", ctx.activeImportExport === "export");
|
|
1243
|
-
} },
|
|
1219
|
+
} }, dependencies: [i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.NgForm, i1$1.FormGroupDirective, i1$1.FormControlName, i5.NgForOf, i5.NgIf, i7.MatButton, i8.MatButtonToggleGroup, i8.MatButtonToggle, i9.MatDivider, i4.MatFormField, i4.MatLabel, i11.MatSelect, i12.MatOption, i5$1.MatInput, i14.SpinnerComponent, i5.AsyncPipe, i6.TranslatePipe], styles: [".import-export-toggle[_ngcontent-%COMP%]{padding:10px;text-align:center}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%]{width:100%}.import-export-toggle[_ngcontent-%COMP%] mat-button-toggle-group[_ngcontent-%COMP%] mat-button-toggle[_ngcontent-%COMP%]{width:50%}.igo-input-container[_ngcontent-%COMP%]{padding:10px}.igo-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}h4[_ngcontent-%COMP%]{padding:0 5px}.igo-form[_ngcontent-%COMP%]{padding:15px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}igo-spinner[_ngcontent-%COMP%]{position:absolute;padding-left:10px}"] });
|
|
1244
1220
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextImportExportComponent, [{
|
|
1245
1221
|
type: Component,
|
|
1246
|
-
args: [{
|
|
1247
|
-
|
|
1248
|
-
templateUrl: './context-import-export.component.html',
|
|
1249
|
-
styleUrls: ['./context-import-export.component.scss']
|
|
1250
|
-
}]
|
|
1251
|
-
}], function () { return [{ type: ContextImportService }, { type: ContextExportService }, { type: i3.LanguageService }, { type: i3.MessageService }, { type: i4.FormBuilder }, { type: i3.ConfigService }, { type: ContextService }]; }, { map: [{
|
|
1222
|
+
args: [{ selector: 'igo-context-import-export', template: "<div class=\"import-export-toggle mat-typography\">\r\n <mat-button-toggle-group\r\n [value]=\"activeImportExport\"\r\n (change)=\"onImportExportChange($event)\">\r\n <mat-button-toggle [value]=\"'import'\">\r\n {{'igo.geo.importExportForm.importTabTitle' | translate}}\r\n </mat-button-toggle>\r\n <mat-button-toggle [value]=\"'export'\">\r\n {{'igo.geo.importExportForm.exportTabTitle' | translate}}\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n</div>\r\n\r\n<div *ngIf=\"activeImportExport === 'import'\">\r\n <form class=\"igo-form\">\r\n <div class=\"igo-form-button-group\">\r\n <button mat-raised-button type=\"button\" (click)=\"fileInput.click()\" [disabled]=\"loading$ | async\">\r\n {{'igo.geo.importExportForm.importButton' | translate}}\r\n </button>\r\n <igo-spinner [shown]=\"loading$ | async\"></igo-spinner>\r\n <input\r\n #fileInput\r\n type=\"file\"\r\n [style.display]=\"'none'\"\r\n (click)=\"fileInput.value = null\"\r\n (change)=\"importFiles($event.target.files)\">\r\n </div>\r\n </form>\r\n <section class=\"mat-typography\">\r\n <h4>{{'igo.geo.importExportForm.importClarifications' | translate}}</h4>\r\n <ul>\r\n <li>{{'igo.geo.importExportForm.importSizeMax' | translate: {size: fileSizeMb} }}</li>\r\n </ul>\r\n </section>\r\n</div>\r\n\r\n\r\n<form class=\"igo-form\" *ngIf=\"activeImportExport === 'export'\" [formGroup]=\"form\">\r\n <div class=\"igo-input-container\">\r\n <mat-form-field class=\"example-full-width\">\r\n <mat-label>{{'igo.context.contextImportExport.export.exportContextName' | translate}}</mat-label>\r\n <input formControlName=\"name\" matInput [value]=\"\">\r\n </mat-form-field>\r\n </div>\r\n <div class=\"igo-input-container\">\r\n <mat-form-field>\r\n <mat-label>{{'igo.context.contextImportExport.export.exportPlaceHolder' | translate}}</mat-label>\r\n <mat-select formControlName=\"layers\" multiple>\r\n <mat-option [value]=\"1\" (click)=\"selectAll(e)\" #e>\r\n {{'igo.context.contextImportExport.export.exportSelectAll' | translate}}\r\n </mat-option>\r\n <mat-divider></mat-divider>\r\n <mat-option *ngFor=\"let layer of userControlledLayerList\" [value]=\"layer\">{{layer.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"button\"\r\n [disabled]=\"!form.valid || (loading$ | async)\"\r\n (click)=\"handleExportFormSubmit(form.value)\">\r\n {{'igo.geo.importExportForm.exportButton' | translate}}\r\n </button>\r\n <igo-spinner [shown]=\"loading$ | async\"></igo-spinner>\r\n </div>\r\n</form>\r\n", styles: [".import-export-toggle{padding:10px;text-align:center}.import-export-toggle mat-button-toggle-group{width:100%}.import-export-toggle mat-button-toggle-group mat-button-toggle{width:50%}.igo-input-container{padding:10px}.igo-input-container mat-form-field{width:100%}h4{padding:0 5px}.igo-form{padding:15px 5px}.igo-form-button-group{text-align:center;padding-top:10px}igo-spinner{position:absolute;padding-left:10px}\n"] }]
|
|
1223
|
+
}], function () { return [{ type: ContextImportService }, { type: ContextExportService }, { type: i3.LanguageService }, { type: i3.MessageService }, { type: i1$1.FormBuilder }, { type: i3.ConfigService }, { type: ContextService }]; }, { map: [{
|
|
1252
1224
|
type: Input
|
|
1253
1225
|
}] }); })();
|
|
1254
1226
|
|
|
@@ -1261,23 +1233,21 @@ class IgoContextImportExportModule {
|
|
|
1261
1233
|
}
|
|
1262
1234
|
IgoContextImportExportModule.ɵfac = function IgoContextImportExportModule_Factory(t) { return new (t || IgoContextImportExportModule)(); };
|
|
1263
1235
|
IgoContextImportExportModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextImportExportModule });
|
|
1264
|
-
IgoContextImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
MatTooltipModule,
|
|
1280
|
-
]] });
|
|
1236
|
+
IgoContextImportExportModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FormsModule,
|
|
1237
|
+
ReactiveFormsModule,
|
|
1238
|
+
CommonModule,
|
|
1239
|
+
MatButtonModule,
|
|
1240
|
+
MatButtonToggleModule,
|
|
1241
|
+
MatDividerModule,
|
|
1242
|
+
MatTabsModule,
|
|
1243
|
+
MatSelectModule,
|
|
1244
|
+
MatOptionModule,
|
|
1245
|
+
MatFormFieldModule,
|
|
1246
|
+
MatInputModule,
|
|
1247
|
+
MatCheckboxModule,
|
|
1248
|
+
IgoLanguageModule,
|
|
1249
|
+
IgoSpinnerModule,
|
|
1250
|
+
MatTooltipModule] });
|
|
1281
1251
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextImportExportModule, [{
|
|
1282
1252
|
type: NgModule,
|
|
1283
1253
|
args: [{
|
|
@@ -1377,14 +1347,14 @@ class MapContextDirective {
|
|
|
1377
1347
|
}
|
|
1378
1348
|
}
|
|
1379
1349
|
}
|
|
1380
|
-
MapContextDirective.ɵfac = function MapContextDirective_Factory(t) { return new (t || MapContextDirective)(i0.ɵɵdirectiveInject(i1$
|
|
1350
|
+
MapContextDirective.ɵfac = function MapContextDirective_Factory(t) { return new (t || MapContextDirective)(i0.ɵɵdirectiveInject(i1$2.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.MediaService)); };
|
|
1381
1351
|
MapContextDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MapContextDirective, selectors: [["", "igoMapContext", ""]] });
|
|
1382
1352
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MapContextDirective, [{
|
|
1383
1353
|
type: Directive,
|
|
1384
1354
|
args: [{
|
|
1385
1355
|
selector: '[igoMapContext]'
|
|
1386
1356
|
}]
|
|
1387
|
-
}], function () { return [{ type: i1$
|
|
1357
|
+
}], function () { return [{ type: i1$2.MapBrowserComponent }, { type: ContextService }, { type: i3.MediaService }]; }, null); })();
|
|
1388
1358
|
|
|
1389
1359
|
class LayerContextDirective {
|
|
1390
1360
|
constructor(component, contextService, layerService, configService, styleListService, styleService, route) {
|
|
@@ -1510,14 +1480,14 @@ class LayerContextDirective {
|
|
|
1510
1480
|
return visible;
|
|
1511
1481
|
}
|
|
1512
1482
|
}
|
|
1513
|
-
LayerContextDirective.ɵfac = function LayerContextDirective_Factory(t) { return new (t || LayerContextDirective)(i0.ɵɵdirectiveInject(i1$
|
|
1483
|
+
LayerContextDirective.ɵfac = function LayerContextDirective_Factory(t) { return new (t || LayerContextDirective)(i0.ɵɵdirectiveInject(i1$2.MapBrowserComponent), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$2.LayerService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i1$2.StyleListService), i0.ɵɵdirectiveInject(i1$2.StyleService), i0.ɵɵdirectiveInject(i3.RouteService, 8)); };
|
|
1514
1484
|
LayerContextDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LayerContextDirective, selectors: [["", "igoLayerContext", ""]], inputs: { removeLayersOnContextChange: "removeLayersOnContextChange" } });
|
|
1515
1485
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayerContextDirective, [{
|
|
1516
1486
|
type: Directive,
|
|
1517
1487
|
args: [{
|
|
1518
1488
|
selector: '[igoLayerContext]'
|
|
1519
1489
|
}]
|
|
1520
|
-
}], function () { return [{ type: i1$
|
|
1490
|
+
}], function () { return [{ type: i1$2.MapBrowserComponent }, { type: ContextService }, { type: i1$2.LayerService }, { type: i3.ConfigService }, { type: i1$2.StyleListService }, { type: i1$2.StyleService }, { type: i3.RouteService, decorators: [{
|
|
1521
1491
|
type: Optional
|
|
1522
1492
|
}] }]; }, { removeLayersOnContextChange: [{
|
|
1523
1493
|
type: Input
|
|
@@ -1535,22 +1505,17 @@ class BookmarkDialogComponent {
|
|
|
1535
1505
|
this.dialogRef = dialogRef;
|
|
1536
1506
|
}
|
|
1537
1507
|
}
|
|
1538
|
-
BookmarkDialogComponent.ɵfac = function BookmarkDialogComponent_Factory(t) { return new (t || BookmarkDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
1508
|
+
BookmarkDialogComponent.ɵfac = function BookmarkDialogComponent_Factory(t) { return new (t || BookmarkDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
1539
1509
|
BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BookmarkDialogComponent, selectors: [["igo-bookmark-dialog"]], decls: 14, vars: 14, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", "", 1, "mat-typography"], ["matInput", "", "required", "", "autocomplete", "off", "maxlength", "128", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-dialog-actions", ""], ["mat-button", "", "color", "primary", 3, "disabled", "click"], ["mat-button", "", 3, "click"]], template: function BookmarkDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1540
1510
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
1541
1511
|
i0.ɵɵtext(1);
|
|
1542
1512
|
i0.ɵɵpipe(2, "translate");
|
|
1543
1513
|
i0.ɵɵelementEnd();
|
|
1544
|
-
i0.ɵɵelementStart(3, "div", 1);
|
|
1545
|
-
i0.ɵɵelementStart(4, "mat-form-field");
|
|
1546
|
-
i0.ɵɵelementStart(5, "input", 2);
|
|
1514
|
+
i0.ɵɵelementStart(3, "div", 1)(4, "mat-form-field")(5, "input", 2);
|
|
1547
1515
|
i0.ɵɵlistener("ngModelChange", function BookmarkDialogComponent_Template_input_ngModelChange_5_listener($event) { return ctx.title = $event; });
|
|
1548
1516
|
i0.ɵɵpipe(6, "translate");
|
|
1549
|
-
i0.ɵɵelementEnd();
|
|
1550
|
-
i0.ɵɵ
|
|
1551
|
-
i0.ɵɵelementEnd();
|
|
1552
|
-
i0.ɵɵelementStart(7, "div", 3);
|
|
1553
|
-
i0.ɵɵelementStart(8, "button", 4);
|
|
1517
|
+
i0.ɵɵelementEnd()()();
|
|
1518
|
+
i0.ɵɵelementStart(7, "div", 3)(8, "button", 4);
|
|
1554
1519
|
i0.ɵɵlistener("click", function BookmarkDialogComponent_Template_button_click_8_listener() { return ctx.dialogRef.close(ctx.title); });
|
|
1555
1520
|
i0.ɵɵtext(9);
|
|
1556
1521
|
i0.ɵɵpipe(10, "translate");
|
|
@@ -1559,8 +1524,7 @@ BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Boo
|
|
|
1559
1524
|
i0.ɵɵlistener("click", function BookmarkDialogComponent_Template_button_click_11_listener() { return ctx.dialogRef.close(false); });
|
|
1560
1525
|
i0.ɵɵtext(12);
|
|
1561
1526
|
i0.ɵɵpipe(13, "translate");
|
|
1562
|
-
i0.ɵɵelementEnd();
|
|
1563
|
-
i0.ɵɵelementEnd();
|
|
1527
|
+
i0.ɵɵelementEnd()();
|
|
1564
1528
|
} if (rf & 2) {
|
|
1565
1529
|
i0.ɵɵadvance(1);
|
|
1566
1530
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 6, "igo.context.bookmarkButton.dialog.title"));
|
|
@@ -1572,14 +1536,11 @@ BookmarkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Boo
|
|
|
1572
1536
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.common.confirmDialog.confirmBtn"), " ");
|
|
1573
1537
|
i0.ɵɵadvance(3);
|
|
1574
1538
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 12, "igo.common.confirmDialog.cancelBtn"), " ");
|
|
1575
|
-
} },
|
|
1539
|
+
} }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.NgModel, i7.MatButton, i4.MatFormField, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i5$1.MatInput, i6.TranslatePipe], encapsulation: 2 });
|
|
1576
1540
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BookmarkDialogComponent, [{
|
|
1577
1541
|
type: Component,
|
|
1578
|
-
args: [{
|
|
1579
|
-
|
|
1580
|
-
templateUrl: './bookmark-dialog.component.html'
|
|
1581
|
-
}]
|
|
1582
|
-
}], function () { return [{ type: i1$2.MatDialogRef }]; }, null); })();
|
|
1542
|
+
args: [{ selector: 'igo-bookmark-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{ 'igo.context.bookmarkButton.dialog.title' |\u00A0translate }}</h1>\r\n<div mat-dialog-content class=\"mat-typography\">\r\n <mat-form-field>\r\n <input matInput required autocomplete=\"off\"\r\n maxlength=\"128\"\r\n [placeholder]=\"'igo.context.bookmarkButton.dialog.placeholder' |\u00A0translate\"\r\n [(ngModel)]=\"title\">\r\n </mat-form-field>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button color=\"primary\"\r\n [disabled]=\"!title\"\r\n (click)=\"dialogRef.close(title)\">\r\n {{'igo.common.confirmDialog.confirmBtn' | translate}}\r\n </button>\r\n <button mat-button\r\n (click)=\"dialogRef.close(false)\">\r\n {{'igo.common.confirmDialog.cancelBtn' |\u00A0translate}}\r\n </button>\r\n</div>\r\n" }]
|
|
1543
|
+
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
1583
1544
|
|
|
1584
1545
|
function ContextItemComponent_button_1_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
1585
1546
|
i0.ɵɵelement(0, "mat-icon", 7);
|
|
@@ -1596,7 +1557,7 @@ function ContextItemComponent_button_1_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
1596
1557
|
function ContextItemComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1597
1558
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1598
1559
|
i0.ɵɵelementStart(0, "button", 4);
|
|
1599
|
-
i0.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.favoriteClick(ctx_r5.context); });
|
|
1560
|
+
i0.ɵɵlistener("click", function ContextItemComponent_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.favoriteClick(ctx_r5.context)); });
|
|
1600
1561
|
i0.ɵɵpipe(1, "translate");
|
|
1601
1562
|
i0.ɵɵtemplate(2, ContextItemComponent_button_1_mat_icon_2_Template, 1, 1, "mat-icon", 5);
|
|
1602
1563
|
i0.ɵɵtemplate(3, ContextItemComponent_button_1_img_3_Template, 1, 1, "img", 6);
|
|
@@ -1612,7 +1573,7 @@ function ContextItemComponent_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1612
1573
|
function ContextItemComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1613
1574
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
1614
1575
|
i0.ɵɵelementStart(0, "button", 4);
|
|
1615
|
-
i0.ɵɵlistener("click", function ContextItemComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.favoriteClick(ctx_r7.context); });
|
|
1576
|
+
i0.ɵɵlistener("click", function ContextItemComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.favoriteClick(ctx_r7.context)); });
|
|
1616
1577
|
i0.ɵɵpipe(1, "translate");
|
|
1617
1578
|
i0.ɵɵelement(2, "mat-icon", 9);
|
|
1618
1579
|
i0.ɵɵelementEnd();
|
|
@@ -1623,7 +1584,7 @@ function ContextItemComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1623
1584
|
function ContextItemComponent_div_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
1624
1585
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
1625
1586
|
i0.ɵɵelementStart(0, "button", 21);
|
|
1626
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.save.emit(ctx_r17.context); });
|
|
1587
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.save.emit(ctx_r17.context)); });
|
|
1627
1588
|
i0.ɵɵpipe(1, "translate");
|
|
1628
1589
|
i0.ɵɵelement(2, "mat-icon", 22);
|
|
1629
1590
|
i0.ɵɵelementEnd();
|
|
@@ -1634,7 +1595,7 @@ function ContextItemComponent_div_5_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1634
1595
|
function ContextItemComponent_div_5_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
1635
1596
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
1636
1597
|
i0.ɵɵelementStart(0, "button", 23);
|
|
1637
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.managePermissions.emit(ctx_r19.context); });
|
|
1598
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r19.managePermissions.emit(ctx_r19.context)); });
|
|
1638
1599
|
i0.ɵɵpipe(1, "translate");
|
|
1639
1600
|
i0.ɵɵelement(2, "mat-icon", 24);
|
|
1640
1601
|
i0.ɵɵelementEnd();
|
|
@@ -1645,7 +1606,7 @@ function ContextItemComponent_div_5_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1645
1606
|
function ContextItemComponent_div_5_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
1646
1607
|
const _r22 = i0.ɵɵgetCurrentView();
|
|
1647
1608
|
i0.ɵɵelementStart(0, "button", 25);
|
|
1648
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.clone.emit(ctx_r21.context); });
|
|
1609
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.clone.emit(ctx_r21.context)); });
|
|
1649
1610
|
i0.ɵɵpipe(1, "translate");
|
|
1650
1611
|
i0.ɵɵelement(2, "mat-icon", 26);
|
|
1651
1612
|
i0.ɵɵelementEnd();
|
|
@@ -1656,7 +1617,7 @@ function ContextItemComponent_div_5_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
1656
1617
|
function ContextItemComponent_div_5_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
1657
1618
|
const _r24 = i0.ɵɵgetCurrentView();
|
|
1658
1619
|
i0.ɵɵelementStart(0, "button", 27);
|
|
1659
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.edit.emit(ctx_r23.context); });
|
|
1620
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.edit.emit(ctx_r23.context)); });
|
|
1660
1621
|
i0.ɵɵpipe(1, "translate");
|
|
1661
1622
|
i0.ɵɵelement(2, "mat-icon", 28);
|
|
1662
1623
|
i0.ɵɵelementEnd();
|
|
@@ -1667,7 +1628,7 @@ function ContextItemComponent_div_5_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
1667
1628
|
function ContextItemComponent_div_5_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
1668
1629
|
const _r26 = i0.ɵɵgetCurrentView();
|
|
1669
1630
|
i0.ɵɵelementStart(0, "button", 29);
|
|
1670
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.hide.emit(ctx_r25.context); });
|
|
1631
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r25.hide.emit(ctx_r25.context)); });
|
|
1671
1632
|
i0.ɵɵpipe(1, "translate");
|
|
1672
1633
|
i0.ɵɵelement(2, "mat-icon", 30);
|
|
1673
1634
|
i0.ɵɵelementEnd();
|
|
@@ -1678,7 +1639,7 @@ function ContextItemComponent_div_5_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1678
1639
|
function ContextItemComponent_div_5_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
1679
1640
|
const _r28 = i0.ɵɵgetCurrentView();
|
|
1680
1641
|
i0.ɵɵelementStart(0, "button", 29);
|
|
1681
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.show.emit(ctx_r27.context); });
|
|
1642
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r27.show.emit(ctx_r27.context)); });
|
|
1682
1643
|
i0.ɵɵpipe(1, "translate");
|
|
1683
1644
|
i0.ɵɵelement(2, "mat-icon", 31);
|
|
1684
1645
|
i0.ɵɵelementEnd();
|
|
@@ -1689,7 +1650,7 @@ function ContextItemComponent_div_5_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1689
1650
|
function ContextItemComponent_div_5_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
1690
1651
|
const _r30 = i0.ɵɵgetCurrentView();
|
|
1691
1652
|
i0.ɵɵelementStart(0, "button", 32);
|
|
1692
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.delete.emit(ctx_r29.context); });
|
|
1653
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r29.delete.emit(ctx_r29.context)); });
|
|
1693
1654
|
i0.ɵɵpipe(1, "translate");
|
|
1694
1655
|
i0.ɵɵelement(2, "mat-icon", 33);
|
|
1695
1656
|
i0.ɵɵelementEnd();
|
|
@@ -1709,10 +1670,9 @@ function ContextItemComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
1709
1670
|
i0.ɵɵtemplate(9, ContextItemComponent_div_5_button_9_Template, 3, 3, "button", 18);
|
|
1710
1671
|
i0.ɵɵelementEnd();
|
|
1711
1672
|
i0.ɵɵelementStart(10, "button", 19);
|
|
1712
|
-
i0.ɵɵlistener("click", function ContextItemComponent_div_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r32); const ctx_r31 = i0.ɵɵnextContext(); return ctx_r31.collapsed = !ctx_r31.collapsed; });
|
|
1673
|
+
i0.ɵɵlistener("click", function ContextItemComponent_div_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r32); const ctx_r31 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r31.collapsed = !ctx_r31.collapsed); });
|
|
1713
1674
|
i0.ɵɵelement(11, "mat-icon", 20);
|
|
1714
|
-
i0.ɵɵelementEnd();
|
|
1715
|
-
i0.ɵɵelementEnd();
|
|
1675
|
+
i0.ɵɵelementEnd()();
|
|
1716
1676
|
} if (rf & 2) {
|
|
1717
1677
|
const _r10 = i0.ɵɵreference(3);
|
|
1718
1678
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -1782,15 +1742,10 @@ ContextItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
1782
1742
|
i0.ɵɵtextInterpolate(ctx.context.title);
|
|
1783
1743
|
i0.ɵɵadvance(1);
|
|
1784
1744
|
i0.ɵɵproperty("ngIf", ctx.auth.authenticated);
|
|
1785
|
-
} },
|
|
1745
|
+
} }, dependencies: [i5.NgClass, i5.NgIf, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i7$1.MatListItem, i7$1.MatListAvatarCssMatStyler, i12.MatLine, i14.CollapseDirective, i14.StopPropagationDirective, i6.TranslatePipe], styles: ["[_nghost-%COMP%]{overflow:hidden}.igo-actions-container[_ngcontent-%COMP%]{flex-shrink:0}.igo-actions-expand-container[_ngcontent-%COMP%]{display:inline-flex}mat-list-item[_ngcontent-%COMP%] .mat-list-item-content .mat-list-text{padding:0}mat-icon.disabled[_ngcontent-%COMP%]{color:#00000061}mat-list-item.mat-list-item-light[_ngcontent-%COMP%] .mat-list-item-content{color:#969696}"], changeDetection: 0 });
|
|
1786
1746
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextItemComponent, [{
|
|
1787
1747
|
type: Component,
|
|
1788
|
-
args: [{
|
|
1789
|
-
selector: 'igo-context-item',
|
|
1790
|
-
templateUrl: './context-item.component.html',
|
|
1791
|
-
styleUrls: ['./context-item.component.scss'],
|
|
1792
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1793
|
-
}]
|
|
1748
|
+
args: [{ selector: 'igo-context-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-list-item\r\n class=\"mat-list-item\"\r\n [ngClass]=\"{'mat-list-item-light': hidden}\">\r\n <button mat-list-avatar\r\n *ngIf=\"auth.authenticated\"\r\n mat-icon-button\r\n igoStopPropagation\r\n [matTooltip]=\"auth.authenticated ? ('igo.context.contextManager.favorite' | translate) : ''\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"default ? 'primary' : 'default'\"\r\n (click)=\"favoriteClick(context)\">\r\n <mat-icon *ngIf=\"!context.iconImage\" svgIcon=\"{{context.icon ? context.icon : context.scope === 'public' ? 'earth' : 'star'}}\"></mat-icon>\r\n <img *ngIf=\"context.iconImage\" [src]=\"context.iconImage\">\r\n </button>\r\n <button mat-list-avatar\r\n *ngIf=\"!auth.authenticated && showFavorite\"\r\n mat-icon-button\r\n igoStopPropagation\r\n [matTooltip]=\"'igo.context.contextManager.favorite' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"default ? 'primary' : 'default'\"\r\n (click)=\"favoriteClick(context)\">\r\n <mat-icon svgIcon=\"star\"></mat-icon>\r\n </button>\r\n <h4 matLine>{{context.title}}</h4>\r\n\r\n <div *ngIf=\"auth.authenticated\"\r\n igoStopPropagation\r\n class=\"igo-actions-container\">\r\n\r\n <button *ngIf=\"collapsed && selected && (context.permission === typePermission[typePermission.write] || context.imported)\"\r\n class=\"save-button\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.save' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"save.emit(context)\">\r\n <mat-icon svgIcon=\"content-save\"></mat-icon>\r\n </button>\r\n\r\n <div #actions class=\"igo-actions-expand-container\">\r\n\r\n <button *ngIf=\"canShare && !context.imported\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.managePermissions' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"managePermissions.emit(context)\">\r\n <mat-icon svgIcon=\"account-arrow-right\"></mat-icon>\r\n </button>\r\n\r\n <!--button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.manageTools' | translate\"\r\n [color]=\"color\"\r\n (click)=\"manageTools.emit(context)\">\r\n <mat-icon svgIcon=\"widgets\"></mat-icon>\r\n </button-->\r\n\r\n <button *ngIf=\"!context.imported\"\r\n class=\"clone-button\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.clone' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [color]=\"color\"\r\n (click)=\"clone.emit(context)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.permission === typePermission[typePermission.write] && !context.imported\"\r\n class=\"edit-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.edit' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"edit.emit(context)\">\r\n <mat-icon svgIcon=\"pencil\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"!context.hidden && !context.imported\"\r\n class=\"hide-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.hide' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"hide.emit(context)\">\r\n <mat-icon svgIcon=\"eye\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.hidden && !context.imported\"\r\n class=\"hide-button\"\r\n mat-icon-button\r\n [color]=\"color\"\r\n [matTooltip]=\"'igo.context.contextManager.show' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"show.emit(context)\">\r\n <mat-icon svgIcon=\"eye-off\"></mat-icon>\r\n </button>\r\n\r\n <button *ngIf=\"context.permission === typePermission[typePermission.write] || context.imported\"\r\n class=\"delete-button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n [matTooltip]=\"'igo.context.contextManager.delete' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"delete.emit(context)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </div>\r\n\r\n <button\r\n class=\"actions-button\"\r\n mat-icon-button\r\n igoCollapse\r\n [color]=\"color\"\r\n [target]=\"actions\"\r\n [collapsed]=collapsed\r\n (click)=\"collapsed = !collapsed\">\r\n <mat-icon svgIcon=\"dots-horizontal\"></mat-icon>\r\n </button>\r\n\r\n </div>\r\n\r\n</mat-list-item>\r\n", styles: [":host{overflow:hidden}.igo-actions-container{flex-shrink:0}.igo-actions-expand-container{display:inline-flex}mat-list-item ::ng-deep .mat-list-item-content .mat-list-text{padding:0}mat-icon.disabled{color:#00000061}mat-list-item.mat-list-item-light ::ng-deep .mat-list-item-content{color:#969696}\n"] }]
|
|
1794
1749
|
}], function () { return [{ type: i2.AuthService }, { type: i3.StorageService }]; }, { showFavorite: [{
|
|
1795
1750
|
type: Input
|
|
1796
1751
|
}], context: [{
|
|
@@ -1822,15 +1777,14 @@ ContextItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
1822
1777
|
function ContextListComponent_mat_form_field_1_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
1823
1778
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
1824
1779
|
i0.ɵɵelementStart(0, "button", 14);
|
|
1825
|
-
i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_1_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.clearFilter(); });
|
|
1780
|
+
i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_1_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.clearFilter()); });
|
|
1826
1781
|
i0.ɵɵelement(1, "mat-icon", 15);
|
|
1827
1782
|
i0.ɵɵelementEnd();
|
|
1828
1783
|
} }
|
|
1829
1784
|
function ContextListComponent_mat_form_field_1_Template(rf, ctx) { if (rf & 1) {
|
|
1830
1785
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
1831
|
-
i0.ɵɵelementStart(0, "mat-form-field", 11);
|
|
1832
|
-
i0.ɵɵ
|
|
1833
|
-
i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.term = $event; });
|
|
1786
|
+
i0.ɵɵelementStart(0, "mat-form-field", 11)(1, "input", 12);
|
|
1787
|
+
i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_1_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.term = $event); });
|
|
1834
1788
|
i0.ɵɵpipe(2, "translate");
|
|
1835
1789
|
i0.ɵɵelementEnd();
|
|
1836
1790
|
i0.ɵɵtemplate(3, ContextListComponent_mat_form_field_1_button_3_Template, 2, 0, "button", 13);
|
|
@@ -1846,7 +1800,7 @@ function ContextListComponent_mat_form_field_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1846
1800
|
function ContextListComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1847
1801
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
1848
1802
|
i0.ɵɵelementStart(0, "button", 16);
|
|
1849
|
-
i0.ɵɵlistener("click", function ContextListComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.toggleSort(true); });
|
|
1803
|
+
i0.ɵɵlistener("click", function ContextListComponent_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.toggleSort(true)); });
|
|
1850
1804
|
i0.ɵɵpipe(1, "translate");
|
|
1851
1805
|
i0.ɵɵelement(2, "mat-icon", 17);
|
|
1852
1806
|
i0.ɵɵelementEnd();
|
|
@@ -1856,7 +1810,7 @@ function ContextListComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1856
1810
|
function ContextListComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
1857
1811
|
const _r16 = i0.ɵɵgetCurrentView();
|
|
1858
1812
|
i0.ɵɵelementStart(0, "button", 16);
|
|
1859
|
-
i0.ɵɵlistener("click", function ContextListComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.toggleSort(false); });
|
|
1813
|
+
i0.ɵɵlistener("click", function ContextListComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.toggleSort(false)); });
|
|
1860
1814
|
i0.ɵɵpipe(1, "translate");
|
|
1861
1815
|
i0.ɵɵelement(2, "mat-icon", 18);
|
|
1862
1816
|
i0.ɵɵelementEnd();
|
|
@@ -1902,7 +1856,7 @@ function ContextListComponent_ng_container_8_button_4_Template(rf, ctx) { if (rf
|
|
|
1902
1856
|
function ContextListComponent_ng_container_8_mat_checkbox_7_Template(rf, ctx) { if (rf & 1) {
|
|
1903
1857
|
const _r27 = i0.ɵɵgetCurrentView();
|
|
1904
1858
|
i0.ɵɵelementStart(0, "mat-checkbox", 8);
|
|
1905
|
-
i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_click_0_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const child_r24 = restoredCtx.$implicit; const user_r17 = i0.ɵɵnextContext().$implicit; const ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.userSelection(child_r24, user_r17); });
|
|
1859
|
+
i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_click_0_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_mat_checkbox_7_Template_mat_checkbox_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const child_r24 = restoredCtx.$implicit; const user_r17 = i0.ɵɵnextContext().$implicit; const ctx_r26 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r26.userSelection(child_r24, user_r17)); });
|
|
1906
1860
|
i0.ɵɵtext(1);
|
|
1907
1861
|
i0.ɵɵelementEnd();
|
|
1908
1862
|
} if (rf & 2) {
|
|
@@ -1915,9 +1869,8 @@ function ContextListComponent_ng_container_8_mat_checkbox_7_Template(rf, ctx) {
|
|
|
1915
1869
|
function ContextListComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
1916
1870
|
const _r31 = i0.ɵɵgetCurrentView();
|
|
1917
1871
|
i0.ɵɵelementContainerStart(0);
|
|
1918
|
-
i0.ɵɵelementStart(1, "span", 7);
|
|
1919
|
-
i0.ɵɵ
|
|
1920
|
-
i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_Template_mat_checkbox_click_2_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_Template_mat_checkbox_change_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r31); const user_r17 = restoredCtx.$implicit; const ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.userSelection(user_r17); });
|
|
1872
|
+
i0.ɵɵelementStart(1, "span", 7)(2, "mat-checkbox", 22);
|
|
1873
|
+
i0.ɵɵlistener("click", function ContextListComponent_ng_container_8_Template_mat_checkbox_click_2_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_8_Template_mat_checkbox_change_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r31); const user_r17 = restoredCtx.$implicit; const ctx_r30 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r30.userSelection(user_r17)); });
|
|
1921
1874
|
i0.ɵɵelementEnd();
|
|
1922
1875
|
i0.ɵɵtemplate(3, ContextListComponent_ng_container_8_button_3_Template, 2, 2, "button", 23);
|
|
1923
1876
|
i0.ɵɵtemplate(4, ContextListComponent_ng_container_8_button_4_Template, 2, 1, "button", 24);
|
|
@@ -1941,7 +1894,7 @@ function ContextListComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
1941
1894
|
function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
1942
1895
|
const _r38 = i0.ɵɵgetCurrentView();
|
|
1943
1896
|
i0.ɵɵelementStart(0, "igo-context-item", 31);
|
|
1944
|
-
i0.ɵɵlistener("edit", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_edit_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.edit.emit(context_r36); })("delete", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_delete_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r39 = i0.ɵɵnextContext(3); return ctx_r39.delete.emit(context_r36); })("clone", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_clone_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.clone.emit(context_r36); })("save", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_save_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(3); return ctx_r41.save.emit(context_r36); })("hide", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_hide_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r42 = i0.ɵɵnextContext(3); return ctx_r42.hideContext(context_r36); })("show", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_show_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r43 = i0.ɵɵnextContext(3); return ctx_r43.showContext(context_r36); })("favorite", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r44 = i0.ɵɵnextContext(3); return ctx_r44.favorite.emit(context_r36); })("manageTools", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_manageTools_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r45 = i0.ɵɵnextContext(3); return ctx_r45.manageTools.emit(context_r36); })("managePermissions", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_managePermissions_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(3); return ctx_r46.managePermissions.emit(context_r36); })("select", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(3); return ctx_r47.select.emit(context_r36); })("unselect", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r48 = i0.ɵɵnextContext(3); return ctx_r48.unselect.emit(context_r36); });
|
|
1897
|
+
i0.ɵɵlistener("edit", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_edit_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r37 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r37.edit.emit(context_r36)); })("delete", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_delete_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r39 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r39.delete.emit(context_r36)); })("clone", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_clone_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r40 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r40.clone.emit(context_r36)); })("save", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_save_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r41.save.emit(context_r36)); })("hide", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_hide_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r42 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r42.hideContext(context_r36)); })("show", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_show_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r43 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r43.showContext(context_r36)); })("favorite", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r44 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r44.favorite.emit(context_r36)); })("manageTools", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_manageTools_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r45 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r45.manageTools.emit(context_r36)); })("managePermissions", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_managePermissions_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r46.managePermissions.emit(context_r36)); })("select", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r47.select.emit(context_r36)); })("unselect", function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r38); const context_r36 = restoredCtx.$implicit; const ctx_r48 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r48.unselect.emit(context_r36)); });
|
|
1945
1898
|
i0.ɵɵelementEnd();
|
|
1946
1899
|
} if (rf & 2) {
|
|
1947
1900
|
const context_r36 = ctx.$implicit;
|
|
@@ -1951,7 +1904,7 @@ function ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Tem
|
|
|
1951
1904
|
function ContextListComponent_ng_template_14_igo_collapsible_0_Template(rf, ctx) { if (rf & 1) {
|
|
1952
1905
|
const _r50 = i0.ɵɵgetCurrentView();
|
|
1953
1906
|
i0.ɵɵelementStart(0, "igo-collapsible", 30);
|
|
1954
|
-
i0.ɵɵlistener("toggle", function ContextListComponent_ng_template_14_igo_collapsible_0_Template_igo_collapsible_toggle_0_listener($event) { i0.ɵɵrestoreView(_r50); const groupContexts_r32 = i0.ɵɵnextContext().$implicit; const ctx_r49 = i0.ɵɵnextContext(); return (ctx_r49.collapsed[ctx_r49.titleMapping[groupContexts_r32.key]] = $event); });
|
|
1907
|
+
i0.ɵɵlistener("toggle", function ContextListComponent_ng_template_14_igo_collapsible_0_Template_igo_collapsible_toggle_0_listener($event) { i0.ɵɵrestoreView(_r50); const groupContexts_r32 = i0.ɵɵnextContext().$implicit; const ctx_r49 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r49.collapsed[ctx_r49.titleMapping[groupContexts_r32.key]] = $event)); });
|
|
1955
1908
|
i0.ɵɵpipe(1, "translate");
|
|
1956
1909
|
i0.ɵɵtemplate(2, ContextListComponent_ng_template_14_igo_collapsible_0_ng_template_2_Template, 1, 3, "ng-template", 10);
|
|
1957
1910
|
i0.ɵɵelementEnd();
|
|
@@ -1965,7 +1918,7 @@ function ContextListComponent_ng_template_14_igo_collapsible_0_Template(rf, ctx)
|
|
|
1965
1918
|
function ContextListComponent_ng_template_14_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
1966
1919
|
const _r56 = i0.ɵɵgetCurrentView();
|
|
1967
1920
|
i0.ɵɵelementStart(0, "igo-context-item", 32);
|
|
1968
|
-
i0.ɵɵlistener("favorite", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r55 = i0.ɵɵ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() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r57 = i0.ɵɵ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() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r58 = i0.ɵɵnextContext(3); return ctx_r58.unselect.emit(context_r54); });
|
|
1921
|
+
i0.ɵɵlistener("favorite", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.favorite.emit(context_r54)); })("select", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r57.select.emit(context_r54)); })("unselect", function ContextListComponent_ng_template_14_1_ng_template_0_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r56); const context_r54 = restoredCtx.$implicit; const ctx_r58 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r58.unselect.emit(context_r54)); });
|
|
1969
1922
|
i0.ɵɵelementEnd();
|
|
1970
1923
|
} if (rf & 2) {
|
|
1971
1924
|
const context_r54 = ctx.$implicit;
|
|
@@ -1980,7 +1933,7 @@ function ContextListComponent_ng_template_14_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
1980
1933
|
} }
|
|
1981
1934
|
function ContextListComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
1982
1935
|
i0.ɵɵtemplate(0, ContextListComponent_ng_template_14_igo_collapsible_0_Template, 3, 5, "igo-collapsible", 28);
|
|
1983
|
-
i0.ɵɵtemplate(1, ContextListComponent_ng_template_14_1_Template, 1, 1,
|
|
1936
|
+
i0.ɵɵtemplate(1, ContextListComponent_ng_template_14_1_Template, 1, 1, null, 29);
|
|
1984
1937
|
} if (rf & 2) {
|
|
1985
1938
|
const groupContexts_r32 = ctx.$implicit;
|
|
1986
1939
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
@@ -2304,7 +2257,7 @@ class ContextListComponent {
|
|
|
2304
2257
|
this.show.emit(context);
|
|
2305
2258
|
}
|
|
2306
2259
|
}
|
|
2307
|
-
ContextListComponent.ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i1$
|
|
2260
|
+
ContextListComponent.ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.StorageService)); };
|
|
2308
2261
|
ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) { if (rf & 1) {
|
|
2309
2262
|
i0.ɵɵelementStart(0, "igo-list", 0);
|
|
2310
2263
|
i0.ɵɵtemplate(1, ContextListComponent_mat_form_field_1_Template, 4, 6, "mat-form-field", 1);
|
|
@@ -2314,16 +2267,13 @@ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2314
2267
|
i0.ɵɵtemplate(5, ContextListComponent_button_5_Template, 3, 4, "button", 4);
|
|
2315
2268
|
i0.ɵɵelementStart(6, "mat-menu", null, 5);
|
|
2316
2269
|
i0.ɵɵtemplate(8, ContextListComponent_ng_container_8_Template, 8, 5, "ng-container", 6);
|
|
2317
|
-
i0.ɵɵelementStart(9, "span", 7);
|
|
2318
|
-
i0.ɵɵelementStart(10, "mat-checkbox", 8);
|
|
2270
|
+
i0.ɵɵelementStart(9, "span", 7)(10, "mat-checkbox", 8);
|
|
2319
2271
|
i0.ɵɵlistener("click", function ContextListComponent_Template_mat_checkbox_click_10_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_Template_mat_checkbox_change_10_listener() { return ctx.showHiddenContexts.emit(); });
|
|
2320
2272
|
i0.ɵɵelementEnd();
|
|
2321
2273
|
i0.ɵɵelementStart(11, "button", 9);
|
|
2322
2274
|
i0.ɵɵtext(12);
|
|
2323
2275
|
i0.ɵɵpipe(13, "translate");
|
|
2324
|
-
i0.ɵɵelementEnd();
|
|
2325
|
-
i0.ɵɵelementEnd();
|
|
2326
|
-
i0.ɵɵelementEnd();
|
|
2276
|
+
i0.ɵɵelementEnd()()();
|
|
2327
2277
|
i0.ɵɵtemplate(14, ContextListComponent_ng_template_14_Template, 2, 2, "ng-template", 10);
|
|
2328
2278
|
i0.ɵɵpipe(15, "keyvalue");
|
|
2329
2279
|
i0.ɵɵpipe(16, "async");
|
|
@@ -2348,16 +2298,11 @@ ContextListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2348
2298
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 10, "igo.context.contextManager.showHidden"), " ");
|
|
2349
2299
|
i0.ɵɵadvance(2);
|
|
2350
2300
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(15, 12, i0.ɵɵpipeBind1(16, 14, ctx.contexts$)));
|
|
2351
|
-
} },
|
|
2301
|
+
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgModel, i4.MatFormField, i4.MatSuffix, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i12$1.MatCheckbox, i13.MatMenu, i13.MatMenuItem, i13.MatMenuTrigger, i14.ListItemDirective, i14.ListComponent, i14.CollapsibleComponent, i14.ActionbarComponent, ContextItemComponent, i5.AsyncPipe, i14.KeyValuePipe, i6.TranslatePipe], styles: [".context-filter-max-width[_ngcontent-%COMP%]{width:calc(100% - 100px);margin:5px;padding-left:6px}.context-filter-min-width[_ngcontent-%COMP%]{width:calc(100% - 135px);margin:5px;padding-left:6px}.clear-button[_ngcontent-%COMP%]{padding-right:5px}mat-form-field[_ngcontent-%COMP%]{height:40px}.profilsMenu[_ngcontent-%COMP%]{display:flex}.profilsMenu[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{width:8px}.add-context-button[_ngcontent-%COMP%]{margin:0;width:40px;display:inline-flex;overflow:hidden}"], changeDetection: 0 });
|
|
2352
2302
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextListComponent, [{
|
|
2353
2303
|
type: Component,
|
|
2354
|
-
args: [{
|
|
2355
|
-
|
|
2356
|
-
templateUrl: './context-list.component.html',
|
|
2357
|
-
styleUrls: ['./context-list.component.scss'],
|
|
2358
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2359
|
-
}]
|
|
2360
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: ContextService }, { type: i3.ConfigService }, { type: i2.AuthService }, { type: i1$2.MatDialog }, { type: i3.LanguageService }, { type: i3.StorageService }]; }, { contexts: [{
|
|
2304
|
+
args: [{ selector: 'igo-context-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-list [navigation]=\"true\">\r\n <mat-form-field *ngIf=\"showFilter()\" [ngClass]=\"auth.authenticated && configService.getConfig('context') ? 'context-filter-min-width' : 'context-filter-max-width'\">\r\n <input\r\n matInput\r\n type=\"text\"\r\n [placeholder]=\"'igo.context.contextManager.filterPlaceHolder' | translate\"\r\n [(ngModel)]=\"term\">\r\n <button\r\n mat-button\r\n mat-icon-button\r\n matSuffix\r\n class=\"clear-button\"\r\n *ngIf=\"term.length\"\r\n aria-label=\"Clear\"\r\n color=\"warn\"\r\n (click)=\"clearFilter()\">\r\n <mat-icon svgIcon=\"close\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <button\r\n *ngIf=\"!sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.sortAlphabetically' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(true)\">\r\n <mat-icon color=\"primary\" svgIcon=\"sort-alphabetical-variant\"></mat-icon>\r\n </button>\r\n <button\r\n *ngIf=\"sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.sortContextOrder' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(false)\">\r\n <mat-icon color=\"warn\" svgIcon=\"sort-variant-remove\"></mat-icon>\r\n </button>\r\n\r\n <igo-actionbar *ngIf=\"auth.authenticated && configService.getConfig('context')\"\r\n class=\"add-context-button\"\r\n [iconColor]=\"color\"\r\n [store]=\"actionStore\"\r\n [withIcon]=\"true\"\r\n icon=\"plus\"\r\n [withTitle]=\"actionbarMode === 'overlay'\"\r\n [horizontal]=\"false\"\r\n [mode]=\"actionbarMode\">\r\n </igo-actionbar>\r\n\r\n <button *ngIf=\"auth.authenticated && configService.getConfig('context')\"\r\n class=\"users-filter\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.contextManager.filterUser' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n [matMenuTriggerFor]=\"accountMenu\">\r\n <mat-icon color=\"primary\" svgIcon=\"filter-menu\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #accountMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let user of users\">\r\n <span class=\"profilsMenu\">\r\n <mat-checkbox\r\n class=\"mat-menu-item\"\r\n [checked]=\"getPermission(user).checked\"\r\n [indeterminate]=\"getPermission(user).indeterminate\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"userSelection(user)\">\r\n </mat-checkbox>\r\n <button *ngIf=\"user.childs\"\r\n [matMenuTriggerFor]=\"subAccountMenu\"\r\n mat-menu-item>\r\n {{user.title}}\r\n </button>\r\n <button\r\n mat-menu-item\r\n *ngIf=\"!user.childs\">\r\n {{user.title}}\r\n </button>\r\n </span>\r\n\r\n <mat-menu #subAccountMenu=\"matMenu\">\r\n <mat-checkbox *ngFor=\"let child of user.childs\"\r\n class=\"mat-menu-item\"\r\n [checked]=\"getPermission(child).checked\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"userSelection(child, user)\">\r\n {{child.title}}\r\n </mat-checkbox>\r\n </mat-menu>\r\n </ng-container>\r\n\r\n <span class=\"profilsMenu\">\r\n <mat-checkbox\r\n class=\"mat-menu-item\"\r\n [checked]=\"showHidden\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"showHiddenContexts.emit()\">\r\n </mat-checkbox>\r\n <button mat-menu-item>\r\n {{ 'igo.context.contextManager.showHidden' | translate }}\r\n </button>\r\n </span>\r\n </mat-menu>\r\n\r\n <ng-template ngFor let-groupContexts [ngForOf]=\"contexts$ | async | keyvalue\">\r\n\r\n <igo-collapsible *ngIf=\"groupContexts.value.length && auth.authenticated\" [title]=\"titleMapping[groupContexts.key] | translate\"\r\n [collapsed]=\"collapsed[titleMapping[groupContexts.key]]\" (toggle)=\"collapsed[titleMapping[groupContexts.key]] = $event\">\r\n\r\n <ng-template ngFor let-context [ngForOf]=\"groupContexts.value\">\r\n <igo-context-item\r\n igoListItem\r\n color=\"accent\"\r\n [selected]=\"selectedContext && selectedContext.uri === context.uri\"\r\n [context]=\"context\"\r\n [default]=\"context.id && this.defaultContextId && this.defaultContextId === context.id\"\r\n (edit)=\"edit.emit(context)\"\r\n (delete)=\"delete.emit(context)\"\r\n (clone)=\"clone.emit(context)\"\r\n (save)=\"save.emit(context)\"\r\n (hide)=\"hideContext(context)\"\r\n (show)=\"showContext(context)\"\r\n (favorite)=\"favorite.emit(context)\"\r\n (manageTools)=\"manageTools.emit(context)\"\r\n (managePermissions)=\"managePermissions.emit(context)\"\r\n (select)=\"select.emit(context)\"\r\n (unselect)=\"unselect.emit(context)\">\r\n </igo-context-item>\r\n </ng-template>\r\n\r\n </igo-collapsible>\r\n\r\n <ng-template *ngIf=\"groupContexts.value.length && !auth.authenticated\" ngFor let-context [ngForOf]=\"groupContexts.value\">\r\n <igo-context-item\r\n igoListItem\r\n color=\"accent\"\r\n [showFavorite]=\"configService.getConfig('favoriteContext4NonAuthenticated')\"\r\n [selected]=\"selectedContext && selectedContext.uri === context.uri\"\r\n [context]=\"context\"\r\n [default]=\"configService.getConfig('context') ? defaultContextId === context.id : defaultContextId === context.uri\"\r\n (favorite)=\"favorite.emit(context)\"\r\n (select)=\"select.emit(context)\"\r\n (unselect)=\"unselect.emit(context)\">\r\n </igo-context-item>\r\n </ng-template>\r\n\r\n </ng-template>\r\n</igo-list>\r\n", styles: [".context-filter-max-width{width:calc(100% - 100px);margin:5px;padding-left:6px}.context-filter-min-width{width:calc(100% - 135px);margin:5px;padding-left:6px}.clear-button{padding-right:5px}mat-form-field{height:40px}.profilsMenu{display:flex}.profilsMenu>mat-checkbox{width:8px}.add-context-button{margin:0;width:40px;display:inline-flex;overflow:hidden}\n"] }]
|
|
2305
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: ContextService }, { type: i3.ConfigService }, { type: i2.AuthService }, { type: i1$3.MatDialog }, { type: i3.LanguageService }, { type: i3.StorageService }]; }, { contexts: [{
|
|
2361
2306
|
type: Input
|
|
2362
2307
|
}], selectedContext: [{
|
|
2363
2308
|
type: Input
|
|
@@ -2596,7 +2541,7 @@ class ContextListBindingDirective {
|
|
|
2596
2541
|
this.component.contexts = contexts;
|
|
2597
2542
|
}
|
|
2598
2543
|
}
|
|
2599
|
-
ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0.ɵɵdirectiveInject(ContextListComponent, 2), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$
|
|
2544
|
+
ContextListBindingDirective.ɵfac = function ContextListBindingDirective_Factory(t) { return new (t || ContextListBindingDirective)(i0.ɵɵdirectiveInject(ContextListComponent, 2), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i1$2.MapService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i14.ConfirmDialogService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
2600
2545
|
ContextListBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ContextListBindingDirective, selectors: [["", "igoContextListBinding", ""]], hostBindings: function ContextListBindingDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
2601
2546
|
i0.ɵɵ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); });
|
|
2602
2547
|
} } });
|
|
@@ -2607,7 +2552,7 @@ ContextListBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
|
|
|
2607
2552
|
}]
|
|
2608
2553
|
}], function () { return [{ type: ContextListComponent, decorators: [{
|
|
2609
2554
|
type: Self
|
|
2610
|
-
}] }, { type: ContextService }, { type: i1$
|
|
2555
|
+
}] }, { type: ContextService }, { type: i1$2.MapService }, { type: i3.LanguageService }, { type: i14.ConfirmDialogService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: i3.StorageService }, { type: i0.ChangeDetectorRef }]; }, { onSelect: [{
|
|
2611
2556
|
type: HostListener,
|
|
2612
2557
|
args: ['select', ['$event']]
|
|
2613
2558
|
}], onEdit: [{
|
|
@@ -2723,7 +2668,7 @@ class ContextFormComponent {
|
|
|
2723
2668
|
});
|
|
2724
2669
|
}
|
|
2725
2670
|
}
|
|
2726
|
-
ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(
|
|
2671
|
+
ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(i1$1.FormBuilder), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
|
|
2727
2672
|
ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextFormComponent, selectors: [["igo-context-form"]], inputs: { btnSubmitText: "btnSubmitText", context: "context", disabled: "disabled" }, outputs: { submitForm: "submitForm", clone: "clone", delete: "delete" }, decls: 19, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "maxlength", "128", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "full-width"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "maxlength", "64", "floatLabel", "always", "formControlName", "uri", 3, "placeholder"], ["id", "copyButton", "type", "button", "mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [1, "prefix"]], template: function ContextFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2728
2673
|
i0.ɵɵelementStart(0, "form", 0);
|
|
2729
2674
|
i0.ɵɵlistener("ngSubmit", function ContextFormComponent_Template_form_ngSubmit_0_listener() { return ctx.handleFormSubmit(ctx.form.value); });
|
|
@@ -2733,27 +2678,22 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2733
2678
|
i0.ɵɵelementStart(4, "mat-error");
|
|
2734
2679
|
i0.ɵɵtext(5);
|
|
2735
2680
|
i0.ɵɵpipe(6, "translate");
|
|
2736
|
-
i0.ɵɵelementEnd();
|
|
2737
|
-
i0.ɵɵelementEnd();
|
|
2681
|
+
i0.ɵɵelementEnd()();
|
|
2738
2682
|
i0.ɵɵelementStart(7, "mat-form-field", 3);
|
|
2739
2683
|
i0.ɵɵtemplate(8, ContextFormComponent_span_8_Template, 2, 1, "span", 4);
|
|
2740
2684
|
i0.ɵɵelementStart(9, "span", 5);
|
|
2741
2685
|
i0.ɵɵelement(10, "input", 6);
|
|
2742
2686
|
i0.ɵɵpipe(11, "translate");
|
|
2743
|
-
i0.ɵɵelementEnd();
|
|
2744
|
-
i0.ɵɵelementEnd();
|
|
2687
|
+
i0.ɵɵelementEnd()();
|
|
2745
2688
|
i0.ɵɵelementStart(12, "button", 7);
|
|
2746
2689
|
i0.ɵɵlistener("click", function ContextFormComponent_Template_button_click_12_listener() { return ctx.copyTextToClipboard(); });
|
|
2747
2690
|
i0.ɵɵpipe(13, "translate");
|
|
2748
2691
|
i0.ɵɵelement(14, "mat-icon", 8);
|
|
2749
2692
|
i0.ɵɵelementEnd();
|
|
2750
|
-
i0.ɵɵelementStart(15, "div", 9);
|
|
2751
|
-
i0.ɵɵelementStart(16, "button", 10);
|
|
2693
|
+
i0.ɵɵelementStart(15, "div", 9)(16, "button", 10);
|
|
2752
2694
|
i0.ɵɵtext(17);
|
|
2753
2695
|
i0.ɵɵpipe(18, "translate");
|
|
2754
|
-
i0.ɵɵelementEnd();
|
|
2755
|
-
i0.ɵɵelementEnd();
|
|
2756
|
-
i0.ɵɵelementEnd();
|
|
2696
|
+
i0.ɵɵelementEnd()()();
|
|
2757
2697
|
} if (rf & 2) {
|
|
2758
2698
|
i0.ɵɵproperty("formGroup", ctx.form);
|
|
2759
2699
|
i0.ɵɵadvance(2);
|
|
@@ -2770,15 +2710,11 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2770
2710
|
i0.ɵɵproperty("disabled", !ctx.form.valid || ctx.disabled);
|
|
2771
2711
|
i0.ɵɵadvance(1);
|
|
2772
2712
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, "igo.context.contextManager.form.edit"), " ");
|
|
2773
|
-
} },
|
|
2713
|
+
} }, dependencies: [i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.MaxLengthValidator, i1$1.FormGroupDirective, i1$1.FormControlName, i4.MatError, i4.MatFormField, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i6.TranslatePipe], styles: ["form[_ngcontent-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}#copyButton[_ngcontent-%COMP%]{width:24px;float:right;position:relative;top:-58px;left:5px}"] });
|
|
2774
2714
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextFormComponent, [{
|
|
2775
2715
|
type: Component,
|
|
2776
|
-
args: [{
|
|
2777
|
-
|
|
2778
|
-
templateUrl: './context-form.component.html',
|
|
2779
|
-
styleUrls: ['./context-form.component.scss']
|
|
2780
|
-
}]
|
|
2781
|
-
}], function () { return [{ type: i4.FormBuilder }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { btnSubmitText: [{
|
|
2716
|
+
args: [{ selector: 'igo-context-form', template: "<form class=\"igo-form\" [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\">\r\n\r\n <mat-form-field class=\"full-width\">\r\n <input matInput required\r\n maxlength=\"128\"\r\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\r\n formControlName=\"title\">\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field id=\"uriInput\" class=\"full-width\">\r\n <span *ngIf=\"prefix\" class=\"prefix\">{{prefix}}-</span>\r\n <span class=\"fieldWrapper\">\r\n <input matInput\r\n maxlength=\"64\"\r\n floatLabel = \"always\"\r\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\r\n formControlName=\"uri\">\r\n </span>\r\n </mat-form-field>\r\n\r\n <button\r\n id=\"copyButton\"\r\n type=\"button\"\r\n mat-icon-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.contextManager.form.copy' | translate\"\r\n color=\"primary\"\r\n (click)=\"copyTextToClipboard()\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid || disabled\">\r\n {{ 'igo.context.contextManager.form.edit' | translate }}\r\n </button>\r\n </div>\r\n\r\n</form>\r\n", styles: ["form{margin:10px}.full-width{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}#copyButton{width:24px;float:right;position:relative;top:-58px;left:5px}\n"] }]
|
|
2717
|
+
}], function () { return [{ type: i1$1.FormBuilder }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { btnSubmitText: [{
|
|
2782
2718
|
type: Input
|
|
2783
2719
|
}], context: [{
|
|
2784
2720
|
type: Input
|
|
@@ -2795,7 +2731,7 @@ ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2795
2731
|
function ContextEditComponent_igo_context_form_0_Template(rf, ctx) { if (rf & 1) {
|
|
2796
2732
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
2797
2733
|
i0.ɵɵelementStart(0, "igo-context-form", 1);
|
|
2798
|
-
i0.ɵɵlistener("submitForm", function ContextEditComponent_igo_context_form_0_Template_igo_context_form_submitForm_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.submitForm.emit($event); });
|
|
2734
|
+
i0.ɵɵlistener("submitForm", function ContextEditComponent_igo_context_form_0_Template_igo_context_form_submitForm_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submitForm.emit($event)); });
|
|
2799
2735
|
i0.ɵɵpipe(1, "translate");
|
|
2800
2736
|
i0.ɵɵelementEnd();
|
|
2801
2737
|
} if (rf & 2) {
|
|
@@ -2823,13 +2759,10 @@ ContextEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Contex
|
|
|
2823
2759
|
i0.ɵɵtemplate(0, ContextEditComponent_igo_context_form_0_Template, 2, 4, "igo-context-form", 0);
|
|
2824
2760
|
} if (rf & 2) {
|
|
2825
2761
|
i0.ɵɵproperty("ngIf", ctx.context);
|
|
2826
|
-
} },
|
|
2762
|
+
} }, dependencies: [i5.NgIf, ContextFormComponent, i6.TranslatePipe], encapsulation: 2 });
|
|
2827
2763
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextEditComponent, [{
|
|
2828
2764
|
type: Component,
|
|
2829
|
-
args: [{
|
|
2830
|
-
selector: 'igo-context-edit',
|
|
2831
|
-
templateUrl: './context-edit.component.html'
|
|
2832
|
-
}]
|
|
2765
|
+
args: [{ selector: 'igo-context-edit', template: "<igo-context-form *ngIf=\"context\"\r\n [btnSubmitText]=\"'igo.context.contextManager.save' | translate\"\r\n [context]=\"context\"\r\n (submitForm)=\"submitForm.emit($event)\">\r\n</igo-context-form>\r\n" }]
|
|
2833
2766
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { context: [{
|
|
2834
2767
|
type: Input
|
|
2835
2768
|
}], submitForm: [{
|
|
@@ -2886,16 +2819,14 @@ ContextEditBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type:
|
|
|
2886
2819
|
}] }); })();
|
|
2887
2820
|
|
|
2888
2821
|
function ContextPermissionsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2889
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
2890
|
-
i0.ɵɵelementStart(1, "h4");
|
|
2822
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "h4");
|
|
2891
2823
|
i0.ɵɵtext(2);
|
|
2892
2824
|
i0.ɵɵpipe(3, "translate");
|
|
2893
2825
|
i0.ɵɵelementEnd();
|
|
2894
2826
|
i0.ɵɵelementStart(4, "p");
|
|
2895
2827
|
i0.ɵɵtext(5);
|
|
2896
2828
|
i0.ɵɵpipe(6, "translate");
|
|
2897
|
-
i0.ɵɵelementEnd();
|
|
2898
|
-
i0.ɵɵelementEnd();
|
|
2829
|
+
i0.ɵɵelementEnd()();
|
|
2899
2830
|
} if (rf & 2) {
|
|
2900
2831
|
i0.ɵɵadvance(2);
|
|
2901
2832
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "igo.context.permission.readOnlyTitle"));
|
|
@@ -2913,9 +2844,8 @@ function ContextPermissionsComponent_div_0_div_2_mat_radio_button_8_Template(rf,
|
|
|
2913
2844
|
} }
|
|
2914
2845
|
function ContextPermissionsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
2915
2846
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
2916
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
2917
|
-
i0.ɵɵ
|
|
2918
|
-
i0.ɵɵlistener("ngModelChange", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.context.scope = $event; })("change", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_change_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.scopeChanged.emit(ctx_r8.context); });
|
|
2847
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "mat-radio-group", 4);
|
|
2848
|
+
i0.ɵɵlistener("ngModelChange", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.context.scope = $event); })("change", function ContextPermissionsComponent_div_0_div_2_Template_mat_radio_group_change_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.scopeChanged.emit(ctx_r8.context)); });
|
|
2919
2849
|
i0.ɵɵelementStart(2, "mat-radio-button", 5);
|
|
2920
2850
|
i0.ɵɵtext(3);
|
|
2921
2851
|
i0.ɵɵpipe(4, "translate");
|
|
@@ -2925,8 +2855,7 @@ function ContextPermissionsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1)
|
|
|
2925
2855
|
i0.ɵɵpipe(7, "translate");
|
|
2926
2856
|
i0.ɵɵelementEnd();
|
|
2927
2857
|
i0.ɵɵtemplate(8, ContextPermissionsComponent_div_0_div_2_mat_radio_button_8_Template, 3, 3, "mat-radio-button", 7);
|
|
2928
|
-
i0.ɵɵelementEnd();
|
|
2929
|
-
i0.ɵɵelementEnd();
|
|
2858
|
+
i0.ɵɵelementEnd()();
|
|
2930
2859
|
} if (rf & 2) {
|
|
2931
2860
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
2932
2861
|
i0.ɵɵadvance(1);
|
|
@@ -2944,8 +2873,7 @@ function ContextPermissionsComponent_div_0_form_3_mat_option_6_Template(rf, ctx)
|
|
|
2944
2873
|
i0.ɵɵelement(2, "br");
|
|
2945
2874
|
i0.ɵɵelementStart(3, "small", 21);
|
|
2946
2875
|
i0.ɵɵtext(4);
|
|
2947
|
-
i0.ɵɵelementEnd();
|
|
2948
|
-
i0.ɵɵelementEnd();
|
|
2876
|
+
i0.ɵɵelementEnd()();
|
|
2949
2877
|
} if (rf & 2) {
|
|
2950
2878
|
const profil_r11 = ctx.$implicit;
|
|
2951
2879
|
i0.ɵɵproperty("value", profil_r11);
|
|
@@ -2957,36 +2885,30 @@ function ContextPermissionsComponent_div_0_form_3_mat_option_6_Template(rf, ctx)
|
|
|
2957
2885
|
function ContextPermissionsComponent_div_0_form_3_Template(rf, ctx) { if (rf & 1) {
|
|
2958
2886
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
2959
2887
|
i0.ɵɵelementStart(0, "form", 9);
|
|
2960
|
-
i0.ɵɵlistener("ngSubmit", function ContextPermissionsComponent_div_0_form_3_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.handleFormSubmit(ctx_r12.form.value); });
|
|
2888
|
+
i0.ɵɵlistener("ngSubmit", function ContextPermissionsComponent_div_0_form_3_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.handleFormSubmit(ctx_r12.form.value)); });
|
|
2961
2889
|
i0.ɵɵelementStart(1, "mat-form-field", 10);
|
|
2962
2890
|
i0.ɵɵelement(2, "input", 11);
|
|
2963
2891
|
i0.ɵɵpipe(3, "translate");
|
|
2964
2892
|
i0.ɵɵelementStart(4, "mat-autocomplete", 12, 13);
|
|
2965
|
-
i0.ɵɵlistener("optionSelected", function ContextPermissionsComponent_div_0_form_3_Template_mat_autocomplete_optionSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.onProfilSelected($event.option.value); });
|
|
2893
|
+
i0.ɵɵlistener("optionSelected", function ContextPermissionsComponent_div_0_form_3_Template_mat_autocomplete_optionSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.onProfilSelected($event.option.value)); });
|
|
2966
2894
|
i0.ɵɵtemplate(6, ContextPermissionsComponent_div_0_form_3_mat_option_6_Template, 5, 3, "mat-option", 14);
|
|
2967
2895
|
i0.ɵɵelementEnd();
|
|
2968
2896
|
i0.ɵɵelementStart(7, "mat-error");
|
|
2969
2897
|
i0.ɵɵtext(8);
|
|
2970
2898
|
i0.ɵɵpipe(9, "translate");
|
|
2971
|
-
i0.ɵɵelementEnd();
|
|
2972
|
-
i0.ɵɵ
|
|
2973
|
-
i0.ɵɵelementStart(10, "mat-radio-group", 15);
|
|
2974
|
-
i0.ɵɵelementStart(11, "mat-radio-button", 16);
|
|
2899
|
+
i0.ɵɵelementEnd()();
|
|
2900
|
+
i0.ɵɵelementStart(10, "mat-radio-group", 15)(11, "mat-radio-button", 16);
|
|
2975
2901
|
i0.ɵɵtext(12);
|
|
2976
2902
|
i0.ɵɵpipe(13, "translate");
|
|
2977
2903
|
i0.ɵɵelementEnd();
|
|
2978
2904
|
i0.ɵɵelementStart(14, "mat-radio-button", 17);
|
|
2979
2905
|
i0.ɵɵtext(15);
|
|
2980
2906
|
i0.ɵɵpipe(16, "translate");
|
|
2981
|
-
i0.ɵɵelementEnd();
|
|
2982
|
-
i0.ɵɵ
|
|
2983
|
-
i0.ɵɵelementStart(17, "div", 18);
|
|
2984
|
-
i0.ɵɵelementStart(18, "button", 19);
|
|
2907
|
+
i0.ɵɵelementEnd()();
|
|
2908
|
+
i0.ɵɵelementStart(17, "div", 18)(18, "button", 19);
|
|
2985
2909
|
i0.ɵɵtext(19);
|
|
2986
2910
|
i0.ɵɵpipe(20, "translate");
|
|
2987
|
-
i0.ɵɵelementEnd();
|
|
2988
|
-
i0.ɵɵelementEnd();
|
|
2989
|
-
i0.ɵɵelementEnd();
|
|
2911
|
+
i0.ɵɵelementEnd()()();
|
|
2990
2912
|
} if (rf & 2) {
|
|
2991
2913
|
const _r9 = i0.ɵɵreference(5);
|
|
2992
2914
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
@@ -3011,7 +2933,7 @@ function ContextPermissionsComponent_div_0_form_3_Template(rf, ctx) { if (rf & 1
|
|
|
3011
2933
|
function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
3012
2934
|
const _r23 = i0.ɵɵgetCurrentView();
|
|
3013
2935
|
i0.ɵɵelementStart(0, "button", 29);
|
|
3014
|
-
i0.ɵɵlistener("click", function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const permission_r19 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(5); return ctx_r21.removePermission.emit(permission_r19); });
|
|
2936
|
+
i0.ɵɵlistener("click", function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const permission_r19 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r21.removePermission.emit(permission_r19)); });
|
|
3015
2937
|
i0.ɵɵpipe(1, "translate");
|
|
3016
2938
|
i0.ɵɵelement(2, "mat-icon", 30);
|
|
3017
2939
|
i0.ɵɵelementEnd();
|
|
@@ -3025,12 +2947,10 @@ function ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsi
|
|
|
3025
2947
|
i0.ɵɵtext(3);
|
|
3026
2948
|
i0.ɵɵelementStart(4, "small", 21);
|
|
3027
2949
|
i0.ɵɵtext(5);
|
|
3028
|
-
i0.ɵɵelementEnd();
|
|
3029
|
-
i0.ɵɵelementEnd();
|
|
2950
|
+
i0.ɵɵelementEnd()();
|
|
3030
2951
|
i0.ɵɵelementStart(6, "div", 27);
|
|
3031
2952
|
i0.ɵɵtemplate(7, ContextPermissionsComponent_div_0_igo_list_4_ng_template_1_igo_collapsible_0_ng_template_2_button_7_Template, 3, 3, "button", 28);
|
|
3032
|
-
i0.ɵɵelementEnd();
|
|
3033
|
-
i0.ɵɵelementEnd();
|
|
2953
|
+
i0.ɵɵelementEnd()();
|
|
3034
2954
|
} if (rf & 2) {
|
|
3035
2955
|
const permission_r19 = ctx.$implicit;
|
|
3036
2956
|
const ctx_r18 = i0.ɵɵnextContext(5);
|
|
@@ -3163,20 +3083,16 @@ class ContextPermissionsComponent {
|
|
|
3163
3083
|
});
|
|
3164
3084
|
}
|
|
3165
3085
|
}
|
|
3166
|
-
ContextPermissionsComponent.ɵfac = function ContextPermissionsComponent_Factory(t) { return new (t || ContextPermissionsComponent)(i0.ɵɵdirectiveInject(
|
|
3086
|
+
ContextPermissionsComponent.ɵfac = function ContextPermissionsComponent_Factory(t) { return new (t || ContextPermissionsComponent)(i0.ɵɵdirectiveInject(i1$1.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.ConfigService)); };
|
|
3167
3087
|
ContextPermissionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextPermissionsComponent, selectors: [["igo-context-permissions"]], inputs: { context: "context", permissions: "permissions" }, outputs: { addPermission: "addPermission", removePermission: "removePermission", scopeChanged: "scopeChanged" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "scopeForm", 4, "ngIf"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "scopeForm"], [3, "ngModel", "ngModelChange", "change"], ["value", "private"], ["value", "protected"], ["value", "public", 4, "ngIf"], ["value", "public"], [3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", 3, "placeholder", "formControl", "matAutocomplete"], [3, "displayWith", "optionSelected"], ["auto", "matAutocomplete"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "typePermission"], ["value", "read"], ["value", "write"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [3, "value"], [1, "mat-typography"], ["ngFor", "", 3, "ngForOf"], [3, "title", 4, "ngIf"], [3, "title"], ["mat-list-avatar", "", "svgIcon", "account-outline"], ["mat-line", ""], ["igoStopPropagation", "", 1, "igo-actions-container"], ["mat-icon-button", "", "matTooltipShowDelay", "500", "color", "warn", 3, "matTooltip", "click", 4, "ngIf"], ["mat-icon-button", "", "matTooltipShowDelay", "500", "color", "warn", 3, "matTooltip", "click"], ["svgIcon", "delete"]], template: function ContextPermissionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3168
3088
|
i0.ɵɵtemplate(0, ContextPermissionsComponent_div_0_Template, 5, 4, "div", 0);
|
|
3169
3089
|
} if (rf & 2) {
|
|
3170
3090
|
i0.ɵɵproperty("ngIf", ctx.context);
|
|
3171
|
-
} },
|
|
3091
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.NgModel, i1$1.FormControlDirective, i1$1.FormGroupDirective, i1$1.FormControlName, i4.MatError, i4.MatFormField, i5$1.MatInput, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i7$1.MatListItem, i7$1.MatListAvatarCssMatStyler, i12.MatLine, i13$1.MatRadioGroup, i13$1.MatRadioButton, i12.MatOption, i14$1.MatAutocomplete, i14$1.MatAutocompleteTrigger, i14.ListComponent, i14.CollapsibleComponent, i14.StopPropagationDirective, i14.KeyValuePipe, i6.TranslatePipe], styles: ["[_nghost-%COMP%]{margin:10px}.full-width[_ngcontent-%COMP%]{width:100%}mat-radio-button[_ngcontent-%COMP%]{padding:14px 14px 14px 0}.scopeForm[_ngcontent-%COMP%], form[_ngcontent-%COMP%]{padding:5px}mat-option[_ngcontent-%COMP%] .mat-option-text{line-height:normal;line-height:initial}"] });
|
|
3172
3092
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextPermissionsComponent, [{
|
|
3173
3093
|
type: Component,
|
|
3174
|
-
args: [{
|
|
3175
|
-
|
|
3176
|
-
templateUrl: './context-permissions.component.html',
|
|
3177
|
-
styleUrls: ['./context-permissions.component.scss']
|
|
3178
|
-
}]
|
|
3179
|
-
}], function () { return [{ type: i4.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.ConfigService }]; }, { context: [{
|
|
3094
|
+
args: [{ selector: 'igo-context-permissions', template: "<div *ngIf=\"context\">\r\n\r\n <div *ngIf=\"!canWrite\" class=\"scopeForm\">\r\n <h4>{{ 'igo.context.permission.readOnlyTitle' | translate }}</h4>\r\n <p>{{ 'igo.context.permission.readOnlyMsg' | translate }}</p>\r\n </div>\r\n\r\n <div *ngIf=\"canWrite\" class=\"scopeForm\">\r\n <mat-radio-group [(ngModel)]=\"context.scope\"\r\n (change)=\"scopeChanged.emit(context)\">\r\n <mat-radio-button value=\"private\">\r\n {{ 'igo.context.permission.scope.private' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button value=\"protected\">\r\n {{ 'igo.context.permission.scope.shared' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button *ngIf=\"authService.isAdmin\" value=\"public\">\r\n {{ 'igo.context.permission.scope.public' | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n\r\n <form *ngIf=\"context.scope !== 'private' && canWrite\" [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\">\r\n\r\n <mat-form-field class=\"full-width\">\r\n <input matInput required\r\n [placeholder]=\"'igo.context.permission.user' | translate\"\r\n [formControl]=\"formControl\"\r\n [matAutocomplete]=\"auto\">\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onProfilSelected($event.option.value)\"\r\n [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let profil of this.profils\" [value]=\"profil\">\r\n {{profil.title}}<br>\r\n <small class=\"mat-typography\">{{profil.name}}</small>\r\n </mat-option>\r\n </mat-autocomplete>\r\n <mat-error>\r\n {{ 'igo.context.permission.profilRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n\r\n <mat-radio-group formControlName=\"typePermission\">\r\n <mat-radio-button value=\"read\">\r\n {{ 'igo.context.permission.read' | translate }}\r\n </mat-radio-button>\r\n <mat-radio-button value=\"write\">\r\n {{ 'igo.context.permission.write' | translate }}\r\n </mat-radio-button>\r\n </mat-radio-group>\r\n\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid\">\r\n {{ 'igo.context.permission.addBtn' | translate }}\r\n </button>\r\n </div>\r\n\r\n </form>\r\n\r\n <igo-list *ngIf=\"permissions && context.scope !== 'private'\">\r\n <ng-template ngFor let-groupPermissions [ngForOf]=\"permissions | keyvalue\">\r\n <igo-collapsible\r\n *ngIf=\"groupPermissions.value.length\"\r\n [title]=\"'igo.context.permission.' + groupPermissions.key | translate\">\r\n\r\n <ng-template ngFor let-permission [ngForOf]=\"groupPermissions.value\">\r\n <mat-list-item>\r\n <mat-icon mat-list-avatar svgIcon=\"account-outline\"></mat-icon>\r\n <h4 mat-line>{{permission.profilTitle}} <small class=\"mat-typography\">{{permission.profil}}</small></h4>\r\n\r\n <div igoStopPropagation\r\n class=\"igo-actions-container\">\r\n\r\n <button *ngIf=\"canWrite || permission.profil === authService.decodeToken().user.sourceId\"\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.permission.delete' | translate\"\r\n matTooltipShowDelay=\"500\"\r\n color=\"warn\"\r\n (click)=\"removePermission.emit(permission)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </div>\r\n\r\n </mat-list-item>\r\n </ng-template>\r\n </igo-collapsible>\r\n </ng-template>\r\n </igo-list>\r\n\r\n</div>\r\n", styles: [":host{margin:10px}.full-width{width:100%}mat-radio-button{padding:14px 14px 14px 0}.scopeForm,form{padding:5px}mat-option ::ng-deep .mat-option-text{line-height:normal;line-height:initial}\n"] }]
|
|
3095
|
+
}], function () { return [{ type: i1$1.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.ConfigService }]; }, { context: [{
|
|
3180
3096
|
type: Input
|
|
3181
3097
|
}], permissions: [{
|
|
3182
3098
|
type: Input
|
|
@@ -3340,27 +3256,21 @@ class BookmarkButtonComponent {
|
|
|
3340
3256
|
});
|
|
3341
3257
|
}
|
|
3342
3258
|
}
|
|
3343
|
-
BookmarkButtonComponent.ɵfac = function BookmarkButtonComponent_Factory(t) { return new (t || BookmarkButtonComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3259
|
+
BookmarkButtonComponent.ɵfac = function BookmarkButtonComponent_Factory(t) { return new (t || BookmarkButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService)); };
|
|
3344
3260
|
BookmarkButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BookmarkButtonComponent, selectors: [["igo-bookmark-button"]], inputs: { map: "map", color: "color" }, decls: 4, vars: 4, consts: [[1, "igo-bookmark-button-container"], ["mat-icon-button", "", "matTooltipPosition", "above", 3, "matTooltip", "color", "click"], ["svgIcon", "star"]], template: function BookmarkButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3345
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
3346
|
-
i0.ɵɵelementStart(1, "button", 1);
|
|
3261
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
3347
3262
|
i0.ɵɵlistener("click", function BookmarkButtonComponent_Template_button_click_1_listener() { return ctx.createContext(); });
|
|
3348
3263
|
i0.ɵɵpipe(2, "translate");
|
|
3349
3264
|
i0.ɵɵelement(3, "mat-icon", 2);
|
|
3350
|
-
i0.ɵɵelementEnd();
|
|
3351
|
-
i0.ɵɵelementEnd();
|
|
3265
|
+
i0.ɵɵelementEnd()();
|
|
3352
3266
|
} if (rf & 2) {
|
|
3353
3267
|
i0.ɵɵadvance(1);
|
|
3354
3268
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(2, 2, "igo.context.bookmarkButton.create"))("color", ctx.color);
|
|
3355
|
-
} },
|
|
3269
|
+
} }, dependencies: [i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, i6.TranslatePipe], styles: [".igo-bookmark-button-container[_ngcontent-%COMP%]{width:40px}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}.igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}button[_ngcontent-%COMP%], [_nghost-%COMP%] button .mat-button-ripple-round{border-radius:0}"] });
|
|
3356
3270
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BookmarkButtonComponent, [{
|
|
3357
3271
|
type: Component,
|
|
3358
|
-
args: [{
|
|
3359
|
-
|
|
3360
|
-
templateUrl: './bookmark-button.component.html',
|
|
3361
|
-
styleUrls: ['./bookmark-button.component.scss']
|
|
3362
|
-
}]
|
|
3363
|
-
}], function () { return [{ type: i1$2.MatDialog }, { type: ContextService }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { map: [{
|
|
3272
|
+
args: [{ selector: 'igo-bookmark-button', template: "<div class=\"igo-bookmark-button-container\">\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.bookmarkButton.create' | translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"createContext()\">\r\n <mat-icon svgIcon=\"star\"></mat-icon>\r\n </button>\r\n</div>\r\n", styles: [".igo-bookmark-button-container{width:40px}.igo-bookmark-button-container button{background-color:#fff}.igo-bookmark-button-container button:hover{background-color:#efefef}button,:host ::ng-deep button .mat-button-ripple-round{border-radius:0}\n"] }]
|
|
3273
|
+
}], function () { return [{ type: i1$3.MatDialog }, { type: ContextService }, { type: i3.LanguageService }, { type: i3.MessageService }]; }, { map: [{
|
|
3364
3274
|
type: Input
|
|
3365
3275
|
}], color: [{
|
|
3366
3276
|
type: Input
|
|
@@ -3371,22 +3281,17 @@ class PoiDialogComponent {
|
|
|
3371
3281
|
this.dialogRef = dialogRef;
|
|
3372
3282
|
}
|
|
3373
3283
|
}
|
|
3374
|
-
PoiDialogComponent.ɵfac = function PoiDialogComponent_Factory(t) { return new (t || PoiDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3284
|
+
PoiDialogComponent.ɵfac = function PoiDialogComponent_Factory(t) { return new (t || PoiDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
|
|
3375
3285
|
PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialogComponent, selectors: [["igo-poi-dialog"]], decls: 14, vars: 14, consts: [["mat-dialog-title", "", 1, "mat-typography"], ["mat-dialog-content", ""], ["matInput", "", "required", "", "autocomplete", "off", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-dialog-actions", ""], ["mat-button", "", "color", "primary", 3, "disabled", "click"], ["mat-button", "", 3, "click"]], template: function PoiDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3376
3286
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
3377
3287
|
i0.ɵɵtext(1);
|
|
3378
3288
|
i0.ɵɵpipe(2, "translate");
|
|
3379
3289
|
i0.ɵɵelementEnd();
|
|
3380
|
-
i0.ɵɵelementStart(3, "div", 1);
|
|
3381
|
-
i0.ɵɵelementStart(4, "mat-form-field");
|
|
3382
|
-
i0.ɵɵelementStart(5, "input", 2);
|
|
3290
|
+
i0.ɵɵelementStart(3, "div", 1)(4, "mat-form-field")(5, "input", 2);
|
|
3383
3291
|
i0.ɵɵlistener("ngModelChange", function PoiDialogComponent_Template_input_ngModelChange_5_listener($event) { return ctx.title = $event; });
|
|
3384
3292
|
i0.ɵɵpipe(6, "translate");
|
|
3385
|
-
i0.ɵɵelementEnd();
|
|
3386
|
-
i0.ɵɵ
|
|
3387
|
-
i0.ɵɵelementEnd();
|
|
3388
|
-
i0.ɵɵelementStart(7, "div", 3);
|
|
3389
|
-
i0.ɵɵelementStart(8, "button", 4);
|
|
3293
|
+
i0.ɵɵelementEnd()()();
|
|
3294
|
+
i0.ɵɵelementStart(7, "div", 3)(8, "button", 4);
|
|
3390
3295
|
i0.ɵɵlistener("click", function PoiDialogComponent_Template_button_click_8_listener() { return ctx.dialogRef.close(ctx.title); });
|
|
3391
3296
|
i0.ɵɵtext(9);
|
|
3392
3297
|
i0.ɵɵpipe(10, "translate");
|
|
@@ -3395,8 +3300,7 @@ PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialo
|
|
|
3395
3300
|
i0.ɵɵlistener("click", function PoiDialogComponent_Template_button_click_11_listener() { return ctx.dialogRef.close(false); });
|
|
3396
3301
|
i0.ɵɵtext(12);
|
|
3397
3302
|
i0.ɵɵpipe(13, "translate");
|
|
3398
|
-
i0.ɵɵelementEnd();
|
|
3399
|
-
i0.ɵɵelementEnd();
|
|
3303
|
+
i0.ɵɵelementEnd()();
|
|
3400
3304
|
} if (rf & 2) {
|
|
3401
3305
|
i0.ɵɵadvance(1);
|
|
3402
3306
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 6, "igo.context.poiButton.dialog.title"));
|
|
@@ -3408,14 +3312,11 @@ PoiDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiDialo
|
|
|
3408
3312
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "igo.common.confirmDialog.confirmBtn"), " ");
|
|
3409
3313
|
i0.ɵɵadvance(3);
|
|
3410
3314
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 12, "igo.common.confirmDialog.cancelBtn"), " ");
|
|
3411
|
-
} },
|
|
3315
|
+
} }, dependencies: [i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.RequiredValidator, i1$1.NgModel, i7.MatButton, i4.MatFormField, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i5$1.MatInput, i6.TranslatePipe], encapsulation: 2 });
|
|
3412
3316
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoiDialogComponent, [{
|
|
3413
3317
|
type: Component,
|
|
3414
|
-
args: [{
|
|
3415
|
-
|
|
3416
|
-
templateUrl: './poi-dialog.component.html'
|
|
3417
|
-
}]
|
|
3418
|
-
}], function () { return [{ type: i1$2.MatDialogRef }]; }, null); })();
|
|
3318
|
+
args: [{ selector: 'igo-poi-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{ 'igo.context.poiButton.dialog.title' | translate }}</h1>\r\n<div mat-dialog-content>\r\n <mat-form-field>\r\n <input matInput required autocomplete=\"off\"\r\n [placeholder]=\"'igo.context.poiButton.dialog.placeholder' | translate\"\r\n [(ngModel)]=\"title\">\r\n </mat-form-field>\r\n</div>\r\n<div mat-dialog-actions>\r\n <button mat-button color=\"primary\"\r\n [disabled]=\"!title\"\r\n (click)=\"dialogRef.close(title)\">\r\n {{'igo.common.confirmDialog.confirmBtn' | translate}}\r\n </button>\r\n <button mat-button\r\n (click)=\"dialogRef.close(false)\">\r\n {{'igo.common.confirmDialog.cancelBtn' |\u00A0translate}}\r\n </button>\r\n</div>\r\n" }]
|
|
3319
|
+
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
3419
3320
|
|
|
3420
3321
|
class PoiService {
|
|
3421
3322
|
constructor(http, config) {
|
|
@@ -3448,15 +3349,14 @@ PoiService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoiService, f
|
|
|
3448
3349
|
function PoiButtonComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
3449
3350
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
3450
3351
|
i0.ɵɵelementStart(0, "mat-option", 6);
|
|
3451
|
-
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_mat_option_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.zoomOnPoi(poi_r1.id); });
|
|
3352
|
+
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_mat_option_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.zoomOnPoi(poi_r1.id)); });
|
|
3452
3353
|
i0.ɵɵelementStart(1, "div", 2);
|
|
3453
3354
|
i0.ɵɵtext(2);
|
|
3454
3355
|
i0.ɵɵelementEnd();
|
|
3455
3356
|
i0.ɵɵelementStart(3, "button", 7);
|
|
3456
|
-
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_button_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.deletePoi(poi_r1); });
|
|
3357
|
+
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_8_Template_button_click_3_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const poi_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.deletePoi(poi_r1)); });
|
|
3457
3358
|
i0.ɵɵelement(4, "mat-icon", 8);
|
|
3458
|
-
i0.ɵɵelementEnd();
|
|
3459
|
-
i0.ɵɵelementEnd();
|
|
3359
|
+
i0.ɵɵelementEnd()();
|
|
3460
3360
|
} if (rf & 2) {
|
|
3461
3361
|
const poi_r1 = ctx.$implicit;
|
|
3462
3362
|
i0.ɵɵproperty("value", poi_r1.id);
|
|
@@ -3567,7 +3467,7 @@ class PoiButtonComponent {
|
|
|
3567
3467
|
});
|
|
3568
3468
|
}
|
|
3569
3469
|
}
|
|
3570
|
-
PoiButtonComponent.ɵfac = function PoiButtonComponent_Factory(t) { return new (t || PoiButtonComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3470
|
+
PoiButtonComponent.ɵfac = function PoiButtonComponent_Factory(t) { return new (t || PoiButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(PoiService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i14.ConfirmDialogService)); };
|
|
3571
3471
|
PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButtonComponent, selectors: [["igo-poi-button"]], inputs: { map: "map", color: "color" }, decls: 9, vars: 7, consts: [["floatPlaceholder", "never", 3, "placeholder"], [3, "click"], [1, "titlePoi"], ["igoStopPropagation", "", "mat-icon-button", "", "color", "primary", 1, "addPoi", "buttonPoi", 3, "click"], ["svgIcon", "plus-circle"], [3, "value", "click", 4, "ngFor", "ngForOf"], [3, "value", "click"], ["igoStopPropagation", "", "mat-icon-button", "", "color", "warn", 1, "deletePoi", "buttonPoi", 3, "click"], ["svgIcon", "delete"]], template: function PoiButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3572
3472
|
i0.ɵɵelementStart(0, "mat-select", 0);
|
|
3573
3473
|
i0.ɵɵpipe(1, "translate");
|
|
@@ -3580,8 +3480,7 @@ PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButto
|
|
|
3580
3480
|
i0.ɵɵelementStart(6, "button", 3);
|
|
3581
3481
|
i0.ɵɵlistener("click", function PoiButtonComponent_Template_button_click_6_listener() { return ctx.createPoi(); });
|
|
3582
3482
|
i0.ɵɵelement(7, "mat-icon", 4);
|
|
3583
|
-
i0.ɵɵelementEnd();
|
|
3584
|
-
i0.ɵɵelementEnd();
|
|
3483
|
+
i0.ɵɵelementEnd()();
|
|
3585
3484
|
i0.ɵɵtemplate(8, PoiButtonComponent_mat_option_8_Template, 5, 2, "mat-option", 5);
|
|
3586
3485
|
i0.ɵɵelementEnd();
|
|
3587
3486
|
} if (rf & 2) {
|
|
@@ -3590,15 +3489,11 @@ PoiButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButto
|
|
|
3590
3489
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, "igo.context.poiButton.create"));
|
|
3591
3490
|
i0.ɵɵadvance(4);
|
|
3592
3491
|
i0.ɵɵproperty("ngForOf", ctx.pois);
|
|
3593
|
-
} },
|
|
3492
|
+
} }, dependencies: [i5.NgForOf, i14.StopPropagationDirective, i4$1.MatIcon, i7.MatButton, i11.MatSelect, i12.MatOption, i6.TranslatePipe], styles: ["mat-select[_ngcontent-%COMP%]{width:150px;background-color:#fff;height:40px;padding-top:0}mat-select[_ngcontent-%COMP%] .mat-select-trigger{height:40px}mat-select[_ngcontent-%COMP%] .mat-select-value-text, mat-select[_ngcontent-%COMP%] .mat-select-placeholder{padding:5px;top:12px;position:relative}.mat-option[_ngcontent-%COMP%]{text-overflow:inherit}.titlePoi[_ngcontent-%COMP%]{max-width:135px;overflow:hidden;text-overflow:ellipsis;float:left}.buttonPoi[_ngcontent-%COMP%]{float:right;margin:4px -10px 4px 0}.buttonPoi[_ngcontent-%COMP%] .mat-icon{margin:0 8px}"] });
|
|
3594
3493
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoiButtonComponent, [{
|
|
3595
3494
|
type: Component,
|
|
3596
|
-
args: [{
|
|
3597
|
-
|
|
3598
|
-
templateUrl: './poi-button.component.html',
|
|
3599
|
-
styleUrls: ['./poi-button.component.scss']
|
|
3600
|
-
}]
|
|
3601
|
-
}], function () { return [{ type: i1$2.MatDialog }, { type: i2.AuthService }, { type: PoiService }, { type: i3.MessageService }, { type: i3.LanguageService }, { type: i5$1.ConfirmDialogService }]; }, { map: [{
|
|
3495
|
+
args: [{ selector: 'igo-poi-button', template: "<mat-select [placeholder]=\"'igo.context.poiButton.placeholder' |\u00A0translate\"\r\n floatPlaceholder=\"never\">\r\n\r\n <mat-option (click)=\"createPoi()\">\r\n <div class=\"titlePoi\">{{ 'igo.context.poiButton.create' |\u00A0translate }}</div>\r\n <button igoStopPropagation class=\"addPoi buttonPoi\"\r\n mat-icon-button\r\n color=\"primary\"\r\n (click)=\"createPoi()\">\r\n <mat-icon svgIcon=\"plus-circle\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n <mat-option *ngFor=\"let poi of pois\" [value]=\"poi.id\" (click)=\"zoomOnPoi(poi.id)\">\r\n <div class=\"titlePoi\">{{ poi.title }}</div>\r\n <button igoStopPropagation class=\"deletePoi buttonPoi\"\r\n mat-icon-button\r\n color=\"warn\"\r\n (click)=\"deletePoi(poi)\">\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n</mat-select>\r\n", styles: ["mat-select{width:150px;background-color:#fff;height:40px;padding-top:0}mat-select ::ng-deep .mat-select-trigger{height:40px}mat-select ::ng-deep .mat-select-value-text,mat-select ::ng-deep .mat-select-placeholder{padding:5px;top:12px;position:relative}.mat-option{text-overflow:inherit}.titlePoi{max-width:135px;overflow:hidden;text-overflow:ellipsis;float:left}.buttonPoi{float:right;margin:4px -10px 4px 0}.buttonPoi ::ng-deep .mat-icon{margin:0 8px}\n"] }]
|
|
3496
|
+
}], function () { return [{ type: i1$3.MatDialog }, { type: i2.AuthService }, { type: PoiService }, { type: i3.MessageService }, { type: i3.LanguageService }, { type: i14.ConfirmDialogService }]; }, { map: [{
|
|
3602
3497
|
type: Input
|
|
3603
3498
|
}], color: [{
|
|
3604
3499
|
type: Input
|
|
@@ -3617,14 +3512,13 @@ class UserDialogComponent {
|
|
|
3617
3512
|
this.storageService.clear();
|
|
3618
3513
|
}
|
|
3619
3514
|
}
|
|
3620
|
-
UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3515
|
+
UserDialogComponent.ɵfac = function UserDialogComponent_Factory(t) { return new (t || UserDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.StorageService)); };
|
|
3621
3516
|
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) {
|
|
3622
3517
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
3623
3518
|
i0.ɵɵtext(1);
|
|
3624
3519
|
i0.ɵɵpipe(2, "translate");
|
|
3625
3520
|
i0.ɵɵelementEnd();
|
|
3626
|
-
i0.ɵɵelementStart(3, "div", 1);
|
|
3627
|
-
i0.ɵɵelementStart(4, "p");
|
|
3521
|
+
i0.ɵɵelementStart(3, "div", 1)(4, "p");
|
|
3628
3522
|
i0.ɵɵtext(5);
|
|
3629
3523
|
i0.ɵɵpipe(6, "translate");
|
|
3630
3524
|
i0.ɵɵelementEnd();
|
|
@@ -3643,12 +3537,10 @@ UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDia
|
|
|
3643
3537
|
i0.ɵɵelementEnd();
|
|
3644
3538
|
i0.ɵɵelement(16, "br");
|
|
3645
3539
|
i0.ɵɵelementEnd();
|
|
3646
|
-
i0.ɵɵelementStart(17, "div", 3);
|
|
3647
|
-
i0.ɵɵelementStart(18, "button", 4);
|
|
3540
|
+
i0.ɵɵelementStart(17, "div", 3)(18, "button", 4);
|
|
3648
3541
|
i0.ɵɵlistener("click", function UserDialogComponent_Template_button_click_18_listener() { return ctx.dialogRef.close(false); });
|
|
3649
3542
|
i0.ɵɵtext(19, " OK ");
|
|
3650
|
-
i0.ɵɵelementEnd();
|
|
3651
|
-
i0.ɵɵelementEnd();
|
|
3543
|
+
i0.ɵɵelementEnd()();
|
|
3652
3544
|
} if (rf & 2) {
|
|
3653
3545
|
i0.ɵɵadvance(1);
|
|
3654
3546
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 8, "igo.context.userButton.infoTitle"));
|
|
@@ -3660,14 +3552,11 @@ UserDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserDia
|
|
|
3660
3552
|
i0.ɵɵtextInterpolate2("", i0.ɵɵpipeBind1(12, 14, "igo.context.userButton.dialog.expiration"), ": ", ctx.exp, "");
|
|
3661
3553
|
i0.ɵɵadvance(3);
|
|
3662
3554
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, "igo.context.userButton.dialog.clearPreferences"), " ");
|
|
3663
|
-
} },
|
|
3555
|
+
} }, dependencies: [i7.MatButton, i1$3.MatDialogTitle, i1$3.MatDialogContent, i1$3.MatDialogActions, i6.TranslatePipe], encapsulation: 2 });
|
|
3664
3556
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserDialogComponent, [{
|
|
3665
3557
|
type: Component,
|
|
3666
|
-
args: [{
|
|
3667
|
-
|
|
3668
|
-
templateUrl: './user-dialog.component.html'
|
|
3669
|
-
}]
|
|
3670
|
-
}], function () { return [{ type: i1$2.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
|
|
3558
|
+
args: [{ selector: 'igo-user-dialog', template: "<h1 mat-dialog-title class=\"mat-typography\">{{'igo.context.userButton.infoTitle' | translate}}</h1>\r\n<div mat-dialog-content class=\"mat-typography\">\r\n <p>{{'igo.context.userButton.dialog.user' | translate}}: {{user.sourceId}}</p>\r\n <p>{{'igo.context.userButton.dialog.email' | translate}}: {{user.email}}</p>\r\n <p>{{'igo.context.userButton.dialog.expiration' | translate}}: {{exp}}</p>\r\n <button mat-stroked-button color=\"primary\" (click)=\"clearPreferences()\">\r\n {{'igo.context.userButton.dialog.clearPreferences' | translate}}\r\n </button>\r\n <br>\r\n</div>\r\n<div mat-dialog-actions style=\"justify-content: center\">\r\n <button mat-raised-button color=\"primary\"\r\n (click)=\"dialogRef.close(false)\">\r\n OK\r\n </button>\r\n</div>\r\n" }]
|
|
3559
|
+
}], function () { return [{ type: i1$3.MatDialogRef }, { type: i2.AuthService }, { type: i3.StorageService }]; }, null); })();
|
|
3671
3560
|
|
|
3672
3561
|
function userButtonSlideInOut() {
|
|
3673
3562
|
return trigger('userButtonState', [
|
|
@@ -3693,25 +3582,22 @@ function UserButtonComponent_div_0_igo_poi_button_2_Template(rf, ctx) { if (rf &
|
|
|
3693
3582
|
} }
|
|
3694
3583
|
function UserButtonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
3695
3584
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
3696
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
3697
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
3585
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
3698
3586
|
i0.ɵɵtemplate(2, UserButtonComponent_div_0_igo_poi_button_2_Template, 1, 2, "igo-poi-button", 3);
|
|
3699
3587
|
i0.ɵɵelementStart(3, "button", 4);
|
|
3700
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.infoUser(); });
|
|
3588
|
+
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()); });
|
|
3701
3589
|
i0.ɵɵpipe(4, "translate");
|
|
3702
3590
|
i0.ɵɵelement(5, "mat-icon", 5);
|
|
3703
3591
|
i0.ɵɵelementEnd();
|
|
3704
3592
|
i0.ɵɵelementStart(6, "button", 4);
|
|
3705
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.logout(); });
|
|
3593
|
+
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()); });
|
|
3706
3594
|
i0.ɵɵpipe(7, "translate");
|
|
3707
3595
|
i0.ɵɵelement(8, "mat-icon", 6);
|
|
3708
|
-
i0.ɵɵelementEnd();
|
|
3709
|
-
i0.ɵɵelementEnd();
|
|
3596
|
+
i0.ɵɵelementEnd()();
|
|
3710
3597
|
i0.ɵɵelementStart(9, "button", 7);
|
|
3711
|
-
i0.ɵɵlistener("click", function UserButtonComponent_div_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.accountClick(); });
|
|
3598
|
+
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()); });
|
|
3712
3599
|
i0.ɵɵelement(10, "mat-icon", 8);
|
|
3713
|
-
i0.ɵɵelementEnd();
|
|
3714
|
-
i0.ɵɵelementEnd();
|
|
3600
|
+
i0.ɵɵelementEnd()();
|
|
3715
3601
|
} if (rf & 2) {
|
|
3716
3602
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
3717
3603
|
i0.ɵɵadvance(1);
|
|
@@ -3764,21 +3650,16 @@ class UserButtonComponent {
|
|
|
3764
3650
|
this.dialog.open(UserDialogComponent, { disableClose: false });
|
|
3765
3651
|
}
|
|
3766
3652
|
}
|
|
3767
|
-
UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1$
|
|
3653
|
+
UserButtonComponent.ɵfac = function UserButtonComponent_Factory(t) { return new (t || UserButtonComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService)); };
|
|
3768
3654
|
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) {
|
|
3769
3655
|
i0.ɵɵtemplate(0, UserButtonComponent_div_0_Template, 11, 11, "div", 0);
|
|
3770
3656
|
} if (rf & 2) {
|
|
3771
3657
|
i0.ɵɵproperty("ngIf", ctx.visible);
|
|
3772
|
-
} },
|
|
3658
|
+
} }, dependencies: [i5.NgIf, i4$1.MatIcon, i7.MatButton, i6$1.MatTooltip, PoiButtonComponent, i6.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()] } });
|
|
3773
3659
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserButtonComponent, [{
|
|
3774
3660
|
type: Component,
|
|
3775
|
-
args: [{
|
|
3776
|
-
|
|
3777
|
-
templateUrl: './user-button.component.html',
|
|
3778
|
-
styleUrls: ['./user-button.component.scss'],
|
|
3779
|
-
animations: [userButtonSlideInOut()]
|
|
3780
|
-
}]
|
|
3781
|
-
}], function () { return [{ type: i1$2.MatDialog }, { type: i3.ConfigService }, { type: i2.AuthService }]; }, { map: [{
|
|
3661
|
+
args: [{ selector: 'igo-user-button', animations: [userButtonSlideInOut()], template: "<div *ngIf=\"visible\" class=\"igo-user-button-container\">\r\n <div class=\"igo-user-button-more-container\" [@userButtonState]=\"expand ? 'expand' : 'collapse'\">\r\n\r\n <igo-poi-button *ngIf=\"hasApi\" [color]=\"color\" [map]=\"map\"></igo-poi-button>\r\n\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.userButton.infoTitle' | translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"infoUser()\">\r\n <mat-icon svgIcon=\"information-outline\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n [matTooltip]=\"'igo.context.userButton.logout' |\u00A0translate\"\r\n matTooltipPosition=\"above\"\r\n [color]=\"color\"\r\n (click)=\"logout()\">\r\n <mat-icon svgIcon=\"power\"></mat-icon>\r\n </button>\r\n\r\n </div>\r\n\r\n <button\r\n mat-icon-button\r\n [color]=\"auth.authenticated ? color : 'warn'\"\r\n (click)=\"accountClick()\">\r\n <mat-icon svgIcon=\"account-box\"></mat-icon>\r\n </button>\r\n</div>\r\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"] }]
|
|
3662
|
+
}], function () { return [{ type: i1$3.MatDialog }, { type: i3.ConfigService }, { type: i2.AuthService }]; }, { map: [{
|
|
3782
3663
|
type: Input
|
|
3783
3664
|
}], color: [{
|
|
3784
3665
|
type: Input
|
|
@@ -3793,22 +3674,20 @@ class IgoContextMapButtonModule {
|
|
|
3793
3674
|
}
|
|
3794
3675
|
IgoContextMapButtonModule.ɵfac = function IgoContextMapButtonModule_Factory(t) { return new (t || IgoContextMapButtonModule)(); };
|
|
3795
3676
|
IgoContextMapButtonModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextMapButtonModule });
|
|
3796
|
-
IgoContextMapButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [PoiService], imports: [
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
MatInputModule
|
|
3811
|
-
]] });
|
|
3677
|
+
IgoContextMapButtonModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [PoiService], imports: [CommonModule,
|
|
3678
|
+
IgoLanguageModule,
|
|
3679
|
+
IgoConfirmDialogModule,
|
|
3680
|
+
IgoStopPropagationModule,
|
|
3681
|
+
IgoAuthModule,
|
|
3682
|
+
FormsModule,
|
|
3683
|
+
MatIconModule,
|
|
3684
|
+
MatButtonModule,
|
|
3685
|
+
MatSelectModule,
|
|
3686
|
+
MatOptionModule,
|
|
3687
|
+
MatTooltipModule,
|
|
3688
|
+
MatFormFieldModule,
|
|
3689
|
+
MatDialogModule,
|
|
3690
|
+
MatInputModule] });
|
|
3812
3691
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextMapButtonModule, [{
|
|
3813
3692
|
type: NgModule,
|
|
3814
3693
|
args: [{
|
|
@@ -3873,32 +3752,30 @@ class IgoContextManagerModule {
|
|
|
3873
3752
|
}
|
|
3874
3753
|
IgoContextManagerModule.ɵfac = function IgoContextManagerModule_Factory(t) { return new (t || IgoContextManagerModule)(); };
|
|
3875
3754
|
IgoContextManagerModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextManagerModule });
|
|
3876
|
-
IgoContextManagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
IgoActionbarModule
|
|
3901
|
-
]] });
|
|
3755
|
+
IgoContextManagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
3756
|
+
FormsModule,
|
|
3757
|
+
ReactiveFormsModule,
|
|
3758
|
+
MatFormFieldModule,
|
|
3759
|
+
MatInputModule,
|
|
3760
|
+
MatIconModule,
|
|
3761
|
+
MatButtonModule,
|
|
3762
|
+
MatTooltipModule,
|
|
3763
|
+
MatListModule,
|
|
3764
|
+
MatCheckboxModule,
|
|
3765
|
+
MatRadioModule,
|
|
3766
|
+
MatDialogModule,
|
|
3767
|
+
MatMenuModule,
|
|
3768
|
+
MatOptionModule,
|
|
3769
|
+
MatAutocompleteModule,
|
|
3770
|
+
IgoAuthModule,
|
|
3771
|
+
IgoListModule,
|
|
3772
|
+
IgoKeyValueModule,
|
|
3773
|
+
IgoCollapsibleModule,
|
|
3774
|
+
IgoStopPropagationModule,
|
|
3775
|
+
IgoLanguageModule,
|
|
3776
|
+
IgoContextImportExportModule,
|
|
3777
|
+
IgoContextMapButtonModule,
|
|
3778
|
+
IgoActionbarModule] });
|
|
3902
3779
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoContextManagerModule, [{
|
|
3903
3780
|
type: NgModule,
|
|
3904
3781
|
args: [{
|
|
@@ -4087,7 +3964,7 @@ class ShareMapService {
|
|
|
4087
3964
|
}
|
|
4088
3965
|
makeLayersByService(layers, contextLayersID, typeService) {
|
|
4089
3966
|
const addedLayersByService = [];
|
|
4090
|
-
for (const layer of layers.filter(l =>
|
|
3967
|
+
for (const layer of layers.filter(l => l.dataSource.options?.type === typeService)) {
|
|
4091
3968
|
if (contextLayersID.indexOf(layer.id) === -1) {
|
|
4092
3969
|
let linkUrl = encodeURIComponent(layer.dataSource.options.url);
|
|
4093
3970
|
let addedLayer = '';
|
|
@@ -4190,186 +4067,6 @@ ShareMapService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ShareMap
|
|
|
4190
4067
|
type: Optional
|
|
4191
4068
|
}] }]; }, null); })();
|
|
4192
4069
|
|
|
4193
|
-
function ShareMapApiComponent_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
4194
|
-
i0.ɵɵelementStart(0, "span", 11);
|
|
4195
|
-
i0.ɵɵtext(1);
|
|
4196
|
-
i0.ɵɵelementEnd();
|
|
4197
|
-
} if (rf & 2) {
|
|
4198
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
4199
|
-
i0.ɵɵadvance(1);
|
|
4200
|
-
i0.ɵɵtextInterpolate1("", ctx_r0.userId, "-");
|
|
4201
|
-
} }
|
|
4202
|
-
function ShareMapApiComponent_button_18_Template(rf, ctx) { if (rf & 1) {
|
|
4203
|
-
i0.ɵɵelementStart(0, "button", 12);
|
|
4204
|
-
i0.ɵɵtext(1);
|
|
4205
|
-
i0.ɵɵpipe(2, "translate");
|
|
4206
|
-
i0.ɵɵelementEnd();
|
|
4207
|
-
} if (rf & 2) {
|
|
4208
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
4209
|
-
i0.ɵɵproperty("disabled", !ctx_r1.form.valid);
|
|
4210
|
-
i0.ɵɵadvance(1);
|
|
4211
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "igo.context.shareMap.button"), " ");
|
|
4212
|
-
} }
|
|
4213
|
-
function ShareMapApiComponent_button_19_Template(rf, ctx) { if (rf & 1) {
|
|
4214
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
4215
|
-
i0.ɵɵelementStart(0, "button", 13);
|
|
4216
|
-
i0.ɵɵlistener("click", function ShareMapApiComponent_button_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.updateContextShared(ctx_r4.form.value); });
|
|
4217
|
-
i0.ɵɵtext(1);
|
|
4218
|
-
i0.ɵɵpipe(2, "translate");
|
|
4219
|
-
i0.ɵɵelementEnd();
|
|
4220
|
-
} if (rf & 2) {
|
|
4221
|
-
i0.ɵɵadvance(1);
|
|
4222
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.refreshBtn"), " ");
|
|
4223
|
-
} }
|
|
4224
|
-
function ShareMapApiComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
4225
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
4226
|
-
i0.ɵɵelementStart(0, "div", 14);
|
|
4227
|
-
i0.ɵɵelementStart(1, "mat-form-field");
|
|
4228
|
-
i0.ɵɵelement(2, "textarea", 15, 16);
|
|
4229
|
-
i0.ɵɵpipe(4, "translate");
|
|
4230
|
-
i0.ɵɵelementStart(5, "button", 17);
|
|
4231
|
-
i0.ɵɵlistener("click", function ShareMapApiComponent_div_20_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const _r6 = i0.ɵɵreference(3); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.copyTextToClipboard(_r6); });
|
|
4232
|
-
i0.ɵɵpipe(6, "translate");
|
|
4233
|
-
i0.ɵɵelement(7, "mat-icon", 18);
|
|
4234
|
-
i0.ɵɵelementEnd();
|
|
4235
|
-
i0.ɵɵelementEnd();
|
|
4236
|
-
i0.ɵɵelement(8, "div");
|
|
4237
|
-
i0.ɵɵelementEnd();
|
|
4238
|
-
} if (rf & 2) {
|
|
4239
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
4240
|
-
i0.ɵɵadvance(2);
|
|
4241
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 3, "igo.context.shareMap.placeholderLink"))("value", ctx_r3.url);
|
|
4242
|
-
i0.ɵɵadvance(3);
|
|
4243
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 5, "igo.context.shareMap.copy"));
|
|
4244
|
-
} }
|
|
4245
|
-
class ShareMapApiComponent {
|
|
4246
|
-
constructor(languageService, messageService, auth, shareMapService, formBuilder) {
|
|
4247
|
-
this.languageService = languageService;
|
|
4248
|
-
this.messageService = messageService;
|
|
4249
|
-
this.auth = auth;
|
|
4250
|
-
this.shareMapService = shareMapService;
|
|
4251
|
-
this.formBuilder = formBuilder;
|
|
4252
|
-
}
|
|
4253
|
-
ngOnInit() {
|
|
4254
|
-
this.auth.authenticate$.subscribe(auth => {
|
|
4255
|
-
const decodeToken = this.auth.decodeToken();
|
|
4256
|
-
this.userId = decodeToken.user ? decodeToken.user.id : undefined;
|
|
4257
|
-
this.buildForm();
|
|
4258
|
-
});
|
|
4259
|
-
}
|
|
4260
|
-
createUrl(values = {}) {
|
|
4261
|
-
const inputs = Object.assign({}, values);
|
|
4262
|
-
inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
|
|
4263
|
-
this.url = this.shareMapService.getUrlWithApi(inputs);
|
|
4264
|
-
this.shareMapService.createContextShared(this.map, inputs).subscribe(rep => {
|
|
4265
|
-
this.idContextShared = rep.id;
|
|
4266
|
-
const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
|
|
4267
|
-
const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
|
|
4268
|
-
value: inputs.title
|
|
4269
|
-
});
|
|
4270
|
-
this.messageService.success(msg, title);
|
|
4271
|
-
}, err => {
|
|
4272
|
-
err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
|
|
4273
|
-
this.messageService.showError(err);
|
|
4274
|
-
});
|
|
4275
|
-
}
|
|
4276
|
-
updateContextShared(values = {}) {
|
|
4277
|
-
const inputs = Object.assign({}, values);
|
|
4278
|
-
inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
|
|
4279
|
-
this.shareMapService.updateContextShared(this.map, inputs, this.idContextShared).subscribe(rep => {
|
|
4280
|
-
const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
|
|
4281
|
-
const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
|
|
4282
|
-
value: inputs.title
|
|
4283
|
-
});
|
|
4284
|
-
this.messageService.success(msg, title);
|
|
4285
|
-
}, err => {
|
|
4286
|
-
err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
|
|
4287
|
-
this.messageService.showError(err);
|
|
4288
|
-
});
|
|
4289
|
-
}
|
|
4290
|
-
copyTextToClipboard(textArea) {
|
|
4291
|
-
const successful = Clipboard.copy(textArea);
|
|
4292
|
-
if (successful) {
|
|
4293
|
-
const translate = this.languageService.translate;
|
|
4294
|
-
const title = translate.instant('igo.context.shareMap.dialog.copyTitle');
|
|
4295
|
-
const msg = translate.instant('igo.context.shareMap.dialog.copyMsg');
|
|
4296
|
-
this.messageService.success(msg, title);
|
|
4297
|
-
}
|
|
4298
|
-
}
|
|
4299
|
-
buildForm() {
|
|
4300
|
-
this.url = undefined;
|
|
4301
|
-
const id = uuid();
|
|
4302
|
-
let title = 'Partage ';
|
|
4303
|
-
title += this.userId ? `(${this.userId}-${id})` : `(${id})`;
|
|
4304
|
-
this.form = this.formBuilder.group({
|
|
4305
|
-
title: [title],
|
|
4306
|
-
uri: [id]
|
|
4307
|
-
});
|
|
4308
|
-
}
|
|
4309
|
-
}
|
|
4310
|
-
ShareMapApiComponent.ɵfac = function ShareMapApiComponent_Factory(t) { return new (t || ShareMapApiComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i4.FormBuilder)); };
|
|
4311
|
-
ShareMapApiComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapApiComponent, selectors: [["igo-share-map-api"]], inputs: { map: "map" }, decls: 21, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "igo-input-container"], ["matInput", "", "required", "", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "igo-input-container"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "required", "", "formControlName", "uri", 3, "readonly", "placeholder"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled", 4, "ngIf"], ["mat-raised-button", "", "type", "button", 3, "click", 4, "ngIf"], ["class", "igo-input-container linkToShare", 4, "ngIf"], [1, "prefix"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], ["mat-raised-button", "", "type", "button", 3, "click"], [1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 1, "textAreaWithButton", 3, "placeholder", "value"], ["textArea", ""], ["mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"]], template: function ShareMapApiComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4312
|
-
i0.ɵɵelementStart(0, "form", 0);
|
|
4313
|
-
i0.ɵɵlistener("ngSubmit", function ShareMapApiComponent_Template_form_ngSubmit_0_listener() { return ctx.createUrl(ctx.form.value); });
|
|
4314
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
4315
|
-
i0.ɵɵelementStart(2, "mat-form-field");
|
|
4316
|
-
i0.ɵɵelement(3, "input", 2);
|
|
4317
|
-
i0.ɵɵpipe(4, "translate");
|
|
4318
|
-
i0.ɵɵelementStart(5, "mat-error");
|
|
4319
|
-
i0.ɵɵtext(6);
|
|
4320
|
-
i0.ɵɵpipe(7, "translate");
|
|
4321
|
-
i0.ɵɵelementEnd();
|
|
4322
|
-
i0.ɵɵelementEnd();
|
|
4323
|
-
i0.ɵɵelementEnd();
|
|
4324
|
-
i0.ɵɵelementStart(8, "div", 3);
|
|
4325
|
-
i0.ɵɵelementStart(9, "mat-form-field");
|
|
4326
|
-
i0.ɵɵtemplate(10, ShareMapApiComponent_span_10_Template, 2, 1, "span", 4);
|
|
4327
|
-
i0.ɵɵelementStart(11, "span", 5);
|
|
4328
|
-
i0.ɵɵelement(12, "input", 6);
|
|
4329
|
-
i0.ɵɵpipe(13, "translate");
|
|
4330
|
-
i0.ɵɵelementEnd();
|
|
4331
|
-
i0.ɵɵelementStart(14, "mat-error");
|
|
4332
|
-
i0.ɵɵtext(15);
|
|
4333
|
-
i0.ɵɵpipe(16, "translate");
|
|
4334
|
-
i0.ɵɵelementEnd();
|
|
4335
|
-
i0.ɵɵelementEnd();
|
|
4336
|
-
i0.ɵɵelementEnd();
|
|
4337
|
-
i0.ɵɵelementStart(17, "div", 7);
|
|
4338
|
-
i0.ɵɵtemplate(18, ShareMapApiComponent_button_18_Template, 3, 4, "button", 8);
|
|
4339
|
-
i0.ɵɵtemplate(19, ShareMapApiComponent_button_19_Template, 3, 3, "button", 9);
|
|
4340
|
-
i0.ɵɵelementEnd();
|
|
4341
|
-
i0.ɵɵelementEnd();
|
|
4342
|
-
i0.ɵɵtemplate(20, ShareMapApiComponent_div_20_Template, 9, 7, "div", 10);
|
|
4343
|
-
} if (rf & 2) {
|
|
4344
|
-
i0.ɵɵproperty("formGroup", ctx.form);
|
|
4345
|
-
i0.ɵɵadvance(3);
|
|
4346
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 10, "igo.context.contextManager.form.title"));
|
|
4347
|
-
i0.ɵɵadvance(3);
|
|
4348
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, "igo.context.contextManager.form.titleRequired"), " ");
|
|
4349
|
-
i0.ɵɵadvance(4);
|
|
4350
|
-
i0.ɵɵproperty("ngIf", ctx.userId);
|
|
4351
|
-
i0.ɵɵadvance(2);
|
|
4352
|
-
i0.ɵɵproperty("readonly", !ctx.userId)("placeholder", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.uri"));
|
|
4353
|
-
i0.ɵɵadvance(3);
|
|
4354
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "igo.context.contextManager.form.uriRequired"), " ");
|
|
4355
|
-
i0.ɵɵadvance(3);
|
|
4356
|
-
i0.ɵɵproperty("ngIf", !ctx.url);
|
|
4357
|
-
i0.ɵɵadvance(1);
|
|
4358
|
-
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4359
|
-
i0.ɵɵadvance(1);
|
|
4360
|
-
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4361
|
-
} }, directives: [i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, i3$1.MatFormField, i3$2.MatInput, i4.DefaultValueAccessor, i4.RequiredValidator, i4.NgControlStatus, i4.FormControlName, i3$1.MatError, i7.NgIf, i5.MatButton, i6$2.MatTooltip, i9.MatIcon], pipes: [i6$1.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form[_ngcontent-%COMP%]{padding:20px 5px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
|
|
4362
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapApiComponent, [{
|
|
4363
|
-
type: Component,
|
|
4364
|
-
args: [{
|
|
4365
|
-
selector: 'igo-share-map-api',
|
|
4366
|
-
templateUrl: './share-map-api.component.html',
|
|
4367
|
-
styleUrls: ['./share-map-api.component.scss']
|
|
4368
|
-
}]
|
|
4369
|
-
}], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: ShareMapService }, { type: i4.FormBuilder }]; }, { map: [{
|
|
4370
|
-
type: Input
|
|
4371
|
-
}] }); })();
|
|
4372
|
-
|
|
4373
4070
|
function ShareMapUrlComponent_h4_13_Template(rf, ctx) { if (rf & 1) {
|
|
4374
4071
|
i0.ɵɵelementStart(0, "h4");
|
|
4375
4072
|
i0.ɵɵtext(1);
|
|
@@ -4511,19 +4208,16 @@ class ShareMapUrlComponent {
|
|
|
4511
4208
|
ShareMapUrlComponent.ɵfac = function ShareMapUrlComponent_Factory(t) { return new (t || ShareMapUrlComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
4512
4209
|
ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapUrlComponent, selectors: [["igo-share-map-url"]], inputs: { map: "map" }, decls: 37, vars: 40, consts: [[1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 3, "placeholder", "value"], ["textArea", ""], [1, "igo-form-button-group"], ["mat-raised-button", "", 3, "click"], ["svgIcon", "content-copy"], [1, "mat-typography"], [4, "ngIf"]], template: function ShareMapUrlComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4513
4210
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
4514
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
4515
|
-
i0.ɵɵelementStart(1, "mat-form-field");
|
|
4211
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mat-form-field");
|
|
4516
4212
|
i0.ɵɵelement(2, "textarea", 1, 2);
|
|
4517
4213
|
i0.ɵɵpipe(4, "translate");
|
|
4518
4214
|
i0.ɵɵelementEnd();
|
|
4519
|
-
i0.ɵɵelementStart(5, "div", 3);
|
|
4520
|
-
i0.ɵɵ
|
|
4521
|
-
i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r12); const _r0 = i0.ɵɵreference(3); return ctx.copyTextToClipboard(_r0); });
|
|
4215
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "button", 4);
|
|
4216
|
+
i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r12); const _r0 = i0.ɵɵreference(3); return i0.ɵɵresetView(ctx.copyTextToClipboard(_r0)); });
|
|
4522
4217
|
i0.ɵɵelement(7, "mat-icon", 5);
|
|
4523
4218
|
i0.ɵɵtext(8);
|
|
4524
4219
|
i0.ɵɵpipe(9, "translate");
|
|
4525
|
-
i0.ɵɵelementEnd();
|
|
4526
|
-
i0.ɵɵelementEnd();
|
|
4220
|
+
i0.ɵɵelementEnd()();
|
|
4527
4221
|
i0.ɵɵelementStart(10, "div");
|
|
4528
4222
|
i0.ɵɵelement(11, "br");
|
|
4529
4223
|
i0.ɵɵelementStart(12, "section", 6);
|
|
@@ -4552,10 +4246,7 @@ ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareM
|
|
|
4552
4246
|
i0.ɵɵpipe(34, "translate");
|
|
4553
4247
|
i0.ɵɵtemplate(35, ShareMapUrlComponent_li_35_Template, 3, 3, "li", 7);
|
|
4554
4248
|
i0.ɵɵpipe(36, "translate");
|
|
4555
|
-
i0.ɵɵelementEnd();
|
|
4556
|
-
i0.ɵɵelementEnd();
|
|
4557
|
-
i0.ɵɵelementEnd();
|
|
4558
|
-
i0.ɵɵelementEnd();
|
|
4249
|
+
i0.ɵɵelementEnd()()()();
|
|
4559
4250
|
} if (rf & 2) {
|
|
4560
4251
|
i0.ɵɵadvance(2);
|
|
4561
4252
|
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 14, "igo.context.shareMap.placeholderLink"))("value", ctx.url);
|
|
@@ -4583,29 +4274,190 @@ ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareM
|
|
|
4583
4274
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(34, 36, "igo.context.shareMap.filterOgc") !== "");
|
|
4584
4275
|
i0.ɵɵadvance(2);
|
|
4585
4276
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(36, 38, "igo.context.shareMap.filterTime") !== "");
|
|
4586
|
-
} },
|
|
4277
|
+
} }, dependencies: [i5.NgIf, i4$1.MatIcon, i4.MatFormField, i5$1.MatInput, i7.MatButton, i6.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
|
|
4587
4278
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapUrlComponent, [{
|
|
4588
4279
|
type: Component,
|
|
4589
|
-
args: [{
|
|
4590
|
-
selector: 'igo-share-map-url',
|
|
4591
|
-
templateUrl: './share-map-url.component.html',
|
|
4592
|
-
styleUrls: ['./share-map-url.component.scss']
|
|
4593
|
-
}]
|
|
4280
|
+
args: [{ selector: 'igo-share-map-url', template: "<div class=\"igo-input-container linkToShare\">\r\n <mat-form-field>\r\n <textarea #textArea matInput readonly rows=\"3\"\r\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\r\n [value]=\"url\"></textarea>\r\n </mat-form-field>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button\r\n mat-raised-button\r\n (click)=\"copyTextToClipboard(textArea)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n {{ 'igo.context.shareMap.copy' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <br/>\r\n <section class=\"mat-typography\">\r\n <h4 *ngIf=\"('igo.context.shareMap.included' | translate)!==''\">{{'igo.context.shareMap.included' | translate}}</h4>\r\n <ul>\r\n <li *ngIf=\"('igo.context.shareMap.context' | translate)!==''\">{{'igo.context.shareMap.context' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.center' | translate)!==''\">{{'igo.context.shareMap.center' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.zoom' | translate)!==''\">{{'igo.context.shareMap.zoom' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.addedLayers' | translate)!==''\">{{'igo.context.shareMap.addedLayers' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.visibleInvisible' | translate)!==''\">{{'igo.context.shareMap.visibleInvisible' | translate}}</li>\r\n </ul>\r\n\r\n <h4 *ngIf=\"('igo.context.shareMap.excluded' | translate)!==''\">{{'igo.context.shareMap.excluded' | translate}}</h4>\r\n <ul>\r\n <li *ngIf=\"('igo.context.shareMap.order' | translate)!==''\">{{'igo.context.shareMap.order' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.opacity' | translate)!==''\">{{'igo.context.shareMap.opacity' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.filterOgc' | translate)!==''\">{{'igo.context.shareMap.filterOgc' | translate}}</li>\r\n <li *ngIf=\"('igo.context.shareMap.filterTime' | translate)!==''\">{{'igo.context.shareMap.filterTime' | translate}}</li>\r\n </ul>\r\n </section>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";mat-form-field{width:100%}.linkToShare\\a0 {padding:25px 5px 5px}.linkToShare\\a0 textarea{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0 textarea.textAreaWithButton{width:calc(100% - 60px)}.linkToShare\\a0 mat-form-field>button{float:right;margin:-10px 0}.igo-form-button-group{text-align:center;padding-top:10px}\n"] }]
|
|
4594
4281
|
}], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: ShareMapService }, { type: i0.ChangeDetectorRef }]; }, { map: [{
|
|
4595
4282
|
type: Input
|
|
4596
4283
|
}] }); })();
|
|
4597
4284
|
|
|
4285
|
+
function ShareMapApiComponent_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
4286
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
4287
|
+
i0.ɵɵtext(1);
|
|
4288
|
+
i0.ɵɵelementEnd();
|
|
4289
|
+
} if (rf & 2) {
|
|
4290
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
4291
|
+
i0.ɵɵadvance(1);
|
|
4292
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.userId, "-");
|
|
4293
|
+
} }
|
|
4294
|
+
function ShareMapApiComponent_button_18_Template(rf, ctx) { if (rf & 1) {
|
|
4295
|
+
i0.ɵɵelementStart(0, "button", 12);
|
|
4296
|
+
i0.ɵɵtext(1);
|
|
4297
|
+
i0.ɵɵpipe(2, "translate");
|
|
4298
|
+
i0.ɵɵelementEnd();
|
|
4299
|
+
} if (rf & 2) {
|
|
4300
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
4301
|
+
i0.ɵɵproperty("disabled", !ctx_r1.form.valid);
|
|
4302
|
+
i0.ɵɵadvance(1);
|
|
4303
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "igo.context.shareMap.button"), " ");
|
|
4304
|
+
} }
|
|
4305
|
+
function ShareMapApiComponent_button_19_Template(rf, ctx) { if (rf & 1) {
|
|
4306
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
4307
|
+
i0.ɵɵelementStart(0, "button", 13);
|
|
4308
|
+
i0.ɵɵlistener("click", function ShareMapApiComponent_button_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.updateContextShared(ctx_r4.form.value)); });
|
|
4309
|
+
i0.ɵɵtext(1);
|
|
4310
|
+
i0.ɵɵpipe(2, "translate");
|
|
4311
|
+
i0.ɵɵelementEnd();
|
|
4312
|
+
} if (rf & 2) {
|
|
4313
|
+
i0.ɵɵadvance(1);
|
|
4314
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.refreshBtn"), " ");
|
|
4315
|
+
} }
|
|
4316
|
+
function ShareMapApiComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
4317
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
4318
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "mat-form-field");
|
|
4319
|
+
i0.ɵɵelement(2, "textarea", 15, 16);
|
|
4320
|
+
i0.ɵɵpipe(4, "translate");
|
|
4321
|
+
i0.ɵɵelementStart(5, "button", 17);
|
|
4322
|
+
i0.ɵɵlistener("click", function ShareMapApiComponent_div_20_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r8); const _r6 = i0.ɵɵreference(3); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.copyTextToClipboard(_r6)); });
|
|
4323
|
+
i0.ɵɵpipe(6, "translate");
|
|
4324
|
+
i0.ɵɵelement(7, "mat-icon", 18);
|
|
4325
|
+
i0.ɵɵelementEnd()();
|
|
4326
|
+
i0.ɵɵelement(8, "div");
|
|
4327
|
+
i0.ɵɵelementEnd();
|
|
4328
|
+
} if (rf & 2) {
|
|
4329
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
4330
|
+
i0.ɵɵadvance(2);
|
|
4331
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 3, "igo.context.shareMap.placeholderLink"))("value", ctx_r3.url);
|
|
4332
|
+
i0.ɵɵadvance(3);
|
|
4333
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(6, 5, "igo.context.shareMap.copy"));
|
|
4334
|
+
} }
|
|
4335
|
+
class ShareMapApiComponent {
|
|
4336
|
+
constructor(languageService, messageService, auth, shareMapService, formBuilder) {
|
|
4337
|
+
this.languageService = languageService;
|
|
4338
|
+
this.messageService = messageService;
|
|
4339
|
+
this.auth = auth;
|
|
4340
|
+
this.shareMapService = shareMapService;
|
|
4341
|
+
this.formBuilder = formBuilder;
|
|
4342
|
+
}
|
|
4343
|
+
ngOnInit() {
|
|
4344
|
+
this.auth.authenticate$.subscribe(auth => {
|
|
4345
|
+
const decodeToken = this.auth.decodeToken();
|
|
4346
|
+
this.userId = decodeToken.user ? decodeToken.user.id : undefined;
|
|
4347
|
+
this.buildForm();
|
|
4348
|
+
});
|
|
4349
|
+
}
|
|
4350
|
+
createUrl(values = {}) {
|
|
4351
|
+
const inputs = Object.assign({}, values);
|
|
4352
|
+
inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
|
|
4353
|
+
this.url = this.shareMapService.getUrlWithApi(inputs);
|
|
4354
|
+
this.shareMapService.createContextShared(this.map, inputs).subscribe(rep => {
|
|
4355
|
+
this.idContextShared = rep.id;
|
|
4356
|
+
const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
|
|
4357
|
+
const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
|
|
4358
|
+
value: inputs.title
|
|
4359
|
+
});
|
|
4360
|
+
this.messageService.success(msg, title);
|
|
4361
|
+
}, err => {
|
|
4362
|
+
err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
|
|
4363
|
+
this.messageService.showError(err);
|
|
4364
|
+
});
|
|
4365
|
+
}
|
|
4366
|
+
updateContextShared(values = {}) {
|
|
4367
|
+
const inputs = Object.assign({}, values);
|
|
4368
|
+
inputs.uri = this.userId ? `${this.userId}-${values.uri}` : values.uri;
|
|
4369
|
+
this.shareMapService.updateContextShared(this.map, inputs, this.idContextShared).subscribe(rep => {
|
|
4370
|
+
const title = this.languageService.translate.instant('igo.context.contextManager.dialog.saveTitle');
|
|
4371
|
+
const msg = this.languageService.translate.instant('igo.context.contextManager.dialog.saveMsg', {
|
|
4372
|
+
value: inputs.title
|
|
4373
|
+
});
|
|
4374
|
+
this.messageService.success(msg, title);
|
|
4375
|
+
}, err => {
|
|
4376
|
+
err.error.title = this.languageService.translate.instant('igo.context.shareMap.errorTitle');
|
|
4377
|
+
this.messageService.showError(err);
|
|
4378
|
+
});
|
|
4379
|
+
}
|
|
4380
|
+
copyTextToClipboard(textArea) {
|
|
4381
|
+
const successful = Clipboard.copy(textArea);
|
|
4382
|
+
if (successful) {
|
|
4383
|
+
const translate = this.languageService.translate;
|
|
4384
|
+
const title = translate.instant('igo.context.shareMap.dialog.copyTitle');
|
|
4385
|
+
const msg = translate.instant('igo.context.shareMap.dialog.copyMsg');
|
|
4386
|
+
this.messageService.success(msg, title);
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
buildForm() {
|
|
4390
|
+
this.url = undefined;
|
|
4391
|
+
const id = uuid();
|
|
4392
|
+
let title = 'Partage ';
|
|
4393
|
+
title += this.userId ? `(${this.userId}-${id})` : `(${id})`;
|
|
4394
|
+
this.form = this.formBuilder.group({
|
|
4395
|
+
title: [title],
|
|
4396
|
+
uri: [id]
|
|
4397
|
+
});
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
ShareMapApiComponent.ɵfac = function ShareMapApiComponent_Factory(t) { return new (t || ShareMapApiComponent)(i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(ShareMapService), i0.ɵɵdirectiveInject(i1$1.FormBuilder)); };
|
|
4401
|
+
ShareMapApiComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapApiComponent, selectors: [["igo-share-map-api"]], inputs: { map: "map" }, decls: 21, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "igo-input-container"], ["matInput", "", "required", "", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "igo-input-container"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "required", "", "formControlName", "uri", 3, "readonly", "placeholder"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled", 4, "ngIf"], ["mat-raised-button", "", "type", "button", 3, "click", 4, "ngIf"], ["class", "igo-input-container linkToShare", 4, "ngIf"], [1, "prefix"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], ["mat-raised-button", "", "type", "button", 3, "click"], [1, "igo-input-container", "linkToShare"], ["matInput", "", "readonly", "", "rows", "3", 1, "textAreaWithButton", 3, "placeholder", "value"], ["textArea", ""], ["mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"]], template: function ShareMapApiComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4402
|
+
i0.ɵɵelementStart(0, "form", 0);
|
|
4403
|
+
i0.ɵɵlistener("ngSubmit", function ShareMapApiComponent_Template_form_ngSubmit_0_listener() { return ctx.createUrl(ctx.form.value); });
|
|
4404
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "mat-form-field");
|
|
4405
|
+
i0.ɵɵelement(3, "input", 2);
|
|
4406
|
+
i0.ɵɵpipe(4, "translate");
|
|
4407
|
+
i0.ɵɵelementStart(5, "mat-error");
|
|
4408
|
+
i0.ɵɵtext(6);
|
|
4409
|
+
i0.ɵɵpipe(7, "translate");
|
|
4410
|
+
i0.ɵɵelementEnd()()();
|
|
4411
|
+
i0.ɵɵelementStart(8, "div", 3)(9, "mat-form-field");
|
|
4412
|
+
i0.ɵɵtemplate(10, ShareMapApiComponent_span_10_Template, 2, 1, "span", 4);
|
|
4413
|
+
i0.ɵɵelementStart(11, "span", 5);
|
|
4414
|
+
i0.ɵɵelement(12, "input", 6);
|
|
4415
|
+
i0.ɵɵpipe(13, "translate");
|
|
4416
|
+
i0.ɵɵelementEnd();
|
|
4417
|
+
i0.ɵɵelementStart(14, "mat-error");
|
|
4418
|
+
i0.ɵɵtext(15);
|
|
4419
|
+
i0.ɵɵpipe(16, "translate");
|
|
4420
|
+
i0.ɵɵelementEnd()()();
|
|
4421
|
+
i0.ɵɵelementStart(17, "div", 7);
|
|
4422
|
+
i0.ɵɵtemplate(18, ShareMapApiComponent_button_18_Template, 3, 4, "button", 8);
|
|
4423
|
+
i0.ɵɵtemplate(19, ShareMapApiComponent_button_19_Template, 3, 3, "button", 9);
|
|
4424
|
+
i0.ɵɵelementEnd()();
|
|
4425
|
+
i0.ɵɵtemplate(20, ShareMapApiComponent_div_20_Template, 9, 7, "div", 10);
|
|
4426
|
+
} if (rf & 2) {
|
|
4427
|
+
i0.ɵɵproperty("formGroup", ctx.form);
|
|
4428
|
+
i0.ɵɵadvance(3);
|
|
4429
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 10, "igo.context.contextManager.form.title"));
|
|
4430
|
+
i0.ɵɵadvance(3);
|
|
4431
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, "igo.context.contextManager.form.titleRequired"), " ");
|
|
4432
|
+
i0.ɵɵadvance(4);
|
|
4433
|
+
i0.ɵɵproperty("ngIf", ctx.userId);
|
|
4434
|
+
i0.ɵɵadvance(2);
|
|
4435
|
+
i0.ɵɵproperty("readonly", !ctx.userId)("placeholder", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.uri"));
|
|
4436
|
+
i0.ɵɵadvance(3);
|
|
4437
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "igo.context.contextManager.form.uriRequired"), " ");
|
|
4438
|
+
i0.ɵɵadvance(3);
|
|
4439
|
+
i0.ɵɵproperty("ngIf", !ctx.url);
|
|
4440
|
+
i0.ɵɵadvance(1);
|
|
4441
|
+
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4442
|
+
i0.ɵɵadvance(1);
|
|
4443
|
+
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4444
|
+
} }, dependencies: [i5.NgIf, i1$1.ɵNgNoValidate, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.RequiredValidator, i1$1.FormGroupDirective, i1$1.FormControlName, i4$1.MatIcon, i6$1.MatTooltip, i4.MatError, i4.MatFormField, i5$1.MatInput, i7.MatButton, i6.TranslatePipe], styles: ["@charset \"UTF-8\";mat-form-field[_ngcontent-%COMP%]{width:100%}#uriInput[_ngcontent-%COMP%] .fieldWrapper[_ngcontent-%COMP%]{display:block;overflow:hidden}#uriInput[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{float:left}.linkToShare\\a0[_ngcontent-%COMP%] {padding:25px 5px 5px}.linkToShare\\a0[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0[_ngcontent-%COMP%] textarea.textAreaWithButton[_ngcontent-%COMP%]{width:calc(100% - 60px)}.linkToShare\\a0[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{float:right;margin:-10px 0}.igo-form[_ngcontent-%COMP%]{padding:20px 5px 5px}.igo-form-button-group[_ngcontent-%COMP%]{text-align:center;padding-top:10px}"] });
|
|
4445
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapApiComponent, [{
|
|
4446
|
+
type: Component,
|
|
4447
|
+
args: [{ selector: 'igo-share-map-api', template: "<form class=\"igo-form\" [formGroup]=\"form\"\r\n (ngSubmit)=\"createUrl(form.value)\">\r\n\r\n <div class=\"igo-input-container\">\r\n <mat-form-field>\r\n <input matInput required\r\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\r\n formControlName=\"title\">\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div id=\"uriInput\" class=\"igo-input-container\">\r\n <mat-form-field>\r\n <span *ngIf=\"userId\" class=\"prefix\">{{userId}}-</span>\r\n <span class=\"fieldWrapper\">\r\n <input matInput required\r\n [readonly]=\"!userId\"\r\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\r\n formControlName=\"uri\">\r\n </span>\r\n <mat-error>\r\n {{ 'igo.context.contextManager.form.uriRequired' | translate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"igo-form-button-group\">\r\n <button *ngIf=\"!url\"\r\n mat-raised-button\r\n type=\"submit\"\r\n [disabled]=\"!form.valid\">\r\n {{ 'igo.context.shareMap.button' | translate }}\r\n </button>\r\n <button *ngIf=\"url\"\r\n mat-raised-button\r\n type=\"button\"\r\n (click)=\"updateContextShared(form.value)\">\r\n {{ 'igo.context.shareMap.refreshBtn' | translate }}\r\n </button>\r\n </div>\r\n</form>\r\n\r\n<div *ngIf=\"url\" class=\"igo-input-container linkToShare\">\r\n <mat-form-field>\r\n <textarea #textArea matInput readonly rows=\"3\"\r\n class=\"textAreaWithButton\"\r\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\r\n [value]=\"url\"></textarea>\r\n <button\r\n mat-icon-button\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.shareMap.copy' | translate\"\r\n color=\"primary\"\r\n (click)=\"copyTextToClipboard(textArea)\">\r\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n<div>\r\n", styles: ["@charset \"UTF-8\";mat-form-field{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}.linkToShare\\a0 {padding:25px 5px 5px}.linkToShare\\a0 textarea{resize:none;width:100%;line-height:1.3;height:40px;overflow-y:hidden;word-wrap:normal;word-break:break-all}.linkToShare\\a0 textarea.textAreaWithButton{width:calc(100% - 60px)}.linkToShare\\a0 mat-form-field>button{float:right;margin:-10px 0}.igo-form{padding:20px 5px 5px}.igo-form-button-group{text-align:center;padding-top:10px}\n"] }]
|
|
4448
|
+
}], function () { return [{ type: i3.LanguageService }, { type: i3.MessageService }, { type: i2.AuthService }, { type: ShareMapService }, { type: i1$1.FormBuilder }]; }, { map: [{
|
|
4449
|
+
type: Input
|
|
4450
|
+
}] }); })();
|
|
4451
|
+
|
|
4598
4452
|
function ShareMapComponent_mat_tab_group_0_Template(rf, ctx) { if (rf & 1) {
|
|
4599
|
-
i0.ɵɵelementStart(0, "mat-tab-group");
|
|
4600
|
-
i0.ɵɵelementStart(1, "mat-tab", 2);
|
|
4453
|
+
i0.ɵɵelementStart(0, "mat-tab-group")(1, "mat-tab", 2);
|
|
4601
4454
|
i0.ɵɵpipe(2, "translate");
|
|
4602
4455
|
i0.ɵɵelement(3, "igo-share-map-api", 3);
|
|
4603
4456
|
i0.ɵɵelementEnd();
|
|
4604
4457
|
i0.ɵɵelementStart(4, "mat-tab", 2);
|
|
4605
4458
|
i0.ɵɵpipe(5, "translate");
|
|
4606
4459
|
i0.ɵɵelement(6, "igo-share-map-url", 3);
|
|
4607
|
-
i0.ɵɵelementEnd();
|
|
4608
|
-
i0.ɵɵelementEnd();
|
|
4460
|
+
i0.ɵɵelementEnd()();
|
|
4609
4461
|
} if (rf & 2) {
|
|
4610
4462
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
4611
4463
|
i0.ɵɵadvance(1);
|
|
@@ -4638,14 +4490,10 @@ ShareMapComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapC
|
|
|
4638
4490
|
i0.ɵɵproperty("ngIf", ctx.hasApi);
|
|
4639
4491
|
i0.ɵɵadvance(1);
|
|
4640
4492
|
i0.ɵɵproperty("ngIf", !ctx.hasApi);
|
|
4641
|
-
} },
|
|
4493
|
+
} }, dependencies: [i5.NgIf, i3$1.MatTabGroup, i3$1.MatTab, ShareMapUrlComponent, ShareMapApiComponent, i6.TranslatePipe] });
|
|
4642
4494
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapComponent, [{
|
|
4643
4495
|
type: Component,
|
|
4644
|
-
args: [{
|
|
4645
|
-
selector: 'igo-share-map',
|
|
4646
|
-
templateUrl: './share-map.component.html',
|
|
4647
|
-
styleUrls: ['./share-map.component.scss']
|
|
4648
|
-
}]
|
|
4496
|
+
args: [{ selector: 'igo-share-map', template: "<mat-tab-group *ngIf=\"hasApi\" >\r\n <mat-tab [label]=\"'igo.context.shareMap.shareWithApi' | translate\">\r\n <igo-share-map-api [map]=\"map\"></igo-share-map-api>\r\n </mat-tab>\r\n <mat-tab [label]=\"'igo.context.shareMap.shareWithUrl' | translate\">\r\n <igo-share-map-url [map]=\"map\"></igo-share-map-url>\r\n </mat-tab>\r\n</mat-tab-group>\r\n\r\n<igo-share-map-url *ngIf=\"!hasApi\" [map]=\"map\"></igo-share-map-url>\r\n" }]
|
|
4649
4497
|
}], function () { return [{ type: i3.ConfigService }]; }, { map: [{
|
|
4650
4498
|
type: Input
|
|
4651
4499
|
}] }); })();
|
|
@@ -4659,18 +4507,16 @@ class IgoShareMapModule {
|
|
|
4659
4507
|
}
|
|
4660
4508
|
IgoShareMapModule.ɵfac = function IgoShareMapModule_Factory(t) { return new (t || IgoShareMapModule)(); };
|
|
4661
4509
|
IgoShareMapModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoShareMapModule });
|
|
4662
|
-
IgoShareMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
IgoLanguageModule
|
|
4673
|
-
]] });
|
|
4510
|
+
IgoShareMapModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
4511
|
+
FormsModule,
|
|
4512
|
+
ReactiveFormsModule,
|
|
4513
|
+
MatIconModule,
|
|
4514
|
+
MatTooltipModule,
|
|
4515
|
+
MatTabsModule,
|
|
4516
|
+
MatFormFieldModule,
|
|
4517
|
+
MatInputModule,
|
|
4518
|
+
MatButtonModule,
|
|
4519
|
+
IgoLanguageModule] });
|
|
4674
4520
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoShareMapModule, [{
|
|
4675
4521
|
type: NgModule,
|
|
4676
4522
|
args: [{
|
|
@@ -4720,7 +4566,7 @@ function SidenavComponent_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
4720
4566
|
function SidenavComponent_igo_panel_11_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
4721
4567
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
4722
4568
|
i0.ɵɵelementStart(0, "button", 19);
|
|
4723
|
-
i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.zoomToFeatureExtent(); });
|
|
4569
|
+
i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.zoomToFeatureExtent()); });
|
|
4724
4570
|
i0.ɵɵelement(1, "mat-icon", 20);
|
|
4725
4571
|
i0.ɵɵelementEnd();
|
|
4726
4572
|
} }
|
|
@@ -4733,9 +4579,8 @@ function SidenavComponent_igo_panel_11_igo_feature_details_4_Template(rf, ctx) {
|
|
|
4733
4579
|
const _c0 = function () { return ["collapsed", "initial"]; };
|
|
4734
4580
|
function SidenavComponent_igo_panel_11_Template(rf, ctx) { if (rf & 1) {
|
|
4735
4581
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
4736
|
-
i0.ɵɵelementStart(0, "igo-panel", 6);
|
|
4737
|
-
i0.ɵɵ
|
|
4738
|
-
i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.toggleTopPanel(); });
|
|
4582
|
+
i0.ɵɵelementStart(0, "igo-panel", 6)(1, "button", 15);
|
|
4583
|
+
i0.ɵɵlistener("click", function SidenavComponent_igo_panel_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.toggleTopPanel()); });
|
|
4739
4584
|
i0.ɵɵelement(2, "mat-icon", 16);
|
|
4740
4585
|
i0.ɵɵelementEnd();
|
|
4741
4586
|
i0.ɵɵtemplate(3, SidenavComponent_igo_panel_11_button_3_Template, 2, 0, "button", 17);
|
|
@@ -4818,24 +4663,16 @@ class SidenavComponent {
|
|
|
4818
4663
|
}
|
|
4819
4664
|
}
|
|
4820
4665
|
}
|
|
4821
|
-
SidenavComponent.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0.ɵɵdirectiveInject(i1$
|
|
4666
|
+
SidenavComponent.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0.ɵɵdirectiveInject(i1$4.Title)); };
|
|
4822
4667
|
SidenavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavComponent, selectors: [["igo-sidenav"]], inputs: { map: "map", opened: "opened", feature: "feature", tool: "tool", media: "media", title: "title" }, decls: 12, vars: 8, consts: [["igoSidenavShim", "", "mode", "side", 3, "opened"], ["sidenav", ""], [1, "igo-sidenav-content"], ["initial", "50%", "initialMobile", "100%", "expanded", "calc(100% - 58px)", 3, "state"], ["topPanel", ""], [1, "igo-content"], [3, "title"], ["mat-icon-button", "", "panelLeftButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", 4, "ngIf"], ["mat-icon-button", "", "panelRightButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip", 4, "ngIf"], ["igoFlexibleFill", "", 1, "igo-content"], [3, "title", 4, "ngIf"], ["mat-icon-button", "", "panelLeftButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip"], ["svgIcon", "arrow-back"], ["mat-icon-button", "", "panelRightButton", "", "tooltip-position", "below", "matTooltipShowDelay", "500", 3, "matTooltip"], ["svgIcon", "menu"], ["mat-icon-button", "", "panelLeftButton", "", 1, "igo-icon-button", 3, "click"], [3, "svgIcon"], ["mat-icon-button", "", "panelRightButton", "", "class", "igo-icon-button", 3, "click", 4, "ngIf"], [3, "feature", 4, "ngIf"], ["mat-icon-button", "", "panelRightButton", "", 1, "igo-icon-button", 3, "click"], ["svgIcon", "zoom-in"], [3, "feature"]], template: function SidenavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4823
|
-
i0.ɵɵelementStart(0, "mat-sidenav", 0, 1);
|
|
4824
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
4825
|
-
i0.ɵɵelementStart(3, "igo-flexible", 3, 4);
|
|
4826
|
-
i0.ɵɵelementStart(5, "div", 5);
|
|
4827
|
-
i0.ɵɵelementStart(6, "igo-panel", 6);
|
|
4668
|
+
i0.ɵɵelementStart(0, "mat-sidenav", 0, 1)(2, "div", 2)(3, "igo-flexible", 3, 4)(5, "div", 5)(6, "igo-panel", 6);
|
|
4828
4669
|
i0.ɵɵpipe(7, "translate");
|
|
4829
4670
|
i0.ɵɵtemplate(8, SidenavComponent_button_8_Template, 3, 3, "button", 7);
|
|
4830
4671
|
i0.ɵɵtemplate(9, SidenavComponent_button_9_Template, 3, 3, "button", 8);
|
|
4831
|
-
i0.ɵɵelementEnd();
|
|
4832
|
-
i0.ɵɵelementEnd();
|
|
4672
|
+
i0.ɵɵelementEnd()();
|
|
4833
4673
|
i0.ɵɵelementStart(10, "div", 9);
|
|
4834
4674
|
i0.ɵɵtemplate(11, SidenavComponent_igo_panel_11_Template, 5, 6, "igo-panel", 10);
|
|
4835
|
-
i0.ɵɵelementEnd();
|
|
4836
|
-
i0.ɵɵelementEnd();
|
|
4837
|
-
i0.ɵɵelementEnd();
|
|
4838
|
-
i0.ɵɵelementEnd();
|
|
4675
|
+
i0.ɵɵelementEnd()()()();
|
|
4839
4676
|
} if (rf & 2) {
|
|
4840
4677
|
i0.ɵɵproperty("opened", ctx.opened);
|
|
4841
4678
|
i0.ɵɵadvance(3);
|
|
@@ -4848,15 +4685,11 @@ SidenavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavCom
|
|
|
4848
4685
|
i0.ɵɵproperty("ngIf", ctx.tool);
|
|
4849
4686
|
i0.ɵɵadvance(2);
|
|
4850
4687
|
i0.ɵɵproperty("ngIf", ctx.feature && ctx.media !== "mobile");
|
|
4851
|
-
} },
|
|
4688
|
+
} }, dependencies: [i5.NgIf, i4$1.MatIcon, i7.MatButton, i5$2.MatSidenav, i6$1.MatTooltip, i14.PanelComponent, i14.FlexibleComponent, i1$2.FeatureDetailsComponent, i6.TranslatePipe], styles: ["[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}[_nghost-%COMP%] .igo-flexible-fill .igo-container, .igo-sidenav-content[_ngcontent-%COMP%] .igo-flexible-fill[_ngcontent-%COMP%] .igo-container[_ngcontent-%COMP%]{border-top-width:1px;border-top-style:solid;border-top-color:#0003}mat-sidenav[_ngcontent-%COMP%]{-o-box-shadow:2px 0px 2px 0px #dddddd;box-shadow:2px 0 2px #ddd}[_nghost-%COMP%]{background-color:#fff}[_nghost-%COMP%] mat-sidenav{z-index:3!important}mat-sidenav[_ngcontent-%COMP%]{width:400px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){mat-sidenav[_ngcontent-%COMP%]{width:calc(100% - 45px)}}.igo-sidenav-content[_ngcontent-%COMP%]{margin-top:50px;height:calc(100% - 50px)}igo-feature-details[_ngcontent-%COMP%] table{width:100%}"] });
|
|
4852
4689
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavComponent, [{
|
|
4853
4690
|
type: Component,
|
|
4854
|
-
args: [{
|
|
4855
|
-
|
|
4856
|
-
templateUrl: './sidenav.component.html',
|
|
4857
|
-
styleUrls: ['./sidenav.component.scss']
|
|
4858
|
-
}]
|
|
4859
|
-
}], function () { return [{ type: i1$3.Title }]; }, { map: [{
|
|
4691
|
+
args: [{ selector: 'igo-sidenav', template: "<mat-sidenav\r\n #sidenav\r\n igoSidenavShim\r\n mode=\"side\"\r\n [opened]=\"opened\">\r\n\r\n <div class=\"igo-sidenav-content\">\r\n\r\n <igo-flexible\r\n #topPanel\r\n initial=\"50%\" initialMobile=\"100%\"\r\n expanded=\"calc(100% - 58px)\"\r\n [state]=\"topPanelState\">\r\n\r\n <div class=\"igo-content\">\r\n <igo-panel [title]=\"tool ? (tool.title | translate) : title\">\r\n <button\r\n mat-icon-button\r\n panelLeftButton\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.sidenav.goBack' | translate\"\r\n *ngIf=\"tool\">\r\n <mat-icon svgIcon=\"arrow-back\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n panelRightButton\r\n tooltip-position=\"below\"\r\n matTooltipShowDelay=\"500\"\r\n [matTooltip]=\"'igo.context.sidenav.mainMenu' | translate\"\r\n *ngIf=\"tool\">\r\n <mat-icon svgIcon=\"menu\"></mat-icon>\r\n </button>\r\n\r\n </igo-panel>\r\n </div>\r\n\r\n <div igoFlexibleFill class=\"igo-content\">\r\n <igo-panel\r\n [title]=\"featureTitle\"\r\n *ngIf=\"feature && media !== 'mobile'\">\r\n\r\n <button\r\n mat-icon-button\r\n panelLeftButton\r\n class=\"igo-icon-button\"\r\n (click)=\"toggleTopPanel()\">\r\n <mat-icon [svgIcon]=\"['collapsed', 'initial'].indexOf(topPanel.state) >= 0 ? 'arrow_downward' : 'arrow_upward'\"></mat-icon>\r\n </button>\r\n\r\n <button\r\n mat-icon-button\r\n panelRightButton\r\n class=\"igo-icon-button\"\r\n (click)=\"zoomToFeatureExtent()\"\r\n *ngIf=\"feature.geometry\">\r\n <mat-icon svgIcon=\"zoom-in\"></mat-icon>\r\n </button>\r\n\r\n <igo-feature-details\r\n [feature]=\"feature\"\r\n *ngIf=\"['collapsed', 'initial'].indexOf(topPanel.state) >= 0\">\r\n </igo-feature-details>\r\n </igo-panel>\r\n </div>\r\n\r\n </igo-flexible>\r\n\r\n </div>\r\n</mat-sidenav>\r\n", styles: [":host ::ng-deep .igo-flexible-fill .igo-container,.igo-sidenav-content .igo-flexible-fill .igo-container{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}:host ::ng-deep .igo-flexible-fill .igo-container,.igo-sidenav-content .igo-flexible-fill .igo-container{border-top-width:1px;border-top-style:solid;border-top-color:#0003}mat-sidenav{-o-box-shadow:2px 0px 2px 0px #dddddd;box-shadow:2px 0 2px #ddd}:host{background-color:#fff}:host ::ng-deep mat-sidenav{z-index:3!important}mat-sidenav{width:400px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){mat-sidenav{width:calc(100% - 45px)}}.igo-sidenav-content{margin-top:50px;height:calc(100% - 50px)}igo-feature-details ::ng-deep table{width:100%}\n"] }]
|
|
4692
|
+
}], function () { return [{ type: i1$4.Title }]; }, { map: [{
|
|
4860
4693
|
type: Input
|
|
4861
4694
|
}], opened: [{
|
|
4862
4695
|
type: Input
|
|
@@ -4879,18 +4712,16 @@ class IgoSidenavModule {
|
|
|
4879
4712
|
}
|
|
4880
4713
|
IgoSidenavModule.ɵfac = function IgoSidenavModule_Factory(t) { return new (t || IgoSidenavModule)(); };
|
|
4881
4714
|
IgoSidenavModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoSidenavModule });
|
|
4882
|
-
IgoSidenavModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
IgoContextManagerModule
|
|
4893
|
-
]] });
|
|
4715
|
+
IgoSidenavModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
4716
|
+
MatIconModule,
|
|
4717
|
+
MatButtonModule,
|
|
4718
|
+
MatSidenavModule,
|
|
4719
|
+
MatTooltipModule,
|
|
4720
|
+
IgoLanguageModule,
|
|
4721
|
+
IgoPanelModule,
|
|
4722
|
+
IgoFlexibleModule,
|
|
4723
|
+
IgoFeatureModule,
|
|
4724
|
+
IgoContextManagerModule] });
|
|
4894
4725
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoSidenavModule, [{
|
|
4895
4726
|
type: NgModule,
|
|
4896
4727
|
args: [{
|
|
@@ -4931,7 +4762,7 @@ class IgoContextModule {
|
|
|
4931
4762
|
}
|
|
4932
4763
|
IgoContextModule.ɵfac = function IgoContextModule_Factory(t) { return new (t || IgoContextModule)(); };
|
|
4933
4764
|
IgoContextModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoContextModule });
|
|
4934
|
-
IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
4765
|
+
IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatInputModule, MatFormFieldModule, MatMenuModule, IgoContextImportExportModule,
|
|
4935
4766
|
IgoContextManagerModule,
|
|
4936
4767
|
IgoContextMapButtonModule,
|
|
4937
4768
|
IgoShareMapModule,
|
|
@@ -4965,4 +4796,4 @@ IgoContextModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[MatInp
|
|
|
4965
4796
|
*/
|
|
4966
4797
|
|
|
4967
4798
|
export { BookmarkButtonComponent, BookmarkDialogComponent, ContextEditBindingDirective, ContextEditComponent, ContextExportService, ContextFormComponent, ContextImportExportComponent, ContextImportService, ContextItemComponent, ContextListBindingDirective, ContextListComponent, ContextPermissionsBindingDirective, ContextPermissionsComponent, ContextService, ExportError, ExportInvalidFileError, ExportNothingToExportError, IgoContextImportExportModule, IgoContextManagerModule, IgoContextMapButtonModule, IgoContextModule, IgoShareMapModule, IgoSidenavModule, ImportError, ImportInvalidFileError, ImportNothingToImportError, ImportSRSError, ImportSizeError, ImportUnreadableFileError, LayerContextDirective, MapContextDirective, PoiButtonComponent, PoiDialogComponent, PoiService, Scope, ShareMapApiComponent, ShareMapComponent, ShareMapService, ShareMapUrlComponent, SidenavComponent, TypePermission, UserButtonComponent, UserDialogComponent, addContextToContextList, addImportedFeaturesStyledToMap, addImportedFeaturesToMap, computeLayerTitleFromFile, getFileExtension, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleNothingToExportError, handleNothingToImportError, handleSizeFileImportError, handleUnreadbleFileImportError };
|
|
4968
|
-
//# sourceMappingURL=igo2-context.
|
|
4799
|
+
//# sourceMappingURL=igo2-context.mjs.map
|