@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.
- 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,87 +1,221 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { ChangeDetectionStrategy, Component,
|
|
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 { 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
|
-
`,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
`,
|
|
44
|
-
|
|
45
|
-
|
|
137
|
+
`,
|
|
138
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
139
|
+
standalone: false,
|
|
140
|
+
styles: [":host{display:inherit}\n"]
|
|
141
|
+
}]
|
|
142
|
+
}]
|
|
143
|
+
});
|
|
46
144
|
function withFormlyFieldSlider() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
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"
|
|
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;GA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;CAAC,GACxE;EAAE,MAAM;EAAS,SAAS;CAAQ,CACnC,EACF;AACH;ACWA,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,CAVd,iBAAiB;GAAA,SAAA;IAE9B;IACA;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;IAR3B;IACA;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;EAX9B,MAAA;EAAS,MAAA,CAAA;GACR,cAAc,CAAC,iBAAiB;GAChC,SAAS;IACP;IACA;IACA;IACA;IACA;IACA,aAAa,SAAS,sBAAqB,CAAE;GAC9C;EACF,CAAA"}
|
|
@@ -1,86 +1,213 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { ChangeDetectionStrategy, Component,
|
|
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 { 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
|
-
`,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
`,
|
|
40
|
-
|
|
41
|
-
|
|
135
|
+
`,
|
|
136
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
137
|
+
standalone: false,
|
|
138
|
+
styles: [":host{display:inherit}\n"]
|
|
139
|
+
}]
|
|
140
|
+
}]
|
|
141
|
+
});
|
|
42
142
|
function withFormlyFieldTextArea() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
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"
|
|
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,UAAA;GAAA,MAAA;GAAmB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAmB,cAAA;GAAA,UAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UAlBpB;;;;;;;;;;;;;;GAaT,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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