@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.
Files changed (32) hide show
  1. package/README.md +109 -177
  2. package/fesm2022/ngx-formly-ionic-checkbox.mjs +192 -70
  3. package/fesm2022/ngx-formly-ionic-checkbox.mjs.map +1 -1
  4. package/fesm2022/ngx-formly-ionic-datetime.mjs +349 -119
  5. package/fesm2022/ngx-formly-ionic-datetime.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-ionic-form-field.mjs +259 -81
  7. package/fesm2022/ngx-formly-ionic-form-field.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-ionic-input.mjs +233 -92
  9. package/fesm2022/ngx-formly-ionic-input.mjs.map +1 -1
  10. package/fesm2022/ngx-formly-ionic-radio.mjs +262 -72
  11. package/fesm2022/ngx-formly-ionic-radio.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-ionic-select.mjs +247 -90
  13. package/fesm2022/ngx-formly-ionic-select.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-ionic-slider.mjs +198 -64
  15. package/fesm2022/ngx-formly-ionic-slider.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-ionic-textarea.mjs +194 -67
  17. package/fesm2022/ngx-formly-ionic-textarea.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-ionic-toggle.mjs +189 -66
  19. package/fesm2022/ngx-formly-ionic-toggle.mjs.map +1 -1
  20. package/fesm2022/ngx-formly-ionic.mjs +96 -69
  21. package/fesm2022/ngx-formly-ionic.mjs.map +1 -1
  22. package/package.json +3 -3
  23. package/types/ngx-formly-ionic-checkbox.d.ts +22 -27
  24. package/types/ngx-formly-ionic-datetime.d.ts +43 -47
  25. package/types/ngx-formly-ionic-form-field.d.ts +30 -31
  26. package/types/ngx-formly-ionic-input.d.ts +21 -27
  27. package/types/ngx-formly-ionic-radio.d.ts +21 -26
  28. package/types/ngx-formly-ionic-select.d.ts +34 -38
  29. package/types/ngx-formly-ionic-slider.d.ts +20 -26
  30. package/types/ngx-formly-ionic-textarea.d.ts +21 -27
  31. package/types/ngx-formly-ionic-toggle.d.ts +21 -26
  32. package/types/ngx-formly-ionic.d.ts +17 -21
@@ -1,121 +1,262 @@
1
- import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, NgModule } from '@angular/core';
3
- import * as i1$1 from '@ngx-formly/core';
4
- import { FieldType, FormlyModule } from '@ngx-formly/core';
5
- import * as i1 from '@angular/forms';
6
- import { ReactiveFormsModule } from '@angular/forms';
7
- import * as i2 from '@ionic/angular';
8
- import { IonicModule } 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
-
13
- class FormlyFieldInput extends FieldType {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: FormlyFieldInput, isStandalone: false, selector: "formly-field-ion-input", usesInheritance: true, ngImport: i0, template: `
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 { IonInput } 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 FormlyFieldInput = class FormlyFieldInput extends FieldType {
13
+ static {
14
+ this.ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "22.2.2",
17
+ ngImport: i0,
18
+ type: FormlyFieldInput,
19
+ deps: null,
20
+ target: i0.ɵɵFactoryTarget.Component
21
+ });
22
+ }
23
+ static {
24
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
25
+ minVersion: "17.0.0",
26
+ version: "22.2.2",
27
+ type: FormlyFieldInput,
28
+ isStandalone: false,
29
+ selector: "formly-field-ion-input",
30
+ usesInheritance: true,
31
+ ngImport: i0,
32
+ template: `
16
33
  @if (props.type !== 'number') {
17
34
  <ion-input
18
35
  [type]="props.type || 'text'"
19
- [label]="props.label"
36
+ [label]="props.allowHtml ? undefined : props.label"
20
37
  [labelPlacement]="props.labelPosition ?? 'start'"
21
38
  [formControl]="formControl"
22
39
  [ionFormlyAttributes]="field"
23
- ></ion-input>
40
+ >
41
+ @if (props.allowHtml && props.label) {
42
+ <span slot="label" [innerHTML]="props.label"></span>
43
+ }
44
+ </ion-input>
24
45
  } @else {
25
46
  <ion-input
26
47
  type="number"
27
- [label]="props.label"
48
+ [label]="props.allowHtml ? undefined : props.label"
28
49
  [labelPlacement]="props.labelPosition ?? 'start'"
29
50
  [formControl]="formControl"
30
51
  [ionFormlyAttributes]="field"
31
- ></ion-input>
52
+ >
53
+ @if (props.allowHtml && props.label) {
54
+ <span slot="label" [innerHTML]="props.label"></span>
55
+ }
56
+ </ion-input>
32
57
  }
33
- `, 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.IonInput, selector: "ion-input", inputs: ["autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearInputIcon", "clearOnEdit", "color", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "shape", "spellcheck", "step", "type", "value"] }, { kind: "directive", type: i2.NumericValueAccessor, selector: "ion-input[type=number],ion-input-otp:not([type=text]),ion-range" }, { 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 }); }
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldInput, decorators: [{
36
- type: Component,
37
- args: [{ selector: 'formly-field-ion-input', template: `
58
+ `,
59
+ isInline: true,
60
+ styles: [":host{display:inherit}\n"],
61
+ dependencies: [
62
+ {
63
+ kind: "directive",
64
+ type: i1$1.NgControlStatus,
65
+ selector: "[formControlName],[ngModel],[formControl]"
66
+ },
67
+ {
68
+ kind: "directive",
69
+ type: i1$1.FormControlDirective,
70
+ selector: "[formControl]",
71
+ inputs: [
72
+ "formControl",
73
+ "disabled",
74
+ "ngModel"
75
+ ],
76
+ outputs: ["ngModelChange"],
77
+ exportAs: ["ngForm"]
78
+ },
79
+ {
80
+ kind: "component",
81
+ type: i2.IonInput,
82
+ selector: "ion-input",
83
+ inputs: [
84
+ "accept",
85
+ "autocapitalize",
86
+ "autocomplete",
87
+ "autocorrect",
88
+ "autofocus",
89
+ "clearInput",
90
+ "clearOnEdit",
91
+ "color",
92
+ "counter",
93
+ "counterFormatter",
94
+ "debounce",
95
+ "disabled",
96
+ "enterkeyhint",
97
+ "errorText",
98
+ "fill",
99
+ "helperText",
100
+ "inputmode",
101
+ "label",
102
+ "labelPlacement",
103
+ "max",
104
+ "maxlength",
105
+ "min",
106
+ "minlength",
107
+ "mode",
108
+ "multiple",
109
+ "name",
110
+ "pattern",
111
+ "placeholder",
112
+ "readonly",
113
+ "required",
114
+ "shape",
115
+ "size",
116
+ "spellcheck",
117
+ "step",
118
+ "type",
119
+ "value"
120
+ ]
121
+ },
122
+ {
123
+ kind: "directive",
124
+ type: i3.ɵIonFormlyAttributes,
125
+ selector: "[ionFormlyAttributes]",
126
+ inputs: ["ionFormlyAttributes"]
127
+ }
128
+ ],
129
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
130
+ });
131
+ }
132
+ };
133
+ i0.ɵɵngDeclareClassMetadata({
134
+ minVersion: "12.0.0",
135
+ version: "22.2.2",
136
+ ngImport: i0,
137
+ type: FormlyFieldInput,
138
+ decorators: [{
139
+ type: Component,
140
+ args: [{
141
+ selector: "formly-field-ion-input",
142
+ template: `
38
143
  @if (props.type !== 'number') {
39
144
  <ion-input
40
145
  [type]="props.type || 'text'"
41
- [label]="props.label"
146
+ [label]="props.allowHtml ? undefined : props.label"
42
147
  [labelPlacement]="props.labelPosition ?? 'start'"
43
148
  [formControl]="formControl"
44
149
  [ionFormlyAttributes]="field"
45
- ></ion-input>
150
+ >
151
+ @if (props.allowHtml && props.label) {
152
+ <span slot="label" [innerHTML]="props.label"></span>
153
+ }
154
+ </ion-input>
46
155
  } @else {
47
156
  <ion-input
48
157
  type="number"
49
- [label]="props.label"
158
+ [label]="props.allowHtml ? undefined : props.label"
50
159
  [labelPlacement]="props.labelPosition ?? 'start'"
51
160
  [formControl]="formControl"
52
161
  [ionFormlyAttributes]="field"
53
- ></ion-input>
162
+ >
163
+ @if (props.allowHtml && props.label) {
164
+ <span slot="label" [innerHTML]="props.label"></span>
165
+ }
166
+ </ion-input>
54
167
  }
55
- `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
56
- }] });
57
-
168
+ `,
169
+ changeDetection: ChangeDetectionStrategy.OnPush,
170
+ standalone: false,
171
+ styles: [":host{display:inherit}\n"]
172
+ }]
173
+ }]
174
+ });
58
175
  function withFormlyFieldInput() {
59
- return {
60
- types: [
61
- {
62
- name: 'input',
63
- component: FormlyFieldInput,
64
- wrappers: ['form-field'],
65
- },
66
- { name: 'string', extends: 'input' },
67
- {
68
- name: 'number',
69
- extends: 'input',
70
- defaultOptions: {
71
- props: {
72
- type: 'number',
73
- },
74
- },
75
- },
76
- {
77
- name: 'integer',
78
- extends: 'input',
79
- defaultOptions: {
80
- props: {
81
- type: 'number',
82
- },
83
- },
84
- },
85
- ],
86
- };
87
- }
88
-
89
- class FormlyInputModule {
90
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
91
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
92
- ReactiveFormsModule,
93
- IonicModule,
94
- FormlyFormFieldModule, i1$1.FormlyModule] }); }
95
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, imports: [CommonModule,
96
- ReactiveFormsModule,
97
- IonicModule,
98
- FormlyFormFieldModule,
99
- FormlyModule.forChild(withFormlyFieldInput())] }); }
176
+ return { types: [
177
+ {
178
+ name: "input",
179
+ component: FormlyFieldInput,
180
+ wrappers: ["form-field"]
181
+ },
182
+ {
183
+ name: "string",
184
+ extends: "input"
185
+ },
186
+ {
187
+ name: "number",
188
+ extends: "input",
189
+ defaultOptions: { props: { type: "number" } }
190
+ },
191
+ {
192
+ name: "integer",
193
+ extends: "input",
194
+ defaultOptions: { props: { type: "number" } }
195
+ }
196
+ ] };
100
197
  }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyInputModule, decorators: [{
102
- type: NgModule,
103
- args: [{
104
- declarations: [FormlyFieldInput],
105
- imports: [
106
- CommonModule,
107
- ReactiveFormsModule,
108
- IonicModule,
109
- FormlyFormFieldModule,
110
- FormlyModule.forChild(withFormlyFieldInput()),
111
- ],
112
- schemas: [NO_ERRORS_SCHEMA],
113
- }]
114
- }] });
115
-
116
- /**
117
- * Generated bundle index. Do not edit.
118
- */
119
-
198
+ var FormlyInputModule = class FormlyInputModule {
199
+ static {
200
+ this.ɵfac = i0.ɵɵngDeclareFactory({
201
+ minVersion: "12.0.0",
202
+ version: "22.2.2",
203
+ ngImport: i0,
204
+ type: FormlyInputModule,
205
+ deps: [],
206
+ target: i0.ɵɵFactoryTarget.NgModule
207
+ });
208
+ }
209
+ static {
210
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
211
+ minVersion: "14.0.0",
212
+ version: "22.2.2",
213
+ ngImport: i0,
214
+ type: FormlyInputModule,
215
+ declarations: [FormlyFieldInput],
216
+ imports: [
217
+ CommonModule,
218
+ ReactiveFormsModule,
219
+ IonInput,
220
+ FormlyFormFieldModule,
221
+ i1.FormlyModule
222
+ ]
223
+ });
224
+ }
225
+ static {
226
+ this.ɵinj = i0.ɵɵngDeclareInjector({
227
+ minVersion: "12.0.0",
228
+ version: "22.2.2",
229
+ ngImport: i0,
230
+ type: FormlyInputModule,
231
+ imports: [
232
+ CommonModule,
233
+ ReactiveFormsModule,
234
+ IonInput,
235
+ FormlyFormFieldModule,
236
+ FormlyModule.forChild(withFormlyFieldInput())
237
+ ]
238
+ });
239
+ }
240
+ };
241
+ i0.ɵɵngDeclareClassMetadata({
242
+ minVersion: "12.0.0",
243
+ version: "22.2.2",
244
+ ngImport: i0,
245
+ type: FormlyInputModule,
246
+ decorators: [{
247
+ type: NgModule,
248
+ args: [{
249
+ declarations: [FormlyFieldInput],
250
+ imports: [
251
+ CommonModule,
252
+ ReactiveFormsModule,
253
+ IonInput,
254
+ FormlyFormFieldModule,
255
+ FormlyModule.forChild(withFormlyFieldInput())
256
+ ]
257
+ }]
258
+ }]
259
+ });
120
260
  export { FormlyFieldInput, FormlyInputModule, withFormlyFieldInput };
121
- //# sourceMappingURL=ngx-formly-ionic-input.mjs.map
261
+
262
+ //# sourceMappingURL=ngx-formly-ionic-input.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-ionic-input.mjs","sources":["../../../../src/ui/ionic/input/src/input.type.ts","../../../../src/ui/ionic/input/src/input.config.ts","../../../../src/ui/ionic/input/src/input.module.ts","../../../../src/ui/ionic/input/src/ngx-formly-ionic-input.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 InputProps extends FormlyFieldProps {}\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-ion-input',\n template: `\n @if (props.type !== 'number') {\n <ion-input\n [type]=\"props.type || 'text'\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n ></ion-input>\n } @else {\n <ion-input\n type=\"number\"\n [label]=\"props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n ></ion-input>\n }\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInput } from './input.type';\n\nexport function withFormlyFieldInput(): ConfigOption {\n return {\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n ],\n };\n}\n","import { 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 { FormlyFieldInput } from './input.type';\nimport { withFormlyFieldInput } from './input.config';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldInput()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;+GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAvBjB;;;;;;;;;;;;;;;;;;AAkBT,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,Q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EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAR1B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;AACrB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIpC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;AACrB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-ionic-input.mjs","names":[],"sources":["../../../../src/ui/ionic/input/src/input.type.ts","../../../../src/ui/ionic/input/src/input.config.ts","../../../../src/ui/ionic/input/src/input.module.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 InputProps extends FormlyFieldProps {}\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-ion-input',\n template: `\n @if (props.type !== 'number') {\n <ion-input\n [type]=\"props.type || 'text'\"\n [label]=\"props.allowHtml ? undefined : props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n >\n @if (props.allowHtml && props.label) {\n <span slot=\"label\" [innerHTML]=\"props.label\"></span>\n }\n </ion-input>\n } @else {\n <ion-input\n type=\"number\"\n [label]=\"props.allowHtml ? undefined : props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n >\n @if (props.allowHtml && props.label) {\n <span slot=\"label\" [innerHTML]=\"props.label\"></span>\n }\n </ion-input>\n }\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInput } from './input.type';\n\nexport function withFormlyFieldInput(): ConfigOption {\n return {\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonInput } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldInput } from './input.type';\nimport { withFormlyFieldInput } from './input.config';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonInput,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldInput()),\n ],\n})\nexport class FormlyInputModule {}\n"],"mappings":";;;;;;;;;;;AA4CA,IAAa,mBAAb,MAAa,yBAAyB,UAAsC;CAA/D;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAgB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAhB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA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