@ngx-formly/ionic 5.12.1 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/checkbox/checkbox.module.d.ts +12 -0
- package/checkbox/checkbox.type.d.ts +14 -0
- package/checkbox/ngx-formly-ionic-checkbox.d.ts +5 -0
- package/checkbox/package.json +10 -0
- package/checkbox/public_api.d.ts +2 -0
- package/datetime/datetime.module.d.ts +12 -0
- package/datetime/datetime.type.d.ts +38 -0
- package/datetime/ngx-formly-ionic-datetime.d.ts +5 -0
- package/datetime/package.json +10 -0
- package/datetime/public_api.d.ts +2 -0
- package/esm2020/checkbox/checkbox.module.mjs +61 -0
- package/esm2020/checkbox/checkbox.type.mjs +19 -0
- package/esm2020/checkbox/ngx-formly-ionic-checkbox.mjs +5 -0
- package/esm2020/checkbox/public_api.mjs +3 -0
- package/esm2020/datetime/datetime.module.mjs +53 -0
- package/esm2020/datetime/datetime.type.mjs +129 -0
- package/esm2020/datetime/ngx-formly-ionic-datetime.mjs +5 -0
- package/esm2020/datetime/public_api.mjs +2 -0
- package/esm2020/form-field/form-field.module.mjs +49 -0
- package/esm2020/form-field/form-field.wrapper.mjs +52 -0
- package/esm2020/form-field/formly.attributes.mjs +23 -0
- package/esm2020/form-field/ngx-formly-ionic-form-field.mjs +5 -0
- package/esm2020/form-field/public_api.mjs +3 -0
- package/esm2020/input/input.module.mjs +91 -0
- package/esm2020/input/input.type.mjs +41 -0
- package/esm2020/input/ngx-formly-ionic-input.mjs +5 -0
- package/esm2020/input/public_api.mjs +3 -0
- package/esm2020/lib/ui-ionic.mjs +2 -0
- package/esm2020/lib/ui-ionic.module.mjs +52 -0
- package/esm2020/ngx-formly-ionic.mjs +5 -0
- package/esm2020/public_api.mjs +5 -0
- package/esm2020/radio/ngx-formly-ionic-radio.mjs +5 -0
- package/esm2020/radio/public_api.mjs +3 -0
- package/esm2020/radio/radio.module.mjs +57 -0
- package/esm2020/radio/radio.type.mjs +66 -0
- package/esm2020/select/ngx-formly-ionic-select.mjs +5 -0
- package/esm2020/select/public_api.mjs +3 -0
- package/esm2020/select/select.module.mjs +59 -0
- package/esm2020/select/select.type.mjs +70 -0
- package/esm2020/slider/ngx-formly-ionic-slider.mjs +5 -0
- package/esm2020/slider/public_api.mjs +2 -0
- package/esm2020/slider/slider.module.mjs +47 -0
- package/esm2020/slider/slider.type.mjs +30 -0
- package/esm2020/textarea/ngx-formly-ionic-textarea.mjs +5 -0
- package/esm2020/textarea/public_api.mjs +3 -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/esm2020/toggle/public_api.mjs +2 -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 +186 -0
- package/fesm2015/ngx-formly-ionic-datetime.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-form-field.mjs +122 -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 +125 -0
- package/fesm2015/ngx-formly-ionic-radio.mjs.map +1 -0
- package/fesm2015/ngx-formly-ionic-select.mjs +132 -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 +184 -0
- package/fesm2020/ngx-formly-ionic-datetime.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-form-field.mjs +122 -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 +125 -0
- package/fesm2020/ngx-formly-ionic-radio.mjs.map +1 -0
- package/fesm2020/ngx-formly-ionic-select.mjs +132 -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 +12 -0
- package/form-field/form-field.wrapper.d.ts +12 -0
- package/form-field/formly.attributes.d.ts +7 -0
- package/form-field/ngx-formly-ionic-form-field.d.ts +5 -0
- package/form-field/package.json +10 -0
- package/form-field/public_api.d.ts +3 -0
- package/input/input.module.d.ts +12 -0
- package/input/input.type.d.ts +14 -0
- package/input/ngx-formly-ionic-input.d.ts +5 -0
- package/input/package.json +10 -0
- package/input/public_api.d.ts +2 -0
- package/lib/ui-ionic.d.ts +0 -2
- package/lib/ui-ionic.module.d.ts +13 -0
- package/ngx-formly-ionic.d.ts +1 -2
- package/package.json +102 -33
- package/radio/ngx-formly-ionic-radio.d.ts +5 -0
- package/radio/package.json +10 -0
- package/radio/public_api.d.ts +2 -0
- package/radio/radio.module.d.ts +13 -0
- package/radio/radio.type.d.ts +14 -0
- package/select/ngx-formly-ionic-select.d.ts +5 -0
- package/select/package.json +10 -0
- package/select/public_api.d.ts +2 -0
- package/select/select.module.d.ts +13 -0
- package/select/select.type.d.ts +25 -0
- package/slider/ngx-formly-ionic-slider.d.ts +5 -0
- package/slider/package.json +10 -0
- package/slider/public_api.d.ts +2 -0
- package/slider/slider.module.d.ts +12 -0
- package/slider/slider.type.d.ts +14 -0
- package/textarea/ngx-formly-ionic-textarea.d.ts +5 -0
- package/textarea/package.json +10 -0
- package/textarea/public_api.d.ts +2 -0
- package/textarea/textarea.module.d.ts +12 -0
- package/textarea/textarea.type.d.ts +14 -0
- package/toggle/ngx-formly-ionic-toggle.d.ts +5 -0
- package/toggle/package.json +10 -0
- package/toggle/public_api.d.ts +2 -0
- package/toggle/toggle.module.d.ts +12 -0
- package/toggle/toggle.type.d.ts +14 -0
- package/bundles/ngx-formly-ionic.umd.js +0 -401
- 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/esm2015/lib/formly.attributes.js +0 -46
- package/esm2015/lib/types/checkbox.js +0 -20
- package/esm2015/lib/types/datetime.js +0 -36
- package/esm2015/lib/types/input.js +0 -21
- package/esm2015/lib/types/radio.js +0 -46
- package/esm2015/lib/types/range.js +0 -25
- package/esm2015/lib/types/select.js +0 -55
- package/esm2015/lib/types/textarea.js +0 -23
- package/esm2015/lib/types/toggle.js +0 -20
- package/esm2015/lib/types/types.js +0 -13
- package/esm2015/lib/ui-ionic.config.js +0 -69
- package/esm2015/lib/ui-ionic.js +0 -8
- package/esm2015/lib/ui-ionic.module.js +0 -28
- package/esm2015/lib/wrappers/form-field.js +0 -32
- package/esm2015/lib/wrappers/wrappers.js +0 -6
- package/esm2015/ngx-formly-ionic.js +0 -11
- package/esm2015/public_api.js +0 -9
- package/esm5/lib/formly.attributes.js +0 -58
- package/esm5/lib/types/checkbox.js +0 -22
- package/esm5/lib/types/datetime.js +0 -22
- package/esm5/lib/types/input.js +0 -23
- package/esm5/lib/types/radio.js +0 -30
- package/esm5/lib/types/range.js +0 -23
- package/esm5/lib/types/select.js +0 -41
- package/esm5/lib/types/textarea.js +0 -23
- package/esm5/lib/types/toggle.js +0 -22
- package/esm5/lib/types/types.js +0 -13
- package/esm5/lib/ui-ionic.config.js +0 -69
- package/esm5/lib/ui-ionic.js +0 -8
- package/esm5/lib/ui-ionic.module.js +0 -32
- package/esm5/lib/wrappers/form-field.js +0 -22
- package/esm5/lib/wrappers/wrappers.js +0 -6
- package/esm5/ngx-formly-ionic.js +0 -11
- package/esm5/public_api.js +0 -9
- package/fesm2015/ngx-formly-ionic.js +0 -414
- package/fesm2015/ngx-formly-ionic.js.map +0 -1
- package/fesm5/ngx-formly-ionic.js +0 -360
- package/fesm5/ngx-formly-ionic.js.map +0 -1
- package/lib/formly.attributes.d.ts +0 -5
- package/lib/types/checkbox.d.ts +0 -3
- package/lib/types/datetime.d.ts +0 -3
- package/lib/types/input.d.ts +0 -3
- package/lib/types/radio.d.ts +0 -8
- package/lib/types/range.d.ts +0 -3
- package/lib/types/select.d.ts +0 -9
- package/lib/types/textarea.d.ts +0 -3
- package/lib/types/toggle.d.ts +0 -3
- package/lib/types/types.d.ts +0 -8
- package/lib/ui-ionic.config.d.ts +0 -4
- package/lib/wrappers/form-field.d.ts +0 -3
- package/lib/wrappers/wrappers.d.ts +0 -1
- package/ngx-formly-ionic.metadata.json +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
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 FormlyFieldSlider extends FieldType {
|
|
14
|
+
}
|
|
15
|
+
FormlyFieldSlider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldSlider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldSlider, selector: "formly-field-ion-range", usesInheritance: true, ngImport: i0, template: `
|
|
17
|
+
<ion-range [min]="props.min" [max]="props.max" [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
18
|
+
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
19
|
+
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
20
|
+
</ion-range>
|
|
21
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], components: [{ type: i1.IonRange, selector: "ion-range", inputs: ["color", "debounce", "disabled", "dualKnobs", "max", "min", "mode", "name", "pin", "pinFormatter", "snaps", "step", "ticks", "value"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }], directives: [{ type: i1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldSlider, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'formly-field-ion-range',
|
|
26
|
+
template: `
|
|
27
|
+
<ion-range [min]="props.min" [max]="props.max" [formControl]="formControl" [ionFormlyAttributes]="field">
|
|
28
|
+
<ion-label slot="start">{{ props.min }}</ion-label>
|
|
29
|
+
<ion-label slot="end">{{ props.max }}</ion-label>
|
|
30
|
+
</ion-range>
|
|
31
|
+
`,
|
|
32
|
+
styles: [':host { display: inherit; }'],
|
|
33
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
34
|
+
}]
|
|
35
|
+
}] });
|
|
36
|
+
|
|
37
|
+
class FormlySliderModule {
|
|
38
|
+
}
|
|
39
|
+
FormlySliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
+
FormlySliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule,
|
|
41
|
+
ReactiveFormsModule,
|
|
42
|
+
IonicModule,
|
|
43
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
44
|
+
FormlySliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySliderModule, imports: [[
|
|
45
|
+
CommonModule,
|
|
46
|
+
ReactiveFormsModule,
|
|
47
|
+
IonicModule,
|
|
48
|
+
FormlyFormFieldModule,
|
|
49
|
+
FormlyModule.forChild({
|
|
50
|
+
types: [
|
|
51
|
+
{ name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
|
|
52
|
+
{ name: 'range', extends: 'slider' },
|
|
53
|
+
],
|
|
54
|
+
}),
|
|
55
|
+
]] });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlySliderModule, decorators: [{
|
|
57
|
+
type: NgModule,
|
|
58
|
+
args: [{
|
|
59
|
+
declarations: [FormlyFieldSlider],
|
|
60
|
+
imports: [
|
|
61
|
+
CommonModule,
|
|
62
|
+
ReactiveFormsModule,
|
|
63
|
+
IonicModule,
|
|
64
|
+
FormlyFormFieldModule,
|
|
65
|
+
FormlyModule.forChild({
|
|
66
|
+
types: [
|
|
67
|
+
{ name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },
|
|
68
|
+
{ name: 'range', extends: 'slider' },
|
|
69
|
+
],
|
|
70
|
+
}),
|
|
71
|
+
],
|
|
72
|
+
}]
|
|
73
|
+
}] });
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Generated bundle index. Do not edit.
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
export { FormlySliderModule };
|
|
80
|
+
//# sourceMappingURL=ngx-formly-ionic-slider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-slider.mjs","sources":["../../../../src/ui/ionic/slider/src/slider.type.ts","../../../../src/ui/ionic/slider/src/slider.module.ts","../../../../src/ui/ionic/slider/src/ngx-formly-ionic-slider.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface SliderProps extends FormlyFieldProps {}\n\nexport interface FormlySliderFieldConfig extends FormlyFieldConfig<SliderProps> {\n type: 'slider' | Type<FormlyFieldSlider>;\n}\n\n@Component({\n selector: 'formly-field-ion-range',\n template: `\n <ion-range [min]=\"props.min\" [max]=\"props.max\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\">\n <ion-label slot=\"start\">{{ props.min }}</ion-label>\n <ion-label slot=\"end\">{{ props.max }}</ion-label>\n </ion-range>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSlider extends FieldType<FieldTypeConfig<SliderProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldSlider } from './slider.type';\n\n@NgModule({\n declarations: [FormlyFieldSlider],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] },\n { name: 'range', extends: 'slider' },\n ],\n }),\n ],\n})\nexport class FormlySliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAqBM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;;8GAAjE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,EATlB,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;AAKT,EAAA,CAAA,EAAA,QAAA,EAAA,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AC,YAAY,CAAC,EAAE;AAC1E,gCAAA,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;AACrC,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 i1 from '@ionic/angular';
|
|
7
|
+
import { IonicModule } from '@ionic/angular';
|
|
8
|
+
import * as i2 from '@angular/forms';
|
|
9
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
+
import * as i3 from '@ngx-formly/ionic/form-field';
|
|
11
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
12
|
+
|
|
13
|
+
class FormlyFieldTextArea extends FieldType {
|
|
14
|
+
}
|
|
15
|
+
FormlyFieldTextArea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldTextArea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: FormlyFieldTextArea, selector: "formly-field-ion-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
17
|
+
<ion-textarea [formControl]="formControl" [ionFormlyAttributes]="field" [cols]="props.cols" [rows]="props.rows">
|
|
18
|
+
</ion-textarea>
|
|
19
|
+
`, isInline: true, styles: [":host{display:inherit}\n"], components: [{ type: i1.IonTextarea, selector: "ion-textarea", inputs: ["autoGrow", "autocapitalize", "autofocus", "clearOnEdit", "color", "cols", "debounce", "disabled", "enterkeyhint", "inputmode", "maxlength", "minlength", "mode", "name", "placeholder", "readonly", "required", "rows", "spellcheck", "value", "wrap"] }], directives: [{ type: i1.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { 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 });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{
|
|
23
|
+
selector: 'formly-field-ion-textarea',
|
|
24
|
+
template: `
|
|
25
|
+
<ion-textarea [formControl]="formControl" [ionFormlyAttributes]="field" [cols]="props.cols" [rows]="props.rows">
|
|
26
|
+
</ion-textarea>
|
|
27
|
+
`,
|
|
28
|
+
styles: [':host { display: inherit; }'],
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
}]
|
|
31
|
+
}] });
|
|
32
|
+
|
|
33
|
+
class FormlyTextAreaModule {
|
|
34
|
+
}
|
|
35
|
+
FormlyTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
36
|
+
FormlyTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
37
|
+
ReactiveFormsModule,
|
|
38
|
+
IonicModule,
|
|
39
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
40
|
+
FormlyTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyTextAreaModule, imports: [[
|
|
41
|
+
CommonModule,
|
|
42
|
+
ReactiveFormsModule,
|
|
43
|
+
IonicModule,
|
|
44
|
+
FormlyFormFieldModule,
|
|
45
|
+
FormlyModule.forChild({
|
|
46
|
+
types: [
|
|
47
|
+
{
|
|
48
|
+
name: 'textarea',
|
|
49
|
+
component: FormlyFieldTextArea,
|
|
50
|
+
wrappers: ['form-field'],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
}),
|
|
54
|
+
]] });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyTextAreaModule, decorators: [{
|
|
56
|
+
type: NgModule,
|
|
57
|
+
args: [{
|
|
58
|
+
declarations: [FormlyFieldTextArea],
|
|
59
|
+
imports: [
|
|
60
|
+
CommonModule,
|
|
61
|
+
ReactiveFormsModule,
|
|
62
|
+
IonicModule,
|
|
63
|
+
FormlyFormFieldModule,
|
|
64
|
+
FormlyModule.forChild({
|
|
65
|
+
types: [
|
|
66
|
+
{
|
|
67
|
+
name: 'textarea',
|
|
68
|
+
component: FormlyFieldTextArea,
|
|
69
|
+
wrappers: ['form-field'],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
}),
|
|
73
|
+
],
|
|
74
|
+
}]
|
|
75
|
+
}] });
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Generated bundle index. Do not edit.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
export { FormlyFieldTextArea, FormlyTextAreaModule };
|
|
82
|
+
//# sourceMappingURL=ngx-formly-ionic-textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-textarea.mjs","sources":["../../../../src/ui/ionic/textarea/src/textarea.type.ts","../../../../src/ui/ionic/textarea/src/textarea.module.ts","../../../../src/ui/ionic/textarea/src/ngx-formly-ionic-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface TextAreaProps extends FormlyFieldProps {}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-ion-textarea',\n template: `\n <ion-textarea [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\" [cols]=\"props.cols\" [rows]=\"props.rows\">\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { IonicModule } from '@ionic/angular';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAmBM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;;gHAArE,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,U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C;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC1BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 FormlyFieldToggle extends FieldType {
|
|
14
|
+
}
|
|
15
|
+
FormlyFieldToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldToggle, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
FormlyFieldToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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 });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldToggle, decorators: [{
|
|
18
|
+
type: Component,
|
|
19
|
+
args: [{
|
|
20
|
+
selector: 'formly-field-ion-toggle',
|
|
21
|
+
template: ` <ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-toggle> `,
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
+
}]
|
|
24
|
+
}] });
|
|
25
|
+
|
|
26
|
+
class FormlyToggleModule {
|
|
27
|
+
}
|
|
28
|
+
FormlyToggleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
+
FormlyToggleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyToggleModule, declarations: [FormlyFieldToggle], imports: [CommonModule,
|
|
30
|
+
ReactiveFormsModule,
|
|
31
|
+
IonicModule,
|
|
32
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
33
|
+
FormlyToggleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyToggleModule, imports: [[
|
|
34
|
+
CommonModule,
|
|
35
|
+
ReactiveFormsModule,
|
|
36
|
+
IonicModule,
|
|
37
|
+
FormlyFormFieldModule,
|
|
38
|
+
FormlyModule.forChild({
|
|
39
|
+
types: [
|
|
40
|
+
{
|
|
41
|
+
name: 'toggle',
|
|
42
|
+
component: FormlyFieldToggle,
|
|
43
|
+
wrappers: ['form-field'],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
}),
|
|
47
|
+
]] });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyToggleModule, decorators: [{
|
|
49
|
+
type: NgModule,
|
|
50
|
+
args: [{
|
|
51
|
+
declarations: [FormlyFieldToggle],
|
|
52
|
+
imports: [
|
|
53
|
+
CommonModule,
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
IonicModule,
|
|
56
|
+
FormlyFormFieldModule,
|
|
57
|
+
FormlyModule.forChild({
|
|
58
|
+
types: [
|
|
59
|
+
{
|
|
60
|
+
name: 'toggle',
|
|
61
|
+
component: FormlyFieldToggle,
|
|
62
|
+
wrappers: ['form-field'],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
}),
|
|
66
|
+
],
|
|
67
|
+
}]
|
|
68
|
+
}] });
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Generated bundle index. Do not edit.
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
export { FormlyToggleModule };
|
|
75
|
+
//# sourceMappingURL=ngx-formly-ionic-toggle.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic-toggle.mjs","sources":["../../../../src/ui/ionic/toggle/src/toggle.type.ts","../../../../src/ui/ionic/toggle/src/toggle.module.ts","../../../../src/ui/ionic/toggle/src/ngx-formly-ionic-toggle.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface ToggleProps extends FormlyFieldProps {}\n\nexport interface FormlyToggleFieldConfig extends FormlyFieldConfig<ToggleProps> {\n type: 'toggle' | Type<FormlyFieldToggle>;\n}\n\n@Component({\n selector: 'formly-field-ion-toggle',\n template: ` <ion-toggle [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"> </ion-toggle> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldToggle extends FieldType<FieldTypeConfig<ToggleProps>> {}\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 { FormlyFieldToggle } from './toggle.type';\n\n@NgModule({\n declarations: [FormlyFieldToggle],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'toggle',\n component: FormlyFieldToggle,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAeM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;;8GAAjE,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,sFAHlB,CAAwF,sFAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,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ACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;2FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC1BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
4
|
+
import { FormlyInputModule } from '@ngx-formly/ionic/input';
|
|
5
|
+
import { FormlyTextAreaModule } from '@ngx-formly/ionic/textarea';
|
|
6
|
+
import { FormlyRadioModule } from '@ngx-formly/ionic/radio';
|
|
7
|
+
import { FormlyCheckboxModule } from '@ngx-formly/ionic/checkbox';
|
|
8
|
+
import { FormlySelectModule } from '@ngx-formly/ionic/select';
|
|
9
|
+
import { FormlyToggleModule } from '@ngx-formly/ionic/toggle';
|
|
10
|
+
import { FormlySliderModule } from '@ngx-formly/ionic/slider';
|
|
11
|
+
import { FormlyDatetimeModule } from '@ngx-formly/ionic/datetime';
|
|
12
|
+
|
|
13
|
+
class FormlyIonicModule {
|
|
14
|
+
}
|
|
15
|
+
FormlyIonicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyIonicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
|
+
FormlyIonicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyIonicModule, imports: [FormlyFormFieldModule,
|
|
17
|
+
FormlyInputModule,
|
|
18
|
+
FormlyTextAreaModule,
|
|
19
|
+
FormlyRadioModule,
|
|
20
|
+
FormlyCheckboxModule,
|
|
21
|
+
FormlySelectModule,
|
|
22
|
+
FormlyToggleModule,
|
|
23
|
+
FormlySliderModule,
|
|
24
|
+
FormlyDatetimeModule], exports: [FormlyFormFieldModule] });
|
|
25
|
+
FormlyIonicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyIonicModule, imports: [[
|
|
26
|
+
FormlyFormFieldModule,
|
|
27
|
+
FormlyInputModule,
|
|
28
|
+
FormlyTextAreaModule,
|
|
29
|
+
FormlyRadioModule,
|
|
30
|
+
FormlyCheckboxModule,
|
|
31
|
+
FormlySelectModule,
|
|
32
|
+
FormlyToggleModule,
|
|
33
|
+
FormlySliderModule,
|
|
34
|
+
FormlyDatetimeModule,
|
|
35
|
+
], FormlyFormFieldModule] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyIonicModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
imports: [
|
|
40
|
+
FormlyFormFieldModule,
|
|
41
|
+
FormlyInputModule,
|
|
42
|
+
FormlyTextAreaModule,
|
|
43
|
+
FormlyRadioModule,
|
|
44
|
+
FormlyCheckboxModule,
|
|
45
|
+
FormlySelectModule,
|
|
46
|
+
FormlyToggleModule,
|
|
47
|
+
FormlySliderModule,
|
|
48
|
+
FormlyDatetimeModule,
|
|
49
|
+
],
|
|
50
|
+
exports: [FormlyFormFieldModule],
|
|
51
|
+
}]
|
|
52
|
+
}] });
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* Public API Surface of ionic
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generated bundle index. Do not edit.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export { FormlyIonicModule };
|
|
63
|
+
//# sourceMappingURL=ngx-formly-ionic.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-ionic.mjs","sources":["../../../../src/ui/ionic/src/lib/ui-ionic.module.ts","../../../../src/ui/ionic/src/public_api.ts","../../../../src/ui/ionic/src/ngx-formly-ionic.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\nimport { FormlyInputModule } from '@ngx-formly/ionic/input';\nimport { FormlyTextAreaModule } from '@ngx-formly/ionic/textarea';\nimport { FormlyRadioModule } from '@ngx-formly/ionic/radio';\nimport { FormlyCheckboxModule } from '@ngx-formly/ionic/checkbox';\nimport { FormlySelectModule } from '@ngx-formly/ionic/select';\nimport { FormlyToggleModule } from '@ngx-formly/ionic/toggle';\nimport { FormlySliderModule } from '@ngx-formly/ionic/slider';\nimport { FormlyDatetimeModule } from '@ngx-formly/ionic/datetime';\n\n@NgModule({\n imports: [\n FormlyFormFieldModule,\n FormlyInputModule,\n FormlyTextAreaModule,\n FormlyRadioModule,\n FormlyCheckboxModule,\n FormlySelectModule,\n FormlyToggleModule,\n FormlySliderModule,\n FormlyDatetimeModule,\n ],\n exports: [FormlyFormFieldModule],\n})\nexport class FormlyIonicModule {}\n","/*\n * Public API Surface of ionic\n */\n\nexport * from './lib/ui-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ACFH;;AAEG;;;;"}
|
|
@@ -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.2.6", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
+
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 });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", ngImport: i0, type: FormlyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
+
FormlyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/ionic/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | Type<FormlyFieldCheckbox>;\n}\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<FieldTypeConfig<CheckboxProps>> {}\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":["i1"],"mappings":";;;;;;;;;;;;AAeM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;;gHAArE,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,wFAHpB,CAA4F,0FAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,UAA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A,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EApBtB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA;AACE,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,OAAO,EAAE,UAAU;AACpB,qBAAA;AACF,iBAAA;aACF,CAAC;AACH,SAAA,CAAA,EAAA,CAAA,CAAA;2FAEU,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAtBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,UAAU;AAChB,oCAAA,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 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 i2 from '@angular/forms';
|
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import * as i1 from '@ionic/angular';
|
|
10
|
+
import { IonDatetime, IonicModule } from '@ionic/angular';
|
|
11
|
+
import * as i3 from '@ngx-formly/ionic/form-field';
|
|
12
|
+
import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
|
|
13
|
+
|
|
14
|
+
class FormlyFieldDatetime extends FieldType {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.isOpen = false;
|
|
18
|
+
this.defaultOptions = {
|
|
19
|
+
props: {
|
|
20
|
+
presentation: 'month-year',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
displayFormat() {
|
|
25
|
+
if (this.props.displayFormat) {
|
|
26
|
+
return this.props.displayFormat;
|
|
27
|
+
}
|
|
28
|
+
switch (this.props.presentation) {
|
|
29
|
+
case 'date-time':
|
|
30
|
+
case 'time-date':
|
|
31
|
+
return 'short';
|
|
32
|
+
case 'time':
|
|
33
|
+
return 'shortTime';
|
|
34
|
+
case 'month':
|
|
35
|
+
return 'MMMM';
|
|
36
|
+
case 'month-year':
|
|
37
|
+
return 'MMMM, y';
|
|
38
|
+
case 'year':
|
|
39
|
+
return 'y';
|
|
40
|
+
case 'date':
|
|
41
|
+
return 'mediumDate';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
confirm() {
|
|
45
|
+
this.datetime?.confirm();
|
|
46
|
+
this.close();
|
|
47
|
+
}
|
|
48
|
+
reset() {
|
|
49
|
+
this.datetime?.reset();
|
|
50
|
+
this.close();
|
|
51
|
+
}
|
|
52
|
+
close() {
|
|
53
|
+
this.isOpen = false;
|
|
54
|
+
this.formControl.markAsTouched();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
FormlyFieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldDatetime, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
+
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: `
|
|
59
|
+
<ion-item [button]="true" [detail]="false" (click)="isOpen = true">
|
|
60
|
+
<ion-label>
|
|
61
|
+
{{ formControl.value ? (formControl.value | date: displayFormat()) : props.placeholder }}
|
|
62
|
+
</ion-label>
|
|
63
|
+
</ion-item>
|
|
64
|
+
<ion-modal
|
|
65
|
+
[isOpen]="isOpen"
|
|
66
|
+
(didDismiss)="close()"
|
|
67
|
+
[cssClass]="'ion-datetime-modal ion-datetime-modal-' + props.presentation"
|
|
68
|
+
>
|
|
69
|
+
<ng-template>
|
|
70
|
+
<ion-datetime
|
|
71
|
+
[locale]="props.locale"
|
|
72
|
+
[presentation]="props.presentation"
|
|
73
|
+
[cancelText]="props.cancelText"
|
|
74
|
+
[dayValues]="props.dayValues"
|
|
75
|
+
[doneText]="props.doneText"
|
|
76
|
+
[hourValues]="props.hourValues"
|
|
77
|
+
[minuteValues]="props.minuteValues"
|
|
78
|
+
[monthValues]="props.monthValues"
|
|
79
|
+
[yearValues]="props.yearValues"
|
|
80
|
+
[min]="props.minDate ? props.minDate : props.min"
|
|
81
|
+
[max]="props.maxDate ? props.maxDate : props.max"
|
|
82
|
+
[formControl]="formControl"
|
|
83
|
+
[ionFormlyAttributes]="field"
|
|
84
|
+
>
|
|
85
|
+
<ion-buttons slot="buttons">
|
|
86
|
+
<ion-button (click)="reset()">{{ props.cancelText || 'Cancel' }}</ion-button>
|
|
87
|
+
<ion-button (click)="confirm()">{{ props.doneText || 'Done' }}</ion-button>
|
|
88
|
+
</ion-buttons>
|
|
89
|
+
</ion-datetime>
|
|
90
|
+
</ng-template>
|
|
91
|
+
</ion-modal>
|
|
92
|
+
`, 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 });
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldDatetime, decorators: [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{ selector: 'formly-field-ion-datetime', template: `
|
|
96
|
+
<ion-item [button]="true" [detail]="false" (click)="isOpen = true">
|
|
97
|
+
<ion-label>
|
|
98
|
+
{{ formControl.value ? (formControl.value | date: displayFormat()) : props.placeholder }}
|
|
99
|
+
</ion-label>
|
|
100
|
+
</ion-item>
|
|
101
|
+
<ion-modal
|
|
102
|
+
[isOpen]="isOpen"
|
|
103
|
+
(didDismiss)="close()"
|
|
104
|
+
[cssClass]="'ion-datetime-modal ion-datetime-modal-' + props.presentation"
|
|
105
|
+
>
|
|
106
|
+
<ng-template>
|
|
107
|
+
<ion-datetime
|
|
108
|
+
[locale]="props.locale"
|
|
109
|
+
[presentation]="props.presentation"
|
|
110
|
+
[cancelText]="props.cancelText"
|
|
111
|
+
[dayValues]="props.dayValues"
|
|
112
|
+
[doneText]="props.doneText"
|
|
113
|
+
[hourValues]="props.hourValues"
|
|
114
|
+
[minuteValues]="props.minuteValues"
|
|
115
|
+
[monthValues]="props.monthValues"
|
|
116
|
+
[yearValues]="props.yearValues"
|
|
117
|
+
[min]="props.minDate ? props.minDate : props.min"
|
|
118
|
+
[max]="props.maxDate ? props.maxDate : props.max"
|
|
119
|
+
[formControl]="formControl"
|
|
120
|
+
[ionFormlyAttributes]="field"
|
|
121
|
+
>
|
|
122
|
+
<ion-buttons slot="buttons">
|
|
123
|
+
<ion-button (click)="reset()">{{ props.cancelText || 'Cancel' }}</ion-button>
|
|
124
|
+
<ion-button (click)="confirm()">{{ props.doneText || 'Done' }}</ion-button>
|
|
125
|
+
</ion-buttons>
|
|
126
|
+
</ion-datetime>
|
|
127
|
+
</ng-template>
|
|
128
|
+
</ion-modal>
|
|
129
|
+
`, 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"] }]
|
|
130
|
+
}], propDecorators: { datetime: [{
|
|
131
|
+
type: ViewChild,
|
|
132
|
+
args: [IonDatetime]
|
|
133
|
+
}] } });
|
|
134
|
+
|
|
135
|
+
class FormlyDatetimeModule {
|
|
136
|
+
}
|
|
137
|
+
FormlyDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
138
|
+
FormlyDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, declarations: [FormlyFieldDatetime], imports: [CommonModule,
|
|
139
|
+
ReactiveFormsModule,
|
|
140
|
+
IonicModule,
|
|
141
|
+
FormlyFormFieldModule, i1$1.FormlyModule] });
|
|
142
|
+
FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, imports: [[
|
|
143
|
+
CommonModule,
|
|
144
|
+
ReactiveFormsModule,
|
|
145
|
+
IonicModule,
|
|
146
|
+
FormlyFormFieldModule,
|
|
147
|
+
FormlyModule.forChild({
|
|
148
|
+
types: [
|
|
149
|
+
{
|
|
150
|
+
name: 'datetime',
|
|
151
|
+
component: FormlyFieldDatetime,
|
|
152
|
+
wrappers: ['form-field'],
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
}),
|
|
156
|
+
]] });
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyDatetimeModule, decorators: [{
|
|
158
|
+
type: NgModule,
|
|
159
|
+
args: [{
|
|
160
|
+
declarations: [FormlyFieldDatetime],
|
|
161
|
+
imports: [
|
|
162
|
+
CommonModule,
|
|
163
|
+
ReactiveFormsModule,
|
|
164
|
+
IonicModule,
|
|
165
|
+
FormlyFormFieldModule,
|
|
166
|
+
FormlyModule.forChild({
|
|
167
|
+
types: [
|
|
168
|
+
{
|
|
169
|
+
name: 'datetime',
|
|
170
|
+
component: FormlyFieldDatetime,
|
|
171
|
+
wrappers: ['form-field'],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
}),
|
|
175
|
+
],
|
|
176
|
+
}]
|
|
177
|
+
}] });
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Generated bundle index. Do not edit.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
export { FormlyDatetimeModule };
|
|
184
|
+
//# sourceMappingURL=ngx-formly-ionic-datetime.mjs.map
|