@tft/crispr-forms 14.0.1-rc.0 → 14.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/esm2020/public-api.mjs +5 -0
  2. package/esm2020/src/index.mjs +2 -0
  3. package/esm2020/src/lib/crispr-forms.module.mjs +57 -0
  4. package/esm2020/src/lib/field-component-map.const.mjs +27 -0
  5. package/esm2020/src/lib/field.directive.mjs +69 -0
  6. package/esm2020/src/lib/form/form.component.mjs +63 -0
  7. package/esm2020/src/lib/form-group-list/form-group-list.component.mjs +93 -0
  8. package/esm2020/src/lib/form-group-list/index.mjs +2 -0
  9. package/esm2020/{lib → src/lib}/pipes/crispr-pipes.module.mjs +1 -1
  10. package/esm2020/src/lib/pipes/initial-control-value.pipe.mjs +21 -0
  11. package/esm2020/src/lib/public_api.mjs +3 -0
  12. package/esm2020/src/lib/sub-group/index.mjs +3 -0
  13. package/esm2020/src/lib/sub-group/sub-group.component.mjs +21 -0
  14. package/esm2020/src/lib/sub-group/sub-group.module.mjs +42 -0
  15. package/esm2020/tft-crispr-forms.mjs +2 -2
  16. package/esm2020/ui/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +130 -0
  17. package/esm2020/ui/autocomplete-chiplist-field/public-api.mjs +2 -0
  18. package/esm2020/ui/autocomplete-chiplist-field/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +5 -0
  19. package/esm2020/ui/autocomplete-field/autocomplete-field.component.mjs +93 -0
  20. package/esm2020/ui/autocomplete-field/public-api.mjs +2 -0
  21. package/esm2020/ui/autocomplete-field/tft-crispr-forms-ui-autocomplete-field.mjs +5 -0
  22. package/esm2020/ui/button/button.component.mjs +49 -0
  23. package/esm2020/ui/button/public-api.mjs +2 -0
  24. package/esm2020/ui/button/tft-crispr-forms-ui-button.mjs +5 -0
  25. package/esm2020/ui/checkbox-field/checkbox-field.component.mjs +42 -0
  26. package/esm2020/ui/checkbox-field/public-api.mjs +2 -0
  27. package/esm2020/ui/checkbox-field/tft-crispr-forms-ui-checkbox-field.mjs +5 -0
  28. package/esm2020/ui/datepicker-field/datepicker-field.component.mjs +63 -0
  29. package/esm2020/ui/datepicker-field/public-api.mjs +2 -0
  30. package/esm2020/ui/datepicker-field/tft-crispr-forms-ui-datepicker-field.mjs +5 -0
  31. package/esm2020/ui/divider/divider.component.mjs +28 -0
  32. package/esm2020/ui/divider/public-api.mjs +2 -0
  33. package/esm2020/ui/divider/tft-crispr-forms-ui-divider.mjs +5 -0
  34. package/esm2020/ui/field-container/field-container.component.mjs +58 -0
  35. package/esm2020/ui/field-container/public-api.mjs +2 -0
  36. package/esm2020/ui/field-container/tft-crispr-forms-ui-field-container.mjs +5 -0
  37. package/esm2020/ui/file-dropzone/file-dropzone.directive.mjs +40 -0
  38. package/esm2020/ui/file-dropzone/public-api.mjs +2 -0
  39. package/esm2020/ui/file-dropzone/tft-crispr-forms-ui-file-dropzone.mjs +5 -0
  40. package/esm2020/ui/file-upload-field/file-upload-field.component.mjs +108 -0
  41. package/esm2020/ui/file-upload-field/public-api.mjs +2 -0
  42. package/esm2020/ui/file-upload-field/tft-crispr-forms-ui-file-upload-field.mjs +5 -0
  43. package/esm2020/ui/heading/heading.component.mjs +31 -0
  44. package/esm2020/ui/heading/public-api.mjs +2 -0
  45. package/esm2020/ui/heading/tft-crispr-forms-ui-heading.mjs +5 -0
  46. package/esm2020/ui/image-upload-field/image-upload-field.component.mjs +179 -0
  47. package/esm2020/ui/image-upload-field/public-api.mjs +2 -0
  48. package/esm2020/ui/image-upload-field/tft-crispr-forms-ui-image-upload-field.mjs +5 -0
  49. package/esm2020/ui/info/info.component.mjs +23 -0
  50. package/esm2020/ui/info/public-api.mjs +2 -0
  51. package/esm2020/ui/info/tft-crispr-forms-ui-info.mjs +5 -0
  52. package/esm2020/ui/input-field/input-field.component.mjs +41 -0
  53. package/esm2020/ui/input-field/public-api.mjs +2 -0
  54. package/esm2020/ui/input-field/tft-crispr-forms-ui-input-field.mjs +5 -0
  55. package/esm2020/ui/option/option.component.mjs +19 -0
  56. package/esm2020/ui/option/public-api.mjs +2 -0
  57. package/esm2020/ui/option/tft-crispr-forms-ui-option.mjs +5 -0
  58. package/esm2020/ui/public-api.mjs +7 -0
  59. package/esm2020/ui/radio-field/public-api.mjs +2 -0
  60. package/esm2020/ui/radio-field/radio-field.component.mjs +39 -0
  61. package/esm2020/ui/radio-field/tft-crispr-forms-ui-radio-field.mjs +5 -0
  62. package/esm2020/ui/select-field/public-api.mjs +2 -0
  63. package/esm2020/ui/select-field/select-field.component.mjs +73 -0
  64. package/esm2020/ui/select-field/tft-crispr-forms-ui-select-field.mjs +5 -0
  65. package/esm2020/ui/selected-file/public-api.mjs +2 -0
  66. package/esm2020/ui/selected-file/selected-file.component.mjs +26 -0
  67. package/esm2020/ui/selected-file/tft-crispr-forms-ui-selected-file.mjs +5 -0
  68. package/esm2020/ui/slider-field/public-api.mjs +2 -0
  69. package/esm2020/ui/slider-field/slider-field.component.mjs +44 -0
  70. package/esm2020/ui/slider-field/tft-crispr-forms-ui-slider-field.mjs +5 -0
  71. package/esm2020/ui/textarea-field/public-api.mjs +2 -0
  72. package/esm2020/ui/textarea-field/textarea-field.component.mjs +42 -0
  73. package/esm2020/ui/textarea-field/tft-crispr-forms-ui-textarea-field.mjs +5 -0
  74. package/esm2020/ui/tft-crispr-forms-ui.mjs +5 -0
  75. package/esm2020/ui/unit-conversion-field/public-api.mjs +2 -0
  76. package/esm2020/ui/unit-conversion-field/tft-crispr-forms-ui-unit-conversion-field.mjs +5 -0
  77. package/esm2020/ui/unit-conversion-field/unit-conversion-field.component.mjs +84 -0
  78. package/esm2020/utils/abstracts/autocomplete-field.abstract.mjs +30 -0
  79. package/esm2020/utils/abstracts/crispr-control.mixin.mjs +27 -0
  80. package/esm2020/utils/abstracts/crispr-field.abstract.mjs +20 -0
  81. package/esm2020/utils/abstracts/index.mjs +4 -0
  82. package/esm2020/utils/functions/buildFormGroupFromConfig.mjs +28 -0
  83. package/esm2020/utils/functions/callOptionsIfFunction.mjs +4 -0
  84. package/esm2020/utils/functions/createControlForType.mjs +19 -0
  85. package/esm2020/utils/functions/filterOptionsByLabel.mjs +11 -0
  86. package/esm2020/utils/functions/image-compression.helpers.mjs +50 -0
  87. package/esm2020/utils/functions/index.mjs +8 -0
  88. package/esm2020/utils/functions/isControlConfig.mjs +7 -0
  89. package/esm2020/utils/functions/observablifyOptions.mjs +29 -0
  90. package/esm2020/utils/models/autocomplete-chiplist-field.config.mjs +2 -0
  91. package/esm2020/utils/models/autocomplete-field.config.mjs +2 -0
  92. package/esm2020/utils/models/button.config.mjs +2 -0
  93. package/esm2020/utils/models/checkbox-field.config.mjs +2 -0
  94. package/esm2020/utils/models/crispr-field.config.mjs +23 -0
  95. package/esm2020/utils/models/datepicker-field.config.mjs +2 -0
  96. package/esm2020/utils/models/divider.config.mjs +2 -0
  97. package/esm2020/utils/models/file-upload-field.config.mjs +2 -0
  98. package/esm2020/utils/models/form-group-list.config.mjs +2 -0
  99. package/esm2020/utils/models/heading.config.mjs +3 -0
  100. package/esm2020/utils/models/image-upload-field.config.mjs +2 -0
  101. package/esm2020/utils/models/index.mjs +18 -0
  102. package/esm2020/utils/models/input-field.config.mjs +2 -0
  103. package/esm2020/utils/models/radio-field.config.mjs +2 -0
  104. package/esm2020/utils/models/select-field.config.mjs +2 -0
  105. package/esm2020/utils/models/slider-field.config.mjs +2 -0
  106. package/esm2020/utils/models/textarea-field.config.mjs +2 -0
  107. package/esm2020/utils/models/unit-conversion-field.config.mjs +2 -0
  108. package/esm2020/utils/operators/form.operators.mjs +24 -0
  109. package/esm2020/utils/operators/index.mjs +2 -0
  110. package/esm2020/utils/public-api.mjs +5 -0
  111. package/esm2020/utils/tft-crispr-forms-utils.mjs +5 -0
  112. package/fesm2015/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +138 -0
  113. package/fesm2015/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +1 -0
  114. package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs +101 -0
  115. package/fesm2015/tft-crispr-forms-ui-autocomplete-field.mjs.map +1 -0
  116. package/fesm2015/tft-crispr-forms-ui-button.mjs +55 -0
  117. package/fesm2015/tft-crispr-forms-ui-button.mjs.map +1 -0
  118. package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs +49 -0
  119. package/fesm2015/tft-crispr-forms-ui-checkbox-field.mjs.map +1 -0
  120. package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs +71 -0
  121. package/fesm2015/tft-crispr-forms-ui-datepicker-field.mjs.map +1 -0
  122. package/fesm2015/tft-crispr-forms-ui-divider.mjs +34 -0
  123. package/fesm2015/tft-crispr-forms-ui-divider.mjs.map +1 -0
  124. package/fesm2015/tft-crispr-forms-ui-field-container.mjs +64 -0
  125. package/fesm2015/tft-crispr-forms-ui-field-container.mjs.map +1 -0
  126. package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs +47 -0
  127. package/fesm2015/tft-crispr-forms-ui-file-dropzone.mjs.map +1 -0
  128. package/fesm2015/tft-crispr-forms-ui-file-upload-field.mjs +117 -0
  129. package/fesm2015/tft-crispr-forms-ui-file-upload-field.mjs.map +1 -0
  130. package/fesm2015/tft-crispr-forms-ui-heading.mjs +37 -0
  131. package/fesm2015/tft-crispr-forms-ui-heading.mjs.map +1 -0
  132. package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs +182 -0
  133. package/fesm2015/tft-crispr-forms-ui-image-upload-field.mjs.map +1 -0
  134. package/fesm2015/tft-crispr-forms-ui-info.mjs +30 -0
  135. package/fesm2015/tft-crispr-forms-ui-info.mjs.map +1 -0
  136. package/fesm2015/tft-crispr-forms-ui-input-field.mjs +48 -0
  137. package/fesm2015/tft-crispr-forms-ui-input-field.mjs.map +1 -0
  138. package/fesm2015/tft-crispr-forms-ui-option.mjs +26 -0
  139. package/fesm2015/tft-crispr-forms-ui-option.mjs.map +1 -0
  140. package/fesm2015/tft-crispr-forms-ui-radio-field.mjs +46 -0
  141. package/fesm2015/tft-crispr-forms-ui-radio-field.mjs.map +1 -0
  142. package/fesm2015/tft-crispr-forms-ui-select-field.mjs +81 -0
  143. package/fesm2015/tft-crispr-forms-ui-select-field.mjs.map +1 -0
  144. package/fesm2015/tft-crispr-forms-ui-selected-file.mjs +33 -0
  145. package/fesm2015/tft-crispr-forms-ui-selected-file.mjs.map +1 -0
  146. package/fesm2015/tft-crispr-forms-ui-slider-field.mjs +51 -0
  147. package/fesm2015/tft-crispr-forms-ui-slider-field.mjs.map +1 -0
  148. package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs +49 -0
  149. package/fesm2015/tft-crispr-forms-ui-textarea-field.mjs.map +1 -0
  150. package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs +93 -0
  151. package/fesm2015/tft-crispr-forms-ui-unit-conversion-field.mjs.map +1 -0
  152. package/fesm2015/tft-crispr-forms-ui.mjs +12 -0
  153. package/fesm2015/tft-crispr-forms-ui.mjs.map +1 -0
  154. package/fesm2015/tft-crispr-forms-utils.mjs +270 -0
  155. package/fesm2015/tft-crispr-forms-utils.mjs.map +1 -0
  156. package/fesm2015/tft-crispr-forms.mjs +131 -2128
  157. package/fesm2015/tft-crispr-forms.mjs.map +1 -1
  158. package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs +137 -0
  159. package/fesm2020/tft-crispr-forms-ui-autocomplete-chiplist-field.mjs.map +1 -0
  160. package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs +100 -0
  161. package/fesm2020/tft-crispr-forms-ui-autocomplete-field.mjs.map +1 -0
  162. package/fesm2020/tft-crispr-forms-ui-button.mjs +55 -0
  163. package/fesm2020/tft-crispr-forms-ui-button.mjs.map +1 -0
  164. package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs +49 -0
  165. package/fesm2020/tft-crispr-forms-ui-checkbox-field.mjs.map +1 -0
  166. package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs +70 -0
  167. package/fesm2020/tft-crispr-forms-ui-datepicker-field.mjs.map +1 -0
  168. package/fesm2020/tft-crispr-forms-ui-divider.mjs +34 -0
  169. package/fesm2020/tft-crispr-forms-ui-divider.mjs.map +1 -0
  170. package/fesm2020/tft-crispr-forms-ui-field-container.mjs +65 -0
  171. package/fesm2020/tft-crispr-forms-ui-field-container.mjs.map +1 -0
  172. package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs +47 -0
  173. package/fesm2020/tft-crispr-forms-ui-file-dropzone.mjs.map +1 -0
  174. package/fesm2020/tft-crispr-forms-ui-file-upload-field.mjs +115 -0
  175. package/fesm2020/tft-crispr-forms-ui-file-upload-field.mjs.map +1 -0
  176. package/fesm2020/tft-crispr-forms-ui-heading.mjs +37 -0
  177. package/fesm2020/tft-crispr-forms-ui-heading.mjs.map +1 -0
  178. package/fesm2020/tft-crispr-forms-ui-image-upload-field.mjs +185 -0
  179. package/fesm2020/tft-crispr-forms-ui-image-upload-field.mjs.map +1 -0
  180. package/fesm2020/tft-crispr-forms-ui-info.mjs +30 -0
  181. package/fesm2020/tft-crispr-forms-ui-info.mjs.map +1 -0
  182. package/fesm2020/tft-crispr-forms-ui-input-field.mjs +48 -0
  183. package/fesm2020/tft-crispr-forms-ui-input-field.mjs.map +1 -0
  184. package/fesm2020/tft-crispr-forms-ui-option.mjs +26 -0
  185. package/fesm2020/tft-crispr-forms-ui-option.mjs.map +1 -0
  186. package/fesm2020/tft-crispr-forms-ui-radio-field.mjs +46 -0
  187. package/fesm2020/tft-crispr-forms-ui-radio-field.mjs.map +1 -0
  188. package/fesm2020/tft-crispr-forms-ui-select-field.mjs +80 -0
  189. package/fesm2020/tft-crispr-forms-ui-select-field.mjs.map +1 -0
  190. package/fesm2020/tft-crispr-forms-ui-selected-file.mjs +33 -0
  191. package/fesm2020/tft-crispr-forms-ui-selected-file.mjs.map +1 -0
  192. package/fesm2020/tft-crispr-forms-ui-slider-field.mjs +51 -0
  193. package/fesm2020/tft-crispr-forms-ui-slider-field.mjs.map +1 -0
  194. package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs +49 -0
  195. package/fesm2020/tft-crispr-forms-ui-textarea-field.mjs.map +1 -0
  196. package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs +91 -0
  197. package/fesm2020/tft-crispr-forms-ui-unit-conversion-field.mjs.map +1 -0
  198. package/fesm2020/tft-crispr-forms-ui.mjs +12 -0
  199. package/fesm2020/tft-crispr-forms-ui.mjs.map +1 -0
  200. package/fesm2020/tft-crispr-forms-utils.mjs +269 -0
  201. package/fesm2020/tft-crispr-forms-utils.mjs.map +1 -0
  202. package/fesm2020/tft-crispr-forms.mjs +129 -2119
  203. package/fesm2020/tft-crispr-forms.mjs.map +1 -1
  204. package/index.d.ts +5 -1
  205. package/package.json +179 -4
  206. package/public-api.d.ts +3 -0
  207. package/src/index.d.ts +1 -0
  208. package/src/lib/crispr-forms.module.d.ts +15 -0
  209. package/src/lib/field-component-map.const.d.ts +42 -0
  210. package/{lib → src/lib}/field.directive.d.ts +4 -10
  211. package/{lib → src/lib}/form/form.component.d.ts +2 -12
  212. package/{lib → src/lib}/form-group-list/form-group-list.component.d.ts +12 -14
  213. package/{lib → src/lib}/form-group-list/index.d.ts +0 -1
  214. package/{lib → src/lib}/pipes/crispr-pipes.module.d.ts +0 -0
  215. package/{lib → src/lib}/pipes/initial-control-value.pipe.d.ts +1 -1
  216. package/src/lib/public_api.d.ts +2 -0
  217. package/{lib → src/lib}/sub-group/index.d.ts +0 -0
  218. package/{lib → src/lib}/sub-group/sub-group.component.d.ts +11 -13
  219. package/{lib → src/lib}/sub-group/sub-group.module.d.ts +2 -2
  220. package/tft-crispr-forms-14.0.1.tgz +0 -0
  221. package/ui/README.md +3 -0
  222. package/{lib/material → ui}/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts +2 -18
  223. package/ui/autocomplete-chiplist-field/index.d.ts +5 -0
  224. package/ui/autocomplete-chiplist-field/public-api.d.ts +1 -0
  225. package/{lib/material → ui}/autocomplete-field/autocomplete-field.component.d.ts +2 -16
  226. package/ui/autocomplete-field/index.d.ts +5 -0
  227. package/ui/autocomplete-field/public-api.d.ts +1 -0
  228. package/ui/button/button.component.d.ts +15 -0
  229. package/ui/button/index.d.ts +5 -0
  230. package/ui/button/public-api.d.ts +1 -0
  231. package/ui/checkbox-field/checkbox-field.component.d.ts +21 -0
  232. package/ui/checkbox-field/index.d.ts +5 -0
  233. package/ui/checkbox-field/public-api.d.ts +1 -0
  234. package/ui/datepicker-field/datepicker-field.component.d.ts +30 -0
  235. package/ui/datepicker-field/index.d.ts +5 -0
  236. package/ui/datepicker-field/public-api.d.ts +1 -0
  237. package/ui/divider/divider.component.d.ts +9 -0
  238. package/ui/divider/index.d.ts +5 -0
  239. package/ui/divider/public-api.d.ts +1 -0
  240. package/{lib → ui}/field-container/field-container.component.d.ts +2 -9
  241. package/ui/field-container/index.d.ts +5 -0
  242. package/{lib/field-container/index.d.ts → ui/field-container/public-api.d.ts} +0 -0
  243. package/{lib/material/file-upload → ui/file-dropzone}/file-dropzone.directive.d.ts +1 -1
  244. package/ui/file-dropzone/index.d.ts +5 -0
  245. package/{lib/material/file-upload/index.d.ts → ui/file-dropzone/public-api.d.ts} +0 -1
  246. package/ui/file-upload-field/file-upload-field.component.d.ts +37 -0
  247. package/ui/file-upload-field/index.d.ts +5 -0
  248. package/ui/file-upload-field/public-api.d.ts +1 -0
  249. package/ui/heading/heading.component.d.ts +8 -0
  250. package/ui/heading/index.d.ts +5 -0
  251. package/ui/heading/public-api.d.ts +1 -0
  252. package/ui/image-upload-field/image-upload-field.component.d.ts +48 -0
  253. package/ui/image-upload-field/index.d.ts +5 -0
  254. package/{lib/material/image-upload-field/index.d.ts → ui/image-upload-field/public-api.d.ts} +0 -0
  255. package/ui/index.d.ts +5 -0
  256. package/ui/info/index.d.ts +5 -0
  257. package/ui/info/info.component.d.ts +7 -0
  258. package/ui/info/public-api.d.ts +1 -0
  259. package/ui/input-field/index.d.ts +5 -0
  260. package/ui/input-field/input-field.component.d.ts +22 -0
  261. package/ui/input-field/public-api.d.ts +1 -0
  262. package/ui/option/index.d.ts +5 -0
  263. package/ui/option/option.component.d.ts +7 -0
  264. package/{lib/material/option/index.d.ts → ui/option/public-api.d.ts} +0 -0
  265. package/ui/public-api.d.ts +5 -0
  266. package/ui/radio-field/index.d.ts +5 -0
  267. package/ui/radio-field/public-api.d.ts +1 -0
  268. package/ui/radio-field/radio-field.component.d.ts +23 -0
  269. package/ui/select-field/index.d.ts +5 -0
  270. package/ui/select-field/public-api.d.ts +1 -0
  271. package/ui/select-field/select-field.component.d.ts +32 -0
  272. package/ui/selected-file/index.d.ts +5 -0
  273. package/ui/selected-file/public-api.d.ts +1 -0
  274. package/ui/selected-file/selected-file.component.d.ts +10 -0
  275. package/ui/slider-field/index.d.ts +5 -0
  276. package/ui/slider-field/public-api.d.ts +1 -0
  277. package/ui/slider-field/slider-field.component.d.ts +25 -0
  278. package/ui/textarea-field/index.d.ts +5 -0
  279. package/ui/textarea-field/public-api.d.ts +1 -0
  280. package/ui/textarea-field/textarea-field.component.d.ts +21 -0
  281. package/ui/unit-conversion-field/index.d.ts +5 -0
  282. package/ui/unit-conversion-field/public-api.d.ts +1 -0
  283. package/ui/unit-conversion-field/unit-conversion-field.component.d.ts +36 -0
  284. package/utils/README.md +3 -0
  285. package/{lib → utils}/abstracts/autocomplete-field.abstract.d.ts +0 -0
  286. package/{lib → utils}/abstracts/crispr-control.mixin.d.ts +0 -0
  287. package/{lib → utils}/abstracts/crispr-field.abstract.d.ts +1 -1
  288. package/{lib → utils}/abstracts/index.d.ts +0 -0
  289. package/utils/functions/buildFormGroupFromConfig.d.ts +9 -0
  290. package/utils/functions/callOptionsIfFunction.d.ts +3 -0
  291. package/utils/functions/createControlForType.d.ts +9 -0
  292. package/utils/functions/filterOptionsByLabel.d.ts +7 -0
  293. package/utils/functions/image-compression.helpers.d.ts +5 -0
  294. package/utils/functions/index.d.ts +7 -0
  295. package/utils/functions/isControlConfig.d.ts +5 -0
  296. package/utils/functions/observablifyOptions.d.ts +12 -0
  297. package/utils/index.d.ts +5 -0
  298. package/{lib → utils}/models/autocomplete-chiplist-field.config.d.ts +2 -1
  299. package/{lib → utils}/models/autocomplete-field.config.d.ts +1 -2
  300. package/{lib → utils}/models/button.config.d.ts +0 -0
  301. package/{lib → utils}/models/checkbox-field.config.d.ts +1 -2
  302. package/{lib → utils}/models/crispr-field.config.d.ts +1 -10
  303. package/{lib → utils}/models/datepicker-field.config.d.ts +1 -2
  304. package/{lib → utils}/models/divider.config.d.ts +1 -1
  305. package/{lib → utils}/models/file-upload-field.config.d.ts +9 -4
  306. package/{lib → utils}/models/form-group-list.config.d.ts +1 -2
  307. package/{lib → utils}/models/heading.config.d.ts +1 -2
  308. package/{lib → utils}/models/image-upload-field.config.d.ts +2 -1
  309. package/{lib → utils}/models/index.d.ts +0 -0
  310. package/{lib → utils}/models/input-field.config.d.ts +1 -2
  311. package/{lib → utils}/models/radio-field.config.d.ts +0 -0
  312. package/{lib → utils}/models/select-field.config.d.ts +1 -2
  313. package/{lib → utils}/models/slider-field.config.d.ts +1 -2
  314. package/{lib → utils}/models/textarea-field.config.d.ts +1 -2
  315. package/{lib → utils}/models/unit-conversion-field.config.d.ts +1 -2
  316. package/{lib → utils/operators}/form.operators.d.ts +0 -0
  317. package/utils/operators/index.d.ts +1 -0
  318. package/utils/public-api.d.ts +4 -0
  319. package/esm2020/index.mjs +0 -2
  320. package/esm2020/lib/abstracts/autocomplete-field.abstract.mjs +0 -30
  321. package/esm2020/lib/abstracts/crispr-control.mixin.mjs +0 -27
  322. package/esm2020/lib/abstracts/crispr-field.abstract.mjs +0 -17
  323. package/esm2020/lib/abstracts/index.mjs +0 -4
  324. package/esm2020/lib/crispr-forms.module.mjs +0 -65
  325. package/esm2020/lib/field-component-map.const.mjs +0 -28
  326. package/esm2020/lib/field-container/field-container.component.mjs +0 -83
  327. package/esm2020/lib/field-container/index.mjs +0 -2
  328. package/esm2020/lib/field.directive.mjs +0 -88
  329. package/esm2020/lib/form/form.component.mjs +0 -88
  330. package/esm2020/lib/form-group-list/form-group-list.component.mjs +0 -77
  331. package/esm2020/lib/form-group-list/form-group-list.module.mjs +0 -52
  332. package/esm2020/lib/form-group-list/index.mjs +0 -3
  333. package/esm2020/lib/form.helpers.mjs +0 -190
  334. package/esm2020/lib/form.operators.mjs +0 -24
  335. package/esm2020/lib/material/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +0 -165
  336. package/esm2020/lib/material/autocomplete-field/autocomplete-field.component.mjs +0 -124
  337. package/esm2020/lib/material/button/button.component.mjs +0 -70
  338. package/esm2020/lib/material/checkbox-field/checkbox-field.component.mjs +0 -69
  339. package/esm2020/lib/material/datepicker-field/datepicker-field.component.mjs +0 -91
  340. package/esm2020/lib/material/divider/divider.component.mjs +0 -46
  341. package/esm2020/lib/material/file-upload/file-dropzone.directive.mjs +0 -39
  342. package/esm2020/lib/material/file-upload/file-upload.component.mjs +0 -143
  343. package/esm2020/lib/material/file-upload/index.mjs +0 -3
  344. package/esm2020/lib/material/heading/heading.component.mjs +0 -52
  345. package/esm2020/lib/material/image-upload-field/image-compression.helpers.mjs +0 -4
  346. package/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +0 -263
  347. package/esm2020/lib/material/image-upload-field/index.mjs +0 -2
  348. package/esm2020/lib/material/index.mjs +0 -18
  349. package/esm2020/lib/material/info/info.component.mjs +0 -44
  350. package/esm2020/lib/material/input-field/input-field.component.mjs +0 -66
  351. package/esm2020/lib/material/material.module.mjs +0 -96
  352. package/esm2020/lib/material/option/index.mjs +0 -2
  353. package/esm2020/lib/material/option/option.component.mjs +0 -39
  354. package/esm2020/lib/material/radio-field/radio-field.component.mjs +0 -60
  355. package/esm2020/lib/material/select-field/select-field.component.mjs +0 -108
  356. package/esm2020/lib/material/selected-file/selected-file.component.mjs +0 -45
  357. package/esm2020/lib/material/slider-field/slider-field.component.mjs +0 -69
  358. package/esm2020/lib/material/textarea-field/textarea-field.component.mjs +0 -67
  359. package/esm2020/lib/material/unit-conversion-field/unit-conversion-field.component.mjs +0 -115
  360. package/esm2020/lib/models/autocomplete-chiplist-field.config.mjs +0 -2
  361. package/esm2020/lib/models/autocomplete-field.config.mjs +0 -2
  362. package/esm2020/lib/models/button.config.mjs +0 -2
  363. package/esm2020/lib/models/checkbox-field.config.mjs +0 -2
  364. package/esm2020/lib/models/crispr-field.config.mjs +0 -23
  365. package/esm2020/lib/models/datepicker-field.config.mjs +0 -2
  366. package/esm2020/lib/models/divider.config.mjs +0 -2
  367. package/esm2020/lib/models/file-upload-field.config.mjs +0 -2
  368. package/esm2020/lib/models/form-group-list.config.mjs +0 -2
  369. package/esm2020/lib/models/heading.config.mjs +0 -3
  370. package/esm2020/lib/models/image-upload-field.config.mjs +0 -2
  371. package/esm2020/lib/models/index.mjs +0 -18
  372. package/esm2020/lib/models/input-field.config.mjs +0 -2
  373. package/esm2020/lib/models/radio-field.config.mjs +0 -2
  374. package/esm2020/lib/models/select-field.config.mjs +0 -2
  375. package/esm2020/lib/models/slider-field.config.mjs +0 -2
  376. package/esm2020/lib/models/textarea-field.config.mjs +0 -2
  377. package/esm2020/lib/models/unit-conversion-field.config.mjs +0 -2
  378. package/esm2020/lib/pipes/initial-control-value.pipe.mjs +0 -20
  379. package/esm2020/lib/public_api.mjs +0 -10
  380. package/esm2020/lib/sub-group/index.mjs +0 -3
  381. package/esm2020/lib/sub-group/sub-group.component.mjs +0 -20
  382. package/esm2020/lib/sub-group/sub-group.module.mjs +0 -43
  383. package/lib/crispr-forms.module.d.ts +0 -16
  384. package/lib/field-component-map.const.d.ts +0 -28
  385. package/lib/form-group-list/form-group-list.module.d.ts +0 -15
  386. package/lib/form.helpers.d.ts +0 -88
  387. package/lib/material/button/button.component.d.ts +0 -26
  388. package/lib/material/checkbox-field/checkbox-field.component.d.ts +0 -34
  389. package/lib/material/datepicker-field/datepicker-field.component.d.ts +0 -45
  390. package/lib/material/divider/divider.component.d.ts +0 -17
  391. package/lib/material/file-upload/file-upload.component.d.ts +0 -54
  392. package/lib/material/heading/heading.component.d.ts +0 -17
  393. package/lib/material/image-upload-field/image-compression.helpers.d.ts +0 -1
  394. package/lib/material/image-upload-field/image-upload-field.component.d.ts +0 -68
  395. package/lib/material/index.d.ts +0 -17
  396. package/lib/material/info/info.component.d.ts +0 -15
  397. package/lib/material/input-field/input-field.component.d.ts +0 -35
  398. package/lib/material/material.module.d.ts +0 -26
  399. package/lib/material/option/option.component.d.ts +0 -14
  400. package/lib/material/radio-field/radio-field.component.d.ts +0 -35
  401. package/lib/material/select-field/select-field.component.d.ts +0 -48
  402. package/lib/material/selected-file/selected-file.component.d.ts +0 -17
  403. package/lib/material/slider-field/slider-field.component.d.ts +0 -38
  404. package/lib/material/textarea-field/textarea-field.component.d.ts +0 -35
  405. package/lib/material/unit-conversion-field/unit-conversion-field.component.d.ts +0 -52
  406. package/lib/public_api.d.ts +0 -9
  407. package/tft-crispr-forms-14.0.1-rc.0.tgz +0 -0
@@ -0,0 +1,30 @@
1
+ import { OnInit, AfterContentInit } from '@angular/core';
2
+ import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
3
+ import { Observable } from 'rxjs';
4
+ import { Portal } from '@angular/cdk/portal';
5
+ import { DatepickerFieldConfig } from '@tft/crispr-forms/utils';
6
+ import * as i0 from "@angular/core";
7
+ declare const DatepickerFieldMixin: new () => {
8
+ config: DatepickerFieldConfig;
9
+ group: import("@angular/forms").FormGroup<any>;
10
+ control: import("@angular/forms").AbstractControl<any, any>;
11
+ _value: any;
12
+ value: any;
13
+ ngOnInit(): void;
14
+ setControlValue(value: any): void;
15
+ defaultConfig?: Partial<DatepickerFieldConfig>;
16
+ applyDefaultConfig(): void;
17
+ };
18
+ export declare class DatepickerFieldComponent extends DatepickerFieldMixin implements OnInit, AfterContentInit {
19
+ defaultConfig: Partial<DatepickerFieldConfig>;
20
+ dateClass: MatCalendarCellClassFunction<Date>;
21
+ dateClass$: Observable<MatCalendarCellClassFunction<Date>>;
22
+ startAt$: Observable<Date>;
23
+ /** A portal containing the footer component type for this calendar. */
24
+ calendarFooterPortal: Portal<any>;
25
+ ngOnInit(): void;
26
+ ngAfterContentInit(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerFieldComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never, true>;
29
+ }
30
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/datepicker-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './datepicker-field.component';
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { CrisprFieldComponent, DividerConfig } from '@tft/crispr-forms/utils';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DividerComponent extends CrisprFieldComponent<DividerConfig> implements OnInit {
5
+ defaultConfig: {};
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never, true>;
9
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/divider" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './divider.component';
@@ -1,10 +1,8 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
- import type { CrisprControlConfig } from '../models';
3
2
  import { Observable, Subscription } from 'rxjs';
4
3
  import { FormGroup } from '@angular/forms';
4
+ import type { CrisprControlConfig } from '@tft/crispr-forms/utils';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "../material/heading/heading.component";
8
6
  export declare class FieldContainerComponent implements OnInit, OnDestroy {
9
7
  config: CrisprControlConfig;
10
8
  group: FormGroup;
@@ -22,10 +20,5 @@ export declare class FieldContainerComponent implements OnInit, OnDestroy {
22
20
  */
23
21
  connectDisabledCallback(group: FormGroup, config?: CrisprControlConfig): Observable<boolean>;
24
22
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"], false>;
26
- }
27
- export declare class FieldContainerModule {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<FieldContainerModule, [typeof FieldContainerComponent], [typeof i1.CommonModule, typeof i2.HeadingModule], [typeof FieldContainerComponent]>;
30
- static ɵinj: i0.ɵɵInjectorDeclaration<FieldContainerModule>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"], true>;
31
24
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/field-container" />
5
+ export * from './public-api';
@@ -6,5 +6,5 @@ export declare class FileDropzoneDirective {
6
6
  onDrop($event: DragEvent): void;
7
7
  onDragOver($event: DragEvent): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzoneDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never, never, false>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never, never, true>;
10
10
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/file-dropzone" />
5
+ export * from './public-api';
@@ -1,2 +1 @@
1
1
  export * from './file-dropzone.directive';
2
- export * from './file-upload.component';
@@ -0,0 +1,37 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { FileUploadFieldConfig } from '@tft/crispr-forms/utils';
5
+ import * as i0 from "@angular/core";
6
+ declare const FileUploadFieldMixin: new () => {
7
+ config: FileUploadFieldConfig;
8
+ group: import("@angular/forms").FormGroup<any>;
9
+ control: import("@angular/forms").AbstractControl<any, any>;
10
+ _value: any;
11
+ value: any;
12
+ ngOnInit(): void;
13
+ setControlValue(value: any): void;
14
+ defaultConfig?: Partial<FileUploadFieldConfig>;
15
+ applyDefaultConfig(): void;
16
+ };
17
+ export declare class FileUploadFieldComponent extends FileUploadFieldMixin implements OnInit, ControlValueAccessor {
18
+ ngControl: NgControl;
19
+ onChange: () => void;
20
+ defaultConfig: Partial<FileUploadFieldConfig>;
21
+ fileInputRef: ElementRef;
22
+ selectedFiles: FileList;
23
+ isUploaded: boolean;
24
+ fileProgress: Observable<number>[];
25
+ disabled$: Observable<boolean>;
26
+ constructor(ngControl: NgControl);
27
+ ngOnInit(): void;
28
+ filesChanged(files: FileList): void;
29
+ uploadFiles(): void;
30
+ resetFileInput(): void;
31
+ writeValue(value: null): void;
32
+ registerOnChange(fn: () => void): void;
33
+ registerOnTouched(fn: () => void): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldComponent, [{ optional: true; self: true; }]>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "crispr-file-upload-field", never, {}, {}, never, never, true>;
36
+ }
37
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/file-upload-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './file-upload-field.component';
@@ -0,0 +1,8 @@
1
+ import { CrisprFieldComponent, HeadingConfig } from '@tft/crispr-forms/utils';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HeadingComponent extends CrisprFieldComponent<HeadingConfig> {
4
+ config: HeadingConfig;
5
+ defaultConfig: Partial<HeadingConfig>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "crispr-heading", never, { "config": "config"; }, {}, never, never, true>;
8
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/heading" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './heading.component';
@@ -0,0 +1,48 @@
1
+ import { ElementRef, OnInit, ChangeDetectorRef } from '@angular/core';
2
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import { Observable } from 'rxjs';
5
+ import { ImageUploadFieldConfig } from '@tft/crispr-forms/utils';
6
+ import * as i0 from "@angular/core";
7
+ declare const ImageUploadFieldMixin: new () => {
8
+ config: ImageUploadFieldConfig;
9
+ group: import("@angular/forms").FormGroup<any>;
10
+ control: import("@angular/forms").AbstractControl<any, any>;
11
+ _value: any;
12
+ value: any;
13
+ ngOnInit(): void;
14
+ setControlValue(value: any): void;
15
+ defaultConfig?: Partial<ImageUploadFieldConfig>;
16
+ applyDefaultConfig(): void;
17
+ };
18
+ export declare class ImageUploadFieldComponent extends ImageUploadFieldMixin implements OnInit, ControlValueAccessor {
19
+ ngControl: NgControl;
20
+ private domSanitizer;
21
+ private cdr;
22
+ onChange: () => void;
23
+ defaultConfig: Partial<ImageUploadFieldConfig>;
24
+ private inputImageFileSubject;
25
+ inputImageFile$: Observable<File>;
26
+ /**
27
+ * the compression progress
28
+ */
29
+ progress: number | undefined;
30
+ compressedFile$: Observable<File>;
31
+ compressedImageUrlString$: Observable<string | null>;
32
+ imageSrcUrl$: Observable<string | null>;
33
+ fileInputRef: ElementRef;
34
+ selectedFiles: FileList;
35
+ isUploaded: boolean;
36
+ disabled$: Observable<boolean>;
37
+ constructor(ngControl: NgControl, domSanitizer: DomSanitizer, cdr: ChangeDetectorRef);
38
+ ngOnInit(): void;
39
+ filesChanged(files: FileList): void;
40
+ clearFileInput(): void;
41
+ resetToInitialValue(initialValue: string): void;
42
+ writeValue(value: null): void;
43
+ registerOnChange(fn: () => void): void;
44
+ registerOnTouched(fn: () => void): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageUploadFieldComponent, [{ optional: true; self: true; }, null, null]>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageUploadFieldComponent, "crispr-image-upload-field", never, {}, {}, never, never, true>;
47
+ }
48
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/image-upload-field" />
5
+ export * from './public-api';
package/ui/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui" />
5
+ export * from './public-api';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/info" />
5
+ export * from './public-api';
@@ -0,0 +1,7 @@
1
+ import type { Info } from '@tft/crispr-forms/utils';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InfoComponent {
4
+ info: Info;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InfoComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "crispr-info", never, { "info": "info"; }, {}, never, never, true>;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './info.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/input-field" />
5
+ export * from './public-api';
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { InputFieldConfig } from '@tft/crispr-forms/utils';
3
+ import * as i0 from "@angular/core";
4
+ declare const InputFieldMixin: new () => {
5
+ config: InputFieldConfig;
6
+ group: import("@angular/forms").FormGroup<any>;
7
+ control: import("@angular/forms").AbstractControl<any, any>;
8
+ _value: any;
9
+ value: any;
10
+ ngOnInit(): void;
11
+ setControlValue(value: any): void;
12
+ defaultConfig?: Partial<InputFieldConfig>;
13
+ applyDefaultConfig(): void;
14
+ };
15
+ export declare class InputFieldComponent extends InputFieldMixin implements OnInit {
16
+ defaultConfig: Partial<InputFieldConfig>;
17
+ constructor();
18
+ ngOnInit(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent, "crispr-input-field", never, {}, {}, never, never, true>;
21
+ }
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from './input-field.component';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/option" />
5
+ export * from './public-api';
@@ -0,0 +1,7 @@
1
+ import { SelectOption } from '@tft/crispr-forms/utils';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OptionComponent {
4
+ option: SelectOption;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "crispr-option", never, { "option": "option"; }, {}, never, never, true>;
7
+ }
@@ -0,0 +1,5 @@
1
+ export * from '@tft/crispr-forms/ui/file-dropzone';
2
+ export * from '@tft/crispr-forms/ui/selected-file';
3
+ export * from '@tft/crispr-forms/ui/field-container';
4
+ export * from '@tft/crispr-forms/ui/heading';
5
+ export * from '@tft/crispr-forms/ui/info';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/radio-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './radio-field.component';
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { RadioFieldConfig, SelectOption } from '@tft/crispr-forms/utils';
4
+ import * as i0 from "@angular/core";
5
+ declare const RadioFieldMixin: new () => {
6
+ config: RadioFieldConfig;
7
+ group: import("@angular/forms").FormGroup<any>;
8
+ control: import("@angular/forms").AbstractControl<any, any>;
9
+ _value: any;
10
+ value: any;
11
+ ngOnInit(): void;
12
+ setControlValue(value: any): void;
13
+ defaultConfig?: Partial<RadioFieldConfig>;
14
+ applyDefaultConfig(): void;
15
+ };
16
+ export declare class RadioFieldComponent extends RadioFieldMixin implements OnInit {
17
+ defaultConfig: {};
18
+ options$: Observable<SelectOption[]>;
19
+ ngOnInit(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioFieldComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioFieldComponent, "crispr-radio-field", never, {}, {}, never, never, true>;
22
+ }
23
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/select-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './select-field.component';
@@ -0,0 +1,32 @@
1
+ import { OnInit, AfterViewInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { MatSelect } from '@angular/material/select';
4
+ import { ThemePalette } from '@angular/material/core';
5
+ import { SelectFieldConfig, SelectOption } from '@tft/crispr-forms/utils';
6
+ import * as i0 from "@angular/core";
7
+ declare const SelectFieldMixin: new () => {
8
+ config: SelectFieldConfig;
9
+ group: import("@angular/forms").FormGroup<any>;
10
+ control: import("@angular/forms").AbstractControl<any, any>;
11
+ _value: any;
12
+ value: any;
13
+ ngOnInit(): void;
14
+ setControlValue(value: any): void;
15
+ defaultConfig?: Partial<SelectFieldConfig>;
16
+ applyDefaultConfig(): void;
17
+ };
18
+ export declare class SelectFieldComponent extends SelectFieldMixin implements OnInit, AfterViewInit {
19
+ defaultConfig: {
20
+ enableToggleAll: boolean;
21
+ color: ThemePalette;
22
+ };
23
+ options$: Observable<SelectOption[]>;
24
+ allSelected: boolean;
25
+ selectField: MatSelect;
26
+ ngOnInit(): void;
27
+ ngAfterViewInit(): void;
28
+ toggleAll(isSelected: boolean): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectFieldComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent, "crispr-select-field", never, {}, {}, never, never, true>;
31
+ }
32
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/selected-file" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './selected-file.component';
@@ -0,0 +1,10 @@
1
+ import { ThemePalette } from '@angular/material/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SelectedFileComponent {
4
+ fileName: string;
5
+ progress: number;
6
+ showProgress: boolean;
7
+ color: ThemePalette;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectedFileComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectedFileComponent, "crispr-selected-file", never, { "fileName": "fileName"; "progress": "progress"; "showProgress": "showProgress"; "color": "color"; }, {}, never, never, true>;
10
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/slider-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './slider-field.component';
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { SliderFieldConfig } from '@tft/crispr-forms/utils';
3
+ import * as i0 from "@angular/core";
4
+ declare const SliderFieldMixin: new () => {
5
+ config: SliderFieldConfig;
6
+ group: import("@angular/forms").FormGroup<any>;
7
+ control: import("@angular/forms").AbstractControl<any, any>;
8
+ _value: any;
9
+ value: any;
10
+ ngOnInit(): void;
11
+ setControlValue(value: any): void;
12
+ defaultConfig?: Partial<SliderFieldConfig>;
13
+ applyDefaultConfig(): void;
14
+ };
15
+ export declare class SliderFieldComponent extends SliderFieldMixin implements OnInit {
16
+ defaultConfig: {
17
+ displayLimits: boolean;
18
+ };
19
+ constructor();
20
+ get flexDirection(): "column" | "row";
21
+ ngOnInit(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SliderFieldComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SliderFieldComponent, "crispr-slider-field", never, {}, {}, never, never, true>;
24
+ }
25
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/textarea-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './textarea-field.component';
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TextareaFieldConfig } from '@tft/crispr-forms/utils';
3
+ import * as i0 from "@angular/core";
4
+ declare const TextareaFieldMixin: new () => {
5
+ config: TextareaFieldConfig;
6
+ group: import("@angular/forms").FormGroup<any>;
7
+ control: import("@angular/forms").AbstractControl<any, any>;
8
+ _value: any;
9
+ value: any;
10
+ ngOnInit(): void;
11
+ setControlValue(value: any): void;
12
+ defaultConfig?: Partial<TextareaFieldConfig>;
13
+ applyDefaultConfig(): void;
14
+ };
15
+ export declare class TextareaFieldComponent extends TextareaFieldMixin implements OnInit {
16
+ defaultConfig: Partial<TextareaFieldConfig>;
17
+ ngOnInit(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "crispr-textarea-field", never, {}, {}, never, never, true>;
20
+ }
21
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@tft/crispr-forms/ui/unit-conversion-field" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './unit-conversion-field.component';
@@ -0,0 +1,36 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { Observable, Subscription } from 'rxjs';
4
+ import { SelectOption, UnitConversionFieldConfig } from '@tft/crispr-forms/utils';
5
+ import * as i0 from "@angular/core";
6
+ declare const UnitConversionFieldMixin: new () => {
7
+ config: UnitConversionFieldConfig<unknown, unknown>;
8
+ group: import("@angular/forms").FormGroup<any>;
9
+ control: import("@angular/forms").AbstractControl<any, any>;
10
+ _value: any;
11
+ value: any;
12
+ ngOnInit(): void;
13
+ setControlValue(value: any): void;
14
+ defaultConfig?: Partial<UnitConversionFieldConfig<unknown, unknown>>;
15
+ applyDefaultConfig(): void;
16
+ };
17
+ export declare class UnitConversionFieldComponent extends UnitConversionFieldMixin implements OnInit, OnDestroy {
18
+ defaultConfig: Partial<UnitConversionFieldConfig<unknown, unknown>>;
19
+ displayValueControl: FormControl<any>;
20
+ unitSelectControl: FormControl<any>;
21
+ unitOptions$: Observable<SelectOption[]>;
22
+ transformationSubscription: Subscription;
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ setInitialDisplayValue(storedValue: any, unit: unknown): void;
26
+ /**
27
+ * We override the 'setControlValue' we inherited from crisprControlMixin and add our custom logic,
28
+ * This function gets called onInit because were object oriented. it's so great, so great that I'm
29
+ * typing a paragraph to explain what the hell is going on...
30
+ * @param value the initial value for the control passed down from the form components input
31
+ */
32
+ setControlValue(value: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<UnitConversionFieldComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<UnitConversionFieldComponent, "crispr-unit-conversion-field", never, {}, {}, never, never, true>;
35
+ }
36
+ export {};
@@ -0,0 +1,3 @@
1
+ # @tft/crispr-forms/utils
2
+
3
+ Secondary entry point of `@tft/crispr-forms`. It can be used by importing from `@tft/crispr-forms/utils`.
@@ -7,5 +7,5 @@ export declare abstract class CrisprFieldComponent<C extends CrisprFieldConfig>
7
7
  ngOnInit(): void;
8
8
  applyDefaultConfig(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldComponent<any>, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, false>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, true>;
11
11
  }
File without changes
@@ -0,0 +1,9 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ import { FormConfig } from "../models";
3
+ /**
4
+ * builds out form group based on config
5
+ * @param config a configuration for a form group
6
+ * @param value an object of initial values to pass in
7
+ * @param group the form group to modify and build out
8
+ */
9
+ export declare function buildFormGroupFromConfig(config: FormConfig, value?: any, group?: FormGroup): FormGroup<any>;
@@ -0,0 +1,3 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ import { AutocompleteOptionsCallback, OptionsType } from "../models";
3
+ export declare function callOptionsIfFunction(options: OptionsType | AutocompleteOptionsCallback, parentGroup?: FormGroup, searchString?: string): OptionsType;
@@ -0,0 +1,9 @@
1
+ import { FormArray, FormControl } from "@angular/forms";
2
+ import { AnyFieldConfig, ControlValue } from "../models";
3
+ /**
4
+ * Analyze the config and build a form control to spec. Notice we don't use FormBuilder here
5
+ * as we want to keep this function pure.
6
+ * @param controlConfig the configuration object for the control to build
7
+ * @param value an initial value to use if passed in
8
+ */
9
+ export declare function createControlForType(controlConfig: AnyFieldConfig, value?: ControlValue): import("@angular/forms").FormGroup<any> | FormArray<any> | FormControl<any>;
@@ -0,0 +1,7 @@
1
+ import { SelectOption } from "../models";
2
+ /**
3
+ * A basic filter function that filters the search string against the label of the options object
4
+ * @param options the array of options to filter
5
+ * @param searchString the string from the input
6
+ */
7
+ export declare function filterOptionsByLabel(options: SelectOption[], searchString: string): SelectOption[];
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from "@angular/forms";
2
+ export declare function convertBytesToMb(bytes: number): number;
3
+ export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
4
+ export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
5
+ export declare function allowedFileType(matchExp: string | RegExp): ValidatorFn;
@@ -0,0 +1,7 @@
1
+ export * from './buildFormGroupFromConfig';
2
+ export * from './callOptionsIfFunction';
3
+ export * from './createControlForType';
4
+ export * from './filterOptionsByLabel';
5
+ export * from './isControlConfig';
6
+ export * from './observablifyOptions';
7
+ export * from './image-compression.helpers';