@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,143 +1,143 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { ObjectUtils, Clipboard } from '@igo2/utils';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/forms";
|
|
5
|
-
import * as i2 from "@igo2/core";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
import * as i4 from "@angular/material/form-field";
|
|
8
|
-
import * as i5 from "@angular/material/input";
|
|
9
|
-
import * as i6 from "@angular/material/icon";
|
|
10
|
-
import * as i7 from "@angular/material/button";
|
|
11
|
-
import * as i8 from "@angular/material/tooltip";
|
|
12
|
-
import * as i9 from "@ngx-translate/core";
|
|
13
|
-
function ContextFormComponent_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
i0.ɵɵelementStart(0, "span", 11);
|
|
15
|
-
i0.ɵɵtext(1);
|
|
16
|
-
i0.ɵɵelementEnd();
|
|
17
|
-
} if (rf & 2) {
|
|
18
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19
|
-
i0.ɵɵadvance(1);
|
|
20
|
-
i0.ɵɵtextInterpolate1("", ctx_r0.prefix, "-");
|
|
21
|
-
} }
|
|
22
|
-
export class ContextFormComponent {
|
|
23
|
-
constructor(formBuilder, messageService) {
|
|
24
|
-
this.formBuilder = formBuilder;
|
|
25
|
-
this.messageService = messageService;
|
|
26
|
-
this._disabled = false;
|
|
27
|
-
// TODO: replace any by ContextOptions or Context
|
|
28
|
-
this.submitForm = new EventEmitter();
|
|
29
|
-
this.clone = new EventEmitter();
|
|
30
|
-
this.delete = new EventEmitter();
|
|
31
|
-
}
|
|
32
|
-
get btnSubmitText() {
|
|
33
|
-
return this._btnSubmitText;
|
|
34
|
-
}
|
|
35
|
-
set btnSubmitText(value) {
|
|
36
|
-
this._btnSubmitText = value;
|
|
37
|
-
}
|
|
38
|
-
get context() {
|
|
39
|
-
return this._context;
|
|
40
|
-
}
|
|
41
|
-
set context(value) {
|
|
42
|
-
this._context = value;
|
|
43
|
-
this.buildForm();
|
|
44
|
-
}
|
|
45
|
-
get disabled() {
|
|
46
|
-
return this._disabled;
|
|
47
|
-
}
|
|
48
|
-
set disabled(value) {
|
|
49
|
-
this._disabled = value;
|
|
50
|
-
}
|
|
51
|
-
ngOnInit() {
|
|
52
|
-
this.buildForm();
|
|
53
|
-
}
|
|
54
|
-
handleFormSubmit(value) {
|
|
55
|
-
let inputs = Object.assign({}, value);
|
|
56
|
-
inputs = ObjectUtils.removeNull(inputs);
|
|
57
|
-
inputs.uri = inputs.uri.replace(' ', '');
|
|
58
|
-
if (inputs.uri) {
|
|
59
|
-
inputs.uri = this.prefix + '-' + inputs.uri;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
inputs.uri = this.prefix;
|
|
63
|
-
}
|
|
64
|
-
this.submitForm.emit(inputs);
|
|
65
|
-
}
|
|
66
|
-
copyTextToClipboard() {
|
|
67
|
-
const text = this.prefix + '-' + this.form.value.uri.replace(' ', '');
|
|
68
|
-
const successful = Clipboard.copy(text);
|
|
69
|
-
if (successful) {
|
|
70
|
-
this.messageService.success('igo.context.contextManager.dialog.copyMsg', 'igo.context.contextManager.dialog.copyTitle');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
buildForm() {
|
|
74
|
-
const context = this.context || {};
|
|
75
|
-
const uriSplit = context.uri.split('-');
|
|
76
|
-
this.prefix = uriSplit.shift();
|
|
77
|
-
const uri = uriSplit.join('-');
|
|
78
|
-
this.form = this.formBuilder.group({
|
|
79
|
-
title: [context.title],
|
|
80
|
-
uri: [uri || ' ']
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(i1.UntypedFormBuilder), i0.ɵɵdirectiveInject(i2.MessageService)); };
|
|
85
|
-
ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextFormComponent, selectors: [["igo-context-form"]], inputs: { btnSubmitText: "btnSubmitText", context: "context", disabled: "disabled" }, outputs: { submitForm: "submitForm", clone: "clone", delete: "delete" }, decls: 19, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "maxlength", "128", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "full-width"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "maxlength", "64", "floatLabel", "always", "formControlName", "uri", 3, "placeholder"], ["id", "copyButton", "type", "button", "mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [1, "prefix"]], template: function ContextFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
-
i0.ɵɵelementStart(0, "form", 0);
|
|
87
|
-
i0.ɵɵlistener("ngSubmit", function ContextFormComponent_Template_form_ngSubmit_0_listener() { return ctx.handleFormSubmit(ctx.form.value); });
|
|
88
|
-
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
89
|
-
i0.ɵɵelement(2, "input", 2);
|
|
90
|
-
i0.ɵɵpipe(3, "translate");
|
|
91
|
-
i0.ɵɵelementStart(4, "mat-error");
|
|
92
|
-
i0.ɵɵtext(5);
|
|
93
|
-
i0.ɵɵpipe(6, "translate");
|
|
94
|
-
i0.ɵɵelementEnd()();
|
|
95
|
-
i0.ɵɵelementStart(7, "mat-form-field", 3);
|
|
96
|
-
i0.ɵɵtemplate(8, ContextFormComponent_span_8_Template, 2, 1, "span", 4);
|
|
97
|
-
i0.ɵɵelementStart(9, "span", 5);
|
|
98
|
-
i0.ɵɵelement(10, "input", 6);
|
|
99
|
-
i0.ɵɵpipe(11, "translate");
|
|
100
|
-
i0.ɵɵelementEnd()();
|
|
101
|
-
i0.ɵɵelementStart(12, "button", 7);
|
|
102
|
-
i0.ɵɵlistener("click", function ContextFormComponent_Template_button_click_12_listener() { return ctx.copyTextToClipboard(); });
|
|
103
|
-
i0.ɵɵpipe(13, "translate");
|
|
104
|
-
i0.ɵɵelement(14, "mat-icon", 8);
|
|
105
|
-
i0.ɵɵelementEnd();
|
|
106
|
-
i0.ɵɵelementStart(15, "div", 9)(16, "button", 10);
|
|
107
|
-
i0.ɵɵtext(17);
|
|
108
|
-
i0.ɵɵpipe(18, "translate");
|
|
109
|
-
i0.ɵɵelementEnd()()();
|
|
110
|
-
} if (rf & 2) {
|
|
111
|
-
i0.ɵɵproperty("formGroup", ctx.form);
|
|
112
|
-
i0.ɵɵadvance(2);
|
|
113
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 8, "igo.context.contextManager.form.title"));
|
|
114
|
-
i0.ɵɵadvance(3);
|
|
115
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 10, "igo.context.contextManager.form.titleRequired"), " ");
|
|
116
|
-
i0.ɵɵadvance(3);
|
|
117
|
-
i0.ɵɵproperty("ngIf", ctx.prefix);
|
|
118
|
-
i0.ɵɵadvance(2);
|
|
119
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(11, 12, "igo.context.contextManager.form.uri"));
|
|
120
|
-
i0.ɵɵadvance(2);
|
|
121
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.copy"));
|
|
122
|
-
i0.ɵɵadvance(4);
|
|
123
|
-
i0.ɵɵproperty("disabled", !ctx.form.valid || ctx.disabled);
|
|
124
|
-
i0.ɵɵadvance(1);
|
|
125
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, "igo.context.contextManager.form.edit"), " ");
|
|
126
|
-
} }, dependencies: [i3.NgIf, i1.ɵNgNoValidate, i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.MaxLengthValidator, i1.FormGroupDirective, i1.FormControlName, i4.MatError, i4.MatFormField, i5.MatInput, i6.MatIcon, i7.MatButton, i8.MatTooltip, i9.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}"] });
|
|
127
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextFormComponent, [{
|
|
128
|
-
type: Component,
|
|
129
|
-
args: [{ selector: 'igo-context-form', template: "<form class=\"igo-form\" [formGroup]=\"form\"\n (ngSubmit)=\"handleFormSubmit(form.value)\">\n\n <mat-form-field class=\"full-width\">\n <input matInput required\n maxlength=\"128\"\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\n formControlName=\"title\">\n <mat-error>\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field id=\"uriInput\" class=\"full-width\">\n <span *ngIf=\"prefix\" class=\"prefix\">{{prefix}}-</span>\n <span class=\"fieldWrapper\">\n <input matInput\n maxlength=\"64\"\n floatLabel = \"always\"\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\n formControlName=\"uri\">\n </span>\n </mat-form-field>\n\n <button\n id=\"copyButton\"\n type=\"button\"\n mat-icon-button\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.context.contextManager.form.copy' | translate\"\n color=\"primary\"\n (click)=\"copyTextToClipboard()\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n </button>\n\n <div class=\"igo-form-button-group\">\n <button\n mat-raised-button\n type=\"submit\"\n [disabled]=\"!form.valid || disabled\">\n {{ 'igo.context.contextManager.form.edit' | translate }}\n </button>\n </div>\n\n</form>\n", styles: ["form{margin:10px}.full-width{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}#copyButton{width:24px;float:right;position:relative;top:-58px;left:5px}\n"] }]
|
|
130
|
-
}], function () { return [{ type: i1.UntypedFormBuilder }, { type: i2.MessageService }]; }, { btnSubmitText: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], context: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], disabled: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}], submitForm: [{
|
|
137
|
-
type: Output
|
|
138
|
-
}], clone: [{
|
|
139
|
-
type: Output
|
|
140
|
-
}], delete: [{
|
|
141
|
-
type: Output
|
|
142
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ObjectUtils, Clipboard } from '@igo2/utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import * as i2 from "@igo2/core";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
import * as i5 from "@angular/material/input";
|
|
9
|
+
import * as i6 from "@angular/material/icon";
|
|
10
|
+
import * as i7 from "@angular/material/button";
|
|
11
|
+
import * as i8 from "@angular/material/tooltip";
|
|
12
|
+
import * as i9 from "@ngx-translate/core";
|
|
13
|
+
function ContextFormComponent_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
15
|
+
i0.ɵɵtext(1);
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
} if (rf & 2) {
|
|
18
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
19
|
+
i0.ɵɵadvance(1);
|
|
20
|
+
i0.ɵɵtextInterpolate1("", ctx_r0.prefix, "-");
|
|
21
|
+
} }
|
|
22
|
+
export class ContextFormComponent {
|
|
23
|
+
constructor(formBuilder, messageService) {
|
|
24
|
+
this.formBuilder = formBuilder;
|
|
25
|
+
this.messageService = messageService;
|
|
26
|
+
this._disabled = false;
|
|
27
|
+
// TODO: replace any by ContextOptions or Context
|
|
28
|
+
this.submitForm = new EventEmitter();
|
|
29
|
+
this.clone = new EventEmitter();
|
|
30
|
+
this.delete = new EventEmitter();
|
|
31
|
+
}
|
|
32
|
+
get btnSubmitText() {
|
|
33
|
+
return this._btnSubmitText;
|
|
34
|
+
}
|
|
35
|
+
set btnSubmitText(value) {
|
|
36
|
+
this._btnSubmitText = value;
|
|
37
|
+
}
|
|
38
|
+
get context() {
|
|
39
|
+
return this._context;
|
|
40
|
+
}
|
|
41
|
+
set context(value) {
|
|
42
|
+
this._context = value;
|
|
43
|
+
this.buildForm();
|
|
44
|
+
}
|
|
45
|
+
get disabled() {
|
|
46
|
+
return this._disabled;
|
|
47
|
+
}
|
|
48
|
+
set disabled(value) {
|
|
49
|
+
this._disabled = value;
|
|
50
|
+
}
|
|
51
|
+
ngOnInit() {
|
|
52
|
+
this.buildForm();
|
|
53
|
+
}
|
|
54
|
+
handleFormSubmit(value) {
|
|
55
|
+
let inputs = Object.assign({}, value);
|
|
56
|
+
inputs = ObjectUtils.removeNull(inputs);
|
|
57
|
+
inputs.uri = inputs.uri.replace(' ', '');
|
|
58
|
+
if (inputs.uri) {
|
|
59
|
+
inputs.uri = this.prefix + '-' + inputs.uri;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
inputs.uri = this.prefix;
|
|
63
|
+
}
|
|
64
|
+
this.submitForm.emit(inputs);
|
|
65
|
+
}
|
|
66
|
+
copyTextToClipboard() {
|
|
67
|
+
const text = this.prefix + '-' + this.form.value.uri.replace(' ', '');
|
|
68
|
+
const successful = Clipboard.copy(text);
|
|
69
|
+
if (successful) {
|
|
70
|
+
this.messageService.success('igo.context.contextManager.dialog.copyMsg', 'igo.context.contextManager.dialog.copyTitle');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
buildForm() {
|
|
74
|
+
const context = this.context || {};
|
|
75
|
+
const uriSplit = context.uri.split('-');
|
|
76
|
+
this.prefix = uriSplit.shift();
|
|
77
|
+
const uri = uriSplit.join('-');
|
|
78
|
+
this.form = this.formBuilder.group({
|
|
79
|
+
title: [context.title],
|
|
80
|
+
uri: [uri || ' ']
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
ContextFormComponent.ɵfac = function ContextFormComponent_Factory(t) { return new (t || ContextFormComponent)(i0.ɵɵdirectiveInject(i1.UntypedFormBuilder), i0.ɵɵdirectiveInject(i2.MessageService)); };
|
|
85
|
+
ContextFormComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContextFormComponent, selectors: [["igo-context-form"]], inputs: { btnSubmitText: "btnSubmitText", context: "context", disabled: "disabled" }, outputs: { submitForm: "submitForm", clone: "clone", delete: "delete" }, decls: 19, vars: 18, consts: [[1, "igo-form", 3, "formGroup", "ngSubmit"], [1, "full-width"], ["matInput", "", "required", "", "maxlength", "128", "formControlName", "title", 3, "placeholder"], ["id", "uriInput", 1, "full-width"], ["class", "prefix", 4, "ngIf"], [1, "fieldWrapper"], ["matInput", "", "maxlength", "64", "floatLabel", "always", "formControlName", "uri", 3, "placeholder"], ["id", "copyButton", "type", "button", "mat-icon-button", "", "tooltip-position", "below", "matTooltipShowDelay", "500", "color", "primary", 3, "matTooltip", "click"], ["svgIcon", "content-copy"], [1, "igo-form-button-group"], ["mat-raised-button", "", "type", "submit", 3, "disabled"], [1, "prefix"]], template: function ContextFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
i0.ɵɵelementStart(0, "form", 0);
|
|
87
|
+
i0.ɵɵlistener("ngSubmit", function ContextFormComponent_Template_form_ngSubmit_0_listener() { return ctx.handleFormSubmit(ctx.form.value); });
|
|
88
|
+
i0.ɵɵelementStart(1, "mat-form-field", 1);
|
|
89
|
+
i0.ɵɵelement(2, "input", 2);
|
|
90
|
+
i0.ɵɵpipe(3, "translate");
|
|
91
|
+
i0.ɵɵelementStart(4, "mat-error");
|
|
92
|
+
i0.ɵɵtext(5);
|
|
93
|
+
i0.ɵɵpipe(6, "translate");
|
|
94
|
+
i0.ɵɵelementEnd()();
|
|
95
|
+
i0.ɵɵelementStart(7, "mat-form-field", 3);
|
|
96
|
+
i0.ɵɵtemplate(8, ContextFormComponent_span_8_Template, 2, 1, "span", 4);
|
|
97
|
+
i0.ɵɵelementStart(9, "span", 5);
|
|
98
|
+
i0.ɵɵelement(10, "input", 6);
|
|
99
|
+
i0.ɵɵpipe(11, "translate");
|
|
100
|
+
i0.ɵɵelementEnd()();
|
|
101
|
+
i0.ɵɵelementStart(12, "button", 7);
|
|
102
|
+
i0.ɵɵlistener("click", function ContextFormComponent_Template_button_click_12_listener() { return ctx.copyTextToClipboard(); });
|
|
103
|
+
i0.ɵɵpipe(13, "translate");
|
|
104
|
+
i0.ɵɵelement(14, "mat-icon", 8);
|
|
105
|
+
i0.ɵɵelementEnd();
|
|
106
|
+
i0.ɵɵelementStart(15, "div", 9)(16, "button", 10);
|
|
107
|
+
i0.ɵɵtext(17);
|
|
108
|
+
i0.ɵɵpipe(18, "translate");
|
|
109
|
+
i0.ɵɵelementEnd()()();
|
|
110
|
+
} if (rf & 2) {
|
|
111
|
+
i0.ɵɵproperty("formGroup", ctx.form);
|
|
112
|
+
i0.ɵɵadvance(2);
|
|
113
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(3, 8, "igo.context.contextManager.form.title"));
|
|
114
|
+
i0.ɵɵadvance(3);
|
|
115
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 10, "igo.context.contextManager.form.titleRequired"), " ");
|
|
116
|
+
i0.ɵɵadvance(3);
|
|
117
|
+
i0.ɵɵproperty("ngIf", ctx.prefix);
|
|
118
|
+
i0.ɵɵadvance(2);
|
|
119
|
+
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(11, 12, "igo.context.contextManager.form.uri"));
|
|
120
|
+
i0.ɵɵadvance(2);
|
|
121
|
+
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(13, 14, "igo.context.contextManager.form.copy"));
|
|
122
|
+
i0.ɵɵadvance(4);
|
|
123
|
+
i0.ɵɵproperty("disabled", !ctx.form.valid || ctx.disabled);
|
|
124
|
+
i0.ɵɵadvance(1);
|
|
125
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, "igo.context.contextManager.form.edit"), " ");
|
|
126
|
+
} }, dependencies: [i3.NgIf, i1.ɵNgNoValidate, i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.RequiredValidator, i1.MaxLengthValidator, i1.FormGroupDirective, i1.FormControlName, i4.MatError, i4.MatFormField, i5.MatInput, i6.MatIcon, i7.MatButton, i8.MatTooltip, i9.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}"] });
|
|
127
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextFormComponent, [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: 'igo-context-form', template: "<form class=\"igo-form\" [formGroup]=\"form\"\n (ngSubmit)=\"handleFormSubmit(form.value)\">\n\n <mat-form-field class=\"full-width\">\n <input matInput required\n maxlength=\"128\"\n [placeholder]=\"'igo.context.contextManager.form.title' | translate\"\n formControlName=\"title\">\n <mat-error>\n {{ 'igo.context.contextManager.form.titleRequired' | translate }}\n </mat-error>\n </mat-form-field>\n\n <mat-form-field id=\"uriInput\" class=\"full-width\">\n <span *ngIf=\"prefix\" class=\"prefix\">{{prefix}}-</span>\n <span class=\"fieldWrapper\">\n <input matInput\n maxlength=\"64\"\n floatLabel = \"always\"\n [placeholder]=\"'igo.context.contextManager.form.uri' | translate\"\n formControlName=\"uri\">\n </span>\n </mat-form-field>\n\n <button\n id=\"copyButton\"\n type=\"button\"\n mat-icon-button\n tooltip-position=\"below\"\n matTooltipShowDelay=\"500\"\n [matTooltip]=\"'igo.context.contextManager.form.copy' | translate\"\n color=\"primary\"\n (click)=\"copyTextToClipboard()\">\n <mat-icon svgIcon=\"content-copy\"></mat-icon>\n </button>\n\n <div class=\"igo-form-button-group\">\n <button\n mat-raised-button\n type=\"submit\"\n [disabled]=\"!form.valid || disabled\">\n {{ 'igo.context.contextManager.form.edit' | translate }}\n </button>\n </div>\n\n</form>\n", styles: ["form{margin:10px}.full-width{width:100%}#uriInput .fieldWrapper{display:block;overflow:hidden}#uriInput .prefix{float:left}#copyButton{width:24px;float:right;position:relative;top:-58px;left:5px}\n"] }]
|
|
130
|
+
}], function () { return [{ type: i1.UntypedFormBuilder }, { type: i2.MessageService }]; }, { btnSubmitText: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], context: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], disabled: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], submitForm: [{
|
|
137
|
+
type: Output
|
|
138
|
+
}], clone: [{
|
|
139
|
+
type: Output
|
|
140
|
+
}], delete: [{
|
|
141
|
+
type: Output
|
|
142
|
+
}] }); })();
|
|
143
143
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbnRleHQvc3JjL2xpYi9jb250ZXh0LW1hbmFnZXIvY29udGV4dC1mb3JtL2NvbnRleHQtZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9sa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S5jb3B5JyB8IHRyYW5zbGF0ZVwiXG4gICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAoY2xpY2spPVwiY29weVRleHRUb0NsaXBib2FyZCgpXCI+XG4gICAgPG1hdC1pY29uIHN2Z0ljb249XCJjb250ZW50LWNvcHlcIj48L21hdC1pY29uPlxuICA8L2J1dHRvbj5cblxuICA8ZGl2IGNsYXNzPVwiaWdvLWZvcm0tYnV0dG9uLWdyb3VwXCI+XG4gICAgPGJ1dHRvblxuICAgICAgbWF0LXJhaXNlZC1idXR0b25cbiAgICAgIHR5cGU9XCJzdWJtaXRcIlxuICAgICAgW2Rpc2FibGVkXT1cIiFmb3JtLnZhbGlkIHx8IGRpc2FibGVkXCI+XG4gICAgICB7eyAnaWdvLmNvbnRleHQuY29udGV4dE1hbmFnZXIuZm9ybS5lZGl0JyB8IHRyYW5zbGF0ZSB9fVxuICAgIDwvYnV0dG9uPlxuICA8L2Rpdj5cblxuPC9mb3JtPlxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './context-form.component';
|
|
1
|
+
export * from './context-form.component';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb250ZXh0L3NyYy9saWIvY29udGV4dC1tYW5hZ2VyL2NvbnRleHQtZm9ybS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZXh0LWZvcm0uY29tcG9uZW50JztcbiJdfQ==
|