@ngx-formly/kendo 6.0.2 → 6.0.4

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,4 +1,5 @@
1
1
  import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
2
3
  import { FieldType } from '@ngx-formly/kendo/form-field';
3
4
  import * as i0 from "@angular/core";
4
5
  import * as i1 from "@angular/common";
@@ -8,6 +9,9 @@ import * as i4 from "@ngx-formly/core";
8
9
  import * as i5 from "@progress/kendo-angular-label";
9
10
  import * as i6 from "@ngx-formly/core/select";
10
11
  export class FormlyFieldRadio extends FieldType {
12
+ get disabledControl() {
13
+ return new FormControl({ value: this.formControl.value, disabled: true });
14
+ }
11
15
  }
12
16
  FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
13
17
  FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
@@ -19,9 +23,8 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
19
23
  [id]="id + '_' + i"
20
24
  [name]="field.name || id"
21
25
  [value]="option.value"
22
- [formControl]="formControl"
26
+ [formControl]="option.disabled ? disabledControl : formControl"
23
27
  [formlyAttributes]="field"
24
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
25
28
  />
26
29
  <label class="k-radio-label" [for]="id + '_' + i">
27
30
  {{ option.label }}
@@ -39,9 +42,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
39
42
  [id]="id + '_' + i"
40
43
  [name]="field.name || id"
41
44
  [value]="option.value"
42
- [formControl]="formControl"
45
+ [formControl]="option.disabled ? disabledControl : formControl"
43
46
  [formlyAttributes]="field"
44
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
45
47
  />
46
48
  <label class="k-radio-label" [for]="id + '_' + i">
47
49
  {{ option.label }}
@@ -49,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
49
51
  </ng-container>
50
52
  `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"] }]
51
53
  }] });
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8udHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9rZW5kby9yYWRpby9zcmMvcmFkaW8udHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFRLE1BQU0sZUFBZSxDQUFDO0FBRTVGLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7Ozs7Ozs7QUFpQ3pELE1BQU0sT0FBTyxnQkFBaUIsU0FBUSxTQUFzQzs7OEdBQS9ELGdCQUFnQjtrR0FBaEIsZ0JBQWdCLHVGQXRCakI7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBaUJUOzRGQUtVLGdCQUFnQjtrQkF4QjVCLFNBQVM7K0JBQ0UsMEJBQTBCLFlBQzFCOzs7Ozs7Ozs7Ozs7Ozs7OztHQWlCVCxtQkFDZ0IsdUJBQXVCLENBQUMsTUFBTSxpQkFDaEMsaUJBQWlCLENBQUMsSUFBSSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIFZpZXdF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b24uTm9uZSxcbiAgc3R5bGVVcmxzOiBbJy4vcmFkaW8udHlwZS5zY3NzJ10sXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seUZpZWxkUmFkaW8gZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPFJhZGlvUHJvcHM+PiB7XG4gIGdldCBkaXNhYmxlZENvbnRyb2woKSB7XG4gICAgcmV0dXJuIG5ldyBGb3JtQ29udHJvbCh7IHZhbHVlOiB0aGlzLmZvcm1Db250cm9sLnZhbHVlLCBkaXNhYmxlZDogdHJ1ZSB9KTtcbiAgfVxufVxuIl19
@@ -5,7 +5,7 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i4 from '@ngx-formly/core';
6
6
  import { FormlyModule } from '@ngx-formly/core';
7
7
  import * as i2 from '@angular/forms';
8
- import { ReactiveFormsModule } from '@angular/forms';
8
+ import { FormControl, ReactiveFormsModule } from '@angular/forms';
9
9
  import * as i6 from '@ngx-formly/core/select';
10
10
  import { FormlySelectModule } from '@ngx-formly/core/select';
11
11
  import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
@@ -15,6 +15,9 @@ import * as i3 from '@progress/kendo-angular-inputs';
15
15
  import { InputsModule } from '@progress/kendo-angular-inputs';
16
16
 
17
17
  class FormlyFieldRadio extends FieldType {
18
+ get disabledControl() {
19
+ return new FormControl({ value: this.formControl.value, disabled: true });
20
+ }
18
21
  }
19
22
  FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
20
23
  FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
@@ -26,9 +29,8 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
26
29
  [id]="id + '_' + i"
27
30
  [name]="field.name || id"
28
31
  [value]="option.value"
29
- [formControl]="formControl"
32
+ [formControl]="option.disabled ? disabledControl : formControl"
30
33
  [formlyAttributes]="field"
31
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
32
34
  />
33
35
  <label class="k-radio-label" [for]="id + '_' + i">
34
36
  {{ option.label }}
@@ -46,9 +48,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
46
48
  [id]="id + '_' + i"
47
49
  [name]="field.name || id"
48
50
  [value]="option.value"
49
- [formControl]="formControl"
51
+ [formControl]="option.disabled ? disabledControl : formControl"
50
52
  [formlyAttributes]="field"
51
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
52
53
  />
53
54
  <label class="k-radio-label" [for]="id + '_' + i">
54
55
  {{ option.label }}
@@ -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, ViewEncapsulation, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\nimport { FormlyFieldProps } from '@ngx-formly/kendo/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-kendo-radio',\n template: `\n <ng-container *ngFor=\"let option of props.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<RadioProps>> {}\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":";;;;;;;;;;;;;;;;AAmCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;;8GAA/D,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,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAtBjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;GAiBT,EAAA,QAAA,E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,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;;;;"}
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, Type } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\nimport { FormlyFieldProps } from '@ngx-formly/kendo/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-kendo-radio',\n template: `\n <ng-container *ngFor=\"let option of props.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]=\"option.disabled ? disabledControl : formControl\"\n [formlyAttributes]=\"field\"\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<RadioProps>> {\n get disabledControl() {\n return new FormControl({ value: this.formControl.value, disabled: true });\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 { 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":";;;;;;;;;;;;;;;;AAmCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAC1E,IAAA,IAAI,eAAe,GAAA;AACjB,QAAA,OAAO,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;KAC3E;;8GAHU,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,SAAA,EAAA,IAAA,EAAA,gBAAgB,EArBjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EA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iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArB7B,QAAQ;AAAC,YAAA,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,7 +5,7 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i4 from '@ngx-formly/core';
6
6
  import { FormlyModule } from '@ngx-formly/core';
7
7
  import * as i2 from '@angular/forms';
8
- import { ReactiveFormsModule } from '@angular/forms';
8
+ import { FormControl, ReactiveFormsModule } from '@angular/forms';
9
9
  import * as i6 from '@ngx-formly/core/select';
10
10
  import { FormlySelectModule } from '@ngx-formly/core/select';
11
11
  import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
@@ -15,6 +15,9 @@ import * as i3 from '@progress/kendo-angular-inputs';
15
15
  import { InputsModule } from '@progress/kendo-angular-inputs';
16
16
 
17
17
  class FormlyFieldRadio extends FieldType {
18
+ get disabledControl() {
19
+ return new FormControl({ value: this.formControl.value, disabled: true });
20
+ }
18
21
  }
19
22
  FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
20
23
  FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
@@ -26,9 +29,8 @@ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
26
29
  [id]="id + '_' + i"
27
30
  [name]="field.name || id"
28
31
  [value]="option.value"
29
- [formControl]="formControl"
32
+ [formControl]="option.disabled ? disabledControl : formControl"
30
33
  [formlyAttributes]="field"
31
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
32
34
  />
33
35
  <label class="k-radio-label" [for]="id + '_' + i">
34
36
  {{ option.label }}
@@ -46,9 +48,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
46
48
  [id]="id + '_' + i"
47
49
  [name]="field.name || id"
48
50
  [value]="option.value"
49
- [formControl]="formControl"
51
+ [formControl]="option.disabled ? disabledControl : formControl"
50
52
  [formlyAttributes]="field"
51
- [attr.disabled]="option.disabled || formControl.disabled ? true : null"
52
53
  />
53
54
  <label class="k-radio-label" [for]="id + '_' + i">
54
55
  {{ option.label }}
@@ -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, ViewEncapsulation, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\nimport { FormlyFieldProps } from '@ngx-formly/kendo/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-kendo-radio',\n template: `\n <ng-container *ngFor=\"let option of props.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<RadioProps>> {}\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":";;;;;;;;;;;;;;;;AAmCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;;8GAA/D,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,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAtBjB,QAAA,EAAA,0BAAA,EAAA,eAAA,E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AC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArB7B,QAAQ;AAAC,YAAA,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;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
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, Type } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType } from '@ngx-formly/kendo/form-field';\nimport { FormlyFieldProps } from '@ngx-formly/kendo/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-kendo-radio',\n template: `\n <ng-container *ngFor=\"let option of props.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]=\"option.disabled ? disabledControl : formControl\"\n [formlyAttributes]=\"field\"\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<RadioProps>> {\n get disabledControl() {\n return new FormControl({ value: this.formControl.value, disabled: true });\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 { 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":";;;;;;;;;;;;;;;;AAmCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAC1E,IAAA,IAAI,eAAe,GAAA;AACjB,QAAA,OAAO,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;KAC3E;;8GAHU,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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A,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBArB7B,QAAQ;AAAC,YAAA,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;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ngx-formly/kendo",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@ngx-formly/core": "6.0.2",
9
+ "@ngx-formly/core": "6.0.4",
10
10
  "@progress/kendo-angular-label": "^4.0.0",
11
11
  "@progress/kendo-angular-dropdowns": "^7.0.2",
12
12
  "@progress/kendo-angular-inputs": "^9.0.3"
@@ -1,4 +1,5 @@
1
1
  import { Type } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
2
3
  import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
4
  import { FieldType } from '@ngx-formly/kendo/form-field';
4
5
  import { FormlyFieldProps } from '@ngx-formly/kendo/form-field';
@@ -9,6 +10,7 @@ export interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
9
10
  type: 'radio' | Type<FormlyFieldRadio>;
10
11
  }
11
12
  export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
13
+ get disabledControl(): FormControl;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
13
15
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-kendo-radio", never, {}, {}, never, never>;
14
16
  }