@ngx-formly/ionic 10.0.1 → 11.1.0-rc.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,20 +1,43 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, DOCUMENT, Input, Inject, Directive, NgModule } from '@angular/core';
3
- import * as i2 from '@ngx-formly/core';
4
- import { FieldWrapper, FormlyAttributes, FormlyModule } from '@ngx-formly/core';
5
- import * as i1 from '@ionic/angular';
6
- import { IonicModule } from '@ionic/angular';
7
- import { CommonModule } from '@angular/common';
8
- import { ReactiveFormsModule } from '@angular/forms';
9
-
10
- class FormlyWrapperFormField extends FieldWrapper {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: FormlyWrapperFormField, isStandalone: false, selector: "formly-wrapper-ion-form-field", usesInheritance: true, ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DOCUMENT, Directive, Inject, Input, NgModule } from "@angular/core";
3
+ import * as i2 from "@ngx-formly/core";
4
+ import { FieldWrapper, FormlyAttributes, FormlyModule } from "@ngx-formly/core";
5
+ import * as i1 from "@ionic/angular";
6
+ import { IonItem, IonLabel, IonNote, IonText } from "@ionic/angular";
7
+ import { CommonModule } from "@angular/common";
8
+ import { ReactiveFormsModule } from "@angular/forms";
9
+ var FormlyWrapperFormField = class FormlyWrapperFormField extends FieldWrapper {
10
+ static {
11
+ this.ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "22.2.2",
14
+ ngImport: i0,
15
+ type: FormlyWrapperFormField,
16
+ deps: null,
17
+ target: i0.ɵɵFactoryTarget.Component
18
+ });
19
+ }
20
+ static {
21
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
22
+ minVersion: "17.0.0",
23
+ version: "22.2.2",
24
+ type: FormlyWrapperFormField,
25
+ isStandalone: false,
26
+ selector: "formly-wrapper-ion-form-field",
27
+ usesInheritance: true,
28
+ ngImport: i0,
29
+ template: `
13
30
  <ion-item [lines]="props.itemLines">
14
31
  <ng-template #fieldComponent></ng-template>
15
32
  </ion-item>
16
33
  @if (props.description) {
17
- <ion-note class="ion-margin-start">{{ props.description }}</ion-note>
34
+ <ion-note class="ion-margin-start">
35
+ @if (props.allowHtml) {
36
+ <span [innerHTML]="props.description"></span>
37
+ } @else {
38
+ <ng-container>{{ props.description }}</ng-container>
39
+ }
40
+ </ion-note>
18
41
  }
19
42
  @if (showError) {
20
43
  <ion-item lines="none">
@@ -27,18 +50,82 @@ class FormlyWrapperFormField extends FieldWrapper {
27
50
  </ion-label>
28
51
  </ion-item>
29
52
  }
30
- `, isInline: true, dependencies: [{ kind: "component", type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i1.IonNote, selector: "ion-note", inputs: ["color", "mode"] }, { kind: "component", type: i1.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: i2.LegacyFormlyValidationMessage, selector: "formly-validation-message" }] }); }
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
33
- type: Component,
34
- args: [{
35
- selector: 'formly-wrapper-ion-form-field',
36
- template: `
53
+ `,
54
+ isInline: true,
55
+ dependencies: [
56
+ {
57
+ kind: "component",
58
+ type: i1.IonItem,
59
+ selector: "ion-item",
60
+ inputs: [
61
+ "button",
62
+ "color",
63
+ "detail",
64
+ "detailIcon",
65
+ "disabled",
66
+ "download",
67
+ "href",
68
+ "lines",
69
+ "mode",
70
+ "rel",
71
+ "routerAnimation",
72
+ "routerDirection",
73
+ "target",
74
+ "type"
75
+ ]
76
+ },
77
+ {
78
+ kind: "component",
79
+ type: i1.IonNote,
80
+ selector: "ion-note",
81
+ inputs: ["color", "mode"]
82
+ },
83
+ {
84
+ kind: "component",
85
+ type: i1.IonLabel,
86
+ selector: "ion-label",
87
+ inputs: [
88
+ "color",
89
+ "mode",
90
+ "position"
91
+ ]
92
+ },
93
+ {
94
+ kind: "component",
95
+ type: i1.IonText,
96
+ selector: "ion-text",
97
+ inputs: ["color", "mode"]
98
+ },
99
+ {
100
+ kind: "component",
101
+ type: i2.LegacyFormlyValidationMessage,
102
+ selector: "formly-validation-message"
103
+ }
104
+ ]
105
+ });
106
+ }
107
+ };
108
+ i0.ɵɵngDeclareClassMetadata({
109
+ minVersion: "12.0.0",
110
+ version: "22.2.2",
111
+ ngImport: i0,
112
+ type: FormlyWrapperFormField,
113
+ decorators: [{
114
+ type: Component,
115
+ args: [{
116
+ selector: "formly-wrapper-ion-form-field",
117
+ template: `
37
118
  <ion-item [lines]="props.itemLines">
38
119
  <ng-template #fieldComponent></ng-template>
39
120
  </ion-item>
40
121
  @if (props.description) {
41
- <ion-note class="ion-margin-start">{{ props.description }}</ion-note>
122
+ <ion-note class="ion-margin-start">
123
+ @if (props.allowHtml) {
124
+ <span [innerHTML]="props.description"></span>
125
+ } @else {
126
+ <ng-container>{{ props.description }}</ng-container>
127
+ }
128
+ </ion-note>
42
129
  }
43
130
  @if (showError) {
44
131
  <ion-item lines="none">
@@ -52,66 +139,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
52
139
  </ion-item>
53
140
  }
54
141
  `,
55
- standalone: false,
56
- }]
57
- }] });
58
-
142
+ standalone: false
143
+ }]
144
+ }]
145
+ });
59
146
  function withFormlyFormField() {
60
- return {
61
- wrappers: [
62
- {
63
- name: 'form-field',
64
- component: FormlyWrapperFormField,
65
- },
66
- ],
67
- };
68
- }
69
-
70
- class IonFormlyAttributes extends FormlyAttributes {
71
- constructor(renderer, elementRef, _document) {
72
- super(renderer, elementRef, _document);
73
- }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: IonFormlyAttributes, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
75
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.25", type: IonFormlyAttributes, isStandalone: false, selector: "[ionFormlyAttributes]", inputs: { field: ["ionFormlyAttributes", "field"] }, host: { listeners: { "ionFocus": "onFocus($event)", "ionBlur": "onBlur($event)", "ionChange": "onChange($event)", "ionInput": "onChange($event)" } }, usesInheritance: true, ngImport: i0 }); }
76
- }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: IonFormlyAttributes, decorators: [{
78
- type: Directive,
79
- args: [{
80
- // eslint-disable-next-line
81
- selector: '[ionFormlyAttributes]',
82
- host: {
83
- '(ionFocus)': 'onFocus($event)',
84
- '(ionBlur)': 'onBlur($event)',
85
- '(ionChange)': 'onChange($event)',
86
- '(ionInput)': 'onChange($event)',
87
- },
88
- standalone: false,
89
- }]
90
- }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{
91
- type: Inject,
92
- args: [DOCUMENT]
93
- }] }], propDecorators: { field: [{
94
- type: Input,
95
- args: ['ionFormlyAttributes']
96
- }] } });
97
-
98
- class FormlyFormFieldModule {
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
100
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyFormFieldModule, declarations: [FormlyWrapperFormField, IonFormlyAttributes], imports: [CommonModule, ReactiveFormsModule, IonicModule, i2.FormlyModule], exports: [IonFormlyAttributes] }); }
101
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFormFieldModule, imports: [CommonModule, ReactiveFormsModule, IonicModule, FormlyModule.forChild(withFormlyFormField())] }); }
147
+ return { wrappers: [{
148
+ name: "form-field",
149
+ component: FormlyWrapperFormField
150
+ }] };
102
151
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFormFieldModule, decorators: [{
104
- type: NgModule,
105
- args: [{
106
- declarations: [FormlyWrapperFormField, IonFormlyAttributes],
107
- exports: [IonFormlyAttributes],
108
- imports: [CommonModule, ReactiveFormsModule, IonicModule, FormlyModule.forChild(withFormlyFormField())],
109
- }]
110
- }] });
111
-
112
- /**
113
- * Generated bundle index. Do not edit.
114
- */
115
-
152
+ var IonFormlyAttributes = class IonFormlyAttributes extends FormlyAttributes {
153
+ constructor(renderer, elementRef, _document) {
154
+ super(renderer, elementRef, _document);
155
+ }
156
+ static {
157
+ this.ɵfac = i0.ɵɵngDeclareFactory({
158
+ minVersion: "12.0.0",
159
+ version: "22.2.2",
160
+ ngImport: i0,
161
+ type: IonFormlyAttributes,
162
+ deps: [
163
+ { token: i0.Renderer2 },
164
+ { token: i0.ElementRef },
165
+ { token: DOCUMENT }
166
+ ],
167
+ target: i0.ɵɵFactoryTarget.Directive
168
+ });
169
+ }
170
+ static {
171
+ this.ɵdir = i0.ɵɵngDeclareDirective({
172
+ minVersion: "14.0.0",
173
+ version: "22.2.2",
174
+ type: IonFormlyAttributes,
175
+ isStandalone: false,
176
+ selector: "[ionFormlyAttributes]",
177
+ inputs: { field: ["ionFormlyAttributes", "field"] },
178
+ host: { listeners: {
179
+ "ionFocus": "onFocus($event)",
180
+ "ionBlur": "onBlur($event)",
181
+ "ionChange": "onChange($event)",
182
+ "ionInput": "onChange($event)"
183
+ } },
184
+ usesInheritance: true,
185
+ ngImport: i0
186
+ });
187
+ }
188
+ };
189
+ i0.ɵɵngDeclareClassMetadata({
190
+ minVersion: "12.0.0",
191
+ version: "22.2.2",
192
+ ngImport: i0,
193
+ type: IonFormlyAttributes,
194
+ decorators: [{
195
+ type: Directive,
196
+ args: [{
197
+ selector: "[ionFormlyAttributes]",
198
+ host: {
199
+ "(ionFocus)": "onFocus($event)",
200
+ "(ionBlur)": "onBlur($event)",
201
+ "(ionChange)": "onChange($event)",
202
+ "(ionInput)": "onChange($event)"
203
+ },
204
+ standalone: false
205
+ }]
206
+ }],
207
+ ctorParameters: () => [
208
+ { type: i0.Renderer2 },
209
+ { type: i0.ElementRef },
210
+ {
211
+ type: void 0,
212
+ decorators: [{
213
+ type: Inject,
214
+ args: [DOCUMENT]
215
+ }]
216
+ }
217
+ ],
218
+ propDecorators: { field: [{
219
+ type: Input,
220
+ args: ["ionFormlyAttributes"]
221
+ }] }
222
+ });
223
+ var FormlyFormFieldModule = class FormlyFormFieldModule {
224
+ static {
225
+ this.ɵfac = i0.ɵɵngDeclareFactory({
226
+ minVersion: "12.0.0",
227
+ version: "22.2.2",
228
+ ngImport: i0,
229
+ type: FormlyFormFieldModule,
230
+ deps: [],
231
+ target: i0.ɵɵFactoryTarget.NgModule
232
+ });
233
+ }
234
+ static {
235
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
236
+ minVersion: "14.0.0",
237
+ version: "22.2.2",
238
+ ngImport: i0,
239
+ type: FormlyFormFieldModule,
240
+ declarations: [FormlyWrapperFormField, IonFormlyAttributes],
241
+ imports: [
242
+ CommonModule,
243
+ ReactiveFormsModule,
244
+ IonItem,
245
+ IonNote,
246
+ IonLabel,
247
+ IonText,
248
+ i2.FormlyModule
249
+ ],
250
+ exports: [IonFormlyAttributes]
251
+ });
252
+ }
253
+ static {
254
+ this.ɵinj = i0.ɵɵngDeclareInjector({
255
+ minVersion: "12.0.0",
256
+ version: "22.2.2",
257
+ ngImport: i0,
258
+ type: FormlyFormFieldModule,
259
+ imports: [
260
+ CommonModule,
261
+ ReactiveFormsModule,
262
+ IonItem,
263
+ IonNote,
264
+ IonLabel,
265
+ IonText,
266
+ FormlyModule.forChild(withFormlyFormField())
267
+ ]
268
+ });
269
+ }
270
+ };
271
+ i0.ɵɵngDeclareClassMetadata({
272
+ minVersion: "12.0.0",
273
+ version: "22.2.2",
274
+ ngImport: i0,
275
+ type: FormlyFormFieldModule,
276
+ decorators: [{
277
+ type: NgModule,
278
+ args: [{
279
+ declarations: [FormlyWrapperFormField, IonFormlyAttributes],
280
+ exports: [IonFormlyAttributes],
281
+ imports: [
282
+ CommonModule,
283
+ ReactiveFormsModule,
284
+ IonItem,
285
+ IonNote,
286
+ IonLabel,
287
+ IonText,
288
+ FormlyModule.forChild(withFormlyFormField())
289
+ ]
290
+ }]
291
+ }]
292
+ });
116
293
  export { FormlyFormFieldModule, withFormlyFormField, IonFormlyAttributes as ɵIonFormlyAttributes };
117
- //# sourceMappingURL=ngx-formly-ionic-form-field.mjs.map
294
+
295
+ //# sourceMappingURL=ngx-formly-ionic-form-field.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-ionic-form-field.mjs","sources":["../../../../src/ui/ionic/form-field/src/form-field.wrapper.ts","../../../../src/ui/ionic/form-field/src/form-field.config.ts","../../../../src/ui/ionic/form-field/src/formly.attributes.ts","../../../../src/ui/ionic/form-field/src/form-field.module.ts","../../../../src/ui/ionic/form-field/src/ngx-formly-ionic-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { IonItem, IonLabel } from '@ionic/angular';\nimport { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';\n\nexport interface FormlyFieldProps extends CoreFormlyFieldProps {\n hideLabel?: boolean;\n hideRequiredMarker?: boolean;\n itemLines?: IonItem['lines'];\n labelPosition?: IonLabel['position'];\n}\n\n@Component({\n selector: 'formly-wrapper-ion-form-field',\n template: `\n <ion-item [lines]=\"props.itemLines\">\n <ng-template #fieldComponent></ng-template>\n </ion-item>\n @if (props.description) {\n <ion-note class=\"ion-margin-start\">{{ props.description }}</ion-note>\n }\n @if (showError) {\n <ion-item lines=\"none\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n }\n `,\n standalone: false,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n };\n}\n","import { Directive, ElementRef, Inject, Input, Renderer2, DOCUMENT } from '@angular/core';\nimport { FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\n\n@Directive({\n // eslint-disable-next-line\n selector: '[ionFormlyAttributes]',\n host: {\n '(ionFocus)': 'onFocus($event)',\n '(ionBlur)': 'onBlur($event)',\n '(ionChange)': 'onChange($event)',\n '(ionInput)': 'onChange($event)',\n },\n standalone: false,\n})\nexport class IonFormlyAttributes extends FormlyAttributes {\n @Input('ionFormlyAttributes') override field: FormlyFieldConfig;\n constructor(renderer: Renderer2, elementRef: ElementRef, @Inject(DOCUMENT) _document: any) {\n super(renderer, elementRef, _document);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { IonFormlyAttributes } from './formly.attributes';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n declarations: [FormlyWrapperFormField, IonFormlyAttributes],\n exports: [IonFormlyAttributes],\n imports: [CommonModule, ReactiveFormsModule, IonicModule, FormlyModule.forChild(withFormlyFormField())],\n})\nexport class FormlyFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAkCM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;+GAAhF,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EArBvB;;;;;;;;;;;;;;;;;;AAkBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAA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,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAE3F,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;oBAC3D,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;AACxG,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-ionic-form-field.mjs","names":[],"sources":["../../../../src/ui/ionic/form-field/src/form-field.wrapper.ts","../../../../src/ui/ionic/form-field/src/form-field.config.ts","../../../../src/ui/ionic/form-field/src/formly.attributes.ts","../../../../src/ui/ionic/form-field/src/form-field.module.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { IonItem, IonLabel } from '@ionic/angular';\nimport { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';\n\nexport interface FormlyFieldProps extends CoreFormlyFieldProps {\n hideLabel?: boolean;\n hideRequiredMarker?: boolean;\n itemLines?: IonItem['lines'];\n labelPosition?: IonLabel['position'];\n}\n\n@Component({\n selector: 'formly-wrapper-ion-form-field',\n template: `\n <ion-item [lines]=\"props.itemLines\">\n <ng-template #fieldComponent></ng-template>\n </ion-item>\n @if (props.description) {\n <ion-note class=\"ion-margin-start\">\n @if (props.allowHtml) {\n <span [innerHTML]=\"props.description\"></span>\n } @else {\n <ng-container>{{ props.description }}</ng-container>\n }\n </ion-note>\n }\n @if (showError) {\n <ion-item lines=\"none\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n }\n `,\n standalone: false,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n };\n}\n","import { Directive, ElementRef, Inject, Input, Renderer2, DOCUMENT } from '@angular/core';\nimport { FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\n\n@Directive({\n // eslint-disable-next-line\n selector: '[ionFormlyAttributes]',\n host: {\n '(ionFocus)': 'onFocus($event)',\n '(ionBlur)': 'onBlur($event)',\n '(ionChange)': 'onChange($event)',\n '(ionInput)': 'onChange($event)',\n },\n standalone: false,\n})\nexport class IonFormlyAttributes extends FormlyAttributes {\n @Input('ionFormlyAttributes') override field: FormlyFieldConfig;\n constructor(renderer: Renderer2, elementRef: ElementRef, @Inject(DOCUMENT) _document: any) {\n super(renderer, elementRef, _document);\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 { IonItem, IonNote, IonLabel, IonText } from '@ionic/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { IonFormlyAttributes } from './formly.attributes';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n declarations: [FormlyWrapperFormField, IonFormlyAttributes],\n exports: [IonFormlyAttributes],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonItem,\n IonNote,\n IonLabel,\n IonText,\n FormlyModule.forChild(withFormlyFormField()),\n ],\n})\nexport class FormlyFormFieldModule {}\n"],"mappings":";;;;;;;;AAwCA,IAAa,yBAAb,MAAa,+BAA+B,aAAiD;CAAhF;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAsB,MAAA;GAAA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