@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,87 +1,221 @@
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 FormlyFieldSlider extends FieldType {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: FormlyFieldSlider, isStandalone: false, selector: "formly-field-ion-range", 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 { IonLabel, IonRange } 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 FormlyFieldSlider = class FormlyFieldSlider extends FieldType {
13
+ static {
14
+ this.ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "22.2.2",
17
+ ngImport: i0,
18
+ type: FormlyFieldSlider,
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: FormlyFieldSlider,
28
+ isStandalone: false,
29
+ selector: "formly-field-ion-range",
30
+ usesInheritance: true,
31
+ ngImport: i0,
32
+ template: `
16
33
  <ion-range
17
34
  [min]="props.min"
18
35
  [max]="props.max"
19
36
  [formControl]="formControl"
20
37
  [ionFormlyAttributes]="field"
21
- [label]="props.label"
38
+ [label]="props.allowHtml ? undefined : props.label"
22
39
  [labelPlacement]="props.labelPosition ?? 'start'"
23
40
  >
41
+ @if (props.allowHtml && props.label) {
42
+ <span slot="label" [innerHTML]="props.label"></span>
43
+ }
24
44
  <ion-label slot="start">{{ props.min }}</ion-label>
25
45
  <ion-label slot="end">{{ props.max }}</ion-label>
26
46
  </ion-range>
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
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldSlider, decorators: [{
30
- type: Component,
31
- args: [{ selector: 'formly-field-ion-range', template: `
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.IonRange,
71
+ selector: "ion-range",
72
+ inputs: [
73
+ "activeBarStart",
74
+ "color",
75
+ "debounce",
76
+ "disabled",
77
+ "dualKnobs",
78
+ "label",
79
+ "labelPlacement",
80
+ "max",
81
+ "min",
82
+ "mode",
83
+ "name",
84
+ "pin",
85
+ "pinFormatter",
86
+ "snaps",
87
+ "step",
88
+ "ticks",
89
+ "value"
90
+ ]
91
+ },
92
+ {
93
+ kind: "component",
94
+ type: i2.IonLabel,
95
+ selector: "ion-label",
96
+ inputs: [
97
+ "color",
98
+ "mode",
99
+ "position"
100
+ ]
101
+ },
102
+ {
103
+ kind: "directive",
104
+ type: i3.ɵIonFormlyAttributes,
105
+ selector: "[ionFormlyAttributes]",
106
+ inputs: ["ionFormlyAttributes"]
107
+ }
108
+ ],
109
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
110
+ });
111
+ }
112
+ };
113
+ i0.ɵɵngDeclareClassMetadata({
114
+ minVersion: "12.0.0",
115
+ version: "22.2.2",
116
+ ngImport: i0,
117
+ type: FormlyFieldSlider,
118
+ decorators: [{
119
+ type: Component,
120
+ args: [{
121
+ selector: "formly-field-ion-range",
122
+ template: `
32
123
  <ion-range
33
124
  [min]="props.min"
34
125
  [max]="props.max"
35
126
  [formControl]="formControl"
36
127
  [ionFormlyAttributes]="field"
37
- [label]="props.label"
128
+ [label]="props.allowHtml ? undefined : props.label"
38
129
  [labelPlacement]="props.labelPosition ?? 'start'"
39
130
  >
131
+ @if (props.allowHtml && props.label) {
132
+ <span slot="label" [innerHTML]="props.label"></span>
133
+ }
40
134
  <ion-label slot="start">{{ props.min }}</ion-label>
41
135
  <ion-label slot="end">{{ props.max }}</ion-label>
42
136
  </ion-range>
43
- `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
44
- }] });
45
-
137
+ `,
138
+ changeDetection: ChangeDetectionStrategy.OnPush,
139
+ standalone: false,
140
+ styles: [":host{display:inherit}\n"]
141
+ }]
142
+ }]
143
+ });
46
144
  function withFormlyFieldSlider() {
47
- return {
48
- types: [
49
- { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
50
- { name: 'range', extends: 'slider' },
51
- ],
52
- };
53
- }
54
-
55
- class FormlySliderModule {
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
57
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
58
- ReactiveFormsModule,
59
- IonicModule,
60
- FormlyFormFieldModule, i1$1.FormlyModule] }); }
61
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlySliderModule, imports: [CommonModule,
62
- ReactiveFormsModule,
63
- IonicModule,
64
- FormlyFormFieldModule,
65
- FormlyModule.forChild(withFormlyFieldSlider())] }); }
145
+ return { types: [{
146
+ name: "slider",
147
+ component: FormlyFieldSlider,
148
+ wrappers: ["form-field"]
149
+ }, {
150
+ name: "range",
151
+ extends: "slider"
152
+ }] };
66
153
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlySliderModule, decorators: [{
68
- type: NgModule,
69
- args: [{
70
- declarations: [FormlyFieldSlider],
71
- imports: [
72
- CommonModule,
73
- ReactiveFormsModule,
74
- IonicModule,
75
- FormlyFormFieldModule,
76
- FormlyModule.forChild(withFormlyFieldSlider()),
77
- ],
78
- schemas: [NO_ERRORS_SCHEMA],
79
- }]
80
- }] });
81
-
82
- /**
83
- * Generated bundle index. Do not edit.
84
- */
85
-
154
+ var FormlySliderModule = class FormlySliderModule {
155
+ static {
156
+ this.ɵfac = i0.ɵɵngDeclareFactory({
157
+ minVersion: "12.0.0",
158
+ version: "22.2.2",
159
+ ngImport: i0,
160
+ type: FormlySliderModule,
161
+ deps: [],
162
+ target: i0.ɵɵFactoryTarget.NgModule
163
+ });
164
+ }
165
+ static {
166
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
167
+ minVersion: "14.0.0",
168
+ version: "22.2.2",
169
+ ngImport: i0,
170
+ type: FormlySliderModule,
171
+ declarations: [FormlyFieldSlider],
172
+ imports: [
173
+ CommonModule,
174
+ ReactiveFormsModule,
175
+ IonRange,
176
+ IonLabel,
177
+ FormlyFormFieldModule,
178
+ i1.FormlyModule
179
+ ]
180
+ });
181
+ }
182
+ static {
183
+ this.ɵinj = i0.ɵɵngDeclareInjector({
184
+ minVersion: "12.0.0",
185
+ version: "22.2.2",
186
+ ngImport: i0,
187
+ type: FormlySliderModule,
188
+ imports: [
189
+ CommonModule,
190
+ ReactiveFormsModule,
191
+ IonRange,
192
+ IonLabel,
193
+ FormlyFormFieldModule,
194
+ FormlyModule.forChild(withFormlyFieldSlider())
195
+ ]
196
+ });
197
+ }
198
+ };
199
+ i0.ɵɵngDeclareClassMetadata({
200
+ minVersion: "12.0.0",
201
+ version: "22.2.2",
202
+ ngImport: i0,
203
+ type: FormlySliderModule,
204
+ decorators: [{
205
+ type: NgModule,
206
+ args: [{
207
+ declarations: [FormlyFieldSlider],
208
+ imports: [
209
+ CommonModule,
210
+ ReactiveFormsModule,
211
+ IonRange,
212
+ IonLabel,
213
+ FormlyFormFieldModule,
214
+ FormlyModule.forChild(withFormlyFieldSlider())
215
+ ]
216
+ }]
217
+ }]
218
+ });
86
219
  export { FormlySliderModule, withFormlyFieldSlider };
87
- //# sourceMappingURL=ngx-formly-ionic-slider.mjs.map
220
+
221
+ //# sourceMappingURL=ngx-formly-ionic-slider.mjs.map
@@ -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 ?? '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,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,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAjBlB;;;;;;;;;;;;AAYT,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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B,iBAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-ionic-slider.mjs","names":[],"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"],"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.allowHtml ? undefined : props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n >\n @if (props.allowHtml && props.label) {\n <span slot=\"label\" [innerHTML]=\"props.label\"></span>\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 { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonRange, IonLabel } 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 IonRange,\n IonLabel,\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldSlider()),\n ],\n})\nexport class FormlySliderModule {}\n"],"mappings":";;;;;;;;;;;AAiCA,IAAa,oBAAb,MAAa,0BAA0B,UAAuC;CAAjE;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,UApBlB;;;;;;;;;;;;;;;;GAeT,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;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;KAAA;IAAA;IAAA;KAAA,MAAA;KAAA,MAAA,GAAA;KAAA,UAAA;KAAA,QAAA;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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ategy, 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 FormlyFieldTextArea extends FieldType {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-ion-textarea", 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 { IonTextarea } 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 FormlyFieldTextArea = class FormlyFieldTextArea extends FieldType {
13
+ static {
14
+ this.ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "22.2.2",
17
+ ngImport: i0,
18
+ type: FormlyFieldTextArea,
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: FormlyFieldTextArea,
28
+ isStandalone: false,
29
+ selector: "formly-field-ion-textarea",
30
+ usesInheritance: true,
31
+ ngImport: i0,
32
+ template: `
16
33
  <ion-textarea
17
34
  [formControl]="formControl"
18
35
  [ionFormlyAttributes]="field"
19
36
  [cols]="props.cols"
20
37
  [rows]="props.rows"
21
- [label]="props.label"
38
+ [label]="props.allowHtml ? undefined : props.label"
22
39
  [labelPlacement]="props.labelPosition ?? 'start'"
23
40
  >
41
+ @if (props.allowHtml && props.label) {
42
+ <span slot="label" [innerHTML]="props.label"></span>
43
+ }
24
44
  </ion-textarea>
25
- `, isInline: true, styles: [":host{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.IonTextarea, selector: "ion-textarea", inputs: ["autoGrow", "autocapitalize", "autofocus", "clearOnEdit", "color", "cols", "counter", "counterFormatter", "debounce", "disabled", "enterkeyhint", "errorText", "fill", "helperText", "inputmode", "label", "labelPlacement", "maxlength", "minlength", "mode", "name", "placeholder", "readonly", "required", "rows", "shape", "spellcheck", "value", "wrap"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-input-otp[type=text],ion-textarea,ion-searchbar" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
28
- type: Component,
29
- args: [{ selector: 'formly-field-ion-textarea', template: `
45
+ `,
46
+ isInline: true,
47
+ styles: [":host{display:inherit}\n"],
48
+ dependencies: [
49
+ {
50
+ kind: "directive",
51
+ type: i1$1.NgControlStatus,
52
+ selector: "[formControlName],[ngModel],[formControl]"
53
+ },
54
+ {
55
+ kind: "directive",
56
+ type: i1$1.FormControlDirective,
57
+ selector: "[formControl]",
58
+ inputs: [
59
+ "formControl",
60
+ "disabled",
61
+ "ngModel"
62
+ ],
63
+ outputs: ["ngModelChange"],
64
+ exportAs: ["ngForm"]
65
+ },
66
+ {
67
+ kind: "component",
68
+ type: i2.IonTextarea,
69
+ selector: "ion-textarea",
70
+ inputs: [
71
+ "autoGrow",
72
+ "autocapitalize",
73
+ "autofocus",
74
+ "clearOnEdit",
75
+ "color",
76
+ "cols",
77
+ "counter",
78
+ "counterFormatter",
79
+ "debounce",
80
+ "disabled",
81
+ "enterkeyhint",
82
+ "errorText",
83
+ "fill",
84
+ "helperText",
85
+ "inputmode",
86
+ "label",
87
+ "labelPlacement",
88
+ "maxlength",
89
+ "minlength",
90
+ "mode",
91
+ "name",
92
+ "placeholder",
93
+ "readonly",
94
+ "required",
95
+ "rows",
96
+ "shape",
97
+ "spellcheck",
98
+ "value",
99
+ "wrap"
100
+ ]
101
+ },
102
+ {
103
+ kind: "directive",
104
+ type: i3.ɵIonFormlyAttributes,
105
+ selector: "[ionFormlyAttributes]",
106
+ inputs: ["ionFormlyAttributes"]
107
+ }
108
+ ],
109
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
110
+ });
111
+ }
112
+ };
113
+ i0.ɵɵngDeclareClassMetadata({
114
+ minVersion: "12.0.0",
115
+ version: "22.2.2",
116
+ ngImport: i0,
117
+ type: FormlyFieldTextArea,
118
+ decorators: [{
119
+ type: Component,
120
+ args: [{
121
+ selector: "formly-field-ion-textarea",
122
+ template: `
30
123
  <ion-textarea
31
124
  [formControl]="formControl"
32
125
  [ionFormlyAttributes]="field"
33
126
  [cols]="props.cols"
34
127
  [rows]="props.rows"
35
- [label]="props.label"
128
+ [label]="props.allowHtml ? undefined : props.label"
36
129
  [labelPlacement]="props.labelPosition ?? 'start'"
37
130
  >
131
+ @if (props.allowHtml && props.label) {
132
+ <span slot="label" [innerHTML]="props.label"></span>
133
+ }
38
134
  </ion-textarea>
39
- `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: [":host{display:inherit}\n"] }]
40
- }] });
41
-
135
+ `,
136
+ changeDetection: ChangeDetectionStrategy.OnPush,
137
+ standalone: false,
138
+ styles: [":host{display:inherit}\n"]
139
+ }]
140
+ }]
141
+ });
42
142
  function withFormlyFieldTextArea() {
43
- return {
44
- types: [
45
- {
46
- name: 'textarea',
47
- component: FormlyFieldTextArea,
48
- wrappers: ['form-field'],
49
- },
50
- ],
51
- };
52
- }
53
-
54
- class FormlyTextAreaModule {
55
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
56
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
57
- ReactiveFormsModule,
58
- IonicModule,
59
- FormlyFormFieldModule, i1$1.FormlyModule] }); }
60
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyTextAreaModule, imports: [CommonModule,
61
- ReactiveFormsModule,
62
- IonicModule,
63
- FormlyFormFieldModule,
64
- FormlyModule.forChild(withFormlyFieldTextArea())] }); }
143
+ return { types: [{
144
+ name: "textarea",
145
+ component: FormlyFieldTextArea,
146
+ wrappers: ["form-field"]
147
+ }] };
65
148
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyTextAreaModule, decorators: [{
67
- type: NgModule,
68
- args: [{
69
- declarations: [FormlyFieldTextArea],
70
- imports: [
71
- CommonModule,
72
- ReactiveFormsModule,
73
- IonicModule,
74
- FormlyFormFieldModule,
75
- FormlyModule.forChild(withFormlyFieldTextArea()),
76
- ],
77
- schemas: [NO_ERRORS_SCHEMA],
78
- }]
79
- }] });
80
-
81
- /**
82
- * Generated bundle index. Do not edit.
83
- */
84
-
149
+ var FormlyTextAreaModule = class FormlyTextAreaModule {
150
+ static {
151
+ this.ɵfac = i0.ɵɵngDeclareFactory({
152
+ minVersion: "12.0.0",
153
+ version: "22.2.2",
154
+ ngImport: i0,
155
+ type: FormlyTextAreaModule,
156
+ deps: [],
157
+ target: i0.ɵɵFactoryTarget.NgModule
158
+ });
159
+ }
160
+ static {
161
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
162
+ minVersion: "14.0.0",
163
+ version: "22.2.2",
164
+ ngImport: i0,
165
+ type: FormlyTextAreaModule,
166
+ declarations: [FormlyFieldTextArea],
167
+ imports: [
168
+ CommonModule,
169
+ ReactiveFormsModule,
170
+ IonTextarea,
171
+ FormlyFormFieldModule,
172
+ i1.FormlyModule
173
+ ]
174
+ });
175
+ }
176
+ static {
177
+ this.ɵinj = i0.ɵɵngDeclareInjector({
178
+ minVersion: "12.0.0",
179
+ version: "22.2.2",
180
+ ngImport: i0,
181
+ type: FormlyTextAreaModule,
182
+ imports: [
183
+ CommonModule,
184
+ ReactiveFormsModule,
185
+ IonTextarea,
186
+ FormlyFormFieldModule,
187
+ FormlyModule.forChild(withFormlyFieldTextArea())
188
+ ]
189
+ });
190
+ }
191
+ };
192
+ i0.ɵɵngDeclareClassMetadata({
193
+ minVersion: "12.0.0",
194
+ version: "22.2.2",
195
+ ngImport: i0,
196
+ type: FormlyTextAreaModule,
197
+ decorators: [{
198
+ type: NgModule,
199
+ args: [{
200
+ declarations: [FormlyFieldTextArea],
201
+ imports: [
202
+ CommonModule,
203
+ ReactiveFormsModule,
204
+ IonTextarea,
205
+ FormlyFormFieldModule,
206
+ FormlyModule.forChild(withFormlyFieldTextArea())
207
+ ]
208
+ }]
209
+ }]
210
+ });
85
211
  export { FormlyFieldTextArea, FormlyTextAreaModule, withFormlyFieldTextArea };
86
- //# sourceMappingURL=ngx-formly-ionic-textarea.mjs.map
212
+
213
+ //# sourceMappingURL=ngx-formly-ionic-textarea.mjs.map
@@ -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 ?? 'start'\"\n >\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldTextArea } from './textarea.type';\n\nexport function withFormlyFieldTextArea(): ConfigOption {\n return {\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n };\n}\n","import { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA4BM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;+GAArE,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,eAAA,EAAA,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,EA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AoB,CAAA;+GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAApB,oBAAoB,EAAA,YAAA,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","names":[],"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"],"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.allowHtml ? undefined : props.label\"\n [labelPlacement]=\"props.labelPosition ?? 'start'\"\n >\n @if (props.allowHtml && props.label) {\n <span slot=\"label\" [innerHTML]=\"props.label\"></span>\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 { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonTextarea } 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 IonTextarea,\n\n FormlyFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n})\nexport class FormlyTextAreaModule {}\n"],"mappings":";;;;;;;;;;;AA+BA,IAAa,sBAAb,MAAa,4BAA4B,UAAyC;CAArE;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UA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