@ngx-formly/ionic 6.0.0-next.5 → 6.0.0-next.8

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