@ngx-formly/kendo 6.3.12 → 7.0.0-alpha.1
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 +1 -0
- package/checkbox/checkbox.config.d.ts +2 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/public_api.d.ts +1 -0
- package/esm2022/checkbox/checkbox.config.mjs +17 -0
- package/esm2022/checkbox/checkbox.module.mjs +40 -0
- package/{esm2020 → esm2022}/checkbox/checkbox.type.mjs +10 -10
- package/esm2022/checkbox/public_api.mjs +4 -0
- package/esm2022/form-field/field.type.mjs +23 -0
- package/esm2022/form-field/form-field.config.mjs +12 -0
- package/esm2022/form-field/form-field.module.mjs +36 -0
- package/esm2022/form-field/form-field.wrapper.mjs +64 -0
- package/esm2022/form-field/public_api.mjs +4 -0
- package/esm2022/input/input.config.mjs +32 -0
- package/esm2022/input/input.module.mjs +36 -0
- package/{esm2020 → esm2022}/input/input.type.mjs +9 -9
- package/esm2022/input/public_api.mjs +4 -0
- package/esm2022/lib/ui-kendo.config.mjs +17 -0
- package/esm2022/lib/ui-kendo.mjs +3 -0
- package/esm2022/lib/ui-kendo.module.mjs +37 -0
- package/esm2022/radio/public_api.mjs +4 -0
- package/esm2022/radio/radio.config.mjs +13 -0
- package/esm2022/radio/radio.module.mjs +44 -0
- package/esm2022/radio/radio.type.mjs +54 -0
- package/esm2022/select/public_api.mjs +4 -0
- package/esm2022/select/select.config.mjs +14 -0
- package/esm2022/select/select.module.mjs +40 -0
- package/{esm2020 → esm2022}/select/select.type.mjs +10 -10
- package/esm2022/textarea/public_api.mjs +4 -0
- package/esm2022/textarea/textarea.config.mjs +13 -0
- package/esm2022/textarea/textarea.module.mjs +36 -0
- package/{esm2020 → esm2022}/textarea/textarea.type.mjs +4 -4
- package/fesm2022/ngx-formly-kendo-checkbox.mjs +94 -0
- package/fesm2022/ngx-formly-kendo-checkbox.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-kendo-form-field.mjs +40 -45
- package/fesm2022/ngx-formly-kendo-form-field.mjs.map +1 -0
- package/fesm2022/ngx-formly-kendo-input.mjs +110 -0
- package/fesm2022/ngx-formly-kendo-input.mjs.map +1 -0
- package/fesm2022/ngx-formly-kendo-radio.mjs +110 -0
- package/fesm2022/ngx-formly-kendo-radio.mjs.map +1 -0
- package/fesm2022/ngx-formly-kendo-select.mjs +97 -0
- package/fesm2022/ngx-formly-kendo-select.mjs.map +1 -0
- package/fesm2022/ngx-formly-kendo-textarea.mjs +68 -0
- package/fesm2022/ngx-formly-kendo-textarea.mjs.map +1 -0
- package/fesm2022/ngx-formly-kendo.mjs +59 -0
- package/fesm2022/ngx-formly-kendo.mjs.map +1 -0
- package/form-field/field.type.d.ts +1 -1
- package/form-field/form-field.config.d.ts +2 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/form-field/public_api.d.ts +1 -0
- package/input/input.config.d.ts +2 -0
- package/input/input.type.d.ts +1 -1
- package/input/public_api.d.ts +1 -0
- package/lib/ui-kendo.config.d.ts +1 -0
- package/lib/ui-kendo.d.ts +1 -0
- package/package.json +32 -50
- package/radio/public_api.d.ts +1 -0
- package/radio/radio.config.d.ts +2 -0
- package/radio/radio.type.d.ts +4 -5
- package/select/public_api.d.ts +1 -0
- package/select/select.config.d.ts +2 -0
- package/select/select.type.d.ts +1 -1
- package/textarea/public_api.d.ts +1 -0
- package/textarea/textarea.config.d.ts +2 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/checkbox/package.json +0 -10
- package/esm2020/checkbox/checkbox.module.mjs +0 -65
- package/esm2020/checkbox/public_api.mjs +0 -3
- package/esm2020/form-field/field.type.mjs +0 -23
- package/esm2020/form-field/form-field.module.mjs +0 -51
- package/esm2020/form-field/form-field.wrapper.mjs +0 -64
- package/esm2020/form-field/public_api.mjs +0 -3
- package/esm2020/input/input.module.mjs +0 -91
- package/esm2020/input/public_api.mjs +0 -3
- package/esm2020/lib/ui-kendo.mjs +0 -2
- package/esm2020/lib/ui-kendo.module.mjs +0 -39
- package/esm2020/radio/public_api.mjs +0 -3
- package/esm2020/radio/radio.module.mjs +0 -61
- package/esm2020/radio/radio.type.mjs +0 -54
- package/esm2020/select/public_api.mjs +0 -3
- package/esm2020/select/select.module.mjs +0 -59
- package/esm2020/textarea/public_api.mjs +0 -3
- package/esm2020/textarea/textarea.module.mjs +0 -53
- package/fesm2015/ngx-formly-kendo-checkbox.mjs +0 -104
- package/fesm2015/ngx-formly-kendo-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo-form-field.mjs +0 -136
- package/fesm2015/ngx-formly-kendo-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo-input.mjs +0 -135
- package/fesm2015/ngx-formly-kendo-input.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo-radio.mjs +0 -116
- package/fesm2015/ngx-formly-kendo-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo-select.mjs +0 -104
- package/fesm2015/ngx-formly-kendo-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo-textarea.mjs +0 -74
- package/fesm2015/ngx-formly-kendo-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-kendo.mjs +0 -50
- package/fesm2015/ngx-formly-kendo.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-checkbox.mjs +0 -104
- package/fesm2020/ngx-formly-kendo-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-input.mjs +0 -135
- package/fesm2020/ngx-formly-kendo-input.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-radio.mjs +0 -116
- package/fesm2020/ngx-formly-kendo-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-select.mjs +0 -104
- package/fesm2020/ngx-formly-kendo-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo-textarea.mjs +0 -74
- package/fesm2020/ngx-formly-kendo-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-kendo.mjs +0 -50
- package/fesm2020/ngx-formly-kendo.mjs.map +0 -1
- package/form-field/package.json +0 -10
- package/input/package.json +0 -10
- package/radio/package.json +0 -10
- package/select/package.json +0 -10
- package/textarea/package.json +0 -10
- /package/checkbox/{ngx-formly-kendo-checkbox.d.ts → index.d.ts} +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-kendo-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-kendo-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ngx-formly-kendo-input.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-kendo.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-kendo-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-kendo-select.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-kendo-textarea.mjs +0 -0
- /package/form-field/{ngx-formly-kendo-form-field.d.ts → index.d.ts} +0 -0
- /package/{ngx-formly-kendo.d.ts → index.d.ts} +0 -0
- /package/input/{ngx-formly-kendo-input.d.ts → index.d.ts} +0 -0
- /package/radio/{ngx-formly-kendo-radio.d.ts → index.d.ts} +0 -0
- /package/select/{ngx-formly-kendo-select.d.ts → index.d.ts} +0 -0
- /package/textarea/{ngx-formly-kendo-textarea.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
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/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
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
|
+
|
|
13
|
+
class FormlyFieldInput extends FieldType {
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldInput, selector: "formly-field-kendo-input", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<input
|
|
17
|
+
*ngIf="props.type !== 'number'; else numberTmp"
|
|
18
|
+
kendoTextBox
|
|
19
|
+
[type]="props.type || 'text'"
|
|
20
|
+
[formlyAttributes]="field"
|
|
21
|
+
[formControl]="formControl"
|
|
22
|
+
/>
|
|
23
|
+
<ng-template #numberTmp>
|
|
24
|
+
<kendo-numerictextbox [formlyAttributes]="field" [formControl]="formControl"> </kendo-numerictextbox>
|
|
25
|
+
</ng-template>
|
|
26
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", 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]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "component", type: i3.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: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
selector: 'formly-field-kendo-input',
|
|
32
|
+
template: `
|
|
33
|
+
<input
|
|
34
|
+
*ngIf="props.type !== 'number'; else numberTmp"
|
|
35
|
+
kendoTextBox
|
|
36
|
+
[type]="props.type || 'text'"
|
|
37
|
+
[formlyAttributes]="field"
|
|
38
|
+
[formControl]="formControl"
|
|
39
|
+
/>
|
|
40
|
+
<ng-template #numberTmp>
|
|
41
|
+
<kendo-numerictextbox [formlyAttributes]="field" [formControl]="formControl"> </kendo-numerictextbox>
|
|
42
|
+
</ng-template>
|
|
43
|
+
`,
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
}]
|
|
46
|
+
}] });
|
|
47
|
+
|
|
48
|
+
function withFormlyFieldInput() {
|
|
49
|
+
return {
|
|
50
|
+
types: [
|
|
51
|
+
{
|
|
52
|
+
name: 'input',
|
|
53
|
+
component: FormlyFieldInput,
|
|
54
|
+
wrappers: ['form-field'],
|
|
55
|
+
},
|
|
56
|
+
{ name: 'string', extends: 'input' },
|
|
57
|
+
{
|
|
58
|
+
name: 'number',
|
|
59
|
+
extends: 'input',
|
|
60
|
+
defaultOptions: {
|
|
61
|
+
props: {
|
|
62
|
+
type: 'number',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'integer',
|
|
68
|
+
extends: 'input',
|
|
69
|
+
defaultOptions: {
|
|
70
|
+
props: {
|
|
71
|
+
type: 'number',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class FormlyInputModule {
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
81
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
82
|
+
ReactiveFormsModule,
|
|
83
|
+
FormlyFormFieldModule,
|
|
84
|
+
InputsModule, i4.FormlyModule] }); }
|
|
85
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyInputModule, imports: [CommonModule,
|
|
86
|
+
ReactiveFormsModule,
|
|
87
|
+
FormlyFormFieldModule,
|
|
88
|
+
InputsModule,
|
|
89
|
+
FormlyModule.forChild(withFormlyFieldInput())] }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
92
|
+
type: NgModule,
|
|
93
|
+
args: [{
|
|
94
|
+
declarations: [FormlyFieldInput],
|
|
95
|
+
imports: [
|
|
96
|
+
CommonModule,
|
|
97
|
+
ReactiveFormsModule,
|
|
98
|
+
FormlyFormFieldModule,
|
|
99
|
+
InputsModule,
|
|
100
|
+
FormlyModule.forChild(withFormlyFieldInput()),
|
|
101
|
+
],
|
|
102
|
+
}]
|
|
103
|
+
}] });
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Generated bundle index. Do not edit.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
export { FormlyFieldInput, FormlyInputModule, withFormlyFieldInput };
|
|
110
|
+
//# sourceMappingURL=ngx-formly-kendo-input.mjs.map
|
|
@@ -0,0 +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 <input\n *ngIf=\"props.type !== 'number'; else numberTmp\"\n kendoTextBox\n [type]=\"props.type || 'text'\"\n [formlyAttributes]=\"field\"\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<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":";;;;;;;;;;;;AA0BM,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,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAdjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,EAAA,EAAA,IAAA,EAA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AA,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;;;;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/forms';
|
|
4
|
+
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { FieldType, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i3 from '@progress/kendo-angular-label';
|
|
9
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
10
|
+
import * as i4 from '@progress/kendo-angular-inputs';
|
|
11
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
12
|
+
import * as i5 from '@ngx-formly/core';
|
|
13
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
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: "18.2.13", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldRadio, selector: "formly-field-kendo-radio", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
+
<ng-container *ngFor="let option of props.options | formlySelectOptions: field | async; let i = index">
|
|
24
|
+
<input
|
|
25
|
+
type="radio"
|
|
26
|
+
#radioInput
|
|
27
|
+
kendoRadioButton
|
|
28
|
+
[id]="id + '_' + i"
|
|
29
|
+
[name]="field.name || id"
|
|
30
|
+
[value]="option.value"
|
|
31
|
+
[formControl]="option.disabled ? disabledControl : formControl"
|
|
32
|
+
[formlyAttributes]="field"
|
|
33
|
+
/>
|
|
34
|
+
<label class="k-radio-label" [for]="id + '_' + i">
|
|
35
|
+
{{ option.label }}
|
|
36
|
+
</label>
|
|
37
|
+
</ng-container>
|
|
38
|
+
`, isInline: true, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", 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]" }, { kind: "directive", type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "directive", type: i4.RadioButtonDirective, selector: "input[kendoRadioButton]", inputs: ["size"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
39
|
+
}
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{ selector: 'formly-field-kendo-radio', template: `
|
|
43
|
+
<ng-container *ngFor="let option of props.options | formlySelectOptions: field | async; let i = index">
|
|
44
|
+
<input
|
|
45
|
+
type="radio"
|
|
46
|
+
#radioInput
|
|
47
|
+
kendoRadioButton
|
|
48
|
+
[id]="id + '_' + i"
|
|
49
|
+
[name]="field.name || id"
|
|
50
|
+
[value]="option.value"
|
|
51
|
+
[formControl]="option.disabled ? disabledControl : formControl"
|
|
52
|
+
[formlyAttributes]="field"
|
|
53
|
+
/>
|
|
54
|
+
<label class="k-radio-label" [for]="id + '_' + i">
|
|
55
|
+
{{ option.label }}
|
|
56
|
+
</label>
|
|
57
|
+
</ng-container>
|
|
58
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".k-form formly-field-kendo-radio .k-label{display:inherit}\n"] }]
|
|
59
|
+
}] });
|
|
60
|
+
|
|
61
|
+
function withFormlyFieldRadio() {
|
|
62
|
+
return {
|
|
63
|
+
types: [
|
|
64
|
+
{
|
|
65
|
+
name: 'radio',
|
|
66
|
+
component: FormlyFieldRadio,
|
|
67
|
+
wrappers: ['form-field'],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class FormlyRadioModule {
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
75
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
76
|
+
ReactiveFormsModule,
|
|
77
|
+
LabelModule,
|
|
78
|
+
InputsModule,
|
|
79
|
+
FormlyFormFieldModule,
|
|
80
|
+
FormlySelectModule, i5.FormlyModule] }); }
|
|
81
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", 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: "18.2.13", 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
|
+
|
|
109
|
+
export { FormlyFieldRadio, FormlyRadioModule, withFormlyFieldRadio };
|
|
110
|
+
//# sourceMappingURL=ngx-formly-kendo-radio.mjs.map
|
|
@@ -0,0 +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.config.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 { UntypedFormControl } 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\ntype RadioProps = 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 UntypedFormControl({ value: this.formControl.value, disabled: true });\n }\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldRadio } from './radio.type';\n\nexport function withFormlyFieldRadio(): ConfigOption {\n return {\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\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 { 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';\nimport { withFormlyFieldRadio } from './radio.config';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n LabelModule,\n InputsModule,\n FormlyFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldRadio()),\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,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+GAFvE,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,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EArBjB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;;;;;;AAgBT,E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A,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAV1B,YAAY;YACZ,mBAAmB;YAEnB,WAAW;YACX,YAAY;YACZ,qBAAqB;YACrB,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGpC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,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;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;AACF,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,97 @@
|
|
|
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-dropdowns';
|
|
7
|
+
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
8
|
+
import * as i3 from '@ngx-formly/core';
|
|
9
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
10
|
+
import * as i4 from '@angular/common';
|
|
11
|
+
import { CommonModule } from '@angular/common';
|
|
12
|
+
import * as i5 from '@ngx-formly/core/select';
|
|
13
|
+
import { FormlySelectModule as FormlySelectModule$1 } from '@ngx-formly/core/select';
|
|
14
|
+
|
|
15
|
+
class FormlyFieldSelect extends FieldType {
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldSelect, selector: "formly-field-kendo-select", usesInheritance: true, ngImport: i0, template: `
|
|
18
|
+
<kendo-dropdownlist
|
|
19
|
+
[formControl]="formControl"
|
|
20
|
+
[formlyAttributes]="field"
|
|
21
|
+
[data]="props.options | formlySelectOptions: field | async"
|
|
22
|
+
[textField]="'label'"
|
|
23
|
+
[valueField]="'value'"
|
|
24
|
+
[valuePrimitive]="props.primitive ?? true"
|
|
25
|
+
(valueChange)="props.change && props.change(field, $event)"
|
|
26
|
+
>
|
|
27
|
+
</kendo-dropdownlist>
|
|
28
|
+
`, isInline: true, dependencies: [{ 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: "component", type: i2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: 'formly-field-kendo-select',
|
|
34
|
+
template: `
|
|
35
|
+
<kendo-dropdownlist
|
|
36
|
+
[formControl]="formControl"
|
|
37
|
+
[formlyAttributes]="field"
|
|
38
|
+
[data]="props.options | formlySelectOptions: field | async"
|
|
39
|
+
[textField]="'label'"
|
|
40
|
+
[valueField]="'value'"
|
|
41
|
+
[valuePrimitive]="props.primitive ?? true"
|
|
42
|
+
(valueChange)="props.change && props.change(field, $event)"
|
|
43
|
+
>
|
|
44
|
+
</kendo-dropdownlist>
|
|
45
|
+
`,
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
47
|
+
}]
|
|
48
|
+
}] });
|
|
49
|
+
|
|
50
|
+
function withFormlyFieldSelect() {
|
|
51
|
+
return {
|
|
52
|
+
types: [
|
|
53
|
+
{
|
|
54
|
+
name: 'select',
|
|
55
|
+
component: FormlyFieldSelect,
|
|
56
|
+
wrappers: ['form-field'],
|
|
57
|
+
},
|
|
58
|
+
{ name: 'enum', extends: 'select' },
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class FormlySelectModule {
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
65
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlySelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
66
|
+
ReactiveFormsModule,
|
|
67
|
+
DropDownsModule,
|
|
68
|
+
FormlyFormFieldModule,
|
|
69
|
+
FormlySelectModule$1, i3.FormlyModule] }); }
|
|
70
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySelectModule, imports: [CommonModule,
|
|
71
|
+
ReactiveFormsModule,
|
|
72
|
+
DropDownsModule,
|
|
73
|
+
FormlyFormFieldModule,
|
|
74
|
+
FormlySelectModule$1,
|
|
75
|
+
FormlyModule.forChild(withFormlyFieldSelect())] }); }
|
|
76
|
+
}
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySelectModule, decorators: [{
|
|
78
|
+
type: NgModule,
|
|
79
|
+
args: [{
|
|
80
|
+
declarations: [FormlyFieldSelect],
|
|
81
|
+
imports: [
|
|
82
|
+
CommonModule,
|
|
83
|
+
ReactiveFormsModule,
|
|
84
|
+
DropDownsModule,
|
|
85
|
+
FormlyFormFieldModule,
|
|
86
|
+
FormlySelectModule$1,
|
|
87
|
+
FormlyModule.forChild(withFormlyFieldSelect()),
|
|
88
|
+
],
|
|
89
|
+
}]
|
|
90
|
+
}] });
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Generated bundle index. Do not edit.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
export { FormlyFieldSelect, FormlySelectModule, withFormlyFieldSelect };
|
|
97
|
+
//# sourceMappingURL=ngx-formly-kendo-select.mjs.map
|
|
@@ -0,0 +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.config.ts","../../../../src/ui/kendo/select/src/select.module.ts","../../../../src/ui/kendo/select/src/ngx-formly-kendo-select.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';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n primitive?: boolean;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-kendo-select',\n template: `\n <kendo-dropdownlist\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [data]=\"props.options | formlySelectOptions: field | async\"\n [textField]=\"'label'\"\n [valueField]=\"'value'\"\n [valuePrimitive]=\"props.primitive ?? true\"\n (valueChange)=\"props.change && props.change(field, $event)\"\n >\n </kendo-dropdownlist>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSelect } from './select.type';\n\nexport function withFormlyFieldSelect(): ConfigOption {\n return {\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n };\n}\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';\nimport { withFormlyFieldSelect } from './select.config';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n DropDownsModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n})\nexport class FormlySelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyCoreSelectModule","i1"],"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EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAXd,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE9B,YAAY;YACZ,mBAAmB;YACnB,eAAe;YAEf,qBAAqB;YACrBA,oBAAsB,EAAAC,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAIb,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,kBAAkB,YAT3B,YAAY;YACZ,mBAAmB;YACnB,eAAe;YAEf,qBAAqB;YACrBD,oBAAsB;AACtB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBAEf,qBAAqB;wBACrBA,oBAAsB;AACtB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;AACF,iBAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 '@progress/kendo-angular-inputs';
|
|
5
|
+
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
6
|
+
import * as i2 from '@angular/forms';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i3 from '@ngx-formly/core';
|
|
9
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
11
|
+
|
|
12
|
+
class FormlyFieldTextArea extends FieldType {
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldTextArea, selector: "formly-field-kendo-textarea", usesInheritance: true, ngImport: i0, template: ` <textarea kendoTextArea [formControl]="formControl" [formlyAttributes]="field"></textarea> `, isInline: true, dependencies: [{ kind: "directive", type: i1.TextAreaDirective, selector: "textarea[kendoTextArea]", inputs: ["autoSize", "value"], outputs: ["valueChange"] }, { kind: "directive", 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]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'formly-field-kendo-textarea',
|
|
20
|
+
template: ` <textarea kendoTextArea [formControl]="formControl" [formlyAttributes]="field"></textarea> `,
|
|
21
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
|
|
25
|
+
function withFormlyFieldTextArea() {
|
|
26
|
+
return {
|
|
27
|
+
types: [
|
|
28
|
+
{
|
|
29
|
+
name: 'textarea',
|
|
30
|
+
component: FormlyFieldTextArea,
|
|
31
|
+
wrappers: ['form-field'],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
class FormlyTextAreaModule {
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
39
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
40
|
+
InputsModule,
|
|
41
|
+
ReactiveFormsModule,
|
|
42
|
+
FormlyFormFieldModule, i3.FormlyModule] }); }
|
|
43
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTextAreaModule, imports: [CommonModule,
|
|
44
|
+
InputsModule,
|
|
45
|
+
ReactiveFormsModule,
|
|
46
|
+
FormlyFormFieldModule,
|
|
47
|
+
FormlyModule.forChild(withFormlyFieldTextArea())] }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyTextAreaModule, decorators: [{
|
|
50
|
+
type: NgModule,
|
|
51
|
+
args: [{
|
|
52
|
+
declarations: [FormlyFieldTextArea],
|
|
53
|
+
imports: [
|
|
54
|
+
CommonModule,
|
|
55
|
+
InputsModule,
|
|
56
|
+
ReactiveFormsModule,
|
|
57
|
+
FormlyFormFieldModule,
|
|
58
|
+
FormlyModule.forChild(withFormlyFieldTextArea()),
|
|
59
|
+
],
|
|
60
|
+
}]
|
|
61
|
+
}] });
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Generated bundle index. Do not edit.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
export { FormlyFieldTextArea, FormlyTextAreaModule, withFormlyFieldTextArea };
|
|
68
|
+
//# sourceMappingURL=ngx-formly-kendo-textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo-textarea.mjs","sources":["../../../../src/ui/kendo/textarea/src/textarea.type.ts","../../../../src/ui/kendo/textarea/src/textarea.config.ts","../../../../src/ui/kendo/textarea/src/textarea.module.ts","../../../../src/ui/kendo/textarea/src/ngx-formly-kendo-textarea.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 TextAreaProps extends FormlyFieldProps {}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-kendo-textarea',\n template: ` <textarea kendoTextArea [formControl]=\"formControl\" [formlyAttributes]=\"field\"></textarea> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldTextArea } from './textarea.type';\n\nexport function withFormlyFieldTextArea(): ConfigOption {\n return {\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\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 { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n InputsModule,\n ReactiveFormsModule,\n\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n})\nexport class FormlyTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAeM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;+GAArE,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,0FAHpB,CAA8F,4FAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,8MAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,E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mB;YAEnB,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAXhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBAEnB,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AACjD,qBAAA;AACF,iBAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { withFormlyFormField, FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';
|
|
2
|
+
import { withFormlyFieldInput, FormlyInputModule } from '@ngx-formly/kendo/input';
|
|
3
|
+
import { withFormlyFieldTextArea, FormlyTextAreaModule } from '@ngx-formly/kendo/textarea';
|
|
4
|
+
import { withFormlyFieldRadio, FormlyRadioModule } from '@ngx-formly/kendo/radio';
|
|
5
|
+
import { withFormlyFieldCheckbox, FormlyCheckboxModule } from '@ngx-formly/kendo/checkbox';
|
|
6
|
+
import { withFormlyFieldSelect, FormlySelectModule } from '@ngx-formly/kendo/select';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { NgModule } from '@angular/core';
|
|
9
|
+
|
|
10
|
+
function withFormlyKendo() {
|
|
11
|
+
return [
|
|
12
|
+
withFormlyFormField(),
|
|
13
|
+
withFormlyFieldInput(),
|
|
14
|
+
withFormlyFieldTextArea(),
|
|
15
|
+
withFormlyFieldRadio(),
|
|
16
|
+
withFormlyFieldCheckbox(),
|
|
17
|
+
withFormlyFieldSelect(),
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class FormlyKendoModule {
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyKendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
23
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyKendoModule, imports: [FormlyFormFieldModule,
|
|
24
|
+
FormlyInputModule,
|
|
25
|
+
FormlyTextAreaModule,
|
|
26
|
+
FormlyRadioModule,
|
|
27
|
+
FormlyCheckboxModule,
|
|
28
|
+
FormlySelectModule] }); }
|
|
29
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyKendoModule, imports: [FormlyFormFieldModule,
|
|
30
|
+
FormlyInputModule,
|
|
31
|
+
FormlyTextAreaModule,
|
|
32
|
+
FormlyRadioModule,
|
|
33
|
+
FormlyCheckboxModule,
|
|
34
|
+
FormlySelectModule] }); }
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyKendoModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
imports: [
|
|
40
|
+
FormlyFormFieldModule,
|
|
41
|
+
FormlyInputModule,
|
|
42
|
+
FormlyTextAreaModule,
|
|
43
|
+
FormlyRadioModule,
|
|
44
|
+
FormlyCheckboxModule,
|
|
45
|
+
FormlySelectModule,
|
|
46
|
+
],
|
|
47
|
+
}]
|
|
48
|
+
}] });
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* Public API Surface of kendo
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Generated bundle index. Do not edit.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
export { FormlyKendoModule, withFormlyKendo };
|
|
59
|
+
//# sourceMappingURL=ngx-formly-kendo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-kendo.mjs","sources":["../../../../src/ui/kendo/src/lib/ui-kendo.config.ts","../../../../src/ui/kendo/src/lib/ui-kendo.module.ts","../../../../src/ui/kendo/src/public_api.ts","../../../../src/ui/kendo/src/ngx-formly-kendo.ts"],"sourcesContent":["import { withFormlyFormField } from '@ngx-formly/kendo/form-field';\nimport { withFormlyFieldInput } from '@ngx-formly/kendo/input';\nimport { withFormlyFieldTextArea } from '@ngx-formly/kendo/textarea';\nimport { withFormlyFieldRadio } from '@ngx-formly/kendo/radio';\nimport { withFormlyFieldCheckbox } from '@ngx-formly/kendo/checkbox';\nimport { withFormlyFieldSelect } from '@ngx-formly/kendo/select';\n\nexport function withFormlyKendo() {\n return [\n withFormlyFormField(),\n withFormlyFieldInput(),\n withFormlyFieldTextArea(),\n withFormlyFieldRadio(),\n withFormlyFieldCheckbox(),\n withFormlyFieldSelect(),\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { FormlyFormFieldModule } from '@ngx-formly/kendo/form-field';\nimport { FormlyInputModule } from '@ngx-formly/kendo/input';\nimport { FormlyTextAreaModule } from '@ngx-formly/kendo/textarea';\nimport { FormlyRadioModule } from '@ngx-formly/kendo/radio';\nimport { FormlyCheckboxModule } from '@ngx-formly/kendo/checkbox';\nimport { FormlySelectModule } from '@ngx-formly/kendo/select';\n\n@NgModule({\n imports: [\n FormlyFormFieldModule,\n FormlyInputModule,\n FormlyTextAreaModule,\n FormlyRadioModule,\n FormlyCheckboxModule,\n FormlySelectModule,\n ],\n})\nexport class FormlyKendoModule {}\n","/*\n * Public API Surface of kendo\n */\n\nexport * from './lib/ui-kendo';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;SAOgB,eAAe,GAAA;IAC7B,OAAO;AACL,QAAA,mBAAmB,EAAE;AACrB,QAAA,oBAAoB,EAAE;AACtB,QAAA,uBAAuB,EAAE;AACzB,QAAA,oBAAoB,EAAE;AACtB,QAAA,uBAAuB,EAAE;AACzB,QAAA,qBAAqB,EAAE;KACxB;AACH;;MCEa,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,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,YAR1B,qBAAqB;YACrB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,oBAAoB;YACpB,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAGT,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,YAR1B,qBAAqB;YACrB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,oBAAoB;YACpB,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4FAGT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAV7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,qBAAqB;wBACrB,iBAAiB;wBACjB,oBAAoB;wBACpB,iBAAiB;wBACjB,oBAAoB;wBACpB,kBAAkB;AACnB,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -4,5 +4,5 @@ export declare abstract class FieldType<F extends FormlyFieldConfig = FormlyFiel
|
|
|
4
4
|
private set formControls(value);
|
|
5
5
|
private get formField();
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldType<any>, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldType<any>, never, never, {}, {}, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldType<any>, never, never, {}, {}, never, never, false, never>;
|
|
8
8
|
}
|
|
@@ -11,5 +11,5 @@ export declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConf
|
|
|
11
11
|
formfield: FormFieldComponent;
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-kendo-form-field", never, {}, {}, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-kendo-form-field", never, {}, {}, never, never, false, never>;
|
|
15
15
|
}
|
package/input/input.type.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-kendo-input", never, {}, {}, never, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-kendo-input", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
package/input/public_api.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withFormlyKendo(): import("@ngx-formly/core").ConfigOption[];
|
package/lib/ui-kendo.d.ts
CHANGED