@ngx-formly/ionic 10.0.1 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -177
- package/fesm2022/ngx-formly-ionic-checkbox.mjs +192 -70
- package/fesm2022/ngx-formly-ionic-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-datetime.mjs +349 -119
- package/fesm2022/ngx-formly-ionic-datetime.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-form-field.mjs +259 -81
- package/fesm2022/ngx-formly-ionic-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-input.mjs +233 -92
- package/fesm2022/ngx-formly-ionic-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-radio.mjs +262 -72
- package/fesm2022/ngx-formly-ionic-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-select.mjs +247 -90
- package/fesm2022/ngx-formly-ionic-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-slider.mjs +198 -64
- package/fesm2022/ngx-formly-ionic-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-textarea.mjs +194 -67
- package/fesm2022/ngx-formly-ionic-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic-toggle.mjs +189 -66
- package/fesm2022/ngx-formly-ionic-toggle.mjs.map +1 -1
- package/fesm2022/ngx-formly-ionic.mjs +96 -69
- package/fesm2022/ngx-formly-ionic.mjs.map +1 -1
- package/package.json +3 -3
- package/types/ngx-formly-ionic-checkbox.d.ts +22 -27
- package/types/ngx-formly-ionic-datetime.d.ts +43 -47
- package/types/ngx-formly-ionic-form-field.d.ts +30 -31
- package/types/ngx-formly-ionic-input.d.ts +21 -27
- package/types/ngx-formly-ionic-radio.d.ts +21 -26
- package/types/ngx-formly-ionic-select.d.ts +34 -38
- package/types/ngx-formly-ionic-slider.d.ts +20 -26
- package/types/ngx-formly-ionic-textarea.d.ts +21 -27
- package/types/ngx-formly-ionic-toggle.d.ts +21 -26
- package/types/ngx-formly-ionic.d.ts +17 -21
|
@@ -1,73 +1,196 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { ChangeDetectionStrategy, Component, NgModule } from
|
|
3
|
-
import * as i1
|
|
4
|
-
import { FieldType, FormlyModule } from
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import { ReactiveFormsModule } from
|
|
7
|
-
import * as i2 from
|
|
8
|
-
import {
|
|
9
|
-
import * as i3 from
|
|
10
|
-
import { FormlyFormFieldModule } from
|
|
11
|
-
import { CommonModule } from
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule } from "@angular/core";
|
|
3
|
+
import * as i1 from "@ngx-formly/core";
|
|
4
|
+
import { FieldType, FormlyModule } from "@ngx-formly/core";
|
|
5
|
+
import * as i1$1 from "@angular/forms";
|
|
6
|
+
import { ReactiveFormsModule } from "@angular/forms";
|
|
7
|
+
import * as i2 from "@ionic/angular";
|
|
8
|
+
import { IonToggle } from "@ionic/angular";
|
|
9
|
+
import * as i3 from "@ngx-formly/ionic/form-field";
|
|
10
|
+
import { FormlyFormFieldModule } from "@ngx-formly/ionic/form-field";
|
|
11
|
+
import { CommonModule } from "@angular/common";
|
|
12
|
+
var FormlyFieldToggle = class FormlyFieldToggle extends FieldType {
|
|
13
|
+
onLabelInteraction(event) {
|
|
14
|
+
if (event.target.closest("a[href]")) event.stopPropagation();
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
18
|
+
minVersion: "12.0.0",
|
|
19
|
+
version: "22.2.2",
|
|
20
|
+
ngImport: i0,
|
|
21
|
+
type: FormlyFieldToggle,
|
|
22
|
+
deps: null,
|
|
23
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static {
|
|
27
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
28
|
+
minVersion: "17.0.0",
|
|
29
|
+
version: "22.2.2",
|
|
30
|
+
type: FormlyFieldToggle,
|
|
31
|
+
isStandalone: false,
|
|
32
|
+
selector: "formly-field-ion-toggle",
|
|
33
|
+
usesInheritance: true,
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
template: `
|
|
16
36
|
<ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
17
|
-
|
|
37
|
+
@if (props.allowHtml) {
|
|
38
|
+
<span
|
|
39
|
+
[innerHTML]="props.label"
|
|
40
|
+
(click)="onLabelInteraction($event)"
|
|
41
|
+
(keydown)="onLabelInteraction($event)"
|
|
42
|
+
></span>
|
|
43
|
+
} @else {
|
|
44
|
+
{{ props.label }}
|
|
45
|
+
}
|
|
18
46
|
</ion-toggle>
|
|
19
|
-
`,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
47
|
+
`,
|
|
48
|
+
isInline: true,
|
|
49
|
+
styles: [":host{display:inherit}\n"],
|
|
50
|
+
dependencies: [
|
|
51
|
+
{
|
|
52
|
+
kind: "directive",
|
|
53
|
+
type: i1$1.NgControlStatus,
|
|
54
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
kind: "directive",
|
|
58
|
+
type: i1$1.FormControlDirective,
|
|
59
|
+
selector: "[formControl]",
|
|
60
|
+
inputs: [
|
|
61
|
+
"formControl",
|
|
62
|
+
"disabled",
|
|
63
|
+
"ngModel"
|
|
64
|
+
],
|
|
65
|
+
outputs: ["ngModelChange"],
|
|
66
|
+
exportAs: ["ngForm"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: "component",
|
|
70
|
+
type: i2.IonToggle,
|
|
71
|
+
selector: "ion-toggle",
|
|
72
|
+
inputs: [
|
|
73
|
+
"checked",
|
|
74
|
+
"color",
|
|
75
|
+
"disabled",
|
|
76
|
+
"enableOnOffLabels",
|
|
77
|
+
"errorText",
|
|
78
|
+
"helperText",
|
|
79
|
+
"justify",
|
|
80
|
+
"labelPlacement",
|
|
81
|
+
"mode",
|
|
82
|
+
"name",
|
|
83
|
+
"value"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
kind: "directive",
|
|
88
|
+
type: i3.ɵIonFormlyAttributes,
|
|
89
|
+
selector: "[ionFormlyAttributes]",
|
|
90
|
+
inputs: ["ionFormlyAttributes"]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
98
|
+
minVersion: "12.0.0",
|
|
99
|
+
version: "22.2.2",
|
|
100
|
+
ngImport: i0,
|
|
101
|
+
type: FormlyFieldToggle,
|
|
102
|
+
decorators: [{
|
|
103
|
+
type: Component,
|
|
104
|
+
args: [{
|
|
105
|
+
selector: "formly-field-ion-toggle",
|
|
106
|
+
template: `
|
|
24
107
|
<ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
25
|
-
|
|
108
|
+
@if (props.allowHtml) {
|
|
109
|
+
<span
|
|
110
|
+
[innerHTML]="props.label"
|
|
111
|
+
(click)="onLabelInteraction($event)"
|
|
112
|
+
(keydown)="onLabelInteraction($event)"
|
|
113
|
+
></span>
|
|
114
|
+
} @else {
|
|
115
|
+
{{ props.label }}
|
|
116
|
+
}
|
|
26
117
|
</ion-toggle>
|
|
27
|
-
`,
|
|
28
|
-
|
|
29
|
-
|
|
118
|
+
`,
|
|
119
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
|
+
standalone: false,
|
|
121
|
+
styles: [":host{display:inherit}\n"]
|
|
122
|
+
}]
|
|
123
|
+
}]
|
|
124
|
+
});
|
|
30
125
|
function withFormlyFieldToggle() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
wrappers: ['form-field'],
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
class FormlyToggleModule {
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
44
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyToggleModule, declarations: [FormlyFieldToggle], imports: [CommonModule,
|
|
45
|
-
ReactiveFormsModule,
|
|
46
|
-
IonicModule,
|
|
47
|
-
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
48
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyToggleModule, imports: [CommonModule,
|
|
49
|
-
ReactiveFormsModule,
|
|
50
|
-
IonicModule,
|
|
51
|
-
FormlyFormFieldModule,
|
|
52
|
-
FormlyModule.forChild(withFormlyFieldToggle())] }); }
|
|
126
|
+
return { types: [{
|
|
127
|
+
name: "toggle",
|
|
128
|
+
component: FormlyFieldToggle,
|
|
129
|
+
wrappers: ["form-field"]
|
|
130
|
+
}] };
|
|
53
131
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
132
|
+
var FormlyToggleModule = class FormlyToggleModule {
|
|
133
|
+
static {
|
|
134
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
135
|
+
minVersion: "12.0.0",
|
|
136
|
+
version: "22.2.2",
|
|
137
|
+
ngImport: i0,
|
|
138
|
+
type: FormlyToggleModule,
|
|
139
|
+
deps: [],
|
|
140
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
static {
|
|
144
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
145
|
+
minVersion: "14.0.0",
|
|
146
|
+
version: "22.2.2",
|
|
147
|
+
ngImport: i0,
|
|
148
|
+
type: FormlyToggleModule,
|
|
149
|
+
declarations: [FormlyFieldToggle],
|
|
150
|
+
imports: [
|
|
151
|
+
CommonModule,
|
|
152
|
+
ReactiveFormsModule,
|
|
153
|
+
IonToggle,
|
|
154
|
+
FormlyFormFieldModule,
|
|
155
|
+
i1.FormlyModule
|
|
156
|
+
]
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
static {
|
|
160
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
161
|
+
minVersion: "12.0.0",
|
|
162
|
+
version: "22.2.2",
|
|
163
|
+
ngImport: i0,
|
|
164
|
+
type: FormlyToggleModule,
|
|
165
|
+
imports: [
|
|
166
|
+
CommonModule,
|
|
167
|
+
ReactiveFormsModule,
|
|
168
|
+
IonToggle,
|
|
169
|
+
FormlyFormFieldModule,
|
|
170
|
+
FormlyModule.forChild(withFormlyFieldToggle())
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
176
|
+
minVersion: "12.0.0",
|
|
177
|
+
version: "22.2.2",
|
|
178
|
+
ngImport: i0,
|
|
179
|
+
type: FormlyToggleModule,
|
|
180
|
+
decorators: [{
|
|
181
|
+
type: NgModule,
|
|
182
|
+
args: [{
|
|
183
|
+
declarations: [FormlyFieldToggle],
|
|
184
|
+
imports: [
|
|
185
|
+
CommonModule,
|
|
186
|
+
ReactiveFormsModule,
|
|
187
|
+
IonToggle,
|
|
188
|
+
FormlyFormFieldModule,
|
|
189
|
+
FormlyModule.forChild(withFormlyFieldToggle())
|
|
190
|
+
]
|
|
191
|
+
}]
|
|
192
|
+
}]
|
|
193
|
+
});
|
|
72
194
|
export { FormlyToggleModule, withFormlyFieldToggle };
|
|
73
|
-
|
|
195
|
+
|
|
196
|
+
//# sourceMappingURL=ngx-formly-ionic-toggle.mjs.map
|
|
@@ -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"
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-toggle.mjs","names":[],"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"],"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 @if (props.allowHtml) {\n <span\n [innerHTML]=\"props.label\"\n (click)=\"onLabelInteraction($event)\"\n (keydown)=\"onLabelInteraction($event)\"\n ></span>\n } @else {\n {{ props.label }}\n }\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 protected onLabelInteraction(event: Event) {\n if ((event.target as HTMLElement).closest('a[href]')) {\n event.stopPropagation();\n }\n }\n}\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 { IonToggle } 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 IonToggle,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldToggle()),\n ],\n})\nexport class FormlyToggleModule {}\n"],"mappings":";;;;;;;;;;;AA6BA,IAAa,oBAAb,MAAa,0BAA0B,UAAuC;CAClE,mBAAmB,OAAY;EACvC,IAAK,MAAM,OAAuB,QAAQ,SAAS,GACjD,MAAM,gBAAe;CAEzB;CALW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAiB,cAAA;GAAA,UAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UAjBlB;;;;;;;;;;;;;GAYT,UAAA;GAAA,QAAA,CAAA,0BAAA;GAAA,cAAA;IAAA;KAAA,MAAA;KAAA,MAAA,KAAA;KAAA,UAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAA,KAAA;KAAA,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;KAAA;KAAA,SAAA,CAAA,eAAA;KAAA,UAAA,CAAA,QAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAA,GAAA;KAAA,UAAA;KAAA,QAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAA,GAAA;KAAA,UAAA;KAAA,QAAA,CAAA,qBAAA;IAAA;GAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAKU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAnB7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAyB,UACzB;;;;;;;;;;;;;GAYT,iBACgB,wBAAwB;GAAM,YAEnC;GAAK,QAAA,CAAA,0BAAA;EAAA,CAAA;;;ACxBnB,SAAgB,wBAAqB;CACnC,OAAO,EACL,OAAO,CACL;EACE,MAAM;EACN,WAAW;EACX,UAAU,CAAC,YAAY;CACxB,CACF,EACF;AACH;ACOA,IAAa,qBAAb,MAAa,mBAAkB;CAAlB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAlB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,cAAA,CATd,iBAAiB;GAAA,SAAA;IAE9B;IACA;IACA;IACA;IAAqB,GAAA;GAAA;EAAA,CAAA;CAAA;CAIZ;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,SAAA;IAP3B;IACA;IACA;IACA;IACA,aAAa,SAAS,sBAAqB,CAAE;GAAC;EAAA,CAAA;CAAA;;AAGrC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAV9B,MAAA;EAAS,MAAA,CAAA;GACR,cAAc,CAAC,iBAAiB;GAChC,SAAS;IACP;IACA;IACA;IACA;IACA,aAAa,SAAS,sBAAqB,CAAE;GAC9C;EACF,CAAA"}
|
|
@@ -1,72 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import * as i0 from
|
|
8
|
-
import { NgModule } from
|
|
9
|
-
import { FormlyToggleModule } from
|
|
10
|
-
import { FormlySliderModule } from
|
|
11
|
-
import { FormlyDatetimeModule } from
|
|
12
|
-
|
|
1
|
+
import { FormlyFormFieldModule, withFormlyFormField } from "@ngx-formly/ionic/form-field";
|
|
2
|
+
import { FormlyInputModule, withFormlyFieldInput } from "@ngx-formly/ionic/input";
|
|
3
|
+
import { FormlyTextAreaModule, withFormlyFieldTextArea } from "@ngx-formly/ionic/textarea";
|
|
4
|
+
import { FormlyRadioModule, withFormlyFieldRadio } from "@ngx-formly/ionic/radio";
|
|
5
|
+
import { FormlyCheckboxModule, withFormlyFieldCheckbox } from "@ngx-formly/ionic/checkbox";
|
|
6
|
+
import { FormlySelectModule, withFormlyFieldSelect } from "@ngx-formly/ionic/select";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import { NgModule } from "@angular/core";
|
|
9
|
+
import { FormlyToggleModule } from "@ngx-formly/ionic/toggle";
|
|
10
|
+
import { FormlySliderModule } from "@ngx-formly/ionic/slider";
|
|
11
|
+
import { FormlyDatetimeModule } from "@ngx-formly/ionic/datetime";
|
|
13
12
|
function withFormlyIonic() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class FormlyIonicModule {
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyIonicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
26
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyIonicModule, imports: [FormlyFormFieldModule,
|
|
27
|
-
FormlyInputModule,
|
|
28
|
-
FormlyTextAreaModule,
|
|
29
|
-
FormlyRadioModule,
|
|
30
|
-
FormlyCheckboxModule,
|
|
31
|
-
FormlySelectModule,
|
|
32
|
-
FormlyToggleModule,
|
|
33
|
-
FormlySliderModule,
|
|
34
|
-
FormlyDatetimeModule], exports: [FormlyFormFieldModule] }); }
|
|
35
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyIonicModule, imports: [FormlyFormFieldModule,
|
|
36
|
-
FormlyInputModule,
|
|
37
|
-
FormlyTextAreaModule,
|
|
38
|
-
FormlyRadioModule,
|
|
39
|
-
FormlyCheckboxModule,
|
|
40
|
-
FormlySelectModule,
|
|
41
|
-
FormlyToggleModule,
|
|
42
|
-
FormlySliderModule,
|
|
43
|
-
FormlyDatetimeModule, FormlyFormFieldModule] }); }
|
|
13
|
+
return [
|
|
14
|
+
withFormlyFormField(),
|
|
15
|
+
withFormlyFieldInput(),
|
|
16
|
+
withFormlyFieldTextArea(),
|
|
17
|
+
withFormlyFieldRadio(),
|
|
18
|
+
withFormlyFieldCheckbox(),
|
|
19
|
+
withFormlyFieldSelect()
|
|
20
|
+
];
|
|
44
21
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
22
|
+
var FormlyIonicModule = class FormlyIonicModule {
|
|
23
|
+
static {
|
|
24
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.2.2",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: FormlyIonicModule,
|
|
29
|
+
deps: [],
|
|
30
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({
|
|
35
|
+
minVersion: "14.0.0",
|
|
36
|
+
version: "22.2.2",
|
|
37
|
+
ngImport: i0,
|
|
38
|
+
type: FormlyIonicModule,
|
|
39
|
+
imports: [
|
|
40
|
+
FormlyFormFieldModule,
|
|
41
|
+
FormlyInputModule,
|
|
42
|
+
FormlyTextAreaModule,
|
|
43
|
+
FormlyRadioModule,
|
|
44
|
+
FormlyCheckboxModule,
|
|
45
|
+
FormlySelectModule,
|
|
46
|
+
FormlyToggleModule,
|
|
47
|
+
FormlySliderModule,
|
|
48
|
+
FormlyDatetimeModule
|
|
49
|
+
],
|
|
50
|
+
exports: [FormlyFormFieldModule]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
static {
|
|
54
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({
|
|
55
|
+
minVersion: "12.0.0",
|
|
56
|
+
version: "22.2.2",
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
type: FormlyIonicModule,
|
|
59
|
+
imports: [
|
|
60
|
+
FormlyFormFieldModule,
|
|
61
|
+
FormlyInputModule,
|
|
62
|
+
FormlyTextAreaModule,
|
|
63
|
+
FormlyRadioModule,
|
|
64
|
+
FormlyCheckboxModule,
|
|
65
|
+
FormlySelectModule,
|
|
66
|
+
FormlyToggleModule,
|
|
67
|
+
FormlySliderModule,
|
|
68
|
+
FormlyDatetimeModule,
|
|
69
|
+
FormlyFormFieldModule
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
75
|
+
minVersion: "12.0.0",
|
|
76
|
+
version: "22.2.2",
|
|
77
|
+
ngImport: i0,
|
|
78
|
+
type: FormlyIonicModule,
|
|
79
|
+
decorators: [{
|
|
80
|
+
type: NgModule,
|
|
81
|
+
args: [{
|
|
82
|
+
imports: [
|
|
83
|
+
FormlyFormFieldModule,
|
|
84
|
+
FormlyInputModule,
|
|
85
|
+
FormlyTextAreaModule,
|
|
86
|
+
FormlyRadioModule,
|
|
87
|
+
FormlyCheckboxModule,
|
|
88
|
+
FormlySelectModule,
|
|
89
|
+
FormlyToggleModule,
|
|
90
|
+
FormlySliderModule,
|
|
91
|
+
FormlyDatetimeModule
|
|
92
|
+
],
|
|
93
|
+
exports: [FormlyFormFieldModule]
|
|
94
|
+
}]
|
|
95
|
+
}]
|
|
96
|
+
});
|
|
71
97
|
export { FormlyIonicModule, withFormlyIonic };
|
|
72
|
-
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=ngx-formly-ionic.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic.mjs","sources":["../../../../src/ui/ionic/src/lib/ui-ionic.config.ts","../../../../src/ui/ionic/src/lib/ui-ionic.module.ts"
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic.mjs","names":[],"sources":["../../../../src/ui/ionic/src/lib/ui-ionic.config.ts","../../../../src/ui/ionic/src/lib/ui-ionic.module.ts"],"sourcesContent":["import { ConfigOption } from '@ngx-formly/core';\nimport { withFormlyFormField } from '@ngx-formly/ionic/form-field';\nimport { withFormlyFieldInput } from '@ngx-formly/ionic/input';\nimport { withFormlyFieldTextArea } from '@ngx-formly/ionic/textarea';\nimport { withFormlyFieldRadio } from '@ngx-formly/ionic/radio';\nimport { withFormlyFieldCheckbox } from '@ngx-formly/ionic/checkbox';\nimport { withFormlyFieldSelect } from '@ngx-formly/ionic/select';\n\nexport function withFormlyIonic(): ConfigOption[] {\n return [\n withFormlyFormField(),\n withFormlyFieldInput(),\n withFormlyFieldTextArea(),\n withFormlyFieldRadio(),\n withFormlyFieldCheckbox(),\n withFormlyFieldSelect(),\n ];\n}\n","import { NgModule } from '@angular/core';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyInputModule } from '@ngx-formly/ionic/input';\nimport { FormlyTextAreaModule } from '@ngx-formly/ionic/textarea';\nimport { FormlyRadioModule } from '@ngx-formly/ionic/radio';\nimport { FormlyCheckboxModule } from '@ngx-formly/ionic/checkbox';\nimport { FormlySelectModule } from '@ngx-formly/ionic/select';\nimport { FormlyToggleModule } from '@ngx-formly/ionic/toggle';\nimport { FormlySliderModule } from '@ngx-formly/ionic/slider';\nimport { FormlyDatetimeModule } from '@ngx-formly/ionic/datetime';\n\n@NgModule({\n imports: [\n FormlyFormFieldModule,\n FormlyInputModule,\n FormlyTextAreaModule,\n FormlyRadioModule,\n FormlyCheckboxModule,\n FormlySelectModule,\n FormlyToggleModule,\n FormlySliderModule,\n FormlyDatetimeModule,\n ],\n exports: [FormlyFormFieldModule],\n})\nexport class FormlyIonicModule {}\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,kBAAe;CAC7B,OAAO;EACL,oBAAmB;EACnB,qBAAoB;EACpB,wBAAuB;EACvB,qBAAoB;EACpB,wBAAuB;EACvB,sBAAqB;CACtB;AACH;ACQA,IAAa,oBAAb,MAAa,kBAAiB;CAAjB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,SAAA;IAZ1B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GAAoB;GAAA,SAAA,CAEZ,qBAAqB;EAAA,CAAA;CAAA;CAEpB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,SAAA;IAZ1B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEQ;GAAqB;EAAA,CAAA;CAAA;;AAEpB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAd7B,MAAA;EAAS,MAAA,CAAA;GACR,SAAS;IACP;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACD;GACD,SAAS,CAAC,qBAAqB;EAChC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-formly/ionic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@ngx-formly/core": "
|
|
10
|
-
"@ionic/angular": "^
|
|
9
|
+
"@ngx-formly/core": "11.0.0",
|
|
10
|
+
"@ionic/angular": "^9.0.0"
|
|
11
11
|
},
|
|
12
12
|
"module": "fesm2022/ngx-formly-ionic.mjs",
|
|
13
13
|
"typings": "types/ngx-formly-ionic.d.ts",
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import * as i6 from
|
|
2
|
-
import { ConfigOption,
|
|
3
|
-
import * as i0 from
|
|
4
|
-
import { Type } from
|
|
5
|
-
import * as i5 from
|
|
6
|
-
import { FormlyFieldProps } from
|
|
7
|
-
import * as i2 from
|
|
8
|
-
import * as i3 from
|
|
9
|
-
import * as i4 from
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
export declare function withFormlyFieldCheckbox(): ConfigOption;
|
|
11
|
+
interface CheckboxProps extends FormlyFieldProps {}
|
|
12
|
+
export interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
|
|
13
|
+
type: 'checkbox' | Type<FormlyFieldCheckbox>;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {
|
|
16
|
+
protected onLabelInteraction(event: Event): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-ion-checkbox", never, {}, {}, never, never, false, never>;
|
|
17
19
|
}
|
|
18
|
-
declare class
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export declare class FormlyCheckboxModule {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCheckboxModule, never>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCheckboxModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonCheckbox, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
23
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCheckboxModule>;
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
declare class FormlyCheckboxModule {
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCheckboxModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCheckboxModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.IonicModule, typeof i5.FormlyFormFieldModule, typeof i6.FormlyModule], never>;
|
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCheckboxModule>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { FormlyCheckboxModule, FormlyFieldCheckbox, withFormlyFieldCheckbox };
|
|
30
|
-
export type { FormlyCheckboxFieldConfig };
|
|
25
|
+
export {};
|