@ngx-formly/ionic 8.0.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 -19
- package/checkbox/index.d.ts +30 -5
- package/datetime/index.d.ts +54 -5
- package/fesm2022/ngx-formly-ionic-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-ionic-datetime.mjs +39 -11
- package/fesm2022/ngx-formly-ionic-datetime.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-form-field.mjs +19 -13
- package/fesm2022/ngx-formly-ionic-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-input.mjs +11 -9
- package/fesm2022/ngx-formly-ionic-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-radio.mjs +7 -7
- package/fesm2022/ngx-formly-ionic-select.mjs +9 -9
- package/fesm2022/ngx-formly-ionic-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-slider.mjs +9 -9
- package/fesm2022/ngx-formly-ionic-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-textarea.mjs +9 -9
- package/fesm2022/ngx-formly-ionic-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-toggle.mjs +7 -7
- 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 -2
- 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/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
|
@@ -14,8 +14,8 @@ import * as i5 from '@ngx-formly/core/select';
|
|
|
14
14
|
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
15
15
|
|
|
16
16
|
class FormlyFieldRadio extends FieldType {
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: FormlyFieldRadio, isStandalone: false, selector: "formly-field-ion-radio", usesInheritance: true, ngImport: i0, template: `
|
|
19
19
|
<ion-list>
|
|
20
20
|
<ion-list-header>{{ props.label }}</ion-list-header>
|
|
21
21
|
<ion-radio-group [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
@@ -30,7 +30,7 @@ class FormlyFieldRadio extends FieldType {
|
|
|
30
30
|
</ion-list>
|
|
31
31
|
`, isInline: true, styles: [":host{display:inherit}:host ion-list{flex:1}\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.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i2.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i2.IonListHeader, selector: "ion-list-header", inputs: ["color", "lines", "mode"] }, { kind: "component", type: i2.IonRadio, selector: "ion-radio", inputs: ["alignment", "color", "disabled", "justify", "labelPlacement", "mode", "name", "value"] }, { kind: "component", type: i2.IonRadioGroup, selector: "ion-radio-group", inputs: ["allowEmptySelection", "compareWith", "errorText", "helperText", "name", "value"] }, { kind: "directive", type: i2.SelectValueAccessor, selector: "ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: 'formly-field-ion-radio', template: `
|
|
36
36
|
<ion-list>
|
|
@@ -61,20 +61,20 @@ function withFormlyFieldRadio() {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class FormlyRadioModule {
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
65
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
65
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
66
66
|
ReactiveFormsModule,
|
|
67
67
|
IonicModule,
|
|
68
68
|
FormlyFormFieldModule,
|
|
69
69
|
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
70
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
70
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyRadioModule, imports: [CommonModule,
|
|
71
71
|
ReactiveFormsModule,
|
|
72
72
|
IonicModule,
|
|
73
73
|
FormlyFormFieldModule,
|
|
74
74
|
FormlySelectModule,
|
|
75
75
|
FormlyModule.forChild(withFormlyFieldRadio())] }); }
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyRadioModule, decorators: [{
|
|
78
78
|
type: NgModule,
|
|
79
79
|
args: [{
|
|
80
80
|
declarations: [FormlyFieldRadio],
|
|
@@ -24,8 +24,8 @@ class FormlyFieldSelect extends FieldType {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-ion-select", usesInheritance: true, ngImport: i0, template: `
|
|
29
29
|
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
30
30
|
@if (props.options | formlySelectOptions: field | async; as selectOptions) {
|
|
31
31
|
<ion-select
|
|
@@ -39,7 +39,7 @@ class FormlyFieldSelect extends FieldType {
|
|
|
39
39
|
[okText]="props.okText"
|
|
40
40
|
[cancelText]="props.cancelText"
|
|
41
41
|
[label]="props.label"
|
|
42
|
-
[labelPlacement]="props.labelPosition"
|
|
42
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
43
43
|
>
|
|
44
44
|
@for (option of selectOptions; track option) {
|
|
45
45
|
<ion-select-option [value]="option.value" [disabled]="option.disabled">
|
|
@@ -50,7 +50,7 @@ class FormlyFieldSelect extends FieldType {
|
|
|
50
50
|
}
|
|
51
51
|
`, 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.IonSelect, selector: "ion-select", inputs: ["cancelText", "color", "compareWith", "disabled", "errorText", "expandedIcon", "fill", "helperText", "interface", "interfaceOptions", "justify", "label", "labelPlacement", "mode", "multiple", "name", "okText", "placeholder", "required", "selectedText", "shape", "toggleIcon", "value"] }, { kind: "component", type: i2.IonSelectOption, selector: "ion-select-option", inputs: ["disabled", "value"] }, { kind: "directive", type: i2.SelectValueAccessor, selector: "ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
54
54
|
type: Component,
|
|
55
55
|
args: [{ selector: 'formly-field-ion-select', template: `
|
|
56
56
|
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
66
66
|
[okText]="props.okText"
|
|
67
67
|
[cancelText]="props.cancelText"
|
|
68
68
|
[label]="props.label"
|
|
69
|
-
[labelPlacement]="props.labelPosition"
|
|
69
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
70
70
|
>
|
|
71
71
|
@for (option of selectOptions; track option) {
|
|
72
72
|
<ion-select-option [value]="option.value" [disabled]="option.disabled">
|
|
@@ -92,20 +92,20 @@ function withFormlyFieldSelect() {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
class FormlySelectModule {
|
|
95
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
96
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
96
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlySelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
97
97
|
ReactiveFormsModule,
|
|
98
98
|
IonicModule,
|
|
99
99
|
FormlyFormFieldModule,
|
|
100
100
|
FormlySelectModule$1, i1$1.FormlyModule] }); }
|
|
101
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
101
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySelectModule, imports: [CommonModule,
|
|
102
102
|
ReactiveFormsModule,
|
|
103
103
|
IonicModule,
|
|
104
104
|
FormlyFormFieldModule,
|
|
105
105
|
FormlySelectModule$1,
|
|
106
106
|
FormlyModule.forChild(withFormlyFieldSelect())] }); }
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySelectModule, decorators: [{
|
|
109
109
|
type: NgModule,
|
|
110
110
|
args: [{
|
|
111
111
|
declarations: [FormlyFieldSelect],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-select.mjs","sources":["../../../../src/ui/ionic/select/src/select.type.ts","../../../../src/ui/ionic/select/src/select.config.ts","../../../../src/ui/ionic/select/src/select.module.ts","../../../../src/ui/ionic/select/src/ngx-formly-ionic-select.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\n\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n compareWith?: ((currentValue: any, compareValue: any) => boolean) | null | string | undefined;\n multiple?: boolean;\n interface?: 'action-sheet' | 'alert' | 'popover';\n okText?: string;\n cancelText?: string;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-ion-select',\n template: `\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n @if (props.options | formlySelectOptions: field | async; as selectOptions) {\n <ion-select\n [style.align-self]=\"props.labelPosition === 'floating' ? 'stretch' : ''\"\n [style.max-width.%]=\"props.labelPosition === 'floating' ? 100 : ''\"\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"props.multiple\"\n [interface]=\"props.interface\"\n [okText]=\"props.okText\"\n [cancelText]=\"props.cancelText\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition\"\n >\n @for (option of selectOptions; track option) {\n <ion-select-option [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n }\n </ion-select>\n }\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\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 { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlySelectModule as FormlyCoreSelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/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 IonicModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlySelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyCoreSelectModule","i1"],"mappings":";;;;;;;;;;;;;;;AAgDM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA9B9E,IAAA,WAAA,GAAA;;AA+BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE;gBAClB,CAAC;AACF,aAAA;SACF;AACF,IAAA;+GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA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mB;YACnB,WAAW;YAEX,qBAAqB;YACrBA,oBAAsB,EAAAC,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAKb,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,YAV3B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,qBAAqB;YACrBD,oBAAsB;AACtB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;wBACrBA,oBAAsB;AACtB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-select.mjs","sources":["../../../../src/ui/ionic/select/src/select.type.ts","../../../../src/ui/ionic/select/src/select.config.ts","../../../../src/ui/ionic/select/src/select.module.ts","../../../../src/ui/ionic/select/src/ngx-formly-ionic-select.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Type } from '@angular/core';\n\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n compareWith?: ((currentValue: any, compareValue: any) => boolean) | null | string | undefined;\n multiple?: boolean;\n interface?: 'action-sheet' | 'alert' | 'popover';\n okText?: string;\n cancelText?: string;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-ion-select',\n template: `\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n @if (props.options | formlySelectOptions: field | async; as selectOptions) {\n <ion-select\n [style.align-self]=\"props.labelPosition === 'floating' ? 'stretch' : ''\"\n [style.max-width.%]=\"props.labelPosition === 'floating' ? 100 : ''\"\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"props.multiple\"\n [interface]=\"props.interface\"\n [okText]=\"props.okText\"\n [cancelText]=\"props.cancelText\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n >\n @for (option of selectOptions; track option) {\n <ion-select-option [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n }\n </ion-select>\n }\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\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 { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlySelectModule as FormlyCoreSelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/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 IonicModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlySelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyCoreSelectModule","i1"],"mappings":";;;;;;;;;;;;;;;AAgDM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA9B9E,IAAA,WAAA,GAAA;;AA+BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE;gBAClB,CAAC;AACF,aAAA;SACF;AACF,IAAA;+GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA5BlB;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAA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AAA,CAAA,CAAA;;4FAIrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;wBACrBA,oBAAsB;AACtB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -11,22 +11,22 @@ import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
|
|
13
13
|
class FormlyFieldSlider 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: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldSlider, isStandalone: false, selector: "formly-field-ion-range", usesInheritance: true, ngImport: i0, template: `
|
|
16
16
|
<ion-range
|
|
17
17
|
[min]="props.min"
|
|
18
18
|
[max]="props.max"
|
|
19
19
|
[formControl]="formControl"
|
|
20
20
|
[ionFormlyAttributes]="field"
|
|
21
21
|
[label]="props.label"
|
|
22
|
-
[labelPlacement]="props.labelPosition"
|
|
22
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
23
23
|
>
|
|
24
24
|
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
25
25
|
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
26
26
|
</ion-range>
|
|
27
27
|
`, 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.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonRange, selector: "ion-range", inputs: ["activeBarStart", "color", "debounce", "disabled", "dualKnobs", "label", "labelPlacement", "max", "min", "mode", "name", "pin", "pinFormatter", "snaps", "step", "ticks", "value"] }, { kind: "directive", type: i2.NumericValueAccessor, selector: "ion-input[type=number],ion-input-otp:not([type=text]),ion-range" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSlider, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
31
|
args: [{ selector: 'formly-field-ion-range', template: `
|
|
32
32
|
<ion-range
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
35
35
|
[formControl]="formControl"
|
|
36
36
|
[ionFormlyAttributes]="field"
|
|
37
37
|
[label]="props.label"
|
|
38
|
-
[labelPlacement]="props.labelPosition"
|
|
38
|
+
[labelPlacement]="props.labelPosition ?? 'start'"
|
|
39
39
|
>
|
|
40
40
|
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
41
41
|
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
@@ -53,18 +53,18 @@ function withFormlyFieldSlider() {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class FormlySliderModule {
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
57
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
|
58
58
|
ReactiveFormsModule,
|
|
59
59
|
IonicModule,
|
|
60
60
|
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
61
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
61
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySliderModule, imports: [CommonModule,
|
|
62
62
|
ReactiveFormsModule,
|
|
63
63
|
IonicModule,
|
|
64
64
|
FormlyFormFieldModule,
|
|
65
65
|
FormlyModule.forChild(withFormlyFieldSlider())] }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlySliderModule, decorators: [{
|
|
68
68
|
type: NgModule,
|
|
69
69
|
args: [{
|
|
70
70
|
declarations: [FormlyFieldSlider],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-slider.mjs","sources":["../../../../src/ui/ionic/slider/src/slider.type.ts","../../../../src/ui/ionic/slider/src/slider.config.ts","../../../../src/ui/ionic/slider/src/slider.module.ts","../../../../src/ui/ionic/slider/src/ngx-formly-ionic-slider.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 SliderProps extends FormlyFieldProps {}\n\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-ion-range',\n template: `\n <ion-range\n [min]=\"props.min\"\n [max]=\"props.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition\"\n >\n <ion-label slot=\"start\">{{ props.min }}</ion-label>\n <ion-label slot=\"end\">{{ props.max }}</ion-label>\n </ion-range>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSlider } from './slider.type';\n\nexport function withFormlyFieldSlider(): ConfigOption {\n return {\n types: [\n { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },\n { name: 'range', extends: 'slider' },\n ],\n };\n}\n","import { NO_ERRORS_SCHEMA, 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 { FormlyFieldSlider } from './slider.type';\nimport { withFormlyFieldSlider } from './slider.config';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldSlider()),\n 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iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE9B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAKZ,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,YAR3B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,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;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACpBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-slider.mjs","sources":["../../../../src/ui/ionic/slider/src/slider.type.ts","../../../../src/ui/ionic/slider/src/slider.config.ts","../../../../src/ui/ionic/slider/src/slider.module.ts","../../../../src/ui/ionic/slider/src/ngx-formly-ionic-slider.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 SliderProps extends FormlyFieldProps {}\n\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-ion-range',\n template: `\n <ion-range\n [min]=\"props.min\"\n [max]=\"props.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n >\n <ion-label slot=\"start\">{{ props.min }}</ion-label>\n <ion-label slot=\"end\">{{ props.max }}</ion-label>\n </ion-range>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSlider } from './slider.type';\n\nexport function withFormlyFieldSlider(): ConfigOption {\n return {\n types: [\n { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },\n { name: 'range', extends: 'slider' },\n ],\n };\n}\n","import { NO_ERRORS_SCHEMA, 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 { FormlyFieldSlider } from './slider.type';\nimport { withFormlyFieldSlider } from './slider.config';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldSlider()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlySliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA8BM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;+GAAjE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,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3B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,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;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 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
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,7 +33,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", 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
39
|
`, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
|
|
@@ -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 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,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAfpB;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,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,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,OAAA,EA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AAA,EAAA,CAXhB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAEhC,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,qBAAqB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAKZ,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,oBAAoB,YAT7B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,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;;;;"}
|
|
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,IA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,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIvC,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,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,14 +11,14 @@ 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
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">
|
|
@@ -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],
|
|
@@ -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",
|
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 };
|