@ngx-formly/ionic 6.0.0-next.6 → 6.0.0-next.9
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 +11 -9
- package/checkbox/checkbox.type.d.ts +2 -2
- package/datetime/datetime.type.d.ts +14 -2
- package/esm2020/checkbox/checkbox.module.mjs +4 -4
- package/esm2020/checkbox/checkbox.type.mjs +4 -4
- package/esm2020/datetime/datetime.module.mjs +4 -4
- package/esm2020/datetime/datetime.type.mjs +112 -53
- package/esm2020/form-field/form-field.module.mjs +4 -4
- package/esm2020/form-field/form-field.wrapper.mjs +6 -7
- package/esm2020/form-field/formly.attributes.mjs +4 -15
- package/esm2020/input/input.module.mjs +4 -4
- package/esm2020/input/input.type.mjs +4 -4
- package/esm2020/lib/ui-ionic.module.mjs +4 -4
- package/esm2020/radio/radio.module.mjs +4 -4
- package/esm2020/radio/radio.type.mjs +5 -11
- package/esm2020/select/select.module.mjs +4 -4
- package/esm2020/select/select.type.mjs +4 -5
- package/esm2020/slider/slider.module.mjs +4 -4
- package/esm2020/slider/slider.type.mjs +5 -5
- package/esm2020/textarea/textarea.module.mjs +4 -4
- package/esm2020/textarea/textarea.type.mjs +4 -4
- package/esm2020/toggle/toggle.module.mjs +4 -4
- package/esm2020/toggle/toggle.type.mjs +4 -4
- package/fesm2015/ngx-formly-ionic-checkbox.mjs +7 -7
- package/fesm2015/ngx-formly-ionic-checkbox.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-datetime.mjs +117 -57
- package/fesm2015/ngx-formly-ionic-datetime.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-form-field.mjs +12 -24
- package/fesm2015/ngx-formly-ionic-form-field.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-input.mjs +7 -7
- package/fesm2015/ngx-formly-ionic-input.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-radio.mjs +8 -14
- package/fesm2015/ngx-formly-ionic-radio.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-select.mjs +7 -8
- package/fesm2015/ngx-formly-ionic-select.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-slider.mjs +8 -8
- package/fesm2015/ngx-formly-ionic-slider.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-textarea.mjs +7 -7
- package/fesm2015/ngx-formly-ionic-textarea.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic-toggle.mjs +7 -7
- package/fesm2015/ngx-formly-ionic-toggle.mjs.map +1 -1
- package/fesm2015/ngx-formly-ionic.mjs +4 -4
- package/fesm2015/ngx-formly-ionic.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-checkbox.mjs +7 -7
- package/fesm2020/ngx-formly-ionic-checkbox.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-datetime.mjs +115 -57
- package/fesm2020/ngx-formly-ionic-datetime.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-form-field.mjs +12 -24
- package/fesm2020/ngx-formly-ionic-form-field.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-input.mjs +7 -7
- package/fesm2020/ngx-formly-ionic-input.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-radio.mjs +8 -14
- package/fesm2020/ngx-formly-ionic-radio.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-select.mjs +7 -8
- package/fesm2020/ngx-formly-ionic-select.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-slider.mjs +8 -8
- package/fesm2020/ngx-formly-ionic-slider.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-textarea.mjs +7 -7
- package/fesm2020/ngx-formly-ionic-textarea.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic-toggle.mjs +7 -7
- package/fesm2020/ngx-formly-ionic-toggle.mjs.map +1 -1
- package/fesm2020/ngx-formly-ionic.mjs +4 -4
- package/fesm2020/ngx-formly-ionic.mjs.map +1 -1
- package/form-field/formly.attributes.d.ts +0 -1
- package/input/input.type.d.ts +2 -2
- package/package.json +3 -3
- package/radio/radio.type.d.ts +2 -7
- package/select/select.type.d.ts +2 -3
- package/slider/slider.type.d.ts +2 -2
- package/textarea/textarea.type.d.ts +2 -2
- package/toggle/toggle.type.d.ts +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://npmjs.org/package/@ngx-formly/core)
|
|
10
10
|
[](https://npmjs.org/package/@ngx-formly/core)
|
|
11
11
|
[](https://gitter.im/formly-js/ng2-formly)
|
|
12
|
-
[](https://github.com/ngx-formly/ngx-formly/actions/workflows/ci.yml/badge.svg?branch=main)
|
|
13
13
|
[](https://twitter.com/formlydev)
|
|
14
14
|
[](https://gitpod.io/#https://github.com/ngx-formly/ngx-formly)
|
|
15
15
|
</div>
|
|
@@ -110,19 +110,21 @@ Formly is a dynamic (JSON powered) form library for Angular that bring unmatched
|
|
|
110
110
|
Thanks goes to these wonderful people:
|
|
111
111
|
|
|
112
112
|
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
113
|
-
[<img alt="aitboudad" src="https://
|
|
113
|
+
[<img alt="aitboudad" src="https://avatars.githubusercontent.com/u/1753742?v=4&s=80" width="80">](https://github.com/aitboudad)[<img alt="mohammedzamakhan" src="https://avatars.githubusercontent.com/u/2327532?v=4&s=80" width="80">](https://github.com/mohammedzamakhan)[<img alt="divyakumarjain" src="https://avatars.githubusercontent.com/u/2039134?v=4&s=80" width="80">](https://github.com/divyakumarjain)[<img alt="couzic" src="https://avatars.githubusercontent.com/u/1380322?v=4&s=80" width="80">](https://github.com/couzic)[<img alt="juristr" src="https://avatars.githubusercontent.com/u/542458?v=4&s=80" width="80">](https://github.com/juristr)[<img alt="franzeal" src="https://avatars.githubusercontent.com/u/7455769?v=4&s=80" width="80">](https://github.com/franzeal)[<img alt="beeman" src="https://avatars.githubusercontent.com/u/36491?v=4&s=80" width="80">](https://github.com/beeman)[<img alt="MaxKless" src="https://avatars.githubusercontent.com/u/34165455?v=4&s=80" width="80">](https://github.com/MaxKless)
|
|
114
114
|
|
|
115
|
-
[<img alt="
|
|
115
|
+
[<img alt="klemenoslaj" src="https://avatars.githubusercontent.com/u/7548247?v=4&s=80" width="80">](https://github.com/klemenoslaj)[<img alt="samtsai" src="https://avatars.githubusercontent.com/u/225526?v=4&s=80" width="80">](https://github.com/samtsai)[<img alt="thorgod" src="https://avatars.githubusercontent.com/u/13910170?v=4&s=80" width="80">](https://github.com/thorgod)[<img alt="kenisteward" src="https://avatars.githubusercontent.com/u/12831669?v=4&s=80" width="80">](https://github.com/kenisteward)[<img alt="dwaldrum" src="https://avatars.githubusercontent.com/u/386721?v=4&s=80" width="80">](https://github.com/dwaldrum)[<img alt="skrtheboss" src="https://avatars.githubusercontent.com/u/10209728?v=4&s=80" width="80">](https://github.com/skrtheboss)[<img alt="intellix" src="https://avatars.githubusercontent.com/u/1162531?v=4&s=80" width="80">](https://github.com/intellix)[<img alt="Krustie101" src="https://avatars.githubusercontent.com/u/1636728?v=4&s=80" width="80">](https://github.com/Krustie101)
|
|
116
116
|
|
|
117
|
-
[<img alt="
|
|
117
|
+
[<img alt="manuelmeister" src="https://avatars.githubusercontent.com/u/3001985?v=4&s=80" width="80">](https://github.com/manuelmeister)[<img alt="MarcosEllys" src="https://avatars.githubusercontent.com/u/6751242?v=4&s=80" width="80">](https://github.com/MarcosEllys)[<img alt="rehleinBo" src="https://avatars.githubusercontent.com/u/7338819?v=4&s=80" width="80">](https://github.com/rehleinBo)[<img alt="ryanjerskine" src="https://avatars.githubusercontent.com/u/5464778?v=4&s=80" width="80">](https://github.com/ryanjerskine)[<img alt="Devqon" src="https://avatars.githubusercontent.com/u/9316480?v=4&s=80" width="80">](https://github.com/Devqon)[<img alt="vstiebe" src="https://avatars.githubusercontent.com/u/13326475?v=4&s=80" width="80">](https://github.com/vstiebe)[<img alt="AlexTalcura" src="https://avatars.githubusercontent.com/u/20095773?v=4&s=80" width="80">](https://github.com/AlexTalcura)[<img alt="alex-novikov-1990" src="https://avatars.githubusercontent.com/u/6377930?v=4&s=80" width="80">](https://github.com/alex-novikov-1990)
|
|
118
118
|
|
|
119
|
-
[<img alt="bhaidar" src="https://
|
|
119
|
+
[<img alt="andmoredev" src="https://avatars.githubusercontent.com/u/33256364?v=4&s=80" width="80">](https://github.com/andmoredev)[<img alt="bhaidar" src="https://avatars.githubusercontent.com/u/1163421?v=4&s=80" width="80">](https://github.com/bhaidar)[<img alt="cyrilletuzi" src="https://avatars.githubusercontent.com/u/555867?v=4&s=80" width="80">](https://github.com/cyrilletuzi)[<img alt="Dayvisson" src="https://avatars.githubusercontent.com/u/12189515?v=4&s=80" width="80">](https://github.com/Dayvisson)[<img alt="eduardoRoth" src="https://avatars.githubusercontent.com/u/5419161?v=4&s=80" width="80">](https://github.com/eduardoRoth)[<img alt="enricouniurb" src="https://avatars.githubusercontent.com/u/38656571?v=4&s=80" width="80">](https://github.com/enricouniurb)[<img alt="FritzHerbers" src="https://avatars.githubusercontent.com/u/10029682?v=4&s=80" width="80">](https://github.com/FritzHerbers)[<img alt="fynnfeldpausch" src="https://avatars.githubusercontent.com/u/1246913?v=4&s=80" width="80">](https://github.com/fynnfeldpausch)
|
|
120
120
|
|
|
121
|
-
[<img alt="
|
|
121
|
+
[<img alt="internalsystemerror" src="https://avatars.githubusercontent.com/u/1626298?v=4&s=80" width="80">](https://github.com/internalsystemerror)[<img alt="jrgleason" src="https://avatars.githubusercontent.com/u/1319151?v=4&s=80" width="80">](https://github.com/jrgleason)[<img alt="johannesjo" src="https://avatars.githubusercontent.com/u/1456265?v=4&s=80" width="80">](https://github.com/johannesjo)[<img alt="jdpnielsen" src="https://avatars.githubusercontent.com/u/8746698?v=4&s=80" width="80">](https://github.com/jdpnielsen)[<img alt="TheMcMurder" src="https://avatars.githubusercontent.com/u/3059715?v=4&s=80" width="80">](https://github.com/TheMcMurder)[<img alt="kentcdodds" src="https://avatars.githubusercontent.com/u/1500684?v=4&s=80" width="80">](https://github.com/kentcdodds)[<img alt="Lehoczky" src="https://avatars.githubusercontent.com/u/31937175?v=4&s=80" width="80">](https://github.com/Lehoczky)[<img alt="LennardWesterveld" src="https://avatars.githubusercontent.com/u/1076589?v=4&s=80" width="80">](https://github.com/LennardWesterveld)
|
|
122
122
|
|
|
123
|
-
[<img alt="LucasJAlba" src="https://
|
|
123
|
+
[<img alt="logvinoleg89" src="https://avatars.githubusercontent.com/u/12018303?v=4&s=80" width="80">](https://github.com/logvinoleg89)[<img alt="LucasJAlba" src="https://avatars.githubusercontent.com/u/2780076?v=4&s=80" width="80">](https://github.com/LucasJAlba)[<img alt="lucienbertin" src="https://avatars.githubusercontent.com/u/10089239?v=4&s=80" width="80">](https://github.com/lucienbertin)[<img alt="waffle-iron" src="https://avatars.githubusercontent.com/u/6912981?v=4&s=80" width="80">](https://github.com/waffle-iron)[<img alt="mathijshoogland" src="https://avatars.githubusercontent.com/u/7372934?v=4&s=80" width="80">](https://github.com/mathijshoogland)[<img alt="mrbusche" src="https://avatars.githubusercontent.com/u/792378?v=4&s=80" width="80">](https://github.com/mrbusche)[<img alt="NanFengCheong" src="https://avatars.githubusercontent.com/u/7321833?v=4&s=80" width="80">](https://github.com/NanFengCheong)[<img alt="Pouja" src="https://avatars.githubusercontent.com/u/2385144?v=4&s=80" width="80">](https://github.com/Pouja)
|
|
124
124
|
|
|
125
|
-
[<img alt="rafaelss95" src="https://
|
|
125
|
+
[<img alt="rafaelss95" src="https://avatars.githubusercontent.com/u/11965907?v=4&s=80" width="80">](https://github.com/rafaelss95)[<img alt="Riron" src="https://avatars.githubusercontent.com/u/5145523?v=4&s=80" width="80">](https://github.com/Riron)[<img alt="milasevicius" src="https://avatars.githubusercontent.com/u/1790265?v=4&s=80" width="80">](https://github.com/milasevicius)[<img alt="rternavskyi" src="https://avatars.githubusercontent.com/u/26190424?v=4&s=80" width="80">](https://github.com/rternavskyi)[<img alt="blowsie" src="https://avatars.githubusercontent.com/u/308572?v=4&s=80" width="80">](https://github.com/blowsie)[<img alt="ThomasBower" src="https://avatars.githubusercontent.com/u/295527?v=4&s=80" width="80">](https://github.com/ThomasBower)[<img alt="thm1118" src="https://avatars.githubusercontent.com/u/3632180?v=4&s=80" width="80">](https://github.com/thm1118)[<img alt="Tom-V" src="https://avatars.githubusercontent.com/u/322654?v=4&s=80" width="80">](https://github.com/Tom-V)
|
|
126
126
|
|
|
127
|
-
[<img alt="
|
|
127
|
+
[<img alt="VyacheslavPritykin" src="https://avatars.githubusercontent.com/u/819457?v=4&s=80" width="80">](https://github.com/VyacheslavPritykin)[<img alt="akamyshanov" src="https://avatars.githubusercontent.com/u/1358330?v=4&s=80" width="80">](https://github.com/akamyshanov)[<img alt="danielcrisp" src="https://avatars.githubusercontent.com/u/1104814?v=4&s=80" width="80">](https://github.com/danielcrisp)[<img alt="francisco-sanchez-molina" src="https://avatars.githubusercontent.com/u/9049706?v=4&s=80" width="80">](https://github.com/francisco-sanchez-molina)[<img alt="marfer" src="https://avatars.githubusercontent.com/u/1127166?v=4&s=80" width="80">](https://github.com/marfer)[<img alt="mburger81" src="https://avatars.githubusercontent.com/u/3778892?v=4&s=80" width="80">](https://github.com/mburger81)[<img alt="n3xus" src="https://avatars.githubusercontent.com/u/510213?v=4&s=80" width="80">](https://github.com/n3xus)[<img alt="neminovno" src="https://avatars.githubusercontent.com/u/1468887?v=4&s=80" width="80">](https://github.com/neminovno)
|
|
128
|
+
|
|
129
|
+
[<img alt="wenqi73" src="https://avatars.githubusercontent.com/u/23337087?v=4&s=80" width="80">](https://github.com/wenqi73)
|
|
128
130
|
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FieldType } from '@ngx-formly/core';
|
|
1
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormlyFieldCheckbox extends FieldType {
|
|
3
|
+
export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig> {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
|
|
5
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-ion-checkbox", never, {}, {}, never, never>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IonDatetime } from '@ionic/angular';
|
|
2
|
+
import { FieldType, FieldTypeConfig } from '@ngx-formly/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormlyFieldDatetime extends FieldType {
|
|
4
|
+
export declare class FormlyFieldDatetime extends FieldType<FieldTypeConfig> {
|
|
5
|
+
datetime: IonDatetime;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
defaultOptions: {
|
|
8
|
+
templateOptions: {
|
|
9
|
+
presentation: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
displayFormat(): any;
|
|
13
|
+
confirm(): void;
|
|
14
|
+
reset(): void;
|
|
15
|
+
close(): void;
|
|
4
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDatetime, never>;
|
|
5
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldDatetime, "formly-field-ion-datetime", never, {}, {}, never, never>;
|
|
6
18
|
}
|
|
@@ -9,12 +9,12 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
import * as i1 from "@ngx-formly/core";
|
|
10
10
|
export class FormlyCheckboxModule {
|
|
11
11
|
}
|
|
12
|
-
FormlyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
13
|
-
FormlyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
12
|
+
FormlyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
FormlyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
|
14
14
|
ReactiveFormsModule,
|
|
15
15
|
IonicModule,
|
|
16
16
|
FormlyFormFieldModule, i1.FormlyModule] });
|
|
17
|
-
FormlyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
17
|
+
FormlyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyCheckboxModule, imports: [[
|
|
18
18
|
CommonModule,
|
|
19
19
|
ReactiveFormsModule,
|
|
20
20
|
IonicModule,
|
|
@@ -33,7 +33,7 @@ FormlyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
33
33
|
],
|
|
34
34
|
}),
|
|
35
35
|
]] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyCheckboxModule, decorators: [{
|
|
37
37
|
type: NgModule,
|
|
38
38
|
args: [{
|
|
39
39
|
declarations: [FormlyFieldCheckbox],
|
|
@@ -6,9 +6,9 @@ import * as i2 from "@angular/forms";
|
|
|
6
6
|
import * as i3 from "@ngx-formly/ionic/form-field";
|
|
7
7
|
export class FormlyFieldCheckbox extends FieldType {
|
|
8
8
|
}
|
|
9
|
-
FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
10
|
-
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
9
|
+
FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldCheckbox, selector: "formly-field-ion-checkbox", usesInheritance: true, ngImport: i0, template: ` <ion-checkbox [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-checkbox> `, isInline: true, components: [{ type: i1.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }], directives: [{ type: i1.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { 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 });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
|
12
12
|
type: Component,
|
|
13
13
|
args: [{
|
|
14
14
|
selector: 'formly-field-ion-checkbox',
|
|
@@ -16,4 +16,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
16
16
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
17
|
}]
|
|
18
18
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Ny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llbGRUeXBlQ29uZmlnPiB7fVxuIl19
|
|
@@ -9,12 +9,12 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
import * as i1 from "@ngx-formly/core";
|
|
10
10
|
export class FormlyDatetimeModule {
|
|
11
11
|
}
|
|
12
|
-
FormlyDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
13
|
-
FormlyDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
12
|
+
FormlyDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
FormlyDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, declarations: [FormlyFieldDatetime], imports: [CommonModule,
|
|
14
14
|
ReactiveFormsModule,
|
|
15
15
|
IonicModule,
|
|
16
16
|
FormlyFormFieldModule, i1.FormlyModule] });
|
|
17
|
-
FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
17
|
+
FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, imports: [[
|
|
18
18
|
CommonModule,
|
|
19
19
|
ReactiveFormsModule,
|
|
20
20
|
IonicModule,
|
|
@@ -29,7 +29,7 @@ FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
29
29
|
],
|
|
30
30
|
}),
|
|
31
31
|
]] });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, decorators: [{
|
|
33
33
|
type: NgModule,
|
|
34
34
|
args: [{
|
|
35
35
|
declarations: [FormlyFieldDatetime],
|
|
@@ -1,63 +1,122 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { IonDatetime } from '@ionic/angular';
|
|
2
3
|
import { FieldType } from '@ngx-formly/core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "@ionic/angular";
|
|
5
6
|
import * as i2 from "@angular/forms";
|
|
6
7
|
import * as i3 from "@ngx-formly/ionic/form-field";
|
|
8
|
+
import * as i4 from "@angular/common";
|
|
7
9
|
export class FormlyFieldDatetime extends FieldType {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.isOpen = false;
|
|
13
|
+
this.defaultOptions = {
|
|
14
|
+
templateOptions: {
|
|
15
|
+
presentation: 'date', // date | time | time-date
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
displayFormat() {
|
|
20
|
+
if (this.to.displayFormat) {
|
|
21
|
+
return this.to.displayFormat;
|
|
22
|
+
}
|
|
23
|
+
switch (this.to.presentation) {
|
|
24
|
+
case 'time-date':
|
|
25
|
+
return 'short';
|
|
26
|
+
case 'time':
|
|
27
|
+
return 'shortTime';
|
|
28
|
+
case 'date':
|
|
29
|
+
return 'mediumDate';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
confirm() {
|
|
33
|
+
this.datetime?.confirm();
|
|
34
|
+
this.close();
|
|
35
|
+
}
|
|
36
|
+
reset() {
|
|
37
|
+
this.datetime?.reset();
|
|
38
|
+
this.close();
|
|
39
|
+
}
|
|
40
|
+
close() {
|
|
41
|
+
this.isOpen = false;
|
|
42
|
+
this.formControl.markAsTouched();
|
|
43
|
+
}
|
|
8
44
|
}
|
|
9
|
-
FormlyFieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
10
|
-
FormlyFieldDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
11
|
-
<ion-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
18
|
-
|
|
19
|
-
[
|
|
20
|
-
[monthNames]="to.monthNames"
|
|
21
|
-
[monthShortNames]="to.monthShortNames"
|
|
22
|
-
[monthValues]="to.monthValues"
|
|
23
|
-
[pickerFormat]="to.pickerFormat"
|
|
24
|
-
[pickerOptions]="to.pickerOptions"
|
|
25
|
-
[yearValues]="to.yearValues"
|
|
26
|
-
[min]="to.minDate ? to.minDate : to.min"
|
|
27
|
-
[max]="to.maxDate ? to.maxDate : to.max"
|
|
28
|
-
[formControl]="formControl"
|
|
29
|
-
[ionFormlyAttributes]="field"
|
|
45
|
+
FormlyFieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldDatetime, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
FormlyFieldDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldDatetime, selector: "formly-field-ion-datetime", viewQueries: [{ propertyName: "datetime", first: true, predicate: IonDatetime, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
47
|
+
<ion-item [button]="true" [detail]="false" (click)="isOpen = true">
|
|
48
|
+
<ion-label>
|
|
49
|
+
{{ formControl.value ? (formControl.value | date: displayFormat()) : to.placeholder }}
|
|
50
|
+
</ion-label>
|
|
51
|
+
</ion-item>
|
|
52
|
+
<ion-modal
|
|
53
|
+
[isOpen]="isOpen"
|
|
54
|
+
(didDismiss)="close()"
|
|
55
|
+
[cssClass]="'ion-datetime-modal ion-datetime-modal-' + to.presentation"
|
|
30
56
|
>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
57
|
+
<ng-template>
|
|
58
|
+
<ion-datetime
|
|
59
|
+
[locale]="to.locale"
|
|
60
|
+
[presentation]="to.presentation"
|
|
61
|
+
[cancelText]="to.cancelText"
|
|
62
|
+
[dayValues]="to.dayValues"
|
|
63
|
+
[doneText]="to.doneText"
|
|
64
|
+
[hourValues]="to.hourValues"
|
|
65
|
+
[minuteValues]="to.minuteValues"
|
|
66
|
+
[monthValues]="to.monthValues"
|
|
67
|
+
[yearValues]="to.yearValues"
|
|
68
|
+
[min]="to.minDate ? to.minDate : to.min"
|
|
69
|
+
[max]="to.maxDate ? to.maxDate : to.max"
|
|
70
|
+
[formControl]="formControl"
|
|
71
|
+
[ionFormlyAttributes]="field"
|
|
72
|
+
>
|
|
73
|
+
<ion-buttons slot="buttons">
|
|
74
|
+
<ion-button (click)="reset()">{{ to.cancelText || 'Cancel' }}</ion-button>
|
|
75
|
+
<ion-button (click)="confirm()">{{ to.doneText || 'Done' }}</ion-button>
|
|
76
|
+
</ion-buttons>
|
|
77
|
+
</ion-datetime>
|
|
78
|
+
</ng-template>
|
|
79
|
+
</ion-modal>
|
|
80
|
+
`, isInline: true, styles: [".ion-datetime-modal{--width: 310px;--border-radius: 8px}.ion-datetime-modal.ion-datetime-modal-time-date{--height: 440px}.ion-datetime-modal.ion-datetime-modal-date{--height: 390px}.ion-datetime-modal.ion-datetime-modal-time{--height: 260px}\n"], components: [{ type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "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.IonModal, selector: "ion-modal", inputs: ["animated", "backdropBreakpoint", "backdropDismiss", "breakpoints", "cssClass", "enterAnimation", "event", "handle", "initialBreakpoint", "isOpen", "keyboardClose", "leaveAnimation", "mode", "presentingElement", "showBackdrop", "swipeToClose", "translucent", "trigger"] }, { type: i1.IonDatetime, selector: "ion-datetime", inputs: ["cancelText", "clearText", "color", "dayValues", "disabled", "doneText", "firstDayOfWeek", "hourCycle", "hourValues", "locale", "max", "min", "minuteValues", "mode", "monthValues", "name", "presentation", "readonly", "showClearButton", "showDefaultButtons", "showDefaultTimeLabel", "showDefaultTitle", "size", "value", "yearValues"] }, { type: i1.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { type: i1.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }], 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"] }], pipes: { "date": i4.DatePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldDatetime, decorators: [{
|
|
34
82
|
type: Component,
|
|
35
|
-
args: [{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
[
|
|
43
|
-
|
|
44
|
-
[
|
|
45
|
-
[hourValues]="to.hourValues"
|
|
46
|
-
[minuteValues]="to.minuteValues"
|
|
47
|
-
[monthNames]="to.monthNames"
|
|
48
|
-
[monthShortNames]="to.monthShortNames"
|
|
49
|
-
[monthValues]="to.monthValues"
|
|
50
|
-
[pickerFormat]="to.pickerFormat"
|
|
51
|
-
[pickerOptions]="to.pickerOptions"
|
|
52
|
-
[yearValues]="to.yearValues"
|
|
53
|
-
[min]="to.minDate ? to.minDate : to.min"
|
|
54
|
-
[max]="to.maxDate ? to.maxDate : to.max"
|
|
55
|
-
[formControl]="formControl"
|
|
56
|
-
[ionFormlyAttributes]="field"
|
|
83
|
+
args: [{ selector: 'formly-field-ion-datetime', template: `
|
|
84
|
+
<ion-item [button]="true" [detail]="false" (click)="isOpen = true">
|
|
85
|
+
<ion-label>
|
|
86
|
+
{{ formControl.value ? (formControl.value | date: displayFormat()) : to.placeholder }}
|
|
87
|
+
</ion-label>
|
|
88
|
+
</ion-item>
|
|
89
|
+
<ion-modal
|
|
90
|
+
[isOpen]="isOpen"
|
|
91
|
+
(didDismiss)="close()"
|
|
92
|
+
[cssClass]="'ion-datetime-modal ion-datetime-modal-' + to.presentation"
|
|
57
93
|
>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
94
|
+
<ng-template>
|
|
95
|
+
<ion-datetime
|
|
96
|
+
[locale]="to.locale"
|
|
97
|
+
[presentation]="to.presentation"
|
|
98
|
+
[cancelText]="to.cancelText"
|
|
99
|
+
[dayValues]="to.dayValues"
|
|
100
|
+
[doneText]="to.doneText"
|
|
101
|
+
[hourValues]="to.hourValues"
|
|
102
|
+
[minuteValues]="to.minuteValues"
|
|
103
|
+
[monthValues]="to.monthValues"
|
|
104
|
+
[yearValues]="to.yearValues"
|
|
105
|
+
[min]="to.minDate ? to.minDate : to.min"
|
|
106
|
+
[max]="to.maxDate ? to.maxDate : to.max"
|
|
107
|
+
[formControl]="formControl"
|
|
108
|
+
[ionFormlyAttributes]="field"
|
|
109
|
+
>
|
|
110
|
+
<ion-buttons slot="buttons">
|
|
111
|
+
<ion-button (click)="reset()">{{ to.cancelText || 'Cancel' }}</ion-button>
|
|
112
|
+
<ion-button (click)="confirm()">{{ to.doneText || 'Done' }}</ion-button>
|
|
113
|
+
</ion-buttons>
|
|
114
|
+
</ion-datetime>
|
|
115
|
+
</ng-template>
|
|
116
|
+
</ion-modal>
|
|
117
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".ion-datetime-modal{--width: 310px;--border-radius: 8px}.ion-datetime-modal.ion-datetime-modal-time-date{--height: 440px}.ion-datetime-modal.ion-datetime-modal-date{--height: 390px}.ion-datetime-modal.ion-datetime-modal-time{--height: 260px}\n"] }]
|
|
118
|
+
}], propDecorators: { datetime: [{
|
|
119
|
+
type: ViewChild,
|
|
120
|
+
args: [IonDatetime]
|
|
121
|
+
}] } });
|
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXRpbWUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9pb25pYy9kYXRldGltZS9zcmMvZGF0ZXRpbWUudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLFNBQVMsRUFBbUIsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7O0FBMkM5RCxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsU0FBMEI7SUF6Q25FOztRQTJDRSxXQUFNLEdBQUcsS0FBSyxDQUFDO1FBRU4sbUJBQWMsR0FBRztZQUN4QixlQUFlLEVBQUU7Z0JBQ2YsWUFBWSxFQUFFLE1BQU0sRUFBRSwwQkFBMEI7YUFDakQ7U0FDRixDQUFDO0tBK0JIO0lBN0JDLGFBQWE7UUFDWCxJQUFJLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxFQUFFO1lBQ3pCLE9BQU8sS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ICAgICAgICAgW2RheVZhbHVlc109XCJ0by5kYXlWYWx1ZXNcIlxuICAgICAgICAgIFtkb25lVGV4dF09XCJ0by5kb25lVGV4dFwiXG4gICAgICAgICAgW2hvdXJWYWx1ZXNdPVwidG8uaG91clZhbHVlc1wiXG4gICAgICAgICAgW21pbnV0ZVZhbHVlc109XCJ0by5taW51dGVWYWx1ZXNcIlxuICAgICAgICAgIFttb250aFZhbHVlc109XCJ0by5tb250aFZhbHVlc1wiXG4gICAgICAgICAgW3llYXJWYWx1ZXNdPVwidG8ueWVhclZhbHVlc1wiXG4gICAgICAgICAgW21pbl09XCJ0by5taW5EYXRlID8gdG8ubWluRGF0ZSA6IHRvLm1pblwiXG4gICAgICAgICAgW21heF09XCJ0by5tYXhEYXRlID8gdG8ubWF4RGF0ZSA6IHRvLm1heFwiXG4gICAgICAgICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcbiAgICAgICAgICBbaW9uRm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICAgID5cbiAgICAgICAgICA8aW9uLWJ1dHRvbnMgc2xvdD1cImJ1dHRvbnNcIj5cbiAgICAgICAgICAgIDxpb24tYnV0dG9uIChjbGljayk9XCJyZXNldCgpXCI+e3sgdG8uY2FuY2VsVGV4dCB8fCAnQ2FuY2VsJyB9fTwvaW9uLWJ1dHRvbj5cbiAgICAgICAgICAgIDxpb24tYnV0dG9uIChjbGljayk9XCJjb25maXJtKClcIj57eyB0by5kb25lVGV4dCB8fCAnRG9uZScgfX08L2lvbi1idXR0b24+XG4gICAgICAgICAgPC9pb24tYnV0dG9ucz5cbiAgICAgICAgPC9pb24tZGF0ZXRpbWU+XG4gICAgICA8L25nLXRlbXBsYXRlPlxuICAgIDwvaW9uLW1vZGFsPlxuICBgLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgc3R5bGVVcmxzOiBbJy4vZGF0dGltZS50e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29udHJvbC5tYXJrQXNUb3VjaGVkKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -9,11 +9,11 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
import * as i1 from "@ngx-formly/core";
|
|
10
10
|
export class FormlyFormFieldModule {
|
|
11
11
|
}
|
|
12
|
-
FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
13
|
-
FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
12
|
+
FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, declarations: [FormlyWrapperFormField, IonFormlyAttributes], imports: [CommonModule,
|
|
14
14
|
ReactiveFormsModule,
|
|
15
15
|
IonicModule, i1.FormlyModule], exports: [IonFormlyAttributes] });
|
|
16
|
-
FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
16
|
+
FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, imports: [[
|
|
17
17
|
CommonModule,
|
|
18
18
|
ReactiveFormsModule,
|
|
19
19
|
IonicModule,
|
|
@@ -26,7 +26,7 @@ FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", v
|
|
|
26
26
|
],
|
|
27
27
|
}),
|
|
28
28
|
]] });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFormFieldModule, decorators: [{
|
|
30
30
|
type: NgModule,
|
|
31
31
|
args: [{
|
|
32
32
|
declarations: [FormlyWrapperFormField, IonFormlyAttributes],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
2
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@ionic/angular";
|
|
@@ -6,8 +6,8 @@ import * as i2 from "@ngx-formly/core";
|
|
|
6
6
|
import * as i3 from "@angular/common";
|
|
7
7
|
export class FormlyWrapperFormField extends FieldWrapper {
|
|
8
8
|
}
|
|
9
|
-
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
10
|
-
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
9
|
+
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyWrapperFormField, selector: "formly-wrapper-ion-form-field", usesInheritance: true, ngImport: i0, template: `
|
|
11
11
|
<ion-item [lines]="to.itemLines">
|
|
12
12
|
<ion-label [position]="to.labelPosition">
|
|
13
13
|
{{ to.label }}
|
|
@@ -24,8 +24,8 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
24
24
|
</ion-text>
|
|
25
25
|
</ion-label>
|
|
26
26
|
</ion-item>
|
|
27
|
-
`, isInline: true, components: [{ type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i1.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }]
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
27
|
+
`, isInline: true, components: [{ type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "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.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{
|
|
31
31
|
selector: 'formly-wrapper-ion-form-field',
|
|
@@ -47,7 +47,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
47
47
|
</ion-label>
|
|
48
48
|
</ion-item>
|
|
49
49
|
`,
|
|
50
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
50
|
}]
|
|
52
51
|
}] });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC53cmFwcGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4v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AgPG5nLXRlbXBsYXRlICNmaWVsZENvbXBvbmVudD48L25nLXRlbXBsYXRlPlxuICAgIDwvaW9uLWl0ZW0+XG4gICAgPGlvbi1pdGVtIGxpbmVzPVwibm9uZVwiICpuZ0lmPVwic2hvd0Vycm9yXCI+XG4gICAgICA8aW9uLWxhYmVsPlxuICAgICAgICA8aW9uLXRleHQgY29sb3I9XCJkYW5nZXJcIj5cbiAgICAgICAgICA8cD5cbiAgICAgICAgICAgIDxmb3JtbHktdmFsaWRhdGlvbi1tZXNzYWdlIFtmaWVsZF09XCJmaWVsZFwiPjwvZm9ybWx5LXZhbGlkYXRpb24tbWVzc2FnZT5cbiAgICAgICAgICA8L3A+XG4gICAgICAgIDwvaW9uLXRleHQ+XG4gICAgICA8L2lvbi1sYWJlbD5cbiAgICA8L2lvbi1pdGVtPlxuICBgLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlXcmFwcGVyRm9ybUZpZWxkIGV4dGVuZHMgRmllbGRXcmFwcGVyIHt9XG4iXX0=
|
|
@@ -2,21 +2,10 @@ import { Directive, Input } from '@angular/core';
|
|
|
2
2
|
import { ɵFormlyAttributes as FormlyAttributes } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class IonFormlyAttributes extends FormlyAttributes {
|
|
5
|
-
focusElement(element, value) {
|
|
6
|
-
if (!element.setFocus || !value) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (!element.getInputElement()) {
|
|
10
|
-
setTimeout(() => element.setFocus(), 300);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
element.setFocus();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
5
|
}
|
|
17
|
-
IonFormlyAttributes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
18
|
-
IonFormlyAttributes.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
6
|
+
IonFormlyAttributes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: IonFormlyAttributes, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7
|
+
IonFormlyAttributes.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: IonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: { field: ["ionFormlyAttributes", "field"] }, host: { listeners: { "ionFocus": "onFocus($event)", "ionBlur": "onBlur($event)", "ionChange": "onChange($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: IonFormlyAttributes, decorators: [{
|
|
20
9
|
type: Directive,
|
|
21
10
|
args: [{
|
|
22
11
|
// eslint-disable-next-line
|
|
@@ -31,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
31
20
|
type: Input,
|
|
32
21
|
args: ['ionFormlyAttributes']
|
|
33
22
|
}] } });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWx5LmF0dHJpYnV0ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvdWkvaW9uaWMvZm9ybS1maWVsZC9zcmMvZm9ybWx5LmF0dHJpYnV0ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLGlCQUFpQixJQUFJLGdCQUFnQixFQUFxQixNQUFNLGtCQUFrQixDQUFDOztBQVc1RixNQUFNLE9B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core";
|
|
|
9
9
|
import * as i1 from "@ngx-formly/core";
|
|
10
10
|
export class FormlyInputModule {
|
|
11
11
|
}
|
|
12
|
-
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
13
|
-
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
12
|
+
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
14
14
|
ReactiveFormsModule,
|
|
15
15
|
IonicModule,
|
|
16
16
|
FormlyFormFieldModule, i1.FormlyModule] });
|
|
17
|
-
FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
17
|
+
FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, imports: [[
|
|
18
18
|
CommonModule,
|
|
19
19
|
ReactiveFormsModule,
|
|
20
20
|
IonicModule,
|
|
@@ -48,7 +48,7 @@ FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
|
48
48
|
],
|
|
49
49
|
}),
|
|
50
50
|
]] });
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
declarations: [FormlyFieldInput],
|
|
@@ -7,8 +7,8 @@ import * as i3 from "@angular/forms";
|
|
|
7
7
|
import * as i4 from "@ngx-formly/ionic/form-field";
|
|
8
8
|
export class FormlyFieldInput extends FieldType {
|
|
9
9
|
}
|
|
10
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
11
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
10
|
+
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldInput, selector: "formly-field-ion-input", usesInheritance: true, ngImport: i0, template: `
|
|
12
12
|
<ion-input
|
|
13
13
|
*ngIf="to.type !== 'number'; else numberTmp"
|
|
14
14
|
[type]="to.type || 'text'"
|
|
@@ -19,7 +19,7 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
19
19
|
<ion-input type="number" [formControl]="formControl" [ionFormlyAttributes]="field"></ion-input>
|
|
20
20
|
</ng-template>
|
|
21
21
|
`, 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 });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: 'formly-field-ion-input',
|
|
@@ -38,4 +38,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
|
38
38
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
39
|
}]
|
|
40
40
|
}] });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9pb25pYy9pbnB1dC9zcmMvaW5wdXQudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBRSxTQUFTLEVBQW1CLE1BQU0sa0JBQWtCLENBQUM7Ozs7OztBQWtCOUQsTUFBTSxPQUFPLGdCQUFpQixTQUFRLFNBQTBCOzs2R0FBbkQsZ0JBQWdCO2lHQUFoQixnQkFBZ0IscUZBZGpCOzs7Ozs7Ozs7O0dBVVQ7MkZBSVUsZ0JBQWdCO2tCQWhCNUIsU0FBUzttQkFBQztvQkFDVCxRQUFR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