@igo2/context 1.15.5 → 1.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/igo2-context.mjs +4 -4
- package/esm2020/lib/context-import-export/context-import-export/context-import-export.component.mjs +227 -227
- package/esm2020/lib/context-import-export/context-import-export.module.mjs +84 -84
- package/esm2020/lib/context-import-export/index.mjs +2 -2
- package/esm2020/lib/context-import-export/shared/context-export.errors.mjs +14 -14
- package/esm2020/lib/context-import-export/shared/context-export.interface.mjs +1 -1
- package/esm2020/lib/context-import-export/shared/context-export.service.mjs +37 -37
- package/esm2020/lib/context-import-export/shared/context-export.utils.mjs +14 -14
- package/esm2020/lib/context-import-export/shared/context-import.errors.mjs +32 -32
- package/esm2020/lib/context-import-export/shared/context-import.service.mjs +78 -78
- package/esm2020/lib/context-import-export/shared/context-import.utils.mjs +132 -132
- package/esm2020/lib/context-import-export/shared/index.mjs +7 -7
- package/esm2020/lib/context-manager/context-edit/context-edit-binding.directive.mjs +49 -49
- package/esm2020/lib/context-manager/context-edit/context-edit.component.mjs +45 -45
- package/esm2020/lib/context-manager/context-edit/index.mjs +2 -2
- package/esm2020/lib/context-manager/context-form/context-form.component.mjs +142 -142
- package/esm2020/lib/context-manager/context-form/index.mjs +1 -1
- package/esm2020/lib/context-manager/context-item/context-item.component.mjs +244 -244
- package/esm2020/lib/context-manager/context-item/index.mjs +1 -1
- package/esm2020/lib/context-manager/context-list/context-list-binding.directive.mjs +239 -239
- package/esm2020/lib/context-manager/context-list/context-list.component.mjs +591 -591
- package/esm2020/lib/context-manager/context-list/context-list.enum.mjs +6 -6
- package/esm2020/lib/context-manager/context-list/index.mjs +2 -2
- package/esm2020/lib/context-manager/context-manager.module.mjs +161 -161
- package/esm2020/lib/context-manager/context-permissions/context-permissions-binding.directive.mjs +98 -98
- package/esm2020/lib/context-manager/context-permissions/context-permissions.component.mjs +305 -305
- package/esm2020/lib/context-manager/context-permissions/index.mjs +2 -2
- package/esm2020/lib/context-manager/index.mjs +6 -6
- package/esm2020/lib/context-manager/shared/context.enum.mjs +12 -12
- package/esm2020/lib/context-manager/shared/context.interface.mjs +1 -1
- package/esm2020/lib/context-manager/shared/context.service.mjs +631 -631
- package/esm2020/lib/context-manager/shared/index.mjs +5 -5
- package/esm2020/lib/context-manager/shared/layer-context.directive.mjs +155 -155
- package/esm2020/lib/context-manager/shared/map-context.directive.mjs +69 -69
- package/esm2020/lib/context-map-button/bookmark-button/bookmark-button.component.mjs +65 -65
- package/esm2020/lib/context-map-button/bookmark-button/bookmark-dialog.component.mjs +49 -49
- package/esm2020/lib/context-map-button/bookmark-button/index.mjs +2 -2
- package/esm2020/lib/context-map-button/context-map-button.module.mjs +95 -95
- package/esm2020/lib/context-map-button/index.mjs +3 -3
- package/esm2020/lib/context-map-button/poi-button/index.mjs +3 -3
- package/esm2020/lib/context-map-button/poi-button/poi-button.component.mjs +160 -160
- package/esm2020/lib/context-map-button/poi-button/poi-dialog.component.mjs +49 -49
- package/esm2020/lib/context-map-button/poi-button/shared/index.mjs +2 -2
- package/esm2020/lib/context-map-button/poi-button/shared/poi.interface.mjs +1 -1
- package/esm2020/lib/context-map-button/poi-button/shared/poi.service.mjs +32 -32
- package/esm2020/lib/context-map-button/user-button/index.mjs +2 -2
- package/esm2020/lib/context-map-button/user-button/user-button.animation.mjs +16 -16
- package/esm2020/lib/context-map-button/user-button/user-button.component.mjs +103 -103
- package/esm2020/lib/context-map-button/user-button/user-dialog.component.mjs +65 -65
- package/esm2020/lib/context.module.mjs +44 -44
- package/esm2020/lib/share-map/index.mjs +4 -4
- package/esm2020/lib/share-map/share-map/share-map-api.component.mjs +169 -169
- package/esm2020/lib/share-map/share-map/share-map-url.component.mjs +242 -242
- package/esm2020/lib/share-map/share-map/share-map.component.mjs +56 -56
- package/esm2020/lib/share-map/share-map.module.mjs +66 -66
- package/esm2020/lib/share-map/shared/index.mjs +1 -1
- package/esm2020/lib/share-map/shared/share-map.service.mjs +209 -209
- package/esm2020/lib/sidenav/index.mjs +1 -1
- package/esm2020/lib/sidenav/sidenav.component.mjs +169 -169
- package/esm2020/lib/sidenav/sidenav.module.mjs +60 -60
- package/esm2020/public_api.mjs +14 -14
- package/fesm2015/igo2-context.mjs +4942 -4942
- package/fesm2020/igo2-context.mjs +4591 -4591
- package/index.d.ts +5 -5
- package/lib/context-import-export/context-import-export/context-import-export.component.d.ts +44 -44
- package/lib/context-import-export/context-import-export.module.d.ts +23 -23
- package/lib/context-import-export/index.d.ts +2 -2
- package/lib/context-import-export/shared/context-export.errors.d.ts +8 -8
- package/lib/context-import-export/shared/context-export.interface.d.ts +5 -5
- package/lib/context-import-export/shared/context-export.service.d.ts +10 -10
- package/lib/context-import-export/shared/context-export.utils.d.ts +4 -4
- package/lib/context-import-export/shared/context-import.errors.d.ts +17 -17
- package/lib/context-import-export/shared/context-import.service.d.ts +18 -18
- package/lib/context-import-export/shared/context-import.utils.d.ts +17 -17
- package/lib/context-import-export/shared/index.d.ts +7 -7
- package/lib/context-manager/context-edit/context-edit-binding.directive.d.ts +20 -20
- package/lib/context-manager/context-edit/context-edit.component.d.ts +14 -14
- package/lib/context-manager/context-edit/index.d.ts +2 -2
- package/lib/context-manager/context-form/context-form.component.d.ts +30 -30
- package/lib/context-manager/context-form/index.d.ts +1 -1
- package/lib/context-manager/context-item/context-item.component.d.ts +32 -32
- package/lib/context-manager/context-item/index.d.ts +1 -1
- package/lib/context-manager/context-list/context-list-binding.directive.d.ts +46 -46
- package/lib/context-manager/context-list/context-list.component.d.ts +93 -93
- package/lib/context-manager/context-list/context-list.enum.d.ts +5 -5
- package/lib/context-manager/context-list/index.d.ts +2 -2
- package/lib/context-manager/context-manager.module.d.ts +37 -37
- package/lib/context-manager/context-permissions/context-permissions-binding.directive.d.ts +23 -23
- package/lib/context-manager/context-permissions/context-permissions.component.d.ts +40 -40
- package/lib/context-manager/context-permissions/index.d.ts +2 -2
- package/lib/context-manager/index.d.ts +6 -6
- package/lib/context-manager/shared/context.enum.d.ts +10 -10
- package/lib/context-manager/shared/context.interface.d.ts +75 -75
- package/lib/context-manager/shared/context.service.d.ts +75 -75
- package/lib/context-manager/shared/index.d.ts +5 -5
- package/lib/context-manager/shared/layer-context.directive.d.ts +28 -28
- package/lib/context-manager/shared/map-context.directive.d.ts +19 -19
- package/lib/context-map-button/bookmark-button/bookmark-button.component.d.ts +20 -20
- package/lib/context-map-button/bookmark-button/bookmark-dialog.component.d.ts +9 -9
- package/lib/context-map-button/bookmark-button/index.d.ts +2 -2
- package/lib/context-map-button/context-map-button.module.d.ts +27 -27
- package/lib/context-map-button/index.d.ts +3 -3
- package/lib/context-map-button/poi-button/index.d.ts +3 -3
- package/lib/context-map-button/poi-button/poi-button.component.d.ts +34 -34
- package/lib/context-map-button/poi-button/poi-dialog.component.d.ts +9 -9
- package/lib/context-map-button/poi-button/shared/index.d.ts +2 -2
- package/lib/context-map-button/poi-button/shared/poi.interface.d.ts +7 -7
- package/lib/context-map-button/poi-button/shared/poi.service.d.ts +16 -16
- package/lib/context-map-button/user-button/index.d.ts +2 -2
- package/lib/context-map-button/user-button/user-button.animation.d.ts +2 -2
- package/lib/context-map-button/user-button/user-button.component.d.ts +25 -25
- package/lib/context-map-button/user-button/user-dialog.component.d.ts +15 -15
- package/lib/context.module.d.ts +16 -16
- package/lib/share-map/index.d.ts +4 -4
- package/lib/share-map/share-map/share-map-api.component.d.ts +27 -27
- package/lib/share-map/share-map/share-map-url.component.d.ts +26 -26
- package/lib/share-map/share-map/share-map.component.d.ts +11 -11
- package/lib/share-map/share-map.module.d.ts +21 -21
- package/lib/share-map/shared/index.d.ts +1 -1
- package/lib/share-map/shared/share-map.service.d.ts +17 -17
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav.component.d.ts +35 -35
- package/lib/sidenav/sidenav.module.d.ts +18 -18
- package/package.json +6 -6
- package/public_api.d.ts +11 -11
|
@@ -1,243 +1,243 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { Clipboard } from '@igo2/utils';
|
|
3
|
-
import { combineLatest } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@igo2/core";
|
|
6
|
-
import * as i2 from "../shared/share-map.service";
|
|
7
|
-
import * as i3 from "@angular/common";
|
|
8
|
-
import * as i4 from "@angular/material/icon";
|
|
9
|
-
import * as i5 from "@angular/material/form-field";
|
|
10
|
-
import * as i6 from "@angular/material/input";
|
|
11
|
-
import * as i7 from "@angular/material/button";
|
|
12
|
-
import * as i8 from "@igo2/common";
|
|
13
|
-
import * as i9 from "@ngx-translate/core";
|
|
14
|
-
function ShareMapUrlComponent_div_13_h4_1_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelementStart(0, "h4");
|
|
16
|
-
i0.ɵɵtext(1);
|
|
17
|
-
i0.ɵɵpipe(2, "translate");
|
|
18
|
-
i0.ɵɵelementEnd();
|
|
19
|
-
} if (rf & 2) {
|
|
20
|
-
i0.ɵɵadvance(1);
|
|
21
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.included"));
|
|
22
|
-
} }
|
|
23
|
-
function ShareMapUrlComponent_div_13_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
i0.ɵɵelementStart(0, "li");
|
|
25
|
-
i0.ɵɵtext(1);
|
|
26
|
-
i0.ɵɵpipe(2, "translate");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
i0.ɵɵadvance(1);
|
|
30
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.context"));
|
|
31
|
-
} }
|
|
32
|
-
function ShareMapUrlComponent_div_13_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵelementStart(0, "li");
|
|
34
|
-
i0.ɵɵtext(1);
|
|
35
|
-
i0.ɵɵpipe(2, "translate");
|
|
36
|
-
i0.ɵɵelementEnd();
|
|
37
|
-
} if (rf & 2) {
|
|
38
|
-
i0.ɵɵadvance(1);
|
|
39
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.center"));
|
|
40
|
-
} }
|
|
41
|
-
function ShareMapUrlComponent_div_13_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
-
i0.ɵɵelementStart(0, "li");
|
|
43
|
-
i0.ɵɵtext(1);
|
|
44
|
-
i0.ɵɵpipe(2, "translate");
|
|
45
|
-
i0.ɵɵelementEnd();
|
|
46
|
-
} if (rf & 2) {
|
|
47
|
-
i0.ɵɵadvance(1);
|
|
48
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.zoom"));
|
|
49
|
-
} }
|
|
50
|
-
function ShareMapUrlComponent_div_13_li_10_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
-
i0.ɵɵelementStart(0, "li");
|
|
52
|
-
i0.ɵɵtext(1);
|
|
53
|
-
i0.ɵɵpipe(2, "translate");
|
|
54
|
-
i0.ɵɵelementEnd();
|
|
55
|
-
} if (rf & 2) {
|
|
56
|
-
i0.ɵɵadvance(1);
|
|
57
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.addedLayers"));
|
|
58
|
-
} }
|
|
59
|
-
function ShareMapUrlComponent_div_13_li_12_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
-
i0.ɵɵelementStart(0, "li");
|
|
61
|
-
i0.ɵɵtext(1);
|
|
62
|
-
i0.ɵɵpipe(2, "translate");
|
|
63
|
-
i0.ɵɵelementEnd();
|
|
64
|
-
} if (rf & 2) {
|
|
65
|
-
i0.ɵɵadvance(1);
|
|
66
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.visibleInvisible"));
|
|
67
|
-
} }
|
|
68
|
-
function ShareMapUrlComponent_div_13_h4_14_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
i0.ɵɵelementStart(0, "h4");
|
|
70
|
-
i0.ɵɵtext(1);
|
|
71
|
-
i0.ɵɵpipe(2, "translate");
|
|
72
|
-
i0.ɵɵelementEnd();
|
|
73
|
-
} if (rf & 2) {
|
|
74
|
-
i0.ɵɵadvance(1);
|
|
75
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.excluded"));
|
|
76
|
-
} }
|
|
77
|
-
function ShareMapUrlComponent_div_13_li_17_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
-
i0.ɵɵelementStart(0, "li");
|
|
79
|
-
i0.ɵɵtext(1);
|
|
80
|
-
i0.ɵɵpipe(2, "translate");
|
|
81
|
-
i0.ɵɵelementEnd();
|
|
82
|
-
} if (rf & 2) {
|
|
83
|
-
i0.ɵɵadvance(1);
|
|
84
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.order"));
|
|
85
|
-
} }
|
|
86
|
-
function ShareMapUrlComponent_div_13_li_19_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
-
i0.ɵɵelementStart(0, "li");
|
|
88
|
-
i0.ɵɵtext(1);
|
|
89
|
-
i0.ɵɵpipe(2, "translate");
|
|
90
|
-
i0.ɵɵelementEnd();
|
|
91
|
-
} if (rf & 2) {
|
|
92
|
-
i0.ɵɵadvance(1);
|
|
93
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.opacity"));
|
|
94
|
-
} }
|
|
95
|
-
function ShareMapUrlComponent_div_13_li_21_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
-
i0.ɵɵelementStart(0, "li");
|
|
97
|
-
i0.ɵɵtext(1);
|
|
98
|
-
i0.ɵɵpipe(2, "translate");
|
|
99
|
-
i0.ɵɵelementEnd();
|
|
100
|
-
} if (rf & 2) {
|
|
101
|
-
i0.ɵɵadvance(1);
|
|
102
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.filterOgc"));
|
|
103
|
-
} }
|
|
104
|
-
function ShareMapUrlComponent_div_13_li_23_Template(rf, ctx) { if (rf & 1) {
|
|
105
|
-
i0.ɵɵelementStart(0, "li");
|
|
106
|
-
i0.ɵɵtext(1);
|
|
107
|
-
i0.ɵɵpipe(2, "translate");
|
|
108
|
-
i0.ɵɵelementEnd();
|
|
109
|
-
} if (rf & 2) {
|
|
110
|
-
i0.ɵɵadvance(1);
|
|
111
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.filterTime"));
|
|
112
|
-
} }
|
|
113
|
-
function ShareMapUrlComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
-
i0.ɵɵelementStart(0, "div");
|
|
115
|
-
i0.ɵɵtemplate(1, ShareMapUrlComponent_div_13_h4_1_Template, 3, 3, "h4", 7);
|
|
116
|
-
i0.ɵɵpipe(2, "translate");
|
|
117
|
-
i0.ɵɵelementStart(3, "ul");
|
|
118
|
-
i0.ɵɵtemplate(4, ShareMapUrlComponent_div_13_li_4_Template, 3, 3, "li", 7);
|
|
119
|
-
i0.ɵɵpipe(5, "translate");
|
|
120
|
-
i0.ɵɵtemplate(6, ShareMapUrlComponent_div_13_li_6_Template, 3, 3, "li", 7);
|
|
121
|
-
i0.ɵɵpipe(7, "translate");
|
|
122
|
-
i0.ɵɵtemplate(8, ShareMapUrlComponent_div_13_li_8_Template, 3, 3, "li", 7);
|
|
123
|
-
i0.ɵɵpipe(9, "translate");
|
|
124
|
-
i0.ɵɵtemplate(10, ShareMapUrlComponent_div_13_li_10_Template, 3, 3, "li", 7);
|
|
125
|
-
i0.ɵɵpipe(11, "translate");
|
|
126
|
-
i0.ɵɵtemplate(12, ShareMapUrlComponent_div_13_li_12_Template, 3, 3, "li", 7);
|
|
127
|
-
i0.ɵɵpipe(13, "translate");
|
|
128
|
-
i0.ɵɵelementEnd();
|
|
129
|
-
i0.ɵɵtemplate(14, ShareMapUrlComponent_div_13_h4_14_Template, 3, 3, "h4", 7);
|
|
130
|
-
i0.ɵɵpipe(15, "translate");
|
|
131
|
-
i0.ɵɵelementStart(16, "ul");
|
|
132
|
-
i0.ɵɵtemplate(17, ShareMapUrlComponent_div_13_li_17_Template, 3, 3, "li", 7);
|
|
133
|
-
i0.ɵɵpipe(18, "translate");
|
|
134
|
-
i0.ɵɵtemplate(19, ShareMapUrlComponent_div_13_li_19_Template, 3, 3, "li", 7);
|
|
135
|
-
i0.ɵɵpipe(20, "translate");
|
|
136
|
-
i0.ɵɵtemplate(21, ShareMapUrlComponent_div_13_li_21_Template, 3, 3, "li", 7);
|
|
137
|
-
i0.ɵɵpipe(22, "translate");
|
|
138
|
-
i0.ɵɵtemplate(23, ShareMapUrlComponent_div_13_li_23_Template, 3, 3, "li", 7);
|
|
139
|
-
i0.ɵɵpipe(24, "translate");
|
|
140
|
-
i0.ɵɵelementEnd()();
|
|
141
|
-
} if (rf & 2) {
|
|
142
|
-
i0.ɵɵadvance(1);
|
|
143
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 11, "igo.context.shareMap.included") !== "");
|
|
144
|
-
i0.ɵɵadvance(3);
|
|
145
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 13, "igo.context.shareMap.context") !== "");
|
|
146
|
-
i0.ɵɵadvance(2);
|
|
147
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(7, 15, "igo.context.shareMap.center") !== "");
|
|
148
|
-
i0.ɵɵadvance(2);
|
|
149
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(9, 17, "igo.context.shareMap.zoom") !== "");
|
|
150
|
-
i0.ɵɵadvance(2);
|
|
151
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 19, "igo.context.shareMap.addedLayers") !== "");
|
|
152
|
-
i0.ɵɵadvance(2);
|
|
153
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 21, "igo.context.shareMap.visibleInvisible") !== "");
|
|
154
|
-
i0.ɵɵadvance(2);
|
|
155
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(15, 23, "igo.context.shareMap.excluded") !== "");
|
|
156
|
-
i0.ɵɵadvance(3);
|
|
157
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(18, 25, "igo.context.shareMap.order") !== "");
|
|
158
|
-
i0.ɵɵadvance(2);
|
|
159
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(20, 27, "igo.context.shareMap.opacity") !== "");
|
|
160
|
-
i0.ɵɵadvance(2);
|
|
161
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(22, 29, "igo.context.shareMap.filterOgc") !== "");
|
|
162
|
-
i0.ɵɵadvance(2);
|
|
163
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(24, 31, "igo.context.shareMap.filterTime") !== "");
|
|
164
|
-
} }
|
|
165
|
-
function ShareMapUrlComponent_igo_custom_html_15_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
-
i0.ɵɵelement(0, "igo-custom-html", 9);
|
|
167
|
-
i0.ɵɵpipe(1, "translate");
|
|
168
|
-
} if (rf & 2) {
|
|
169
|
-
i0.ɵɵproperty("html", i0.ɵɵpipeBind1(1, 1, "igo.context.shareMap.htmlClarifications"));
|
|
170
|
-
} }
|
|
171
|
-
export class ShareMapUrlComponent {
|
|
172
|
-
constructor(messageService, shareMapService, cdRef) {
|
|
173
|
-
this.messageService = messageService;
|
|
174
|
-
this.shareMapService = shareMapService;
|
|
175
|
-
this.cdRef = cdRef;
|
|
176
|
-
this.publicShareOption = {
|
|
177
|
-
layerlistControls: { querystring: '' }
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
ngOnInit() {
|
|
181
|
-
this.resetUrl();
|
|
182
|
-
this.mapState$$ = combineLatest([
|
|
183
|
-
this.map.viewController.state$,
|
|
184
|
-
this.map.status$
|
|
185
|
-
]).subscribe(c => {
|
|
186
|
-
this.resetUrl();
|
|
187
|
-
this.cdRef.detectChanges();
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
ngAfterViewInit() {
|
|
191
|
-
this.resetUrl();
|
|
192
|
-
}
|
|
193
|
-
ngOnDestroy() {
|
|
194
|
-
this.mapState$$.unsubscribe();
|
|
195
|
-
}
|
|
196
|
-
resetUrl(values = {}) {
|
|
197
|
-
this.url = this.shareMapService.getUrlWithoutApi(this.map, this.publicShareOption);
|
|
198
|
-
}
|
|
199
|
-
copyTextToClipboard(textArea) {
|
|
200
|
-
const successful = Clipboard.copy(textArea);
|
|
201
|
-
if (successful) {
|
|
202
|
-
this.messageService.success('igo.context.shareMap.dialog.copyMsg', 'igo.context.shareMap.dialog.copyTitle');
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
ShareMapUrlComponent.ɵfac = function ShareMapUrlComponent_Factory(t) { return new (t || ShareMapUrlComponent)(i0.ɵɵdirectiveInject(i1.MessageService), i0.ɵɵdirectiveInject(i2.ShareMapService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
207
|
-
ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapUrlComponent, selectors: [["igo-share-map-url"]], inputs: { map: "map" }, decls: 17, vars: 13, 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"], ["class", "shareCustomPadding", "class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"]], template: function ShareMapUrlComponent_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
209
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "mat-form-field");
|
|
210
|
-
i0.ɵɵelement(2, "textarea", 1, 2);
|
|
211
|
-
i0.ɵɵpipe(4, "translate");
|
|
212
|
-
i0.ɵɵelementEnd();
|
|
213
|
-
i0.ɵɵelementStart(5, "div", 3)(6, "button", 4);
|
|
214
|
-
i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r14); const _r0 = i0.ɵɵreference(3); return i0.ɵɵresetView(ctx.copyTextToClipboard(_r0)); });
|
|
215
|
-
i0.ɵɵelement(7, "mat-icon", 5);
|
|
216
|
-
i0.ɵɵtext(8);
|
|
217
|
-
i0.ɵɵpipe(9, "translate");
|
|
218
|
-
i0.ɵɵelementEnd()();
|
|
219
|
-
i0.ɵɵelementStart(10, "div");
|
|
220
|
-
i0.ɵɵelement(11, "br");
|
|
221
|
-
i0.ɵɵelementStart(12, "section", 6);
|
|
222
|
-
i0.ɵɵtemplate(13, ShareMapUrlComponent_div_13_Template, 25, 33, "div", 7);
|
|
223
|
-
i0.ɵɵpipe(14, "translate");
|
|
224
|
-
i0.ɵɵtemplate(15, ShareMapUrlComponent_igo_custom_html_15_Template, 2, 3, "igo-custom-html", 8);
|
|
225
|
-
i0.ɵɵpipe(16, "translate");
|
|
226
|
-
i0.ɵɵelementEnd()()();
|
|
227
|
-
} if (rf & 2) {
|
|
228
|
-
i0.ɵɵadvance(2);
|
|
229
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 5, "igo.context.shareMap.placeholderLink"))("value", ctx.url);
|
|
230
|
-
i0.ɵɵadvance(6);
|
|
231
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 7, "igo.context.shareMap.copy"), " ");
|
|
232
|
-
i0.ɵɵadvance(5);
|
|
233
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 9, "igo.context.shareMap.htmlClarifications") === "");
|
|
234
|
-
i0.ɵɵadvance(2);
|
|
235
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 11, "igo.context.shareMap.htmlClarifications") !== "");
|
|
236
|
-
} }, dependencies: [i3.NgIf, i4.MatIcon, i5.MatFormField, i6.MatInput, i7.MatButton, i8.CustomHtmlComponent, i9.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}igo-custom-html.shareCustomPadding[_ngcontent-%COMP%]{padding:0}"] });
|
|
237
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapUrlComponent, [{
|
|
238
|
-
type: Component,
|
|
239
|
-
args: [{ selector: 'igo-share-map-url', template: "<div class=\"igo-input-container linkToShare\">\n <mat-form-field>\n <textarea #textArea matInput readonly rows=\"3\"\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\n [value]=\"url\"></textarea>\n </mat-form-field>\n\n <div class=\"igo-form-button-group\">\n <button\n mat-raised-button\n (click)=\"copyTextToClipboard(textArea)\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n {{ 'igo.context.shareMap.copy' | translate }}\n </button>\n </div>\n <div>\n <br/>\n <section class=\"mat-typography\">\n <div *ngIf=\"('igo.context.shareMap.htmlClarifications' | translate)===''\">\n <h4 *ngIf=\"('igo.context.shareMap.included' | translate)!==''\">{{'igo.context.shareMap.included' | translate}}</h4>\n <ul>\n <li *ngIf=\"('igo.context.shareMap.context' | translate)!==''\">{{'igo.context.shareMap.context' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.center' | translate)!==''\">{{'igo.context.shareMap.center' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.zoom' | translate)!==''\">{{'igo.context.shareMap.zoom' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.addedLayers' | translate)!==''\">{{'igo.context.shareMap.addedLayers' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.visibleInvisible' | translate)!==''\">{{'igo.context.shareMap.visibleInvisible' | translate}}</li>\n </ul>\n\n <h4 *ngIf=\"('igo.context.shareMap.excluded' | translate)!==''\">{{'igo.context.shareMap.excluded' | translate}}</h4>\n <ul>\n <li *ngIf=\"('igo.context.shareMap.order' | translate)!==''\">{{'igo.context.shareMap.order' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.opacity' | translate)!==''\">{{'igo.context.shareMap.opacity' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.filterOgc' | translate)!==''\">{{'igo.context.shareMap.filterOgc' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.filterTime' | translate)!==''\">{{'igo.context.shareMap.filterTime' | translate}}</li>\n </ul>\n </div>\n <igo-custom-html class=\"shareCustomPadding\" *ngIf=\"('igo.context.shareMap.htmlClarifications' | translate)!==''\" class=\"mat-typography\"\n [html]=\"('igo.context.shareMap.htmlClarifications' | translate)\">\n </igo-custom-html>\n </section>\n </div>\n</div>\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}igo-custom-html.shareCustomPadding{padding:0}\n"] }]
|
|
240
|
-
}], function () { return [{ type: i1.MessageService }, { type: i2.ShareMapService }, { type: i0.ChangeDetectorRef }]; }, { map: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}] }); })();
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { Clipboard } from '@igo2/utils';
|
|
3
|
+
import { combineLatest } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@igo2/core";
|
|
6
|
+
import * as i2 from "../shared/share-map.service";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
import * as i4 from "@angular/material/icon";
|
|
9
|
+
import * as i5 from "@angular/material/form-field";
|
|
10
|
+
import * as i6 from "@angular/material/input";
|
|
11
|
+
import * as i7 from "@angular/material/button";
|
|
12
|
+
import * as i8 from "@igo2/common";
|
|
13
|
+
import * as i9 from "@ngx-translate/core";
|
|
14
|
+
function ShareMapUrlComponent_div_13_h4_1_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
+
i0.ɵɵelementStart(0, "h4");
|
|
16
|
+
i0.ɵɵtext(1);
|
|
17
|
+
i0.ɵɵpipe(2, "translate");
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
i0.ɵɵadvance(1);
|
|
21
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.included"));
|
|
22
|
+
} }
|
|
23
|
+
function ShareMapUrlComponent_div_13_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementStart(0, "li");
|
|
25
|
+
i0.ɵɵtext(1);
|
|
26
|
+
i0.ɵɵpipe(2, "translate");
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
i0.ɵɵadvance(1);
|
|
30
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.context"));
|
|
31
|
+
} }
|
|
32
|
+
function ShareMapUrlComponent_div_13_li_6_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelementStart(0, "li");
|
|
34
|
+
i0.ɵɵtext(1);
|
|
35
|
+
i0.ɵɵpipe(2, "translate");
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
i0.ɵɵadvance(1);
|
|
39
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.center"));
|
|
40
|
+
} }
|
|
41
|
+
function ShareMapUrlComponent_div_13_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
42
|
+
i0.ɵɵelementStart(0, "li");
|
|
43
|
+
i0.ɵɵtext(1);
|
|
44
|
+
i0.ɵɵpipe(2, "translate");
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
i0.ɵɵadvance(1);
|
|
48
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.zoom"));
|
|
49
|
+
} }
|
|
50
|
+
function ShareMapUrlComponent_div_13_li_10_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
i0.ɵɵelementStart(0, "li");
|
|
52
|
+
i0.ɵɵtext(1);
|
|
53
|
+
i0.ɵɵpipe(2, "translate");
|
|
54
|
+
i0.ɵɵelementEnd();
|
|
55
|
+
} if (rf & 2) {
|
|
56
|
+
i0.ɵɵadvance(1);
|
|
57
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.addedLayers"));
|
|
58
|
+
} }
|
|
59
|
+
function ShareMapUrlComponent_div_13_li_12_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "li");
|
|
61
|
+
i0.ɵɵtext(1);
|
|
62
|
+
i0.ɵɵpipe(2, "translate");
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
i0.ɵɵadvance(1);
|
|
66
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.visibleInvisible"));
|
|
67
|
+
} }
|
|
68
|
+
function ShareMapUrlComponent_div_13_h4_14_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
i0.ɵɵelementStart(0, "h4");
|
|
70
|
+
i0.ɵɵtext(1);
|
|
71
|
+
i0.ɵɵpipe(2, "translate");
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
} if (rf & 2) {
|
|
74
|
+
i0.ɵɵadvance(1);
|
|
75
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.excluded"));
|
|
76
|
+
} }
|
|
77
|
+
function ShareMapUrlComponent_div_13_li_17_Template(rf, ctx) { if (rf & 1) {
|
|
78
|
+
i0.ɵɵelementStart(0, "li");
|
|
79
|
+
i0.ɵɵtext(1);
|
|
80
|
+
i0.ɵɵpipe(2, "translate");
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
} if (rf & 2) {
|
|
83
|
+
i0.ɵɵadvance(1);
|
|
84
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.order"));
|
|
85
|
+
} }
|
|
86
|
+
function ShareMapUrlComponent_div_13_li_19_Template(rf, ctx) { if (rf & 1) {
|
|
87
|
+
i0.ɵɵelementStart(0, "li");
|
|
88
|
+
i0.ɵɵtext(1);
|
|
89
|
+
i0.ɵɵpipe(2, "translate");
|
|
90
|
+
i0.ɵɵelementEnd();
|
|
91
|
+
} if (rf & 2) {
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.opacity"));
|
|
94
|
+
} }
|
|
95
|
+
function ShareMapUrlComponent_div_13_li_21_Template(rf, ctx) { if (rf & 1) {
|
|
96
|
+
i0.ɵɵelementStart(0, "li");
|
|
97
|
+
i0.ɵɵtext(1);
|
|
98
|
+
i0.ɵɵpipe(2, "translate");
|
|
99
|
+
i0.ɵɵelementEnd();
|
|
100
|
+
} if (rf & 2) {
|
|
101
|
+
i0.ɵɵadvance(1);
|
|
102
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.filterOgc"));
|
|
103
|
+
} }
|
|
104
|
+
function ShareMapUrlComponent_div_13_li_23_Template(rf, ctx) { if (rf & 1) {
|
|
105
|
+
i0.ɵɵelementStart(0, "li");
|
|
106
|
+
i0.ɵɵtext(1);
|
|
107
|
+
i0.ɵɵpipe(2, "translate");
|
|
108
|
+
i0.ɵɵelementEnd();
|
|
109
|
+
} if (rf & 2) {
|
|
110
|
+
i0.ɵɵadvance(1);
|
|
111
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "igo.context.shareMap.filterTime"));
|
|
112
|
+
} }
|
|
113
|
+
function ShareMapUrlComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
114
|
+
i0.ɵɵelementStart(0, "div");
|
|
115
|
+
i0.ɵɵtemplate(1, ShareMapUrlComponent_div_13_h4_1_Template, 3, 3, "h4", 7);
|
|
116
|
+
i0.ɵɵpipe(2, "translate");
|
|
117
|
+
i0.ɵɵelementStart(3, "ul");
|
|
118
|
+
i0.ɵɵtemplate(4, ShareMapUrlComponent_div_13_li_4_Template, 3, 3, "li", 7);
|
|
119
|
+
i0.ɵɵpipe(5, "translate");
|
|
120
|
+
i0.ɵɵtemplate(6, ShareMapUrlComponent_div_13_li_6_Template, 3, 3, "li", 7);
|
|
121
|
+
i0.ɵɵpipe(7, "translate");
|
|
122
|
+
i0.ɵɵtemplate(8, ShareMapUrlComponent_div_13_li_8_Template, 3, 3, "li", 7);
|
|
123
|
+
i0.ɵɵpipe(9, "translate");
|
|
124
|
+
i0.ɵɵtemplate(10, ShareMapUrlComponent_div_13_li_10_Template, 3, 3, "li", 7);
|
|
125
|
+
i0.ɵɵpipe(11, "translate");
|
|
126
|
+
i0.ɵɵtemplate(12, ShareMapUrlComponent_div_13_li_12_Template, 3, 3, "li", 7);
|
|
127
|
+
i0.ɵɵpipe(13, "translate");
|
|
128
|
+
i0.ɵɵelementEnd();
|
|
129
|
+
i0.ɵɵtemplate(14, ShareMapUrlComponent_div_13_h4_14_Template, 3, 3, "h4", 7);
|
|
130
|
+
i0.ɵɵpipe(15, "translate");
|
|
131
|
+
i0.ɵɵelementStart(16, "ul");
|
|
132
|
+
i0.ɵɵtemplate(17, ShareMapUrlComponent_div_13_li_17_Template, 3, 3, "li", 7);
|
|
133
|
+
i0.ɵɵpipe(18, "translate");
|
|
134
|
+
i0.ɵɵtemplate(19, ShareMapUrlComponent_div_13_li_19_Template, 3, 3, "li", 7);
|
|
135
|
+
i0.ɵɵpipe(20, "translate");
|
|
136
|
+
i0.ɵɵtemplate(21, ShareMapUrlComponent_div_13_li_21_Template, 3, 3, "li", 7);
|
|
137
|
+
i0.ɵɵpipe(22, "translate");
|
|
138
|
+
i0.ɵɵtemplate(23, ShareMapUrlComponent_div_13_li_23_Template, 3, 3, "li", 7);
|
|
139
|
+
i0.ɵɵpipe(24, "translate");
|
|
140
|
+
i0.ɵɵelementEnd()();
|
|
141
|
+
} if (rf & 2) {
|
|
142
|
+
i0.ɵɵadvance(1);
|
|
143
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 11, "igo.context.shareMap.included") !== "");
|
|
144
|
+
i0.ɵɵadvance(3);
|
|
145
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 13, "igo.context.shareMap.context") !== "");
|
|
146
|
+
i0.ɵɵadvance(2);
|
|
147
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(7, 15, "igo.context.shareMap.center") !== "");
|
|
148
|
+
i0.ɵɵadvance(2);
|
|
149
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(9, 17, "igo.context.shareMap.zoom") !== "");
|
|
150
|
+
i0.ɵɵadvance(2);
|
|
151
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 19, "igo.context.shareMap.addedLayers") !== "");
|
|
152
|
+
i0.ɵɵadvance(2);
|
|
153
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 21, "igo.context.shareMap.visibleInvisible") !== "");
|
|
154
|
+
i0.ɵɵadvance(2);
|
|
155
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(15, 23, "igo.context.shareMap.excluded") !== "");
|
|
156
|
+
i0.ɵɵadvance(3);
|
|
157
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(18, 25, "igo.context.shareMap.order") !== "");
|
|
158
|
+
i0.ɵɵadvance(2);
|
|
159
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(20, 27, "igo.context.shareMap.opacity") !== "");
|
|
160
|
+
i0.ɵɵadvance(2);
|
|
161
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(22, 29, "igo.context.shareMap.filterOgc") !== "");
|
|
162
|
+
i0.ɵɵadvance(2);
|
|
163
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(24, 31, "igo.context.shareMap.filterTime") !== "");
|
|
164
|
+
} }
|
|
165
|
+
function ShareMapUrlComponent_igo_custom_html_15_Template(rf, ctx) { if (rf & 1) {
|
|
166
|
+
i0.ɵɵelement(0, "igo-custom-html", 9);
|
|
167
|
+
i0.ɵɵpipe(1, "translate");
|
|
168
|
+
} if (rf & 2) {
|
|
169
|
+
i0.ɵɵproperty("html", i0.ɵɵpipeBind1(1, 1, "igo.context.shareMap.htmlClarifications"));
|
|
170
|
+
} }
|
|
171
|
+
export class ShareMapUrlComponent {
|
|
172
|
+
constructor(messageService, shareMapService, cdRef) {
|
|
173
|
+
this.messageService = messageService;
|
|
174
|
+
this.shareMapService = shareMapService;
|
|
175
|
+
this.cdRef = cdRef;
|
|
176
|
+
this.publicShareOption = {
|
|
177
|
+
layerlistControls: { querystring: '' }
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
ngOnInit() {
|
|
181
|
+
this.resetUrl();
|
|
182
|
+
this.mapState$$ = combineLatest([
|
|
183
|
+
this.map.viewController.state$,
|
|
184
|
+
this.map.status$
|
|
185
|
+
]).subscribe(c => {
|
|
186
|
+
this.resetUrl();
|
|
187
|
+
this.cdRef.detectChanges();
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
ngAfterViewInit() {
|
|
191
|
+
this.resetUrl();
|
|
192
|
+
}
|
|
193
|
+
ngOnDestroy() {
|
|
194
|
+
this.mapState$$.unsubscribe();
|
|
195
|
+
}
|
|
196
|
+
resetUrl(values = {}) {
|
|
197
|
+
this.url = this.shareMapService.getUrlWithoutApi(this.map, this.publicShareOption);
|
|
198
|
+
}
|
|
199
|
+
copyTextToClipboard(textArea) {
|
|
200
|
+
const successful = Clipboard.copy(textArea);
|
|
201
|
+
if (successful) {
|
|
202
|
+
this.messageService.success('igo.context.shareMap.dialog.copyMsg', 'igo.context.shareMap.dialog.copyTitle');
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
ShareMapUrlComponent.ɵfac = function ShareMapUrlComponent_Factory(t) { return new (t || ShareMapUrlComponent)(i0.ɵɵdirectiveInject(i1.MessageService), i0.ɵɵdirectiveInject(i2.ShareMapService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
207
|
+
ShareMapUrlComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareMapUrlComponent, selectors: [["igo-share-map-url"]], inputs: { map: "map" }, decls: 17, vars: 13, 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"], ["class", "shareCustomPadding", "class", "mat-typography", 3, "html", 4, "ngIf"], [1, "mat-typography", 3, "html"]], template: function ShareMapUrlComponent_Template(rf, ctx) { if (rf & 1) {
|
|
208
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
209
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "mat-form-field");
|
|
210
|
+
i0.ɵɵelement(2, "textarea", 1, 2);
|
|
211
|
+
i0.ɵɵpipe(4, "translate");
|
|
212
|
+
i0.ɵɵelementEnd();
|
|
213
|
+
i0.ɵɵelementStart(5, "div", 3)(6, "button", 4);
|
|
214
|
+
i0.ɵɵlistener("click", function ShareMapUrlComponent_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r14); const _r0 = i0.ɵɵreference(3); return i0.ɵɵresetView(ctx.copyTextToClipboard(_r0)); });
|
|
215
|
+
i0.ɵɵelement(7, "mat-icon", 5);
|
|
216
|
+
i0.ɵɵtext(8);
|
|
217
|
+
i0.ɵɵpipe(9, "translate");
|
|
218
|
+
i0.ɵɵelementEnd()();
|
|
219
|
+
i0.ɵɵelementStart(10, "div");
|
|
220
|
+
i0.ɵɵelement(11, "br");
|
|
221
|
+
i0.ɵɵelementStart(12, "section", 6);
|
|
222
|
+
i0.ɵɵtemplate(13, ShareMapUrlComponent_div_13_Template, 25, 33, "div", 7);
|
|
223
|
+
i0.ɵɵpipe(14, "translate");
|
|
224
|
+
i0.ɵɵtemplate(15, ShareMapUrlComponent_igo_custom_html_15_Template, 2, 3, "igo-custom-html", 8);
|
|
225
|
+
i0.ɵɵpipe(16, "translate");
|
|
226
|
+
i0.ɵɵelementEnd()()();
|
|
227
|
+
} if (rf & 2) {
|
|
228
|
+
i0.ɵɵadvance(2);
|
|
229
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(4, 5, "igo.context.shareMap.placeholderLink"))("value", ctx.url);
|
|
230
|
+
i0.ɵɵadvance(6);
|
|
231
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 7, "igo.context.shareMap.copy"), " ");
|
|
232
|
+
i0.ɵɵadvance(5);
|
|
233
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 9, "igo.context.shareMap.htmlClarifications") === "");
|
|
234
|
+
i0.ɵɵadvance(2);
|
|
235
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 11, "igo.context.shareMap.htmlClarifications") !== "");
|
|
236
|
+
} }, dependencies: [i3.NgIf, i4.MatIcon, i5.MatFormField, i6.MatInput, i7.MatButton, i8.CustomHtmlComponent, i9.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}igo-custom-html.shareCustomPadding[_ngcontent-%COMP%]{padding:0}"] });
|
|
237
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapUrlComponent, [{
|
|
238
|
+
type: Component,
|
|
239
|
+
args: [{ selector: 'igo-share-map-url', template: "<div class=\"igo-input-container linkToShare\">\n <mat-form-field>\n <textarea #textArea matInput readonly rows=\"3\"\n [placeholder]=\"'igo.context.shareMap.placeholderLink' | translate\"\n [value]=\"url\"></textarea>\n </mat-form-field>\n\n <div class=\"igo-form-button-group\">\n <button\n mat-raised-button\n (click)=\"copyTextToClipboard(textArea)\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n {{ 'igo.context.shareMap.copy' | translate }}\n </button>\n </div>\n <div>\n <br/>\n <section class=\"mat-typography\">\n <div *ngIf=\"('igo.context.shareMap.htmlClarifications' | translate)===''\">\n <h4 *ngIf=\"('igo.context.shareMap.included' | translate)!==''\">{{'igo.context.shareMap.included' | translate}}</h4>\n <ul>\n <li *ngIf=\"('igo.context.shareMap.context' | translate)!==''\">{{'igo.context.shareMap.context' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.center' | translate)!==''\">{{'igo.context.shareMap.center' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.zoom' | translate)!==''\">{{'igo.context.shareMap.zoom' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.addedLayers' | translate)!==''\">{{'igo.context.shareMap.addedLayers' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.visibleInvisible' | translate)!==''\">{{'igo.context.shareMap.visibleInvisible' | translate}}</li>\n </ul>\n\n <h4 *ngIf=\"('igo.context.shareMap.excluded' | translate)!==''\">{{'igo.context.shareMap.excluded' | translate}}</h4>\n <ul>\n <li *ngIf=\"('igo.context.shareMap.order' | translate)!==''\">{{'igo.context.shareMap.order' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.opacity' | translate)!==''\">{{'igo.context.shareMap.opacity' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.filterOgc' | translate)!==''\">{{'igo.context.shareMap.filterOgc' | translate}}</li>\n <li *ngIf=\"('igo.context.shareMap.filterTime' | translate)!==''\">{{'igo.context.shareMap.filterTime' | translate}}</li>\n </ul>\n </div>\n <igo-custom-html class=\"shareCustomPadding\" *ngIf=\"('igo.context.shareMap.htmlClarifications' | translate)!==''\" class=\"mat-typography\"\n [html]=\"('igo.context.shareMap.htmlClarifications' | translate)\">\n </igo-custom-html>\n </section>\n </div>\n</div>\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}igo-custom-html.shareCustomPadding{padding:0}\n"] }]
|
|
240
|
+
}], function () { return [{ type: i1.MessageService }, { type: i2.ShareMapService }, { type: i0.ChangeDetectorRef }]; }, { map: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}] }); })();
|
|
243
243
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmUtbWFwLXVybC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9saWIvc2hhcmUtbWFwL3NoYXJlLW1hcC9zaGFyZS1tYXAtdXJsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbnRleHQvc3JjL2xpYi9zaGFyZS1tYXAvc2hhcmUtbWFwL3NoYXJlLW1hcC11cmwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixTQUFTLEVBQUUsS0FBSyxFQUF3QyxNQUFNLGVBQWUsQ0FBQztBQUV0RyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBS3hDLE9BQU8sRUFBRSxhQUFhLEVBQWdCLE1BQU0sTUFBTSxDQUFDOzs7Ozs7Ozs7Ozs7SUNZM0MsMEJBQStEO0lBQUEsWUFBK0M7O0lBQUEsaUJBQUs7O0lBQXBELGVBQStDO0lBQS9DLDJFQUErQzs7O0lBRTVHLDBCQUE4RDtJQUFBLFlBQThDOztJQUFBLGlCQUFLOztJQUFuRCxlQUE4QztJQUE5QywwRUFBOEM7OztJQUM1RywwQkFBNkQ7SUFBQSxZQUE2Qzs7SUFBQSxpQkFBSzs7SUFBbEQ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