@ngx-formly/ionic 6.3.11 → 7.0.0-alpha.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 +1 -0
- package/checkbox/checkbox.config.d.ts +2 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/public_api.d.ts +1 -0
- package/datetime/datetime.config.d.ts +2 -0
- package/datetime/datetime.type.d.ts +1 -2
- package/datetime/public_api.d.ts +1 -0
- package/esm2022/checkbox/checkbox.config.mjs +17 -0
- package/esm2022/checkbox/checkbox.module.mjs +36 -0
- package/esm2022/checkbox/checkbox.type.mjs +23 -0
- package/esm2022/checkbox/public_api.mjs +4 -0
- package/esm2022/datetime/datetime.config.mjs +13 -0
- package/esm2022/datetime/datetime.module.mjs +36 -0
- package/esm2022/datetime/datetime.type.mjs +129 -0
- package/esm2022/datetime/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.config.mjs +12 -0
- package/esm2022/form-field/form-field.module.mjs +24 -0
- package/esm2022/form-field/form-field.wrapper.mjs +44 -0
- package/esm2022/form-field/formly.attributes.mjs +31 -0
- package/esm2022/form-field/public_api.mjs +4 -0
- package/esm2022/input/input.config.mjs +32 -0
- package/esm2022/input/input.module.mjs +37 -0
- package/esm2022/input/input.type.mjs +48 -0
- package/esm2022/input/public_api.mjs +4 -0
- package/esm2022/lib/ui-ionic.config.mjs +17 -0
- package/esm2022/lib/ui-ionic.mjs +3 -0
- package/esm2022/lib/ui-ionic.module.mjs +50 -0
- package/esm2022/radio/public_api.mjs +4 -0
- package/esm2022/radio/radio.config.mjs +13 -0
- package/esm2022/radio/radio.module.mjs +40 -0
- package/esm2022/radio/radio.type.mjs +45 -0
- package/esm2022/select/public_api.mjs +4 -0
- package/esm2022/select/select.config.mjs +14 -0
- package/esm2022/select/select.module.mjs +41 -0
- package/esm2022/select/select.type.mjs +67 -0
- package/esm2022/slider/public_api.mjs +3 -0
- package/esm2022/slider/slider.config.mjs +10 -0
- package/esm2022/slider/slider.module.mjs +37 -0
- package/esm2022/slider/slider.type.mjs +37 -0
- package/esm2022/textarea/public_api.mjs +4 -0
- package/esm2022/textarea/textarea.config.mjs +13 -0
- package/esm2022/textarea/textarea.module.mjs +37 -0
- package/esm2022/textarea/textarea.type.mjs +33 -0
- package/esm2022/toggle/public_api.mjs +3 -0
- package/esm2022/toggle/toggle.config.mjs +13 -0
- package/esm2022/toggle/toggle.module.mjs +36 -0
- package/esm2022/toggle/toggle.type.mjs +23 -0
- package/fesm2022/ngx-formly-ionic-checkbox.mjs +77 -0
- package/fesm2022/ngx-formly-ionic-checkbox.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-ionic-datetime.mjs +36 -43
- package/fesm2022/ngx-formly-ionic-datetime.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-form-field.mjs +106 -0
- package/fesm2022/ngx-formly-ionic-form-field.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-input.mjs +118 -0
- package/fesm2022/ngx-formly-ionic-input.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-radio.mjs +99 -0
- package/fesm2022/ngx-formly-ionic-radio.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-select.mjs +123 -0
- package/fesm2022/ngx-formly-ionic-select.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-slider.mjs +85 -0
- package/fesm2022/ngx-formly-ionic-slider.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-textarea.mjs +84 -0
- package/fesm2022/ngx-formly-ionic-textarea.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic-toggle.mjs +73 -0
- package/fesm2022/ngx-formly-ionic-toggle.mjs.map +1 -0
- package/fesm2022/ngx-formly-ionic.mjs +72 -0
- package/fesm2022/ngx-formly-ionic.mjs.map +1 -0
- package/form-field/form-field.config.d.ts +2 -0
- package/form-field/form-field.module.d.ts +0 -2
- package/form-field/form-field.wrapper.d.ts +1 -2
- package/form-field/formly.attributes.d.ts +1 -1
- package/form-field/public_api.d.ts +1 -0
- package/input/input.config.d.ts +2 -0
- package/input/input.type.d.ts +1 -1
- package/input/public_api.d.ts +1 -0
- package/lib/ui-ionic.config.d.ts +1 -0
- package/lib/ui-ionic.d.ts +1 -0
- package/package.json +45 -69
- package/radio/public_api.d.ts +1 -0
- package/radio/radio.config.d.ts +2 -0
- package/radio/radio.type.d.ts +2 -3
- package/select/public_api.d.ts +1 -0
- package/select/select.config.d.ts +2 -0
- package/select/select.type.d.ts +1 -1
- package/slider/public_api.d.ts +1 -0
- package/slider/slider.config.d.ts +2 -0
- package/slider/slider.type.d.ts +1 -1
- package/textarea/public_api.d.ts +1 -0
- package/textarea/textarea.config.d.ts +2 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/toggle/public_api.d.ts +1 -0
- package/toggle/toggle.config.d.ts +2 -0
- package/toggle/toggle.type.d.ts +1 -1
- package/checkbox/package.json +0 -10
- package/datetime/package.json +0 -10
- package/esm2020/checkbox/checkbox.module.mjs +0 -61
- package/esm2020/checkbox/checkbox.type.mjs +0 -27
- package/esm2020/checkbox/public_api.mjs +0 -3
- package/esm2020/datetime/datetime.module.mjs +0 -53
- package/esm2020/datetime/datetime.type.mjs +0 -130
- package/esm2020/datetime/public_api.mjs +0 -2
- package/esm2020/form-field/form-field.module.mjs +0 -60
- package/esm2020/form-field/form-field.wrapper.mjs +0 -52
- package/esm2020/form-field/formly.attributes.mjs +0 -30
- package/esm2020/form-field/public_api.mjs +0 -3
- package/esm2020/input/input.module.mjs +0 -92
- package/esm2020/input/input.type.mjs +0 -53
- package/esm2020/input/public_api.mjs +0 -3
- package/esm2020/lib/ui-ionic.mjs +0 -2
- package/esm2020/lib/ui-ionic.module.mjs +0 -52
- package/esm2020/radio/public_api.mjs +0 -3
- package/esm2020/radio/radio.module.mjs +0 -57
- package/esm2020/radio/radio.type.mjs +0 -70
- package/esm2020/select/public_api.mjs +0 -3
- package/esm2020/select/select.module.mjs +0 -60
- package/esm2020/select/select.type.mjs +0 -72
- package/esm2020/slider/public_api.mjs +0 -2
- package/esm2020/slider/slider.module.mjs +0 -48
- package/esm2020/slider/slider.type.mjs +0 -42
- package/esm2020/textarea/public_api.mjs +0 -3
- package/esm2020/textarea/textarea.module.mjs +0 -54
- package/esm2020/textarea/textarea.type.mjs +0 -38
- package/esm2020/toggle/public_api.mjs +0 -2
- package/esm2020/toggle/toggle.module.mjs +0 -53
- package/esm2020/toggle/toggle.type.mjs +0 -27
- package/fesm2015/ngx-formly-ionic-checkbox.mjs +0 -91
- package/fesm2015/ngx-formly-ionic-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-datetime.mjs +0 -187
- package/fesm2015/ngx-formly-ionic-datetime.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-form-field.mjs +0 -139
- package/fesm2015/ngx-formly-ionic-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-input.mjs +0 -148
- package/fesm2015/ngx-formly-ionic-input.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-radio.mjs +0 -129
- package/fesm2015/ngx-formly-ionic-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-select.mjs +0 -135
- package/fesm2015/ngx-formly-ionic-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-slider.mjs +0 -93
- package/fesm2015/ngx-formly-ionic-slider.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-textarea.mjs +0 -95
- package/fesm2015/ngx-formly-ionic-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic-toggle.mjs +0 -83
- package/fesm2015/ngx-formly-ionic-toggle.mjs.map +0 -1
- package/fesm2015/ngx-formly-ionic.mjs +0 -63
- package/fesm2015/ngx-formly-ionic.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-checkbox.mjs +0 -91
- package/fesm2020/ngx-formly-ionic-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-datetime.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-form-field.mjs +0 -139
- package/fesm2020/ngx-formly-ionic-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-input.mjs +0 -148
- package/fesm2020/ngx-formly-ionic-input.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-radio.mjs +0 -129
- package/fesm2020/ngx-formly-ionic-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-select.mjs +0 -135
- package/fesm2020/ngx-formly-ionic-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-slider.mjs +0 -93
- package/fesm2020/ngx-formly-ionic-slider.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-textarea.mjs +0 -95
- package/fesm2020/ngx-formly-ionic-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic-toggle.mjs +0 -83
- package/fesm2020/ngx-formly-ionic-toggle.mjs.map +0 -1
- package/fesm2020/ngx-formly-ionic.mjs +0 -63
- package/fesm2020/ngx-formly-ionic.mjs.map +0 -1
- package/form-field/package.json +0 -10
- package/input/package.json +0 -10
- package/radio/package.json +0 -10
- package/select/package.json +0 -10
- package/slider/package.json +0 -10
- package/textarea/package.json +0 -10
- package/toggle/package.json +0 -10
- /package/checkbox/{ngx-formly-ionic-checkbox.d.ts → index.d.ts} +0 -0
- /package/datetime/{ngx-formly-ionic-datetime.d.ts → index.d.ts} +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-ionic-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/datetime/ngx-formly-ionic-datetime.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-ionic-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ngx-formly-ionic-input.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-ionic.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-ionic-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-ionic-select.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/ngx-formly-ionic-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-ionic-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/ngx-formly-ionic-toggle.mjs +0 -0
- /package/form-field/{ngx-formly-ionic-form-field.d.ts → index.d.ts} +0 -0
- /package/{ngx-formly-ionic.d.ts → index.d.ts} +0 -0
- /package/input/{ngx-formly-ionic-input.d.ts → index.d.ts} +0 -0
- /package/radio/{ngx-formly-ionic-radio.d.ts → index.d.ts} +0 -0
- /package/select/{ngx-formly-ionic-select.d.ts → index.d.ts} +0 -0
- /package/slider/{ngx-formly-ionic-slider.d.ts → index.d.ts} +0 -0
- /package/textarea/{ngx-formly-ionic-textarea.d.ts → index.d.ts} +0 -0
- /package/toggle/{ngx-formly-ionic-toggle.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } 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/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/forms';
|
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i3 from '@ionic/angular';
|
|
10
|
+
import { IonicModule } from '@ionic/angular';
|
|
11
|
+
import * as i4 from '@ngx-formly/ionic/form-field';
|
|
12
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
13
|
+
|
|
14
|
+
class FormlyFieldInput extends FieldType {
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldInput, selector: "formly-field-ion-input", usesInheritance: true, ngImport: i0, template: `
|
|
17
|
+
<ion-input
|
|
18
|
+
*ngIf="props.type !== 'number'; else numberTmp"
|
|
19
|
+
[type]="props.type || 'text'"
|
|
20
|
+
[label]="props.label"
|
|
21
|
+
[formControl]="formControl"
|
|
22
|
+
[ionFormlyAttributes]="field"
|
|
23
|
+
></ion-input>
|
|
24
|
+
<ng-template #numberTmp>
|
|
25
|
+
<ion-input
|
|
26
|
+
type="number"
|
|
27
|
+
[label]="props.label"
|
|
28
|
+
[formControl]="formControl"
|
|
29
|
+
[ionFormlyAttributes]="field"
|
|
30
|
+
></ion-input>
|
|
31
|
+
</ng-template>
|
|
32
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.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: i3.NumericValueAccessor, selector: "ion-input[type=number],ion-range" }, { kind: "directive", type: i3.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { kind: "directive", type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'formly-field-ion-input', template: `
|
|
37
|
+
<ion-input
|
|
38
|
+
*ngIf="props.type !== 'number'; else numberTmp"
|
|
39
|
+
[type]="props.type || 'text'"
|
|
40
|
+
[label]="props.label"
|
|
41
|
+
[formControl]="formControl"
|
|
42
|
+
[ionFormlyAttributes]="field"
|
|
43
|
+
></ion-input>
|
|
44
|
+
<ng-template #numberTmp>
|
|
45
|
+
<ion-input
|
|
46
|
+
type="number"
|
|
47
|
+
[label]="props.label"
|
|
48
|
+
[formControl]="formControl"
|
|
49
|
+
[ionFormlyAttributes]="field"
|
|
50
|
+
></ion-input>
|
|
51
|
+
</ng-template>
|
|
52
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
53
|
+
}] });
|
|
54
|
+
|
|
55
|
+
function withFormlyFieldInput() {
|
|
56
|
+
return {
|
|
57
|
+
types: [
|
|
58
|
+
{
|
|
59
|
+
name: 'input',
|
|
60
|
+
component: FormlyFieldInput,
|
|
61
|
+
wrappers: ['form-field'],
|
|
62
|
+
},
|
|
63
|
+
{ name: 'string', extends: 'input' },
|
|
64
|
+
{
|
|
65
|
+
name: 'number',
|
|
66
|
+
extends: 'input',
|
|
67
|
+
defaultOptions: {
|
|
68
|
+
props: {
|
|
69
|
+
type: 'number',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'integer',
|
|
75
|
+
extends: 'input',
|
|
76
|
+
defaultOptions: {
|
|
77
|
+
props: {
|
|
78
|
+
type: 'number',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
class FormlyInputModule {
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
88
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
89
|
+
ReactiveFormsModule,
|
|
90
|
+
IonicModule,
|
|
91
|
+
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
92
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyInputModule, imports: [CommonModule,
|
|
93
|
+
ReactiveFormsModule,
|
|
94
|
+
IonicModule,
|
|
95
|
+
FormlyFormFieldModule,
|
|
96
|
+
FormlyModule.forChild(withFormlyFieldInput())] }); }
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
99
|
+
type: NgModule,
|
|
100
|
+
args: [{
|
|
101
|
+
declarations: [FormlyFieldInput],
|
|
102
|
+
imports: [
|
|
103
|
+
CommonModule,
|
|
104
|
+
ReactiveFormsModule,
|
|
105
|
+
IonicModule,
|
|
106
|
+
FormlyFormFieldModule,
|
|
107
|
+
FormlyModule.forChild(withFormlyFieldInput()),
|
|
108
|
+
],
|
|
109
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
110
|
+
}]
|
|
111
|
+
}] });
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Generated bundle index. Do not edit.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
export { FormlyFieldInput, FormlyInputModule, withFormlyFieldInput };
|
|
118
|
+
//# sourceMappingURL=ngx-formly-ionic-input.mjs.map
|
|
@@ -0,0 +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 { Component, ChangeDetectionStrategy, Type } from '@angular/core';\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 <ion-input\n *ngIf=\"props.type !== 'number'; else numberTmp\"\n [type]=\"props.type || 'text'\"\n [label]=\"props.label\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n ></ion-input>\n <ng-template #numberTmp>\n <ion-input\n type=\"number\"\n [label]=\"props.label\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n ></ion-input>\n </ng-template>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\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":";;;;;;;;;;;;;AAgCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;+GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EApBjB,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;AAgBT,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,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,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,oBAA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AA,QAAA,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,EAAA;;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,CAAA;;;ACpBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, 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/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/forms';
|
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i3 from '@ionic/angular';
|
|
10
|
+
import { IonicModule } from '@ionic/angular';
|
|
11
|
+
import * as i4 from '@ngx-formly/ionic/form-field';
|
|
12
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
13
|
+
import * as i5 from '@ngx-formly/core/select';
|
|
14
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
15
|
+
|
|
16
|
+
class FormlyFieldRadio extends FieldType {
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldRadio, selector: "formly-field-ion-radio", usesInheritance: true, ngImport: i0, template: `
|
|
19
|
+
<ion-list>
|
|
20
|
+
<ion-list-header>{{ props.label }}</ion-list-header>
|
|
21
|
+
<ion-radio-group [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
22
|
+
<ion-item
|
|
23
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async"
|
|
24
|
+
[disabled]="option.disabled || formControl.disabled"
|
|
25
|
+
>
|
|
26
|
+
<ion-radio [value]="option.value">
|
|
27
|
+
{{ option.label }}
|
|
28
|
+
</ion-radio>
|
|
29
|
+
</ion-item>
|
|
30
|
+
</ion-radio-group>
|
|
31
|
+
</ion-list>
|
|
32
|
+
`, isInline: true, styles: [":host{display:inherit}:host ion-list{flex:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: i3.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i3.IonListHeader, selector: "ion-list-header", inputs: ["color", "lines", "mode"] }, { kind: "component", type: i3.IonRadio, selector: "ion-radio", inputs: ["alignment", "color", "disabled", "justify", "labelPlacement", "mode", "name", "value"] }, { kind: "component", type: i3.IonRadioGroup, selector: "ion-radio-group", inputs: ["allowEmptySelection", "compareWith", "name", "value"] }, { kind: "directive", type: i3.SelectValueAccessor, selector: "ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "directive", type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'formly-field-ion-radio', template: `
|
|
37
|
+
<ion-list>
|
|
38
|
+
<ion-list-header>{{ props.label }}</ion-list-header>
|
|
39
|
+
<ion-radio-group [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
40
|
+
<ion-item
|
|
41
|
+
*ngFor="let option of props.options | formlySelectOptions: field | async"
|
|
42
|
+
[disabled]="option.disabled || formControl.disabled"
|
|
43
|
+
>
|
|
44
|
+
<ion-radio [value]="option.value">
|
|
45
|
+
{{ option.label }}
|
|
46
|
+
</ion-radio>
|
|
47
|
+
</ion-item>
|
|
48
|
+
</ion-radio-group>
|
|
49
|
+
</ion-list>
|
|
50
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}:host ion-list{flex:1}\n"] }]
|
|
51
|
+
}] });
|
|
52
|
+
|
|
53
|
+
function withFormlyFieldRadio() {
|
|
54
|
+
return {
|
|
55
|
+
types: [
|
|
56
|
+
{
|
|
57
|
+
name: 'radio',
|
|
58
|
+
component: FormlyFieldRadio,
|
|
59
|
+
wrappers: ['form-field'],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
class FormlyRadioModule {
|
|
66
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
67
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
68
|
+
ReactiveFormsModule,
|
|
69
|
+
IonicModule,
|
|
70
|
+
FormlyFormFieldModule,
|
|
71
|
+
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
72
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyRadioModule, imports: [CommonModule,
|
|
73
|
+
ReactiveFormsModule,
|
|
74
|
+
IonicModule,
|
|
75
|
+
FormlyFormFieldModule,
|
|
76
|
+
FormlySelectModule,
|
|
77
|
+
FormlyModule.forChild(withFormlyFieldRadio())] }); }
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyRadioModule, decorators: [{
|
|
80
|
+
type: NgModule,
|
|
81
|
+
args: [{
|
|
82
|
+
declarations: [FormlyFieldRadio],
|
|
83
|
+
imports: [
|
|
84
|
+
CommonModule,
|
|
85
|
+
ReactiveFormsModule,
|
|
86
|
+
IonicModule,
|
|
87
|
+
FormlyFormFieldModule,
|
|
88
|
+
FormlySelectModule,
|
|
89
|
+
FormlyModule.forChild(withFormlyFieldRadio()),
|
|
90
|
+
],
|
|
91
|
+
}]
|
|
92
|
+
}] });
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Generated bundle index. Do not edit.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
export { FormlyFieldRadio, FormlyRadioModule, withFormlyFieldRadio };
|
|
99
|
+
//# sourceMappingURL=ngx-formly-ionic-radio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-radio.mjs","sources":["../../../../src/ui/ionic/radio/src/radio.type.ts","../../../../src/ui/ionic/radio/src/radio.config.ts","../../../../src/ui/ionic/radio/src/radio.module.ts","../../../../src/ui/ionic/radio/src/ngx-formly-ionic-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ntype RadioProps = FormlyFieldProps;\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-ion-radio',\n template: `\n <ion-list>\n <ion-list-header>{{ props.label }}</ion-list-header>\n <ion-radio-group [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\">\n <ion-item\n *ngFor=\"let option of props.options | formlySelectOptions: field | async\"\n [disabled]=\"option.disabled || formControl.disabled\"\n >\n <ion-radio [value]=\"option.value\">\n {{ option.label }}\n </ion-radio>\n </ion-item>\n </ion-radio-group>\n </ion-list>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./radio.type.scss'],\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldRadio } from './radio.type';\n\nexport function withFormlyFieldRadio(): ConfigOption {\n return {\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldRadio } from './radio.type';\nimport { withFormlyFieldRadio } from './radio.config';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldRadio()),\n ],\n})\nexport class FormlyRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AA8BM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;+GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAlBjB,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,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,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AA,EAAA,iBAAiB,YAT1B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,qBAAqB;YACrB,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGpC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAZ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;wBACrB,kBAAkB;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } 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/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@angular/forms';
|
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i3 from '@ionic/angular';
|
|
10
|
+
import { IonicModule } from '@ionic/angular';
|
|
11
|
+
import * as i4 from '@ngx-formly/ionic/form-field';
|
|
12
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
13
|
+
import * as i5 from '@ngx-formly/core/select';
|
|
14
|
+
import { FormlySelectModule as FormlySelectModule$1 } from '@ngx-formly/core/select';
|
|
15
|
+
|
|
16
|
+
class FormlyFieldSelect extends FieldType {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.defaultOptions = {
|
|
20
|
+
props: {
|
|
21
|
+
compareWith(o1, o2) {
|
|
22
|
+
return o1 === o2;
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldSelect, selector: "formly-field-ion-select", usesInheritance: true, ngImport: i0, template: `
|
|
29
|
+
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
30
|
+
<ng-container *ngIf="props.options | formlySelectOptions: field | async; let selectOptions">
|
|
31
|
+
<ion-select
|
|
32
|
+
[style.align-self]="props.labelPosition === 'floating' ? 'stretch' : ''"
|
|
33
|
+
[style.max-width.%]="props.labelPosition === 'floating' ? 100 : ''"
|
|
34
|
+
[formControl]="formControl"
|
|
35
|
+
[compareWith]="props.compareWith"
|
|
36
|
+
[ionFormlyAttributes]="field"
|
|
37
|
+
[multiple]="props.multiple"
|
|
38
|
+
[interface]="props.interface"
|
|
39
|
+
[okText]="props.okText"
|
|
40
|
+
[cancelText]="props.cancelText"
|
|
41
|
+
[label]="props.label"
|
|
42
|
+
>
|
|
43
|
+
<ion-select-option *ngFor="let option of selectOptions" [value]="option.value" [disabled]="option.disabled">
|
|
44
|
+
{{ option.label }}
|
|
45
|
+
</ion-select-option>
|
|
46
|
+
</ion-select>
|
|
47
|
+
</ng-container>
|
|
48
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.IonSelect, selector: "ion-select", inputs: ["cancelText", "color", "compareWith", "disabled", "expandedIcon", "fill", "interface", "interfaceOptions", "justify", "label", "labelPlacement", "mode", "multiple", "name", "okText", "placeholder", "selectedText", "shape", "toggleIcon", "value"] }, { kind: "component", type: i3.IonSelectOption, selector: "ion-select-option", inputs: ["disabled", "value"] }, { kind: "directive", type: i3.SelectValueAccessor, selector: "ion-select, ion-radio-group, ion-segment, ion-datetime" }, { kind: "directive", type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: 'formly-field-ion-select', template: `
|
|
53
|
+
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
54
|
+
<ng-container *ngIf="props.options | formlySelectOptions: field | async; let selectOptions">
|
|
55
|
+
<ion-select
|
|
56
|
+
[style.align-self]="props.labelPosition === 'floating' ? 'stretch' : ''"
|
|
57
|
+
[style.max-width.%]="props.labelPosition === 'floating' ? 100 : ''"
|
|
58
|
+
[formControl]="formControl"
|
|
59
|
+
[compareWith]="props.compareWith"
|
|
60
|
+
[ionFormlyAttributes]="field"
|
|
61
|
+
[multiple]="props.multiple"
|
|
62
|
+
[interface]="props.interface"
|
|
63
|
+
[okText]="props.okText"
|
|
64
|
+
[cancelText]="props.cancelText"
|
|
65
|
+
[label]="props.label"
|
|
66
|
+
>
|
|
67
|
+
<ion-select-option *ngFor="let option of selectOptions" [value]="option.value" [disabled]="option.disabled">
|
|
68
|
+
{{ option.label }}
|
|
69
|
+
</ion-select-option>
|
|
70
|
+
</ion-select>
|
|
71
|
+
</ng-container>
|
|
72
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
73
|
+
}] });
|
|
74
|
+
|
|
75
|
+
function withFormlyFieldSelect() {
|
|
76
|
+
return {
|
|
77
|
+
types: [
|
|
78
|
+
{
|
|
79
|
+
name: 'select',
|
|
80
|
+
component: FormlyFieldSelect,
|
|
81
|
+
wrappers: ['form-field'],
|
|
82
|
+
},
|
|
83
|
+
{ name: 'enum', extends: 'select' },
|
|
84
|
+
],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
class FormlySelectModule {
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
90
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlySelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
91
|
+
ReactiveFormsModule,
|
|
92
|
+
IonicModule,
|
|
93
|
+
FormlyFormFieldModule,
|
|
94
|
+
FormlySelectModule$1, i1$1.FormlyModule] }); }
|
|
95
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySelectModule, imports: [CommonModule,
|
|
96
|
+
ReactiveFormsModule,
|
|
97
|
+
IonicModule,
|
|
98
|
+
FormlyFormFieldModule,
|
|
99
|
+
FormlySelectModule$1,
|
|
100
|
+
FormlyModule.forChild(withFormlyFieldSelect())] }); }
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySelectModule, decorators: [{
|
|
103
|
+
type: NgModule,
|
|
104
|
+
args: [{
|
|
105
|
+
declarations: [FormlyFieldSelect],
|
|
106
|
+
imports: [
|
|
107
|
+
CommonModule,
|
|
108
|
+
ReactiveFormsModule,
|
|
109
|
+
IonicModule,
|
|
110
|
+
FormlyFormFieldModule,
|
|
111
|
+
FormlySelectModule$1,
|
|
112
|
+
FormlyModule.forChild(withFormlyFieldSelect()),
|
|
113
|
+
],
|
|
114
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
115
|
+
}]
|
|
116
|
+
}] });
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Generated bundle index. Do not edit.
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
export { FormlyFieldSelect, FormlySelectModule, withFormlyFieldSelect };
|
|
123
|
+
//# sourceMappingURL=ngx-formly-ionic-select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-select.mjs","sources":["../../../../src/ui/ionic/select/src/select.type.ts","../../../../src/ui/ionic/select/src/select.config.ts","../../../../src/ui/ionic/select/src/select.module.ts","../../../../src/ui/ionic/select/src/ngx-formly-ionic-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n compareWith?: ((currentValue: any, compareValue: any) => boolean) | null | string | undefined;\n multiple?: boolean;\n interface?: 'action-sheet' | 'alert' | 'popover';\n okText?: string;\n cancelText?: string;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-ion-select',\n template: `\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n <ng-container *ngIf=\"props.options | formlySelectOptions: field | async; let selectOptions\">\n <ion-select\n [style.align-self]=\"props.labelPosition === 'floating' ? 'stretch' : ''\"\n [style.max-width.%]=\"props.labelPosition === 'floating' ? 100 : ''\"\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"props.multiple\"\n [interface]=\"props.interface\"\n [okText]=\"props.okText\"\n [cancelText]=\"props.cancelText\"\n [label]=\"props.label\"\n >\n <ion-select-option *ngFor=\"let option of selectOptions\" [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n </ion-select>\n </ng-container>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSelect } from './select.type';\n\nexport function withFormlyFieldSelect(): ConfigOption {\n return {\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n };\n}\n","import { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlySelectModule as FormlyCoreSelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldSelect } from './select.type';\nimport { withFormlyFieldSelect } from './select.config';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlySelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyCoreSelectModule","i1"],"mappings":";;;;;;;;;;;;;;;AA2CM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA1B9E,IAAA,WAAA,GAAA;;AA2BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE,CAAC;iBAClB;AACF,aAAA;SACF,CAAC;AACH,KAAA;+GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAxBlB,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;AAoBT,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,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,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ACtB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAIrC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;wBACrBA,oBAAsB;AACtB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } 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: "16.2.12", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldSlider, selector: "formly-field-ion-range", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<ion-range
|
|
17
|
+
[min]="props.min"
|
|
18
|
+
[max]="props.max"
|
|
19
|
+
[formControl]="formControl"
|
|
20
|
+
[ionFormlyAttributes]="field"
|
|
21
|
+
[label]="props.label"
|
|
22
|
+
>
|
|
23
|
+
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
24
|
+
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
25
|
+
</ion-range>
|
|
26
|
+
`, 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-range" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldSlider, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'formly-field-ion-range', template: `
|
|
31
|
+
<ion-range
|
|
32
|
+
[min]="props.min"
|
|
33
|
+
[max]="props.max"
|
|
34
|
+
[formControl]="formControl"
|
|
35
|
+
[ionFormlyAttributes]="field"
|
|
36
|
+
[label]="props.label"
|
|
37
|
+
>
|
|
38
|
+
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
39
|
+
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
40
|
+
</ion-range>
|
|
41
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
42
|
+
}] });
|
|
43
|
+
|
|
44
|
+
function withFormlyFieldSlider() {
|
|
45
|
+
return {
|
|
46
|
+
types: [
|
|
47
|
+
{ name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
|
|
48
|
+
{ name: 'range', extends: 'slider' },
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
class FormlySliderModule {
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
55
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
|
56
|
+
ReactiveFormsModule,
|
|
57
|
+
IonicModule,
|
|
58
|
+
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
59
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySliderModule, imports: [CommonModule,
|
|
60
|
+
ReactiveFormsModule,
|
|
61
|
+
IonicModule,
|
|
62
|
+
FormlyFormFieldModule,
|
|
63
|
+
FormlyModule.forChild(withFormlyFieldSlider())] }); }
|
|
64
|
+
}
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlySliderModule, decorators: [{
|
|
66
|
+
type: NgModule,
|
|
67
|
+
args: [{
|
|
68
|
+
declarations: [FormlyFieldSlider],
|
|
69
|
+
imports: [
|
|
70
|
+
CommonModule,
|
|
71
|
+
ReactiveFormsModule,
|
|
72
|
+
IonicModule,
|
|
73
|
+
FormlyFormFieldModule,
|
|
74
|
+
FormlyModule.forChild(withFormlyFieldSlider()),
|
|
75
|
+
],
|
|
76
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
77
|
+
}]
|
|
78
|
+
}] });
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Generated bundle index. Do not edit.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
export { FormlySliderModule, withFormlyFieldSlider };
|
|
85
|
+
//# sourceMappingURL=ngx-formly-ionic-slider.mjs.map
|
|
@@ -0,0 +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 { Component, ChangeDetectionStrategy, Type } from '@angular/core';\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 >\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})\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":";;;;;;;;;;;;AA2BM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;+GAAjE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAflB,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;AAWT,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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+1,84 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } 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: "16.2.12", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldTextArea, selector: "formly-field-ion-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<ion-textarea
|
|
17
|
+
[formControl]="formControl"
|
|
18
|
+
[ionFormlyAttributes]="field"
|
|
19
|
+
[cols]="props.cols"
|
|
20
|
+
[rows]="props.rows"
|
|
21
|
+
[label]="props.label"
|
|
22
|
+
>
|
|
23
|
+
</ion-textarea>
|
|
24
|
+
`, 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-textarea,ion-searchbar" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: 'formly-field-ion-textarea', template: `
|
|
29
|
+
<ion-textarea
|
|
30
|
+
[formControl]="formControl"
|
|
31
|
+
[ionFormlyAttributes]="field"
|
|
32
|
+
[cols]="props.cols"
|
|
33
|
+
[rows]="props.rows"
|
|
34
|
+
[label]="props.label"
|
|
35
|
+
>
|
|
36
|
+
</ion-textarea>
|
|
37
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }]
|
|
38
|
+
}] });
|
|
39
|
+
|
|
40
|
+
function withFormlyFieldTextArea() {
|
|
41
|
+
return {
|
|
42
|
+
types: [
|
|
43
|
+
{
|
|
44
|
+
name: 'textarea',
|
|
45
|
+
component: FormlyFieldTextArea,
|
|
46
|
+
wrappers: ['form-field'],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class FormlyTextAreaModule {
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
54
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
55
|
+
ReactiveFormsModule,
|
|
56
|
+
IonicModule,
|
|
57
|
+
FormlyFormFieldModule, i1$1.FormlyModule] }); }
|
|
58
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyTextAreaModule, imports: [CommonModule,
|
|
59
|
+
ReactiveFormsModule,
|
|
60
|
+
IonicModule,
|
|
61
|
+
FormlyFormFieldModule,
|
|
62
|
+
FormlyModule.forChild(withFormlyFieldTextArea())] }); }
|
|
63
|
+
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyTextAreaModule, decorators: [{
|
|
65
|
+
type: NgModule,
|
|
66
|
+
args: [{
|
|
67
|
+
declarations: [FormlyFieldTextArea],
|
|
68
|
+
imports: [
|
|
69
|
+
CommonModule,
|
|
70
|
+
ReactiveFormsModule,
|
|
71
|
+
IonicModule,
|
|
72
|
+
FormlyFormFieldModule,
|
|
73
|
+
FormlyModule.forChild(withFormlyFieldTextArea()),
|
|
74
|
+
],
|
|
75
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
76
|
+
}]
|
|
77
|
+
}] });
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Generated bundle index. Do not edit.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
export { FormlyFieldTextArea, FormlyTextAreaModule, withFormlyFieldTextArea };
|
|
84
|
+
//# sourceMappingURL=ngx-formly-ionic-textarea.mjs.map
|
|
@@ -0,0 +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 { Component, ChangeDetectionStrategy, Type } from '@angular/core';\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 >\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\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":["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