@igo2/context 16.0.0-rc.4 → 16.0.0-rc.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/esm2022/lib/context-manager/context-list/context-list.component.mjs +122 -106
- package/esm2022/lib/context-manager/context-permissions/context-permissions.component.mjs +4 -4
- package/esm2022/lib/context-manager/shared/context.service.mjs +9 -9
- package/esm2022/lib/context-map-button/context-map-button.module.mjs +5 -1
- package/esm2022/lib/context-map-button/poi-button/poi-button.component.mjs +16 -14
- package/esm2022/lib/environment/environment.interface.mjs +1 -1
- package/fesm2022/igo2-context.mjs +153 -133
- package/fesm2022/igo2-context.mjs.map +1 -1
- package/lib/context-manager/context-list/context-list.component.d.ts +2 -1
- package/lib/context-map-button/context-map-button.module.d.ts +8 -7
- package/lib/environment/environment.interface.d.ts +1 -1
- package/locale/en.context.json +2 -1
- package/locale/fr.context.json +2 -1
- package/package.json +6 -6
|
@@ -24,7 +24,7 @@ import * as i11 from '@angular/material/select';
|
|
|
24
24
|
import { MatSelectModule } from '@angular/material/select';
|
|
25
25
|
import * as i3$1 from '@angular/material/tabs';
|
|
26
26
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
27
|
-
import * as i6$
|
|
27
|
+
import * as i6$3 from '@angular/material/tooltip';
|
|
28
28
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
29
29
|
import * as i13 from '@igo2/common';
|
|
30
30
|
import { IgoSpinnerModule, IgoConfirmDialogModule, IgoStopPropagationModule, ActionStore, ActionbarMode, IgoListModule, IgoKeyValueModule, IgoCollapsibleModule, IgoActionbarModule, IgoCustomHtmlModule, getEntityTitle, IgoPanelModule, IgoFlexibleModule } from '@igo2/common';
|
|
@@ -47,7 +47,7 @@ import * as i14 from '@angular/material/autocomplete';
|
|
|
47
47
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
48
48
|
import * as i1$3 from '@angular/material/dialog';
|
|
49
49
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
50
|
-
import * as
|
|
50
|
+
import * as i6$2 from '@angular/material/icon';
|
|
51
51
|
import { MatIconModule } from '@angular/material/icon';
|
|
52
52
|
import * as i7$1 from '@angular/material/list';
|
|
53
53
|
import { MatListModule } from '@angular/material/list';
|
|
@@ -421,23 +421,23 @@ class ContextService {
|
|
|
421
421
|
}
|
|
422
422
|
let i = 0;
|
|
423
423
|
for (const layer of layers) {
|
|
424
|
-
const
|
|
424
|
+
const opts = {
|
|
425
|
+
id: layer.options.id ? String(layer.options.id) : undefined,
|
|
425
426
|
title: layer.options.title,
|
|
426
427
|
zIndex: ++i,
|
|
427
428
|
visible: layer.visible,
|
|
428
429
|
security: layer.options.security,
|
|
429
|
-
opacity: layer.opacity
|
|
430
|
-
};
|
|
431
|
-
const opts = {
|
|
432
|
-
id: layer.options.id ? String(layer.options.id) : undefined,
|
|
433
|
-
layerOptions,
|
|
430
|
+
opacity: layer.opacity,
|
|
434
431
|
sourceOptions: {
|
|
435
432
|
type: layer.dataSource.options.type,
|
|
436
433
|
params: layer.dataSource.options.params,
|
|
437
|
-
url: layer.dataSource.options.url
|
|
438
|
-
queryable: layer.queryable
|
|
434
|
+
url: layer.dataSource.options.url
|
|
439
435
|
}
|
|
440
436
|
};
|
|
437
|
+
if (layer.queryable) {
|
|
438
|
+
// TODO: bad practice replace bracket notation
|
|
439
|
+
opts.sourceOptions['queryable'] = layer.queryable;
|
|
440
|
+
}
|
|
441
441
|
if (opts.sourceOptions.type) {
|
|
442
442
|
context.layers.push(opts);
|
|
443
443
|
}
|
|
@@ -1425,7 +1425,7 @@ class BookmarkButtonComponent {
|
|
|
1425
1425
|
} if (rf & 2) {
|
|
1426
1426
|
i0.ɵɵadvance(1);
|
|
1427
1427
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(2, 2, "igo.context.bookmarkButton.create"))("color", ctx.color);
|
|
1428
|
-
} }, dependencies: [i7.MatIconButton,
|
|
1428
|
+
} }, dependencies: [i7.MatIconButton, i6$2.MatIcon, i6$3.MatTooltip, i9$1.TranslatePipe], styles: ["[_nghost-%COMP%] button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] button[_ngcontent-%COMP%] .mat-ripple[_ngcontent-%COMP%], [_nghost-%COMP%] button[_ngcontent-%COMP%] .mdc-icon-button__ripple[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .igo-bookmark-button-container[_ngcontent-%COMP%]{width:40px}[_nghost-%COMP%] .igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .igo-bookmark-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#efefef}"] });
|
|
1429
1429
|
}
|
|
1430
1430
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BookmarkButtonComponent, [{
|
|
1431
1431
|
type: Component,
|
|
@@ -1511,15 +1511,15 @@ class PoiService {
|
|
|
1511
1511
|
type: Injectable
|
|
1512
1512
|
}], function () { return [{ type: i1.HttpClient }, { type: i3.ConfigService }]; }, null); })();
|
|
1513
1513
|
|
|
1514
|
-
function
|
|
1514
|
+
function PoiButtonComponent_mat_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
1515
1515
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
1516
1516
|
i0.ɵɵelementStart(0, "mat-option", 6);
|
|
1517
|
-
i0.ɵɵlistener("click", function
|
|
1517
|
+
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_9_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)); });
|
|
1518
1518
|
i0.ɵɵelementStart(1, "div", 2);
|
|
1519
1519
|
i0.ɵɵtext(2);
|
|
1520
1520
|
i0.ɵɵelementEnd();
|
|
1521
1521
|
i0.ɵɵelementStart(3, "button", 7);
|
|
1522
|
-
i0.ɵɵlistener("click", function
|
|
1522
|
+
i0.ɵɵlistener("click", function PoiButtonComponent_mat_option_9_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)); });
|
|
1523
1523
|
i0.ɵɵelement(4, "mat-icon", 8);
|
|
1524
1524
|
i0.ɵɵelementEnd()();
|
|
1525
1525
|
} if (rf & 2) {
|
|
@@ -1635,7 +1635,7 @@ class PoiButtonComponent {
|
|
|
1635
1635
|
});
|
|
1636
1636
|
}
|
|
1637
1637
|
static ɵ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(i13.ConfirmDialogService)); };
|
|
1638
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButtonComponent, selectors: [["igo-poi-button"]], inputs: { map: "map", color: "color" }, decls:
|
|
1638
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoiButtonComponent, selectors: [["igo-poi-button"]], inputs: { map: "map", color: "color" }, decls: 10, vars: 7, consts: [["floatPlaceholder", "never", 3, "placeholder"], [1, "poi-option", 3, "click"], [1, "titlePoi"], ["igoStopPropagation", "", "mat-icon-button", "", "color", "primary", 3, "click"], ["svgIcon", "plus-circle"], ["class", "poi-option", 3, "value", "click", 4, "ngFor", "ngForOf"], [1, "poi-option", 3, "value", "click"], ["mat-icon-button", "", "igoStopPropagation", "", "color", "warn", 3, "click"], ["svgIcon", "delete"]], template: function PoiButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1639
1639
|
i0.ɵɵelementStart(0, "mat-select", 0);
|
|
1640
1640
|
i0.ɵɵpipe(1, "translate");
|
|
1641
1641
|
i0.ɵɵelementStart(2, "mat-option", 1);
|
|
@@ -1648,19 +1648,20 @@ class PoiButtonComponent {
|
|
|
1648
1648
|
i0.ɵɵlistener("click", function PoiButtonComponent_Template_button_click_6_listener() { return ctx.createPoi(); });
|
|
1649
1649
|
i0.ɵɵelement(7, "mat-icon", 4);
|
|
1650
1650
|
i0.ɵɵelementEnd()();
|
|
1651
|
-
i0.ɵɵ
|
|
1651
|
+
i0.ɵɵelement(8, "mat-divider");
|
|
1652
|
+
i0.ɵɵtemplate(9, PoiButtonComponent_mat_option_9_Template, 5, 2, "mat-option", 5);
|
|
1652
1653
|
i0.ɵɵelementEnd();
|
|
1653
1654
|
} if (rf & 2) {
|
|
1654
1655
|
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(1, 3, "igo.context.poiButton.placeholder"));
|
|
1655
1656
|
i0.ɵɵadvance(4);
|
|
1656
|
-
i0.ɵɵ
|
|
1657
|
-
i0.ɵɵadvance(
|
|
1657
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 5, "igo.context.poiButton.create"), " ");
|
|
1658
|
+
i0.ɵɵadvance(5);
|
|
1658
1659
|
i0.ɵɵproperty("ngForOf", ctx.pois);
|
|
1659
|
-
} }, dependencies: [i6.NgForOf, i13.StopPropagationDirective, i7.MatIconButton,
|
|
1660
|
+
} }, dependencies: [i6.NgForOf, i13.StopPropagationDirective, i7.MatIconButton, i9.MatDivider, i6$2.MatIcon, i12.MatOption, i11.MatSelect, i9$1.TranslatePipe], styles: ["[_nghost-%COMP%]{background-color:#fff;padding:0 8px;height:100%}mat-select[_ngcontent-%COMP%]{width:150px;height:100%}mat-select[_ngcontent-%COMP%] .mat-mdc-select-trigger{height:100%} .poi-option .mdc-list-item__primary-text{display:flex;justify-content:space-between;align-items:center;flex:1;overflow:visible} .poi-option button{margin-right:-16px}"] });
|
|
1660
1661
|
}
|
|
1661
1662
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoiButtonComponent, [{
|
|
1662
1663
|
type: Component,
|
|
1663
|
-
args: [{ selector: 'igo-poi-button', template: "<mat-select\r\n [placeholder]=\"'igo.context.poiButton.placeholder' | translate\"\r\n floatPlaceholder=\"never\"\r\n>\r\n <mat-option (click)=\"createPoi()\">\r\n <div class=\"titlePoi\"
|
|
1664
|
+
args: [{ selector: 'igo-poi-button', template: "<mat-select\r\n [placeholder]=\"'igo.context.poiButton.placeholder' | translate\"\r\n floatPlaceholder=\"never\"\r\n>\r\n <mat-option (click)=\"createPoi()\" class=\"poi-option\">\r\n <div class=\"titlePoi\">\r\n {{ 'igo.context.poiButton.create' | translate }}\r\n </div>\r\n <button\r\n igoStopPropagation\r\n mat-icon-button\r\n color=\"primary\"\r\n (click)=\"createPoi()\"\r\n >\r\n <mat-icon svgIcon=\"plus-circle\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n <mat-divider></mat-divider>\r\n <mat-option\r\n *ngFor=\"let poi of pois\"\r\n class=\"poi-option\"\r\n [value]=\"poi.id\"\r\n (click)=\"zoomOnPoi(poi.id)\"\r\n >\r\n <div class=\"titlePoi\">{{ poi.title }}</div>\r\n <button\r\n mat-icon-button\r\n igoStopPropagation\r\n color=\"warn\"\r\n (click)=\"deletePoi(poi)\"\r\n >\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </mat-option>\r\n</mat-select>\r\n", styles: [":host{background-color:#fff;padding:0 8px;height:100%}mat-select{width:150px;height:100%}mat-select ::ng-deep .mat-mdc-select-trigger{height:100%}::ng-deep .poi-option .mdc-list-item__primary-text{display:flex;justify-content:space-between;align-items:center;flex:1;overflow:visible}::ng-deep .poi-option button{margin-right:-16px}\n"] }]
|
|
1664
1665
|
}], function () { return [{ type: i1$3.MatDialog }, { type: i2.AuthService }, { type: PoiService }, { type: i3.MessageService }, { type: i3.LanguageService }, { type: i13.ConfirmDialogService }]; }, { map: [{
|
|
1665
1666
|
type: Input
|
|
1666
1667
|
}], color: [{
|
|
@@ -1832,7 +1833,7 @@ class UserButtonComponent {
|
|
|
1832
1833
|
i0.ɵɵtemplate(0, UserButtonComponent_div_0_Template, 11, 11, "div", 0);
|
|
1833
1834
|
} if (rf & 2) {
|
|
1834
1835
|
i0.ɵɵproperty("ngIf", ctx.visible);
|
|
1835
|
-
} }, dependencies: [i6.NgIf, i7.MatIconButton,
|
|
1836
|
+
} }, dependencies: [i6.NgIf, i7.MatIconButton, i6$2.MatIcon, i6$3.MatTooltip, PoiButtonComponent, i9$1.TranslatePipe], styles: ["[_nghost-%COMP%] button[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] button[_ngcontent-%COMP%] .mat-ripple[_ngcontent-%COMP%], [_nghost-%COMP%] button[_ngcontent-%COMP%] .mdc-icon-button__ripple[_ngcontent-%COMP%]{border-radius:0!important}[_nghost-%COMP%] .igo-user-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .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){[_nghost-%COMP%] .igo-user-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:absolute;bottom:0}}[_nghost-%COMP%] .igo-user-button-more-container[_ngcontent-%COMP%]{float:left;height:40px}[_nghost-%COMP%] .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){[_nghost-%COMP%] .igo-user-button-more-container[_ngcontent-%COMP%]{height:80px;width:150px;position:relative;left:24px}}"], data: { animation: [userButtonSlideInOut()] } });
|
|
1836
1837
|
}
|
|
1837
1838
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserButtonComponent, [{
|
|
1838
1839
|
type: Component,
|
|
@@ -1859,6 +1860,7 @@ class IgoContextMapButtonModule {
|
|
|
1859
1860
|
IgoStopPropagationModule,
|
|
1860
1861
|
MatButtonModule,
|
|
1861
1862
|
MatDialogModule,
|
|
1863
|
+
MatDividerModule,
|
|
1862
1864
|
MatFormFieldModule,
|
|
1863
1865
|
MatIconModule,
|
|
1864
1866
|
MatInputModule,
|
|
@@ -1878,6 +1880,7 @@ class IgoContextMapButtonModule {
|
|
|
1878
1880
|
IgoStopPropagationModule,
|
|
1879
1881
|
MatButtonModule,
|
|
1880
1882
|
MatDialogModule,
|
|
1883
|
+
MatDividerModule,
|
|
1881
1884
|
MatFormFieldModule,
|
|
1882
1885
|
MatIconModule,
|
|
1883
1886
|
MatInputModule,
|
|
@@ -1915,6 +1918,7 @@ class IgoContextMapButtonModule {
|
|
|
1915
1918
|
IgoStopPropagationModule,
|
|
1916
1919
|
MatButtonModule,
|
|
1917
1920
|
MatDialogModule,
|
|
1921
|
+
MatDividerModule,
|
|
1918
1922
|
MatFormFieldModule,
|
|
1919
1923
|
MatIconModule,
|
|
1920
1924
|
MatInputModule,
|
|
@@ -2043,7 +2047,7 @@ class ContextFormComponent {
|
|
|
2043
2047
|
i0.ɵɵproperty("disabled", !ctx.form.valid || ctx.disabled);
|
|
2044
2048
|
i0.ɵɵadvance(1);
|
|
2045
2049
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, "igo.context.contextManager.form.edit"), " ");
|
|
2046
|
-
} }, dependencies: [i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.MaxLengthValidator, i1$2.FormGroupDirective, i1$2.FormControlName, i6$1.MatFormField, i6$1.MatError, i5.MatInput,
|
|
2050
|
+
} }, dependencies: [i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.MaxLengthValidator, i1$2.FormGroupDirective, i1$2.FormControlName, i6$1.MatFormField, i6$1.MatError, i5.MatInput, i6$2.MatIcon, i7.MatButton, i7.MatIconButton, i6$3.MatTooltip, i9$1.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}"] });
|
|
2047
2051
|
}
|
|
2048
2052
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextFormComponent, [{
|
|
2049
2053
|
type: Component,
|
|
@@ -2358,7 +2362,7 @@ class ContextItemComponent {
|
|
|
2358
2362
|
i0.ɵɵtextInterpolate(ctx.context.title);
|
|
2359
2363
|
i0.ɵɵadvance(1);
|
|
2360
2364
|
i0.ɵɵproperty("ngIf", ctx.auth.authenticated);
|
|
2361
|
-
} }, dependencies: [i6.NgClass, i6.NgIf,
|
|
2365
|
+
} }, dependencies: [i6.NgClass, i6.NgIf, i6$2.MatIcon, i7.MatIconButton, i6$3.MatTooltip, i7$1.MatListItem, i7$1.MatListItemAvatar, i7$1.MatListItemTitle, i7$1.MatListItemMeta, i13.CollapseDirective, i13.StopPropagationDirective, i9$1.TranslatePipe], styles: ["[_nghost-%COMP%]{overflow:hidden}[_nghost-%COMP%] .igo-actions-container[_ngcontent-%COMP%]{flex-shrink:0}[_nghost-%COMP%] .igo-actions-expand-container[_ngcontent-%COMP%]{display:inline-flex}[_nghost-%COMP%] mat-icon.disabled[_ngcontent-%COMP%]{color:#00000061}[_nghost-%COMP%] button[matlistitemavatar][_ngcontent-%COMP%]{margin-right:8px}"], changeDetection: 0 });
|
|
2362
2366
|
}
|
|
2363
2367
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextItemComponent, [{
|
|
2364
2368
|
type: Component,
|
|
@@ -2399,20 +2403,20 @@ var ContextListControlsEnum;
|
|
|
2399
2403
|
})(ContextListControlsEnum || (ContextListControlsEnum = {}));
|
|
2400
2404
|
|
|
2401
2405
|
function ContextListComponent_mat_form_field_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
2402
|
-
const
|
|
2406
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
2403
2407
|
i0.ɵɵelementStart(0, "button", 16);
|
|
2404
|
-
i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
2408
|
+
i0.ɵɵlistener("click", function ContextListComponent_mat_form_field_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.clearFilter()); });
|
|
2405
2409
|
i0.ɵɵelement(1, "mat-icon", 17);
|
|
2406
2410
|
i0.ɵɵelementEnd();
|
|
2407
2411
|
} }
|
|
2408
2412
|
function ContextListComponent_mat_form_field_2_Template(rf, ctx) { if (rf & 1) {
|
|
2409
|
-
const
|
|
2413
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
2410
2414
|
i0.ɵɵelementStart(0, "mat-form-field", 13)(1, "mat-label");
|
|
2411
2415
|
i0.ɵɵtext(2);
|
|
2412
2416
|
i0.ɵɵpipe(3, "translate");
|
|
2413
2417
|
i0.ɵɵelementEnd();
|
|
2414
2418
|
i0.ɵɵelementStart(4, "input", 14);
|
|
2415
|
-
i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(
|
|
2419
|
+
i0.ɵɵlistener("ngModelChange", function ContextListComponent_mat_form_field_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.term = $event); });
|
|
2416
2420
|
i0.ɵɵpipe(5, "translate");
|
|
2417
2421
|
i0.ɵɵelementEnd();
|
|
2418
2422
|
i0.ɵɵtemplate(6, ContextListComponent_mat_form_field_2_button_6_Template, 2, 0, "button", 15);
|
|
@@ -2427,9 +2431,9 @@ function ContextListComponent_mat_form_field_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2427
2431
|
i0.ɵɵproperty("ngIf", ctx_r0.term.length);
|
|
2428
2432
|
} }
|
|
2429
2433
|
function ContextListComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
2430
|
-
const
|
|
2434
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
2431
2435
|
i0.ɵɵelementStart(0, "button", 18);
|
|
2432
|
-
i0.ɵɵlistener("click", function ContextListComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
2436
|
+
i0.ɵɵlistener("click", function ContextListComponent_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.toggleSort(true)); });
|
|
2433
2437
|
i0.ɵɵpipe(1, "translate");
|
|
2434
2438
|
i0.ɵɵelement(2, "mat-icon", 19);
|
|
2435
2439
|
i0.ɵɵelementEnd();
|
|
@@ -2437,9 +2441,9 @@ function ContextListComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
2437
2441
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 1, "igo.context.contextManager.sortAlphabetically"));
|
|
2438
2442
|
} }
|
|
2439
2443
|
function ContextListComponent_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
2440
|
-
const
|
|
2444
|
+
const _r17 = i0.ɵɵgetCurrentView();
|
|
2441
2445
|
i0.ɵɵelementStart(0, "button", 18);
|
|
2442
|
-
i0.ɵɵlistener("click", function ContextListComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
2446
|
+
i0.ɵɵlistener("click", function ContextListComponent_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.toggleSort(false)); });
|
|
2443
2447
|
i0.ɵɵpipe(1, "translate");
|
|
2444
2448
|
i0.ɵɵelement(2, "mat-icon", 20);
|
|
2445
2449
|
i0.ɵɵelementEnd();
|
|
@@ -2462,113 +2466,128 @@ function ContextListComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2462
2466
|
const _r5 = i0.ɵɵreference(9);
|
|
2463
2467
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, "igo.context.contextManager.filterUser"))("matMenuTriggerFor", _r5);
|
|
2464
2468
|
} }
|
|
2465
|
-
function
|
|
2466
|
-
i0.ɵɵ
|
|
2467
|
-
i0.ɵɵ
|
|
2469
|
+
function ContextListComponent_ng_container_10_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
2470
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
2471
|
+
i0.ɵɵelementStart(0, "button", 9)(1, "mat-checkbox", 26);
|
|
2472
|
+
i0.ɵɵlistener("click", function ContextListComponent_ng_container_10_button_1_Template_mat_checkbox_click_1_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_10_button_1_Template_mat_checkbox_change_1_listener() { i0.ɵɵrestoreView(_r25); const user_r18 = i0.ɵɵnextContext().$implicit; const ctx_r23 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r23.handleToggleCategory(user_r18)); });
|
|
2468
2473
|
i0.ɵɵelementEnd();
|
|
2474
|
+
i0.ɵɵelementStart(2, "span");
|
|
2475
|
+
i0.ɵɵtext(3);
|
|
2476
|
+
i0.ɵɵelementEnd()();
|
|
2469
2477
|
} if (rf & 2) {
|
|
2470
|
-
const
|
|
2471
|
-
const
|
|
2472
|
-
i0.ɵɵproperty("matMenuTriggerFor", _r20);
|
|
2478
|
+
const user_r18 = i0.ɵɵnextContext().$implicit;
|
|
2479
|
+
const ctx_r19 = i0.ɵɵnextContext();
|
|
2473
2480
|
i0.ɵɵadvance(1);
|
|
2474
|
-
i0.ɵɵ
|
|
2481
|
+
i0.ɵɵproperty("checked", ctx_r19.getPermission(user_r18).checked)("indeterminate", ctx_r19.getPermission(user_r18).indeterminate);
|
|
2482
|
+
i0.ɵɵadvance(2);
|
|
2483
|
+
i0.ɵɵtextInterpolate(user_r18.title);
|
|
2475
2484
|
} }
|
|
2476
|
-
function
|
|
2477
|
-
i0.ɵɵ
|
|
2478
|
-
i0.ɵɵ
|
|
2479
|
-
i0.ɵɵ
|
|
2485
|
+
function ContextListComponent_ng_container_10_ng_template_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
2486
|
+
const _r32 = i0.ɵɵgetCurrentView();
|
|
2487
|
+
i0.ɵɵelementStart(0, "button", 9)(1, "mat-checkbox", 10);
|
|
2488
|
+
i0.ɵɵlistener("click", function ContextListComponent_ng_container_10_ng_template_2_button_6_Template_mat_checkbox_click_1_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_10_ng_template_2_button_6_Template_mat_checkbox_change_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r32); const child_r29 = restoredCtx.$implicit; const user_r18 = i0.ɵɵnextContext(2).$implicit; const ctx_r31 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r31.handleToggleCategory(child_r29, user_r18)); });
|
|
2489
|
+
i0.ɵɵtext(2);
|
|
2490
|
+
i0.ɵɵelementEnd()();
|
|
2480
2491
|
} if (rf & 2) {
|
|
2481
|
-
const
|
|
2492
|
+
const child_r29 = ctx.$implicit;
|
|
2493
|
+
const ctx_r28 = i0.ɵɵnextContext(3);
|
|
2482
2494
|
i0.ɵɵadvance(1);
|
|
2483
|
-
i0.ɵɵ
|
|
2495
|
+
i0.ɵɵproperty("checked", ctx_r28.getPermission(child_r29).checked);
|
|
2496
|
+
i0.ɵɵadvance(1);
|
|
2497
|
+
i0.ɵɵtextInterpolate1(" ", child_r29.title, " ");
|
|
2484
2498
|
} }
|
|
2485
|
-
function
|
|
2486
|
-
const
|
|
2487
|
-
i0.ɵɵelementStart(0, "mat-checkbox",
|
|
2488
|
-
i0.ɵɵlistener("click", function
|
|
2489
|
-
i0.ɵɵ
|
|
2499
|
+
function ContextListComponent_ng_container_10_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
2500
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
2501
|
+
i0.ɵɵelementStart(0, "button", 27)(1, "mat-checkbox", 26);
|
|
2502
|
+
i0.ɵɵlistener("click", function ContextListComponent_ng_container_10_ng_template_2_Template_mat_checkbox_click_1_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_ng_container_10_ng_template_2_Template_mat_checkbox_change_1_listener() { i0.ɵɵrestoreView(_r37); const user_r18 = i0.ɵɵnextContext().$implicit; const ctx_r35 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r35.handleToggleCategory(user_r18)); });
|
|
2503
|
+
i0.ɵɵelementEnd();
|
|
2504
|
+
i0.ɵɵelementStart(2, "span");
|
|
2505
|
+
i0.ɵɵtext(3);
|
|
2506
|
+
i0.ɵɵelementEnd()();
|
|
2507
|
+
i0.ɵɵelementStart(4, "mat-menu", null, 28);
|
|
2508
|
+
i0.ɵɵtemplate(6, ContextListComponent_ng_container_10_ng_template_2_button_6_Template, 3, 2, "button", 29);
|
|
2490
2509
|
i0.ɵɵelementEnd();
|
|
2491
2510
|
} if (rf & 2) {
|
|
2492
|
-
const
|
|
2493
|
-
const
|
|
2494
|
-
i0.ɵɵ
|
|
2511
|
+
const _r27 = i0.ɵɵreference(5);
|
|
2512
|
+
const user_r18 = i0.ɵɵnextContext().$implicit;
|
|
2513
|
+
const ctx_r21 = i0.ɵɵnextContext();
|
|
2514
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r27);
|
|
2495
2515
|
i0.ɵɵadvance(1);
|
|
2496
|
-
i0.ɵɵ
|
|
2516
|
+
i0.ɵɵproperty("checked", ctx_r21.getPermission(user_r18).checked)("indeterminate", ctx_r21.getPermission(user_r18).indeterminate);
|
|
2517
|
+
i0.ɵɵadvance(2);
|
|
2518
|
+
i0.ɵɵtextInterpolate(user_r18.title);
|
|
2519
|
+
i0.ɵɵadvance(3);
|
|
2520
|
+
i0.ɵɵproperty("ngForOf", user_r18.childs);
|
|
2497
2521
|
} }
|
|
2498
2522
|
function ContextListComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
2499
|
-
const _r31 = i0.ɵɵgetCurrentView();
|
|
2500
2523
|
i0.ɵɵelementContainerStart(0);
|
|
2501
|
-
i0.ɵɵ
|
|
2502
|
-
i0.ɵɵ
|
|
2503
|
-
i0.ɵɵelementEnd()();
|
|
2504
|
-
i0.ɵɵtemplate(4, ContextListComponent_ng_container_10_button_4_Template, 2, 2, "button", 25);
|
|
2505
|
-
i0.ɵɵtemplate(5, ContextListComponent_ng_container_10_button_5_Template, 2, 1, "button", 26);
|
|
2506
|
-
i0.ɵɵelementEnd();
|
|
2507
|
-
i0.ɵɵelementStart(6, "mat-menu", null, 27)(8, "div", 10);
|
|
2508
|
-
i0.ɵɵtemplate(9, ContextListComponent_ng_container_10_mat_checkbox_9_Template, 2, 2, "mat-checkbox", 28);
|
|
2509
|
-
i0.ɵɵelementEnd()();
|
|
2524
|
+
i0.ɵɵtemplate(1, ContextListComponent_ng_container_10_button_1_Template, 4, 3, "button", 24);
|
|
2525
|
+
i0.ɵɵtemplate(2, ContextListComponent_ng_container_10_ng_template_2_Template, 7, 5, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor);
|
|
2510
2526
|
i0.ɵɵelementContainerEnd();
|
|
2511
2527
|
} if (rf & 2) {
|
|
2512
|
-
const
|
|
2513
|
-
const
|
|
2514
|
-
i0.ɵɵadvance(3);
|
|
2515
|
-
i0.ɵɵproperty("checked", ctx_r6.getPermission(user_r17).checked)("indeterminate", ctx_r6.getPermission(user_r17).indeterminate);
|
|
2516
|
-
i0.ɵɵadvance(1);
|
|
2517
|
-
i0.ɵɵproperty("ngIf", user_r17.childs);
|
|
2528
|
+
const user_r18 = ctx.$implicit;
|
|
2529
|
+
const _r20 = i0.ɵɵreference(3);
|
|
2518
2530
|
i0.ɵɵadvance(1);
|
|
2519
|
-
i0.ɵɵproperty("ngIf", !
|
|
2520
|
-
i0.ɵɵadvance(4);
|
|
2521
|
-
i0.ɵɵproperty("ngForOf", user_r17.childs);
|
|
2531
|
+
i0.ɵɵproperty("ngIf", !user_r18.childs)("ngIfElse", _r20);
|
|
2522
2532
|
} }
|
|
2523
|
-
function
|
|
2524
|
-
const
|
|
2533
|
+
function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
2534
|
+
const _r45 = i0.ɵɵgetCurrentView();
|
|
2525
2535
|
i0.ɵɵelementStart(0, "igo-context-item", 33);
|
|
2526
|
-
i0.ɵɵlistener("edit", function
|
|
2536
|
+
i0.ɵɵlistener("edit", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_edit_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r44 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r44.edit.emit(context_r43)); })("delete", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_delete_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r46 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r46.delete.emit(context_r43)); })("clone", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_clone_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r47 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r47.clone.emit(context_r43)); })("save", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_save_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r48 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r48.save.emit(context_r43)); })("hide", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_hide_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r49 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r49.hideContext(context_r43)); })("show", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_show_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r50 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r50.showContext(context_r43)); })("favorite", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r51 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r51.favorite.emit(context_r43)); })("manageTools", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_manageTools_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r52 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r52.manageTools.emit(context_r43)); })("managePermissions", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_managePermissions_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r53 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r53.managePermissions.emit(context_r43)); })("select", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r54 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r54.select.emit(context_r43)); })("unselect", function ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r45); const context_r43 = restoredCtx.$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.unselect.emit(context_r43)); });
|
|
2527
2537
|
i0.ɵɵelementEnd();
|
|
2528
2538
|
} if (rf & 2) {
|
|
2529
|
-
const
|
|
2530
|
-
const
|
|
2531
|
-
i0.ɵɵproperty("selected",
|
|
2539
|
+
const context_r43 = ctx.$implicit;
|
|
2540
|
+
const ctx_r42 = i0.ɵɵnextContext(3);
|
|
2541
|
+
i0.ɵɵproperty("selected", ctx_r42.selectedContext && ctx_r42.selectedContext.uri === context_r43.uri)("context", context_r43)("default", context_r43.id && ctx_r42.defaultContextId && ctx_r42.defaultContextId === context_r43.id);
|
|
2532
2542
|
} }
|
|
2533
|
-
function
|
|
2534
|
-
const
|
|
2543
|
+
function ContextListComponent_ng_template_16_igo_collapsible_0_Template(rf, ctx) { if (rf & 1) {
|
|
2544
|
+
const _r57 = i0.ɵɵgetCurrentView();
|
|
2535
2545
|
i0.ɵɵelementStart(0, "igo-collapsible", 32);
|
|
2536
|
-
i0.ɵɵlistener("toggle", function
|
|
2546
|
+
i0.ɵɵlistener("toggle", function ContextListComponent_ng_template_16_igo_collapsible_0_Template_igo_collapsible_toggle_0_listener($event) { i0.ɵɵrestoreView(_r57); const groupContexts_r39 = i0.ɵɵnextContext().$implicit; const ctx_r56 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r56.collapsed[ctx_r56.titleMapping[groupContexts_r39.key]] = $event)); });
|
|
2537
2547
|
i0.ɵɵpipe(1, "translate");
|
|
2538
|
-
i0.ɵɵtemplate(2,
|
|
2548
|
+
i0.ɵɵtemplate(2, ContextListComponent_ng_template_16_igo_collapsible_0_ng_template_2_Template, 1, 3, "ng-template", 11);
|
|
2539
2549
|
i0.ɵɵelementEnd();
|
|
2540
2550
|
} if (rf & 2) {
|
|
2541
|
-
const
|
|
2542
|
-
const
|
|
2543
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(1, 3,
|
|
2551
|
+
const groupContexts_r39 = i0.ɵɵnextContext().$implicit;
|
|
2552
|
+
const ctx_r40 = i0.ɵɵnextContext();
|
|
2553
|
+
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(1, 3, ctx_r40.titleMapping[groupContexts_r39.key]))("collapsed", ctx_r40.collapsed[ctx_r40.titleMapping[groupContexts_r39.key]]);
|
|
2544
2554
|
i0.ɵɵadvance(2);
|
|
2545
|
-
i0.ɵɵproperty("ngForOf",
|
|
2555
|
+
i0.ɵɵproperty("ngForOf", groupContexts_r39.value);
|
|
2546
2556
|
} }
|
|
2547
|
-
function
|
|
2548
|
-
const
|
|
2557
|
+
function ContextListComponent_ng_template_16_1_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
2558
|
+
const _r63 = i0.ɵɵgetCurrentView();
|
|
2549
2559
|
i0.ɵɵelementStart(0, "igo-context-item", 34);
|
|
2550
|
-
i0.ɵɵlistener("favorite", function
|
|
2560
|
+
i0.ɵɵlistener("favorite", function ContextListComponent_ng_template_16_1_ng_template_0_Template_igo_context_item_favorite_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r63); const context_r61 = restoredCtx.$implicit; const ctx_r62 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r62.favorite.emit(context_r61)); })("select", function ContextListComponent_ng_template_16_1_ng_template_0_Template_igo_context_item_select_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r63); const context_r61 = restoredCtx.$implicit; const ctx_r64 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r64.select.emit(context_r61)); })("unselect", function ContextListComponent_ng_template_16_1_ng_template_0_Template_igo_context_item_unselect_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r63); const context_r61 = restoredCtx.$implicit; const ctx_r65 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r65.unselect.emit(context_r61)); });
|
|
2551
2561
|
i0.ɵɵelementEnd();
|
|
2552
2562
|
} if (rf & 2) {
|
|
2553
|
-
const
|
|
2554
|
-
const
|
|
2555
|
-
i0.ɵɵproperty("showFavorite",
|
|
2563
|
+
const context_r61 = ctx.$implicit;
|
|
2564
|
+
const ctx_r60 = i0.ɵɵnextContext(3);
|
|
2565
|
+
i0.ɵɵproperty("showFavorite", ctx_r60.configService.getConfig("favoriteContext4NonAuthenticated"))("selected", ctx_r60.selectedContext && ctx_r60.selectedContext.uri === context_r61.uri)("context", context_r61)("default", ctx_r60.contextConfigs ? ctx_r60.defaultContextId === context_r61.id : ctx_r60.defaultContextId === context_r61.uri);
|
|
2556
2566
|
} }
|
|
2557
|
-
function
|
|
2558
|
-
i0.ɵɵtemplate(0,
|
|
2567
|
+
function ContextListComponent_ng_template_16_1_Template(rf, ctx) { if (rf & 1) {
|
|
2568
|
+
i0.ɵɵtemplate(0, ContextListComponent_ng_template_16_1_ng_template_0_Template, 1, 4, "ng-template", 11);
|
|
2559
2569
|
} if (rf & 2) {
|
|
2560
|
-
const
|
|
2561
|
-
i0.ɵɵproperty("ngForOf",
|
|
2570
|
+
const groupContexts_r39 = i0.ɵɵnextContext().$implicit;
|
|
2571
|
+
i0.ɵɵproperty("ngForOf", groupContexts_r39.value);
|
|
2562
2572
|
} }
|
|
2563
|
-
function
|
|
2564
|
-
i0.ɵɵtemplate(0,
|
|
2565
|
-
i0.ɵɵtemplate(1,
|
|
2573
|
+
function ContextListComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
2574
|
+
i0.ɵɵtemplate(0, ContextListComponent_ng_template_16_igo_collapsible_0_Template, 3, 5, "igo-collapsible", 30);
|
|
2575
|
+
i0.ɵɵtemplate(1, ContextListComponent_ng_template_16_1_Template, 1, 1, null, 31);
|
|
2566
2576
|
} if (rf & 2) {
|
|
2567
|
-
const
|
|
2577
|
+
const groupContexts_r39 = ctx.$implicit;
|
|
2568
2578
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
2569
|
-
i0.ɵɵproperty("ngIf",
|
|
2579
|
+
i0.ɵɵproperty("ngIf", groupContexts_r39.value.length && ctx_r7.auth.authenticated);
|
|
2570
2580
|
i0.ɵɵadvance(1);
|
|
2571
|
-
i0.ɵɵproperty("ngIf",
|
|
2581
|
+
i0.ɵɵproperty("ngIf", groupContexts_r39.value.length && !ctx_r7.auth.authenticated);
|
|
2582
|
+
} }
|
|
2583
|
+
function ContextListComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
2584
|
+
i0.ɵɵelementStart(0, "div", 35);
|
|
2585
|
+
i0.ɵɵtext(1);
|
|
2586
|
+
i0.ɵɵpipe(2, "translate");
|
|
2587
|
+
i0.ɵɵelementEnd();
|
|
2588
|
+
} if (rf & 2) {
|
|
2589
|
+
i0.ɵɵadvance(1);
|
|
2590
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "igo.context.contextManager.noResult"), " ");
|
|
2572
2591
|
} }
|
|
2573
2592
|
class ContextListComponent {
|
|
2574
2593
|
cdRef;
|
|
@@ -2587,7 +2606,6 @@ class ContextListComponent {
|
|
|
2587
2606
|
}
|
|
2588
2607
|
set contexts(value) {
|
|
2589
2608
|
this._contexts = value;
|
|
2590
|
-
this.cdRef.detectChanges();
|
|
2591
2609
|
this.next();
|
|
2592
2610
|
}
|
|
2593
2611
|
_contexts = { ours: [] };
|
|
@@ -2663,6 +2681,11 @@ class ContextListComponent {
|
|
|
2663
2681
|
_sortedAlpha = undefined;
|
|
2664
2682
|
showContextFilter = ContextListControlsEnum.always;
|
|
2665
2683
|
thresholdToFilter = 5;
|
|
2684
|
+
get isEmpty() {
|
|
2685
|
+
return (!this.contexts.ours.length &&
|
|
2686
|
+
!this.contexts.public?.length &&
|
|
2687
|
+
!this.contexts.shared?.length);
|
|
2688
|
+
}
|
|
2666
2689
|
constructor(cdRef, configService, auth, dialog, languageService, storageService) {
|
|
2667
2690
|
this.cdRef = cdRef;
|
|
2668
2691
|
this.configService = configService;
|
|
@@ -2674,13 +2697,7 @@ class ContextListComponent {
|
|
|
2674
2697
|
}
|
|
2675
2698
|
ngOnInit() {
|
|
2676
2699
|
this.change$$ = this.change$
|
|
2677
|
-
.pipe(debounce(() =>
|
|
2678
|
-
return this.contexts.ours.length === 0 &&
|
|
2679
|
-
this.contexts.public?.length === 0 &&
|
|
2680
|
-
this.contexts.shared?.length === 0
|
|
2681
|
-
? EMPTY
|
|
2682
|
-
: timer(50);
|
|
2683
|
-
}))
|
|
2700
|
+
.pipe(debounce(() => timer(50)))
|
|
2684
2701
|
.subscribe(() => {
|
|
2685
2702
|
this.contexts$.next(this.filterContextsList(this.contexts));
|
|
2686
2703
|
});
|
|
@@ -2853,7 +2870,7 @@ class ContextListComponent {
|
|
|
2853
2870
|
return permission;
|
|
2854
2871
|
}
|
|
2855
2872
|
}
|
|
2856
|
-
|
|
2873
|
+
handleToggleCategory(user, parent) {
|
|
2857
2874
|
const permission = this.getPermission(user);
|
|
2858
2875
|
if (permission) {
|
|
2859
2876
|
permission.checked = !permission.checked;
|
|
@@ -2904,7 +2921,7 @@ class ContextListComponent {
|
|
|
2904
2921
|
this.show.emit(context);
|
|
2905
2922
|
}
|
|
2906
2923
|
static ɵfac = function ContextListComponent_Factory(t) { return new (t || ContextListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i3.ConfigService), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i3.LanguageService), i0.ɵɵdirectiveInject(i3.StorageService)); };
|
|
2907
|
-
static ɵ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: 20, vars:
|
|
2924
|
+
static ɵ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: 20, vars: 17, consts: [[3, "navigation"], [1, "context-filter-container"], ["floatLabel", "always", 4, "ngIf"], [1, "actions-container"], ["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"], ["mat-menu-item", "", 1, "profil-menu"], [3, "checked", "click", "change"], ["ngFor", "", 3, "ngForOf"], ["class", "no-result", 4, "ngIf"], ["floatLabel", "always"], ["matInput", "", "type", "text", 3, "placeholder", "ngModel", "ngModelChange"], ["mat-icon-button", "", "matSuffix", "", "class", "clear-button", "aria-label", "Clear", "color", "warn", 3, "click", 4, "ngIf"], ["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"], ["mat-menu-item", "", "class", "profil-menu", 4, "ngIf", "ngIfElse"], ["withSubMenu", ""], [3, "checked", "indeterminate", "click", "change"], ["mat-menu-item", "", 1, "profil-menu", 3, "matMenuTriggerFor"], ["subAccountMenu", "matMenu"], ["mat-menu-item", "", "class", "profil-menu", 4, "ngFor", "ngForOf"], [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"], [1, "no-result"]], template: function ContextListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2908
2925
|
i0.ɵɵelementStart(0, "igo-list", 0)(1, "div", 1);
|
|
2909
2926
|
i0.ɵɵtemplate(2, ContextListComponent_mat_form_field_2_Template, 7, 8, "mat-form-field", 2);
|
|
2910
2927
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -2913,17 +2930,18 @@ class ContextListComponent {
|
|
|
2913
2930
|
i0.ɵɵtemplate(6, ContextListComponent_igo_actionbar_6_Template, 1, 6, "igo-actionbar", 5);
|
|
2914
2931
|
i0.ɵɵtemplate(7, ContextListComponent_button_7_Template, 3, 4, "button", 6);
|
|
2915
2932
|
i0.ɵɵelementStart(8, "mat-menu", null, 7);
|
|
2916
|
-
i0.ɵɵtemplate(10, ContextListComponent_ng_container_10_Template,
|
|
2917
|
-
i0.ɵɵelementStart(11, "
|
|
2918
|
-
i0.ɵɵlistener("click", function
|
|
2919
|
-
i0.ɵɵelementEnd()
|
|
2920
|
-
i0.ɵɵelementStart(
|
|
2921
|
-
i0.ɵɵtext(
|
|
2922
|
-
i0.ɵɵpipe(
|
|
2933
|
+
i0.ɵɵtemplate(10, ContextListComponent_ng_container_10_Template, 4, 2, "ng-container", 8);
|
|
2934
|
+
i0.ɵɵelementStart(11, "button", 9)(12, "mat-checkbox", 10);
|
|
2935
|
+
i0.ɵɵlistener("click", function ContextListComponent_Template_mat_checkbox_click_12_listener($event) { return $event.stopPropagation(); })("change", function ContextListComponent_Template_mat_checkbox_change_12_listener() { return ctx.showHiddenContexts.emit(); });
|
|
2936
|
+
i0.ɵɵelementEnd();
|
|
2937
|
+
i0.ɵɵelementStart(13, "span");
|
|
2938
|
+
i0.ɵɵtext(14);
|
|
2939
|
+
i0.ɵɵpipe(15, "translate");
|
|
2923
2940
|
i0.ɵɵelementEnd()()()()();
|
|
2924
|
-
i0.ɵɵtemplate(
|
|
2925
|
-
i0.ɵɵpipe(
|
|
2926
|
-
i0.ɵɵpipe(
|
|
2941
|
+
i0.ɵɵtemplate(16, ContextListComponent_ng_template_16_Template, 2, 2, "ng-template", 11);
|
|
2942
|
+
i0.ɵɵpipe(17, "keyvalue");
|
|
2943
|
+
i0.ɵɵpipe(18, "async");
|
|
2944
|
+
i0.ɵɵtemplate(19, ContextListComponent_div_19_Template, 3, 3, "div", 12);
|
|
2927
2945
|
i0.ɵɵelementEnd();
|
|
2928
2946
|
} if (rf & 2) {
|
|
2929
2947
|
i0.ɵɵproperty("navigation", true);
|
|
@@ -2939,17 +2957,19 @@ class ContextListComponent {
|
|
|
2939
2957
|
i0.ɵɵproperty("ngIf", ctx.auth.authenticated && ctx.contextConfigs);
|
|
2940
2958
|
i0.ɵɵadvance(3);
|
|
2941
2959
|
i0.ɵɵproperty("ngForOf", ctx.users);
|
|
2942
|
-
i0.ɵɵadvance(
|
|
2960
|
+
i0.ɵɵadvance(2);
|
|
2943
2961
|
i0.ɵɵproperty("checked", ctx.showHidden);
|
|
2944
2962
|
i0.ɵɵadvance(2);
|
|
2945
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
2963
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 11, "igo.context.contextManager.showHidden"), " ");
|
|
2946
2964
|
i0.ɵɵadvance(2);
|
|
2947
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(
|
|
2948
|
-
|
|
2965
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(17, 13, i0.ɵɵpipeBind1(18, 15, ctx.contexts$)));
|
|
2966
|
+
i0.ɵɵadvance(3);
|
|
2967
|
+
i0.ɵɵproperty("ngIf", ctx.isEmpty);
|
|
2968
|
+
} }, dependencies: [i6.NgForOf, i6.NgIf, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgModel, i6$1.MatFormField, i6$1.MatLabel, i6$1.MatSuffix, i5.MatInput, i6$2.MatIcon, i7.MatIconButton, i6$3.MatTooltip, i11$1.MatCheckbox, i12$1.MatMenu, i12$1.MatMenuItem, i12$1.MatMenuTrigger, i13.ListItemDirective, i13.ListComponent, i13.CollapsibleComponent, i13.ActionbarComponent, ContextItemComponent, i6.AsyncPipe, i13.KeyValuePipe, i9$1.TranslatePipe], styles: ["[_nghost-%COMP%] mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}.context-filter-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 4px}.context-filter-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1}.context-filter-min-width[_ngcontent-%COMP%]{width:calc(100% - 135px);margin:5px;padding-left:6px}.profil-menu[_ngcontent-%COMP%]{padding-left:8px}.profil-menu[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-right:8px}.add-context-button[_ngcontent-%COMP%]{margin:0;width:40px;display:inline-flex;overflow:hidden}.actions-container[_ngcontent-%COMP%]{margin-left:4px}.no-result[_ngcontent-%COMP%]{padding:16px}"], changeDetection: 0 });
|
|
2949
2969
|
}
|
|
2950
2970
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextListComponent, [{
|
|
2951
2971
|
type: Component,
|
|
2952
|
-
args: [{ selector: 'igo-context-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-list [navigation]=\"true\">\r\n <div class=\"context-filter-container\">\r\n <mat-form-field *ngIf=\"showFilter()\" floatLabel=\"always\">\r\n <mat-label>{{\r\n 'igo.context.contextManager.filterPlaceHolder' | translate\r\n }}</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n [placeholder]=\"\r\n 'igo.context.contextManager.filterPlaceHolder' | translate\r\n \"\r\n [(ngModel)]=\"term\"\r\n />\r\n <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 >\r\n <mat-icon svgIcon=\"close\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <div class=\"actions-container\">\r\n <button\r\n *ngIf=\"!sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"\r\n 'igo.context.contextManager.sortAlphabetically' | translate\r\n \"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(true)\"\r\n >\r\n <mat-icon\r\n color=\"primary\"\r\n svgIcon=\"sort-alphabetical-variant\"\r\n ></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 >\r\n <mat-icon color=\"warn\" svgIcon=\"sort-variant-remove\"></mat-icon>\r\n </button>\r\n\r\n <igo-actionbar\r\n *ngIf=\"auth.authenticated && contextConfigs\"\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 >\r\n </igo-actionbar>\r\n\r\n <button\r\n *ngIf=\"auth.authenticated && contextConfigs\"\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 >\r\n <mat-icon color=\"primary\" svgIcon=\"filter-menu\"></mat-icon>\r\n </button>\r\n <mat-menu #accountMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let user of users\">\r\n <
|
|
2972
|
+
args: [{ selector: 'igo-context-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-list [navigation]=\"true\">\r\n <div class=\"context-filter-container\">\r\n <mat-form-field *ngIf=\"showFilter()\" floatLabel=\"always\">\r\n <mat-label>{{\r\n 'igo.context.contextManager.filterPlaceHolder' | translate\r\n }}</mat-label>\r\n <input\r\n matInput\r\n type=\"text\"\r\n [placeholder]=\"\r\n 'igo.context.contextManager.filterPlaceHolder' | translate\r\n \"\r\n [(ngModel)]=\"term\"\r\n />\r\n <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 >\r\n <mat-icon svgIcon=\"close\"></mat-icon>\r\n </button>\r\n </mat-form-field>\r\n\r\n <div class=\"actions-container\">\r\n <button\r\n *ngIf=\"!sortedAlpha\"\r\n class=\"sort-alpha\"\r\n mat-icon-button\r\n [matTooltip]=\"\r\n 'igo.context.contextManager.sortAlphabetically' | translate\r\n \"\r\n matTooltipShowDelay=\"500\"\r\n (click)=\"toggleSort(true)\"\r\n >\r\n <mat-icon\r\n color=\"primary\"\r\n svgIcon=\"sort-alphabetical-variant\"\r\n ></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 >\r\n <mat-icon color=\"warn\" svgIcon=\"sort-variant-remove\"></mat-icon>\r\n </button>\r\n\r\n <igo-actionbar\r\n *ngIf=\"auth.authenticated && contextConfigs\"\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 >\r\n </igo-actionbar>\r\n\r\n <button\r\n *ngIf=\"auth.authenticated && contextConfigs\"\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 >\r\n <mat-icon color=\"primary\" svgIcon=\"filter-menu\"></mat-icon>\r\n </button>\r\n <mat-menu #accountMenu=\"matMenu\">\r\n <ng-container *ngFor=\"let user of users\">\r\n <button\r\n *ngIf=\"!user.childs; else withSubMenu\"\r\n mat-menu-item\r\n class=\"profil-menu\"\r\n >\r\n <mat-checkbox\r\n [checked]=\"getPermission(user).checked\"\r\n [indeterminate]=\"getPermission(user).indeterminate\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"handleToggleCategory(user)\"\r\n >\r\n </mat-checkbox>\r\n <span>{{ user.title }}</span>\r\n </button>\r\n <ng-template #withSubMenu>\r\n <button\r\n mat-menu-item\r\n [matMenuTriggerFor]=\"subAccountMenu\"\r\n class=\"profil-menu\"\r\n >\r\n <mat-checkbox\r\n [checked]=\"getPermission(user).checked\"\r\n [indeterminate]=\"getPermission(user).indeterminate\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"handleToggleCategory(user)\"\r\n >\r\n </mat-checkbox>\r\n <span>{{ user.title }}</span>\r\n </button>\r\n\r\n <mat-menu #subAccountMenu=\"matMenu\">\r\n <button\r\n mat-menu-item\r\n *ngFor=\"let child of user.childs\"\r\n class=\"profil-menu\"\r\n >\r\n <mat-checkbox\r\n [checked]=\"getPermission(child).checked\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"handleToggleCategory(child, user)\"\r\n >\r\n {{ child.title }}\r\n </mat-checkbox>\r\n </button>\r\n </mat-menu>\r\n </ng-template>\r\n </ng-container>\r\n\r\n <button mat-menu-item class=\"profil-menu\">\r\n <mat-checkbox\r\n [checked]=\"showHidden\"\r\n (click)=\"$event.stopPropagation()\"\r\n (change)=\"showHiddenContexts.emit()\"\r\n >\r\n </mat-checkbox>\r\n <span>\r\n {{ 'igo.context.contextManager.showHidden' | translate }}\r\n </span>\r\n </button>\r\n </mat-menu>\r\n </div>\r\n </div>\r\n\r\n <ng-template ngFor let-groupContexts [ngForOf]=\"contexts$ | async | keyvalue\">\r\n <igo-collapsible\r\n *ngIf=\"groupContexts.value.length && auth.authenticated\"\r\n [title]=\"titleMapping[groupContexts.key] | translate\"\r\n [collapsed]=\"collapsed[titleMapping[groupContexts.key]]\"\r\n (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]=\"\r\n context.id &&\r\n this.defaultContextId &&\r\n this.defaultContextId === context.id\r\n \"\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 >\r\n </igo-context-item>\r\n </ng-template>\r\n </igo-collapsible>\r\n\r\n <ng-template\r\n *ngIf=\"groupContexts.value.length && !auth.authenticated\"\r\n ngFor\r\n let-context\r\n [ngForOf]=\"groupContexts.value\"\r\n >\r\n <igo-context-item\r\n igoListItem\r\n color=\"accent\"\r\n [showFavorite]=\"\r\n configService.getConfig('favoriteContext4NonAuthenticated')\r\n \"\r\n [selected]=\"selectedContext && selectedContext.uri === context.uri\"\r\n [context]=\"context\"\r\n [default]=\"\r\n contextConfigs\r\n ? defaultContextId === context.id\r\n : defaultContextId === context.uri\r\n \"\r\n (favorite)=\"favorite.emit(context)\"\r\n (select)=\"select.emit(context)\"\r\n (unselect)=\"unselect.emit(context)\"\r\n >\r\n </igo-context-item>\r\n </ng-template>\r\n </ng-template>\r\n\r\n <div *ngIf=\"isEmpty\" class=\"no-result\">\r\n {{ 'igo.context.contextManager.noResult' | translate }}\r\n </div>\r\n</igo-list>\r\n", styles: [":host ::ng-deep mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}.context-filter-container{display:flex;align-items:center;padding:8px 4px}.context-filter-container mat-form-field{flex:1}.context-filter-min-width{width:calc(100% - 135px);margin:5px;padding-left:6px}.profil-menu{padding-left:8px}.profil-menu mat-checkbox{margin-right:8px}.add-context-button{margin:0;width:40px;display:inline-flex;overflow:hidden}.actions-container{margin-left:4px}.no-result{padding:16px}\n"] }]
|
|
2953
2973
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i3.ConfigService }, { type: i2.AuthService }, { type: i1$3.MatDialog }, { type: i3.LanguageService }, { type: i3.StorageService }]; }, { contexts: [{
|
|
2954
2974
|
type: Input
|
|
2955
2975
|
}], selectedContext: [{
|
|
@@ -3521,15 +3541,15 @@ class ContextPermissionsComponent {
|
|
|
3521
3541
|
});
|
|
3522
3542
|
}
|
|
3523
3543
|
static ɵfac = function ContextPermissionsComponent_Factory(t) { return new (t || ContextPermissionsComponent)(i0.ɵɵdirectiveInject(i1$2.UntypedFormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.HttpClient), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.ConfigService)); };
|
|
3524
|
-
static ɵ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"], ["matListItemIcon", "", "svgIcon", "account-outline"], ["matListItemTitle", ""], ["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) {
|
|
3544
|
+
static ɵ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"], ["matListItemIcon", "", "svgIcon", "account-outline"], ["matListItemTitle", ""], ["matListItemMeta", "", "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) {
|
|
3525
3545
|
i0.ɵɵtemplate(0, ContextPermissionsComponent_div_0_Template, 5, 4, "div", 0);
|
|
3526
3546
|
} if (rf & 2) {
|
|
3527
3547
|
i0.ɵɵproperty("ngIf", ctx.context);
|
|
3528
|
-
} }, dependencies: [i6.NgForOf, i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.NgModel, i1$2.FormControlDirective, i1$2.FormGroupDirective, i1$2.FormControlName, i6$1.MatFormField, i6$1.MatError, i5.MatInput,
|
|
3548
|
+
} }, dependencies: [i6.NgForOf, i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.NgModel, i1$2.FormControlDirective, i1$2.FormGroupDirective, i1$2.FormControlName, i6$1.MatFormField, i6$1.MatError, i5.MatInput, i6$2.MatIcon, i7.MatButton, i7.MatIconButton, i6$3.MatTooltip, i7$1.MatListItem, i7$1.MatListItemIcon, i7$1.MatListItemTitle, i7$1.MatListItemMeta, i12$2.MatRadioGroup, i12$2.MatRadioButton, i12.MatOption, i14.MatAutocomplete, i14.MatAutocompleteTrigger, i13.ListComponent, i13.CollapsibleComponent, i13.StopPropagationDirective, i13.KeyValuePipe, i9$1.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}"] });
|
|
3529
3549
|
}
|
|
3530
3550
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextPermissionsComponent, [{
|
|
3531
3551
|
type: Component,
|
|
3532
|
-
args: [{ selector: 'igo-context-permissions', template: "<div *ngIf=\"context\">\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\r\n [(ngModel)]=\"context.scope\"\r\n (change)=\"scopeChanged.emit(context)\"\r\n >\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\r\n *ngIf=\"context.scope !== 'private' && canWrite\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\"\r\n >\r\n <mat-form-field class=\"full-width\">\r\n <input\r\n matInput\r\n required\r\n [placeholder]=\"'igo.context.permission.user' | translate\"\r\n [formControl]=\"formControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n (optionSelected)=\"onProfilSelected($event.option.value)\"\r\n [displayWith]=\"displayFn\"\r\n >\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 <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 <div class=\"igo-form-button-group\">\r\n <button mat-raised-button type=\"submit\" [disabled]=\"!form.valid\">\r\n {{ 'igo.context.permission.addBtn' | translate }}\r\n </button>\r\n </div>\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 matListItemIcon svgIcon=\"account-outline\"></mat-icon>\r\n <h4 matListItemTitle>\r\n {{ permission.profilTitle }}\r\n <small class=\"mat-typography\">{{ permission.profil }}</small>\r\n </h4>\r\n\r\n <div
|
|
3552
|
+
args: [{ selector: 'igo-context-permissions', template: "<div *ngIf=\"context\">\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\r\n [(ngModel)]=\"context.scope\"\r\n (change)=\"scopeChanged.emit(context)\"\r\n >\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\r\n *ngIf=\"context.scope !== 'private' && canWrite\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"handleFormSubmit(form.value)\"\r\n >\r\n <mat-form-field class=\"full-width\">\r\n <input\r\n matInput\r\n required\r\n [placeholder]=\"'igo.context.permission.user' | translate\"\r\n [formControl]=\"formControl\"\r\n [matAutocomplete]=\"auto\"\r\n />\r\n <mat-autocomplete\r\n #auto=\"matAutocomplete\"\r\n (optionSelected)=\"onProfilSelected($event.option.value)\"\r\n [displayWith]=\"displayFn\"\r\n >\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 <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 <div class=\"igo-form-button-group\">\r\n <button mat-raised-button type=\"submit\" [disabled]=\"!form.valid\">\r\n {{ 'igo.context.permission.addBtn' | translate }}\r\n </button>\r\n </div>\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 matListItemIcon svgIcon=\"account-outline\"></mat-icon>\r\n <h4 matListItemTitle>\r\n {{ permission.profilTitle }}\r\n <small class=\"mat-typography\">{{ permission.profil }}</small>\r\n </h4>\r\n\r\n <div\r\n matListItemMeta\r\n igoStopPropagation\r\n class=\"igo-actions-container\"\r\n >\r\n <button\r\n *ngIf=\"\r\n canWrite ||\r\n permission.profil === authService.decodeToken().user.sourceId\r\n \"\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 >\r\n <mat-icon svgIcon=\"delete\"></mat-icon>\r\n </button>\r\n </div>\r\n </mat-list-item>\r\n </ng-template>\r\n </igo-collapsible>\r\n </ng-template>\r\n </igo-list>\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}\n"] }]
|
|
3533
3553
|
}], function () { return [{ type: i1$2.UntypedFormBuilder }, { type: i0.ChangeDetectorRef }, { type: i1.HttpClient }, { type: i2.AuthService }, { type: i3.ConfigService }]; }, { context: [{
|
|
3534
3554
|
type: Input
|
|
3535
3555
|
}], permissions: [{
|
|
@@ -4360,7 +4380,7 @@ class ShareMapApiComponent {
|
|
|
4360
4380
|
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4361
4381
|
i0.ɵɵadvance(1);
|
|
4362
4382
|
i0.ɵɵproperty("ngIf", ctx.url);
|
|
4363
|
-
} }, dependencies: [i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.FormGroupDirective, i1$2.FormControlName,
|
|
4383
|
+
} }, dependencies: [i6.NgIf, i1$2.ɵNgNoValidate, i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.FormGroupDirective, i1$2.FormControlName, i6$2.MatIcon, i6$3.MatTooltip, i6$1.MatFormField, i6$1.MatError, i5.MatInput, i7.MatButton, i7.MatIconButton, i9$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}"] });
|
|
4364
4384
|
}
|
|
4365
4385
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapApiComponent, [{
|
|
4366
4386
|
type: Component,
|
|
@@ -4596,7 +4616,7 @@ class ShareMapUrlComponent {
|
|
|
4596
4616
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 9, "igo.context.shareMap.htmlClarifications") === "");
|
|
4597
4617
|
i0.ɵɵadvance(2);
|
|
4598
4618
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 11, "igo.context.shareMap.htmlClarifications") !== "");
|
|
4599
|
-
} }, dependencies: [i6.NgIf,
|
|
4619
|
+
} }, dependencies: [i6.NgIf, i6$2.MatIcon, i6$1.MatFormField, i5.MatInput, i7.MatButton, i13.CustomHtmlComponent, i9$1.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}"] });
|
|
4600
4620
|
}
|
|
4601
4621
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareMapUrlComponent, [{
|
|
4602
4622
|
type: Component,
|
|
@@ -4852,7 +4872,7 @@ class SidenavComponent {
|
|
|
4852
4872
|
i0.ɵɵproperty("ngIf", ctx.tool);
|
|
4853
4873
|
i0.ɵɵadvance(2);
|
|
4854
4874
|
i0.ɵɵproperty("ngIf", ctx.feature && ctx.media !== "mobile");
|
|
4855
|
-
} }, dependencies: [i6.NgIf,
|
|
4875
|
+
} }, dependencies: [i6.NgIf, i6$2.MatIcon, i7.MatIconButton, i5$1.MatSidenav, i6$3.MatTooltip, i13.PanelComponent, i13.FlexibleComponent, i1$1.FeatureDetailsComponent, i9$1.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%}"] });
|
|
4856
4876
|
}
|
|
4857
4877
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavComponent, [{
|
|
4858
4878
|
type: Component,
|