@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.
Files changed (187) hide show
  1. package/README.md +4 -2
  2. package/checkbox/checkbox.module.d.ts +12 -0
  3. package/checkbox/checkbox.type.d.ts +6 -0
  4. package/checkbox/ngx-formly-ionic-checkbox.d.ts +5 -0
  5. package/checkbox/package.json +10 -0
  6. package/checkbox/public_api.d.ts +2 -0
  7. package/datetime/datetime.module.d.ts +12 -0
  8. package/datetime/datetime.type.d.ts +6 -0
  9. package/datetime/ngx-formly-ionic-datetime.d.ts +5 -0
  10. package/datetime/package.json +10 -0
  11. package/datetime/public_api.d.ts +1 -0
  12. package/esm2020/checkbox/checkbox.module.mjs +61 -0
  13. package/esm2020/checkbox/checkbox.type.mjs +19 -0
  14. package/esm2020/checkbox/ngx-formly-ionic-checkbox.mjs +5 -0
  15. package/esm2020/checkbox/public_api.mjs +3 -0
  16. package/esm2020/datetime/datetime.module.mjs +53 -0
  17. package/esm2020/datetime/datetime.type.mjs +63 -0
  18. package/esm2020/datetime/ngx-formly-ionic-datetime.mjs +5 -0
  19. package/esm2020/datetime/public_api.mjs +2 -0
  20. package/esm2020/form-field/form-field.module.mjs +49 -0
  21. package/esm2020/form-field/form-field.wrapper.mjs +53 -0
  22. package/esm2020/form-field/formly.attributes.mjs +34 -0
  23. package/esm2020/form-field/ngx-formly-ionic-form-field.mjs +5 -0
  24. package/esm2020/form-field/public_api.mjs +3 -0
  25. package/esm2020/input/input.module.mjs +91 -0
  26. package/esm2020/input/input.type.mjs +41 -0
  27. package/esm2020/input/ngx-formly-ionic-input.mjs +5 -0
  28. package/esm2020/input/public_api.mjs +3 -0
  29. package/esm2020/lib/ui-ionic.mjs +2 -0
  30. package/esm2020/lib/ui-ionic.module.mjs +52 -0
  31. package/esm2020/ngx-formly-ionic.mjs +5 -0
  32. package/esm2020/public_api.mjs +5 -0
  33. package/esm2020/radio/ngx-formly-ionic-radio.mjs +5 -0
  34. package/esm2020/radio/public_api.mjs +3 -0
  35. package/esm2020/radio/radio.module.mjs +57 -0
  36. package/esm2020/radio/radio.type.mjs +72 -0
  37. package/esm2020/select/ngx-formly-ionic-select.mjs +5 -0
  38. package/esm2020/select/public_api.mjs +3 -0
  39. package/esm2020/select/select.module.mjs +59 -0
  40. package/esm2020/select/select.type.mjs +71 -0
  41. package/esm2020/slider/ngx-formly-ionic-slider.mjs +5 -0
  42. package/esm2020/slider/public_api.mjs +2 -0
  43. package/esm2020/slider/slider.module.mjs +47 -0
  44. package/esm2020/slider/slider.type.mjs +30 -0
  45. package/esm2020/textarea/ngx-formly-ionic-textarea.mjs +5 -0
  46. package/esm2020/textarea/public_api.mjs +3 -0
  47. package/esm2020/textarea/textarea.module.mjs +53 -0
  48. package/esm2020/textarea/textarea.type.mjs +26 -0
  49. package/esm2020/toggle/ngx-formly-ionic-toggle.mjs +5 -0
  50. package/esm2020/toggle/public_api.mjs +2 -0
  51. package/esm2020/toggle/toggle.module.mjs +53 -0
  52. package/esm2020/toggle/toggle.type.mjs +19 -0
  53. package/fesm2015/ngx-formly-ionic-checkbox.mjs +83 -0
  54. package/fesm2015/ngx-formly-ionic-checkbox.mjs.map +1 -0
  55. package/fesm2015/ngx-formly-ionic-datetime.mjs +119 -0
  56. package/fesm2015/ngx-formly-ionic-datetime.mjs.map +1 -0
  57. package/fesm2015/ngx-formly-ionic-form-field.mjs +134 -0
  58. package/fesm2015/ngx-formly-ionic-form-field.mjs.map +1 -0
  59. package/fesm2015/ngx-formly-ionic-input.mjs +135 -0
  60. package/fesm2015/ngx-formly-ionic-input.mjs.map +1 -0
  61. package/fesm2015/ngx-formly-ionic-radio.mjs +131 -0
  62. package/fesm2015/ngx-formly-ionic-radio.mjs.map +1 -0
  63. package/fesm2015/ngx-formly-ionic-select.mjs +133 -0
  64. package/fesm2015/ngx-formly-ionic-select.mjs.map +1 -0
  65. package/fesm2015/ngx-formly-ionic-slider.mjs +80 -0
  66. package/fesm2015/ngx-formly-ionic-slider.mjs.map +1 -0
  67. package/fesm2015/ngx-formly-ionic-textarea.mjs +82 -0
  68. package/fesm2015/ngx-formly-ionic-textarea.mjs.map +1 -0
  69. package/fesm2015/ngx-formly-ionic-toggle.mjs +75 -0
  70. package/fesm2015/ngx-formly-ionic-toggle.mjs.map +1 -0
  71. package/fesm2015/ngx-formly-ionic.mjs +63 -0
  72. package/fesm2015/ngx-formly-ionic.mjs.map +1 -0
  73. package/fesm2020/ngx-formly-ionic-checkbox.mjs +83 -0
  74. package/fesm2020/ngx-formly-ionic-checkbox.mjs.map +1 -0
  75. package/fesm2020/ngx-formly-ionic-datetime.mjs +119 -0
  76. package/fesm2020/ngx-formly-ionic-datetime.mjs.map +1 -0
  77. package/fesm2020/ngx-formly-ionic-form-field.mjs +134 -0
  78. package/fesm2020/ngx-formly-ionic-form-field.mjs.map +1 -0
  79. package/fesm2020/ngx-formly-ionic-input.mjs +135 -0
  80. package/fesm2020/ngx-formly-ionic-input.mjs.map +1 -0
  81. package/fesm2020/ngx-formly-ionic-radio.mjs +131 -0
  82. package/fesm2020/ngx-formly-ionic-radio.mjs.map +1 -0
  83. package/fesm2020/ngx-formly-ionic-select.mjs +133 -0
  84. package/fesm2020/ngx-formly-ionic-select.mjs.map +1 -0
  85. package/fesm2020/ngx-formly-ionic-slider.mjs +80 -0
  86. package/fesm2020/ngx-formly-ionic-slider.mjs.map +1 -0
  87. package/fesm2020/ngx-formly-ionic-textarea.mjs +82 -0
  88. package/fesm2020/ngx-formly-ionic-textarea.mjs.map +1 -0
  89. package/fesm2020/ngx-formly-ionic-toggle.mjs +75 -0
  90. package/fesm2020/ngx-formly-ionic-toggle.mjs.map +1 -0
  91. package/fesm2020/ngx-formly-ionic.mjs +63 -0
  92. package/fesm2020/ngx-formly-ionic.mjs.map +1 -0
  93. package/form-field/form-field.module.d.ts +12 -0
  94. package/form-field/form-field.wrapper.d.ts +6 -0
  95. package/form-field/formly.attributes.d.ts +8 -0
  96. package/form-field/ngx-formly-ionic-form-field.d.ts +5 -0
  97. package/form-field/package.json +10 -0
  98. package/form-field/public_api.d.ts +2 -0
  99. package/input/input.module.d.ts +12 -0
  100. package/input/input.type.d.ts +6 -0
  101. package/input/ngx-formly-ionic-input.d.ts +5 -0
  102. package/input/package.json +10 -0
  103. package/input/public_api.d.ts +2 -0
  104. package/lib/ui-ionic.d.ts +0 -2
  105. package/lib/ui-ionic.module.d.ts +13 -0
  106. package/ngx-formly-ionic.d.ts +1 -2
  107. package/package.json +102 -33
  108. package/radio/ngx-formly-ionic-radio.d.ts +5 -0
  109. package/radio/package.json +10 -0
  110. package/radio/public_api.d.ts +2 -0
  111. package/radio/radio.module.d.ts +13 -0
  112. package/radio/radio.type.d.ts +11 -0
  113. package/select/ngx-formly-ionic-select.d.ts +5 -0
  114. package/select/package.json +10 -0
  115. package/select/public_api.d.ts +2 -0
  116. package/select/select.module.d.ts +13 -0
  117. package/{lib/types/select.d.ts → select/select.type.d.ts} +3 -0
  118. package/slider/ngx-formly-ionic-slider.d.ts +5 -0
  119. package/slider/package.json +10 -0
  120. package/slider/public_api.d.ts +1 -0
  121. package/slider/slider.module.d.ts +12 -0
  122. package/slider/slider.type.d.ts +6 -0
  123. package/textarea/ngx-formly-ionic-textarea.d.ts +5 -0
  124. package/textarea/package.json +10 -0
  125. package/textarea/public_api.d.ts +2 -0
  126. package/textarea/textarea.module.d.ts +12 -0
  127. package/textarea/textarea.type.d.ts +6 -0
  128. package/toggle/ngx-formly-ionic-toggle.d.ts +5 -0
  129. package/toggle/package.json +10 -0
  130. package/toggle/public_api.d.ts +1 -0
  131. package/toggle/toggle.module.d.ts +12 -0
  132. package/toggle/toggle.type.d.ts +6 -0
  133. package/bundles/ngx-formly-ionic.umd.js +0 -401
  134. package/bundles/ngx-formly-ionic.umd.js.map +0 -1
  135. package/bundles/ngx-formly-ionic.umd.min.js +0 -2
  136. package/bundles/ngx-formly-ionic.umd.min.js.map +0 -1
  137. package/esm2015/lib/formly.attributes.js +0 -46
  138. package/esm2015/lib/types/checkbox.js +0 -20
  139. package/esm2015/lib/types/datetime.js +0 -36
  140. package/esm2015/lib/types/input.js +0 -21
  141. package/esm2015/lib/types/radio.js +0 -46
  142. package/esm2015/lib/types/range.js +0 -25
  143. package/esm2015/lib/types/select.js +0 -55
  144. package/esm2015/lib/types/textarea.js +0 -23
  145. package/esm2015/lib/types/toggle.js +0 -20
  146. package/esm2015/lib/types/types.js +0 -13
  147. package/esm2015/lib/ui-ionic.config.js +0 -69
  148. package/esm2015/lib/ui-ionic.js +0 -8
  149. package/esm2015/lib/ui-ionic.module.js +0 -28
  150. package/esm2015/lib/wrappers/form-field.js +0 -32
  151. package/esm2015/lib/wrappers/wrappers.js +0 -6
  152. package/esm2015/ngx-formly-ionic.js +0 -11
  153. package/esm2015/public_api.js +0 -9
  154. package/esm5/lib/formly.attributes.js +0 -58
  155. package/esm5/lib/types/checkbox.js +0 -22
  156. package/esm5/lib/types/datetime.js +0 -22
  157. package/esm5/lib/types/input.js +0 -23
  158. package/esm5/lib/types/radio.js +0 -30
  159. package/esm5/lib/types/range.js +0 -23
  160. package/esm5/lib/types/select.js +0 -41
  161. package/esm5/lib/types/textarea.js +0 -23
  162. package/esm5/lib/types/toggle.js +0 -22
  163. package/esm5/lib/types/types.js +0 -13
  164. package/esm5/lib/ui-ionic.config.js +0 -69
  165. package/esm5/lib/ui-ionic.js +0 -8
  166. package/esm5/lib/ui-ionic.module.js +0 -32
  167. package/esm5/lib/wrappers/form-field.js +0 -22
  168. package/esm5/lib/wrappers/wrappers.js +0 -6
  169. package/esm5/ngx-formly-ionic.js +0 -11
  170. package/esm5/public_api.js +0 -9
  171. package/fesm2015/ngx-formly-ionic.js +0 -414
  172. package/fesm2015/ngx-formly-ionic.js.map +0 -1
  173. package/fesm5/ngx-formly-ionic.js +0 -360
  174. package/fesm5/ngx-formly-ionic.js.map +0 -1
  175. package/lib/formly.attributes.d.ts +0 -5
  176. package/lib/types/checkbox.d.ts +0 -3
  177. package/lib/types/datetime.d.ts +0 -3
  178. package/lib/types/input.d.ts +0 -3
  179. package/lib/types/radio.d.ts +0 -8
  180. package/lib/types/range.d.ts +0 -3
  181. package/lib/types/textarea.d.ts +0 -3
  182. package/lib/types/toggle.d.ts +0 -3
  183. package/lib/types/types.d.ts +0 -8
  184. package/lib/ui-ionic.config.d.ts +0 -4
  185. package/lib/wrappers/form-field.d.ts +0 -3
  186. package/lib/wrappers/wrappers.d.ts +0 -1
  187. package/ngx-formly-ionic.metadata.json +0 -1
@@ -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.0.2", ngImport: i0, type: FormlyFieldToggle, deps: null, target: i0.ɵɵFactoryTarget.Component });
16
+ FormlyFieldToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldToggle, selector: "formly-field-ion-toggle", usesInheritance: true, ngImport: i0, template: ` <ion-toggle [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-toggle> `, isInline: true, components: [{ type: i1.IonToggle, selector: "ion-toggle", inputs: ["checked", "color", "disabled", "mode", "name", "value"] }], directives: [{ type: i1.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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.0.2", ngImport: i0, type: FormlyToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
29
+ FormlyToggleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", 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.0.2", 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.0.2", 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 } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\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 {}\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":[],"mappings":";;;;;;;;;;;;MAQa,0BAA0B,SAAS;;8GAAnC,iBAAiB;kGAAjB,iBAAiB,sFAHlB,wFAAwF;2FAGvF,iBAAiB;kBAL7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;oBACnC,QAAQ,EAAE,wFAAwF;oBAClG,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCoBY,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAjBd,iBAAiB,aAE9B,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;gHAYZ,kBAAkB,YAhBpB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAEU,kBAAkB;kBAlB9B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,QAAQ;oCACd,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC1BD;;;;;;"}
@@ -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.0.2", ngImport: i0, type: FormlyIonicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16
+ FormlyIonicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", 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.0.2", 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.0.2", 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-ionic';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAyBa,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,YAZ1B,qBAAqB;QACrB,iBAAiB;QACjB,oBAAoB;QACpB,iBAAiB;QACjB,oBAAoB;QACpB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,oBAAoB,aAEZ,qBAAqB;+GAEpB,iBAAiB,YAbnB;YACP,qBAAqB;YACrB,iBAAiB;YACjB,oBAAoB;YACpB,iBAAiB;YACjB,oBAAoB;YACpB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB,oBAAoB;SACrB,EACS,qBAAqB;2FAEpB,iBAAiB;kBAd7B,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,qBAAqB;wBACrB,iBAAiB;wBACjB,oBAAoB;wBACpB,iBAAiB;wBACjB,oBAAoB;wBACpB,kBAAkB;wBAClB,kBAAkB;wBAClB,kBAAkB;wBAClB,oBAAoB;qBACrB;oBACD,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBACjC;;;ACxBD;;;;ACAA;;;;;;"}
@@ -0,0 +1,83 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1$1 from '@ngx-formly/core';
5
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
6
+ import * as i2 from '@angular/forms';
7
+ import { ReactiveFormsModule } from '@angular/forms';
8
+ import * as i1 from '@ionic/angular';
9
+ import { IonicModule } from '@ionic/angular';
10
+ import * as i3 from '@ngx-formly/ionic/form-field';
11
+ import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
12
+
13
+ class FormlyFieldCheckbox extends FieldType {
14
+ }
15
+ FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
16
+ FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldCheckbox, selector: "formly-field-ion-checkbox", usesInheritance: true, ngImport: i0, template: ` <ion-checkbox [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-checkbox> `, isInline: true, components: [{ type: i1.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }], directives: [{ type: i1.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
18
+ type: Component,
19
+ args: [{
20
+ selector: 'formly-field-ion-checkbox',
21
+ template: ` <ion-checkbox [formControl]="formControl" [ionFormlyAttributes]="field"> </ion-checkbox> `,
22
+ changeDetection: ChangeDetectionStrategy.OnPush,
23
+ }]
24
+ }] });
25
+
26
+ class FormlyCheckboxModule {
27
+ }
28
+ FormlyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
29
+ FormlyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
30
+ ReactiveFormsModule,
31
+ IonicModule,
32
+ FormlyFormFieldModule, i1$1.FormlyModule] });
33
+ FormlyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, imports: [[
34
+ CommonModule,
35
+ ReactiveFormsModule,
36
+ IonicModule,
37
+ FormlyFormFieldModule,
38
+ FormlyModule.forChild({
39
+ types: [
40
+ {
41
+ name: 'checkbox',
42
+ component: FormlyFieldCheckbox,
43
+ wrappers: ['form-field'],
44
+ },
45
+ {
46
+ name: 'boolean',
47
+ extends: 'checkbox',
48
+ },
49
+ ],
50
+ }),
51
+ ]] });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyCheckboxModule, decorators: [{
53
+ type: NgModule,
54
+ args: [{
55
+ declarations: [FormlyFieldCheckbox],
56
+ imports: [
57
+ CommonModule,
58
+ ReactiveFormsModule,
59
+ IonicModule,
60
+ FormlyFormFieldModule,
61
+ FormlyModule.forChild({
62
+ types: [
63
+ {
64
+ name: 'checkbox',
65
+ component: FormlyFieldCheckbox,
66
+ wrappers: ['form-field'],
67
+ },
68
+ {
69
+ name: 'boolean',
70
+ extends: 'checkbox',
71
+ },
72
+ ],
73
+ }),
74
+ ],
75
+ }]
76
+ }] });
77
+
78
+ /**
79
+ * Generated bundle index. Do not edit.
80
+ */
81
+
82
+ export { FormlyCheckboxModule, FormlyFieldCheckbox };
83
+ //# sourceMappingURL=ngx-formly-ionic-checkbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-ionic-checkbox.mjs","sources":["../../../../src/ui/ionic/checkbox/src/checkbox.type.ts","../../../../src/ui/ionic/checkbox/src/checkbox.module.ts","../../../../src/ui/ionic/checkbox/src/ngx-formly-ionic-checkbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-checkbox',\n template: ` <ion-checkbox [formControl]=\"formControl\" [ionFormlyAttributes]=\"field\"> </ion-checkbox> `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldCheckbox extends FieldType {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'boolean',\n extends: 'checkbox',\n },\n ],\n }),\n ],\n})\nexport class FormlyCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAQa,mBAAoB,SAAQ,SAAS;;gHAArC,mBAAmB;oGAAnB,mBAAmB,wFAHpB,4FAA4F;2FAG3F,mBAAmB;kBAL/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE,4FAA4F;oBACtG,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCwBY,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBArBhB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;kHAgBZ,oBAAoB,YApBtB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,UAAU;qBACpB;iBACF;aACF,CAAC;SACH;2FAEU,oBAAoB;kBAtBhC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,UAAU;iCACpB;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC9BD;;;;;;"}
@@ -0,0 +1,119 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i1$1 from '@ngx-formly/core';
5
+ import { FieldType, FormlyModule } from '@ngx-formly/core';
6
+ import * as i2 from '@angular/forms';
7
+ import { ReactiveFormsModule } from '@angular/forms';
8
+ import * as i1 from '@ionic/angular';
9
+ import { IonicModule } from '@ionic/angular';
10
+ import * as i3 from '@ngx-formly/ionic/form-field';
11
+ import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';
12
+
13
+ class FormlyFieldDatetime extends FieldType {
14
+ }
15
+ FormlyFieldDatetime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldDatetime, deps: null, target: i0.ɵɵFactoryTarget.Component });
16
+ FormlyFieldDatetime.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldDatetime, selector: "formly-field-ion-datetime", usesInheritance: true, ngImport: i0, template: `
17
+ <ion-datetime
18
+ [cancelText]="to.cancelText"
19
+ [dayNames]="to.dayNames"
20
+ [dayShortNames]="to.dayShortNames"
21
+ [dayValues]="to.dayValues"
22
+ [displayFormat]="to.displayFormat"
23
+ [doneText]="to.doneText"
24
+ [hourValues]="to.hourValues"
25
+ [minuteValues]="to.minuteValues"
26
+ [monthNames]="to.monthNames"
27
+ [monthShortNames]="to.monthShortNames"
28
+ [monthValues]="to.monthValues"
29
+ [pickerFormat]="to.pickerFormat"
30
+ [pickerOptions]="to.pickerOptions"
31
+ [yearValues]="to.yearValues"
32
+ [min]="to.minDate ? to.minDate : to.min"
33
+ [max]="to.maxDate ? to.maxDate : to.max"
34
+ [formControl]="formControl"
35
+ [ionFormlyAttributes]="field"
36
+ >
37
+ </ion-datetime>
38
+ `, isInline: true, components: [{ type: i1.IonDatetime, selector: "ion-datetime", inputs: ["cancelText", "dayNames", "dayShortNames", "dayValues", "disabled", "displayFormat", "displayTimezone", "doneText", "hourValues", "max", "min", "minuteValues", "mode", "monthNames", "monthShortNames", "monthValues", "name", "pickerFormat", "pickerOptions", "placeholder", "readonly", "value", "yearValues"] }], directives: [{ type: i1.SelectValueAccessor, selector: "ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldDatetime, decorators: [{
40
+ type: Component,
41
+ args: [{
42
+ selector: 'formly-field-ion-datetime',
43
+ template: `
44
+ <ion-datetime
45
+ [cancelText]="to.cancelText"
46
+ [dayNames]="to.dayNames"
47
+ [dayShortNames]="to.dayShortNames"
48
+ [dayValues]="to.dayValues"
49
+ [displayFormat]="to.displayFormat"
50
+ [doneText]="to.doneText"
51
+ [hourValues]="to.hourValues"
52
+ [minuteValues]="to.minuteValues"
53
+ [monthNames]="to.monthNames"
54
+ [monthShortNames]="to.monthShortNames"
55
+ [monthValues]="to.monthValues"
56
+ [pickerFormat]="to.pickerFormat"
57
+ [pickerOptions]="to.pickerOptions"
58
+ [yearValues]="to.yearValues"
59
+ [min]="to.minDate ? to.minDate : to.min"
60
+ [max]="to.maxDate ? to.maxDate : to.max"
61
+ [formControl]="formControl"
62
+ [ionFormlyAttributes]="field"
63
+ >
64
+ </ion-datetime>
65
+ `,
66
+ changeDetection: ChangeDetectionStrategy.OnPush,
67
+ }]
68
+ }] });
69
+
70
+ class FormlyDatetimeModule {
71
+ }
72
+ FormlyDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
73
+ FormlyDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, declarations: [FormlyFieldDatetime], imports: [CommonModule,
74
+ ReactiveFormsModule,
75
+ IonicModule,
76
+ FormlyFormFieldModule, i1$1.FormlyModule] });
77
+ FormlyDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, imports: [[
78
+ CommonModule,
79
+ ReactiveFormsModule,
80
+ IonicModule,
81
+ FormlyFormFieldModule,
82
+ FormlyModule.forChild({
83
+ types: [
84
+ {
85
+ name: 'datetime',
86
+ component: FormlyFieldDatetime,
87
+ wrappers: ['form-field'],
88
+ },
89
+ ],
90
+ }),
91
+ ]] });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyDatetimeModule, decorators: [{
93
+ type: NgModule,
94
+ args: [{
95
+ declarations: [FormlyFieldDatetime],
96
+ imports: [
97
+ CommonModule,
98
+ ReactiveFormsModule,
99
+ IonicModule,
100
+ FormlyFormFieldModule,
101
+ FormlyModule.forChild({
102
+ types: [
103
+ {
104
+ name: 'datetime',
105
+ component: FormlyFieldDatetime,
106
+ wrappers: ['form-field'],
107
+ },
108
+ ],
109
+ }),
110
+ ],
111
+ }]
112
+ }] });
113
+
114
+ /**
115
+ * Generated bundle index. Do not edit.
116
+ */
117
+
118
+ export { FormlyDatetimeModule };
119
+ //# sourceMappingURL=ngx-formly-ionic-datetime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-ionic-datetime.mjs","sources":["../../../../src/ui/ionic/datetime/src/datetime.type.ts","../../../../src/ui/ionic/datetime/src/datetime.module.ts","../../../../src/ui/ionic/datetime/src/ngx-formly-ionic-datetime.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ion-datetime',\n template: `\n <ion-datetime\n [cancelText]=\"to.cancelText\"\n [dayNames]=\"to.dayNames\"\n [dayShortNames]=\"to.dayShortNames\"\n [dayValues]=\"to.dayValues\"\n [displayFormat]=\"to.displayFormat\"\n [doneText]=\"to.doneText\"\n [hourValues]=\"to.hourValues\"\n [minuteValues]=\"to.minuteValues\"\n [monthNames]=\"to.monthNames\"\n [monthShortNames]=\"to.monthShortNames\"\n [monthValues]=\"to.monthValues\"\n [pickerFormat]=\"to.pickerFormat\"\n [pickerOptions]=\"to.pickerOptions\"\n [yearValues]=\"to.yearValues\"\n [min]=\"to.minDate ? to.minDate : to.min\"\n [max]=\"to.maxDate ? to.maxDate : to.max\"\n [formControl]=\"formControl\"\n [ionFormlyAttributes]=\"field\"\n >\n </ion-datetime>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldDatetime extends FieldType {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field';\n\nimport { FormlyFieldDatetime } from './datetime.type';\n\n@NgModule({\n declarations: [FormlyFieldDatetime],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n FormlyFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'datetime',\n component: FormlyFieldDatetime,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyDatetimeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MA8Ba,mBAAoB,SAAQ,SAAS;;gHAArC,mBAAmB;oGAAnB,mBAAmB,wFAzBpB;;;;;;;;;;;;;;;;;;;;;;GAsBT;2FAGU,mBAAmB;kBA3B/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;GAsBT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCFY,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAjBhB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,WAAW;QACX,qBAAqB;kHAYZ,oBAAoB,YAhBtB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,qBAAqB;YACrB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAEU,oBAAoB;kBAlBhC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,qBAAqB;wBACrB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;iBACF;;;AC1BD;;;;;;"}
@@ -0,0 +1,134 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, Directive, Input, NgModule } from '@angular/core';
3
+ import * as i3 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@ngx-formly/core';
6
+ import { FieldWrapper, ɵFormlyAttributes, FormlyModule } from '@ngx-formly/core';
7
+ import { ReactiveFormsModule } from '@angular/forms';
8
+ import * as i1 from '@ionic/angular';
9
+ import { IonicModule } from '@ionic/angular';
10
+
11
+ class FormlyWrapperFormField extends FieldWrapper {
12
+ }
13
+ FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
14
+ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyWrapperFormField, selector: "formly-wrapper-ion-form-field", usesInheritance: true, ngImport: i0, template: `
15
+ <ion-item [lines]="to.itemLines">
16
+ <ion-label [position]="to.labelPosition">
17
+ {{ to.label }}
18
+ <span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true">*</span>
19
+ </ion-label>
20
+ <ng-template #fieldComponent></ng-template>
21
+ </ion-item>
22
+ <ion-item lines="none" *ngIf="showError">
23
+ <ion-label>
24
+ <ion-text color="danger">
25
+ <p>
26
+ <formly-validation-message [field]="field"></formly-validation-message>
27
+ </p>
28
+ </ion-text>
29
+ </ion-label>
30
+ </ion-item>
31
+ `, isInline: true, components: [{ type: i1.IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { type: i1.IonText, selector: "ion-text", inputs: ["color", "mode"] }, { type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
33
+ type: Component,
34
+ args: [{
35
+ selector: 'formly-wrapper-ion-form-field',
36
+ template: `
37
+ <ion-item [lines]="to.itemLines">
38
+ <ion-label [position]="to.labelPosition">
39
+ {{ to.label }}
40
+ <span *ngIf="to.required && to.hideRequiredMarker !== true" aria-hidden="true">*</span>
41
+ </ion-label>
42
+ <ng-template #fieldComponent></ng-template>
43
+ </ion-item>
44
+ <ion-item lines="none" *ngIf="showError">
45
+ <ion-label>
46
+ <ion-text color="danger">
47
+ <p>
48
+ <formly-validation-message [field]="field"></formly-validation-message>
49
+ </p>
50
+ </ion-text>
51
+ </ion-label>
52
+ </ion-item>
53
+ `,
54
+ changeDetection: ChangeDetectionStrategy.OnPush,
55
+ }]
56
+ }] });
57
+
58
+ class IonFormlyAttributes extends ɵFormlyAttributes {
59
+ focusElement(element, value) {
60
+ if (!element.setFocus || !value) {
61
+ return;
62
+ }
63
+ if (!element.getInputElement()) {
64
+ setTimeout(() => element.setFocus(), 300);
65
+ }
66
+ else {
67
+ element.setFocus();
68
+ }
69
+ }
70
+ }
71
+ IonFormlyAttributes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: IonFormlyAttributes, deps: null, target: i0.ɵɵFactoryTarget.Directive });
72
+ IonFormlyAttributes.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.2", type: IonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: { field: ["ionFormlyAttributes", "field"] }, host: { listeners: { "ionFocus": "onFocus($event)", "ionBlur": "onBlur($event)", "ionChange": "onChange($event)" } }, usesInheritance: true, ngImport: i0 });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: IonFormlyAttributes, decorators: [{
74
+ type: Directive,
75
+ args: [{
76
+ // eslint-disable-next-line
77
+ selector: '[ionFormlyAttributes]',
78
+ host: {
79
+ '(ionFocus)': 'onFocus($event)',
80
+ '(ionBlur)': 'onBlur($event)',
81
+ '(ionChange)': 'onChange($event)',
82
+ },
83
+ }]
84
+ }], propDecorators: { field: [{
85
+ type: Input,
86
+ args: ['ionFormlyAttributes']
87
+ }] } });
88
+
89
+ class FormlyFormFieldModule {
90
+ }
91
+ FormlyFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
92
+ FormlyFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, declarations: [FormlyWrapperFormField, IonFormlyAttributes], imports: [CommonModule,
93
+ ReactiveFormsModule,
94
+ IonicModule, i2.FormlyModule], exports: [IonFormlyAttributes] });
95
+ FormlyFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, imports: [[
96
+ CommonModule,
97
+ ReactiveFormsModule,
98
+ IonicModule,
99
+ FormlyModule.forChild({
100
+ wrappers: [
101
+ {
102
+ name: 'form-field',
103
+ component: FormlyWrapperFormField,
104
+ },
105
+ ],
106
+ }),
107
+ ]] });
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFormFieldModule, decorators: [{
109
+ type: NgModule,
110
+ args: [{
111
+ declarations: [FormlyWrapperFormField, IonFormlyAttributes],
112
+ exports: [IonFormlyAttributes],
113
+ imports: [
114
+ CommonModule,
115
+ ReactiveFormsModule,
116
+ IonicModule,
117
+ FormlyModule.forChild({
118
+ wrappers: [
119
+ {
120
+ name: 'form-field',
121
+ component: FormlyWrapperFormField,
122
+ },
123
+ ],
124
+ }),
125
+ ],
126
+ }]
127
+ }] });
128
+
129
+ /**
130
+ * Generated bundle index. Do not edit.
131
+ */
132
+
133
+ export { FormlyFormFieldModule, IonFormlyAttributes as ɵIonFormlyAttributes };
134
+ //# sourceMappingURL=ngx-formly-ionic-form-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-ionic-form-field.mjs","sources":["../../../../src/ui/ionic/form-field/src/form-field.wrapper.ts","../../../../src/ui/ionic/form-field/src/formly.attributes.ts","../../../../src/ui/ionic/form-field/src/form-field.module.ts","../../../../src/ui/ionic/form-field/src/ngx-formly-ionic-form-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-wrapper-ion-form-field',\n template: `\n <ion-item [lines]=\"to.itemLines\">\n <ion-label [position]=\"to.labelPosition\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" aria-hidden=\"true\">*</span>\n </ion-label>\n <ng-template #fieldComponent></ng-template>\n </ion-item>\n <ion-item lines=\"none\" *ngIf=\"showError\">\n <ion-label>\n <ion-text color=\"danger\">\n <p>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </p>\n </ion-text>\n </ion-label>\n </ion-item>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyWrapperFormField extends FieldWrapper {}\n","import { Directive, Input } from '@angular/core';\nimport { ɵFormlyAttributes as FormlyAttributes, FormlyFieldConfig } from '@ngx-formly/core';\n\n@Directive({\n // eslint-disable-next-line\n selector: '[ionFormlyAttributes]',\n host: {\n '(ionFocus)': 'onFocus($event)',\n '(ionBlur)': 'onBlur($event)',\n '(ionChange)': 'onChange($event)',\n },\n})\nexport class IonFormlyAttributes extends FormlyAttributes {\n @Input('ionFormlyAttributes') field: FormlyFieldConfig;\n\n focusElement(element, value: boolean) {\n if (!element.setFocus || !value) {\n return;\n }\n\n if (!element.getInputElement()) {\n setTimeout(() => element.setFocus(), 300);\n } else {\n element.setFocus();\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { IonicModule } from '@ionic/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\nimport { IonFormlyAttributes } from './formly.attributes';\n\n@NgModule({\n declarations: [FormlyWrapperFormField, IonFormlyAttributes],\n exports: [IonFormlyAttributes],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n IonicModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n})\nexport class FormlyFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["FormlyAttributes"],"mappings":";;;;;;;;;;MAyBa,sBAAuB,SAAQ,YAAY;;mHAA3C,sBAAsB;uGAAtB,sBAAsB,4FApBvB;;;;;;;;;;;;;;;;;GAiBT;2FAGU,sBAAsB;kBAtBlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,+BAA+B;oBACzC,QAAQ,EAAE;;;;;;;;;;;;;;;;;GAiBT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCZY,mBAAoB,SAAQA,iBAAgB;IAGvD,YAAY,CAAC,OAAO,EAAE,KAAc;QAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,KAAK,EAAE;YAC/B,OAAO;SACR;QAED,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE;YAC9B,UAAU,CAAC,MAAM,OAAO,CAAC,QAAQ,EAAE,EAAE,GAAG,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,CAAC,QAAQ,EAAE,CAAC;SACpB;KACF;;gHAbU,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAT/B,SAAS;mBAAC;;oBAET,QAAQ,EAAE,uBAAuB;oBACjC,IAAI,EAAE;wBACJ,YAAY,EAAE,iBAAiB;wBAC/B,WAAW,EAAE,gBAAgB;wBAC7B,aAAa,EAAE,kBAAkB;qBAClC;iBACF;8BAE+B,KAAK;sBAAlC,KAAK;uBAAC,qBAAqB;;;MCajB,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAjBjB,sBAAsB,EAAE,mBAAmB,aAGxD,YAAY;QACZ,mBAAmB;QACnB,WAAW,8BAJH,mBAAmB;mHAgBlB,qBAAqB,YAfvB;YACP,YAAY;YACZ,mBAAmB;YACnB,WAAW;YAEX,YAAY,CAAC,QAAQ,CAAC;gBACpB,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,sBAAsB;qBAClC;iBACF;aACF,CAAC;SACH;2FAEU,qBAAqB;kBAlBjC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;oBAC3D,OAAO,EAAE,CAAC,mBAAmB,CAAC;oBAC9B,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBAEX,YAAY,CAAC,QAAQ,CAAC;4BACpB,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,sBAAsB;iCAClC;6BACF;yBACF,CAAC;qBACH;iBACF;;;ACzBD;;;;;;"}