@ngx-formly/ionic 6.3.12 → 7.0.0-alpha.1
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 +37 -44
- 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
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i1$1 from '@ngx-formly/core';
|
|
6
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
|
-
import * as i3 from '@angular/forms';
|
|
8
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import * as i1 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
|
-
}
|
|
16
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldInput, selector: "formly-field-ion-input", usesInheritance: true, ngImport: i0, template: `
|
|
18
|
-
<ion-input
|
|
19
|
-
*ngIf="props.type !== 'number'; else numberTmp"
|
|
20
|
-
[type]="props.type || 'text'"
|
|
21
|
-
[label]="props.label"
|
|
22
|
-
[formControl]="formControl"
|
|
23
|
-
[ionFormlyAttributes]="field"
|
|
24
|
-
></ion-input>
|
|
25
|
-
<ng-template #numberTmp>
|
|
26
|
-
<ion-input
|
|
27
|
-
type="number"
|
|
28
|
-
[label]="props.label"
|
|
29
|
-
[formControl]="formControl"
|
|
30
|
-
[ionFormlyAttributes]="field"
|
|
31
|
-
></ion-input>
|
|
32
|
-
</ng-template>
|
|
33
|
-
`, isInline: true, styles: [":host{display:inherit}\n"], components: [{ type: i1.IonInput, selector: "ion-input", inputs: ["accept", "autocapitalize", "autocomplete", "autocorrect", "autofocus", "clearInput", "clearOnEdit", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "max", "maxlength", "min", "minlength", "mode", "multiple", "name", "pattern", "placeholder", "readonly", "required", "size", "spellcheck", "step", "type", "value"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { type: i1.NumericValueAccessor, selector: "ion-input[type=number]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
35
|
-
type: Component,
|
|
36
|
-
args: [{
|
|
37
|
-
selector: 'formly-field-ion-input',
|
|
38
|
-
template: `
|
|
39
|
-
<ion-input
|
|
40
|
-
*ngIf="props.type !== 'number'; else numberTmp"
|
|
41
|
-
[type]="props.type || 'text'"
|
|
42
|
-
[label]="props.label"
|
|
43
|
-
[formControl]="formControl"
|
|
44
|
-
[ionFormlyAttributes]="field"
|
|
45
|
-
></ion-input>
|
|
46
|
-
<ng-template #numberTmp>
|
|
47
|
-
<ion-input
|
|
48
|
-
type="number"
|
|
49
|
-
[label]="props.label"
|
|
50
|
-
[formControl]="formControl"
|
|
51
|
-
[ionFormlyAttributes]="field"
|
|
52
|
-
></ion-input>
|
|
53
|
-
</ng-template>
|
|
54
|
-
`,
|
|
55
|
-
styles: [':host { display: inherit; }'],
|
|
56
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
57
|
-
}]
|
|
58
|
-
}] });
|
|
59
|
-
|
|
60
|
-
class FormlyInputModule {
|
|
61
|
-
}
|
|
62
|
-
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
63
|
-
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
64
|
-
ReactiveFormsModule,
|
|
65
|
-
IonicModule,
|
|
66
|
-
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
67
|
-
FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyInputModule, imports: [[
|
|
68
|
-
CommonModule,
|
|
69
|
-
ReactiveFormsModule,
|
|
70
|
-
IonicModule,
|
|
71
|
-
FormlyFormFieldModule,
|
|
72
|
-
FormlyModule.forChild({
|
|
73
|
-
types: [
|
|
74
|
-
{
|
|
75
|
-
name: 'input',
|
|
76
|
-
component: FormlyFieldInput,
|
|
77
|
-
wrappers: ['form-field'],
|
|
78
|
-
},
|
|
79
|
-
{ name: 'string', extends: 'input' },
|
|
80
|
-
{
|
|
81
|
-
name: 'number',
|
|
82
|
-
extends: 'input',
|
|
83
|
-
defaultOptions: {
|
|
84
|
-
props: {
|
|
85
|
-
type: 'number',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'integer',
|
|
91
|
-
extends: 'input',
|
|
92
|
-
defaultOptions: {
|
|
93
|
-
props: {
|
|
94
|
-
type: 'number',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
}),
|
|
100
|
-
]] });
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
102
|
-
type: NgModule,
|
|
103
|
-
args: [{
|
|
104
|
-
declarations: [FormlyFieldInput],
|
|
105
|
-
imports: [
|
|
106
|
-
CommonModule,
|
|
107
|
-
ReactiveFormsModule,
|
|
108
|
-
IonicModule,
|
|
109
|
-
FormlyFormFieldModule,
|
|
110
|
-
FormlyModule.forChild({
|
|
111
|
-
types: [
|
|
112
|
-
{
|
|
113
|
-
name: 'input',
|
|
114
|
-
component: FormlyFieldInput,
|
|
115
|
-
wrappers: ['form-field'],
|
|
116
|
-
},
|
|
117
|
-
{ name: 'string', extends: 'input' },
|
|
118
|
-
{
|
|
119
|
-
name: 'number',
|
|
120
|
-
extends: 'input',
|
|
121
|
-
defaultOptions: {
|
|
122
|
-
props: {
|
|
123
|
-
type: 'number',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: 'integer',
|
|
129
|
-
extends: 'input',
|
|
130
|
-
defaultOptions: {
|
|
131
|
-
props: {
|
|
132
|
-
type: 'number',
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
}),
|
|
138
|
-
],
|
|
139
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
140
|
-
}]
|
|
141
|
-
}] });
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Generated bundle index. Do not edit.
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
export { FormlyFieldInput, FormlyInputModule };
|
|
148
|
-
//# sourceMappingURL=ngx-formly-ionic-input.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-input.mjs","sources":["../../../../src/ui/ionic/input/src/input.type.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 { 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';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\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 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;;8GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,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,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA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,EAAE;AACd,4BAAA,KAAK,EAAE;AACL,gCAAA,IAAI,EAAE,QAAQ;AACf,6BAAA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAGU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAtC7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;AC9CD;;AAEG;;;;"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import * as i5 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@ngx-formly/core';
|
|
6
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
|
-
import * as i3 from '@angular/forms';
|
|
8
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
-
import * as i1 from '@ionic/angular';
|
|
10
|
-
import { IonicModule } from '@ionic/angular';
|
|
11
|
-
import * as i6 from '@ngx-formly/core/select';
|
|
12
|
-
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
13
|
-
import * as i4 from '@ngx-formly/ionic/form-field';
|
|
14
|
-
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
15
|
-
|
|
16
|
-
class FormlyFieldRadio extends FieldType {
|
|
17
|
-
}
|
|
18
|
-
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
-
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldRadio, selector: "formly-field-ion-radio", usesInheritance: true, ngImport: i0, template: `
|
|
20
|
-
<ion-list>
|
|
21
|
-
<ion-radio-group [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
22
|
-
<ion-list-header>{{ props.label }}</ion-list-header>
|
|
23
|
-
<ion-item
|
|
24
|
-
*ngFor="let option of props.options | formlySelectOptions : field | async"
|
|
25
|
-
[disabled]="option.disabled || formControl.disabled"
|
|
26
|
-
>
|
|
27
|
-
<ion-label *ngIf="props.legacyLabel">{{ option.label }}</ion-label>
|
|
28
|
-
<ion-radio [value]="option.value">
|
|
29
|
-
{{ option.label }}
|
|
30
|
-
</ion-radio>
|
|
31
|
-
</ion-item>
|
|
32
|
-
</ion-radio-group>
|
|
33
|
-
</ion-list>
|
|
34
|
-
<ion-item lines="none" *ngIf="showError">
|
|
35
|
-
<ion-label>
|
|
36
|
-
<ion-text color="danger">
|
|
37
|
-
<p>
|
|
38
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
39
|
-
</p>
|
|
40
|
-
</ion-text>
|
|
41
|
-
</ion-label>
|
|
42
|
-
</ion-item>
|
|
43
|
-
`, isInline: true, components: [{ type: i1.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { type: i1.IonRadioGroup, selector: "ion-radio-group", inputs: ["allowEmptySelection", "name", "value"] }, { type: i1.IonListHeader, selector: "ion-list-header", inputs: ["color", "lines", "mode"] }, { type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i1.IonRadio, selector: "ion-radio", inputs: ["color", "disabled", "mode", "name", "value"] }, { type: i1.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.RadioValueAccessor, selector: "ion-radio" }], pipes: { "async": i5.AsyncPipe, "formlySelectOptions": i6.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
45
|
-
type: Component,
|
|
46
|
-
args: [{
|
|
47
|
-
selector: 'formly-field-ion-radio',
|
|
48
|
-
template: `
|
|
49
|
-
<ion-list>
|
|
50
|
-
<ion-radio-group [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
51
|
-
<ion-list-header>{{ props.label }}</ion-list-header>
|
|
52
|
-
<ion-item
|
|
53
|
-
*ngFor="let option of props.options | formlySelectOptions : field | async"
|
|
54
|
-
[disabled]="option.disabled || formControl.disabled"
|
|
55
|
-
>
|
|
56
|
-
<ion-label *ngIf="props.legacyLabel">{{ option.label }}</ion-label>
|
|
57
|
-
<ion-radio [value]="option.value">
|
|
58
|
-
{{ option.label }}
|
|
59
|
-
</ion-radio>
|
|
60
|
-
</ion-item>
|
|
61
|
-
</ion-radio-group>
|
|
62
|
-
</ion-list>
|
|
63
|
-
<ion-item lines="none" *ngIf="showError">
|
|
64
|
-
<ion-label>
|
|
65
|
-
<ion-text color="danger">
|
|
66
|
-
<p>
|
|
67
|
-
<formly-validation-message [field]="field"></formly-validation-message>
|
|
68
|
-
</p>
|
|
69
|
-
</ion-text>
|
|
70
|
-
</ion-label>
|
|
71
|
-
</ion-item>
|
|
72
|
-
`,
|
|
73
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
|
-
}]
|
|
75
|
-
}] });
|
|
76
|
-
|
|
77
|
-
class FormlyRadioModule {
|
|
78
|
-
}
|
|
79
|
-
FormlyRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
80
|
-
FormlyRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyRadioModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
81
|
-
ReactiveFormsModule,
|
|
82
|
-
IonicModule,
|
|
83
|
-
FormlyFormFieldModule,
|
|
84
|
-
FormlySelectModule, i2.FormlyModule] });
|
|
85
|
-
FormlyRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyRadioModule, imports: [[
|
|
86
|
-
CommonModule,
|
|
87
|
-
ReactiveFormsModule,
|
|
88
|
-
IonicModule,
|
|
89
|
-
FormlyFormFieldModule,
|
|
90
|
-
FormlySelectModule,
|
|
91
|
-
FormlyModule.forChild({
|
|
92
|
-
types: [
|
|
93
|
-
{
|
|
94
|
-
name: 'radio',
|
|
95
|
-
component: FormlyFieldRadio,
|
|
96
|
-
wrappers: [],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
}),
|
|
100
|
-
]] });
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyRadioModule, decorators: [{
|
|
102
|
-
type: NgModule,
|
|
103
|
-
args: [{
|
|
104
|
-
declarations: [FormlyFieldRadio],
|
|
105
|
-
imports: [
|
|
106
|
-
CommonModule,
|
|
107
|
-
ReactiveFormsModule,
|
|
108
|
-
IonicModule,
|
|
109
|
-
FormlyFormFieldModule,
|
|
110
|
-
FormlySelectModule,
|
|
111
|
-
FormlyModule.forChild({
|
|
112
|
-
types: [
|
|
113
|
-
{
|
|
114
|
-
name: 'radio',
|
|
115
|
-
component: FormlyFieldRadio,
|
|
116
|
-
wrappers: [],
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
}),
|
|
120
|
-
],
|
|
121
|
-
}]
|
|
122
|
-
}] });
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Generated bundle index. Do not edit.
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
export { FormlyFieldRadio, FormlyRadioModule };
|
|
129
|
-
//# sourceMappingURL=ngx-formly-ionic-radio.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-radio.mjs","sources":["../../../../src/ui/ionic/radio/src/radio.type.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\ninterface RadioProps extends 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-radio-group [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\">\n <ion-list-header>{{ props.label }}</ion-list-header>\n <ion-item\n *ngFor=\"let option of props.options | formlySelectOptions : field | async\"\n [disabled]=\"option.disabled || formControl.disabled\"\n >\n <ion-label *ngIf=\"props.legacyLabel\">{{ option.label }}</ion-label>\n <ion-radio [value]=\"option.value\">\n {{ option.label }}\n </ion-radio>\n </ion-item>\n </ion-radio-group>\n </ion-list>\n <ion-item lines=\"none\" *ngIf=\"showError\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {}\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';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: [],\n },\n ],\n }),\n ],\n})\nexport class FormlyRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAuCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;;8GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EA3BjB,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAwBT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,qBAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QA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,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAlBnB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,qBAAqB;YACrB,kBAAkB;YAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,SAAS,EAAE,gBAAgB;AAC3B,wBAAA,QAAQ,EAAE,EAAE;AACb,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;4FAEU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBApB7B,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;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;AAC3B,oCAAA,QAAQ,EAAE,EAAE;AACb,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@angular/forms';
|
|
6
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i1$1 from '@ngx-formly/core';
|
|
8
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
9
|
-
import * as i1 from '@ionic/angular';
|
|
10
|
-
import { IonicModule } from '@ionic/angular';
|
|
11
|
-
import * as i5 from '@ngx-formly/core/select';
|
|
12
|
-
import { FormlySelectModule as FormlySelectModule$1 } from '@ngx-formly/core/select';
|
|
13
|
-
import * as i4 from '@ngx-formly/ionic/form-field';
|
|
14
|
-
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
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
|
-
}
|
|
28
|
-
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldSelect, selector: "formly-field-ion-select", usesInheritance: true, ngImport: i0, template: `
|
|
30
|
-
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
31
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async; let selectOptions">
|
|
32
|
-
<ion-select
|
|
33
|
-
[style.align-self]="props.labelPosition === 'floating' ? 'stretch' : ''"
|
|
34
|
-
[style.max-width.%]="props.labelPosition === 'floating' ? 100 : ''"
|
|
35
|
-
[formControl]="formControl"
|
|
36
|
-
[compareWith]="props.compareWith"
|
|
37
|
-
[ionFormlyAttributes]="field"
|
|
38
|
-
[multiple]="props.multiple"
|
|
39
|
-
[interface]="props.interface"
|
|
40
|
-
[okText]="props.okText"
|
|
41
|
-
[cancelText]="props.cancelText"
|
|
42
|
-
[label]="props.label"
|
|
43
|
-
>
|
|
44
|
-
<ion-select-option *ngFor="let option of selectOptions" [value]="option.value" [disabled]="option.disabled">
|
|
45
|
-
{{ option.label }}
|
|
46
|
-
</ion-select-option>
|
|
47
|
-
</ion-select>
|
|
48
|
-
</ng-container>
|
|
49
|
-
`, isInline: true, styles: [":host{display:inherit}\n"], components: [{ type: i1.IonSelect, selector: "ion-select", inputs: ["cancelText", "compareWith", "disabled", "interface", "interfaceOptions", "mode", "multiple", "name", "okText", "placeholder", "selectedText", "value"] }, { type: i1.IonSelectOption, selector: "ion-select-option", inputs: ["disabled", "value"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2.AsyncPipe, "formlySelectOptions": i5.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
51
|
-
type: Component,
|
|
52
|
-
args: [{
|
|
53
|
-
selector: 'formly-field-ion-select',
|
|
54
|
-
template: `
|
|
55
|
-
<!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->
|
|
56
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async; let selectOptions">
|
|
57
|
-
<ion-select
|
|
58
|
-
[style.align-self]="props.labelPosition === 'floating' ? 'stretch' : ''"
|
|
59
|
-
[style.max-width.%]="props.labelPosition === 'floating' ? 100 : ''"
|
|
60
|
-
[formControl]="formControl"
|
|
61
|
-
[compareWith]="props.compareWith"
|
|
62
|
-
[ionFormlyAttributes]="field"
|
|
63
|
-
[multiple]="props.multiple"
|
|
64
|
-
[interface]="props.interface"
|
|
65
|
-
[okText]="props.okText"
|
|
66
|
-
[cancelText]="props.cancelText"
|
|
67
|
-
[label]="props.label"
|
|
68
|
-
>
|
|
69
|
-
<ion-select-option *ngFor="let option of selectOptions" [value]="option.value" [disabled]="option.disabled">
|
|
70
|
-
{{ option.label }}
|
|
71
|
-
</ion-select-option>
|
|
72
|
-
</ion-select>
|
|
73
|
-
</ng-container>
|
|
74
|
-
`,
|
|
75
|
-
styles: [':host { display: inherit; }'],
|
|
76
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
77
|
-
}]
|
|
78
|
-
}] });
|
|
79
|
-
|
|
80
|
-
class FormlySelectModule {
|
|
81
|
-
}
|
|
82
|
-
FormlySelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
83
|
-
FormlySelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
84
|
-
ReactiveFormsModule,
|
|
85
|
-
IonicModule,
|
|
86
|
-
FormlyFormFieldModule,
|
|
87
|
-
FormlySelectModule$1, i1$1.FormlyModule] });
|
|
88
|
-
FormlySelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySelectModule, imports: [[
|
|
89
|
-
CommonModule,
|
|
90
|
-
ReactiveFormsModule,
|
|
91
|
-
IonicModule,
|
|
92
|
-
FormlyFormFieldModule,
|
|
93
|
-
FormlySelectModule$1,
|
|
94
|
-
FormlyModule.forChild({
|
|
95
|
-
types: [
|
|
96
|
-
{
|
|
97
|
-
name: 'select',
|
|
98
|
-
component: FormlyFieldSelect,
|
|
99
|
-
wrappers: ['form-field'],
|
|
100
|
-
},
|
|
101
|
-
{ name: 'enum', extends: 'select' },
|
|
102
|
-
],
|
|
103
|
-
}),
|
|
104
|
-
]] });
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySelectModule, decorators: [{
|
|
106
|
-
type: NgModule,
|
|
107
|
-
args: [{
|
|
108
|
-
declarations: [FormlyFieldSelect],
|
|
109
|
-
imports: [
|
|
110
|
-
CommonModule,
|
|
111
|
-
ReactiveFormsModule,
|
|
112
|
-
IonicModule,
|
|
113
|
-
FormlyFormFieldModule,
|
|
114
|
-
FormlySelectModule$1,
|
|
115
|
-
FormlyModule.forChild({
|
|
116
|
-
types: [
|
|
117
|
-
{
|
|
118
|
-
name: 'select',
|
|
119
|
-
component: FormlyFieldSelect,
|
|
120
|
-
wrappers: ['form-field'],
|
|
121
|
-
},
|
|
122
|
-
{ name: 'enum', extends: 'select' },
|
|
123
|
-
],
|
|
124
|
-
}),
|
|
125
|
-
],
|
|
126
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
127
|
-
}]
|
|
128
|
-
}] });
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Generated bundle index. Do not edit.
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
export { FormlyFieldSelect, FormlySelectModule };
|
|
135
|
-
//# sourceMappingURL=ngx-formly-ionic-select.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-select.mjs","sources":["../../../../src/ui/ionic/select/src/select.type.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 { 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';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyCoreSelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\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;AAAjB,iBAAA,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,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CA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;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,qBAAqB;wBACrBA,oBAAsB;wBACtB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as i1$1 from '@ngx-formly/core';
|
|
5
|
-
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
6
|
-
import * as i2 from '@angular/forms';
|
|
7
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
-
import * as i1 from '@ionic/angular';
|
|
9
|
-
import { IonicModule } from '@ionic/angular';
|
|
10
|
-
import * as i3 from '@ngx-formly/ionic/form-field';
|
|
11
|
-
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
12
|
-
|
|
13
|
-
class FormlyFieldSlider extends FieldType {
|
|
14
|
-
}
|
|
15
|
-
FormlyFieldSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
FormlyFieldSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldSlider, selector: "formly-field-ion-range", usesInheritance: true, ngImport: i0, template: `
|
|
17
|
-
<ion-range
|
|
18
|
-
[min]="props.min"
|
|
19
|
-
[max]="props.max"
|
|
20
|
-
[formControl]="formControl"
|
|
21
|
-
[ionFormlyAttributes]="field"
|
|
22
|
-
[label]="props.label"
|
|
23
|
-
>
|
|
24
|
-
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
25
|
-
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
26
|
-
</ion-range>
|
|
27
|
-
`, isInline: true, styles: [":host{display:inherit}\n"], components: [{ type: i1.IonRange, selector: "ion-range", inputs: ["activeBarStart", "color", "debounce", "disabled", "dualKnobs", "max", "min", "mode", "name", "pin", "pinFormatter", "snaps", "step", "ticks", "value"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }], directives: [{ type: i1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSlider, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{
|
|
31
|
-
selector: 'formly-field-ion-range',
|
|
32
|
-
template: `
|
|
33
|
-
<ion-range
|
|
34
|
-
[min]="props.min"
|
|
35
|
-
[max]="props.max"
|
|
36
|
-
[formControl]="formControl"
|
|
37
|
-
[ionFormlyAttributes]="field"
|
|
38
|
-
[label]="props.label"
|
|
39
|
-
>
|
|
40
|
-
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
41
|
-
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
42
|
-
</ion-range>
|
|
43
|
-
`,
|
|
44
|
-
styles: [':host { display: inherit; }'],
|
|
45
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
-
}]
|
|
47
|
-
}] });
|
|
48
|
-
|
|
49
|
-
class FormlySliderModule {
|
|
50
|
-
}
|
|
51
|
-
FormlySliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
-
FormlySliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
|
53
|
-
ReactiveFormsModule,
|
|
54
|
-
IonicModule,
|
|
55
|
-
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
56
|
-
FormlySliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySliderModule, imports: [[
|
|
57
|
-
CommonModule,
|
|
58
|
-
ReactiveFormsModule,
|
|
59
|
-
IonicModule,
|
|
60
|
-
FormlyFormFieldModule,
|
|
61
|
-
FormlyModule.forChild({
|
|
62
|
-
types: [
|
|
63
|
-
{ name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
|
|
64
|
-
{ name: 'range', extends: 'slider' },
|
|
65
|
-
],
|
|
66
|
-
}),
|
|
67
|
-
]] });
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlySliderModule, decorators: [{
|
|
69
|
-
type: NgModule,
|
|
70
|
-
args: [{
|
|
71
|
-
declarations: [FormlyFieldSlider],
|
|
72
|
-
imports: [
|
|
73
|
-
CommonModule,
|
|
74
|
-
ReactiveFormsModule,
|
|
75
|
-
IonicModule,
|
|
76
|
-
FormlyFormFieldModule,
|
|
77
|
-
FormlyModule.forChild({
|
|
78
|
-
types: [
|
|
79
|
-
{ name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
|
|
80
|
-
{ name: 'range', extends: 'slider' },
|
|
81
|
-
],
|
|
82
|
-
}),
|
|
83
|
-
],
|
|
84
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
85
|
-
}]
|
|
86
|
-
}] });
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Generated bundle index. Do not edit.
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
export { FormlySliderModule };
|
|
93
|
-
//# sourceMappingURL=ngx-formly-ionic-slider.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic-slider.mjs","sources":["../../../../src/ui/ionic/slider/src/slider.type.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 { 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';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },\n { name: 'range', extends: 'slider' },\n ],\n }),\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;AAAjB,iBAAA,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,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,gBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,KAAA,EAAA,KAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,cAA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