@ngx-formly/kendo 10.0.1 → 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.
@@ -1,17 +1,34 @@
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
-
12
- class FormlyFieldInput extends FieldType {
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: FormlyFieldInput, isStandalone: false, selector: "formly-field-kendo-input", usesInheritance: true, ngImport: i0, template: `
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
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "component", type: i2.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: i3.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldInput, decorators: [{
29
- type: Component,
30
- args: [{
31
- selector: 'formly-field-kendo-input',
32
- template: `
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
- changeDetection: ChangeDetectionStrategy.OnPush,
46
- standalone: false,
47
- }]
48
- }] });
49
-
144
+ changeDetection: ChangeDetectionStrategy.OnPush,
145
+ standalone: false
146
+ }]
147
+ }]
148
+ });
50
149
  function withFormlyFieldInput() {
51
- return {
52
- types: [
53
- {
54
- name: 'input',
55
- component: FormlyFieldInput,
56
- wrappers: ['form-field'],
57
- },
58
- { name: 'string', extends: 'input' },
59
- {
60
- name: 'number',
61
- extends: 'input',
62
- defaultOptions: {
63
- props: {
64
- type: 'number',
65
- },
66
- },
67
- },
68
- {
69
- name: 'integer',
70
- extends: 'input',
71
- defaultOptions: {
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
- class FormlyInputModule {
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
83
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
84
- ReactiveFormsModule,
85
- FormlyFormFieldModule,
86
- InputsModule, i3.FormlyModule] }); }
87
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, imports: [CommonModule,
88
- ReactiveFormsModule,
89
- FormlyFormFieldModule,
90
- InputsModule,
91
- FormlyModule.forChild(withFormlyFieldInput())] }); }
92
- }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, decorators: [{
94
- type: NgModule,
95
- args: [{
96
- declarations: [FormlyFieldInput],
97
- imports: [
98
- CommonModule,
99
- ReactiveFormsModule,
100
- FormlyFormFieldModule,
101
- InputsModule,
102
- FormlyModule.forChild(withFormlyFieldInput()),
103
- ],
104
- }]
105
- }] });
106
-
107
- /**
108
- * Generated bundle index. Do not edit.
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
- //# sourceMappingURL=ngx-formly-kendo-input.mjs.map
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","../../../../src/ui/kendo/input/src/ngx-formly-kendo-input.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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA4BM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;+GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,U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AA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAjB,iBAAiB,EAAA,YAAA,EAAA,CATb,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAE7B,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,YAAY,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAIH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAP1B,YAAY;YACZ,mBAAmB;YACnB,qBAAqB;YACrB,YAAY;AACZ,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGpC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAV7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,qBAAqB;wBACrB,YAAY;AACZ,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;AACF,iBAAA;;;AClBD;;AAEG;;;;"}
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":";;;;;;;;;;AA4BA,IAAa,mBAAb,MAAa,yBAAyB,UAAsC;CAA/D;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAgB,MAAA;GAAA,QAAA,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;GAAE,MAAM;GAAU,SAAS;EAAO;EAClC;GACE,MAAM;GACN,SAAS;GACT,gBAAgB,EACd,OAAO,EACL,MAAM,SACP,EACF;EACF;EACD;GACE,MAAM;GACN,SAAS;GACT,gBAAgB,EACd,OAAO,EACL,MAAM,SACP,EACF;EACF;CACF,EACF;AACH;ACbA,IAAa,oBAAb,MAAa,kBAAiB;CAAjB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,cAAA,CATb,gBAAgB;GAAA,SAAA;IAE7B;IACA;IACA;IACA;IAAY,GAAA;GAAA;EAAA,CAAA;CAAA;CAIH;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,SAAA;IAP1B;IACA;IACA;IACA;IACA,aAAa,SAAS,qBAAoB,CAAE;GAAC;EAAA,CAAA;CAAA;;AAGpC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAV7B,MAAA;EAAS,MAAA,CAAA;GACR,cAAc,CAAC,gBAAgB;GAC/B,SAAS;IACP;IACA;IACA;IACA;IACA,aAAa,SAAS,qBAAoB,CAAE;GAC7C;EACF,CAAA"}
@@ -1,25 +1,45 @@
1
- import * as i0 from '@angular/core';
2
- import { ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { UntypedFormControl, ReactiveFormsModule } 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
-
17
- class FormlyFieldRadio extends FieldType {
18
- get disabledControl() {
19
- return new UntypedFormControl({ value: this.formControl.value, disabled: true });
20
- }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: FormlyFieldRadio, isStandalone: false, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
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
- `, isInline: true, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.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.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "directive", type: i3.RadioButtonDirective, selector: "input[kendoRadioButton]", inputs: ["size"] }, { kind: "directive", type: i4.LegacyFormlyAttributes, selector: "[formlyAttributes]" }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldRadio, decorators: [{
41
- type: Component,
42
- args: [{ selector: 'formly-field-kendo-radio', template: `
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
- `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"] }]
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
- return {
63
- types: [
64
- {
65
- name: 'radio',
66
- component: FormlyFieldRadio,
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
- class FormlyRadioModule {
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
75
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
76
- ReactiveFormsModule,
77
- LabelModule,
78
- InputsModule,
79
- FormlyFormFieldModule,
80
- FormlySelectModule, i4.FormlyModule] }); }
81
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyRadioModule, imports: [CommonModule,
82
- ReactiveFormsModule,
83
- LabelModule,
84
- InputsModule,
85
- FormlyFormFieldModule,
86
- FormlySelectModule,
87
- FormlyModule.forChild(withFormlyFieldRadio())] }); }
88
- }
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyRadioModule, decorators: [{
90
- type: NgModule,
91
- args: [{
92
- declarations: [FormlyFieldRadio],
93
- imports: [
94
- CommonModule,
95
- ReactiveFormsModule,
96
- LabelModule,
97
- InputsModule,
98
- FormlyFormFieldModule,
99
- FormlySelectModule,
100
- FormlyModule.forChild(withFormlyFieldRadio()),
101
- ],
102
- }]
103
- }] });
104
-
105
- /**
106
- * Generated bundle index. Do not edit.
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
- //# sourceMappingURL=ngx-formly-kendo-radio.mjs.map
236
+
237
+ //# sourceMappingURL=ngx-formly-kendo-radio.mjs.map