@ngx-formly/kendo 6.0.0-next.6 → 6.0.0-next.9
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/README.md +11 -9
- package/checkbox/checkbox.module.d.ts +5 -3
- package/checkbox/checkbox.type.d.ts +3 -2
- package/esm2020/checkbox/checkbox.module.mjs +13 -5
- package/esm2020/checkbox/checkbox.type.mjs +19 -39
- package/esm2020/form-field/field.type.mjs +21 -0
- package/esm2020/form-field/form-field.module.mjs +14 -6
- package/esm2020/form-field/form-field.wrapper.mjs +47 -23
- package/esm2020/form-field/public_api.mjs +2 -1
- package/esm2020/input/input.module.mjs +10 -6
- package/esm2020/input/input.type.mjs +18 -29
- package/esm2020/lib/ui-kendo.module.mjs +4 -4
- package/esm2020/radio/radio.module.mjs +13 -5
- package/esm2020/radio/radio.type.mjs +17 -23
- package/esm2020/select/select.module.mjs +4 -4
- package/esm2020/select/select.type.mjs +6 -14
- package/esm2020/textarea/textarea.module.mjs +9 -5
- package/esm2020/textarea/textarea.type.mjs +9 -22
- package/fesm2015/ngx-formly-kendo-checkbox.mjs +32 -44
- package/fesm2015/ngx-formly-kendo-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo-form-field.mjs +78 -29
- package/fesm2015/ngx-formly-kendo-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo-input.mjs +27 -34
- package/fesm2015/ngx-formly-kendo-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo-radio.mjs +30 -28
- package/fesm2015/ngx-formly-kendo-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo-select.mjs +10 -18
- package/fesm2015/ngx-formly-kendo-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo-textarea.mjs +18 -27
- package/fesm2015/ngx-formly-kendo-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-kendo.mjs +4 -4
- package/fesm2015/ngx-formly-kendo.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-checkbox.mjs +32 -44
- package/fesm2020/ngx-formly-kendo-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-form-field.mjs +77 -29
- package/fesm2020/ngx-formly-kendo-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-input.mjs +27 -34
- package/fesm2020/ngx-formly-kendo-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-radio.mjs +30 -28
- package/fesm2020/ngx-formly-kendo-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-select.mjs +10 -18
- package/fesm2020/ngx-formly-kendo-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo-textarea.mjs +18 -27
- package/fesm2020/ngx-formly-kendo-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-kendo.mjs +4 -4
- package/fesm2020/ngx-formly-kendo.mjs.map +1 -1
- package/form-field/field.type.d.ts +8 -0
- package/form-field/form-field.module.d.ts +4 -2
- package/form-field/form-field.wrapper.d.ts +5 -1
- package/form-field/public_api.d.ts +1 -0
- package/input/input.module.d.ts +3 -2
- package/input/input.type.d.ts +3 -2
- package/package.json +5 -3
- package/radio/radio.module.d.ts +6 -4
- package/radio/radio.type.d.ts +3 -7
- package/select/select.type.d.ts +3 -7
- package/textarea/textarea.module.d.ts +5 -4
- package/textarea/textarea.type.d.ts +3 -2
|
@@ -1,54 +1,83 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
3
|
-
import * as
|
|
2
|
+
import { Component, ViewChild, NgModule, Directive, ViewChildren } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
6
|
-
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
|
7
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import * as i2 from '@ngx-formly/core';
|
|
6
|
+
import { FieldWrapper, ɵdefineHiddenProp, FormlyModule, FieldType as FieldType$1 } from '@ngx-formly/core';
|
|
7
|
+
import { ReactiveFormsModule, NgControl } from '@angular/forms';
|
|
8
|
+
import * as i1 from '@progress/kendo-angular-inputs';
|
|
9
|
+
import { FormFieldComponent, FormFieldModule } from '@progress/kendo-angular-inputs';
|
|
10
|
+
import * as i4 from '@progress/kendo-angular-label';
|
|
11
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
8
12
|
|
|
9
13
|
class FormlyWrapperFormField extends FieldWrapper {
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
ɵdefineHiddenProp(this.field, '_formField', this.formfield);
|
|
16
|
+
ɵdefineHiddenProp(this.formfield, 'formControls', undefined);
|
|
17
|
+
this.formfield['showErrorsInitial'] = () => this.showError;
|
|
18
|
+
this.formfield['showHintsInitial'] = () => !this.showError;
|
|
19
|
+
const disabledElement = this.formfield['disabledElement'].bind(this);
|
|
20
|
+
this.formfield['disabledElement'] = () => {
|
|
21
|
+
if (this.formfield.controlElementRefs.length === 0) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return disabledElement();
|
|
25
|
+
};
|
|
26
|
+
}
|
|
10
27
|
}
|
|
11
|
-
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
12
|
-
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
13
|
-
<
|
|
14
|
-
<
|
|
28
|
+
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyWrapperFormField, selector: "formly-wrapper-kendo-form-field", viewQueries: [{ propertyName: "formfield", first: true, predicate: FormFieldComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
30
|
+
<kendo-formfield [orientation]="to.orientation">
|
|
31
|
+
<label *ngIf="to.label && to.hideLabel !== true" [for]="id">
|
|
15
32
|
{{ to.label }}
|
|
16
33
|
<span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true" class="k-required">*</span>
|
|
17
|
-
</
|
|
34
|
+
</label>
|
|
35
|
+
|
|
18
36
|
<ng-container #fieldComponent></ng-container>
|
|
19
|
-
</label>
|
|
20
37
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
<kendo-formhint *ngIf="to.description">{{ to.description }}</kendo-formhint>
|
|
39
|
+
<kendo-formerror *ngIf="showError">
|
|
40
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
41
|
+
</kendo-formerror>
|
|
42
|
+
</kendo-formfield>
|
|
43
|
+
`, isInline: true, components: [{ type: i1.FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors"] }, { type: i1.HintComponent, selector: "kendo-formhint", inputs: ["align"] }, { type: i1.ErrorComponent, selector: "kendo-formerror", inputs: ["align"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.LabelDirective, selector: "label[for]", inputs: ["for"] }] });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
25
45
|
type: Component,
|
|
26
46
|
args: [{
|
|
27
47
|
selector: 'formly-wrapper-kendo-form-field',
|
|
28
48
|
template: `
|
|
29
|
-
<
|
|
30
|
-
<
|
|
49
|
+
<kendo-formfield [orientation]="to.orientation">
|
|
50
|
+
<label *ngIf="to.label && to.hideLabel !== true" [for]="id">
|
|
31
51
|
{{ to.label }}
|
|
32
52
|
<span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true" class="k-required">*</span>
|
|
33
|
-
</
|
|
53
|
+
</label>
|
|
54
|
+
|
|
34
55
|
<ng-container #fieldComponent></ng-container>
|
|
35
|
-
</label>
|
|
36
56
|
|
|
37
|
-
|
|
38
|
-
|
|
57
|
+
<kendo-formhint *ngIf="to.description">{{ to.description }}</kendo-formhint>
|
|
58
|
+
<kendo-formerror *ngIf="showError">
|
|
59
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
60
|
+
</kendo-formerror>
|
|
61
|
+
</kendo-formfield>
|
|
39
62
|
`,
|
|
40
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
63
|
}]
|
|
42
|
-
}]
|
|
64
|
+
}], propDecorators: { formfield: [{
|
|
65
|
+
type: ViewChild,
|
|
66
|
+
args: [FormFieldComponent, { static: true }]
|
|
67
|
+
}] } });
|
|
43
68
|
|
|
44
69
|
class FormlyFormFieldModule {
|
|
45
70
|
}
|
|
46
|
-
FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
47
|
-
FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
48
|
-
ReactiveFormsModule,
|
|
49
|
-
|
|
71
|
+
FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
72
|
+
FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
|
73
|
+
ReactiveFormsModule,
|
|
74
|
+
FormFieldModule,
|
|
75
|
+
LabelModule, i2.FormlyModule] });
|
|
76
|
+
FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, imports: [[
|
|
50
77
|
CommonModule,
|
|
51
78
|
ReactiveFormsModule,
|
|
79
|
+
FormFieldModule,
|
|
80
|
+
LabelModule,
|
|
52
81
|
FormlyModule.forChild({
|
|
53
82
|
wrappers: [
|
|
54
83
|
{
|
|
@@ -58,13 +87,15 @@ FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
58
87
|
],
|
|
59
88
|
}),
|
|
60
89
|
]] });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, decorators: [{
|
|
62
91
|
type: NgModule,
|
|
63
92
|
args: [{
|
|
64
93
|
declarations: [FormlyWrapperFormField],
|
|
65
94
|
imports: [
|
|
66
95
|
CommonModule,
|
|
67
96
|
ReactiveFormsModule,
|
|
97
|
+
FormFieldModule,
|
|
98
|
+
LabelModule,
|
|
68
99
|
FormlyModule.forChild({
|
|
69
100
|
wrappers: [
|
|
70
101
|
{
|
|
@@ -77,9 +108,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
77
108
|
}]
|
|
78
109
|
}] });
|
|
79
110
|
|
|
111
|
+
class FieldType extends FieldType$1 {
|
|
112
|
+
set formControls(formControls) {
|
|
113
|
+
this.formField['control'] = formControls.first;
|
|
114
|
+
}
|
|
115
|
+
get formField() {
|
|
116
|
+
var _a;
|
|
117
|
+
return (_a = this.field) === null || _a === void 0 ? void 0 : _a['_formField'];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
FieldType.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FieldType, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
121
|
+
FieldType.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: FieldType, viewQueries: [{ propertyName: "formControls", predicate: NgControl, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FieldType, decorators: [{
|
|
123
|
+
type: Directive
|
|
124
|
+
}], propDecorators: { formControls: [{
|
|
125
|
+
type: ViewChildren,
|
|
126
|
+
args: [NgControl]
|
|
127
|
+
}] } });
|
|
128
|
+
|
|
80
129
|
/**
|
|
81
130
|
* Generated bundle index. Do not edit.
|
|
82
131
|
*/
|
|
83
132
|
|
|
84
|
-
export { FormlyFormFieldModule };
|
|
133
|
+
export { FieldType, FormlyFormFieldModule };
|
|
85
134
|
//# sourceMappingURL=ngx-formly-kendo-form-field.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-kendo-form-field.mjs","sources":["../../../../src/ui/kendo/form-field/src/form-field.wrapper.ts","../../../../src/ui/kendo/form-field/src/form-field.module.ts","../../../../src/ui/kendo/form-field/src/ngx-formly-kendo-form-field.ts"],"sourcesContent":["import { Component,
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-form-field.mjs","sources":["../../../../src/ui/kendo/form-field/src/form-field.wrapper.ts","../../../../src/ui/kendo/form-field/src/form-field.module.ts","../../../../src/ui/kendo/form-field/src/field.type.ts","../../../../src/ui/kendo/form-field/src/ngx-formly-kendo-form-field.ts"],"sourcesContent":["import { Component, ViewChild, OnInit } from '@angular/core';\nimport { FormFieldComponent } from '@progress/kendo-angular-inputs';\nimport { ɵdefineHiddenProp as defineHiddenProp, FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-wrapper-kendo-form-field',\n template: `\n <kendo-formfield [orientation]=\"to.orientation\">\n <label *ngIf=\"to.label && to.hideLabel !== true\" [for]=\"id\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" aria-hidden=\"true\" class=\"k-required\">*</span>\n </label>\n\n <ng-container #fieldComponent></ng-container>\n\n <kendo-formhint *ngIf=\"to.description\">{{ to.description }}</kendo-formhint>\n <kendo-formerror *ngIf=\"showError\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </kendo-formerror>\n </kendo-formfield>\n `,\n})\nexport class FormlyWrapperFormField extends FieldWrapper implements OnInit {\n @ViewChild(FormFieldComponent, { static: true }) formfield!: FormFieldComponent;\n\n ngOnInit() {\n defineHiddenProp(this.field, '_formField', this.formfield);\n defineHiddenProp(this.formfield, 'formControls', undefined);\n this.formfield['showErrorsInitial'] = () => this.showError;\n this.formfield['showHintsInitial'] = () => !this.showError;\n\n const disabledElement = this.formfield['disabledElement'].bind(this);\n this.formfield['disabledElement'] = () => {\n if (this.formfield.controlElementRefs.length === 0) {\n return false;\n }\n\n return disabledElement();\n };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { FormFieldModule } from '@progress/kendo-angular-inputs';\nimport { LabelModule } from '@progress/kendo-angular-label';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormFieldModule,\n LabelModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n})\nexport class FormlyFormFieldModule {}\n","import { Directive, ViewChildren, QueryList } from '@angular/core';\nimport { FormlyFieldConfig, FieldType as CoreFieldType } from '@ngx-formly/core';\nimport { NgControl } from '@angular/forms';\nimport { FormFieldComponent } from '@progress/kendo-angular-inputs';\n\n@Directive()\nexport abstract class FieldType<F extends FormlyFieldConfig = FormlyFieldConfig> extends CoreFieldType<F> {\n @ViewChildren(NgControl) private set formControls(formControls: QueryList<NgControl>) {\n this.formField['control'] = formControls.first;\n }\n\n private get formField(): FormFieldComponent {\n return (this.field as any)?.['_formField'];\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["defineHiddenProp","i1","CoreFieldType"],"mappings":";;;;;;;;;;;;AAsBM,MAAO,sBAAuB,SAAQ,YAAY,CAAA;IAGtD,QAAQ,GAAA;QACNA,iBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3DA,iBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC5D,QAAA,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC;AAC3D,QAAA,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;AAE3D,QAAA,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrE,QAAA,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,MAAK;YACvC,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE;AAClD,gBAAA,OAAO,KAAK,CAAC;AACd,aAAA;YAED,OAAO,eAAe,EAAE,CAAC;AAC3B,SAAC,CAAC;KACH;;mHAjBU,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;uGAAtB,sBAAsB,EAAA,QAAA,EAAA,iCAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACtB,kBAAkB,EAjBnB,WAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAA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,YAAY,CAAC,KAAK,CAAC;KAChD;AAED,IAAA,IAAY,SAAS,GAAA;;AACnB,QAAA,OAAQ,MAAA,IAAI,CAAC,KAAa,MAAG,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,YAAY,CAAC,CAAC;KAC5C;;sGAPmB,SAAS,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAT,SAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,SAAS,2DACf,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FADH,SAAS,EAAA,UAAA,EAAA,CAAA;kBAD9B,SAAS;8BAE6B,YAAY,EAAA,CAAA;sBAAhD,YAAY;uBAAC,SAAS,CAAA;;;ACPzB;;AAEG;;;;"}
|
|
@@ -1,56 +1,46 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
import * as
|
|
5
|
+
import * as i4 from '@ngx-formly/core';
|
|
6
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
7
|
+
import * as i3 from '@angular/forms';
|
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
9
|
+
import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
10
|
+
import * as i1 from '@progress/kendo-angular-inputs';
|
|
11
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
10
12
|
|
|
11
13
|
class FormlyFieldInput extends FieldType {
|
|
12
14
|
}
|
|
13
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
14
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
15
|
+
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldInput, selector: "formly-field-kendo-input", usesInheritance: true, ngImport: i0, template: `
|
|
15
17
|
<input
|
|
16
18
|
*ngIf="to.type !== 'number'; else numberTmp"
|
|
19
|
+
kendoTextBox
|
|
17
20
|
[type]="to.type || 'text'"
|
|
18
|
-
[formControl]="formControl"
|
|
19
|
-
class="k-textbox"
|
|
20
21
|
[formlyAttributes]="field"
|
|
21
|
-
[
|
|
22
|
+
[formControl]="formControl"
|
|
23
|
+
[formControl]="formControl"
|
|
22
24
|
/>
|
|
23
25
|
<ng-template #numberTmp>
|
|
24
|
-
<
|
|
25
|
-
type="number"
|
|
26
|
-
[formControl]="formControl"
|
|
27
|
-
class="k-textbox"
|
|
28
|
-
[formlyAttributes]="field"
|
|
29
|
-
[class.k-state-invalid]="showError"
|
|
30
|
-
/>
|
|
26
|
+
<kendo-numerictextbox [formlyAttributes]="field" [formControl]="formControl"> </kendo-numerictextbox>
|
|
31
27
|
</ng-template>
|
|
32
|
-
`, isInline: true,
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
28
|
+
`, isInline: true, components: [{ type: i1.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "decimals", "step", "spinners", "rangeValidation", "tabindex", "changeValueOnScroll", "selectOnFocus", "value", "format", "tabIndex", "size", "rounded", "fillMode", "max", "min", "placeholder", "maxlength"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
34
30
|
type: Component,
|
|
35
31
|
args: [{
|
|
36
32
|
selector: 'formly-field-kendo-input',
|
|
37
33
|
template: `
|
|
38
34
|
<input
|
|
39
35
|
*ngIf="to.type !== 'number'; else numberTmp"
|
|
36
|
+
kendoTextBox
|
|
40
37
|
[type]="to.type || 'text'"
|
|
41
|
-
[formControl]="formControl"
|
|
42
|
-
class="k-textbox"
|
|
43
38
|
[formlyAttributes]="field"
|
|
44
|
-
[
|
|
39
|
+
[formControl]="formControl"
|
|
40
|
+
[formControl]="formControl"
|
|
45
41
|
/>
|
|
46
42
|
<ng-template #numberTmp>
|
|
47
|
-
<
|
|
48
|
-
type="number"
|
|
49
|
-
[formControl]="formControl"
|
|
50
|
-
class="k-textbox"
|
|
51
|
-
[formlyAttributes]="field"
|
|
52
|
-
[class.k-state-invalid]="showError"
|
|
53
|
-
/>
|
|
43
|
+
<kendo-numerictextbox [formlyAttributes]="field" [formControl]="formControl"> </kendo-numerictextbox>
|
|
54
44
|
</ng-template>
|
|
55
45
|
`,
|
|
56
46
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -59,14 +49,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
59
49
|
|
|
60
50
|
class FormlyInputModule {
|
|
61
51
|
}
|
|
62
|
-
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
63
|
-
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
52
|
+
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
53
|
+
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
64
54
|
ReactiveFormsModule,
|
|
65
|
-
FormlyFormFieldModule,
|
|
66
|
-
|
|
55
|
+
FormlyFormFieldModule,
|
|
56
|
+
InputsModule, i4.FormlyModule] });
|
|
57
|
+
FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, imports: [[
|
|
67
58
|
CommonModule,
|
|
68
59
|
ReactiveFormsModule,
|
|
69
60
|
FormlyFormFieldModule,
|
|
61
|
+
InputsModule,
|
|
70
62
|
FormlyModule.forChild({
|
|
71
63
|
types: [
|
|
72
64
|
{
|
|
@@ -96,7 +88,7 @@ FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
|
96
88
|
],
|
|
97
89
|
}),
|
|
98
90
|
]] });
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
100
92
|
type: NgModule,
|
|
101
93
|
args: [{
|
|
102
94
|
declarations: [FormlyFieldInput],
|
|
@@ -104,6 +96,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
104
96
|
CommonModule,
|
|
105
97
|
ReactiveFormsModule,
|
|
106
98
|
FormlyFormFieldModule,
|
|
99
|
+
InputsModule,
|
|
107
100
|
FormlyModule.forChild({
|
|
108
101
|
types: [
|
|
109
102
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-kendo-input.mjs","sources":["../../../../src/ui/kendo/input/src/input.type.ts","../../../../src/ui/kendo/input/src/input.module.ts","../../../../src/ui/kendo/input/src/ngx-formly-kendo-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-input.mjs","sources":["../../../../src/ui/kendo/input/src/input.type.ts","../../../../src/ui/kendo/input/src/input.module.ts","../../../../src/ui/kendo/input/src/ngx-formly-kendo-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldTypeConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\n\n@Component({\n selector: 'formly-field-kendo-input',\n template: `\n <input\n *ngIf=\"to.type !== 'number'; else numberTmp\"\n kendoTextBox\n [type]=\"to.type || 'text'\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [formControl]=\"formControl\"\n />\n <ng-template #numberTmp>\n <kendo-numerictextbox [formlyAttributes]=\"field\" [formControl]=\"formControl\"> </kendo-numerictextbox>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';\nimport { InputsModule } from '@progress/kendo-angular-inputs';\nimport { FormlyFieldInput } from './input.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyFormFieldModule,\n InputsModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n ],\n }),\n ],\n})\nexport class FormlyInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqBM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;;6GAAnD,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAfjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;GAYT,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,M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AAE,SAAS;AACf,wBAAA,OAAO,EAAE,OAAO;AAChB,wBAAA,cAAc,EAAE;AACd,4BAAA,eAAe,EAAE;AACf,gCAAA,IAAI,EAAE,QAAQ;AACf,6BAAA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;2FAEU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArC7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,qBAAqB;wBACrB,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,eAAe,EAAE;AACf,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,eAAe,EAAE;AACf,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5CD;;AAEG;;;;"}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
5
|
+
import * as i4 from '@ngx-formly/core';
|
|
6
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i6 from '@ngx-formly/core/select';
|
|
10
10
|
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
11
|
-
import { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
11
|
+
import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
12
|
+
import * as i5 from '@progress/kendo-angular-label';
|
|
13
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
14
|
+
import * as i3 from '@progress/kendo-angular-inputs';
|
|
15
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
12
16
|
|
|
13
17
|
class FormlyFieldRadio extends FieldType {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.defaultOptions = {
|
|
17
|
-
templateOptions: { options: [] },
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
18
|
}
|
|
21
|
-
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
22
|
-
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
19
|
+
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldRadio, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
|
|
23
21
|
<ng-container *ngFor="let option of to.options | formlySelectOptions: field | async; let i = index">
|
|
24
22
|
<input
|
|
25
23
|
type="radio"
|
|
24
|
+
#radioInput
|
|
25
|
+
kendoRadioButton
|
|
26
26
|
[id]="id + '_' + i"
|
|
27
27
|
[name]="field.name || id"
|
|
28
28
|
[value]="option.value"
|
|
29
29
|
[formControl]="formControl"
|
|
30
30
|
[formlyAttributes]="field"
|
|
31
31
|
[attr.disabled]="option.disabled || formControl.disabled ? true : null"
|
|
32
|
-
class="k-radio"
|
|
33
32
|
/>
|
|
34
33
|
<label class="k-radio-label" [for]="id + '_' + i">
|
|
35
34
|
{{ option.label }}
|
|
36
35
|
</label>
|
|
37
36
|
</ng-container>
|
|
38
|
-
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type:
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
37
|
+
`, isInline: true, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i3.RadioButtonDirective, selector: "input[kendoRadioButton]", inputs: ["size"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i5.LabelDirective, selector: "label[for]", inputs: ["for"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i6.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
40
39
|
type: Component,
|
|
41
|
-
args: [{
|
|
42
|
-
selector: 'formly-field-kendo-radio',
|
|
43
|
-
template: `
|
|
40
|
+
args: [{ selector: 'formly-field-kendo-radio', template: `
|
|
44
41
|
<ng-container *ngFor="let option of to.options | formlySelectOptions: field | async; let i = index">
|
|
45
42
|
<input
|
|
46
43
|
type="radio"
|
|
44
|
+
#radioInput
|
|
45
|
+
kendoRadioButton
|
|
47
46
|
[id]="id + '_' + i"
|
|
48
47
|
[name]="field.name || id"
|
|
49
48
|
[value]="option.value"
|
|
50
49
|
[formControl]="formControl"
|
|
51
50
|
[formlyAttributes]="field"
|
|
52
51
|
[attr.disabled]="option.disabled || formControl.disabled ? true : null"
|
|
53
|
-
class="k-radio"
|
|
54
52
|
/>
|
|
55
53
|
<label class="k-radio-label" [for]="id + '_' + i">
|
|
56
54
|
{{ option.label }}
|
|
57
55
|
</label>
|
|
58
56
|
</ng-container>
|
|
59
|
-
`,
|
|
60
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
61
|
-
}]
|
|
57
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"] }]
|
|
62
58
|
}] });
|
|
63
59
|
|
|
64
60
|
class FormlyRadioModule {
|
|
65
61
|
}
|
|
66
|
-
FormlyRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
67
|
-
FormlyRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
62
|
+
FormlyRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
63
|
+
FormlyRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
68
64
|
ReactiveFormsModule,
|
|
65
|
+
LabelModule,
|
|
66
|
+
InputsModule,
|
|
69
67
|
FormlyFormFieldModule,
|
|
70
|
-
FormlySelectModule,
|
|
71
|
-
FormlyRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
68
|
+
FormlySelectModule, i4.FormlyModule] });
|
|
69
|
+
FormlyRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyRadioModule, imports: [[
|
|
72
70
|
CommonModule,
|
|
73
71
|
ReactiveFormsModule,
|
|
72
|
+
LabelModule,
|
|
73
|
+
InputsModule,
|
|
74
74
|
FormlyFormFieldModule,
|
|
75
75
|
FormlySelectModule,
|
|
76
76
|
FormlyModule.forChild({
|
|
@@ -83,13 +83,15 @@ FormlyRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
|
83
83
|
],
|
|
84
84
|
}),
|
|
85
85
|
]] });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyRadioModule, decorators: [{
|
|
87
87
|
type: NgModule,
|
|
88
88
|
args: [{
|
|
89
89
|
declarations: [FormlyFieldRadio],
|
|
90
90
|
imports: [
|
|
91
91
|
CommonModule,
|
|
92
92
|
ReactiveFormsModule,
|
|
93
|
+
LabelModule,
|
|
94
|
+
InputsModule,
|
|
93
95
|
FormlyFormFieldModule,
|
|
94
96
|
FormlySelectModule,
|
|
95
97
|
FormlyModule.forChild({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-kendo-radio.mjs","sources":["../../../../src/ui/kendo/radio/src/radio.type.ts","../../../../src/ui/kendo/radio/src/radio.module.ts","../../../../src/ui/kendo/radio/src/ngx-formly-kendo-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-radio.mjs","sources":["../../../../src/ui/kendo/radio/src/radio.type.ts","../../../../src/ui/kendo/radio/src/radio.module.ts","../../../../src/ui/kendo/radio/src/ngx-formly-kendo-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport { FieldTypeConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\n\n@Component({\n selector: 'formly-field-kendo-radio',\n template: `\n <ng-container *ngFor=\"let option of to.options | formlySelectOptions: field | async; let i = index\">\n <input\n type=\"radio\"\n #radioInput\n kendoRadioButton\n [id]=\"id + '_' + i\"\n [name]=\"field.name || id\"\n [value]=\"option.value\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [attr.disabled]=\"option.disabled || formControl.disabled ? true : null\"\n />\n <label class=\"k-radio-label\" [for]=\"id + '_' + i\">\n {{ option.label }}\n </label>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./radio.type.scss'],\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';\nimport { LabelModule } from '@progress/kendo-angular-label';\nimport { InputsModule } from '@progress/kendo-angular-inputs';\nimport { FormlyFieldRadio } from './radio.type';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n LabelModule,\n InputsModule,\n FormlyFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AA4BM,MAAO,gBAAiB,SAAQ,SAA0B,CAAA;;6GAAnD,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAtBjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;GAiB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AAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,WAAW;wBACX,YAAY;wBACZ,qBAAqB;wBACrB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -5,25 +5,18 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i2 from '@angular/forms';
|
|
6
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
7
7
|
import * as i3 from '@ngx-formly/core';
|
|
8
|
-
import {
|
|
8
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
9
9
|
import * as i1 from '@progress/kendo-angular-dropdowns';
|
|
10
10
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
11
11
|
import * as i5 from '@ngx-formly/core/select';
|
|
12
12
|
import { FormlySelectModule as FormlySelectModule$1 } from '@ngx-formly/core/select';
|
|
13
|
-
import { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
13
|
+
import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
14
14
|
|
|
15
15
|
class FormlyFieldSelect extends FieldType {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.defaultOptions = {
|
|
19
|
-
templateOptions: { options: [] },
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
16
|
}
|
|
23
|
-
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
24
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
17
|
+
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldSelect, selector: "formly-field-kendo-select", usesInheritance: true, ngImport: i0, template: `
|
|
25
19
|
<kendo-dropdownlist
|
|
26
|
-
[class.k-state-invalid]="showError"
|
|
27
20
|
[formControl]="formControl"
|
|
28
21
|
[formlyAttributes]="field"
|
|
29
22
|
[data]="to.options | formlySelectOptions: field | async"
|
|
@@ -33,14 +26,13 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
33
26
|
(valueChange)="to.change && to.change(field, $event)"
|
|
34
27
|
>
|
|
35
28
|
</kendo-dropdownlist>
|
|
36
|
-
`, isInline: true, components: [{ type: i1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
29
|
+
`, isInline: true, components: [{ type: i1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["listHeight", "disabled", "readonly", "filterable", "ignoreCase", "delay", "tabindex", "id", "data", "value", "popupSettings", "itemDisabled", "virtual", "valuePrimitive", "tabIndex", "size", "rounded", "fillMode", "iconClass", "loading", "textField", "valueField", "defaultItem"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], pipes: { "async": i4.AsyncPipe, "formlySelectOptions": i5.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
38
31
|
type: Component,
|
|
39
32
|
args: [{
|
|
40
33
|
selector: 'formly-field-kendo-select',
|
|
41
34
|
template: `
|
|
42
35
|
<kendo-dropdownlist
|
|
43
|
-
[class.k-state-invalid]="showError"
|
|
44
36
|
[formControl]="formControl"
|
|
45
37
|
[formlyAttributes]="field"
|
|
46
38
|
[data]="to.options | formlySelectOptions: field | async"
|
|
@@ -57,13 +49,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
57
49
|
|
|
58
50
|
class FormlySelectModule {
|
|
59
51
|
}
|
|
60
|
-
FormlySelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
61
|
-
FormlySelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
52
|
+
FormlySelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
53
|
+
FormlySelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
62
54
|
ReactiveFormsModule,
|
|
63
55
|
DropDownsModule,
|
|
64
56
|
FormlyFormFieldModule,
|
|
65
57
|
FormlySelectModule$1, i3.FormlyModule] });
|
|
66
|
-
FormlySelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
58
|
+
FormlySelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySelectModule, imports: [[
|
|
67
59
|
CommonModule,
|
|
68
60
|
ReactiveFormsModule,
|
|
69
61
|
DropDownsModule,
|
|
@@ -80,7 +72,7 @@ FormlySelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", vers
|
|
|
80
72
|
],
|
|
81
73
|
}),
|
|
82
74
|
]] });
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySelectModule, decorators: [{
|
|
84
76
|
type: NgModule,
|
|
85
77
|
args: [{
|
|
86
78
|
declarations: [FormlyFieldSelect],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-kendo-select.mjs","sources":["../../../../src/ui/kendo/select/src/select.type.ts","../../../../src/ui/kendo/select/src/select.module.ts","../../../../src/ui/kendo/select/src/ngx-formly-kendo-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport {
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-select.mjs","sources":["../../../../src/ui/kendo/select/src/select.type.ts","../../../../src/ui/kendo/select/src/select.module.ts","../../../../src/ui/kendo/select/src/ngx-formly-kendo-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldTypeConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\n\n@Component({\n selector: 'formly-field-kendo-select',\n template: `\n <kendo-dropdownlist\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [data]=\"to.options | formlySelectOptions: field | async\"\n [textField]=\"'label'\"\n [valueField]=\"'value'\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"to.change && to.change(field, $event)\"\n >\n </kendo-dropdownlist>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { DropDownsModule } from '@progress/kendo-angular-dropdowns';\nimport { FormlySelectModule as FormlyCoreSelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DropDownsModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\n ],\n})\nexport class FormlySelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyCoreSelectModule","i1"],"mappings":";;;;;;;;;;;;;;AAoBM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;;8GAApD,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EAdlB,QAAA,EAAA,2BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;GAWT,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,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