@ngx-formly/kendo 10.0.0 → 11.0.0
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 +88 -177
- package/fesm2022/ngx-formly-kendo-checkbox.mjs +189 -82
- package/fesm2022/ngx-formly-kendo-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo-form-field.mjs +244 -104
- package/fesm2022/ngx-formly-kendo-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo-input.mjs +210 -86
- package/fesm2022/ngx-formly-kendo-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo-radio.mjs +204 -77
- package/fesm2022/ngx-formly-kendo-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo-select.mjs +272 -78
- package/fesm2022/ngx-formly-kendo-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo-textarea.mjs +156 -66
- package/fesm2022/ngx-formly-kendo-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-kendo.mjs +79 -56
- package/fesm2022/ngx-formly-kendo.mjs.map +1 -1
- package/package.json +5 -5
- package/types/ngx-formly-kendo-checkbox.d.ts +26 -32
- package/types/ngx-formly-kendo-form-field.d.ts +28 -34
- package/types/ngx-formly-kendo-input.d.ts +21 -27
- package/types/ngx-formly-kendo-radio.d.ts +24 -29
- package/types/ngx-formly-kendo-select.d.ts +29 -34
- package/types/ngx-formly-kendo-textarea.d.ts +21 -27
- package/types/ngx-formly-kendo.d.ts +14 -18
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { ChangeDetectionStrategy, Component, NgModule } from
|
|
3
|
-
import { FieldType, FormlyFormFieldModule } from
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import { ReactiveFormsModule } from
|
|
6
|
-
import * as i2 from
|
|
7
|
-
import { InputsModule } from
|
|
8
|
-
import * as i3 from
|
|
9
|
-
import { FormlyModule } from
|
|
10
|
-
import { CommonModule } from
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule } from "@angular/core";
|
|
3
|
+
import { FieldType, FormlyFormFieldModule } from "@ngx-formly/kendo/form-field";
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import { ReactiveFormsModule } from "@angular/forms";
|
|
6
|
+
import * as i2 from "@progress/kendo-angular-inputs";
|
|
7
|
+
import { InputsModule } from "@progress/kendo-angular-inputs";
|
|
8
|
+
import * as i3 from "@ngx-formly/core";
|
|
9
|
+
import { FormlyModule } from "@ngx-formly/core";
|
|
10
|
+
import { CommonModule } from "@angular/common";
|
|
11
|
+
var FormlyFieldInput = class FormlyFieldInput extends FieldType {
|
|
12
|
+
static {
|
|
13
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
|
+
minVersion: "12.0.0",
|
|
15
|
+
version: "22.2.2",
|
|
16
|
+
ngImport: i0,
|
|
17
|
+
type: FormlyFieldInput,
|
|
18
|
+
deps: null,
|
|
19
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
24
|
+
minVersion: "17.0.0",
|
|
25
|
+
version: "22.2.2",
|
|
26
|
+
type: FormlyFieldInput,
|
|
27
|
+
isStandalone: false,
|
|
28
|
+
selector: "formly-field-kendo-input",
|
|
29
|
+
usesInheritance: true,
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
template: `
|
|
15
32
|
@if (props.type !== 'number') {
|
|
16
33
|
<input kendoTextBox [type]="props.type || 'text'" [formlyAttributes]="field" [formControl]="formControl" />
|
|
17
34
|
} @else {
|
|
@@ -23,13 +40,95 @@ class FormlyFieldInput extends FieldType {
|
|
|
23
40
|
>
|
|
24
41
|
</kendo-numerictextbox>
|
|
25
42
|
}
|
|
26
|
-
`,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
43
|
+
`,
|
|
44
|
+
isInline: true,
|
|
45
|
+
dependencies: [
|
|
46
|
+
{
|
|
47
|
+
kind: "directive",
|
|
48
|
+
type: i1.DefaultValueAccessor,
|
|
49
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
kind: "directive",
|
|
53
|
+
type: i1.NgControlStatus,
|
|
54
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
kind: "directive",
|
|
58
|
+
type: i1.FormControlDirective,
|
|
59
|
+
selector: "[formControl]",
|
|
60
|
+
inputs: [
|
|
61
|
+
"formControl",
|
|
62
|
+
"disabled",
|
|
63
|
+
"ngModel"
|
|
64
|
+
],
|
|
65
|
+
outputs: ["ngModelChange"],
|
|
66
|
+
exportAs: ["ngForm"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: "directive",
|
|
70
|
+
type: i2.TextBoxDirective,
|
|
71
|
+
selector: "input[kendoTextBox]",
|
|
72
|
+
inputs: ["value"]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
kind: "component",
|
|
76
|
+
type: i2.NumericTextBoxComponent,
|
|
77
|
+
selector: "kendo-numerictextbox",
|
|
78
|
+
inputs: [
|
|
79
|
+
"focusableId",
|
|
80
|
+
"disabled",
|
|
81
|
+
"readonly",
|
|
82
|
+
"title",
|
|
83
|
+
"autoCorrect",
|
|
84
|
+
"format",
|
|
85
|
+
"max",
|
|
86
|
+
"min",
|
|
87
|
+
"decimals",
|
|
88
|
+
"placeholder",
|
|
89
|
+
"step",
|
|
90
|
+
"spinners",
|
|
91
|
+
"rangeValidation",
|
|
92
|
+
"tabindex",
|
|
93
|
+
"tabIndex",
|
|
94
|
+
"changeValueOnScroll",
|
|
95
|
+
"selectOnFocus",
|
|
96
|
+
"value",
|
|
97
|
+
"maxlength",
|
|
98
|
+
"size",
|
|
99
|
+
"rounded",
|
|
100
|
+
"fillMode",
|
|
101
|
+
"inputAttributes"
|
|
102
|
+
],
|
|
103
|
+
outputs: [
|
|
104
|
+
"valueChange",
|
|
105
|
+
"focus",
|
|
106
|
+
"blur",
|
|
107
|
+
"inputFocus",
|
|
108
|
+
"inputBlur"
|
|
109
|
+
],
|
|
110
|
+
exportAs: ["kendoNumericTextBox"]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
kind: "directive",
|
|
114
|
+
type: i3.LegacyFormlyAttributes,
|
|
115
|
+
selector: "[formlyAttributes]"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
123
|
+
minVersion: "12.0.0",
|
|
124
|
+
version: "22.2.2",
|
|
125
|
+
ngImport: i0,
|
|
126
|
+
type: FormlyFieldInput,
|
|
127
|
+
decorators: [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{
|
|
130
|
+
selector: "formly-field-kendo-input",
|
|
131
|
+
template: `
|
|
33
132
|
@if (props.type !== 'number') {
|
|
34
133
|
<input kendoTextBox [type]="props.type || 'text'" [formlyAttributes]="field" [formControl]="formControl" />
|
|
35
134
|
} @else {
|
|
@@ -42,71 +141,96 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
42
141
|
</kendo-numerictextbox>
|
|
43
142
|
}
|
|
44
143
|
`,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
144
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
145
|
+
standalone: false
|
|
146
|
+
}]
|
|
147
|
+
}]
|
|
148
|
+
});
|
|
50
149
|
function withFormlyFieldInput() {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
props: {
|
|
73
|
-
type: 'number',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
};
|
|
150
|
+
return { types: [
|
|
151
|
+
{
|
|
152
|
+
name: "input",
|
|
153
|
+
component: FormlyFieldInput,
|
|
154
|
+
wrappers: ["form-field"]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "string",
|
|
158
|
+
extends: "input"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "number",
|
|
162
|
+
extends: "input",
|
|
163
|
+
defaultOptions: { props: { type: "number" } }
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "integer",
|
|
167
|
+
extends: "input",
|
|
168
|
+
defaultOptions: { props: { type: "number" } }
|
|
169
|
+
}
|
|
170
|
+
] };
|
|
79
171
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
172
|
+
var FormlyInputModule = class FormlyInputModule {
|
|
173
|
+
static {
|
|
174
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
175
|
+
minVersion: "12.0.0",
|
|
176
|
+
version: "22.2.2",
|
|
177
|
+
ngImport: i0,
|
|
178
|
+
type: FormlyInputModule,
|
|
179
|
+
deps: [],
|
|
180
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
static {
|
|
184
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
185
|
+
minVersion: "14.0.0",
|
|
186
|
+
version: "22.2.2",
|
|
187
|
+
ngImport: i0,
|
|
188
|
+
type: FormlyInputModule,
|
|
189
|
+
declarations: [FormlyFieldInput],
|
|
190
|
+
imports: [
|
|
191
|
+
CommonModule,
|
|
192
|
+
ReactiveFormsModule,
|
|
193
|
+
FormlyFormFieldModule,
|
|
194
|
+
InputsModule,
|
|
195
|
+
i3.FormlyModule
|
|
196
|
+
]
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
static {
|
|
200
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
201
|
+
minVersion: "12.0.0",
|
|
202
|
+
version: "22.2.2",
|
|
203
|
+
ngImport: i0,
|
|
204
|
+
type: FormlyInputModule,
|
|
205
|
+
imports: [
|
|
206
|
+
CommonModule,
|
|
207
|
+
ReactiveFormsModule,
|
|
208
|
+
FormlyFormFieldModule,
|
|
209
|
+
InputsModule,
|
|
210
|
+
FormlyModule.forChild(withFormlyFieldInput())
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
216
|
+
minVersion: "12.0.0",
|
|
217
|
+
version: "22.2.2",
|
|
218
|
+
ngImport: i0,
|
|
219
|
+
type: FormlyInputModule,
|
|
220
|
+
decorators: [{
|
|
221
|
+
type: NgModule,
|
|
222
|
+
args: [{
|
|
223
|
+
declarations: [FormlyFieldInput],
|
|
224
|
+
imports: [
|
|
225
|
+
CommonModule,
|
|
226
|
+
ReactiveFormsModule,
|
|
227
|
+
FormlyFormFieldModule,
|
|
228
|
+
InputsModule,
|
|
229
|
+
FormlyModule.forChild(withFormlyFieldInput())
|
|
230
|
+
]
|
|
231
|
+
}]
|
|
232
|
+
}]
|
|
233
|
+
});
|
|
111
234
|
export { FormlyFieldInput, FormlyInputModule, withFormlyFieldInput };
|
|
112
|
-
|
|
235
|
+
|
|
236
|
+
//# sourceMappingURL=ngx-formly-kendo-input.mjs.map
|
|
@@ -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.config.ts","../../../../src/ui/kendo/input/src/input.module.ts"
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-input.mjs","names":[],"sources":["../../../../src/ui/kendo/input/src/input.type.ts","../../../../src/ui/kendo/input/src/input.config.ts","../../../../src/ui/kendo/input/src/input.module.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/kendo/form-field';\n\ninterface InputProps extends FormlyFieldProps {}\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-kendo-input',\n template: `\n @if (props.type !== 'number') {\n <input kendoTextBox [type]=\"props.type || 'text'\" [formlyAttributes]=\"field\" [formControl]=\"formControl\" />\n } @else {\n <kendo-numerictextbox\n [focusableId]=\"id\"\n [id]=\"id + '-container'\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n >\n </kendo-numerictextbox>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInput } from './input.type';\n\nexport function withFormlyFieldInput(): ConfigOption {\n return {\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 props: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\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 { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';\nimport { InputsModule } from '@progress/kendo-angular-inputs';\nimport { FormlyFieldInput } from './input.type';\nimport { withFormlyFieldInput } from './input.config';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyFormFieldModule,\n InputsModule,\n FormlyModule.forChild(withFormlyFieldInput()),\n ],\n})\nexport class FormlyInputModule {}\n"],"mappings":"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"}
|
|
@@ -1,25 +1,45 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import {
|
|
5
|
-
import { FieldType, FormlyFormFieldModule } from
|
|
6
|
-
import * as i2 from
|
|
7
|
-
import { LabelModule } from
|
|
8
|
-
import * as i3 from
|
|
9
|
-
import { InputsModule } from
|
|
10
|
-
import * as i4 from
|
|
11
|
-
import { FormlyModule } from
|
|
12
|
-
import * as i5 from
|
|
13
|
-
import { CommonModule } from
|
|
14
|
-
import * as i6 from
|
|
15
|
-
import { FormlySelectModule } from
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule, ViewEncapsulation } from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import { ReactiveFormsModule, UntypedFormControl } from "@angular/forms";
|
|
5
|
+
import { FieldType, FormlyFormFieldModule } from "@ngx-formly/kendo/form-field";
|
|
6
|
+
import * as i2 from "@progress/kendo-angular-label";
|
|
7
|
+
import { LabelModule } from "@progress/kendo-angular-label";
|
|
8
|
+
import * as i3 from "@progress/kendo-angular-inputs";
|
|
9
|
+
import { InputsModule } from "@progress/kendo-angular-inputs";
|
|
10
|
+
import * as i4 from "@ngx-formly/core";
|
|
11
|
+
import { FormlyModule } from "@ngx-formly/core";
|
|
12
|
+
import * as i5 from "@angular/common";
|
|
13
|
+
import { CommonModule } from "@angular/common";
|
|
14
|
+
import * as i6 from "@ngx-formly/core/select";
|
|
15
|
+
import { FormlySelectModule } from "@ngx-formly/core/select";
|
|
16
|
+
var FormlyFieldRadio = class FormlyFieldRadio extends FieldType {
|
|
17
|
+
get disabledControl() {
|
|
18
|
+
return new UntypedFormControl({
|
|
19
|
+
value: this.formControl.value,
|
|
20
|
+
disabled: true
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.2.2",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: FormlyFieldRadio,
|
|
29
|
+
deps: null,
|
|
30
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
35
|
+
minVersion: "17.0.0",
|
|
36
|
+
version: "22.2.2",
|
|
37
|
+
type: FormlyFieldRadio,
|
|
38
|
+
isStandalone: false,
|
|
39
|
+
selector: "formly-field-kendo-radio",
|
|
40
|
+
usesInheritance: true,
|
|
41
|
+
ngImport: i0,
|
|
42
|
+
template: `
|
|
23
43
|
@for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {
|
|
24
44
|
<input
|
|
25
45
|
type="radio"
|
|
@@ -35,11 +55,85 @@ class FormlyFieldRadio extends FieldType {
|
|
|
35
55
|
{{ option.label }}
|
|
36
56
|
</label>
|
|
37
57
|
}
|
|
38
|
-
`,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
58
|
+
`,
|
|
59
|
+
isInline: true,
|
|
60
|
+
styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"],
|
|
61
|
+
dependencies: [
|
|
62
|
+
{
|
|
63
|
+
kind: "directive",
|
|
64
|
+
type: i1.DefaultValueAccessor,
|
|
65
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
kind: "directive",
|
|
69
|
+
type: i1.RadioControlValueAccessor,
|
|
70
|
+
selector: "input[type=radio]:not([ngNoCva])[formControlName],input[type=radio]:not([ngNoCva])[formControl],input[type=radio]:not([ngNoCva])[ngModel]",
|
|
71
|
+
inputs: [
|
|
72
|
+
"name",
|
|
73
|
+
"formControlName",
|
|
74
|
+
"value"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
kind: "directive",
|
|
79
|
+
type: i1.NgControlStatus,
|
|
80
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
kind: "directive",
|
|
84
|
+
type: i1.FormControlDirective,
|
|
85
|
+
selector: "[formControl]",
|
|
86
|
+
inputs: [
|
|
87
|
+
"formControl",
|
|
88
|
+
"disabled",
|
|
89
|
+
"ngModel"
|
|
90
|
+
],
|
|
91
|
+
outputs: ["ngModelChange"],
|
|
92
|
+
exportAs: ["ngForm"]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
kind: "directive",
|
|
96
|
+
type: i2.LabelDirective,
|
|
97
|
+
selector: "label[for]",
|
|
98
|
+
inputs: ["for", "labelClass"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
kind: "directive",
|
|
102
|
+
type: i3.RadioButtonDirective,
|
|
103
|
+
selector: "input[kendoRadioButton]",
|
|
104
|
+
inputs: ["size"]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
kind: "directive",
|
|
108
|
+
type: i4.LegacyFormlyAttributes,
|
|
109
|
+
selector: "[formlyAttributes]"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
kind: "pipe",
|
|
113
|
+
type: i5.AsyncPipe,
|
|
114
|
+
name: "async"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
kind: "pipe",
|
|
118
|
+
type: i6.LegacyFormlySelectOptionsPipe,
|
|
119
|
+
name: "formlySelectOptions"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
123
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
128
|
+
minVersion: "12.0.0",
|
|
129
|
+
version: "22.2.2",
|
|
130
|
+
ngImport: i0,
|
|
131
|
+
type: FormlyFieldRadio,
|
|
132
|
+
decorators: [{
|
|
133
|
+
type: Component,
|
|
134
|
+
args: [{
|
|
135
|
+
selector: "formly-field-kendo-radio",
|
|
136
|
+
template: `
|
|
43
137
|
@for (option of props.options | formlySelectOptions: field | async; track option; let i = $index) {
|
|
44
138
|
<input
|
|
45
139
|
type="radio"
|
|
@@ -55,56 +149,89 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
55
149
|
{{ option.label }}
|
|
56
150
|
</label>
|
|
57
151
|
}
|
|
58
|
-
`,
|
|
59
|
-
|
|
60
|
-
|
|
152
|
+
`,
|
|
153
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
154
|
+
encapsulation: ViewEncapsulation.None,
|
|
155
|
+
standalone: false,
|
|
156
|
+
styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"]
|
|
157
|
+
}]
|
|
158
|
+
}]
|
|
159
|
+
});
|
|
61
160
|
function withFormlyFieldRadio() {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
wrappers: ['form-field'],
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
};
|
|
161
|
+
return { types: [{
|
|
162
|
+
name: "radio",
|
|
163
|
+
component: FormlyFieldRadio,
|
|
164
|
+
wrappers: ["form-field"]
|
|
165
|
+
}] };
|
|
71
166
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
167
|
+
var FormlyRadioModule = class FormlyRadioModule {
|
|
168
|
+
static {
|
|
169
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
170
|
+
minVersion: "12.0.0",
|
|
171
|
+
version: "22.2.2",
|
|
172
|
+
ngImport: i0,
|
|
173
|
+
type: FormlyRadioModule,
|
|
174
|
+
deps: [],
|
|
175
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
static {
|
|
179
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
180
|
+
minVersion: "14.0.0",
|
|
181
|
+
version: "22.2.2",
|
|
182
|
+
ngImport: i0,
|
|
183
|
+
type: FormlyRadioModule,
|
|
184
|
+
declarations: [FormlyFieldRadio],
|
|
185
|
+
imports: [
|
|
186
|
+
CommonModule,
|
|
187
|
+
ReactiveFormsModule,
|
|
188
|
+
LabelModule,
|
|
189
|
+
InputsModule,
|
|
190
|
+
FormlyFormFieldModule,
|
|
191
|
+
FormlySelectModule,
|
|
192
|
+
i4.FormlyModule
|
|
193
|
+
]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
198
|
+
minVersion: "12.0.0",
|
|
199
|
+
version: "22.2.2",
|
|
200
|
+
ngImport: i0,
|
|
201
|
+
type: FormlyRadioModule,
|
|
202
|
+
imports: [
|
|
203
|
+
CommonModule,
|
|
204
|
+
ReactiveFormsModule,
|
|
205
|
+
LabelModule,
|
|
206
|
+
InputsModule,
|
|
207
|
+
FormlyFormFieldModule,
|
|
208
|
+
FormlySelectModule,
|
|
209
|
+
FormlyModule.forChild(withFormlyFieldRadio())
|
|
210
|
+
]
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
215
|
+
minVersion: "12.0.0",
|
|
216
|
+
version: "22.2.2",
|
|
217
|
+
ngImport: i0,
|
|
218
|
+
type: FormlyRadioModule,
|
|
219
|
+
decorators: [{
|
|
220
|
+
type: NgModule,
|
|
221
|
+
args: [{
|
|
222
|
+
declarations: [FormlyFieldRadio],
|
|
223
|
+
imports: [
|
|
224
|
+
CommonModule,
|
|
225
|
+
ReactiveFormsModule,
|
|
226
|
+
LabelModule,
|
|
227
|
+
InputsModule,
|
|
228
|
+
FormlyFormFieldModule,
|
|
229
|
+
FormlySelectModule,
|
|
230
|
+
FormlyModule.forChild(withFormlyFieldRadio())
|
|
231
|
+
]
|
|
232
|
+
}]
|
|
233
|
+
}]
|
|
234
|
+
});
|
|
109
235
|
export { FormlyFieldRadio, FormlyRadioModule, withFormlyFieldRadio };
|
|
110
|
-
|
|
236
|
+
|
|
237
|
+
//# sourceMappingURL=ngx-formly-kendo-radio.mjs.map
|