@ngx-formly/ionic 6.0.0-next.1 → 6.0.0-next.2
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 +2 -2
- package/checkbox/checkbox.module.d.ts +10 -0
- package/checkbox/checkbox.type.d.ts +3 -0
- package/checkbox/ngx-formly-ionic-checkbox.d.ts +1 -0
- package/checkbox/package.json +5 -6
- package/datetime/datetime.module.d.ts +10 -0
- package/datetime/datetime.type.d.ts +3 -0
- package/datetime/ngx-formly-ionic-datetime.d.ts +1 -1
- package/datetime/package.json +5 -6
- package/esm2020/checkbox/checkbox.module.mjs +61 -0
- package/esm2020/checkbox/checkbox.type.mjs +19 -0
- package/{esm2015/checkbox/ngx-formly-ionic-checkbox.js → esm2020/checkbox/ngx-formly-ionic-checkbox.mjs} +0 -0
- package/{esm2015/checkbox/public_api.js → esm2020/checkbox/public_api.mjs} +0 -0
- package/esm2020/datetime/datetime.module.mjs +53 -0
- package/esm2020/datetime/datetime.type.mjs +63 -0
- package/{esm2015/datetime/ngx-formly-ionic-datetime.js → esm2020/datetime/ngx-formly-ionic-datetime.mjs} +1 -2
- package/{esm2015/datetime/public_api.js → esm2020/datetime/public_api.mjs} +0 -0
- package/esm2020/form-field/form-field.module.mjs +49 -0
- package/esm2020/form-field/form-field.wrapper.mjs +53 -0
- package/esm2020/form-field/formly.attributes.mjs +34 -0
- package/{esm2015/form-field/ngx-formly-ionic-form-field.js → esm2020/form-field/ngx-formly-ionic-form-field.mjs} +1 -2
- package/{esm2015/form-field/public_api.js → esm2020/form-field/public_api.mjs} +0 -0
- package/esm2020/input/input.module.mjs +91 -0
- package/esm2020/input/input.type.mjs +41 -0
- package/{esm2015/input/ngx-formly-ionic-input.js → esm2020/input/ngx-formly-ionic-input.mjs} +0 -0
- package/{esm2015/input/public_api.js → esm2020/input/public_api.mjs} +0 -0
- package/{esm2015/lib/ui-ionic.js → esm2020/lib/ui-ionic.mjs} +0 -0
- package/esm2020/lib/ui-ionic.module.mjs +52 -0
- package/{esm2015/ngx-formly-ionic.js → esm2020/ngx-formly-ionic.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/radio/ngx-formly-ionic-radio.js → esm2020/radio/ngx-formly-ionic-radio.mjs} +0 -0
- package/{esm2015/radio/public_api.js → esm2020/radio/public_api.mjs} +0 -0
- package/esm2020/radio/radio.module.mjs +57 -0
- package/esm2020/radio/radio.type.mjs +72 -0
- package/{esm2015/select/ngx-formly-ionic-select.js → esm2020/select/ngx-formly-ionic-select.mjs} +0 -0
- package/{esm2015/select/public_api.js → esm2020/select/public_api.mjs} +0 -0
- package/esm2020/select/select.module.mjs +59 -0
- package/esm2020/select/select.type.mjs +71 -0
- package/esm2020/slider/ngx-formly-ionic-slider.mjs +5 -0
- package/{esm2015/slider/public_api.js → esm2020/slider/public_api.mjs} +0 -0
- package/esm2020/slider/slider.module.mjs +47 -0
- package/esm2020/slider/slider.type.mjs +30 -0
- package/{esm2015/textarea/ngx-formly-ionic-textarea.js → esm2020/textarea/ngx-formly-ionic-textarea.mjs} +0 -0
- package/{esm2015/textarea/public_api.js → esm2020/textarea/public_api.mjs} +0 -0
- package/esm2020/textarea/textarea.module.mjs +53 -0
- package/esm2020/textarea/textarea.type.mjs +26 -0
- package/esm2020/toggle/ngx-formly-ionic-toggle.mjs +5 -0
- package/{esm2015/toggle/public_api.js → esm2020/toggle/public_api.mjs} +0 -0
- package/esm2020/toggle/toggle.module.mjs +53 -0
- package/esm2020/toggle/toggle.type.mjs +19 -0
- package/fesm2015/ngx-formly-ionic-checkbox.mjs +83 -0
- package/fesm2015/ngx-formly-ionic-checkbox.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-datetime.mjs +119 -0
- package/fesm2015/ngx-formly-ionic-datetime.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-form-field.mjs +134 -0
- package/fesm2015/ngx-formly-ionic-form-field.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-input.mjs +135 -0
- package/fesm2015/ngx-formly-ionic-input.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-radio.mjs +131 -0
- package/fesm2015/ngx-formly-ionic-radio.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-select.mjs +133 -0
- package/fesm2015/ngx-formly-ionic-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-slider.mjs +80 -0
- package/fesm2015/ngx-formly-ionic-slider.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-textarea.mjs +82 -0
- package/fesm2015/ngx-formly-ionic-textarea.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-toggle.mjs +75 -0
- package/fesm2015/ngx-formly-ionic-toggle.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic.mjs +63 -0
- package/fesm2015/ngx-formly-ionic.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-checkbox.mjs +83 -0
- package/fesm2020/ngx-formly-ionic-checkbox.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-datetime.mjs +119 -0
- package/fesm2020/ngx-formly-ionic-datetime.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-form-field.mjs +134 -0
- package/fesm2020/ngx-formly-ionic-form-field.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-input.mjs +135 -0
- package/fesm2020/ngx-formly-ionic-input.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-radio.mjs +131 -0
- package/fesm2020/ngx-formly-ionic-radio.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-select.mjs +133 -0
- package/fesm2020/ngx-formly-ionic-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-slider.mjs +80 -0
- package/fesm2020/ngx-formly-ionic-slider.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-textarea.mjs +82 -0
- package/fesm2020/ngx-formly-ionic-textarea.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-toggle.mjs +75 -0
- package/fesm2020/ngx-formly-ionic-toggle.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic.mjs +63 -0
- package/fesm2020/ngx-formly-ionic.mjs.map +1 -0
- package/form-field/form-field.module.d.ts +10 -0
- package/form-field/form-field.wrapper.d.ts +3 -0
- package/form-field/formly.attributes.d.ts +3 -0
- package/form-field/ngx-formly-ionic-form-field.d.ts +1 -1
- package/form-field/package.json +5 -6
- package/input/input.module.d.ts +10 -0
- package/input/input.type.d.ts +3 -0
- package/input/ngx-formly-ionic-input.d.ts +1 -0
- package/input/package.json +5 -6
- package/lib/ui-ionic.module.d.ts +13 -0
- package/ngx-formly-ionic.d.ts +1 -0
- package/package.json +92 -8
- package/radio/ngx-formly-ionic-radio.d.ts +1 -0
- package/radio/package.json +5 -6
- package/radio/radio.module.d.ts +11 -0
- package/radio/radio.type.d.ts +3 -0
- package/select/ngx-formly-ionic-select.d.ts +1 -0
- package/select/package.json +5 -6
- package/select/select.module.d.ts +11 -0
- package/select/select.type.d.ts +3 -0
- package/slider/ngx-formly-ionic-slider.d.ts +1 -1
- package/slider/package.json +5 -6
- package/slider/slider.module.d.ts +10 -0
- package/slider/slider.type.d.ts +3 -0
- package/textarea/ngx-formly-ionic-textarea.d.ts +1 -0
- package/textarea/package.json +5 -6
- package/textarea/textarea.module.d.ts +10 -0
- package/textarea/textarea.type.d.ts +3 -0
- package/toggle/ngx-formly-ionic-toggle.d.ts +1 -1
- package/toggle/package.json +5 -6
- package/toggle/toggle.module.d.ts +10 -0
- package/toggle/toggle.type.d.ts +3 -0
- package/bundles/ngx-formly-ionic-checkbox.umd.js +0 -371
- package/bundles/ngx-formly-ionic-checkbox.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-checkbox.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-checkbox.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-datetime.umd.js +0 -367
- package/bundles/ngx-formly-ionic-datetime.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-datetime.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-datetime.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-form-field.umd.js +0 -400
- package/bundles/ngx-formly-ionic-form-field.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-form-field.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-form-field.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-input.umd.js +0 -387
- package/bundles/ngx-formly-ionic-input.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-input.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-input.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-radio.umd.js +0 -372
- package/bundles/ngx-formly-ionic-radio.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-radio.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-radio.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-select.umd.js +0 -379
- package/bundles/ngx-formly-ionic-select.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-select.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-select.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-slider.umd.js +0 -365
- package/bundles/ngx-formly-ionic-slider.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-slider.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-slider.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-textarea.umd.js +0 -368
- package/bundles/ngx-formly-ionic-textarea.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-textarea.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-textarea.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic-toggle.umd.js +0 -367
- package/bundles/ngx-formly-ionic-toggle.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic-toggle.umd.min.js +0 -16
- package/bundles/ngx-formly-ionic-toggle.umd.min.js.map +0 -1
- package/bundles/ngx-formly-ionic.umd.js +0 -42
- package/bundles/ngx-formly-ionic.umd.js.map +0 -1
- package/bundles/ngx-formly-ionic.umd.min.js +0 -2
- package/bundles/ngx-formly-ionic.umd.min.js.map +0 -1
- package/checkbox/ngx-formly-ionic-checkbox.metadata.json +0 -1
- package/datetime/ngx-formly-ionic-datetime.metadata.json +0 -1
- package/esm2015/checkbox/checkbox.module.js +0 -34
- package/esm2015/checkbox/checkbox.type.js +0 -12
- package/esm2015/datetime/datetime.module.js +0 -30
- package/esm2015/datetime/datetime.type.js +0 -34
- package/esm2015/form-field/form-field.module.js +0 -29
- package/esm2015/form-field/form-field.wrapper.js +0 -29
- package/esm2015/form-field/formly.attributes.js +0 -30
- package/esm2015/input/input.module.js +0 -49
- package/esm2015/input/input.type.js +0 -23
- package/esm2015/lib/ui-ionic.module.js +0 -29
- package/esm2015/radio/radio.module.js +0 -32
- package/esm2015/radio/radio.type.js +0 -40
- package/esm2015/select/select.module.js +0 -33
- package/esm2015/select/select.type.js +0 -43
- package/esm2015/slider/ngx-formly-ionic-slider.js +0 -6
- package/esm2015/slider/slider.module.js +0 -27
- package/esm2015/slider/slider.type.js +0 -18
- package/esm2015/textarea/textarea.module.js +0 -30
- package/esm2015/textarea/textarea.type.js +0 -16
- package/esm2015/toggle/ngx-formly-ionic-toggle.js +0 -6
- package/esm2015/toggle/toggle.module.js +0 -30
- package/esm2015/toggle/toggle.type.js +0 -12
- package/fesm2015/ngx-formly-ionic-checkbox.js +0 -50
- package/fesm2015/ngx-formly-ionic-checkbox.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-datetime.js +0 -68
- package/fesm2015/ngx-formly-ionic-datetime.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-form-field.js +0 -89
- package/fesm2015/ngx-formly-ionic-form-field.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-input.js +0 -76
- package/fesm2015/ngx-formly-ionic-input.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-radio.js +0 -76
- package/fesm2015/ngx-formly-ionic-radio.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-select.js +0 -80
- package/fesm2015/ngx-formly-ionic-select.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-slider.js +0 -49
- package/fesm2015/ngx-formly-ionic-slider.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-textarea.js +0 -50
- package/fesm2015/ngx-formly-ionic-textarea.js.map +0 -1
- package/fesm2015/ngx-formly-ionic-toggle.js +0 -46
- package/fesm2015/ngx-formly-ionic-toggle.js.map +0 -1
- package/fesm2015/ngx-formly-ionic.js +0 -40
- package/fesm2015/ngx-formly-ionic.js.map +0 -1
- package/form-field/ngx-formly-ionic-form-field.metadata.json +0 -1
- package/input/ngx-formly-ionic-input.metadata.json +0 -1
- package/ngx-formly-ionic.metadata.json +0 -1
- package/radio/ngx-formly-ionic-radio.metadata.json +0 -1
- package/select/ngx-formly-ionic-select.metadata.json +0 -1
- package/slider/ngx-formly-ionic-slider.metadata.json +0 -1
- package/textarea/ngx-formly-ionic-textarea.metadata.json +0 -1
- package/toggle/ngx-formly-ionic-toggle.metadata.json +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { IonicModule } from '@ionic/angular';
|
|
6
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
7
|
+
import { FormlyFieldToggle } from './toggle.type';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@ngx-formly/core";
|
|
10
|
+
export class FormlyToggleModule {
|
|
11
|
+
}
|
|
12
|
+
FormlyToggleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13
|
+
FormlyToggleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyToggleModule, declarations: [FormlyFieldToggle], imports: [CommonModule,
|
|
14
|
+
ReactiveFormsModule,
|
|
15
|
+
IonicModule,
|
|
16
|
+
FormlyFormFieldModule, i1.FormlyModule] });
|
|
17
|
+
FormlyToggleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyToggleModule, imports: [[
|
|
18
|
+
CommonModule,
|
|
19
|
+
ReactiveFormsModule,
|
|
20
|
+
IonicModule,
|
|
21
|
+
FormlyFormFieldModule,
|
|
22
|
+
FormlyModule.forChild({
|
|
23
|
+
types: [
|
|
24
|
+
{
|
|
25
|
+
name: 'toggle',
|
|
26
|
+
component: FormlyFieldToggle,
|
|
27
|
+
wrappers: ['form-field'],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
}),
|
|
31
|
+
]] });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyToggleModule, decorators: [{
|
|
33
|
+
type: NgModule,
|
|
34
|
+
args: [{
|
|
35
|
+
declarations: [FormlyFieldToggle],
|
|
36
|
+
imports: [
|
|
37
|
+
CommonModule,
|
|
38
|
+
ReactiveFormsModule,
|
|
39
|
+
IonicModule,
|
|
40
|
+
FormlyFormFieldModule,
|
|
41
|
+
FormlyModule.forChild({
|
|
42
|
+
types: [
|
|
43
|
+
{
|
|
44
|
+
name: 'toggle',
|
|
45
|
+
component: FormlyFieldToggle,
|
|
46
|
+
wrappers: ['form-field'],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
}),
|
|
50
|
+
],
|
|
51
|
+
}]
|
|
52
|
+
}] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9nZ2xlLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9pb25pYy90b2dnbGUvc3JjL3RvZ2dsZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUVyRSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQW9CbEQsTUFBTSxPQUFPLGtCQUFrQjs7K0dBQWxCLGtCQUFrQjtnSEFBbEIsa0JBQWtCLGlCQWpCZCxpQkFBaUIsYUFFOUIsWUFBWTtRQUNaLG1CQUFtQjtRQUNuQixXQUFXO1FBQ1gscUJBQXFCO2dIQVlaLGtCQUFrQixZQWhCcEI7WUFDUCxZQUFZO1lBQ1osbUJBQW1CO1lBQ25CLFdBQVc7WUFDWCxxQkFBcUI7WUFDckIsWUFBWSxDQUFDLFFBQVEsQ0FBQztnQkFDcEIsS0FBSyxFQUFFO29CQUNMO3dCQUNFLElBQUksRUFBRSxRQUFRO3dCQUNkLFNBQVMsRUFBRSxpQkFBaUI7d0JBQzVCLFFBQVEsRUFBRSxDQUFDLFlBQVksQ0FBQztxQkFDekI7aUJBQ0Y7YUFDRixDQUFDO1NBQ0g7MkZBRVUsa0JBQWtCO2tCQWxCOUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxpQkFBaUIsQ0FBQztvQkFDakMsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osbUJBQW1CO3dCQUNuQixXQUFXO3dCQUNYLHFCQUFxQjt3QkFDckIsWUFBWSxDQUFDLFFBQVEsQ0FBQzs0QkFDcEIsS0FBSyxFQUFFO2dDQUNMO29DQUNFLElBQUksRUFBRSxRQUFRO29DQUNkLFNBQVMsRUFBRSxpQkFBaUI7b0NBQzVCLFFBQVEsRUFBRSxDQUFDLFlBQVksQ0FBQztpQ0FDekI7NkJBQ0Y7eUJBQ0YsQ0FBQztxQkFDSDtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgRm9ybWx5TW9kdWxlIH0gZnJvbSAnQG5neC1mb3JtbHkvY29yZSc7XG5pbXBvcnQgeyBSZWFjdGl2ZUZvcm1zTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvZm9ybXMnO1xuaW1wb3J0IHsgSW9uaWNNb2R1bGUgfSBmcm9tICdAaW9uaWMvYW5ndWxhcic7XG5pbXBvcnQgeyBGb3JtbHlGb3JtRmllbGRNb2R1bGUgfSBmcm9tICdAbmd4LWZvcm1seS9pb25pYy9mb3JtLWZpZWxkJztcblxuaW1wb3J0IHsgRm9ybWx5RmllbGRUb2dnbGUgfSBmcm9tICcuL3RvZ2dsZS50eXBlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbRm9ybWx5RmllbGRUb2dnbGVdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgSW9uaWNNb2R1bGUsXG4gICAgRm9ybWx5Rm9ybUZpZWxkTW9kdWxlLFxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XG4gICAgICB0eXBlczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ3RvZ2dsZScsXG4gICAgICAgICAgY29tcG9uZW50OiBGb3JtbHlGaWVsZFRvZ2dsZSxcbiAgICAgICAgICB3cmFwcGVyczogWydmb3JtLWZpZWxkJ10sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0pLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlUb2dnbGVNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@ionic/angular";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@ngx-formly/ionic/form-field";
|
|
7
|
+
export class FormlyFieldToggle extends FieldType {
|
|
8
|
+
}
|
|
9
|
+
FormlyFieldToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldToggle, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
+
FormlyFieldToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldToggle, selector: "formly-field-ion-toggle", usesInheritance: true, ngImport: i0, template: ` <ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-toggle> `, isInline: true, components: [{ type: i1.IonToggle, selector: "ion-toggle", inputs: ["checked", "color", "disabled", "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.0.2", ngImport: i0, type: FormlyFieldToggle, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{
|
|
14
|
+
selector: 'formly-field-ion-toggle',
|
|
15
|
+
template: ` <ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-toggle> `,
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9nZ2xlLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvdWkvaW9uaWMvdG9nZ2xlL3NyYy90b2dnbGUudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25FLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7QUFPN0MsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQVM7OzhHQUFuQyxpQkFBaUI7a0dBQWpCLGlCQUFpQixzRkFIbEIsd0ZBQXdGOzJGQUd2RixpQkFBaUI7a0JBTDdCLFNBQVM7bUJBQUM7b0JBQ1QsUUFBUSxFQUFFLHlCQUF5QjtvQkFDbkMsUUFBUSxFQUFFLHdGQUF3RjtvQkFDbEcsZUFBZSxFQUFFLHVCQUF1QixDQUFDLE1BQU07aUJBQ2hEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRmllbGRUeXBlIH0gZnJvbSAnQG5neC1mb3JtbHkvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Zvcm1seS1maWVsZC1pb24tdG9nZ2xlJyxcbiAgdGVtcGxhdGU6IGAgPGlvbi10b2dnbGUgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCIgW2lvbkZvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIj4gPC9pb24tdG9nZ2xlPiBgLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5RmllbGRUb2dnbGUgZXh0ZW5kcyBGaWVsZFR5cGUge31cbiJdfQ==
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } 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 FormlyFieldCheckbox extends FieldType {
|
|
14
|
+
}
|
|
15
|
+
FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", 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 });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{
|
|
20
|
+
selector: 'formly-field-ion-checkbox',
|
|
21
|
+
template: ` <ion-checkbox [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-checkbox> `,
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
class FormlyCheckboxModule {
|
|
27
|
+
}
|
|
28
|
+
FormlyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
+
FormlyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
|
30
|
+
ReactiveFormsModule,
|
|
31
|
+
IonicModule,
|
|
32
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
33
|
+
FormlyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, imports: [[
|
|
34
|
+
CommonModule,
|
|
35
|
+
ReactiveFormsModule,
|
|
36
|
+
IonicModule,
|
|
37
|
+
FormlyFormFieldModule,
|
|
38
|
+
FormlyModule.forChild({
|
|
39
|
+
types: [
|
|
40
|
+
{
|
|
41
|
+
name: 'checkbox',
|
|
42
|
+
component: FormlyFieldCheckbox,
|
|
43
|
+
wrappers: ['form-field'],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'boolean',
|
|
47
|
+
extends: 'checkbox',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
}),
|
|
51
|
+
]] });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, decorators: [{
|
|
53
|
+
type: NgModule,
|
|
54
|
+
args: [{
|
|
55
|
+
declarations: [FormlyFieldCheckbox],
|
|
56
|
+
imports: [
|
|
57
|
+
CommonModule,
|
|
58
|
+
ReactiveFormsModule,
|
|
59
|
+
IonicModule,
|
|
60
|
+
FormlyFormFieldModule,
|
|
61
|
+
FormlyModule.forChild({
|
|
62
|
+
types: [
|
|
63
|
+
{
|
|
64
|
+
name: 'checkbox',
|
|
65
|
+
component: FormlyFieldCheckbox,
|
|
66
|
+
wrappers: ['form-field'],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'boolean',
|
|
70
|
+
extends: 'checkbox',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
}),
|
|
74
|
+
],
|
|
75
|
+
}]
|
|
76
|
+
}] });
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Generated bundle index. Do not edit.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
export { FormlyCheckboxModule, FormlyFieldCheckbox };
|
|
83
|
+
//# sourceMappingURL=ngx-formly-ionic-checkbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-checkbox.mjs","sources":["../../../../src/ui/ionic/checkbox/src/checkbox.type.ts","../../../../src/ui/ionic/checkbox/src/checkbox.module.ts","../../../../src/ui/ionic/checkbox/src/ngx-formly-ionic-checkbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-checkbox',\n template: ` <ion-checkbox [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"> </ion-checkbox> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldCheckbox extends FieldType {}\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 { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'boolean',\n extends: 'checkbox',\n },\n ],\n }),\n ],\n})\nexport class FormlyCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAQa,4BAA4B,SAAS;;gHAArC,mBAAmB;oGAAnB,mBAAmB,wFAHpB,4FAA4F;2FAG3F,mBAAmB;kBAL/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE,4FAA4F;oBACtG,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCwBY,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBArBhB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;kHAgBZ,oBAAoB,YApBtB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,UAAU;qBACpB;iBACF;aACF,CAAC;SACH;2FAEU,oBAAoB;kBAtBhC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,UAAU;iCACpB;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC9BD;;;;;;"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } 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 FormlyFieldDatetime extends FieldType {
|
|
14
|
+
}
|
|
15
|
+
FormlyFieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldDatetime, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldDatetime, selector: "formly-field-ion-datetime", usesInheritance: true, ngImport: i0, template: `
|
|
17
|
+
<ion-datetime
|
|
18
|
+
[cancelText]="to.cancelText"
|
|
19
|
+
[dayNames]="to.dayNames"
|
|
20
|
+
[dayShortNames]="to.dayShortNames"
|
|
21
|
+
[dayValues]="to.dayValues"
|
|
22
|
+
[displayFormat]="to.displayFormat"
|
|
23
|
+
[doneText]="to.doneText"
|
|
24
|
+
[hourValues]="to.hourValues"
|
|
25
|
+
[minuteValues]="to.minuteValues"
|
|
26
|
+
[monthNames]="to.monthNames"
|
|
27
|
+
[monthShortNames]="to.monthShortNames"
|
|
28
|
+
[monthValues]="to.monthValues"
|
|
29
|
+
[pickerFormat]="to.pickerFormat"
|
|
30
|
+
[pickerOptions]="to.pickerOptions"
|
|
31
|
+
[yearValues]="to.yearValues"
|
|
32
|
+
[min]="to.minDate ? to.minDate : to.min"
|
|
33
|
+
[max]="to.maxDate ? to.maxDate : to.max"
|
|
34
|
+
[formControl]="formControl"
|
|
35
|
+
[ionFormlyAttributes]="field"
|
|
36
|
+
>
|
|
37
|
+
</ion-datetime>
|
|
38
|
+
`, isInline: true, components: [{ type: i1.IonDatetime, selector: "ion-datetime", inputs: ["cancelText", "dayNames", "dayShortNames", "dayValues", "disabled", "displayFormat", "displayTimezone", "doneText", "hourValues", "max", "min", "minuteValues", "mode", "monthNames", "monthShortNames", "monthValues", "name", "pickerFormat", "pickerOptions", "placeholder", "readonly", "value", "yearValues"] }], 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 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldDatetime, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{
|
|
42
|
+
selector: 'formly-field-ion-datetime',
|
|
43
|
+
template: `
|
|
44
|
+
<ion-datetime
|
|
45
|
+
[cancelText]="to.cancelText"
|
|
46
|
+
[dayNames]="to.dayNames"
|
|
47
|
+
[dayShortNames]="to.dayShortNames"
|
|
48
|
+
[dayValues]="to.dayValues"
|
|
49
|
+
[displayFormat]="to.displayFormat"
|
|
50
|
+
[doneText]="to.doneText"
|
|
51
|
+
[hourValues]="to.hourValues"
|
|
52
|
+
[minuteValues]="to.minuteValues"
|
|
53
|
+
[monthNames]="to.monthNames"
|
|
54
|
+
[monthShortNames]="to.monthShortNames"
|
|
55
|
+
[monthValues]="to.monthValues"
|
|
56
|
+
[pickerFormat]="to.pickerFormat"
|
|
57
|
+
[pickerOptions]="to.pickerOptions"
|
|
58
|
+
[yearValues]="to.yearValues"
|
|
59
|
+
[min]="to.minDate ? to.minDate : to.min"
|
|
60
|
+
[max]="to.maxDate ? to.maxDate : to.max"
|
|
61
|
+
[formControl]="formControl"
|
|
62
|
+
[ionFormlyAttributes]="field"
|
|
63
|
+
>
|
|
64
|
+
</ion-datetime>
|
|
65
|
+
`,
|
|
66
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
67
|
+
}]
|
|
68
|
+
}] });
|
|
69
|
+
|
|
70
|
+
class FormlyDatetimeModule {
|
|
71
|
+
}
|
|
72
|
+
FormlyDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
73
|
+
FormlyDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, declarations: [FormlyFieldDatetime], imports: [CommonModule,
|
|
74
|
+
ReactiveFormsModule,
|
|
75
|
+
IonicModule,
|
|
76
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
77
|
+
FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, imports: [[
|
|
78
|
+
CommonModule,
|
|
79
|
+
ReactiveFormsModule,
|
|
80
|
+
IonicModule,
|
|
81
|
+
FormlyFormFieldModule,
|
|
82
|
+
FormlyModule.forChild({
|
|
83
|
+
types: [
|
|
84
|
+
{
|
|
85
|
+
name: 'datetime',
|
|
86
|
+
component: FormlyFieldDatetime,
|
|
87
|
+
wrappers: ['form-field'],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
}),
|
|
91
|
+
]] });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, decorators: [{
|
|
93
|
+
type: NgModule,
|
|
94
|
+
args: [{
|
|
95
|
+
declarations: [FormlyFieldDatetime],
|
|
96
|
+
imports: [
|
|
97
|
+
CommonModule,
|
|
98
|
+
ReactiveFormsModule,
|
|
99
|
+
IonicModule,
|
|
100
|
+
FormlyFormFieldModule,
|
|
101
|
+
FormlyModule.forChild({
|
|
102
|
+
types: [
|
|
103
|
+
{
|
|
104
|
+
name: 'datetime',
|
|
105
|
+
component: FormlyFieldDatetime,
|
|
106
|
+
wrappers: ['form-field'],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
}),
|
|
110
|
+
],
|
|
111
|
+
}]
|
|
112
|
+
}] });
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Generated bundle index. Do not edit.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
export { FormlyDatetimeModule };
|
|
119
|
+
//# sourceMappingURL=ngx-formly-ionic-datetime.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-datetime.mjs","sources":["../../../../src/ui/ionic/datetime/src/datetime.type.ts","../../../../src/ui/ionic/datetime/src/datetime.module.ts","../../../../src/ui/ionic/datetime/src/ngx-formly-ionic-datetime.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-datetime',\n template: `\n <ion-datetime\n [cancelText]=\"to.cancelText\"\n [dayNames]=\"to.dayNames\"\n [dayShortNames]=\"to.dayShortNames\"\n [dayValues]=\"to.dayValues\"\n [displayFormat]=\"to.displayFormat\"\n [doneText]=\"to.doneText\"\n [hourValues]=\"to.hourValues\"\n [minuteValues]=\"to.minuteValues\"\n [monthNames]=\"to.monthNames\"\n [monthShortNames]=\"to.monthShortNames\"\n [monthValues]=\"to.monthValues\"\n [pickerFormat]=\"to.pickerFormat\"\n [pickerOptions]=\"to.pickerOptions\"\n [yearValues]=\"to.yearValues\"\n [min]=\"to.minDate ? to.minDate : to.min\"\n [max]=\"to.maxDate ? to.maxDate : to.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n >\n </ion-datetime>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldDatetime extends FieldType {}\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 { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldDatetime } from './datetime.type';\n\n@NgModule({\n declarations: [FormlyFieldDatetime],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'datetime',\n component: FormlyFieldDatetime,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyDatetimeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MA8Ba,4BAA4B,SAAS;;gHAArC,mBAAmB;oGAAnB,mBAAmB,wFAzBpB;;;;;;;;;;;;;;;;;;;;;;GAsBT;2FAGU,mBAAmB;kBA3B/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;GAsBT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCFY,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAjBhB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;kHAYZ,oBAAoB,YAhBtB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAEU,oBAAoB;kBAlBhC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC1BD;;;;;;"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Directive, Input, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from '@ngx-formly/core';
|
|
6
|
+
import { FieldWrapper, ɵFormlyAttributes, FormlyModule } from '@ngx-formly/core';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i1 from '@ionic/angular';
|
|
9
|
+
import { IonicModule } from '@ionic/angular';
|
|
10
|
+
|
|
11
|
+
class FormlyWrapperFormField extends FieldWrapper {
|
|
12
|
+
}
|
|
13
|
+
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyWrapperFormField, selector: "formly-wrapper-ion-form-field", usesInheritance: true, ngImport: i0, template: `
|
|
15
|
+
<ion-item [lines]="to.itemLines">
|
|
16
|
+
<ion-label [position]="to.labelPosition">
|
|
17
|
+
{{ to.label }}
|
|
18
|
+
<span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true">*</span>
|
|
19
|
+
</ion-label>
|
|
20
|
+
<ng-template #fieldComponent></ng-template>
|
|
21
|
+
</ion-item>
|
|
22
|
+
<ion-item lines="none" *ngIf="showError">
|
|
23
|
+
<ion-label>
|
|
24
|
+
<ion-text color="danger">
|
|
25
|
+
<p>
|
|
26
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
27
|
+
</p>
|
|
28
|
+
</ion-text>
|
|
29
|
+
</ion-label>
|
|
30
|
+
</ion-item>
|
|
31
|
+
`, 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'formly-wrapper-ion-form-field',
|
|
36
|
+
template: `
|
|
37
|
+
<ion-item [lines]="to.itemLines">
|
|
38
|
+
<ion-label [position]="to.labelPosition">
|
|
39
|
+
{{ to.label }}
|
|
40
|
+
<span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true">*</span>
|
|
41
|
+
</ion-label>
|
|
42
|
+
<ng-template #fieldComponent></ng-template>
|
|
43
|
+
</ion-item>
|
|
44
|
+
<ion-item lines="none" *ngIf="showError">
|
|
45
|
+
<ion-label>
|
|
46
|
+
<ion-text color="danger">
|
|
47
|
+
<p>
|
|
48
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
49
|
+
</p>
|
|
50
|
+
</ion-text>
|
|
51
|
+
</ion-label>
|
|
52
|
+
</ion-item>
|
|
53
|
+
`,
|
|
54
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
55
|
+
}]
|
|
56
|
+
}] });
|
|
57
|
+
|
|
58
|
+
class IonFormlyAttributes extends ɵFormlyAttributes {
|
|
59
|
+
focusElement(element, value) {
|
|
60
|
+
if (!element.setFocus || !value) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (!element.getInputElement()) {
|
|
64
|
+
setTimeout(() => element.setFocus(), 300);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
element.setFocus();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
IonFormlyAttributes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: IonFormlyAttributes, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
72
|
+
IonFormlyAttributes.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: IonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: { field: ["ionFormlyAttributes", "field"] }, host: { listeners: { "ionFocus": "onFocus($event)", "ionBlur": "onBlur($event)", "ionChange": "onChange($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: IonFormlyAttributes, decorators: [{
|
|
74
|
+
type: Directive,
|
|
75
|
+
args: [{
|
|
76
|
+
// eslint-disable-next-line
|
|
77
|
+
selector: '[ionFormlyAttributes]',
|
|
78
|
+
host: {
|
|
79
|
+
'(ionFocus)': 'onFocus($event)',
|
|
80
|
+
'(ionBlur)': 'onBlur($event)',
|
|
81
|
+
'(ionChange)': 'onChange($event)',
|
|
82
|
+
},
|
|
83
|
+
}]
|
|
84
|
+
}], propDecorators: { field: [{
|
|
85
|
+
type: Input,
|
|
86
|
+
args: ['ionFormlyAttributes']
|
|
87
|
+
}] } });
|
|
88
|
+
|
|
89
|
+
class FormlyFormFieldModule {
|
|
90
|
+
}
|
|
91
|
+
FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
92
|
+
FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, declarations: [FormlyWrapperFormField, IonFormlyAttributes], imports: [CommonModule,
|
|
93
|
+
ReactiveFormsModule,
|
|
94
|
+
IonicModule, i2.FormlyModule], exports: [IonFormlyAttributes] });
|
|
95
|
+
FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, imports: [[
|
|
96
|
+
CommonModule,
|
|
97
|
+
ReactiveFormsModule,
|
|
98
|
+
IonicModule,
|
|
99
|
+
FormlyModule.forChild({
|
|
100
|
+
wrappers: [
|
|
101
|
+
{
|
|
102
|
+
name: 'form-field',
|
|
103
|
+
component: FormlyWrapperFormField,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
}),
|
|
107
|
+
]] });
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, decorators: [{
|
|
109
|
+
type: NgModule,
|
|
110
|
+
args: [{
|
|
111
|
+
declarations: [FormlyWrapperFormField, IonFormlyAttributes],
|
|
112
|
+
exports: [IonFormlyAttributes],
|
|
113
|
+
imports: [
|
|
114
|
+
CommonModule,
|
|
115
|
+
ReactiveFormsModule,
|
|
116
|
+
IonicModule,
|
|
117
|
+
FormlyModule.forChild({
|
|
118
|
+
wrappers: [
|
|
119
|
+
{
|
|
120
|
+
name: 'form-field',
|
|
121
|
+
component: FormlyWrapperFormField,
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
}),
|
|
125
|
+
],
|
|
126
|
+
}]
|
|
127
|
+
}] });
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Generated bundle index. Do not edit.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
export { FormlyFormFieldModule, IonFormlyAttributes as ɵIonFormlyAttributes };
|
|
134
|
+
//# sourceMappingURL=ngx-formly-ionic-form-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-form-field.mjs","sources":["../../../../src/ui/ionic/form-field/src/form-field.wrapper.ts","../../../../src/ui/ionic/form-field/src/formly.attributes.ts","../../../../src/ui/ionic/form-field/src/form-field.module.ts","../../../../src/ui/ionic/form-field/src/ngx-formly-ionic-form-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-wrapper-ion-form-field',\n template: `\n <ion-item [lines]=\"to.itemLines\">\n <ion-label [position]=\"to.labelPosition\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" aria-hidden=\"true\">*</span>\n </ion-label>\n <ng-template #fieldComponent></ng-template>\n </ion-item>\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 FormlyWrapperFormField extends FieldWrapper {}\n","import { Directive, Input } from '@angular/core';\nimport { ɵFormlyAttributes as FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\n\n@Directive({\n // eslint-disable-next-line\n selector: '[ionFormlyAttributes]',\n host: {\n '(ionFocus)': 'onFocus($event)',\n '(ionBlur)': 'onBlur($event)',\n '(ionChange)': 'onChange($event)',\n },\n})\nexport class IonFormlyAttributes extends FormlyAttributes {\n @Input('ionFormlyAttributes') field: FormlyFieldConfig;\n\n focusElement(element, value: boolean) {\n if (!element.setFocus || !value) {\n return;\n }\n\n if (!element.getInputElement()) {\n setTimeout(() => element.setFocus(), 300);\n } else {\n element.setFocus();\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { IonFormlyAttributes } from './formly.attributes';\n\n@NgModule({\n declarations: [FormlyWrapperFormField, IonFormlyAttributes],\n exports: [IonFormlyAttributes],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n})\nexport class FormlyFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyAttributes"],"mappings":";;;;;;;;;;MAyBa,+BAA+B,YAAY;;mHAA3C,sBAAsB;uGAAtB,sBAAsB,4FApBvB;;;;;;;;;;;;;;;;;GAiBT;2FAGU,sBAAsB;kBAtBlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,+BAA+B;oBACzC,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCZY,4BAA4BA,iBAAgB;IAGvD,YAAY,CAAC,OAAO,EAAE,KAAc;QAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,KAAK,EAAE;YAC/B,OAAO;SACR;QAED,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE;YAC9B,UAAU,CAAC,MAAM,OAAO,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,CAAC,QAAQ,EAAE,CAAC;SACpB;KACF;;gHAbU,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAT/B,SAAS;mBAAC;;oBAET,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,YAAY,EAAE,iBAAiB;wBAC/B,WAAW,EAAE,gBAAgB;wBAC7B,aAAa,EAAE,kBAAkB;qBAClC;iBACF;8BAE+B,KAAK;sBAAlC,KAAK;uBAAC,qBAAqB;;;MCajB,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAjBjB,sBAAsB,EAAE,mBAAmB,aAGxD,YAAY;QACZ,mBAAmB;QACnB,WAAW,8BAJH,mBAAmB;mHAgBlB,qBAAqB,YAfvB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,YAAY,CAAC,QAAQ,CAAC;gBACpB,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,sBAAsB;qBAClC;iBACF;aACF,CAAC;SACH;2FAEU,qBAAqB;kBAlBjC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;oBAC3D,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,YAAY,CAAC,QAAQ,CAAC;4BACpB,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,sBAAsB;iCAClC;6BACF;yBACF,CAAC;qBACH;iBACF;;;ACzBD;;;;;;"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } 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.0.2", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldInput, selector: "formly-field-ion-input", usesInheritance: true, ngImport: i0, template: `
|
|
18
|
+
<ion-input
|
|
19
|
+
*ngIf="to.type !== 'number'; else numberTmp"
|
|
20
|
+
[type]="to.type || 'text'"
|
|
21
|
+
[formControl]="formControl"
|
|
22
|
+
[ionFormlyAttributes]="field"
|
|
23
|
+
></ion-input>
|
|
24
|
+
<ng-template #numberTmp>
|
|
25
|
+
<ion-input type="number" [formControl]="formControl" [ionFormlyAttributes]="field"></ion-input>
|
|
26
|
+
</ng-template>
|
|
27
|
+
`, 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 });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
selector: 'formly-field-ion-input',
|
|
32
|
+
template: `
|
|
33
|
+
<ion-input
|
|
34
|
+
*ngIf="to.type !== 'number'; else numberTmp"
|
|
35
|
+
[type]="to.type || 'text'"
|
|
36
|
+
[formControl]="formControl"
|
|
37
|
+
[ionFormlyAttributes]="field"
|
|
38
|
+
></ion-input>
|
|
39
|
+
<ng-template #numberTmp>
|
|
40
|
+
<ion-input type="number" [formControl]="formControl" [ionFormlyAttributes]="field"></ion-input>
|
|
41
|
+
</ng-template>
|
|
42
|
+
`,
|
|
43
|
+
styles: [':host { display: inherit; }'],
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
}]
|
|
46
|
+
}] });
|
|
47
|
+
|
|
48
|
+
class FormlyInputModule {
|
|
49
|
+
}
|
|
50
|
+
FormlyInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
FormlyInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyInputModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
52
|
+
ReactiveFormsModule,
|
|
53
|
+
IonicModule,
|
|
54
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
55
|
+
FormlyInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyInputModule, imports: [[
|
|
56
|
+
CommonModule,
|
|
57
|
+
ReactiveFormsModule,
|
|
58
|
+
IonicModule,
|
|
59
|
+
FormlyFormFieldModule,
|
|
60
|
+
FormlyModule.forChild({
|
|
61
|
+
types: [
|
|
62
|
+
{
|
|
63
|
+
name: 'input',
|
|
64
|
+
component: FormlyFieldInput,
|
|
65
|
+
wrappers: ['form-field'],
|
|
66
|
+
},
|
|
67
|
+
{ name: 'string', extends: 'input' },
|
|
68
|
+
{
|
|
69
|
+
name: 'number',
|
|
70
|
+
extends: 'input',
|
|
71
|
+
defaultOptions: {
|
|
72
|
+
templateOptions: {
|
|
73
|
+
type: 'number',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'integer',
|
|
79
|
+
extends: 'input',
|
|
80
|
+
defaultOptions: {
|
|
81
|
+
templateOptions: {
|
|
82
|
+
type: 'number',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
}),
|
|
88
|
+
]] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyInputModule, decorators: [{
|
|
90
|
+
type: NgModule,
|
|
91
|
+
args: [{
|
|
92
|
+
declarations: [FormlyFieldInput],
|
|
93
|
+
imports: [
|
|
94
|
+
CommonModule,
|
|
95
|
+
ReactiveFormsModule,
|
|
96
|
+
IonicModule,
|
|
97
|
+
FormlyFormFieldModule,
|
|
98
|
+
FormlyModule.forChild({
|
|
99
|
+
types: [
|
|
100
|
+
{
|
|
101
|
+
name: 'input',
|
|
102
|
+
component: FormlyFieldInput,
|
|
103
|
+
wrappers: ['form-field'],
|
|
104
|
+
},
|
|
105
|
+
{ name: 'string', extends: 'input' },
|
|
106
|
+
{
|
|
107
|
+
name: 'number',
|
|
108
|
+
extends: 'input',
|
|
109
|
+
defaultOptions: {
|
|
110
|
+
templateOptions: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'integer',
|
|
117
|
+
extends: 'input',
|
|
118
|
+
defaultOptions: {
|
|
119
|
+
templateOptions: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
}),
|
|
126
|
+
],
|
|
127
|
+
}]
|
|
128
|
+
}] });
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Generated bundle index. Do not edit.
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
export { FormlyFieldInput, FormlyInputModule };
|
|
135
|
+
//# sourceMappingURL=ngx-formly-ionic-input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-input.mjs","sources":["../../../../src/ui/ionic/input/src/input.type.ts","../../../../src/ui/ionic/input/src/input.module.ts","../../../../src/ui/ionic/input/src/ngx-formly-ionic-input.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-input',\n template: `\n <ion-input\n *ngIf=\"to.type !== 'number'; else numberTmp\"\n [type]=\"to.type || 'text'\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n ></ion-input>\n <ng-template #numberTmp>\n <ion-input type=\"number\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></ion-input>\n </ng-template>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldInput extends FieldType {}\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 { 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 templateOptions: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n ],\n }),\n ],\n})\nexport class FormlyInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAmBa,yBAAyB,SAAS;;6GAAlC,gBAAgB;iGAAhB,gBAAgB,qFAdjB;;;;;;;;;;GAUT;2FAIU,gBAAgB;kBAhB5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE;;;;;;;;;;GAUT;oBACD,MAAM,EAAE,CAAC,6BAA6B,CAAC;oBACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MC4BY,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBApCb,gBAAgB,aAE7B,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;+GA+BZ,iBAAiB,YAnCnB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,OAAO;wBACb,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;oBACpC;wBACE,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF,CAAC;SACH;2FAEU,iBAAiB;kBArC7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,OAAO;oCACb,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;gCACpC;oCACE,IAAI,EAAE,QAAQ;oCACd,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC7CD;;;;;;"}
|