@ngx-formly/ionic 5.10.22 → 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 +4 -2
- package/checkbox/checkbox.module.d.ts +12 -0
- package/checkbox/checkbox.type.d.ts +6 -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 +6 -0
- package/datetime/ngx-formly-ionic-datetime.d.ts +5 -0
- package/datetime/package.json +10 -0
- package/datetime/public_api.d.ts +1 -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 +63 -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 +53 -0
- package/esm2020/form-field/formly.attributes.mjs +34 -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 +72 -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 +71 -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 +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 +12 -0
- package/form-field/form-field.wrapper.d.ts +6 -0
- package/form-field/formly.attributes.d.ts +8 -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 +2 -0
- package/input/input.module.d.ts +12 -0
- package/input/input.type.d.ts +6 -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 +11 -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/{lib/types/select.d.ts → select/select.type.d.ts} +3 -0
- package/slider/ngx-formly-ionic-slider.d.ts +5 -0
- package/slider/package.json +10 -0
- package/slider/public_api.d.ts +1 -0
- package/slider/slider.module.d.ts +12 -0
- package/slider/slider.type.d.ts +6 -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 +6 -0
- package/toggle/ngx-formly-ionic-toggle.d.ts +5 -0
- package/toggle/package.json +10 -0
- package/toggle/public_api.d.ts +1 -0
- package/toggle/toggle.module.d.ts +12 -0
- package/toggle/toggle.type.d.ts +6 -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/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
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { IonicModule } from '@ionic/angular';
|
|
4
|
-
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
5
|
-
import { __extends } from 'tslib';
|
|
6
|
-
import { Component, Directive, Input, NgModule } from '@angular/core';
|
|
7
|
-
import { FieldType, FieldWrapper, FormlyAttributes, FormlyModule } from '@ngx-formly/core';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @fileoverview added by tsickle
|
|
11
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12
|
-
*/
|
|
13
|
-
var FormlyFieldInput = /** @class */ (function (_super) {
|
|
14
|
-
__extends(FormlyFieldInput, _super);
|
|
15
|
-
function FormlyFieldInput() {
|
|
16
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
-
}
|
|
18
|
-
FormlyFieldInput.decorators = [
|
|
19
|
-
{ type: Component, args: [{
|
|
20
|
-
selector: 'formly-field-ion-input',
|
|
21
|
-
template: "\n <ion-input *ngIf=\"to.type !== 'number' else numberTmp\" [type]=\"to.type || 'text'\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></ion-input>\n <ng-template #numberTmp>\n <ion-input type=\"number\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></ion-input>\n </ng-template>\n ",
|
|
22
|
-
styles: [':host { display: inherit; }']
|
|
23
|
-
}] }
|
|
24
|
-
];
|
|
25
|
-
return FormlyFieldInput;
|
|
26
|
-
}(FieldType));
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @fileoverview added by tsickle
|
|
30
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
31
|
-
*/
|
|
32
|
-
var FormlyFieldCheckbox = /** @class */ (function (_super) {
|
|
33
|
-
__extends(FormlyFieldCheckbox, _super);
|
|
34
|
-
function FormlyFieldCheckbox() {
|
|
35
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
FormlyFieldCheckbox.decorators = [
|
|
38
|
-
{ type: Component, args: [{
|
|
39
|
-
selector: 'formly-field-ion-checkbox',
|
|
40
|
-
template: "\n <ion-checkbox\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-checkbox>\n "
|
|
41
|
-
}] }
|
|
42
|
-
];
|
|
43
|
-
return FormlyFieldCheckbox;
|
|
44
|
-
}(FieldType));
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @fileoverview added by tsickle
|
|
48
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
49
|
-
*/
|
|
50
|
-
var FormlyFieldDatetime = /** @class */ (function (_super) {
|
|
51
|
-
__extends(FormlyFieldDatetime, _super);
|
|
52
|
-
function FormlyFieldDatetime() {
|
|
53
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
54
|
-
}
|
|
55
|
-
FormlyFieldDatetime.decorators = [
|
|
56
|
-
{ type: Component, args: [{
|
|
57
|
-
selector: 'formly-field-ion-datetime',
|
|
58
|
-
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 </ion-datetime>\n "
|
|
59
|
-
}] }
|
|
60
|
-
];
|
|
61
|
-
return FormlyFieldDatetime;
|
|
62
|
-
}(FieldType));
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @fileoverview added by tsickle
|
|
66
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
67
|
-
*/
|
|
68
|
-
var FormlyFieldRadio = /** @class */ (function (_super) {
|
|
69
|
-
__extends(FormlyFieldRadio, _super);
|
|
70
|
-
function FormlyFieldRadio() {
|
|
71
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
72
|
-
_this.defaultOptions = {
|
|
73
|
-
templateOptions: { options: [] },
|
|
74
|
-
};
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
FormlyFieldRadio.decorators = [
|
|
78
|
-
{ type: Component, args: [{
|
|
79
|
-
selector: 'formly-field-ion-radio',
|
|
80
|
-
template: "\n <ion-list>\n <ion-radio-group\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-list-header>{{ to.label }}</ion-list-header>\n <ion-item *ngFor=\"let option of to.options | formlySelectOptions:field | async\" [disabled]=\"option.disabled || formControl.disabled\">\n <ion-label>{{ option.label }}</ion-label>\n <ion-radio [value]=\"option.value\"></ion-radio>\n </ion-item>\n </ion-radio-group>\n </ion-list>\n <ion-item lines=\"none\" *ngIf=\"showError\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n "
|
|
81
|
-
}] }
|
|
82
|
-
];
|
|
83
|
-
return FormlyFieldRadio;
|
|
84
|
-
}(FieldType));
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @fileoverview added by tsickle
|
|
88
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
89
|
-
*/
|
|
90
|
-
var FormlyFieldToggle = /** @class */ (function (_super) {
|
|
91
|
-
__extends(FormlyFieldToggle, _super);
|
|
92
|
-
function FormlyFieldToggle() {
|
|
93
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
94
|
-
}
|
|
95
|
-
FormlyFieldToggle.decorators = [
|
|
96
|
-
{ type: Component, args: [{
|
|
97
|
-
selector: 'formly-field-ion-toggle',
|
|
98
|
-
template: "\n <ion-toggle\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-toggle>\n "
|
|
99
|
-
}] }
|
|
100
|
-
];
|
|
101
|
-
return FormlyFieldToggle;
|
|
102
|
-
}(FieldType));
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @fileoverview added by tsickle
|
|
106
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
107
|
-
*/
|
|
108
|
-
var FormlyFieldSelect = /** @class */ (function (_super) {
|
|
109
|
-
__extends(FormlyFieldSelect, _super);
|
|
110
|
-
function FormlyFieldSelect() {
|
|
111
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
112
|
-
_this.defaultOptions = {
|
|
113
|
-
templateOptions: {
|
|
114
|
-
options: [],
|
|
115
|
-
compareWith: /**
|
|
116
|
-
* @param {?} o1
|
|
117
|
-
* @param {?} o2
|
|
118
|
-
* @return {?}
|
|
119
|
-
*/
|
|
120
|
-
function (o1, o2) {
|
|
121
|
-
return o1 === o2;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
return _this;
|
|
126
|
-
}
|
|
127
|
-
FormlyFieldSelect.decorators = [
|
|
128
|
-
{ type: Component, args: [{
|
|
129
|
-
selector: 'formly-field-ion-select',
|
|
130
|
-
template: "\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n <ng-container *ngIf=\"to.options | formlySelectOptions:field | async; let selectOptions\">\n <ion-select\n [style.align-self]=\"to.labelPosition === 'floating' ? 'stretch':''\"\n [style.max-width.%]=\"to.labelPosition === 'floating' ? 100 : ''\"\n\n [formControl]=\"formControl\"\n [compareWith]=\"to.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"to.multiple\"\n [interface]=\"to.interface\"\n [okText]=\"to.okText\"\n [cancelText]=\"to.cancelText\">\n <ion-select-option *ngFor=\"let option of selectOptions\" [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n </ion-select>\n </ng-container>\n ",
|
|
131
|
-
styles: [':host { display: inherit; }']
|
|
132
|
-
}] }
|
|
133
|
-
];
|
|
134
|
-
return FormlyFieldSelect;
|
|
135
|
-
}(FieldType));
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @fileoverview added by tsickle
|
|
139
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
140
|
-
*/
|
|
141
|
-
var FormlyFieldRange = /** @class */ (function (_super) {
|
|
142
|
-
__extends(FormlyFieldRange, _super);
|
|
143
|
-
function FormlyFieldRange() {
|
|
144
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
145
|
-
}
|
|
146
|
-
FormlyFieldRange.decorators = [
|
|
147
|
-
{ type: Component, args: [{
|
|
148
|
-
selector: 'formly-field-ion-range',
|
|
149
|
-
template: "\n <ion-range\n [min]=\"to.min\"\n [max]=\"to.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-label slot=\"start\">{{ to.min }}</ion-label>\n <ion-label slot=\"end\">{{ to.max }}</ion-label>\n </ion-range>\n ",
|
|
150
|
-
styles: [':host { display: inherit; }']
|
|
151
|
-
}] }
|
|
152
|
-
];
|
|
153
|
-
return FormlyFieldRange;
|
|
154
|
-
}(FieldType));
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @fileoverview added by tsickle
|
|
158
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
159
|
-
*/
|
|
160
|
-
var FormlyFieldTextArea = /** @class */ (function (_super) {
|
|
161
|
-
__extends(FormlyFieldTextArea, _super);
|
|
162
|
-
function FormlyFieldTextArea() {
|
|
163
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
164
|
-
}
|
|
165
|
-
FormlyFieldTextArea.decorators = [
|
|
166
|
-
{ type: Component, args: [{
|
|
167
|
-
selector: 'formly-field-ion-textarea',
|
|
168
|
-
template: "\n <ion-textarea\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [cols]=\"to.cols\"\n [rows]=\"to.rows\">\n </ion-textarea>\n ",
|
|
169
|
-
styles: [':host { display: inherit; }']
|
|
170
|
-
}] }
|
|
171
|
-
];
|
|
172
|
-
return FormlyFieldTextArea;
|
|
173
|
-
}(FieldType));
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @fileoverview added by tsickle
|
|
177
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @fileoverview added by tsickle
|
|
182
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
183
|
-
*/
|
|
184
|
-
var FormlyWrapperFormField = /** @class */ (function (_super) {
|
|
185
|
-
__extends(FormlyWrapperFormField, _super);
|
|
186
|
-
function FormlyWrapperFormField() {
|
|
187
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
188
|
-
}
|
|
189
|
-
FormlyWrapperFormField.decorators = [
|
|
190
|
-
{ type: Component, args: [{
|
|
191
|
-
selector: 'formly-wrapper-ion-form-field',
|
|
192
|
-
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 "
|
|
193
|
-
}] }
|
|
194
|
-
];
|
|
195
|
-
return FormlyWrapperFormField;
|
|
196
|
-
}(FieldWrapper));
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @fileoverview added by tsickle
|
|
200
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
201
|
-
*/
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @fileoverview added by tsickle
|
|
205
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
206
|
-
*/
|
|
207
|
-
/** @type {?} */
|
|
208
|
-
var FIELD_TYPE_COMPONENTS = [
|
|
209
|
-
// types
|
|
210
|
-
FormlyFieldInput,
|
|
211
|
-
FormlyFieldCheckbox,
|
|
212
|
-
FormlyFieldDatetime,
|
|
213
|
-
FormlyFieldRadio,
|
|
214
|
-
FormlyFieldToggle,
|
|
215
|
-
FormlyFieldSelect,
|
|
216
|
-
FormlyFieldRange,
|
|
217
|
-
FormlyFieldTextArea,
|
|
218
|
-
// wrappers
|
|
219
|
-
FormlyWrapperFormField,
|
|
220
|
-
];
|
|
221
|
-
/** @type {?} */
|
|
222
|
-
var IONIC_FORMLY_CONFIG = {
|
|
223
|
-
types: [
|
|
224
|
-
{
|
|
225
|
-
name: 'input',
|
|
226
|
-
component: FormlyFieldInput,
|
|
227
|
-
wrappers: ['form-field'],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'checkbox',
|
|
231
|
-
component: FormlyFieldCheckbox,
|
|
232
|
-
wrappers: ['form-field'],
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
name: 'datetime',
|
|
236
|
-
component: FormlyFieldDatetime,
|
|
237
|
-
wrappers: ['form-field'],
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
name: 'radio',
|
|
241
|
-
component: FormlyFieldRadio,
|
|
242
|
-
wrappers: [],
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
name: 'toggle',
|
|
246
|
-
component: FormlyFieldToggle,
|
|
247
|
-
wrappers: ['form-field'],
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: 'select',
|
|
251
|
-
component: FormlyFieldSelect,
|
|
252
|
-
wrappers: ['form-field'],
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: 'range',
|
|
256
|
-
component: FormlyFieldRange,
|
|
257
|
-
wrappers: ['form-field'],
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
name: 'textarea',
|
|
261
|
-
component: FormlyFieldTextArea,
|
|
262
|
-
wrappers: ['form-field'],
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
wrappers: [
|
|
266
|
-
{ name: 'form-field', component: FormlyWrapperFormField },
|
|
267
|
-
],
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* @fileoverview added by tsickle
|
|
272
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
273
|
-
*/
|
|
274
|
-
var IonFormlyAttributes = /** @class */ (function (_super) {
|
|
275
|
-
__extends(IonFormlyAttributes, _super);
|
|
276
|
-
function IonFormlyAttributes() {
|
|
277
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* @param {?} element
|
|
281
|
-
* @param {?} value
|
|
282
|
-
* @return {?}
|
|
283
|
-
*/
|
|
284
|
-
IonFormlyAttributes.prototype.focusElement = /**
|
|
285
|
-
* @param {?} element
|
|
286
|
-
* @param {?} value
|
|
287
|
-
* @return {?}
|
|
288
|
-
*/
|
|
289
|
-
function (element, value) {
|
|
290
|
-
if (!element.setFocus || !value) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
if (!element.getInputElement()) {
|
|
294
|
-
setTimeout((/**
|
|
295
|
-
* @return {?}
|
|
296
|
-
*/
|
|
297
|
-
function () { return element.setFocus(); }), 300);
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
element.setFocus();
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
IonFormlyAttributes.decorators = [
|
|
304
|
-
{ type: Directive, args: [{
|
|
305
|
-
// tslint:disable-next-line
|
|
306
|
-
selector: '[ionFormlyAttributes]',
|
|
307
|
-
host: {
|
|
308
|
-
'(ionFocus)': 'onFocus($event)',
|
|
309
|
-
'(ionBlur)': 'onBlur($event)',
|
|
310
|
-
'(ionChange)': 'onChange($event)',
|
|
311
|
-
},
|
|
312
|
-
},] }
|
|
313
|
-
];
|
|
314
|
-
IonFormlyAttributes.propDecorators = {
|
|
315
|
-
field: [{ type: Input, args: ['ionFormlyAttributes',] }]
|
|
316
|
-
};
|
|
317
|
-
return IonFormlyAttributes;
|
|
318
|
-
}(FormlyAttributes));
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* @fileoverview added by tsickle
|
|
322
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
323
|
-
*/
|
|
324
|
-
var FormlyIonicModule = /** @class */ (function () {
|
|
325
|
-
function FormlyIonicModule() {
|
|
326
|
-
}
|
|
327
|
-
FormlyIonicModule.decorators = [
|
|
328
|
-
{ type: NgModule, args: [{
|
|
329
|
-
declarations: [FIELD_TYPE_COMPONENTS, IonFormlyAttributes],
|
|
330
|
-
imports: [
|
|
331
|
-
CommonModule,
|
|
332
|
-
IonicModule,
|
|
333
|
-
ReactiveFormsModule,
|
|
334
|
-
FormlySelectModule,
|
|
335
|
-
FormlyModule.forChild(IONIC_FORMLY_CONFIG),
|
|
336
|
-
],
|
|
337
|
-
exports: [IonFormlyAttributes],
|
|
338
|
-
},] }
|
|
339
|
-
];
|
|
340
|
-
return FormlyIonicModule;
|
|
341
|
-
}());
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @fileoverview added by tsickle
|
|
345
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* @fileoverview added by tsickle
|
|
350
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @fileoverview added by tsickle
|
|
355
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
356
|
-
*/
|
|
357
|
-
|
|
358
|
-
export { FormlyIonicModule, FormlyFieldInput, FormlyFieldCheckbox, FormlyFieldDatetime, FormlyFieldRadio, FormlyFieldToggle, FormlyFieldSelect, FormlyFieldRange, FormlyFieldTextArea, FormlyWrapperFormField, IonFormlyAttributes as ɵc, FIELD_TYPE_COMPONENTS as ɵa, IONIC_FORMLY_CONFIG as ɵb };
|
|
359
|
-
|
|
360
|
-
//# sourceMappingURL=ngx-formly-ionic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-ionic.js.map","sources":["ng://@ngx-formly/ionic/lib/types/input.ts","ng://@ngx-formly/ionic/lib/types/checkbox.ts","ng://@ngx-formly/ionic/lib/types/datetime.ts","ng://@ngx-formly/ionic/lib/types/radio.ts","ng://@ngx-formly/ionic/lib/types/toggle.ts","ng://@ngx-formly/ionic/lib/types/select.ts","ng://@ngx-formly/ionic/lib/types/range.ts","ng://@ngx-formly/ionic/lib/types/textarea.ts","ng://@ngx-formly/ionic/lib/wrappers/form-field.ts","ng://@ngx-formly/ionic/lib/ui-ionic.config.ts","ng://@ngx-formly/ionic/lib/formly.attributes.ts","ng://@ngx-formly/ionic/lib/ui-ionic.module.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-input',\n template: `\n <ion-input *ngIf=\"to.type !== 'number' else numberTmp\" [type]=\"to.type || 'text'\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></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})\nexport class FormlyFieldInput extends FieldType {}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-checkbox',\n template: `\n <ion-checkbox\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-checkbox>\n `,\n})\nexport class FormlyFieldCheckbox extends FieldType {\n}\n","import { Component } 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 </ion-datetime>\n `,\n})\nexport class FormlyFieldDatetime extends FieldType {\n}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-radio',\n template: `\n <ion-list>\n <ion-radio-group\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-list-header>{{ to.label }}</ion-list-header>\n <ion-item *ngFor=\"let option of to.options | formlySelectOptions:field | async\" [disabled]=\"option.disabled || formControl.disabled\">\n <ion-label>{{ option.label }}</ion-label>\n <ion-radio [value]=\"option.value\"></ion-radio>\n </ion-item>\n </ion-radio-group>\n </ion-list>\n <ion-item lines=\"none\" *ngIf=\"showError\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n `,\n})\nexport class FormlyFieldRadio extends FieldType {\n defaultOptions = {\n templateOptions: { options: [] },\n };\n}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-toggle',\n template: `\n <ion-toggle\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-toggle>\n `,\n})\nexport class FormlyFieldToggle extends FieldType {}\n\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-select',\n template: `\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n <ng-container *ngIf=\"to.options | formlySelectOptions:field | async; let selectOptions\">\n <ion-select\n [style.align-self]=\"to.labelPosition === 'floating' ? 'stretch':''\"\n [style.max-width.%]=\"to.labelPosition === 'floating' ? 100 : ''\"\n\n [formControl]=\"formControl\"\n [compareWith]=\"to.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"to.multiple\"\n [interface]=\"to.interface\"\n [okText]=\"to.okText\"\n [cancelText]=\"to.cancelText\">\n <ion-select-option *ngFor=\"let option of selectOptions\" [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n </ion-select>\n </ng-container>\n `,\n styles: [':host { display: inherit; }'],\n})\nexport class FormlyFieldSelect extends FieldType {\n defaultOptions = {\n templateOptions: {\n options: [],\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-range',\n template: `\n <ion-range\n [min]=\"to.min\"\n [max]=\"to.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-label slot=\"start\">{{ to.min }}</ion-label>\n <ion-label slot=\"end\">{{ to.max }}</ion-label>\n </ion-range>\n `,\n styles: [':host { display: inherit; }'],\n})\nexport class FormlyFieldRange extends FieldType {}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-textarea',\n template: `\n <ion-textarea\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [cols]=\"to.cols\"\n [rows]=\"to.rows\">\n </ion-textarea>\n `,\n styles: [':host { display: inherit; }'],\n})\nexport class FormlyFieldTextArea extends FieldType {}\n","import { Component } 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})\nexport class FormlyWrapperFormField extends FieldWrapper {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport {\n FormlyFieldInput,\n FormlyFieldCheckbox,\n FormlyFieldDatetime,\n FormlyFieldRadio,\n FormlyFieldToggle,\n FormlyFieldSelect,\n FormlyFieldRange,\n FormlyFieldTextArea,\n} from './types/types';\nimport { FormlyWrapperFormField } from './wrappers/wrappers';\n\n\nexport const FIELD_TYPE_COMPONENTS = [\n // types\n FormlyFieldInput,\n FormlyFieldCheckbox,\n FormlyFieldDatetime,\n FormlyFieldRadio,\n FormlyFieldToggle,\n FormlyFieldSelect,\n FormlyFieldRange,\n FormlyFieldTextArea,\n\n // wrappers\n FormlyWrapperFormField,\n];\n\nexport const IONIC_FORMLY_CONFIG: ConfigOption = {\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'datetime',\n component: FormlyFieldDatetime,\n wrappers: ['form-field'],\n },\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: [],\n },\n {\n name: 'toggle',\n component: FormlyFieldToggle,\n wrappers: ['form-field'],\n },\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n {\n name: 'range',\n component: FormlyFieldRange,\n wrappers: ['form-field'],\n },\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n wrappers: [\n { name: 'form-field', component: FormlyWrapperFormField },\n ],\n};\n","import { Directive, Input } from '@angular/core';\nimport { FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\n\n@Directive({\n // tslint: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 { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { IONIC_FORMLY_CONFIG, FIELD_TYPE_COMPONENTS } from './ui-ionic.config';\nimport { IonFormlyAttributes } from './formly.attributes';\n\n@NgModule({\n declarations: [FIELD_TYPE_COMPONENTS, IonFormlyAttributes],\n imports: [\n CommonModule,\n IonicModule,\n ReactiveFormsModule,\n FormlySelectModule,\n FormlyModule.forChild(IONIC_FORMLY_CONFIG),\n ],\n exports: [IonFormlyAttributes],\n})\nexport class FormlyIonicModule {\n}\n"],"names":["tslib_1.__extends"],"mappings":"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"}
|
package/lib/types/checkbox.d.ts
DELETED
package/lib/types/datetime.d.ts
DELETED
package/lib/types/input.d.ts
DELETED
package/lib/types/radio.d.ts
DELETED
package/lib/types/range.d.ts
DELETED
package/lib/types/textarea.d.ts
DELETED
package/lib/types/toggle.d.ts
DELETED
package/lib/types/types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { FormlyFieldInput } from './input';
|
|
2
|
-
export { FormlyFieldCheckbox } from './checkbox';
|
|
3
|
-
export { FormlyFieldDatetime } from './datetime';
|
|
4
|
-
export { FormlyFieldRadio } from './radio';
|
|
5
|
-
export { FormlyFieldToggle } from './toggle';
|
|
6
|
-
export { FormlyFieldSelect } from './select';
|
|
7
|
-
export { FormlyFieldRange } from './range';
|
|
8
|
-
export { FormlyFieldTextArea } from './textarea';
|
package/lib/ui-ionic.config.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ConfigOption } from '@ngx-formly/core';
|
|
2
|
-
import { FormlyFieldInput, FormlyFieldRadio } from './types/types';
|
|
3
|
-
export declare const FIELD_TYPE_COMPONENTS: (typeof FormlyFieldInput | typeof FormlyFieldRadio)[];
|
|
4
|
-
export declare const IONIC_FORMLY_CONFIG: ConfigOption;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FormlyWrapperFormField } from './form-field';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"FormlyFieldInput":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":13,"character":38},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-input","template":"\n <ion-input *ngIf=\"to.type !== 'number' else numberTmp\" [type]=\"to.type || 'text'\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></ion-input>\n <ng-template #numberTmp>\n <ion-input type=\"number\" [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"></ion-input>\n </ng-template>\n ","styles":[":host { display: inherit; }"]}]}],"members":{}},"FormlyFieldCheckbox":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":12,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-checkbox","template":"\n <ion-checkbox\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-checkbox>\n "}]}],"members":{}},"FormlyFieldDatetime":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":28,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-datetime","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 </ion-datetime>\n "}]}],"members":{}},"FormlyFieldRadio":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":28,"character":38},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-radio","template":"\n <ion-list>\n <ion-radio-group\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-list-header>{{ to.label }}</ion-list-header>\n <ion-item *ngFor=\"let option of to.options | formlySelectOptions:field | async\" [disabled]=\"option.disabled || formControl.disabled\">\n <ion-label>{{ option.label }}</ion-label>\n <ion-radio [value]=\"option.value\"></ion-radio>\n </ion-item>\n </ion-radio-group>\n </ion-list>\n <ion-item lines=\"none\" *ngIf=\"showError\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n "}]}],"members":{}},"FormlyFieldToggle":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":12,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-toggle","template":"\n <ion-toggle\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n </ion-toggle>\n "}]}],"members":{}},"FormlyFieldSelect":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":27,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-select","template":"\n <!-- ng-container used as a workaround for https://github.com/ionic-team/ionic/issues/19324 -->\n <ng-container *ngIf=\"to.options | formlySelectOptions:field | async; let selectOptions\">\n <ion-select\n [style.align-self]=\"to.labelPosition === 'floating' ? 'stretch':''\"\n [style.max-width.%]=\"to.labelPosition === 'floating' ? 100 : ''\"\n\n [formControl]=\"formControl\"\n [compareWith]=\"to.compareWith\"\n [ionFormlyAttributes]=\"field\"\n [multiple]=\"to.multiple\"\n [interface]=\"to.interface\"\n [okText]=\"to.okText\"\n [cancelText]=\"to.cancelText\">\n <ion-select-option *ngFor=\"let option of selectOptions\" [value]=\"option.value\" [disabled]=\"option.disabled\">\n {{ option.label }}\n </ion-select-option>\n </ion-select>\n </ng-container>\n ","styles":[":host { display: inherit; }"]}]}],"members":{}},"FormlyFieldRange":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":17,"character":38},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-range","template":"\n <ion-range\n [min]=\"to.min\"\n [max]=\"to.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\">\n <ion-label slot=\"start\">{{ to.min }}</ion-label>\n <ion-label slot=\"end\">{{ to.max }}</ion-label>\n </ion-range>\n ","styles":[":host { display: inherit; }"]}]}],"members":{}},"FormlyFieldTextArea":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldType","line":15,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-field-ion-textarea","template":"\n <ion-textarea\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n [cols]=\"to.cols\"\n [rows]=\"to.rows\">\n </ion-textarea>\n ","styles":[":host { display: inherit; }"]}]}],"members":{}},"FormlyWrapperFormField":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FieldWrapper","line":24,"character":44},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"formly-wrapper-ion-form-field","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 "}]}],"members":{}},"FormlyIonicModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":4},{"__symbolic":"reference","module":"@ionic/angular","name":"IonicModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":14,"character":4},{"__symbolic":"reference","module":"@ngx-formly/core/select","name":"FormlySelectModule","line":15,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FormlyModule","line":16,"character":4},"member":"forChild"},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}],"exports":[{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"ɵa":[{"__symbolic":"reference","name":"FormlyFieldInput"},{"__symbolic":"reference","name":"FormlyFieldCheckbox"},{"__symbolic":"reference","name":"FormlyFieldDatetime"},{"__symbolic":"reference","name":"FormlyFieldRadio"},{"__symbolic":"reference","name":"FormlyFieldToggle"},{"__symbolic":"reference","name":"FormlyFieldSelect"},{"__symbolic":"reference","name":"FormlyFieldRange"},{"__symbolic":"reference","name":"FormlyFieldTextArea"},{"__symbolic":"reference","name":"FormlyWrapperFormField"}],"ɵb":{"types":[{"name":"input","component":{"__symbolic":"reference","name":"FormlyFieldInput"},"wrappers":["form-field"]},{"name":"checkbox","component":{"__symbolic":"reference","name":"FormlyFieldCheckbox"},"wrappers":["form-field"]},{"name":"datetime","component":{"__symbolic":"reference","name":"FormlyFieldDatetime"},"wrappers":["form-field"]},{"name":"radio","component":{"__symbolic":"reference","name":"FormlyFieldRadio"},"wrappers":[]},{"name":"toggle","component":{"__symbolic":"reference","name":"FormlyFieldToggle"},"wrappers":["form-field"]},{"name":"select","component":{"__symbolic":"reference","name":"FormlyFieldSelect"},"wrappers":["form-field"]},{"name":"range","component":{"__symbolic":"reference","name":"FormlyFieldRange"},"wrappers":["form-field"]},{"name":"textarea","component":{"__symbolic":"reference","name":"FormlyFieldTextArea"},"wrappers":["form-field"]}],"wrappers":[{"name":"form-field","component":{"__symbolic":"reference","name":"FormlyWrapperFormField"}}]},"ɵc":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ngx-formly/core","name":"FormlyAttributes","line":12,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[ionFormlyAttributes]","host":{"(ionFocus)":"onFocus($event)","(ionBlur)":"onBlur($event)","(ionChange)":"onChange($event)","$quoted$":["(ionFocus)","(ionBlur)","(ionChange)"]}}]}],"members":{"field":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3},"arguments":["ionFormlyAttributes"]}]}],"focusElement":[{"__symbolic":"method"}]}}},"origins":{"FormlyFieldInput":"./lib/types/input","FormlyFieldCheckbox":"./lib/types/checkbox","FormlyFieldDatetime":"./lib/types/datetime","FormlyFieldRadio":"./lib/types/radio","FormlyFieldToggle":"./lib/types/toggle","FormlyFieldSelect":"./lib/types/select","FormlyFieldRange":"./lib/types/range","FormlyFieldTextArea":"./lib/types/textarea","FormlyWrapperFormField":"./lib/wrappers/form-field","FormlyIonicModule":"./lib/ui-ionic.module","ɵa":"./lib/ui-ionic.config","ɵb":"./lib/ui-ionic.config","ɵc":"./lib/formly.attributes"},"importAs":"@ngx-formly/ionic"}
|