@indigina/kendo 1.2.0 → 1.2.2
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/lib/angular/forms/widgets/field/field-input/field-input.component.mjs +5 -5
- package/esm2020/lib/angular/forms/widgets/field/field-input/field-input.module.mjs +21 -0
- package/esm2020/lib/angular/forms/widgets/field/field-input/number-input.component.mjs +5 -5
- package/esm2020/lib/angular/forms/widgets/field/field.component.mjs +20 -4
- package/esm2020/lib/angular/indigina.module.mjs +12 -15
- package/esm2020/lib/angular/widgets/side-menu/menu-item-group/menu-item-group.component.mjs +1 -1
- package/esm2020/lib/angular/widgets/side-menu/side-menu.component.mjs +1 -1
- package/esm2020/lib/angular/widgets/tree-view/tree-view.component.mjs +1 -1
- package/esm2020/lib/widgets/entity-edit/field-dropdown/field-dropdown.component.mjs +3 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/indigina-kendo.mjs +52 -24
- package/fesm2015/indigina-kendo.mjs.map +1 -1
- package/fesm2020/indigina-kendo.mjs +52 -24
- package/fesm2020/indigina-kendo.mjs.map +1 -1
- package/lib/angular/forms/widgets/field/field-input/field-input.module.d.ts +11 -0
- package/lib/angular/forms/widgets/field/field.component.d.ts +4 -3
- package/lib/angular/indigina.module.d.ts +12 -13
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -22,9 +22,9 @@ import { CommonModule } from '@angular/common';
|
|
|
22
22
|
import * as i2$1 from '@angular/common/http';
|
|
23
23
|
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
24
24
|
import * as i0 from '@angular/core';
|
|
25
|
-
import { EventEmitter, Directive, Input, Output, HostListener, Component, Injectable, ViewChildren, APP_INITIALIZER,
|
|
25
|
+
import { EventEmitter, Directive, Input, Output, HostListener, Component, NgModule, Injectable, ViewChildren, APP_INITIALIZER, ViewChild } from '@angular/core';
|
|
26
26
|
import * as i1$4 from '@angular/forms';
|
|
27
|
-
import { UntypedFormControl, Validators, ControlContainer, FormGroupDirective, ReactiveFormsModule,
|
|
27
|
+
import { UntypedFormControl, Validators, ControlContainer, FormGroupDirective, ReactiveFormsModule, FormsModule, UntypedFormGroup } from '@angular/forms';
|
|
28
28
|
import { BrowserModule } from '@angular/platform-browser';
|
|
29
29
|
import * as i1$5 from '@angular/router';
|
|
30
30
|
import { NavigationEnd, RouterModule } from '@angular/router';
|
|
@@ -84,17 +84,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
84
84
|
}] } });
|
|
85
85
|
|
|
86
86
|
let id = 0;
|
|
87
|
+
const disabledKey = 'disabled';
|
|
87
88
|
class FieldComponent {
|
|
88
89
|
constructor(parent, eref, defaultValue) {
|
|
89
90
|
this.parent = parent;
|
|
90
91
|
this.eref = eref;
|
|
91
92
|
this.defaultValue = defaultValue;
|
|
92
93
|
this.disabled = false;
|
|
93
|
-
this.disabledKey = 'disabled';
|
|
94
94
|
}
|
|
95
95
|
ngOnInit() {
|
|
96
96
|
this.setUp();
|
|
97
97
|
}
|
|
98
|
+
ngOnChanges() {
|
|
99
|
+
this.updateState();
|
|
100
|
+
}
|
|
98
101
|
setUp() {
|
|
99
102
|
this.id = '_' + this.fieldName + ++id;
|
|
100
103
|
const validators = [];
|
|
@@ -115,9 +118,10 @@ class FieldComponent {
|
|
|
115
118
|
else {
|
|
116
119
|
this.parent.form.addControl(this.fieldName, new UntypedFormControl(this.defaultValue, validators));
|
|
117
120
|
}
|
|
121
|
+
this.updateState();
|
|
118
122
|
}
|
|
119
123
|
setAttribute(name, value) {
|
|
120
|
-
if (name ===
|
|
124
|
+
if (name === disabledKey) {
|
|
121
125
|
this.disabled = true;
|
|
122
126
|
return;
|
|
123
127
|
}
|
|
@@ -125,9 +129,21 @@ class FieldComponent {
|
|
|
125
129
|
return Validators.required;
|
|
126
130
|
}
|
|
127
131
|
}
|
|
132
|
+
updateState() {
|
|
133
|
+
const control = this.parent.form.get(this.fieldName);
|
|
134
|
+
if (!control) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (this.disabled) {
|
|
138
|
+
control.disable();
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
control.enable();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
128
144
|
}
|
|
129
145
|
FieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
130
|
-
FieldComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: FieldComponent, inputs: { labelKey: "labelKey", fieldName: "fieldName", disabled: "disabled" }, ngImport: i0 });
|
|
146
|
+
FieldComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: FieldComponent, inputs: { labelKey: "labelKey", fieldName: "fieldName", disabled: "disabled" }, usesOnChanges: true, ngImport: i0 });
|
|
131
147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldComponent, decorators: [{
|
|
132
148
|
type: Directive
|
|
133
149
|
}], ctorParameters: function () { return [{ type: i1$4.FormGroupDirective }, { type: i0.ElementRef }, { type: undefined }]; }, propDecorators: { labelKey: [{
|
|
@@ -156,14 +172,14 @@ class FieldInputComponent extends FieldComponent {
|
|
|
156
172
|
}
|
|
157
173
|
}
|
|
158
174
|
FieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldInputComponent, deps: [{ token: i1$4.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
-
FieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FieldInputComponent, selector: "field-input", inputs: { labelKey: "labelKey", fieldName: "fieldName" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n
|
|
175
|
+
FieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FieldInputComponent, selector: "field-input", inputs: { labelKey: "labelKey", fieldName: "fieldName" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n <div\n class=\"bg-danger\"\n *ngIf=\"\n parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched\n \"\n >\n <span *ngIf=\"parent.form.get(fieldName).errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['email']\">{{\n \"ValidEmail\" | translate\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['serverErrorMsg']\">{{\n parent.form.get(fieldName).errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], viewProviders: [
|
|
160
176
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
161
177
|
] });
|
|
162
178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldInputComponent, decorators: [{
|
|
163
179
|
type: Component,
|
|
164
180
|
args: [{ selector: 'field-input', viewProviders: [
|
|
165
181
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
166
|
-
], template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n
|
|
182
|
+
], template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n <div\n class=\"bg-danger\"\n *ngIf=\"\n parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched\n \"\n >\n <span *ngIf=\"parent.form.get(fieldName).errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['email']\">{{\n \"ValidEmail\" | translate\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['serverErrorMsg']\">{{\n parent.form.get(fieldName).errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n" }]
|
|
167
183
|
}], ctorParameters: function () { return [{ type: i1$4.FormGroupDirective }, { type: i0.ElementRef }]; }, propDecorators: { labelKey: [{
|
|
168
184
|
type: Input
|
|
169
185
|
}], fieldName: [{
|
|
@@ -231,18 +247,32 @@ class NumberInputComponent extends FieldInputComponent {
|
|
|
231
247
|
}
|
|
232
248
|
}
|
|
233
249
|
NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NumberInputComponent, deps: [{ token: i1$4.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
234
|
-
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: NumberInputComponent, selector: "number-input", inputs: { isPositive: "isPositive" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n
|
|
250
|
+
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: NumberInputComponent, selector: "number-input", inputs: { isPositive: "isPositive" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n <div\n class=\"bg-danger\"\n *ngIf=\"\n parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched\n \"\n >\n <span *ngIf=\"parent.form.get(fieldName).errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['email']\">{{\n \"ValidEmail\" | translate\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['serverErrorMsg']\">{{\n parent.form.get(fieldName).errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], viewProviders: [
|
|
235
251
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
236
252
|
] });
|
|
237
253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
238
254
|
type: Component,
|
|
239
255
|
args: [{ selector: 'number-input', viewProviders: [
|
|
240
256
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
241
|
-
], template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n
|
|
257
|
+
], template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n <div\n class=\"bg-danger\"\n *ngIf=\"\n parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched\n \"\n >\n <span *ngIf=\"parent.form.get(fieldName).errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['email']\">{{\n \"ValidEmail\" | translate\n }}</span>\n <span *ngIf=\"parent.form.get(fieldName).errors['serverErrorMsg']\">{{\n parent.form.get(fieldName).errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n" }]
|
|
242
258
|
}], ctorParameters: function () { return [{ type: i1$4.FormGroupDirective }, { type: i0.ElementRef }]; }, propDecorators: { isPositive: [{
|
|
243
259
|
type: Input
|
|
244
260
|
}] } });
|
|
245
261
|
|
|
262
|
+
class FieldInputModule {
|
|
263
|
+
}
|
|
264
|
+
FieldInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
265
|
+
FieldInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: FieldInputModule, declarations: [FieldInputComponent, NumberInputComponent], imports: [ReactiveFormsModule, FormsModule, TranslateModule, CommonModule], exports: [FieldInputComponent, NumberInputComponent] });
|
|
266
|
+
FieldInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldInputModule, imports: [ReactiveFormsModule, FormsModule, TranslateModule, CommonModule] });
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldInputModule, decorators: [{
|
|
268
|
+
type: NgModule,
|
|
269
|
+
args: [{
|
|
270
|
+
declarations: [FieldInputComponent, NumberInputComponent],
|
|
271
|
+
exports: [FieldInputComponent, NumberInputComponent],
|
|
272
|
+
imports: [ReactiveFormsModule, FormsModule, TranslateModule, CommonModule],
|
|
273
|
+
}]
|
|
274
|
+
}] });
|
|
275
|
+
|
|
246
276
|
class GeneralErrorsComponent {
|
|
247
277
|
constructor() {
|
|
248
278
|
this.errors = [];
|
|
@@ -866,23 +896,21 @@ IndiginaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
866
896
|
TreeViewComponent,
|
|
867
897
|
TreeViewNodeComponent,
|
|
868
898
|
DebounceDirective,
|
|
869
|
-
GeneralErrorsComponent,
|
|
870
|
-
FieldInputComponent,
|
|
871
|
-
NumberInputComponent], imports: [BrowserModule,
|
|
899
|
+
GeneralErrorsComponent], imports: [BrowserModule,
|
|
872
900
|
HttpClientModule, i1$1.TranslateModule, LoadingBarHttpClientModule,
|
|
873
901
|
CommonModule,
|
|
874
902
|
RouterModule,
|
|
875
|
-
ReactiveFormsModule, i1$3.ToastrModule, BrowserAnimationsModule
|
|
903
|
+
ReactiveFormsModule, i1$3.ToastrModule, BrowserAnimationsModule,
|
|
904
|
+
FieldInputModule], exports: [SideMenuComponent,
|
|
876
905
|
TreeViewComponent,
|
|
877
906
|
DebounceDirective,
|
|
878
907
|
GeneralErrorsComponent,
|
|
879
|
-
FieldInputComponent,
|
|
880
908
|
TranslateModule,
|
|
881
909
|
ClipboardModule,
|
|
882
910
|
LoadingBarHttpClientModule,
|
|
883
911
|
ToastrModule,
|
|
884
912
|
BrowserAnimationsModule,
|
|
885
|
-
|
|
913
|
+
FieldInputModule] });
|
|
886
914
|
IndiginaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IndiginaModule, providers: [
|
|
887
915
|
{
|
|
888
916
|
provide: APP_INITIALIZER,
|
|
@@ -914,11 +942,13 @@ IndiginaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
|
|
|
914
942
|
RouterModule,
|
|
915
943
|
ReactiveFormsModule,
|
|
916
944
|
ToastrModule.forRoot(),
|
|
917
|
-
BrowserAnimationsModule,
|
|
945
|
+
BrowserAnimationsModule,
|
|
946
|
+
FieldInputModule, TranslateModule,
|
|
918
947
|
ClipboardModule,
|
|
919
948
|
LoadingBarHttpClientModule,
|
|
920
949
|
ToastrModule,
|
|
921
|
-
BrowserAnimationsModule
|
|
950
|
+
BrowserAnimationsModule,
|
|
951
|
+
FieldInputModule] });
|
|
922
952
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IndiginaModule, decorators: [{
|
|
923
953
|
type: NgModule,
|
|
924
954
|
args: [{
|
|
@@ -929,8 +959,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
929
959
|
TreeViewNodeComponent,
|
|
930
960
|
DebounceDirective,
|
|
931
961
|
GeneralErrorsComponent,
|
|
932
|
-
FieldInputComponent,
|
|
933
|
-
NumberInputComponent,
|
|
934
962
|
],
|
|
935
963
|
imports: [
|
|
936
964
|
BrowserModule,
|
|
@@ -948,6 +976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
948
976
|
ReactiveFormsModule,
|
|
949
977
|
ToastrModule.forRoot(),
|
|
950
978
|
BrowserAnimationsModule,
|
|
979
|
+
FieldInputModule,
|
|
951
980
|
],
|
|
952
981
|
providers: [
|
|
953
982
|
{
|
|
@@ -972,13 +1001,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
|
|
|
972
1001
|
TreeViewComponent,
|
|
973
1002
|
DebounceDirective,
|
|
974
1003
|
GeneralErrorsComponent,
|
|
975
|
-
FieldInputComponent,
|
|
976
1004
|
TranslateModule,
|
|
977
1005
|
ClipboardModule,
|
|
978
1006
|
LoadingBarHttpClientModule,
|
|
979
1007
|
ToastrModule,
|
|
980
1008
|
BrowserAnimationsModule,
|
|
981
|
-
|
|
1009
|
+
FieldInputModule,
|
|
982
1010
|
],
|
|
983
1011
|
}]
|
|
984
1012
|
}] });
|
|
@@ -2393,14 +2421,14 @@ class FieldDropdownComponent extends FieldComponent {
|
|
|
2393
2421
|
}
|
|
2394
2422
|
}
|
|
2395
2423
|
FieldDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldDropdownComponent, deps: [{ token: i1$4.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2396
|
-
FieldDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FieldDropdownComponent, selector: "field-dropdown", inputs: { service: "service", rebind: "rebind", filter: "filter" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\" *ngIf=\"control\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n [valuePrimitive]=\"true\"\n
|
|
2424
|
+
FieldDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FieldDropdownComponent, selector: "field-dropdown", inputs: { service: "service", rebind: "rebind", filter: "filter" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\" *ngIf=\"control\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n [valuePrimitive]=\"true\"\n >\n </kendo-dropdownlist>\n\n <div class=\"bg-danger\" *ngIf=\"control.invalid && control.touched\">\n <span *ngIf=\"control.errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"control.errors['serverErrorMsg']\">{{\n control.errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }], viewProviders: [
|
|
2397
2425
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
2398
2426
|
] });
|
|
2399
2427
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FieldDropdownComponent, decorators: [{
|
|
2400
2428
|
type: Component,
|
|
2401
2429
|
args: [{ selector: 'field-dropdown', viewProviders: [
|
|
2402
2430
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
2403
|
-
], template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\" *ngIf=\"control\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n [valuePrimitive]=\"true\"\n
|
|
2431
|
+
], template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\" *ngIf=\"control\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n [valuePrimitive]=\"true\"\n >\n </kendo-dropdownlist>\n\n <div class=\"bg-danger\" *ngIf=\"control.invalid && control.touched\">\n <span *ngIf=\"control.errors['required']\">{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n <span *ngIf=\"control.errors['serverErrorMsg']\">{{\n control.errors[\"serverErrorMsg\"]\n }}</span>\n </div>\n </div>\n</div>\n" }]
|
|
2404
2432
|
}], ctorParameters: function () { return [{ type: i1$4.FormGroupDirective }, { type: i0.ElementRef }]; }, propDecorators: { service: [{
|
|
2405
2433
|
type: Input
|
|
2406
2434
|
}], rebind: [{
|
|
@@ -3190,5 +3218,5 @@ const momentTimezone = momentModule;
|
|
|
3190
3218
|
* Generated bundle index. Do not edit.
|
|
3191
3219
|
*/
|
|
3192
3220
|
|
|
3193
|
-
export { AccountMenuComponent, AccountService, ActivityFilterComponent, ActivityFilterService, AppSettings, AppToastrService, AuthProvider, AuthProviderResolver, AzureLoginCallbackComponent, BaseAccountService, ConfirmDialogComponent, ContentTypesFormat, CurrentTimezoneComponent, DebounceDirective, EntityEditButtonsBarComponent, EntityEditComponent, EntityEditFormComponent, EntityListComponent, EntityService, EventNames, ExcelExportButtonComponent, FieldComponent, FieldDropdownComponent, FieldDropdownlistComponent, FieldInputComponent, FieldMultiSelectComponent, FieldTypes, FilterTargets, FooterBarComponent, FormGroupWithErrors, GeneralErrorsComponent, HttpCodes, HttpMethods, HttpService, IndiginaConfiguration, IndiginaModule, KendoModule, LanguageSelectorComponent, LiveUpdatesControlComponent, LocaleSettingsService, MSALInstanceFactory, MemberTypes, ModalWindowComponent, MulticheckFilterComponent, NumberInputComponent, Operators, PermissionTypes, PermissionsService, PrettifierFactory, ReEntrySubscription, RequirePermissionDirective, SettingsService, SideMenuComponent, SignalRService, TopMenuComponent, TreeViewComponent, UserListAdminComponent, buildActivityEndpoints, buildEntityEndpoints, endpoints, momentTimezone, urlDeserialize, urlSerialize };
|
|
3221
|
+
export { AccountMenuComponent, AccountService, ActivityFilterComponent, ActivityFilterService, AppSettings, AppToastrService, AuthProvider, AuthProviderResolver, AzureLoginCallbackComponent, BaseAccountService, ConfirmDialogComponent, ContentTypesFormat, CurrentTimezoneComponent, DebounceDirective, EntityEditButtonsBarComponent, EntityEditComponent, EntityEditFormComponent, EntityListComponent, EntityService, EventNames, ExcelExportButtonComponent, FieldComponent, FieldDropdownComponent, FieldDropdownlistComponent, FieldInputComponent, FieldInputModule, FieldMultiSelectComponent, FieldTypes, FilterTargets, FooterBarComponent, FormGroupWithErrors, GeneralErrorsComponent, HttpCodes, HttpMethods, HttpService, IndiginaConfiguration, IndiginaModule, KendoModule, LanguageSelectorComponent, LiveUpdatesControlComponent, LocaleSettingsService, MSALInstanceFactory, MemberTypes, ModalWindowComponent, MulticheckFilterComponent, NumberInputComponent, Operators, PermissionTypes, PermissionsService, PrettifierFactory, ReEntrySubscription, RequirePermissionDirective, SettingsService, SideMenuComponent, SignalRService, TopMenuComponent, TreeViewComponent, UserListAdminComponent, buildActivityEndpoints, buildEntityEndpoints, endpoints, momentTimezone, urlDeserialize, urlSerialize };
|
|
3194
3222
|
//# sourceMappingURL=indigina-kendo.mjs.map
|