@valtimo/choice-field 4.15.2 → 4.16.0-next-main.19
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/bundles/valtimo-choice-field.umd.js +113 -57
- package/bundles/valtimo-choice-field.umd.js.map +1 -1
- package/bundles/valtimo-choice-field.umd.min.js +1 -1
- package/bundles/valtimo-choice-field.umd.min.js.map +1 -1
- package/esm2015/lib/choice-field-create/choice-field-create.component.js +3 -3
- package/esm2015/lib/choice-field-detail/choice-field-detail.component.js +8 -7
- package/esm2015/lib/choice-field-list/choice-field-list.component.js +11 -10
- package/esm2015/lib/choice-field-routing.module.js +15 -18
- package/esm2015/lib/choice-field-value-create/choice-field-value-create.component.js +3 -3
- package/esm2015/lib/choice-field-value-detail/choice-field-value-detail.component.js +3 -3
- package/esm2015/lib/choice-field-value-list/choice-field-value-list.component.js +15 -11
- package/esm2015/lib/choice-field.module.js +4 -4
- package/esm2015/lib/choice-field.service.js +7 -4
- package/esm2015/lib/models/choice-field.model.js +16 -0
- package/esm2015/lib/models/choicefield-value.model.js +16 -0
- package/esm2015/lib/models/index.js +20 -0
- package/esm2015/public_api.js +2 -1
- package/esm2015/valtimo-choice-field.js +1 -1
- package/fesm2015/valtimo-choice-field.js +110 -55
- package/fesm2015/valtimo-choice-field.js.map +1 -1
- package/lib/choice-field-detail/choice-field-detail.component.d.ts +1 -1
- package/lib/choice-field-list/choice-field-list.component.d.ts +1 -1
- package/lib/choice-field-value-create/choice-field-value-create.component.d.ts +1 -1
- package/lib/choice-field-value-detail/choice-field-value-detail.component.d.ts +1 -1
- package/lib/choice-field-value-list/choice-field-value-list.component.d.ts +1 -1
- package/lib/models/choice-field.model.d.ts +14 -0
- package/lib/models/choicefield-value.model.d.ts +20 -0
- package/lib/models/index.d.ts +2 -0
- package/package.json +1 -4
- package/public_api.d.ts +1 -0
- package/valtimo-choice-field.metadata.json +1 -1
|
@@ -1,8 +1,58 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('@angular/common'), require('@angular/forms'), require('@valtimo/components'), require('@angular/router'), require('@valtimo/security'), require('rxjs'), require('rxjs/operators'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/choice-field', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', '@angular/common', '@angular/forms', '@valtimo/components', '@angular/router', '@valtimo/security', 'rxjs', 'rxjs/operators', '@
|
|
4
|
-
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['choice-field'] = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.ng.forms, global.components, global.ng.router, global.security, global.rxjs, global.rxjs.operators, global.
|
|
5
|
-
}(this, (function (exports, i0, i1, i2, common, forms, components, router, security, rxjs, operators,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('@angular/common'), require('@angular/forms'), require('@valtimo/components'), require('@angular/router'), require('@valtimo/security'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/choice-field', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', '@angular/common', '@angular/forms', '@valtimo/components', '@angular/router', '@valtimo/security', 'rxjs', 'rxjs/operators', '@ngx-translate/core'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['choice-field'] = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.ng.forms, global.components, global.ng.router, global.security, global.rxjs, global.rxjs.operators, global.core$1));
|
|
5
|
+
}(this, (function (exports, i0, i1, i2, common, forms, components, router, security, rxjs, operators, core) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
25
|
+
*
|
|
26
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
27
|
+
* you may not use this file except in compliance with the License.
|
|
28
|
+
* You may obtain a copy of the License at
|
|
29
|
+
*
|
|
30
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
31
|
+
*
|
|
32
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
33
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
34
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
35
|
+
* See the License for the specific language governing permissions and
|
|
36
|
+
* limitations under the License.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
*
|
|
41
|
+
* * Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
42
|
+
* *
|
|
43
|
+
* * Licensed under EUPL, Version 1.2 (the "License");
|
|
44
|
+
* * you may not use this file except in compliance with the License.
|
|
45
|
+
* * You may obtain a copy of the License at
|
|
46
|
+
* *
|
|
47
|
+
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
48
|
+
* *
|
|
49
|
+
* * Unless required by applicable law or agreed to in writing, software
|
|
50
|
+
* * distributed under the License is distributed on an "AS IS" basis,
|
|
51
|
+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
52
|
+
* * See the License for the specific language governing permissions and
|
|
53
|
+
* * limitations under the License.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
6
56
|
|
|
7
57
|
/*
|
|
8
58
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -26,7 +76,10 @@
|
|
|
26
76
|
this.valtimoApiConfig = configService.config.valtimoApi;
|
|
27
77
|
}
|
|
28
78
|
ChoiceFieldService.prototype.query = function (params) {
|
|
29
|
-
return this.http.get(this.valtimoApiConfig.endpointUri + "choice-fields", {
|
|
79
|
+
return this.http.get(this.valtimoApiConfig.endpointUri + "choice-fields", {
|
|
80
|
+
observe: 'response',
|
|
81
|
+
params: params,
|
|
82
|
+
});
|
|
30
83
|
};
|
|
31
84
|
ChoiceFieldService.prototype.get = function (id) {
|
|
32
85
|
return this.http.get(this.valtimoApiConfig.endpointUri + "choice-fields/" + id);
|
|
@@ -48,7 +101,7 @@
|
|
|
48
101
|
};
|
|
49
102
|
ChoiceFieldService.prototype.updateValue = function (choiceFieldValue, choiceFieldName) {
|
|
50
103
|
return this.http.put(this.valtimoApiConfig.endpointUri + "choice-field-values", choiceFieldValue, {
|
|
51
|
-
params: { choice_field_name: choiceFieldName }
|
|
104
|
+
params: { choice_field_name: choiceFieldName },
|
|
52
105
|
});
|
|
53
106
|
};
|
|
54
107
|
ChoiceFieldService.prototype.createValue = function (choiceFieldValue, choiceFieldName) {
|
|
@@ -59,7 +112,7 @@
|
|
|
59
112
|
ChoiceFieldService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ChoiceFieldService_Factory() { return new ChoiceFieldService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ChoiceFieldService, providedIn: "root" });
|
|
60
113
|
ChoiceFieldService.decorators = [
|
|
61
114
|
{ type: i0.Injectable, args: [{
|
|
62
|
-
providedIn: 'root'
|
|
115
|
+
providedIn: 'root',
|
|
63
116
|
},] }
|
|
64
117
|
];
|
|
65
118
|
ChoiceFieldService.ctorParameters = function () { return [
|
|
@@ -91,24 +144,25 @@
|
|
|
91
144
|
collectionSize: 0,
|
|
92
145
|
page: 1,
|
|
93
146
|
size: 10,
|
|
94
|
-
maxPaginationItemSize: 5
|
|
147
|
+
maxPaginationItemSize: 5,
|
|
95
148
|
};
|
|
96
149
|
this.pageParam = 0;
|
|
97
|
-
this.fields = [
|
|
150
|
+
this.fields = [
|
|
151
|
+
{
|
|
98
152
|
key: 'id',
|
|
99
|
-
label: 'ID'
|
|
153
|
+
label: 'ID',
|
|
100
154
|
},
|
|
101
155
|
{
|
|
102
156
|
key: 'keyName',
|
|
103
|
-
label: 'Key'
|
|
157
|
+
label: 'Key',
|
|
104
158
|
},
|
|
105
159
|
{
|
|
106
160
|
key: 'title',
|
|
107
|
-
label: 'Title'
|
|
108
|
-
}
|
|
161
|
+
label: 'Title',
|
|
162
|
+
},
|
|
163
|
+
];
|
|
109
164
|
}
|
|
110
|
-
ChoiceFieldListComponent.prototype.ngOnInit = function () {
|
|
111
|
-
};
|
|
165
|
+
ChoiceFieldListComponent.prototype.ngOnInit = function () { };
|
|
112
166
|
ChoiceFieldListComponent.prototype.paginationSet = function () {
|
|
113
167
|
this.initData();
|
|
114
168
|
};
|
|
@@ -131,7 +185,7 @@
|
|
|
131
185
|
ChoiceFieldListComponent.decorators = [
|
|
132
186
|
{ type: i0.Component, args: [{
|
|
133
187
|
selector: 'valtimo-choice-field-list',
|
|
134
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button [routerLink]=\"'create'\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"icon mdi mdi-plus\"></i> \n <span>{{ 'Create new Choice field' | translate }}</span>\n </button>\n </div>\n </div>\n
|
|
188
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button [routerLink]=\"'create'\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"icon mdi mdi-plus\"></i> \n <span>{{ 'Create new Choice field' | translate }}</span>\n </button>\n </div>\n </div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"choiceFields\"\n [fields]=\"fields\"\n (rowClicked)=\"rowClick($event)\"\n [pagination]=\"pagination\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n paginationIdentifier=\"choiceFieldList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet()\"\n [header]=\"true\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Choice fields' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Choice fields' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n",
|
|
135
189
|
styles: [""]
|
|
136
190
|
},] }
|
|
137
191
|
];
|
|
@@ -198,7 +252,7 @@
|
|
|
198
252
|
return this.formBuilder.group({
|
|
199
253
|
id: new forms.FormControl('', forms.Validators.required),
|
|
200
254
|
keyName: new forms.FormControl('', forms.Validators.required),
|
|
201
|
-
title: new forms.FormControl('', forms.Validators.required)
|
|
255
|
+
title: new forms.FormControl('', forms.Validators.required),
|
|
202
256
|
});
|
|
203
257
|
};
|
|
204
258
|
ChoiceFieldDetailComponent.prototype.reset = function () {
|
|
@@ -216,16 +270,17 @@
|
|
|
216
270
|
{
|
|
217
271
|
label: 'Cancel',
|
|
218
272
|
class: 'btn btn-default',
|
|
219
|
-
value: false
|
|
273
|
+
value: false,
|
|
220
274
|
},
|
|
221
275
|
{
|
|
222
276
|
label: 'Delete',
|
|
223
277
|
class: 'btn btn-primary',
|
|
224
|
-
value: true
|
|
225
|
-
}
|
|
278
|
+
value: true,
|
|
279
|
+
},
|
|
226
280
|
];
|
|
227
281
|
this.alertService.notification(mssg, confirmations);
|
|
228
|
-
this.alertSub = this.alertService
|
|
282
|
+
this.alertSub = this.alertService
|
|
283
|
+
.getAlertConfirmChangeEmitter()
|
|
229
284
|
.pipe(operators.first())
|
|
230
285
|
.subscribe(function (alert) {
|
|
231
286
|
if (alert.confirm === true) {
|
|
@@ -252,7 +307,7 @@
|
|
|
252
307
|
ChoiceFieldDetailComponent.decorators = [
|
|
253
308
|
{ type: i0.Component, args: [{
|
|
254
309
|
selector: 'valtimo-choice-field-detail',
|
|
255
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"p-5 bg-white\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"title\">Title</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input
|
|
310
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"p-5 bg-white\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"title\"\n >Title</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n valtimoFieldAutoFocus\n type=\"text\"\n id=\"title\"\n formControlName=\"title\"\n class=\"form-control\"\n placeholder=\"Choice field title\"\n [ngClass]=\"{\n 'is-valid': formControls.title.touched && formControls.title.valid,\n 'is-invalid': formControls.title.touched && formControls.title.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.title.touched && formControls.title.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.title.errors.required\">Title is required</div>\n </div>\n </div>\n </div>\n\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-12 col-sm-6 text-left\">\n <a [routerLink]=\"'/choice-fields'\" class=\"btn btn-space btn-default\">Back</a>\n <button class=\"btn btn-space btn-danger\" type=\"button\" (click)=\"delete()\">\n Delete\n </button>\n </div>\n <div class=\"col-12 col-sm-6 text-right\">\n <button class=\"btn btn-space btn-secondary\" type=\"button\" (click)=\"reset()\">\n Reset\n </button>\n <button class=\"btn btn-space btn-primary\" type=\"submit\" [disabled]=\"form.invalid\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n\n<div class=\"page-head\">\n <h2 class=\"page-head-title\">Choice field values</h2>\n</div>\n<valtimo-choice-field-value-list></valtimo-choice-field-value-list>\n",
|
|
256
311
|
styles: [""]
|
|
257
312
|
},] }
|
|
258
313
|
];
|
|
@@ -299,7 +354,7 @@
|
|
|
299
354
|
ChoiceFieldCreateComponent.prototype.createFormGroup = function () {
|
|
300
355
|
return this.formBuilder.group({
|
|
301
356
|
keyName: new forms.FormControl('', forms.Validators.required),
|
|
302
|
-
title: new forms.FormControl('', forms.Validators.required)
|
|
357
|
+
title: new forms.FormControl('', forms.Validators.required),
|
|
303
358
|
});
|
|
304
359
|
};
|
|
305
360
|
ChoiceFieldCreateComponent.prototype.onSubmit = function () {
|
|
@@ -317,7 +372,7 @@
|
|
|
317
372
|
ChoiceFieldCreateComponent.decorators = [
|
|
318
373
|
{ type: i0.Component, args: [{
|
|
319
374
|
selector: 'valtimo-choice-field-create',
|
|
320
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div>\n <div class=\"p-5 bg-white\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"keyName\">Key</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input
|
|
375
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div>\n <div class=\"p-5 bg-white\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"keyName\"\n >Key</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n valtimoFieldAutoFocus\n type=\"text\"\n id=\"keyName\"\n formControlName=\"keyName\"\n class=\"form-control\"\n placeholder=\"Choice field key name\"\n [ngClass]=\"{\n 'is-valid': formControls.keyName.touched && formControls.keyName.valid,\n 'is-invalid': formControls.keyName.touched && formControls.keyName.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.keyName.touched && formControls.keyName.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.keyName.errors.required\">Key name is required</div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"title\"\n >Title</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n type=\"text\"\n id=\"title\"\n formControlName=\"title\"\n class=\"form-control\"\n placeholder=\"Choice field title\"\n [ngClass]=\"{\n 'is-valid': formControls.title.touched && formControls.title.valid,\n 'is-invalid': formControls.title.touched && formControls.title.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.title.touched && formControls.title.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.title.errors.required\">Title is required</div>\n </div>\n </div>\n </div>\n\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-12 col-sm-6 text-left\">\n <a [routerLink]=\"'/choice-fields'\" class=\"btn btn-space btn-default\">Back</a>\n </div>\n <div class=\"col-12 col-sm-6 text-right\">\n <button class=\"btn btn-space btn-secondary\" type=\"button\" (click)=\"reset()\">\n Reset\n </button>\n <button class=\"btn btn-space btn-primary\" type=\"submit\" [disabled]=\"form.invalid\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n",
|
|
321
376
|
styles: [""]
|
|
322
377
|
},] }
|
|
323
378
|
];
|
|
@@ -368,7 +423,7 @@
|
|
|
368
423
|
name: new forms.FormControl('', forms.Validators.required),
|
|
369
424
|
value: new forms.FormControl('', forms.Validators.required),
|
|
370
425
|
sortOrder: new forms.FormControl('', forms.Validators.required),
|
|
371
|
-
deprecated: new forms.FormControl('', forms.Validators.required)
|
|
426
|
+
deprecated: new forms.FormControl('', forms.Validators.required),
|
|
372
427
|
});
|
|
373
428
|
};
|
|
374
429
|
ChoiceFieldValueCreateComponent.prototype.initData = function (id) {
|
|
@@ -400,7 +455,7 @@
|
|
|
400
455
|
ChoiceFieldValueCreateComponent.decorators = [
|
|
401
456
|
{ type: i0.Component, args: [{
|
|
402
457
|
selector: 'valtimo-choice-field-value-create',
|
|
403
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <strong>Choice field</strong>\n <hr />\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Title</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.title }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"bg-white p-5\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"name\">Key</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input
|
|
458
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <strong>Choice field</strong>\n <hr />\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Title</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.title }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"bg-white p-5\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"name\">Key</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n valtimoFieldAutoFocus\n type=\"text\"\n id=\"name\"\n formControlName=\"name\"\n class=\"form-control\"\n placeholder=\"Choice field value key\"\n [ngClass]=\"{\n 'is-valid': formControls.name.touched && formControls.name.valid,\n 'is-invalid': formControls.name.touched && formControls.name.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.name.touched && formControls.name.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.name.errors.required\">\n Choice field value key is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"value\"\n >Value</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n type=\"text\"\n id=\"value\"\n formControlName=\"value\"\n class=\"form-control\"\n placeholder=\"Choice field value\"\n [ngClass]=\"{\n 'is-valid': formControls.value.touched && formControls.value.valid,\n 'is-invalid': formControls.value.touched && formControls.value.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.value.touched && formControls.value.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.value.errors.required\">\n Choice field value is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"sortOrder\"\n >Sequence</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n type=\"number\"\n id=\"sortOrder\"\n formControlName=\"sortOrder\"\n class=\"form-control\"\n placeholder=\"Choice field value sequence\"\n [ngClass]=\"{\n 'is-valid': formControls.sortOrder.touched && formControls.sortOrder.valid,\n 'is-invalid': formControls.sortOrder.touched && formControls.sortOrder.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.sortOrder.touched && formControls.sortOrder.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.sortOrder.errors.required\">\n Choice field value sequence is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"deprecated\"\n >Deprecated</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <div class=\"switch-button switch-button-sm switch-button-success\">\n <input type=\"checkbox\" formControlName=\"deprecated\" id=\"deprecated\" /><span>\n <label for=\"deprecated\"></label\n ></span>\n </div>\n </div>\n </div>\n\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-12 col-sm-6 text-left\">\n <a [routerLink]=\"'../'\" class=\"btn btn-space btn-default\">Back</a>\n </div>\n <div class=\"col-12 col-sm-6 text-right\">\n <button class=\"btn btn-space btn-secondary\" type=\"button\" (click)=\"reset()\">\n Reset\n </button>\n <button class=\"btn btn-space btn-primary\" type=\"submit\" [disabled]=\"form.invalid\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n",
|
|
404
459
|
styles: [""]
|
|
405
460
|
},] }
|
|
406
461
|
];
|
|
@@ -461,7 +516,7 @@
|
|
|
461
516
|
name: new forms.FormControl('', forms.Validators.required),
|
|
462
517
|
value: new forms.FormControl('', forms.Validators.required),
|
|
463
518
|
sortOrder: new forms.FormControl('', forms.Validators.required),
|
|
464
|
-
deprecated: new forms.FormControl('', forms.Validators.required)
|
|
519
|
+
deprecated: new forms.FormControl('', forms.Validators.required),
|
|
465
520
|
});
|
|
466
521
|
};
|
|
467
522
|
ChoiceFieldValueDetailComponent.prototype.setValues = function () {
|
|
@@ -490,7 +545,7 @@
|
|
|
490
545
|
ChoiceFieldValueDetailComponent.decorators = [
|
|
491
546
|
{ type: i0.Component, args: [{
|
|
492
547
|
selector: 'valtimo-choice-field-value-detail',
|
|
493
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <strong>Choice field</strong>\n <hr />\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Title</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.title }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 pt-3\">\n <strong>Choice field value</strong>\n <hr />\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceFieldValue.id }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"bg-white p-5\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"name\">Key</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input
|
|
548
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget *ngIf=\"choiceField\">\n <div>\n <div class=\"card-body bg-light\">\n <div class=\"row py-5\">\n <div class=\"col-12\">\n <div class=\"row mb-3\">\n <div class=\"col-12\">\n <strong>Choice field</strong>\n <hr />\n </div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.id }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Key</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.keyName }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>Title</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceField.title }}</div>\n </div>\n <div class=\"row mb-3\">\n <div class=\"col-12 pt-3\">\n <strong>Choice field value</strong>\n <hr />\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-12 col-sm-3 text-sm-right\"><strong>ID</strong></div>\n <div class=\"col-12 col-sm-8 col-lg-6\">{{ choiceFieldValue.id }}</div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"bg-white p-5\">\n <form [formGroup]=\"form\" (ngSubmit)=\"onSubmit()\">\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"name\">Key</label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n valtimoFieldAutoFocus\n type=\"text\"\n id=\"name\"\n formControlName=\"name\"\n class=\"form-control\"\n placeholder=\"Choice field value key\"\n [ngClass]=\"{\n 'is-valid': formControls.name.touched && formControls.name.valid,\n 'is-invalid': formControls.name.touched && formControls.name.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.name.touched && formControls.name.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.name.errors.required\">\n Choice field value key is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"value\"\n >Value</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n type=\"text\"\n id=\"value\"\n formControlName=\"value\"\n class=\"form-control\"\n placeholder=\"Choice field value\"\n [ngClass]=\"{\n 'is-valid': formControls.value.touched && formControls.value.valid,\n 'is-invalid': formControls.value.touched && formControls.value.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.value.touched && formControls.value.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.value.errors.required\">\n Choice field value is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"sortOrder\"\n >Sequence</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <input\n type=\"number\"\n id=\"sortOrder\"\n formControlName=\"sortOrder\"\n class=\"form-control\"\n placeholder=\"Choice field value sequence\"\n [ngClass]=\"{\n 'is-valid': formControls.sortOrder.touched && formControls.sortOrder.valid,\n 'is-invalid': formControls.sortOrder.touched && formControls.sortOrder.errors\n }\"\n required\n />\n <div\n *ngIf=\"formControls.sortOrder.touched && formControls.sortOrder.errors\"\n class=\"invalid-feedback\"\n >\n <div *ngIf=\"formControls.sortOrder.errors.required\">\n Choice field value sequence is required\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"deprecated\"\n >Deprecated</label\n >\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <div class=\"switch-button switch-button-sm switch-button-success\">\n <input type=\"checkbox\" formControlName=\"deprecated\" id=\"deprecated\" /><span>\n <label for=\"deprecated\"></label\n ></span>\n </div>\n </div>\n </div>\n\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-12 col-sm-6 text-left\">\n <a [routerLink]=\"'../../'\" class=\"btn btn-space btn-default\">Back</a>\n </div>\n <div class=\"col-12 col-sm-6 text-right\">\n <button class=\"btn btn-space btn-secondary\" type=\"button\" (click)=\"reset()\">\n Reset\n </button>\n <button class=\"btn btn-space btn-primary\" type=\"submit\" [disabled]=\"form.invalid\">\n Submit\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n",
|
|
494
549
|
styles: [""]
|
|
495
550
|
},] }
|
|
496
551
|
];
|
|
@@ -519,51 +574,51 @@
|
|
|
519
574
|
*/
|
|
520
575
|
var ɵ0 = {
|
|
521
576
|
title: 'Choice fields',
|
|
522
|
-
roles: [
|
|
577
|
+
roles: [i2.ROLE_ADMIN],
|
|
523
578
|
}, ɵ1 = {
|
|
524
579
|
title: 'Choice field details',
|
|
525
|
-
roles: [
|
|
580
|
+
roles: [i2.ROLE_ADMIN],
|
|
526
581
|
}, ɵ2 = {
|
|
527
582
|
title: 'Create new Choice field',
|
|
528
|
-
roles: [
|
|
583
|
+
roles: [i2.ROLE_ADMIN],
|
|
529
584
|
}, ɵ3 = {
|
|
530
585
|
title: 'Create new Choice field value',
|
|
531
|
-
roles: [
|
|
586
|
+
roles: [i2.ROLE_ADMIN],
|
|
532
587
|
}, ɵ4 = {
|
|
533
588
|
title: 'Choice field value details',
|
|
534
|
-
roles: [
|
|
589
|
+
roles: [i2.ROLE_ADMIN],
|
|
535
590
|
};
|
|
536
591
|
var routes = [
|
|
537
592
|
{
|
|
538
593
|
path: 'choice-fields',
|
|
539
594
|
data: ɵ0,
|
|
540
595
|
component: ChoiceFieldListComponent,
|
|
541
|
-
canActivate: [security.AuthGuardService]
|
|
596
|
+
canActivate: [security.AuthGuardService],
|
|
542
597
|
},
|
|
543
598
|
{
|
|
544
599
|
path: 'choice-fields/field/:id',
|
|
545
600
|
data: ɵ1,
|
|
546
601
|
component: ChoiceFieldDetailComponent,
|
|
547
|
-
canActivate: [security.AuthGuardService]
|
|
602
|
+
canActivate: [security.AuthGuardService],
|
|
548
603
|
},
|
|
549
604
|
{
|
|
550
605
|
path: 'choice-fields/create',
|
|
551
606
|
data: ɵ2,
|
|
552
607
|
component: ChoiceFieldCreateComponent,
|
|
553
|
-
canActivate: [security.AuthGuardService]
|
|
608
|
+
canActivate: [security.AuthGuardService],
|
|
554
609
|
},
|
|
555
610
|
{
|
|
556
611
|
path: 'choice-fields/field/:id/create-value',
|
|
557
612
|
data: ɵ3,
|
|
558
613
|
component: ChoiceFieldValueCreateComponent,
|
|
559
|
-
canActivate: [security.AuthGuardService]
|
|
614
|
+
canActivate: [security.AuthGuardService],
|
|
560
615
|
},
|
|
561
616
|
{
|
|
562
617
|
path: 'choice-fields/field/:id/value/:valueId',
|
|
563
618
|
data: ɵ4,
|
|
564
619
|
component: ChoiceFieldValueDetailComponent,
|
|
565
|
-
canActivate: [security.AuthGuardService]
|
|
566
|
-
}
|
|
620
|
+
canActivate: [security.AuthGuardService],
|
|
621
|
+
},
|
|
567
622
|
];
|
|
568
623
|
var ChoiceFieldRoutingModule = /** @class */ (function () {
|
|
569
624
|
function ChoiceFieldRoutingModule() {
|
|
@@ -572,11 +627,8 @@
|
|
|
572
627
|
}());
|
|
573
628
|
ChoiceFieldRoutingModule.decorators = [
|
|
574
629
|
{ type: i0.NgModule, args: [{
|
|
575
|
-
imports: [
|
|
576
|
-
|
|
577
|
-
router.RouterModule.forChild(routes),
|
|
578
|
-
],
|
|
579
|
-
exports: [router.RouterModule]
|
|
630
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
631
|
+
exports: [router.RouterModule],
|
|
580
632
|
},] }
|
|
581
633
|
];
|
|
582
634
|
|
|
@@ -606,29 +658,31 @@
|
|
|
606
658
|
collectionSize: 0,
|
|
607
659
|
page: 1,
|
|
608
660
|
size: 10,
|
|
609
|
-
maxPaginationItemSize: 5
|
|
661
|
+
maxPaginationItemSize: 5,
|
|
610
662
|
};
|
|
611
663
|
this.pageParam = 0;
|
|
612
|
-
this.fields = [
|
|
664
|
+
this.fields = [
|
|
665
|
+
{
|
|
613
666
|
key: 'id',
|
|
614
|
-
label: 'ID'
|
|
667
|
+
label: 'ID',
|
|
615
668
|
},
|
|
616
669
|
{
|
|
617
670
|
key: 'value',
|
|
618
|
-
label: 'Key'
|
|
671
|
+
label: 'Key',
|
|
619
672
|
},
|
|
620
673
|
{
|
|
621
674
|
key: 'name',
|
|
622
|
-
label: 'Title'
|
|
675
|
+
label: 'Title',
|
|
623
676
|
},
|
|
624
677
|
{
|
|
625
678
|
key: 'deprecatedDisplayString',
|
|
626
|
-
label: 'Deprecated'
|
|
679
|
+
label: 'Deprecated',
|
|
627
680
|
},
|
|
628
681
|
{
|
|
629
682
|
key: 'sortOrder',
|
|
630
|
-
label: 'Sequence'
|
|
631
|
-
}
|
|
683
|
+
label: 'Sequence',
|
|
684
|
+
},
|
|
685
|
+
];
|
|
632
686
|
var snapshot = this.route.snapshot.paramMap;
|
|
633
687
|
this.id = snapshot.get('id');
|
|
634
688
|
}
|
|
@@ -642,7 +696,9 @@
|
|
|
642
696
|
var _this = this;
|
|
643
697
|
this.service.get(id).subscribe(function (result) {
|
|
644
698
|
_this.choiceField = result;
|
|
645
|
-
_this.service
|
|
699
|
+
_this.service
|
|
700
|
+
.queryValues(_this.choiceField.keyName, { page: _this.pageParam, size: _this.pagination.size })
|
|
701
|
+
.subscribe(function (values) {
|
|
646
702
|
_this.pagination.collectionSize = values.headers.get('x-total-count');
|
|
647
703
|
_this.choiceFieldValues = values.body;
|
|
648
704
|
_this.choiceFieldValues.forEach(function (choiceFieldValue) {
|
|
@@ -663,7 +719,7 @@
|
|
|
663
719
|
ChoiceFieldValueListComponent.decorators = [
|
|
664
720
|
{ type: i0.Component, args: [{
|
|
665
721
|
selector: 'valtimo-choice-field-value-list',
|
|
666
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button [routerLink]=\"'create-value'\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"icon mdi mdi-plus\"></i> \n <span>{{ 'Create new Choice field value' | translate }}</span>\n </button>\n </div>\n </div>\n <valtimo-widget>\n <valtimo-list
|
|
722
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button [routerLink]=\"'create-value'\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"icon mdi mdi-plus\"></i> \n <span>{{ 'Create new Choice field value' | translate }}</span>\n </button>\n </div>\n </div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"choiceFieldValues\"\n [fields]=\"fields\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n (rowClicked)=\"rowClick($event)\"\n [pagination]=\"pagination\"\n paginationIdentifier=\"choiceFieldValueList\"\n (paginationClicked)=\"paginationClicked($event)\"\n [header]=\"true\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Choice field values' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all Choice field values' | translate }}\n </h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n",
|
|
667
723
|
styles: [""]
|
|
668
724
|
},] }
|
|
669
725
|
];
|
|
@@ -702,7 +758,7 @@
|
|
|
702
758
|
ChoiceFieldCreateComponent,
|
|
703
759
|
ChoiceFieldValueListComponent,
|
|
704
760
|
ChoiceFieldValueCreateComponent,
|
|
705
|
-
ChoiceFieldValueDetailComponent
|
|
761
|
+
ChoiceFieldValueDetailComponent,
|
|
706
762
|
],
|
|
707
763
|
imports: [
|
|
708
764
|
common.CommonModule,
|
|
@@ -713,9 +769,9 @@
|
|
|
713
769
|
forms.ReactiveFormsModule,
|
|
714
770
|
ChoiceFieldRoutingModule,
|
|
715
771
|
components.AlertModule,
|
|
716
|
-
core.TranslateModule
|
|
772
|
+
core.TranslateModule,
|
|
717
773
|
],
|
|
718
|
-
exports: []
|
|
774
|
+
exports: [],
|
|
719
775
|
},] }
|
|
720
776
|
];
|
|
721
777
|
|