@ngx-formly/ionic 7.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -9
- package/checkbox/index.d.ts +30 -5
- package/datetime/index.d.ts +54 -5
- package/fesm2022/ngx-formly-ionic-checkbox.mjs +9 -9
- package/fesm2022/ngx-formly-ionic-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-datetime.mjs +41 -13
- package/fesm2022/ngx-formly-ionic-datetime.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-form-field.mjs +45 -34
- package/fesm2022/ngx-formly-ionic-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-input.mjs +35 -34
- package/fesm2022/ngx-formly-ionic-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-radio.mjs +28 -30
- package/fesm2022/ngx-formly-ionic-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-select.mjs +30 -26
- package/fesm2022/ngx-formly-ionic-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-slider.mjs +11 -11
- package/fesm2022/ngx-formly-ionic-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-textarea.mjs +11 -11
- package/fesm2022/ngx-formly-ionic-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-toggle.mjs +9 -9
- package/fesm2022/ngx-formly-ionic-toggle.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic.mjs +4 -4
- package/form-field/index.d.ts +37 -5
- package/index.d.ts +21 -5
- package/input/index.d.ts +30 -5
- package/package.json +2 -22
- package/radio/index.d.ts +30 -5
- package/select/index.d.ts +42 -5
- package/slider/index.d.ts +30 -5
- package/textarea/index.d.ts +30 -5
- package/toggle/index.d.ts +30 -5
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -12
- package/checkbox/checkbox.type.d.ts +0 -14
- package/checkbox/public_api.d.ts +0 -3
- package/datetime/datetime.config.d.ts +0 -2
- package/datetime/datetime.module.d.ts +0 -12
- package/datetime/datetime.type.d.ts +0 -38
- package/datetime/public_api.d.ts +0 -3
- package/esm2022/checkbox/checkbox.config.mjs +0 -17
- package/esm2022/checkbox/checkbox.module.mjs +0 -36
- package/esm2022/checkbox/checkbox.type.mjs +0 -23
- package/esm2022/checkbox/ngx-formly-ionic-checkbox.mjs +0 -5
- package/esm2022/checkbox/public_api.mjs +0 -4
- package/esm2022/datetime/datetime.config.mjs +0 -13
- package/esm2022/datetime/datetime.module.mjs +0 -36
- package/esm2022/datetime/datetime.type.mjs +0 -129
- package/esm2022/datetime/ngx-formly-ionic-datetime.mjs +0 -5
- package/esm2022/datetime/public_api.mjs +0 -3
- package/esm2022/form-field/form-field.config.mjs +0 -12
- package/esm2022/form-field/form-field.module.mjs +0 -24
- package/esm2022/form-field/form-field.wrapper.mjs +0 -44
- package/esm2022/form-field/formly.attributes.mjs +0 -31
- package/esm2022/form-field/ngx-formly-ionic-form-field.mjs +0 -5
- package/esm2022/form-field/public_api.mjs +0 -4
- package/esm2022/input/input.config.mjs +0 -32
- package/esm2022/input/input.module.mjs +0 -37
- package/esm2022/input/input.type.mjs +0 -50
- package/esm2022/input/ngx-formly-ionic-input.mjs +0 -5
- package/esm2022/input/public_api.mjs +0 -4
- package/esm2022/lib/ui-ionic.config.mjs +0 -17
- package/esm2022/lib/ui-ionic.mjs +0 -3
- package/esm2022/lib/ui-ionic.module.mjs +0 -50
- package/esm2022/ngx-formly-ionic.mjs +0 -5
- package/esm2022/public_api.mjs +0 -5
- package/esm2022/radio/ngx-formly-ionic-radio.mjs +0 -5
- package/esm2022/radio/public_api.mjs +0 -4
- package/esm2022/radio/radio.config.mjs +0 -13
- package/esm2022/radio/radio.module.mjs +0 -40
- package/esm2022/radio/radio.type.mjs +0 -45
- package/esm2022/select/ngx-formly-ionic-select.mjs +0 -5
- package/esm2022/select/public_api.mjs +0 -4
- package/esm2022/select/select.config.mjs +0 -14
- package/esm2022/select/select.module.mjs +0 -41
- package/esm2022/select/select.type.mjs +0 -69
- package/esm2022/slider/ngx-formly-ionic-slider.mjs +0 -5
- package/esm2022/slider/public_api.mjs +0 -3
- package/esm2022/slider/slider.config.mjs +0 -10
- package/esm2022/slider/slider.module.mjs +0 -37
- package/esm2022/slider/slider.type.mjs +0 -39
- package/esm2022/textarea/ngx-formly-ionic-textarea.mjs +0 -5
- package/esm2022/textarea/public_api.mjs +0 -4
- package/esm2022/textarea/textarea.config.mjs +0 -13
- package/esm2022/textarea/textarea.module.mjs +0 -37
- package/esm2022/textarea/textarea.type.mjs +0 -35
- package/esm2022/toggle/ngx-formly-ionic-toggle.mjs +0 -5
- package/esm2022/toggle/public_api.mjs +0 -3
- package/esm2022/toggle/toggle.config.mjs +0 -13
- package/esm2022/toggle/toggle.module.mjs +0 -36
- package/esm2022/toggle/toggle.type.mjs +0 -23
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -12
- package/form-field/form-field.wrapper.d.ts +0 -12
- package/form-field/formly.attributes.d.ts +0 -9
- package/form-field/public_api.d.ts +0 -4
- package/input/input.config.d.ts +0 -2
- package/input/input.module.d.ts +0 -12
- package/input/input.type.d.ts +0 -14
- package/input/public_api.d.ts +0 -3
- package/lib/ui-ionic.config.d.ts +0 -1
- package/lib/ui-ionic.d.ts +0 -2
- package/lib/ui-ionic.module.d.ts +0 -15
- package/public_api.d.ts +0 -1
- package/radio/public_api.d.ts +0 -3
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -13
- package/radio/radio.type.d.ts +0 -13
- package/select/public_api.d.ts +0 -3
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -13
- package/select/select.type.d.ts +0 -25
- package/slider/public_api.d.ts +0 -3
- package/slider/slider.config.d.ts +0 -2
- package/slider/slider.module.d.ts +0 -12
- package/slider/slider.type.d.ts +0 -14
- package/textarea/public_api.d.ts +0 -3
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -12
- package/textarea/textarea.type.d.ts +0 -14
- package/toggle/public_api.d.ts +0 -3
- package/toggle/toggle.config.d.ts +0 -2
- package/toggle/toggle.module.d.ts +0 -12
- package/toggle/toggle.type.d.ts +0 -14
|
@@ -11,20 +11,20 @@ import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
|
|
13
13
|
class FormlyFieldTextArea extends FieldType {
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-ion-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
16
16
|
<ion-textarea
|
|
17
17
|
[formControl]="formControl"
|
|
18
18
|
[ionFormlyAttributes]="field"
|
|
19
19
|
[cols]="props.cols"
|
|
20
20
|
[rows]="props.rows"
|
|
21
21
|
[label]="props.label"
|
|
22
|
-
[labelPlacement]="props.labelPosition"
|
|
22
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
23
23
|
>
|
|
24
24
|
</ion-textarea>
|
|
25
|
-
`, isInline: true, styles: [":host{display:inherit}\n"], 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.IonTextarea, selector: "ion-textarea", inputs: ["autoGrow", "autocapitalize", "autofocus", "clearOnEdit", "color", "cols", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "maxlength", "minlength", "mode", "name", "placeholder", "readonly", "required", "rows", "shape", "spellcheck", "value", "wrap"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], 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.IonTextarea, selector: "ion-textarea", inputs: ["autoGrow", "autocapitalize", "autofocus", "clearOnEdit", "color", "cols", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "maxlength", "minlength", "mode", "name", "placeholder", "readonly", "required", "rows", "shape", "spellcheck", "value", "wrap"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
26
|
}
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
29
|
args: [{ selector: 'formly-field-ion-textarea', template: `
|
|
30
30
|
<ion-textarea
|
|
@@ -33,10 +33,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
33
33
|
[cols]="props.cols"
|
|
34
34
|
[rows]="props.rows"
|
|
35
35
|
[label]="props.label"
|
|
36
|
-
[labelPlacement]="props.labelPosition"
|
|
36
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
37
37
|
>
|
|
38
38
|
</ion-textarea>
|
|
39
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
39
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
|
|
40
40
|
}] });
|
|
41
41
|
|
|
42
42
|
function withFormlyFieldTextArea() {
|
|
@@ -52,18 +52,18 @@ function withFormlyFieldTextArea() {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
class FormlyTextAreaModule {
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
56
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
57
57
|
ReactiveFormsModule,
|
|
58
58
|
IonicModule,
|
|
59
59
|
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
60
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
60
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyTextAreaModule, imports: [CommonModule,
|
|
61
61
|
ReactiveFormsModule,
|
|
62
62
|
IonicModule,
|
|
63
63
|
FormlyFormFieldModule,
|
|
64
64
|
FormlyModule.forChild(withFormlyFieldTextArea())] }); }
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyTextAreaModule, decorators: [{
|
|
67
67
|
type: NgModule,
|
|
68
68
|
args: [{
|
|
69
69
|
declarations: [FormlyFieldTextArea],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-textarea.mjs","sources":["../../../../src/ui/ionic/textarea/src/textarea.type.ts","../../../../src/ui/ionic/textarea/src/textarea.config.ts","../../../../src/ui/ionic/textarea/src/textarea.module.ts","../../../../src/ui/ionic/textarea/src/ngx-formly-ionic-textarea.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\n\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/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-ion-textarea',\n template: `\n <ion-textarea\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [cols]=\"props.cols\"\n [rows]=\"props.rows\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition\"\n >\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\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 { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-textarea.mjs","sources":["../../../../src/ui/ionic/textarea/src/textarea.type.ts","../../../../src/ui/ionic/textarea/src/textarea.config.ts","../../../../src/ui/ionic/textarea/src/textarea.module.ts","../../../../src/ui/ionic/textarea/src/ngx-formly-ionic-textarea.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\n\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/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-ion-textarea',\n template: `\n <ion-textarea\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [cols]=\"props.cols\"\n [rows]=\"props.rows\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n >\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\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 { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA4BM,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,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,eAAA,EAAA,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B,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AACjD,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACpBD;;AAEG;;;;"}
|
|
@@ -11,20 +11,20 @@ import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
|
|
13
13
|
class FormlyFieldToggle extends FieldType {
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldToggle, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldToggle, isStandalone: false, selector: "formly-field-ion-toggle", usesInheritance: true, ngImport: i0, template: `
|
|
16
16
|
<ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
17
17
|
{{ props.label }}
|
|
18
18
|
</ion-toggle>
|
|
19
|
-
`, isInline: true, styles: [":host{display:inherit}\n"], 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.IonToggle, selector: "ion-toggle", inputs: ["alignment", "checked", "color", "disabled", "enableOnOffLabels", "justify", "labelPlacement", "mode", "name", "value"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], 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.IonToggle, selector: "ion-toggle", inputs: ["alignment", "checked", "color", "disabled", "enableOnOffLabels", "errorText", "helperText", "justify", "labelPlacement", "mode", "name", "required", "value"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldToggle, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{ selector: 'formly-field-ion-toggle', template: `
|
|
24
24
|
<ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
25
25
|
{{ props.label }}
|
|
26
26
|
</ion-toggle>
|
|
27
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
27
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
|
|
28
28
|
}] });
|
|
29
29
|
|
|
30
30
|
function withFormlyFieldToggle() {
|
|
@@ -40,18 +40,18 @@ function withFormlyFieldToggle() {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
class FormlyToggleModule {
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
44
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyToggleModule, declarations: [FormlyFieldToggle], imports: [CommonModule,
|
|
45
45
|
ReactiveFormsModule,
|
|
46
46
|
IonicModule,
|
|
47
47
|
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
48
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
48
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyToggleModule, imports: [CommonModule,
|
|
49
49
|
ReactiveFormsModule,
|
|
50
50
|
IonicModule,
|
|
51
51
|
FormlyFormFieldModule,
|
|
52
52
|
FormlyModule.forChild(withFormlyFieldToggle())] }); }
|
|
53
53
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyToggleModule, decorators: [{
|
|
55
55
|
type: NgModule,
|
|
56
56
|
args: [{
|
|
57
57
|
declarations: [FormlyFieldToggle],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-toggle.mjs","sources":["../../../../src/ui/ionic/toggle/src/toggle.type.ts","../../../../src/ui/ionic/toggle/src/toggle.config.ts","../../../../src/ui/ionic/toggle/src/toggle.module.ts","../../../../src/ui/ionic/toggle/src/ngx-formly-ionic-toggle.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface ToggleProps extends FormlyFieldProps {}\n\nexport interface FormlyToggleFieldConfig extends FormlyFieldConfig<ToggleProps> {\n type: 'toggle' | Type<FormlyFieldToggle>;\n}\n\n@Component({\n selector: 'formly-field-ion-toggle',\n template: `\n <ion-toggle [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\">\n {{ props.label }}\n </ion-toggle>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./toggle.type.scss'],\n})\nexport class FormlyFieldToggle extends FieldType<FieldTypeConfig<ToggleProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldToggle } from './toggle.type';\n\nexport function withFormlyFieldToggle(): ConfigOption {\n return {\n types: [\n {\n name: 'toggle',\n component: FormlyFieldToggle,\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 { IonicModule } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldToggle } from './toggle.type';\nimport { withFormlyFieldToggle } from './toggle.config';\n\n@NgModule({\n declarations: [FormlyFieldToggle],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldToggle()),\n ],\n})\nexport class FormlyToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-toggle.mjs","sources":["../../../../src/ui/ionic/toggle/src/toggle.type.ts","../../../../src/ui/ionic/toggle/src/toggle.config.ts","../../../../src/ui/ionic/toggle/src/toggle.module.ts","../../../../src/ui/ionic/toggle/src/ngx-formly-ionic-toggle.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface ToggleProps extends FormlyFieldProps {}\n\nexport interface FormlyToggleFieldConfig extends FormlyFieldConfig<ToggleProps> {\n type: 'toggle' | Type<FormlyFieldToggle>;\n}\n\n@Component({\n selector: 'formly-field-ion-toggle',\n template: `\n <ion-toggle [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\">\n {{ props.label }}\n </ion-toggle>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./toggle.type.scss'],\n standalone: false,\n})\nexport class FormlyFieldToggle extends FieldType<FieldTypeConfig<ToggleProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldToggle } from './toggle.type';\n\nexport function withFormlyFieldToggle(): ConfigOption {\n return {\n types: [\n {\n name: 'toggle',\n component: FormlyFieldToggle,\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 { IonicModule } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldToggle } from './toggle.type';\nimport { withFormlyFieldToggle } from './toggle.config';\n\n@NgModule({\n declarations: [FormlyFieldToggle],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldToggle()),\n ],\n})\nexport class FormlyToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqBM,MAAO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A,CAAA,CAAA;;4FAGrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAV9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;AACF,iBAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -22,8 +22,8 @@ function withFormlyIonic() {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
class FormlyIonicModule {
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyIonicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
26
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyIonicModule, imports: [FormlyFormFieldModule,
|
|
27
27
|
FormlyInputModule,
|
|
28
28
|
FormlyTextAreaModule,
|
|
29
29
|
FormlyRadioModule,
|
|
@@ -32,7 +32,7 @@ class FormlyIonicModule {
|
|
|
32
32
|
FormlyToggleModule,
|
|
33
33
|
FormlySliderModule,
|
|
34
34
|
FormlyDatetimeModule], exports: [FormlyFormFieldModule] }); }
|
|
35
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
35
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyIonicModule, imports: [FormlyFormFieldModule,
|
|
36
36
|
FormlyInputModule,
|
|
37
37
|
FormlyTextAreaModule,
|
|
38
38
|
FormlyRadioModule,
|
|
@@ -42,7 +42,7 @@ class FormlyIonicModule {
|
|
|
42
42
|
FormlySliderModule,
|
|
43
43
|
FormlyDatetimeModule, FormlyFormFieldModule] }); }
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyIonicModule, decorators: [{
|
|
46
46
|
type: NgModule,
|
|
47
47
|
args: [{
|
|
48
48
|
imports: [
|
package/form-field/index.d.ts
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FormlyFieldProps as FormlyFieldProps$1, FieldWrapper, FormlyFieldConfig, FormlyAttributes } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Renderer2, ElementRef } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ionic/angular';
|
|
6
|
+
import { IonItem, IonLabel } from '@ionic/angular';
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
|
+
import * as i4 from '@angular/forms';
|
|
9
|
+
|
|
10
|
+
declare function withFormlyFormField(): ConfigOption;
|
|
11
|
+
|
|
12
|
+
interface FormlyFieldProps extends FormlyFieldProps$1 {
|
|
13
|
+
hideLabel?: boolean;
|
|
14
|
+
hideRequiredMarker?: boolean;
|
|
15
|
+
itemLines?: IonItem['lines'];
|
|
16
|
+
labelPosition?: IonLabel['position'];
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-ion-form-field", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class IonFormlyAttributes extends FormlyAttributes {
|
|
24
|
+
field: FormlyFieldConfig;
|
|
25
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, _document: any);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonFormlyAttributes, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IonFormlyAttributes, "[ionFormlyAttributes]", never, { "field": { "alias": "ionFormlyAttributes"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class FormlyFormFieldModule {
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFormFieldModule, never>;
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyFormFieldModule, [typeof FormlyWrapperFormField, typeof IonFormlyAttributes], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.IonicModule, typeof i6.FormlyModule], [typeof IonFormlyAttributes]>;
|
|
33
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyFormFieldModule>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { FormlyFormFieldModule, withFormlyFormField, IonFormlyAttributes as ɵIonFormlyAttributes };
|
|
37
|
+
export type { FormlyFieldProps };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _ngx_formly_core from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import * as i1 from '@ngx-formly/ionic/form-field';
|
|
4
|
+
import * as i2 from '@ngx-formly/ionic/input';
|
|
5
|
+
import * as i3 from '@ngx-formly/ionic/textarea';
|
|
6
|
+
import * as i4 from '@ngx-formly/ionic/radio';
|
|
7
|
+
import * as i5 from '@ngx-formly/ionic/checkbox';
|
|
8
|
+
import * as i6 from '@ngx-formly/ionic/select';
|
|
9
|
+
import * as i7 from '@ngx-formly/ionic/toggle';
|
|
10
|
+
import * as i8 from '@ngx-formly/ionic/slider';
|
|
11
|
+
import * as i9 from '@ngx-formly/ionic/datetime';
|
|
12
|
+
|
|
13
|
+
declare function withFormlyIonic(): _ngx_formly_core.ConfigOption[];
|
|
14
|
+
|
|
15
|
+
declare class FormlyIonicModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyIonicModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyIonicModule, never, [typeof i1.FormlyFormFieldModule, typeof i2.FormlyInputModule, typeof i3.FormlyTextAreaModule, typeof i4.FormlyRadioModule, typeof i5.FormlyCheckboxModule, typeof i6.FormlySelectModule, typeof i7.FormlyToggleModule, typeof i8.FormlySliderModule, typeof i9.FormlyDatetimeModule], [typeof i1.FormlyFormFieldModule]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyIonicModule>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { FormlyIonicModule, withFormlyIonic };
|
package/input/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
6
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/forms';
|
|
9
|
+
import * as i4 from '@ionic/angular';
|
|
10
|
+
|
|
11
|
+
declare function withFormlyFieldInput(): ConfigOption;
|
|
12
|
+
|
|
13
|
+
interface InputProps extends FormlyFieldProps {
|
|
14
|
+
}
|
|
15
|
+
interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
|
|
16
|
+
type: 'input' | Type<FormlyFieldInput>;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-ion-input", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class FormlyInputModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyInputModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyInputModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FormlyFieldInput, FormlyInputModule, withFormlyFieldInput };
|
|
30
|
+
export type { FormlyInputFieldConfig };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-formly/ionic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@ngx-formly/core": "
|
|
9
|
+
"@ngx-formly/core": "9.0.0",
|
|
10
10
|
"@ionic/angular": "^8.0.0"
|
|
11
11
|
},
|
|
12
12
|
"module": "fesm2022/ngx-formly-ionic.mjs",
|
|
@@ -17,62 +17,42 @@
|
|
|
17
17
|
},
|
|
18
18
|
".": {
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
|
-
"esm2022": "./esm2022/ngx-formly-ionic.mjs",
|
|
21
|
-
"esm": "./esm2022/ngx-formly-ionic.mjs",
|
|
22
20
|
"default": "./fesm2022/ngx-formly-ionic.mjs"
|
|
23
21
|
},
|
|
24
22
|
"./checkbox": {
|
|
25
23
|
"types": "./checkbox/index.d.ts",
|
|
26
|
-
"esm2022": "./esm2022/checkbox/ngx-formly-ionic-checkbox.mjs",
|
|
27
|
-
"esm": "./esm2022/checkbox/ngx-formly-ionic-checkbox.mjs",
|
|
28
24
|
"default": "./fesm2022/ngx-formly-ionic-checkbox.mjs"
|
|
29
25
|
},
|
|
30
26
|
"./datetime": {
|
|
31
27
|
"types": "./datetime/index.d.ts",
|
|
32
|
-
"esm2022": "./esm2022/datetime/ngx-formly-ionic-datetime.mjs",
|
|
33
|
-
"esm": "./esm2022/datetime/ngx-formly-ionic-datetime.mjs",
|
|
34
28
|
"default": "./fesm2022/ngx-formly-ionic-datetime.mjs"
|
|
35
29
|
},
|
|
36
30
|
"./form-field": {
|
|
37
31
|
"types": "./form-field/index.d.ts",
|
|
38
|
-
"esm2022": "./esm2022/form-field/ngx-formly-ionic-form-field.mjs",
|
|
39
|
-
"esm": "./esm2022/form-field/ngx-formly-ionic-form-field.mjs",
|
|
40
32
|
"default": "./fesm2022/ngx-formly-ionic-form-field.mjs"
|
|
41
33
|
},
|
|
42
34
|
"./input": {
|
|
43
35
|
"types": "./input/index.d.ts",
|
|
44
|
-
"esm2022": "./esm2022/input/ngx-formly-ionic-input.mjs",
|
|
45
|
-
"esm": "./esm2022/input/ngx-formly-ionic-input.mjs",
|
|
46
36
|
"default": "./fesm2022/ngx-formly-ionic-input.mjs"
|
|
47
37
|
},
|
|
48
38
|
"./radio": {
|
|
49
39
|
"types": "./radio/index.d.ts",
|
|
50
|
-
"esm2022": "./esm2022/radio/ngx-formly-ionic-radio.mjs",
|
|
51
|
-
"esm": "./esm2022/radio/ngx-formly-ionic-radio.mjs",
|
|
52
40
|
"default": "./fesm2022/ngx-formly-ionic-radio.mjs"
|
|
53
41
|
},
|
|
54
42
|
"./select": {
|
|
55
43
|
"types": "./select/index.d.ts",
|
|
56
|
-
"esm2022": "./esm2022/select/ngx-formly-ionic-select.mjs",
|
|
57
|
-
"esm": "./esm2022/select/ngx-formly-ionic-select.mjs",
|
|
58
44
|
"default": "./fesm2022/ngx-formly-ionic-select.mjs"
|
|
59
45
|
},
|
|
60
46
|
"./slider": {
|
|
61
47
|
"types": "./slider/index.d.ts",
|
|
62
|
-
"esm2022": "./esm2022/slider/ngx-formly-ionic-slider.mjs",
|
|
63
|
-
"esm": "./esm2022/slider/ngx-formly-ionic-slider.mjs",
|
|
64
48
|
"default": "./fesm2022/ngx-formly-ionic-slider.mjs"
|
|
65
49
|
},
|
|
66
50
|
"./textarea": {
|
|
67
51
|
"types": "./textarea/index.d.ts",
|
|
68
|
-
"esm2022": "./esm2022/textarea/ngx-formly-ionic-textarea.mjs",
|
|
69
|
-
"esm": "./esm2022/textarea/ngx-formly-ionic-textarea.mjs",
|
|
70
52
|
"default": "./fesm2022/ngx-formly-ionic-textarea.mjs"
|
|
71
53
|
},
|
|
72
54
|
"./toggle": {
|
|
73
55
|
"types": "./toggle/index.d.ts",
|
|
74
|
-
"esm2022": "./esm2022/toggle/ngx-formly-ionic-toggle.mjs",
|
|
75
|
-
"esm": "./esm2022/toggle/ngx-formly-ionic-toggle.mjs",
|
|
76
56
|
"default": "./fesm2022/ngx-formly-ionic-toggle.mjs"
|
|
77
57
|
}
|
|
78
58
|
},
|
package/radio/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i7 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
6
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/forms';
|
|
9
|
+
import * as i4 from '@ionic/angular';
|
|
10
|
+
import * as i6 from '@ngx-formly/core/select';
|
|
11
|
+
|
|
12
|
+
declare function withFormlyFieldRadio(): ConfigOption;
|
|
13
|
+
|
|
14
|
+
type RadioProps = FormlyFieldProps;
|
|
15
|
+
interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
|
|
16
|
+
type: 'radio' | Type<FormlyFieldRadio>;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-ion-radio", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class FormlyRadioModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyRadioModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyRadioModule, [typeof FormlyFieldRadio], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyRadioModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FormlyFieldRadio, FormlyRadioModule, withFormlyFieldRadio };
|
|
30
|
+
export type { FormlyRadioFieldConfig };
|
package/select/index.d.ts
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i7 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i6 from '@ngx-formly/core/select';
|
|
6
|
+
import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
|
7
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
8
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
9
|
+
import * as i2 from '@angular/common';
|
|
10
|
+
import * as i3 from '@angular/forms';
|
|
11
|
+
import * as i4 from '@ionic/angular';
|
|
12
|
+
|
|
13
|
+
declare function withFormlyFieldSelect(): ConfigOption;
|
|
14
|
+
|
|
15
|
+
interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
|
|
16
|
+
compareWith?: ((currentValue: any, compareValue: any) => boolean) | null | string | undefined;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
interface?: 'action-sheet' | 'alert' | 'popover';
|
|
19
|
+
okText?: string;
|
|
20
|
+
cancelText?: string;
|
|
21
|
+
}
|
|
22
|
+
interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
|
|
23
|
+
type: 'select' | Type<FormlyFieldSelect>;
|
|
24
|
+
}
|
|
25
|
+
declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
|
|
26
|
+
defaultOptions: {
|
|
27
|
+
props: {
|
|
28
|
+
compareWith(o1: any, o2: any): boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-ion-select", never, {}, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class FormlySelectModule {
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySelectModule, never>;
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlySelectModule, [typeof FormlyFieldSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
|
|
38
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlySelectModule>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { FormlyFieldSelect, FormlySelectModule, withFormlyFieldSelect };
|
|
42
|
+
export type { FormlySelectFieldConfig };
|
package/slider/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FormlyFieldConfig, FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
6
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/forms';
|
|
9
|
+
import * as i4 from '@ionic/angular';
|
|
10
|
+
|
|
11
|
+
declare function withFormlyFieldSlider(): ConfigOption;
|
|
12
|
+
|
|
13
|
+
interface SliderProps extends FormlyFieldProps {
|
|
14
|
+
}
|
|
15
|
+
interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {
|
|
16
|
+
type: 'slider' | Type<FormlyFieldSlider>;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSlider, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSlider, "formly-field-ion-range", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class FormlySliderModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlySliderModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlySliderModule, [typeof FormlyFieldSlider], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlySliderModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FormlySliderModule, withFormlyFieldSlider };
|
|
30
|
+
export type { FormlySliderFieldConfig };
|
package/textarea/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
6
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/forms';
|
|
9
|
+
import * as i4 from '@ionic/angular';
|
|
10
|
+
|
|
11
|
+
declare function withFormlyFieldTextArea(): ConfigOption;
|
|
12
|
+
|
|
13
|
+
interface TextAreaProps extends FormlyFieldProps {
|
|
14
|
+
}
|
|
15
|
+
interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
|
|
16
|
+
type: 'textarea' | Type<FormlyFieldTextArea>;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-ion-textarea", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class FormlyTextAreaModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyTextAreaModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyTextAreaModule, [typeof FormlyFieldTextArea], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyTextAreaModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FormlyFieldTextArea, FormlyTextAreaModule, withFormlyFieldTextArea };
|
|
30
|
+
export type { FormlyTextAreaFieldConfig };
|
package/toggle/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i6 from '@ngx-formly/core';
|
|
2
|
+
import { ConfigOption, FormlyFieldConfig, FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Type } from '@angular/core';
|
|
5
|
+
import * as i5 from '@ngx-formly/ionic/form-field';
|
|
6
|
+
import { FormlyFieldProps } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/forms';
|
|
9
|
+
import * as i4 from '@ionic/angular';
|
|
10
|
+
|
|
11
|
+
declare function withFormlyFieldToggle(): ConfigOption;
|
|
12
|
+
|
|
13
|
+
interface ToggleProps extends FormlyFieldProps {
|
|
14
|
+
}
|
|
15
|
+
interface FormlyToggleFieldConfig extends FormlyFieldConfig<ToggleProps> {
|
|
16
|
+
type: 'toggle' | Type<FormlyFieldToggle>;
|
|
17
|
+
}
|
|
18
|
+
declare class FormlyFieldToggle extends FieldType<FieldTypeConfig<ToggleProps>> {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldToggle, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldToggle, "formly-field-ion-toggle", never, {}, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class FormlyToggleModule {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyToggleModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyToggleModule, [typeof FormlyFieldToggle], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyToggleModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { FormlyToggleModule, withFormlyFieldToggle };
|
|
30
|
+
export type { FormlyToggleFieldConfig };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./checkbox.type";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@ionic/angular";
|
|
6
|
-
import * as i5 from "@ngx-formly/ionic/form-field";
|
|
7
|
-
import * as i6 from "@ngx-formly/core";
|
|
8
|
-
export declare class FormlyCheckboxModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCheckboxModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCheckboxModule, [typeof i1.FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCheckboxModule>;
|
|
12
|
-
}
|