@impartner/design-components 1.0.0

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 (315) hide show
  1. package/LICENSE.txt +11 -0
  2. package/README.md +22 -0
  3. package/constants/fontawesome-icons.d.ts +6 -0
  4. package/constants/index.d.ts +1 -0
  5. package/esm2020/constants/fontawesome-icons.mjs +3012 -0
  6. package/esm2020/constants/index.mjs +2 -0
  7. package/esm2020/impartner-design-components.mjs +5 -0
  8. package/esm2020/lib/alert/alert.component.mjs +57 -0
  9. package/esm2020/lib/alert/alert.module.mjs +18 -0
  10. package/esm2020/lib/alert/index.mjs +4 -0
  11. package/esm2020/lib/alert/theme/alert-theme.mjs +2 -0
  12. package/esm2020/lib/alert/theme/index.mjs +2 -0
  13. package/esm2020/lib/avatar/avatar.component.mjs +47 -0
  14. package/esm2020/lib/avatar/avatar.module.mjs +18 -0
  15. package/esm2020/lib/avatar/index.mjs +3 -0
  16. package/esm2020/lib/avatar-group/avatar-group.component.mjs +16 -0
  17. package/esm2020/lib/avatar-group/avatar-group.module.mjs +19 -0
  18. package/esm2020/lib/avatar-group/index.mjs +3 -0
  19. package/esm2020/lib/backdrop/backdrop.component.mjs +34 -0
  20. package/esm2020/lib/backdrop/backdrop.module.mjs +19 -0
  21. package/esm2020/lib/backdrop/index.mjs +3 -0
  22. package/esm2020/lib/badge/badge.component.mjs +98 -0
  23. package/esm2020/lib/badge/badge.module.mjs +19 -0
  24. package/esm2020/lib/badge/index.mjs +4 -0
  25. package/esm2020/lib/badge/types/badge-icon.mjs +2 -0
  26. package/esm2020/lib/badge/types/badge-size.mjs +7 -0
  27. package/esm2020/lib/badge/types/index.mjs +2 -0
  28. package/esm2020/lib/branding/branded.directive.mjs +19 -0
  29. package/esm2020/lib/branding/branding.module.mjs +19 -0
  30. package/esm2020/lib/branding/index.mjs +3 -0
  31. package/esm2020/lib/breadcrumb/breadcrumb-item.component.mjs +25 -0
  32. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +33 -0
  33. package/esm2020/lib/breadcrumb/breadcrumb.module.mjs +19 -0
  34. package/esm2020/lib/breadcrumb/index.mjs +4 -0
  35. package/esm2020/lib/button/button.component.mjs +116 -0
  36. package/esm2020/lib/button/button.module.mjs +21 -0
  37. package/esm2020/lib/button/index.mjs +4 -0
  38. package/esm2020/lib/button/themes/button-theme.mjs +2 -0
  39. package/esm2020/lib/button/themes/index.mjs +2 -0
  40. package/esm2020/lib/button-group/button-group.component.mjs +52 -0
  41. package/esm2020/lib/button-group/button-group.module.mjs +20 -0
  42. package/esm2020/lib/button-group/index.mjs +3 -0
  43. package/esm2020/lib/card-heading/card-heading.component.mjs +30 -0
  44. package/esm2020/lib/card-heading/card-heading.module.mjs +19 -0
  45. package/esm2020/lib/card-heading/index.mjs +3 -0
  46. package/esm2020/lib/design-components.module.mjs +119 -0
  47. package/esm2020/lib/dropdown/components/dropdown-item/dropdown-item.component.mjs +22 -0
  48. package/esm2020/lib/dropdown/components/index.mjs +2 -0
  49. package/esm2020/lib/dropdown/dropdown.component.mjs +140 -0
  50. package/esm2020/lib/dropdown/dropdown.module.mjs +21 -0
  51. package/esm2020/lib/dropdown/index.mjs +5 -0
  52. package/esm2020/lib/dropdown/types/dropdown-position.mjs +2 -0
  53. package/esm2020/lib/dropdown/types/index.mjs +2 -0
  54. package/esm2020/lib/file-upload/directives/file-drop.directive.mjs +50 -0
  55. package/esm2020/lib/file-upload/directives/index.mjs +2 -0
  56. package/esm2020/lib/file-upload/file-upload.component.mjs +334 -0
  57. package/esm2020/lib/file-upload/file-upload.module.mjs +29 -0
  58. package/esm2020/lib/file-upload/index.mjs +5 -0
  59. package/esm2020/lib/file-upload/pipes/human-readable-byte-size.pipe.mjs +23 -0
  60. package/esm2020/lib/file-upload/pipes/index.mjs +2 -0
  61. package/esm2020/lib/form-field/controls/checkbox/checkbox.component.mjs +337 -0
  62. package/esm2020/lib/form-field/controls/checkbox/checkbox.module.mjs +19 -0
  63. package/esm2020/lib/form-field/controls/checkbox/index.mjs +3 -0
  64. package/esm2020/lib/form-field/controls/index.mjs +5 -0
  65. package/esm2020/lib/form-field/controls/input/index.mjs +2 -0
  66. package/esm2020/lib/form-field/controls/input/input.directive.mjs +233 -0
  67. package/esm2020/lib/form-field/controls/radio/index.mjs +6 -0
  68. package/esm2020/lib/form-field/controls/radio/injection-tokens.mjs +4 -0
  69. package/esm2020/lib/form-field/controls/radio/interfaces/index.mjs +4 -0
  70. package/esm2020/lib/form-field/controls/radio/interfaces/radio-button.interface.mjs +2 -0
  71. package/esm2020/lib/form-field/controls/radio/interfaces/radio-change-event.interface.mjs +11 -0
  72. package/esm2020/lib/form-field/controls/radio/interfaces/radio-group.interface.mjs +2 -0
  73. package/esm2020/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +260 -0
  74. package/esm2020/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +288 -0
  75. package/esm2020/lib/form-field/controls/radio/radio.module.mjs +20 -0
  76. package/esm2020/lib/form-field/controls/select/index.mjs +6 -0
  77. package/esm2020/lib/form-field/controls/select/option/index.mjs +2 -0
  78. package/esm2020/lib/form-field/controls/select/option/select-option.component.mjs +138 -0
  79. package/esm2020/lib/form-field/controls/select/option-parent.mjs +3 -0
  80. package/esm2020/lib/form-field/controls/select/select-model.mjs +149 -0
  81. package/esm2020/lib/form-field/controls/select/select.component.mjs +522 -0
  82. package/esm2020/lib/form-field/controls/select/select.module.mjs +20 -0
  83. package/esm2020/lib/form-field/controls/shared/index.mjs +2 -0
  84. package/esm2020/lib/form-field/controls/shared/toggle/components/index.mjs +2 -0
  85. package/esm2020/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +17 -0
  86. package/esm2020/lib/form-field/controls/shared/toggle/index.mjs +4 -0
  87. package/esm2020/lib/form-field/controls/shared/toggle/toggle.component.mjs +96 -0
  88. package/esm2020/lib/form-field/controls/shared/toggle/toggle.module.mjs +20 -0
  89. package/esm2020/lib/form-field/directives/corner-hint.directive.mjs +14 -0
  90. package/esm2020/lib/form-field/directives/error.directive.mjs +26 -0
  91. package/esm2020/lib/form-field/directives/form-root.directive.mjs +91 -0
  92. package/esm2020/lib/form-field/directives/hint.directive.mjs +24 -0
  93. package/esm2020/lib/form-field/directives/index.mjs +8 -0
  94. package/esm2020/lib/form-field/directives/label.directive.mjs +14 -0
  95. package/esm2020/lib/form-field/directives/prefix.directive.mjs +24 -0
  96. package/esm2020/lib/form-field/directives/suffix.directive.mjs +24 -0
  97. package/esm2020/lib/form-field/form-field-errors.mjs +5 -0
  98. package/esm2020/lib/form-field/form-field.component.mjs +132 -0
  99. package/esm2020/lib/form-field/impdc-forms.mjs +8 -0
  100. package/esm2020/lib/form-field/impdc-forms.module.mjs +68 -0
  101. package/esm2020/lib/form-field/index.mjs +2 -0
  102. package/esm2020/lib/form-field/services/error-state-matcher.service.mjs +28 -0
  103. package/esm2020/lib/form-field/services/index.mjs +3 -0
  104. package/esm2020/lib/form-field/services/unique-selection-dispatcher.service.mjs +48 -0
  105. package/esm2020/lib/form-field/shared/constructors.type.mjs +2 -0
  106. package/esm2020/lib/form-field/shared/disabled.mixin.mjs +15 -0
  107. package/esm2020/lib/form-field/shared/error-state.mixin.mjs +24 -0
  108. package/esm2020/lib/form-field/shared/form-field-control.mjs +10 -0
  109. package/esm2020/lib/form-field/shared/index.mjs +5 -0
  110. package/esm2020/lib/form-field/shared/tab-index.mixin.mjs +19 -0
  111. package/esm2020/lib/icon/icon.component.mjs +70 -0
  112. package/esm2020/lib/icon/icon.module.mjs +19 -0
  113. package/esm2020/lib/icon/index.mjs +3 -0
  114. package/esm2020/lib/index.mjs +26 -0
  115. package/esm2020/lib/modal/index.mjs +4 -0
  116. package/esm2020/lib/modal/modal.component.mjs +141 -0
  117. package/esm2020/lib/modal/modal.module.mjs +37 -0
  118. package/esm2020/lib/modal/types/index.mjs +3 -0
  119. package/esm2020/lib/modal/types/modal-component-sizes.mjs +9 -0
  120. package/esm2020/lib/modal/types/modal-theme.mjs +12 -0
  121. package/esm2020/lib/pagination/index.mjs +3 -0
  122. package/esm2020/lib/pagination/pagination.component.mjs +134 -0
  123. package/esm2020/lib/pagination/pagination.module.mjs +21 -0
  124. package/esm2020/lib/progress-bar/index.mjs +3 -0
  125. package/esm2020/lib/progress-bar/progress-bar.component.mjs +35 -0
  126. package/esm2020/lib/progress-bar/progress-bar.module.mjs +18 -0
  127. package/esm2020/lib/scrollable/index.mjs +3 -0
  128. package/esm2020/lib/scrollable/scrollable.component.mjs +193 -0
  129. package/esm2020/lib/scrollable/scrollable.module.mjs +21 -0
  130. package/esm2020/lib/select-icon/index.mjs +3 -0
  131. package/esm2020/lib/select-icon/select-icon.component.mjs +307 -0
  132. package/esm2020/lib/select-icon/select-icon.module.mjs +35 -0
  133. package/esm2020/lib/size-detection/directive/element-size.interface.mjs +2 -0
  134. package/esm2020/lib/size-detection/directive/index.mjs +3 -0
  135. package/esm2020/lib/size-detection/directive/size-detector.directive.mjs +43 -0
  136. package/esm2020/lib/size-detection/index.mjs +3 -0
  137. package/esm2020/lib/size-detection/size-detection.module.mjs +18 -0
  138. package/esm2020/lib/spinner/index.mjs +3 -0
  139. package/esm2020/lib/spinner/spinner.component.mjs +24 -0
  140. package/esm2020/lib/spinner/spinner.module.mjs +18 -0
  141. package/esm2020/lib/table/index.mjs +3 -0
  142. package/esm2020/lib/table/table.component.mjs +33 -0
  143. package/esm2020/lib/table/table.module.mjs +19 -0
  144. package/esm2020/lib/text-highlight/index.mjs +3 -0
  145. package/esm2020/lib/text-highlight/text-highlight.component.mjs +81 -0
  146. package/esm2020/lib/text-highlight/text-highlight.module.mjs +19 -0
  147. package/esm2020/public-api.mjs +9 -0
  148. package/esm2020/services/index.mjs +2 -0
  149. package/esm2020/services/interaction.service.mjs +54 -0
  150. package/esm2020/types/component-size.mjs +12 -0
  151. package/esm2020/types/component-theme.mjs +22 -0
  152. package/esm2020/types/index.mjs +3 -0
  153. package/esm2020/utilities/boolean-props.mjs +7 -0
  154. package/esm2020/utilities/dc.mjs +9 -0
  155. package/esm2020/utilities/index.mjs +6 -0
  156. package/esm2020/utilities/lc.mjs +9 -0
  157. package/esm2020/utilities/number-props.mjs +18 -0
  158. package/esm2020/utilities/sanitize.mjs +7 -0
  159. package/fesm2015/impartner-design-components.mjs +8295 -0
  160. package/fesm2015/impartner-design-components.mjs.map +1 -0
  161. package/fesm2020/impartner-design-components.mjs +8264 -0
  162. package/fesm2020/impartner-design-components.mjs.map +1 -0
  163. package/index.d.ts +5 -0
  164. package/lib/alert/alert.component.d.ts +29 -0
  165. package/lib/alert/alert.module.d.ts +8 -0
  166. package/lib/alert/index.d.ts +3 -0
  167. package/lib/alert/theme/alert-theme.d.ts +1 -0
  168. package/lib/alert/theme/index.d.ts +1 -0
  169. package/lib/avatar/avatar.component.d.ts +28 -0
  170. package/lib/avatar/avatar.module.d.ts +8 -0
  171. package/lib/avatar/index.d.ts +2 -0
  172. package/lib/avatar-group/avatar-group.component.d.ts +10 -0
  173. package/lib/avatar-group/avatar-group.module.d.ts +9 -0
  174. package/lib/avatar-group/index.d.ts +2 -0
  175. package/lib/backdrop/backdrop.component.d.ts +19 -0
  176. package/lib/backdrop/backdrop.module.d.ts +9 -0
  177. package/lib/backdrop/index.d.ts +2 -0
  178. package/lib/badge/badge.component.d.ts +48 -0
  179. package/lib/badge/badge.module.d.ts +9 -0
  180. package/lib/badge/index.d.ts +3 -0
  181. package/lib/badge/types/badge-icon.d.ts +1 -0
  182. package/lib/badge/types/badge-size.d.ts +6 -0
  183. package/lib/badge/types/index.d.ts +2 -0
  184. package/lib/branding/branded.directive.d.ts +6 -0
  185. package/lib/branding/branding.module.d.ts +9 -0
  186. package/lib/branding/index.d.ts +2 -0
  187. package/lib/breadcrumb/breadcrumb-item.component.d.ts +7 -0
  188. package/lib/breadcrumb/breadcrumb.component.d.ts +18 -0
  189. package/lib/breadcrumb/breadcrumb.module.d.ts +9 -0
  190. package/lib/breadcrumb/index.d.ts +3 -0
  191. package/lib/button/button.component.d.ts +47 -0
  192. package/lib/button/button.module.d.ts +11 -0
  193. package/lib/button/index.d.ts +3 -0
  194. package/lib/button/themes/button-theme.d.ts +1 -0
  195. package/lib/button/themes/index.d.ts +1 -0
  196. package/lib/button-group/button-group.component.d.ts +22 -0
  197. package/lib/button-group/button-group.module.d.ts +10 -0
  198. package/lib/button-group/index.d.ts +2 -0
  199. package/lib/card-heading/card-heading.component.d.ts +18 -0
  200. package/lib/card-heading/card-heading.module.d.ts +9 -0
  201. package/lib/card-heading/index.d.ts +2 -0
  202. package/lib/design-components.module.d.ts +22 -0
  203. package/lib/dropdown/components/dropdown-item/dropdown-item.component.d.ts +11 -0
  204. package/lib/dropdown/components/index.d.ts +1 -0
  205. package/lib/dropdown/dropdown.component.d.ts +65 -0
  206. package/lib/dropdown/dropdown.module.d.ts +11 -0
  207. package/lib/dropdown/index.d.ts +4 -0
  208. package/lib/dropdown/types/dropdown-position.d.ts +1 -0
  209. package/lib/dropdown/types/index.d.ts +1 -0
  210. package/lib/file-upload/directives/file-drop.directive.d.ts +11 -0
  211. package/lib/file-upload/directives/index.d.ts +1 -0
  212. package/lib/file-upload/file-upload.component.d.ts +105 -0
  213. package/lib/file-upload/file-upload.module.d.ts +13 -0
  214. package/lib/file-upload/index.d.ts +4 -0
  215. package/lib/file-upload/pipes/human-readable-byte-size.pipe.d.ts +7 -0
  216. package/lib/file-upload/pipes/index.d.ts +1 -0
  217. package/lib/form-field/controls/checkbox/checkbox.component.d.ts +133 -0
  218. package/lib/form-field/controls/checkbox/checkbox.module.d.ts +9 -0
  219. package/lib/form-field/controls/checkbox/index.d.ts +2 -0
  220. package/lib/form-field/controls/index.d.ts +4 -0
  221. package/lib/form-field/controls/input/index.d.ts +1 -0
  222. package/lib/form-field/controls/input/input.directive.d.ts +84 -0
  223. package/lib/form-field/controls/radio/index.d.ts +5 -0
  224. package/lib/form-field/controls/radio/injection-tokens.d.ts +4 -0
  225. package/lib/form-field/controls/radio/interfaces/index.d.ts +3 -0
  226. package/lib/form-field/controls/radio/interfaces/radio-button.interface.d.ts +6 -0
  227. package/lib/form-field/controls/radio/interfaces/radio-change-event.interface.d.ts +12 -0
  228. package/lib/form-field/controls/radio/interfaces/radio-group.interface.d.ts +13 -0
  229. package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +98 -0
  230. package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +104 -0
  231. package/lib/form-field/controls/radio/radio.module.d.ts +10 -0
  232. package/lib/form-field/controls/select/index.d.ts +5 -0
  233. package/lib/form-field/controls/select/option/index.d.ts +1 -0
  234. package/lib/form-field/controls/select/option/select-option.component.d.ts +60 -0
  235. package/lib/form-field/controls/select/option-parent.d.ts +5 -0
  236. package/lib/form-field/controls/select/select-model.d.ts +36 -0
  237. package/lib/form-field/controls/select/select.component.d.ts +170 -0
  238. package/lib/form-field/controls/select/select.module.d.ts +10 -0
  239. package/lib/form-field/controls/shared/index.d.ts +1 -0
  240. package/lib/form-field/controls/shared/toggle/components/index.d.ts +1 -0
  241. package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +6 -0
  242. package/lib/form-field/controls/shared/toggle/index.d.ts +3 -0
  243. package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +26 -0
  244. package/lib/form-field/controls/shared/toggle/toggle.module.d.ts +10 -0
  245. package/lib/form-field/directives/corner-hint.directive.d.ts +5 -0
  246. package/lib/form-field/directives/error.directive.d.ts +8 -0
  247. package/lib/form-field/directives/form-root.directive.d.ts +26 -0
  248. package/lib/form-field/directives/hint.directive.d.ts +6 -0
  249. package/lib/form-field/directives/index.d.ts +7 -0
  250. package/lib/form-field/directives/label.directive.d.ts +5 -0
  251. package/lib/form-field/directives/prefix.directive.d.ts +9 -0
  252. package/lib/form-field/directives/suffix.directive.d.ts +9 -0
  253. package/lib/form-field/form-field-errors.d.ts +2 -0
  254. package/lib/form-field/form-field.component.d.ts +39 -0
  255. package/lib/form-field/impdc-forms.d.ts +7 -0
  256. package/lib/form-field/impdc-forms.module.d.ts +19 -0
  257. package/lib/form-field/index.d.ts +1 -0
  258. package/lib/form-field/services/error-state-matcher.service.d.ts +12 -0
  259. package/lib/form-field/services/index.d.ts +2 -0
  260. package/lib/form-field/services/unique-selection-dispatcher.service.d.ts +29 -0
  261. package/lib/form-field/shared/constructors.type.d.ts +7 -0
  262. package/lib/form-field/shared/disabled.mixin.d.ts +10 -0
  263. package/lib/form-field/shared/error-state.mixin.d.ts +31 -0
  264. package/lib/form-field/shared/form-field-control.d.ts +24 -0
  265. package/lib/form-field/shared/index.d.ts +5 -0
  266. package/lib/form-field/shared/tab-index.mixin.d.ts +13 -0
  267. package/lib/icon/icon.component.d.ts +30 -0
  268. package/lib/icon/icon.module.d.ts +9 -0
  269. package/lib/icon/index.d.ts +2 -0
  270. package/lib/index.d.ts +25 -0
  271. package/lib/modal/index.d.ts +3 -0
  272. package/lib/modal/modal.component.d.ts +80 -0
  273. package/lib/modal/modal.module.d.ts +13 -0
  274. package/lib/modal/types/index.d.ts +2 -0
  275. package/lib/modal/types/modal-component-sizes.d.ts +3 -0
  276. package/lib/modal/types/modal-theme.d.ts +7 -0
  277. package/lib/pagination/index.d.ts +2 -0
  278. package/lib/pagination/pagination.component.d.ts +41 -0
  279. package/lib/pagination/pagination.module.d.ts +11 -0
  280. package/lib/progress-bar/index.d.ts +2 -0
  281. package/lib/progress-bar/progress-bar.component.d.ts +22 -0
  282. package/lib/progress-bar/progress-bar.module.d.ts +8 -0
  283. package/lib/scrollable/index.d.ts +2 -0
  284. package/lib/scrollable/scrollable.component.d.ts +39 -0
  285. package/lib/scrollable/scrollable.module.d.ts +11 -0
  286. package/lib/select-icon/index.d.ts +2 -0
  287. package/lib/select-icon/select-icon.component.d.ts +123 -0
  288. package/lib/select-icon/select-icon.module.d.ts +11 -0
  289. package/lib/size-detection/directive/element-size.interface.d.ts +4 -0
  290. package/lib/size-detection/directive/index.d.ts +2 -0
  291. package/lib/size-detection/directive/size-detector.directive.d.ts +14 -0
  292. package/lib/size-detection/index.d.ts +3 -0
  293. package/lib/size-detection/size-detection.module.d.ts +8 -0
  294. package/lib/spinner/index.d.ts +2 -0
  295. package/lib/spinner/spinner.component.d.ts +13 -0
  296. package/lib/spinner/spinner.module.d.ts +8 -0
  297. package/lib/table/index.d.ts +2 -0
  298. package/lib/table/table.component.d.ts +15 -0
  299. package/lib/table/table.module.d.ts +9 -0
  300. package/lib/text-highlight/index.d.ts +2 -0
  301. package/lib/text-highlight/text-highlight.component.d.ts +31 -0
  302. package/lib/text-highlight/text-highlight.module.d.ts +9 -0
  303. package/package.json +51 -0
  304. package/public-api.d.ts +4 -0
  305. package/services/index.d.ts +1 -0
  306. package/services/interaction.service.d.ts +14 -0
  307. package/types/component-size.d.ts +12 -0
  308. package/types/component-theme.d.ts +12 -0
  309. package/types/index.d.ts +2 -0
  310. package/utilities/boolean-props.d.ts +8 -0
  311. package/utilities/dc.d.ts +6 -0
  312. package/utilities/index.d.ts +5 -0
  313. package/utilities/lc.d.ts +6 -0
  314. package/utilities/number-props.d.ts +15 -0
  315. package/utilities/sanitize.d.ts +1 -0
@@ -0,0 +1,105 @@
1
+ import { ChangeDetectorRef, DoCheck, ElementRef, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm, ValidationErrors, Validator } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { BooleanInput } from '../../utilities';
5
+ import { ErrorStateMatcher, ICanUpdateErrorState, IHasErrorState, ImpdcFormFieldControl, ImpdcFormRoot } from '../form-field';
6
+ import * as i0 from "@angular/core";
7
+ declare const _FileUploadComponentBase: import("../form-field").Constructor<import("../form-field").HasTabIndex> & import("../form-field").AbstractConstructor<import("../form-field").HasTabIndex> & import("../form-field").Constructor<import("../form-field").CanDisable> & import("../form-field").AbstractConstructor<import("../form-field").CanDisable> & import("../form-field").Constructor<ICanUpdateErrorState> & import("../form-field").AbstractConstructor<ICanUpdateErrorState> & {
8
+ new (_defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null): {
9
+ readonly stateChanges: Subject<void>;
10
+ _defaultErrorStateMatcher: ErrorStateMatcher;
11
+ _formRoot: ImpdcFormRoot;
12
+ _parentForm: NgForm;
13
+ _parentFormGroup: FormGroupDirective;
14
+ ngControl: NgControl | null;
15
+ };
16
+ };
17
+ /**
18
+ * The `FileUploadComponent` (`<impdc-file-upload` or `<any impdc-file-upload`) is a file selector that supports drag and drop.
19
+ * To use, import `FileUploadModule` or another module that imports and exports that module from `@impartner/design-components`.
20
+ */
21
+ export declare class FileUploadComponent extends _FileUploadComponentBase implements ControlValueAccessor, Validator, ImpdcFormFieldControl<File | File[]>, ICanUpdateErrorState, IHasErrorState, DoCheck, OnDestroy {
22
+ private readonly _changeDetector;
23
+ protected fileDropElementRef: ElementRef<HTMLElement>;
24
+ /** @ignore */
25
+ fileUploadInputEltRef: ElementRef<HTMLInputElement>;
26
+ /**
27
+ * Whether the control supports uploading multiple files.
28
+ */
29
+ multiple: boolean;
30
+ /**
31
+ * The instructional text to display in the file upload dropzone.
32
+ */
33
+ uploadText: string;
34
+ /**
35
+ * The comma-delimited list of file types that are accepted by the control.
36
+ */
37
+ accept: string;
38
+ errorStateMatcher: ErrorStateMatcher;
39
+ get canUpload(): boolean;
40
+ private get acceptTypes();
41
+ get empty(): boolean;
42
+ protected get filesForDisplay(): readonly File[];
43
+ private _cvaOnChange;
44
+ private _cvaOnTouched;
45
+ private _uid;
46
+ constructor(_changeDetector: ChangeDetectorRef, _defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null);
47
+ /** @ignore */
48
+ handleChange(event: Event): void;
49
+ /** @ignore */
50
+ handleDrop(event: FileList): void;
51
+ /** @ignore */
52
+ removeFile(fileIndex: number): void;
53
+ /** @ignore */
54
+ focus(options?: FocusOptions): void;
55
+ /** @ignore */
56
+ ngDoCheck(): void;
57
+ /** @ignore */
58
+ ngOnDestroy(): void;
59
+ /**
60
+ * The file(s) currently uploaded into the control. Returns `File | null` when `multiple` is `false`,
61
+ * and `File[]` when `multiple` is `true`.
62
+ */
63
+ get value(): File | File[] | null;
64
+ set value(newValue: File | File[] | null);
65
+ private _value;
66
+ /** @ignore */
67
+ get id(): string;
68
+ set id(value: string);
69
+ private _id;
70
+ /**
71
+ * Used to set requiredness of control in a template-based manner;
72
+ * not necessary when using the Angular reactive forms API and `required` validator.
73
+ *
74
+ * @default false
75
+ */
76
+ get required(): boolean;
77
+ set required(value: BooleanInput);
78
+ private _required;
79
+ get focused(): boolean;
80
+ private _focused;
81
+ readonly controlType: string;
82
+ readonly supportsAffixes: boolean;
83
+ /** @ignore */
84
+ writeValue(value: File[]): void;
85
+ /** @ignore */
86
+ registerOnChange(fn: Function): void;
87
+ /** @ignore */
88
+ registerOnTouched(fn: Function): void;
89
+ /** @ignore */
90
+ setDisabledState?(isDisabled: boolean): void;
91
+ /**
92
+ * @ignore
93
+ */
94
+ validate(): ValidationErrors | null;
95
+ protected _onFocus(): void;
96
+ protected _onBlur(): void;
97
+ private _updateValueFromInteraction;
98
+ private _mergeNewFilesWithExistingFiles;
99
+ private _getFileList;
100
+ private _getExtensions;
101
+ private _acceptedFileType;
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
103
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "impdc-file-upload, [impdc-file-upload]", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "multiple": "multiple"; "uploadText": "uploadText"; "accept": "accept"; "errorStateMatcher": "errorStateMatcher"; "value": "value"; "id": "id"; "required": "required"; }, {}, never, never, false>;
104
+ }
105
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./directives/file-drop.directive";
3
+ import * as i2 from "./file-upload.component";
4
+ import * as i3 from "./pipes/human-readable-byte-size.pipe";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "../button/button.module";
8
+ export declare class FileUploadModule {
9
+ constructor();
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadModule, [typeof i1.FileDropDirective, typeof i2.FileUploadComponent, typeof i3.HumanReadableByteSizePipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.ButtonModule], [typeof i1.FileDropDirective, typeof i2.FileUploadComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadModule>;
13
+ }
@@ -0,0 +1,4 @@
1
+ export * from './directives';
2
+ export * from './pipes';
3
+ export { FileUploadComponent } from './file-upload.component';
4
+ export { FileUploadModule } from './file-upload.module';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HumanReadableByteSizePipe implements PipeTransform {
4
+ transform(bytes: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HumanReadableByteSizePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<HumanReadableByteSizePipe, "humanReadableByteSize", false>;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './human-readable-byte-size.pipe';
@@ -0,0 +1,133 @@
1
+ import { ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm, ValidationErrors, Validator } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { BooleanInput } from '../../../../utilities';
5
+ import { ImpdcFormRoot } from '../../directives';
6
+ import { ErrorStateMatcher } from '../../services';
7
+ import { HasTabIndex, ICanUpdateErrorState, IHasErrorState, ImpdcFormFieldControl } from '../../shared';
8
+ import * as i0 from "@angular/core";
9
+ export declare class CheckboxChangeEvent {
10
+ /** The specific checkbox that changed. */
11
+ readonly source: CheckboxComponent;
12
+ /** Whether the changed checkbox was checked or unchecked at the time of the event. */
13
+ readonly checked: boolean;
14
+ constructor(
15
+ /** The specific checkbox that changed. */
16
+ source: CheckboxComponent,
17
+ /** Whether the changed checkbox was checked or unchecked at the time of the event. */
18
+ checked: boolean);
19
+ }
20
+ declare abstract class CheckboxComponentBase {
21
+ _defaultErrorStateMatcher: ErrorStateMatcher;
22
+ _formRoot: ImpdcFormRoot;
23
+ _parentForm: NgForm;
24
+ _parentFormGroup: FormGroupDirective;
25
+ ngControl: NgControl | null;
26
+ readonly stateChanges: Subject<void>;
27
+ abstract disabled: boolean;
28
+ constructor(_defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null);
29
+ }
30
+ declare const _CheckboxComponentMixinBase: import("../../shared").Constructor<HasTabIndex> & import("../../shared").AbstractConstructor<HasTabIndex> & import("../../shared").Constructor<ICanUpdateErrorState> & import("../../shared").AbstractConstructor<ICanUpdateErrorState> & typeof CheckboxComponentBase;
31
+ /**
32
+ * The `CheckboxComponent` (`<impdc-checkbox`) is an input with a simple boolean value as a checkbox or toggle switch.
33
+ * This component can be used within a `FormFieldComponent` (`<impdc-form-field`).
34
+ * To use, import `CheckboxModule` or another module that imports and exports that module from `@impartner/design-components`.
35
+ */
36
+ export declare class CheckboxComponent extends _CheckboxComponentMixinBase implements DoCheck, OnDestroy, ControlValueAccessor, Validator, HasTabIndex, ImpdcFormFieldControl<boolean>, ICanUpdateErrorState, IHasErrorState {
37
+ private readonly _changeDetector;
38
+ private readonly _uid;
39
+ private _cvaOnChange;
40
+ private _cvaOnTouched;
41
+ protected _inputElement?: ElementRef<HTMLInputElement>;
42
+ id: string;
43
+ /**
44
+ * The primary label text for the checkbox control.
45
+ */
46
+ label: string;
47
+ /**
48
+ * Text to provide additional description or context for the checkbox control. Does not display when `inline` is `true`.
49
+ */
50
+ description: string;
51
+ /**
52
+ * Whether or not the input displays as a toggle switch.
53
+ */
54
+ isSwitch: boolean;
55
+ /**
56
+ * When `isSwitch` is `true`, sets whether or not the toggle switch uses icons.
57
+ */
58
+ switchIcons: boolean;
59
+ /**
60
+ * Whether or not the checkbox displays inline.
61
+ */
62
+ inline: boolean;
63
+ /**
64
+ * Whether or not the checkbox input is checked.
65
+ */
66
+ get checked(): boolean;
67
+ set checked(value: BooleanInput);
68
+ /**
69
+ * Whether or not the checkbox input is in an `indeterminate` state.
70
+ */
71
+ get indeterminate(): boolean;
72
+ set indeterminate(value: BooleanInput);
73
+ private _indeterminate;
74
+ get disabled(): boolean;
75
+ set disabled(value: BooleanInput);
76
+ protected _disabled: boolean;
77
+ errorStateMatcher: ErrorStateMatcher;
78
+ /**
79
+ * Event emitted whenever the checkedness of the input changes.
80
+ */
81
+ readonly change: EventEmitter<CheckboxChangeEvent>;
82
+ /**
83
+ * Event emitted whenever the control enters or leaves an `indeterminate` state.
84
+ */
85
+ readonly indeterminateChange: EventEmitter<boolean>;
86
+ get inputId(): string;
87
+ constructor(_changeDetector: ChangeDetectorRef, tabIndex: string, defaultErrorStateMatcher: ErrorStateMatcher, formRoot: ImpdcFormRoot, parentForm: NgForm, parentFormGroup: FormGroupDirective, ngControl: NgControl | null);
88
+ /** @ignore */
89
+ ngDoCheck(): void;
90
+ /** @ignore */
91
+ ngOnDestroy(): void;
92
+ get value(): boolean;
93
+ set value(value: BooleanInput);
94
+ private _value;
95
+ get focused(): boolean;
96
+ private _focused;
97
+ /**
98
+ * Used to set requiredness of control in a template-based manner; not necessary when using the
99
+ * Angular reactive forms API and 'required' or `requiredTrue` validators.
100
+ */
101
+ get required(): boolean;
102
+ set required(value: BooleanInput);
103
+ private _required;
104
+ readonly controlType: string;
105
+ readonly supportsAffixes: boolean;
106
+ /** @ignore */
107
+ writeValue(value: any): void;
108
+ /** @ignore */
109
+ registerOnChange(fn: (value: any) => void): void;
110
+ /** @ignore */
111
+ registerOnTouched(fn: () => {}): void;
112
+ /** @ignore */
113
+ setDisabledState(isDisabled: boolean): void;
114
+ /** @ignore */
115
+ validate(): ValidationErrors | null;
116
+ protected _getAriaChecked(): 'true' | 'false' | 'mixed';
117
+ protected _onBlur(): void;
118
+ protected _onFocus(): void;
119
+ protected _handleCheckClick(): void;
120
+ protected _onInteractionEvent(event: Event): void;
121
+ private _emitChangeEvents;
122
+ /**
123
+ * Prevent click events that come from the `<label/>` element from bubbling. This prevents the
124
+ * click handler on the host from triggering twice when clicking on the `<label/>` element. After
125
+ * the click event on the `<label/>` propagates, the browsers dispatches click on the associated
126
+ * `<input/>`. By preventing clicks on the label by bubbling, we ensure only one click event
127
+ * bubbles when the label is clicked.
128
+ */
129
+ protected _preventBubblingFromLabel(event: MouseEvent): void;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [null, { attribute: "tabindex"; }, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "impdc-checkbox", ["impdcCheckControl"], { "tabIndex": "tabIndex"; "id": "id"; "label": "label"; "description": "description"; "isSwitch": "isSwitch"; "switchIcons": "switchIcons"; "inline": "inline"; "checked": "checked"; "indeterminate": "indeterminate"; "disabled": "disabled"; "errorStateMatcher": "errorStateMatcher"; "required": "required"; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never, false>;
132
+ }
133
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./checkbox.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../shared/toggle/toggle.module";
5
+ export declare class CheckboxModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.ToggleModule], [typeof i1.CheckboxComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export { CheckboxChangeEvent, CheckboxComponent } from './checkbox.component';
2
+ export { CheckboxModule } from './checkbox.module';
@@ -0,0 +1,4 @@
1
+ export * from './checkbox';
2
+ export * from './input';
3
+ export * from './radio';
4
+ export * from './select';
@@ -0,0 +1 @@
1
+ export { InputDirective } from './input.directive';
@@ -0,0 +1,84 @@
1
+ import { DoCheck, ElementRef, OnChanges, OnDestroy } from '@angular/core';
2
+ import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { BooleanInput } from '../../../../utilities';
5
+ import { ImpdcFormRoot } from '../../directives';
6
+ import { ErrorStateMatcher } from '../../services';
7
+ import { ICanUpdateErrorState, IHasErrorState } from '../../shared';
8
+ import { ImpdcFormFieldControl } from '../../shared/form-field-control';
9
+ import * as i0 from "@angular/core";
10
+ /** @docs-private */
11
+ export declare function getInputUnsupportedTypeError(type: string): Error;
12
+ declare const _InputDirectiveBase: import("../../shared").Constructor<ICanUpdateErrorState> & import("../../shared").AbstractConstructor<ICanUpdateErrorState> & {
13
+ new (_defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null): {
14
+ readonly stateChanges: Subject<void>;
15
+ _defaultErrorStateMatcher: ErrorStateMatcher;
16
+ _formRoot: ImpdcFormRoot;
17
+ _parentForm: NgForm;
18
+ _parentFormGroup: FormGroupDirective;
19
+ ngControl: NgControl | null;
20
+ };
21
+ };
22
+ /**
23
+ * The `InputDirective` (`<input impdcInput`, `<textarea impdcInput` or `<select impdcInput`) is a directive for text inputs.
24
+ * With this directive, the input, textarea, and select can be used within a `FormFieldComponent` (`<impdc-form-field`).
25
+ * To use, import `ImpdcFormsModule` or another module that imports and exports that module from `@impartner/design-components`.
26
+ */
27
+ export declare class InputDirective extends _InputDirectiveBase implements ImpdcFormFieldControl<any>, ICanUpdateErrorState, IHasErrorState, OnChanges, OnDestroy, DoCheck {
28
+ protected _elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>;
29
+ private _inputValueAccessor;
30
+ protected _uid: string;
31
+ protected _isSelect: boolean;
32
+ protected _isTextarea: boolean;
33
+ focused: boolean;
34
+ readonly controlType?: string;
35
+ readonly supportsAffixes: boolean;
36
+ get disabled(): boolean;
37
+ set disabled(value: BooleanInput);
38
+ protected _disabled: boolean;
39
+ get id(): string;
40
+ set id(value: string);
41
+ protected _id: string;
42
+ /**
43
+ * Supports most standard `<input [type]>` attribute values. Does not support `button`, `checkbox`,
44
+ * `file`, `hidden`, `image`, `radio`, `range`, `reset`, or `button`, and does not apply to
45
+ * `<textarea>` or `<select>` elements.
46
+ *
47
+ * @default text
48
+ */
49
+ get type(): string;
50
+ set type(value: string);
51
+ protected _type: string;
52
+ /**
53
+ * Used to set requiredness of control in a template-based manner;
54
+ * not necessary when using the Angular reactive forms API and `required` validator.
55
+ */
56
+ get required(): boolean;
57
+ set required(value: BooleanInput);
58
+ private _required;
59
+ /**
60
+ * Used to put the control in a non-interactive readonly state; only supports `<input>` and
61
+ * `<textarea>` elements.
62
+ *
63
+ * To see the difference between `readonly` and `disabled`, refer to [MDN's documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly).
64
+ */
65
+ get readonly(): boolean;
66
+ set readonly(value: BooleanInput);
67
+ private _readonly;
68
+ errorStateMatcher: ErrorStateMatcher;
69
+ get value(): string;
70
+ set value(value: any);
71
+ constructor(_elementRef: ElementRef<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>, ngControl: NgControl, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher);
72
+ /** @ignore */
73
+ ngDoCheck(): void;
74
+ /** @ignore */
75
+ ngOnChanges(): void;
76
+ /** @ignore */
77
+ ngOnDestroy(): void;
78
+ protected _focusChanged(isFocused: boolean): void;
79
+ protected _typeIsValid(inputType: string): boolean;
80
+ protected _onInput(): void;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
82
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[impdcInput], textarea[impdcInput], select[impdcNativeSelect]", ["impdcInput"], { "disabled": "disabled"; "id": "id"; "type": "type"; "required": "required"; "readonly": "readonly"; "errorStateMatcher": "errorStateMatcher"; "value": "value"; }, {}, never, never, false>;
83
+ }
84
+ export {};
@@ -0,0 +1,5 @@
1
+ export { RadioChangeEvent, IRadioButton, IRadioGroup } from './interfaces';
2
+ export { RadioButtonComponent } from './radio-button/radio-button.component';
3
+ export { RadioGroupDirective } from './radio-group/radio-group.directive';
4
+ export { IMPDC_RADIO_GROUP, IMPDC_RADIO_BUTTON } from './injection-tokens';
5
+ export { RadioModule } from './radio.module';
@@ -0,0 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { IRadioButton, IRadioGroup } from './interfaces';
3
+ export declare const IMPDC_RADIO_GROUP: InjectionToken<IRadioGroup>;
4
+ export declare const IMPDC_RADIO_BUTTON: InjectionToken<IRadioButton>;
@@ -0,0 +1,3 @@
1
+ export * from './radio-change-event.interface';
2
+ export * from './radio-button.interface';
3
+ export * from './radio-group.interface';
@@ -0,0 +1,6 @@
1
+ export interface IRadioButton {
2
+ checked: boolean;
3
+ name: string;
4
+ value: any;
5
+ markForCheck(): void;
6
+ }
@@ -0,0 +1,12 @@
1
+ import { IRadioButton } from './radio-button.interface';
2
+ export declare class RadioChangeEvent {
3
+ /** The specific radio button that changed. */
4
+ readonly source: IRadioButton;
5
+ /** The selected value. */
6
+ readonly value: any;
7
+ constructor(
8
+ /** The specific radio button that changed. */
9
+ source: IRadioButton,
10
+ /** The selected value. */
11
+ value: any);
12
+ }
@@ -0,0 +1,13 @@
1
+ import { IRadioButton } from './radio-button.interface';
2
+ export interface IRadioGroup {
3
+ get disabled(): boolean;
4
+ get errorState(): boolean;
5
+ get inline(): boolean;
6
+ get name(): string;
7
+ get required(): boolean;
8
+ get value(): any;
9
+ selected: IRadioButton | null;
10
+ emitChangesEvent(): void;
11
+ onChangeFn(value: any): void;
12
+ touch(): void;
13
+ }
@@ -0,0 +1,98 @@
1
+ import { AfterViewInit, ChangeDetectorRef, DoCheck, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { BooleanInput } from '../../../../../utilities';
3
+ import { UniqueSelectionDispatcher } from '../../../services/unique-selection-dispatcher.service';
4
+ import { HasTabIndex } from '../../../shared/tab-index.mixin';
5
+ import { RadioChangeEvent, IRadioButton, IRadioGroup } from '../interfaces';
6
+ import * as i0 from "@angular/core";
7
+ declare abstract class RadioButtonComponentBase {
8
+ abstract disabled: boolean;
9
+ constructor();
10
+ }
11
+ declare const _RadioButtonComponentMixinBase: import("@impartner/design-components").Constructor<HasTabIndex> & import("@impartner/design-components").AbstractConstructor<HasTabIndex> & typeof RadioButtonComponentBase;
12
+ export declare class RadioButtonComponent extends _RadioButtonComponentMixinBase implements IRadioButton, HasTabIndex, OnInit, OnDestroy, DoCheck, AfterViewInit {
13
+ private readonly _changeDetector;
14
+ private _radioDispatcher;
15
+ readonly _radioGroup?: IRadioGroup | undefined;
16
+ private readonly _uid;
17
+ private _removeUniqueSelectionListener;
18
+ private _previousTabIndex?;
19
+ private _inputElement;
20
+ id: string;
21
+ /**
22
+ * The unique name for a group of radio options; Inherited from the parent `RadioGroupDirective` when available.
23
+ */
24
+ name: string;
25
+ /**
26
+ * Property for setting ARIA "label" attribute.
27
+ */
28
+ ariaLabel?: string;
29
+ /**
30
+ * Property for setting ARIA "labelled by" attribute.
31
+ */
32
+ ariaLabelledby?: string;
33
+ /**
34
+ * Property for setting ARIA "described by" attribute.
35
+ */
36
+ ariaDescribedby?: string;
37
+ /**
38
+ * Whether or not the radio input is checked/selected.
39
+ */
40
+ get checked(): boolean;
41
+ set checked(value: BooleanInput);
42
+ protected _checked: boolean;
43
+ /**
44
+ * The specific value represented by the radio button.
45
+ */
46
+ get value(): any;
47
+ set value(value: any);
48
+ protected _value: any;
49
+ /**
50
+ * Whether or not the radio button displays inline; Inherited from the parent `RadioGroupDirective` when available.
51
+ */
52
+ get inline(): boolean;
53
+ set inline(value: BooleanInput);
54
+ protected _inline?: boolean;
55
+ /**
56
+ * Used to enable or disable the radio button, but will always return `true` when the parent
57
+ * `RadioGroupDirective` is already disabled.
58
+ */
59
+ get disabled(): boolean;
60
+ set disabled(value: BooleanInput);
61
+ protected _disabled: boolean;
62
+ /** @ignore */
63
+ get required(): boolean;
64
+ set required(value: BooleanInput);
65
+ protected _required: boolean;
66
+ /**
67
+ * The primary label text for the radio button.
68
+ */
69
+ label: string;
70
+ /**
71
+ * Text to provide additional description or context for the radio button. Does
72
+ * not display if `inline` is `true`.
73
+ */
74
+ description: string;
75
+ /**
76
+ * Event emitted when the radio button becomes selected/checked.
77
+ */
78
+ readonly change: EventEmitter<RadioChangeEvent>;
79
+ protected get _errorState(): boolean;
80
+ constructor(_changeDetector: ChangeDetectorRef, _radioDispatcher: UniqueSelectionDispatcher, tabIndex?: string, _radioGroup?: IRadioGroup | undefined);
81
+ /** @ignore */
82
+ ngOnInit(): void;
83
+ /** @ignore */
84
+ ngDoCheck(): void;
85
+ /** @ignore */
86
+ ngAfterViewInit(): void;
87
+ /** @ignore */
88
+ ngOnDestroy(): void;
89
+ /** @ignore */
90
+ markForCheck(): void;
91
+ protected _emitChangesEvent(): void;
92
+ protected _onBlur(): void;
93
+ protected _onInputChange(event: Event): void;
94
+ protected _updateTabIndex(): void;
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [null, null, { attribute: "tabindex"; }, { optional: true; }]>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "impdc-radio-button", ["impdcRadioButton"], { "tabIndex": "tabIndex"; "id": "id"; "name": "name"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "checked": "checked"; "value": "value"; "inline": "inline"; "disabled": "disabled"; "required": "required"; "label": "label"; "description": "description"; }, { "change": "change"; }, never, never, false>;
97
+ }
98
+ export {};
@@ -0,0 +1,104 @@
1
+ import { AfterContentInit, ChangeDetectorRef, DoCheck, EventEmitter, OnDestroy, QueryList } from '@angular/core';
2
+ import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
+ import { BooleanInput } from '../../../../../utilities';
4
+ import { Subject } from 'rxjs';
5
+ import { ImpdcFormRoot } from '../../../directives';
6
+ import { ErrorStateMatcher } from '../../../services';
7
+ import { IHasErrorState, ImpdcFormFieldControl } from '../../../shared';
8
+ import { RadioChangeEvent, IRadioButton, IRadioGroup } from '../interfaces';
9
+ import * as i0 from "@angular/core";
10
+ declare const _RadioGroupDirectiveBase: import("../../../shared").Constructor<import("../../../shared").ICanUpdateErrorState> & import("../../../shared").AbstractConstructor<import("../../../shared").ICanUpdateErrorState> & {
11
+ new (_defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null): {
12
+ readonly stateChanges: Subject<void>;
13
+ _defaultErrorStateMatcher: ErrorStateMatcher;
14
+ _formRoot: ImpdcFormRoot;
15
+ _parentForm: NgForm;
16
+ _parentFormGroup: FormGroupDirective;
17
+ ngControl: NgControl | null;
18
+ };
19
+ };
20
+ /**
21
+ * The `RadioGroupDirective` (`<impdc-radio-group`) is a container for `RadioButtonComponent` (`<impdc-radio-button`).
22
+ * This directive/component can be used within a `FormFieldComponent` (`<impdc-form-field`).
23
+ * To use, import `RadioModule` or another module that imports and exports that module from `@impartner/design-components`.
24
+ */
25
+ export declare class RadioGroupDirective<TRadioButton extends IRadioButton = IRadioButton> extends _RadioGroupDirectiveBase implements IRadioGroup, ControlValueAccessor, ImpdcFormFieldControl<any>, AfterContentInit, DoCheck, OnDestroy, IHasErrorState {
26
+ private readonly _changeDetector;
27
+ protected _radioOptions: QueryList<TRadioButton>;
28
+ protected readonly _uid: string;
29
+ protected _initialized: boolean;
30
+ private _previousControl?;
31
+ private _cvaOnChange;
32
+ private _cvaOnTouched;
33
+ /**
34
+ * The unique name for the group of radio options; Autogenerated by default.
35
+ */
36
+ get name(): string;
37
+ set name(value: string);
38
+ protected _name: string;
39
+ /**
40
+ * Whether or not the nested radio options should display inline.
41
+ */
42
+ get inline(): boolean;
43
+ set inline(value: BooleanInput);
44
+ protected _inline: boolean;
45
+ /**
46
+ * A reference to the currently selected radio button component (eg. `<impdc-radio-button>`).
47
+ */
48
+ get selected(): TRadioButton | null;
49
+ set selected(selected: TRadioButton | null);
50
+ protected _selected: TRadioButton | null;
51
+ errorStateMatcher: ErrorStateMatcher;
52
+ /**
53
+ * Event emitted whenever a new radio option is selected.
54
+ */
55
+ readonly change: EventEmitter<RadioChangeEvent>;
56
+ constructor(_changeDetector: ChangeDetectorRef, _defaultErrorStateMatcher: ErrorStateMatcher, _formRoot: ImpdcFormRoot, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl | null);
57
+ /** @ignore */
58
+ ngAfterContentInit(): void;
59
+ /** @ignore */
60
+ ngDoCheck(): void;
61
+ /** @ignore */
62
+ ngOnDestroy(): void;
63
+ get value(): any;
64
+ set value(value: any);
65
+ protected _value: any;
66
+ get id(): string;
67
+ set id(value: string);
68
+ protected _id: string;
69
+ get focused(): boolean;
70
+ protected _focused: boolean;
71
+ get disabled(): boolean;
72
+ set disabled(value: BooleanInput);
73
+ protected _disabled: boolean;
74
+ /**
75
+ * Used to set requiredness of control in a template-based manner;
76
+ * not necessary when using the Angular reactive forms API and `required` validator.
77
+ */
78
+ get required(): boolean;
79
+ set required(value: BooleanInput);
80
+ private _required;
81
+ readonly controlType = "impdc-radio-group";
82
+ readonly supportsAffixes: boolean;
83
+ /** @ignore */
84
+ writeValue(value: any): void;
85
+ /** @ignore */
86
+ registerOnChange(fn: (value: any) => void): void;
87
+ /** @ignore */
88
+ registerOnTouched(fn: () => {}): void;
89
+ /** @ignore */
90
+ setDisabledState(isDisabled: boolean): void;
91
+ /** @ignore */
92
+ emitChangesEvent(): void;
93
+ /** @ignore */
94
+ onChangeFn(value: any): void;
95
+ /** @ignore */
96
+ touch(): void;
97
+ protected _checkSelectedRadioOption(): void;
98
+ protected _markRadioOptionsForCheck(): void;
99
+ protected _updateRadioOptionNames(): void;
100
+ protected _updateSelectedRadioOptionFromValue(): void;
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupDirective<any>, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
102
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RadioGroupDirective<any>, "impdc-radio-group", ["impdcRadioGroup"], { "name": "name"; "inline": "inline"; "selected": "selected"; "errorStateMatcher": "errorStateMatcher"; "value": "value"; "id": "id"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, ["_radioOptions"], never, false>;
103
+ }
104
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./radio-button/radio-button.component";
3
+ import * as i2 from "./radio-group/radio-group.directive";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "../shared/toggle/toggle.module";
6
+ export declare class RadioModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RadioModule, [typeof i1.RadioButtonComponent, typeof i2.RadioGroupDirective], [typeof i3.ReactiveFormsModule, typeof i4.ToggleModule], [typeof i1.RadioButtonComponent, typeof i2.RadioGroupDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<RadioModule>;
10
+ }