@impartner/design-components 1.1.3 → 2.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 (304) hide show
  1. package/README.md +5 -4
  2. package/constants/fontawesome-icons.d.ts +2 -2
  3. package/{esm2020 → esm2022}/constants/fontawesome-icons.mjs +1 -1
  4. package/{esm2020 → esm2022}/lib/alert/alert.component.mjs +4 -4
  5. package/{esm2020 → esm2022}/lib/alert/alert.module.mjs +5 -5
  6. package/{esm2020 → esm2022}/lib/avatar/avatar.component.mjs +4 -4
  7. package/{esm2020 → esm2022}/lib/avatar/avatar.module.mjs +5 -5
  8. package/{esm2020 → esm2022}/lib/avatar-group/avatar-group.component.mjs +4 -4
  9. package/{esm2020 → esm2022}/lib/avatar-group/avatar-group.module.mjs +5 -5
  10. package/esm2022/lib/backdrop/backdrop.component.mjs +52 -0
  11. package/{esm2020 → esm2022}/lib/backdrop/backdrop.module.mjs +6 -6
  12. package/esm2022/lib/badge/badge.component.mjs +105 -0
  13. package/{esm2020 → esm2022}/lib/badge/badge.module.mjs +6 -6
  14. package/{esm2020 → esm2022}/lib/badge/types/badge-size.mjs +1 -1
  15. package/{esm2020 → esm2022}/lib/branding/branded.directive.mjs +4 -4
  16. package/{esm2020 → esm2022}/lib/branding/branding.module.mjs +6 -6
  17. package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb-item.component.mjs +6 -6
  18. package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb.component.mjs +5 -5
  19. package/{esm2020 → esm2022}/lib/breadcrumb/breadcrumb.module.mjs +5 -5
  20. package/{esm2020 → esm2022}/lib/button/button.component.mjs +4 -4
  21. package/{esm2020 → esm2022}/lib/button/button.module.mjs +6 -6
  22. package/{esm2020 → esm2022}/lib/button-group/button-group.component.mjs +4 -4
  23. package/{esm2020 → esm2022}/lib/button-group/button-group.module.mjs +6 -6
  24. package/{esm2020 → esm2022}/lib/card-heading/card-heading.component.mjs +5 -5
  25. package/{esm2020 → esm2022}/lib/card-heading/card-heading.module.mjs +6 -6
  26. package/esm2022/lib/data-card/data-card.component.mjs +123 -0
  27. package/esm2022/lib/data-card/data-card.module.mjs +21 -0
  28. package/{esm2020 → esm2022}/lib/design-components.module.mjs +61 -61
  29. package/{esm2020 → esm2022}/lib/dropdown/components/dropdown-item/dropdown-item.component.mjs +4 -4
  30. package/esm2022/lib/dropdown/dropdown.component.mjs +143 -0
  31. package/{esm2020 → esm2022}/lib/dropdown/dropdown.module.mjs +6 -6
  32. package/{esm2020 → esm2022}/lib/file-upload/directives/file-drop.directive.mjs +4 -4
  33. package/{esm2020 → esm2022}/lib/file-upload/file-upload.component.mjs +30 -30
  34. package/{esm2020 → esm2022}/lib/file-upload/file-upload.module.mjs +8 -8
  35. package/{esm2020 → esm2022}/lib/file-upload/pipes/human-readable-byte-size.pipe.mjs +4 -4
  36. package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/checkbox.component.mjs +49 -49
  37. package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/checkbox.module.mjs +5 -5
  38. package/esm2022/lib/form-field/controls/input/input.directive.mjs +233 -0
  39. package/esm2022/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +260 -0
  40. package/esm2022/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +289 -0
  41. package/{esm2020 → esm2022}/lib/form-field/controls/radio/radio.module.mjs +5 -5
  42. package/esm2022/lib/form-field/controls/select/option/select-option.component.mjs +139 -0
  43. package/esm2022/lib/form-field/controls/select/select-model.mjs +150 -0
  44. package/esm2022/lib/form-field/controls/select/select.component.mjs +522 -0
  45. package/{esm2020 → esm2022}/lib/form-field/controls/select/select.module.mjs +9 -9
  46. package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.mjs +4 -4
  47. package/esm2022/lib/form-field/controls/shared/toggle/toggle.component.mjs +96 -0
  48. package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/toggle.module.mjs +6 -6
  49. package/{esm2020 → esm2022}/lib/form-field/directives/corner-hint.directive.mjs +4 -4
  50. package/{esm2020 → esm2022}/lib/form-field/directives/error.directive.mjs +4 -4
  51. package/esm2022/lib/form-field/directives/form-root.directive.mjs +91 -0
  52. package/{esm2020 → esm2022}/lib/form-field/directives/hint.directive.mjs +4 -4
  53. package/{esm2020 → esm2022}/lib/form-field/directives/label.directive.mjs +4 -4
  54. package/{esm2020 → esm2022}/lib/form-field/directives/prefix.directive.mjs +4 -4
  55. package/{esm2020 → esm2022}/lib/form-field/directives/suffix.directive.mjs +4 -4
  56. package/{esm2020 → esm2022}/lib/form-field/form-field.component.mjs +11 -11
  57. package/{esm2020 → esm2022}/lib/form-field/impdc-forms.module.mjs +28 -28
  58. package/{esm2020 → esm2022}/lib/form-field/services/error-state-matcher.service.mjs +7 -7
  59. package/{esm2020 → esm2022}/lib/form-field/services/unique-selection-dispatcher.service.mjs +4 -4
  60. package/{esm2020 → esm2022}/lib/form-field/shared/disabled.mixin.mjs +5 -5
  61. package/esm2022/lib/form-field/shared/error-state.mixin.mjs +24 -0
  62. package/{esm2020 → esm2022}/lib/form-field/shared/form-field-control.mjs +4 -4
  63. package/{esm2020 → esm2022}/lib/form-field/shared/tab-index.mixin.mjs +6 -6
  64. package/{esm2020 → esm2022}/lib/icon/icon.component.mjs +5 -5
  65. package/{esm2020 → esm2022}/lib/icon/icon.module.mjs +6 -6
  66. package/esm2022/lib/modal/modal.component.mjs +260 -0
  67. package/{esm2020 → esm2022}/lib/modal/modal.module.mjs +14 -14
  68. package/{esm2020 → esm2022}/lib/modal/types/modal-component-sizes.mjs +1 -1
  69. package/{esm2020 → esm2022}/lib/modal/types/modal-theme.mjs +1 -1
  70. package/esm2022/lib/pagination/pagination.component.mjs +176 -0
  71. package/esm2022/lib/pagination/pagination.module.mjs +41 -0
  72. package/{esm2020 → esm2022}/lib/progress-bar/progress-bar.component.mjs +5 -5
  73. package/{esm2020 → esm2022}/lib/progress-bar/progress-bar.module.mjs +5 -5
  74. package/esm2022/lib/scrollable/scrollable.component.mjs +186 -0
  75. package/{esm2020 → esm2022}/lib/scrollable/scrollable.module.mjs +6 -6
  76. package/esm2022/lib/select-icon/select-icon.component.mjs +308 -0
  77. package/{esm2020 → esm2022}/lib/select-icon/select-icon.module.mjs +13 -13
  78. package/{esm2020 → esm2022}/lib/size-detection/directive/size-detector.directive.mjs +5 -5
  79. package/{esm2020 → esm2022}/lib/size-detection/size-detection.module.mjs +5 -5
  80. package/{esm2020 → esm2022}/lib/spinner/spinner.component.mjs +4 -4
  81. package/{esm2020 → esm2022}/lib/spinner/spinner.module.mjs +5 -5
  82. package/esm2022/lib/table/components/bulk-actions/bulk-actions.component.mjs +11 -0
  83. package/esm2022/lib/table/components/column-heading/column-heading.component.mjs +38 -0
  84. package/esm2022/lib/table/components/index.mjs +4 -0
  85. package/esm2022/lib/table/components/row-actions/row-actions.component.mjs +61 -0
  86. package/esm2022/lib/table/constants/index.mjs +3 -0
  87. package/esm2022/lib/table/constants/public-table.constants.mjs +2 -0
  88. package/esm2022/lib/table/constants/table.constants.mjs +24 -0
  89. package/esm2022/lib/table/containers/index.mjs +2 -0
  90. package/esm2022/lib/table/containers/table.component.mjs +403 -0
  91. package/esm2022/lib/table/directives/index.mjs +3 -0
  92. package/esm2022/lib/table/directives/table-inject-component.directive.mjs +46 -0
  93. package/esm2022/lib/table/directives/table.directive.mjs +35 -0
  94. package/esm2022/lib/table/enumerations/index.mjs +2 -0
  95. package/esm2022/lib/table/enumerations/table-column-type.mjs +21 -0
  96. package/esm2022/lib/table/helpers/index.mjs +2 -0
  97. package/esm2022/lib/table/helpers/table-theme.helper.mjs +31 -0
  98. package/esm2022/lib/table/index.mjs +8 -0
  99. package/esm2022/lib/table/interfaces/cell-renderer.interface.mjs +2 -0
  100. package/esm2022/lib/table/interfaces/custom-cell-renderer-components.type.mjs +2 -0
  101. package/esm2022/lib/table/interfaces/index.mjs +11 -0
  102. package/esm2022/lib/table/interfaces/sort-by-payload.interface.mjs +2 -0
  103. package/esm2022/lib/table/interfaces/table-cell-option.interface.mjs +2 -0
  104. package/esm2022/lib/table/interfaces/table-column-defs.type.mjs +2 -0
  105. package/esm2022/lib/table/interfaces/table-event-payload.interface.mjs +2 -0
  106. package/esm2022/lib/table/interfaces/table-row-action-payload.interface.mjs +2 -0
  107. package/esm2022/lib/table/interfaces/table-row-action.interface.mjs +2 -0
  108. package/esm2022/lib/table/interfaces/table-row-item.interface.mjs +2 -0
  109. package/esm2022/lib/table/table.module.mjs +96 -0
  110. package/{esm2020 → esm2022}/lib/text-highlight/text-highlight.component.mjs +6 -6
  111. package/{esm2020 → esm2022}/lib/text-highlight/text-highlight.module.mjs +6 -6
  112. package/{esm2020 → esm2022}/services/index.mjs +1 -1
  113. package/esm2022/services/interaction.service.mjs +88 -0
  114. package/{esm2020 → esm2022}/types/component-theme.mjs +1 -1
  115. package/{fesm2020 → fesm2022}/impartner-design-components.mjs +3768 -2988
  116. package/fesm2022/impartner-design-components.mjs.map +1 -0
  117. package/lib/alert/alert.component.d.ts +1 -1
  118. package/lib/alert/theme/alert-theme.d.ts +1 -1
  119. package/lib/avatar/avatar.component.d.ts +1 -1
  120. package/lib/avatar-group/avatar-group.component.d.ts +1 -1
  121. package/lib/backdrop/backdrop.component.d.ts +9 -6
  122. package/lib/badge/badge.component.d.ts +3 -2
  123. package/lib/badge/types/badge-icon.d.ts +1 -1
  124. package/lib/badge/types/badge-size.d.ts +1 -1
  125. package/lib/branding/branded.directive.d.ts +1 -1
  126. package/lib/breadcrumb/breadcrumb-item.component.d.ts +1 -1
  127. package/lib/breadcrumb/breadcrumb.component.d.ts +1 -1
  128. package/lib/button/button.component.d.ts +1 -1
  129. package/lib/button/themes/button-theme.d.ts +1 -1
  130. package/lib/button-group/button-group.component.d.ts +1 -1
  131. package/lib/card-heading/card-heading.component.d.ts +1 -1
  132. package/lib/data-card/data-card.component.d.ts +14 -18
  133. package/lib/data-card/data-card.module.d.ts +2 -1
  134. package/lib/dropdown/components/dropdown-item/dropdown-item.component.d.ts +1 -1
  135. package/lib/dropdown/dropdown.component.d.ts +6 -5
  136. package/lib/dropdown/types/dropdown-position.d.ts +1 -1
  137. package/lib/file-upload/directives/file-drop.directive.d.ts +1 -1
  138. package/lib/file-upload/file-upload.component.d.ts +1 -1
  139. package/lib/form-field/controls/checkbox/checkbox.component.d.ts +1 -1
  140. package/lib/form-field/controls/input/input.directive.d.ts +1 -1
  141. package/lib/form-field/controls/radio/radio-button/radio-button.component.d.ts +1 -1
  142. package/lib/form-field/controls/radio/radio-group/radio-group.directive.d.ts +1 -1
  143. package/lib/form-field/controls/select/option/select-option.component.d.ts +4 -4
  144. package/lib/form-field/controls/select/select.component.d.ts +1 -1
  145. package/lib/form-field/controls/shared/toggle/components/toggle-input/toggle-input.component.d.ts +1 -1
  146. package/lib/form-field/controls/shared/toggle/toggle.component.d.ts +1 -1
  147. package/lib/form-field/directives/corner-hint.directive.d.ts +1 -1
  148. package/lib/form-field/directives/error.directive.d.ts +1 -1
  149. package/lib/form-field/directives/form-root.directive.d.ts +2 -2
  150. package/lib/form-field/directives/hint.directive.d.ts +1 -1
  151. package/lib/form-field/directives/label.directive.d.ts +1 -1
  152. package/lib/form-field/directives/prefix.directive.d.ts +1 -1
  153. package/lib/form-field/directives/suffix.directive.d.ts +1 -1
  154. package/lib/form-field/form-field.component.d.ts +1 -1
  155. package/lib/form-field/services/unique-selection-dispatcher.service.d.ts +1 -1
  156. package/lib/form-field/shared/constructors.type.d.ts +2 -2
  157. package/lib/form-field/shared/disabled.mixin.d.ts +1 -1
  158. package/lib/form-field/shared/error-state.mixin.d.ts +1 -1
  159. package/lib/form-field/shared/form-field-control.d.ts +1 -1
  160. package/lib/form-field/shared/tab-index.mixin.d.ts +1 -1
  161. package/lib/icon/icon.component.d.ts +1 -1
  162. package/lib/modal/modal.component.d.ts +17 -10
  163. package/lib/modal/types/modal-component-sizes.d.ts +1 -1
  164. package/lib/modal/types/modal-theme.d.ts +1 -1
  165. package/lib/pagination/pagination.component.d.ts +18 -3
  166. package/lib/pagination/pagination.module.d.ts +2 -1
  167. package/lib/progress-bar/progress-bar.component.d.ts +1 -1
  168. package/lib/scrollable/scrollable.component.d.ts +1 -1
  169. package/lib/select-icon/select-icon.component.d.ts +1 -1
  170. package/lib/size-detection/directive/size-detector.directive.d.ts +1 -1
  171. package/lib/spinner/spinner.component.d.ts +1 -1
  172. package/lib/table/components/bulk-actions/bulk-actions.component.d.ts +5 -0
  173. package/lib/table/components/column-heading/column-heading.component.d.ts +14 -0
  174. package/lib/table/components/index.d.ts +3 -0
  175. package/lib/table/components/row-actions/row-actions.component.d.ts +21 -0
  176. package/lib/table/constants/index.d.ts +2 -0
  177. package/lib/table/constants/public-table.constants.d.ts +1 -0
  178. package/lib/table/constants/table.constants.d.ts +10 -0
  179. package/lib/table/containers/index.d.ts +1 -0
  180. package/lib/table/containers/table.component.d.ts +133 -0
  181. package/lib/table/directives/index.d.ts +2 -0
  182. package/lib/table/directives/table-inject-component.directive.d.ts +16 -0
  183. package/lib/table/directives/table.directive.d.ts +15 -0
  184. package/lib/table/enumerations/index.d.ts +1 -0
  185. package/lib/table/enumerations/table-column-type.d.ts +19 -0
  186. package/lib/table/helpers/index.d.ts +1 -0
  187. package/lib/table/helpers/table-theme.helper.d.ts +7 -0
  188. package/lib/table/index.d.ts +7 -2
  189. package/lib/table/interfaces/cell-renderer.interface.d.ts +6 -0
  190. package/lib/table/interfaces/custom-cell-renderer-components.type.d.ts +3 -0
  191. package/lib/table/interfaces/index.d.ts +10 -0
  192. package/lib/table/interfaces/sort-by-payload.interface.d.ts +5 -0
  193. package/lib/table/interfaces/table-cell-option.interface.d.ts +4 -0
  194. package/lib/table/interfaces/table-column-defs.type.d.ts +29 -0
  195. package/lib/table/interfaces/table-event-payload.interface.d.ts +6 -0
  196. package/lib/table/interfaces/table-row-action-payload.interface.d.ts +6 -0
  197. package/lib/table/interfaces/table-row-action.interface.d.ts +9 -0
  198. package/lib/table/interfaces/table-row-item.interface.d.ts +9 -0
  199. package/lib/table/table.module.d.ts +17 -3
  200. package/lib/text-highlight/text-highlight.component.d.ts +1 -1
  201. package/package.json +15 -20
  202. package/services/index.d.ts +1 -1
  203. package/services/interaction.service.d.ts +20 -10
  204. package/types/component-size.d.ts +2 -2
  205. package/types/component-theme.d.ts +1 -1
  206. package/utilities/boolean-props.d.ts +1 -1
  207. package/utilities/number-props.d.ts +1 -1
  208. package/esm2020/lib/backdrop/backdrop.component.mjs +0 -40
  209. package/esm2020/lib/badge/badge.component.mjs +0 -99
  210. package/esm2020/lib/data-card/data-card.component.mjs +0 -128
  211. package/esm2020/lib/data-card/data-card.module.mjs +0 -20
  212. package/esm2020/lib/dropdown/dropdown.component.mjs +0 -142
  213. package/esm2020/lib/form-field/controls/input/input.directive.mjs +0 -233
  214. package/esm2020/lib/form-field/controls/radio/radio-button/radio-button.component.mjs +0 -260
  215. package/esm2020/lib/form-field/controls/radio/radio-group/radio-group.directive.mjs +0 -289
  216. package/esm2020/lib/form-field/controls/select/option/select-option.component.mjs +0 -139
  217. package/esm2020/lib/form-field/controls/select/select-model.mjs +0 -150
  218. package/esm2020/lib/form-field/controls/select/select.component.mjs +0 -522
  219. package/esm2020/lib/form-field/controls/shared/toggle/toggle.component.mjs +0 -96
  220. package/esm2020/lib/form-field/directives/form-root.directive.mjs +0 -91
  221. package/esm2020/lib/form-field/shared/error-state.mixin.mjs +0 -24
  222. package/esm2020/lib/modal/modal.component.mjs +0 -187
  223. package/esm2020/lib/pagination/pagination.component.mjs +0 -145
  224. package/esm2020/lib/pagination/pagination.module.mjs +0 -37
  225. package/esm2020/lib/scrollable/scrollable.component.mjs +0 -186
  226. package/esm2020/lib/select-icon/select-icon.component.mjs +0 -308
  227. package/esm2020/lib/table/index.mjs +0 -3
  228. package/esm2020/lib/table/table.component.mjs +0 -33
  229. package/esm2020/lib/table/table.module.mjs +0 -19
  230. package/esm2020/services/interaction.service.mjs +0 -81
  231. package/fesm2015/impartner-design-components.mjs +0 -8595
  232. package/fesm2015/impartner-design-components.mjs.map +0 -1
  233. package/fesm2020/impartner-design-components.mjs.map +0 -1
  234. package/lib/table/table.component.d.ts +0 -15
  235. /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
  236. /package/{esm2020 → esm2022}/impartner-design-components.mjs +0 -0
  237. /package/{esm2020 → esm2022}/lib/alert/index.mjs +0 -0
  238. /package/{esm2020 → esm2022}/lib/alert/theme/alert-theme.mjs +0 -0
  239. /package/{esm2020 → esm2022}/lib/alert/theme/index.mjs +0 -0
  240. /package/{esm2020 → esm2022}/lib/avatar/index.mjs +0 -0
  241. /package/{esm2020 → esm2022}/lib/avatar-group/index.mjs +0 -0
  242. /package/{esm2020 → esm2022}/lib/backdrop/index.mjs +0 -0
  243. /package/{esm2020 → esm2022}/lib/badge/index.mjs +0 -0
  244. /package/{esm2020 → esm2022}/lib/badge/types/badge-icon.mjs +0 -0
  245. /package/{esm2020 → esm2022}/lib/badge/types/index.mjs +0 -0
  246. /package/{esm2020 → esm2022}/lib/branding/index.mjs +0 -0
  247. /package/{esm2020 → esm2022}/lib/breadcrumb/index.mjs +0 -0
  248. /package/{esm2020 → esm2022}/lib/button/index.mjs +0 -0
  249. /package/{esm2020 → esm2022}/lib/button/themes/button-theme.mjs +0 -0
  250. /package/{esm2020 → esm2022}/lib/button/themes/index.mjs +0 -0
  251. /package/{esm2020 → esm2022}/lib/button-group/index.mjs +0 -0
  252. /package/{esm2020 → esm2022}/lib/card-heading/index.mjs +0 -0
  253. /package/{esm2020 → esm2022}/lib/data-card/index.mjs +0 -0
  254. /package/{esm2020 → esm2022}/lib/dropdown/components/index.mjs +0 -0
  255. /package/{esm2020 → esm2022}/lib/dropdown/index.mjs +0 -0
  256. /package/{esm2020 → esm2022}/lib/dropdown/types/dropdown-position.mjs +0 -0
  257. /package/{esm2020 → esm2022}/lib/dropdown/types/index.mjs +0 -0
  258. /package/{esm2020 → esm2022}/lib/file-upload/directives/index.mjs +0 -0
  259. /package/{esm2020 → esm2022}/lib/file-upload/index.mjs +0 -0
  260. /package/{esm2020 → esm2022}/lib/file-upload/pipes/index.mjs +0 -0
  261. /package/{esm2020 → esm2022}/lib/form-field/controls/checkbox/index.mjs +0 -0
  262. /package/{esm2020 → esm2022}/lib/form-field/controls/index.mjs +0 -0
  263. /package/{esm2020 → esm2022}/lib/form-field/controls/input/index.mjs +0 -0
  264. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/index.mjs +0 -0
  265. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/injection-tokens.mjs +0 -0
  266. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/index.mjs +0 -0
  267. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-button.interface.mjs +0 -0
  268. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-change-event.interface.mjs +0 -0
  269. /package/{esm2020 → esm2022}/lib/form-field/controls/radio/interfaces/radio-group.interface.mjs +0 -0
  270. /package/{esm2020 → esm2022}/lib/form-field/controls/select/index.mjs +0 -0
  271. /package/{esm2020 → esm2022}/lib/form-field/controls/select/option/index.mjs +0 -0
  272. /package/{esm2020 → esm2022}/lib/form-field/controls/select/option-parent.mjs +0 -0
  273. /package/{esm2020 → esm2022}/lib/form-field/controls/shared/index.mjs +0 -0
  274. /package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/components/index.mjs +0 -0
  275. /package/{esm2020 → esm2022}/lib/form-field/controls/shared/toggle/index.mjs +0 -0
  276. /package/{esm2020 → esm2022}/lib/form-field/directives/index.mjs +0 -0
  277. /package/{esm2020 → esm2022}/lib/form-field/form-field-errors.mjs +0 -0
  278. /package/{esm2020 → esm2022}/lib/form-field/impdc-forms.mjs +0 -0
  279. /package/{esm2020 → esm2022}/lib/form-field/index.mjs +0 -0
  280. /package/{esm2020 → esm2022}/lib/form-field/services/index.mjs +0 -0
  281. /package/{esm2020 → esm2022}/lib/form-field/shared/constructors.type.mjs +0 -0
  282. /package/{esm2020 → esm2022}/lib/form-field/shared/index.mjs +0 -0
  283. /package/{esm2020 → esm2022}/lib/icon/index.mjs +0 -0
  284. /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
  285. /package/{esm2020 → esm2022}/lib/modal/index.mjs +0 -0
  286. /package/{esm2020 → esm2022}/lib/modal/types/index.mjs +0 -0
  287. /package/{esm2020 → esm2022}/lib/pagination/index.mjs +0 -0
  288. /package/{esm2020 → esm2022}/lib/progress-bar/index.mjs +0 -0
  289. /package/{esm2020 → esm2022}/lib/scrollable/index.mjs +0 -0
  290. /package/{esm2020 → esm2022}/lib/select-icon/index.mjs +0 -0
  291. /package/{esm2020 → esm2022}/lib/size-detection/directive/element-size.interface.mjs +0 -0
  292. /package/{esm2020 → esm2022}/lib/size-detection/directive/index.mjs +0 -0
  293. /package/{esm2020 → esm2022}/lib/size-detection/index.mjs +0 -0
  294. /package/{esm2020 → esm2022}/lib/spinner/index.mjs +0 -0
  295. /package/{esm2020 → esm2022}/lib/text-highlight/index.mjs +0 -0
  296. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  297. /package/{esm2020 → esm2022}/types/component-size.mjs +0 -0
  298. /package/{esm2020 → esm2022}/types/index.mjs +0 -0
  299. /package/{esm2020 → esm2022}/utilities/boolean-props.mjs +0 -0
  300. /package/{esm2020 → esm2022}/utilities/dc.mjs +0 -0
  301. /package/{esm2020 → esm2022}/utilities/index.mjs +0 -0
  302. /package/{esm2020 → esm2022}/utilities/lc.mjs +0 -0
  303. /package/{esm2020 → esm2022}/utilities/number-props.mjs +0 -0
  304. /package/{esm2020 → esm2022}/utilities/sanitize.mjs +0 -0
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FontAwesomeIcon, FontAwesomeIconTheme } from '../../constants';
3
- import { InteractionService } from '../../services';
3
+ import { IInteractableComponent, InteractionService } from '../../services';
4
4
  import { ButtonTheme } from '../button';
5
5
  import { ModalComponentSizes, ModalThemes } from './types';
6
6
  import * as i0 from "@angular/core";
@@ -10,14 +10,19 @@ import * as i0 from "@angular/core";
10
10
  * `ModalModule` imports and exports BackdropModule, [ButtonModule](./?path=/docs/design-components-button),
11
11
  * and [IconModule](./?path=/docs/design-components-icon).
12
12
  */
13
- export declare class ModalComponent implements OnInit, OnDestroy {
14
- private _interactionService;
15
- private _interactableId;
13
+ export declare class ModalComponent implements OnInit, OnDestroy, IInteractableComponent {
14
+ private readonly _interactionService;
15
+ private readonly _elementRef;
16
+ private readonly _interactableId;
17
+ private readonly _closed$;
18
+ private _initialized;
16
19
  private _show;
20
+ private _dialogElementRef?;
17
21
  /**
18
22
  * Determines if the Modal should be shown immediately.
19
23
  */
20
24
  set show(show: boolean);
25
+ get show(): boolean;
21
26
  /**
22
27
  * The theme of the Modal. Affects the layout of the Modal as well as some colors.
23
28
  */
@@ -70,17 +75,17 @@ export declare class ModalComponent implements OnInit, OnDestroy {
70
75
  /**
71
76
  * Event emitted when the Modal content is dismissed.
72
77
  */
73
- dismiss: EventEmitter<MouseEvent | Event>;
78
+ dismiss: EventEmitter<Event | MouseEvent>;
74
79
  /**
75
80
  * Event emitted when the Modal content is denied.
76
81
  */
77
- deny: EventEmitter<MouseEvent | Event>;
82
+ deny: EventEmitter<Event | MouseEvent>;
78
83
  /**
79
84
  * Event emitted when the Modal content is accepted.
80
85
  */
81
- accept: EventEmitter<MouseEvent | Event>;
82
- constructor(_interactionService: InteractionService);
83
- get interactableId(): number;
86
+ accept: EventEmitter<Event | MouseEvent>;
87
+ constructor(_interactionService: InteractionService, _elementRef: ElementRef<HTMLElement>);
88
+ get interactableId(): string;
84
89
  get valid(): boolean;
85
90
  get shown(): boolean;
86
91
  get showWorkingIcon(): boolean;
@@ -100,6 +105,8 @@ export declare class ModalComponent implements OnInit, OnDestroy {
100
105
  * Closes/hides the modal. Can be used programmatically.
101
106
  */
102
107
  close(): void;
108
+ private _setupEventHandling;
109
+ private _disableEventHandling;
103
110
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
104
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "impdc-modal", never, { "show": "show"; "theme": "theme"; "size": "size"; "iconName": "iconName"; "iconTheme": "iconTheme"; "titleText": "titleText"; "acceptText": "acceptText"; "dismissable": "dismissable"; "fade": "fade"; "backdrop": "backdrop"; }, { "dismiss": "dismiss"; "deny": "deny"; "accept": "accept"; }, never, ["*", "[dismiss]", "[deny]", "[accept]"], false>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "impdc-modal", never, { "show": { "alias": "show"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconTheme": { "alias": "iconTheme"; "required": false; }; "titleText": { "alias": "titleText"; "required": false; }; "acceptText": { "alias": "acceptText"; "required": false; }; "dismissable": { "alias": "dismissable"; "required": false; }; "fade": { "alias": "fade"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; }, { "dismiss": "dismiss"; "deny": "deny"; "accept": "accept"; }, never, ["*", "[dismiss]", "[deny]", "[accept]"], false, never>;
105
112
  }
@@ -1,3 +1,3 @@
1
1
  import { ComponentSize } from '../../../types';
2
2
  export declare const ModalComponentSizesArr: ComponentSize[];
3
- export declare type ModalComponentSizes = typeof ModalComponentSizesArr[number];
3
+ export type ModalComponentSizes = (typeof ModalComponentSizesArr)[number];
@@ -4,4 +4,4 @@ export declare enum ModalTheme {
4
4
  Destructive = "destructive"
5
5
  }
6
6
  export declare const ModalThemesArr: ModalTheme[];
7
- export declare type ModalThemes = typeof ModalThemesArr[number];
7
+ export type ModalThemes = (typeof ModalThemesArr)[number];
@@ -1,4 +1,5 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { IElementSize } from '../size-detection';
2
3
  import * as i0 from "@angular/core";
3
4
  /**
4
5
  * The `PaginationComponent` (`<impdc-pagination` or `<div impdc-pagination`) is a control for paged content such as tables or lists.
@@ -6,6 +7,7 @@ import * as i0 from "@angular/core";
6
7
  * `ModalModule` imports and exports ImpdcFormsModule and [ButtonModule](./?path=/docs/design-components-button).
7
8
  */
8
9
  export declare class PaginationComponent {
10
+ private readonly _changeDetectorRef;
9
11
  private _summary;
10
12
  /**
11
13
  * The current page.
@@ -25,19 +27,32 @@ export declare class PaginationComponent {
25
27
  */
26
28
  set summary(summary: string);
27
29
  get summary(): string;
30
+ /**
31
+ * The label text for the per page select input.
32
+ */
33
+ perPageLabel: string;
28
34
  /**
29
35
  * Emitted when the page number is changed, specifying the target page number.
30
36
  */
31
37
  readonly goToPage: EventEmitter<number>;
38
+ /**
39
+ * Emitted when the per page is changed, specifying the new value.
40
+ */
41
+ readonly perPageChange: EventEmitter<number>;
32
42
  get totalPages(): number;
33
43
  get firstPageResult(): number;
34
44
  get lastPageResult(): number;
35
- private _getPageClamped;
45
+ /** @ignore */
46
+ mobile: boolean;
47
+ constructor(_changeDetectorRef: ChangeDetectorRef);
48
+ handleResize(size: IElementSize): void;
36
49
  goToPreviousPage(): void;
37
50
  goToNextPage(): void;
38
51
  goToExactPageFromEvent({ target }: FocusEvent): void;
39
52
  goToExactPage(page: number | string): void;
53
+ handlePerPageChange(): void;
40
54
  preventDefaultAndBlur(event: Event): void;
55
+ private _getPageClamped;
41
56
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "impdc-pagination, div[impdc-pagination]", never, { "page": "page"; "perPage": "perPage"; "total": "total"; "summary": "summary"; }, { "goToPage": "goToPage"; }, never, never, false>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "impdc-pagination, div[impdc-pagination]", never, { "page": { "alias": "page"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "total": { "alias": "total"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "perPageLabel": { "alias": "perPageLabel"; "required": false; }; }, { "goToPage": "goToPage"; "perPageChange": "perPageChange"; }, never, never, false, never>;
43
58
  }
@@ -5,9 +5,10 @@ import * as i3 from "../button/button.module";
5
5
  import * as i4 from "@angular/forms";
6
6
  import * as i5 from "../form-field/impdc-forms.module";
7
7
  import * as i6 from "../icon/icon.module";
8
+ import * as i7 from "../size-detection/size-detection.module";
8
9
  export declare class PaginationModule {
9
10
  constructor();
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<PaginationModule, [typeof i1.PaginationComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.FormsModule, typeof i5.ImpdcFormsModule, typeof i6.IconModule], [typeof i3.ButtonModule, typeof i5.ImpdcFormsModule, typeof i6.IconModule, typeof i1.PaginationComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PaginationModule, [typeof i1.PaginationComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof i4.FormsModule, typeof i5.ImpdcFormsModule, typeof i6.IconModule, typeof i7.SizeDetectionModule], [typeof i3.ButtonModule, typeof i5.ImpdcFormsModule, typeof i6.IconModule, typeof i1.PaginationComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<PaginationModule>;
13
14
  }
@@ -18,5 +18,5 @@ export declare class ProgressBarComponent {
18
18
  progressPercentage: number;
19
19
  constructor();
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "impdc-progress-bar", never, { "labelText": "labelText"; "statusText": "statusText"; "progressPercentage": "progressPercentage"; }, {}, never, never, false>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "impdc-progress-bar", never, { "labelText": { "alias": "labelText"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "progressPercentage": { "alias": "progressPercentage"; "required": false; }; }, {}, never, never, false, never>;
22
22
  }
@@ -37,5 +37,5 @@ export declare class ScrollableComponent implements OnChanges, AfterViewInit {
37
37
  private _getAncestorBackgroundColor;
38
38
  private _getBackGroundColor;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "impdc-scrollable, div[impdc-scrollable]", never, { "scrollUnit": "scrollUnit"; "clickScrollMultiplier": "clickScrollMultiplier"; }, {}, never, ["*"], false>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "impdc-scrollable, div[impdc-scrollable]", never, { "scrollUnit": { "alias": "scrollUnit"; "required": false; }; "clickScrollMultiplier": { "alias": "clickScrollMultiplier"; "required": false; }; }, {}, never, ["*"], false, never>;
41
41
  }
@@ -118,6 +118,6 @@ export declare class SelectIconComponent extends _SelectIconComponentBase implem
118
118
  protected _onBlur(): void;
119
119
  private _buildChangeEvent;
120
120
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectIconComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
121
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectIconComponent, "impdc-select-icon", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "allowSearch": "allowSearch"; "iconOptions": "iconOptions"; "showText": "showText"; "showSelectedText": "showSelectedText"; "placeholder": "placeholder"; "errorStateMatcher": "errorStateMatcher"; "value": "value"; "id": "id"; "required": "required"; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, never, never, false>;
121
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectIconComponent, "impdc-select-icon", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; "iconOptions": { "alias": "iconOptions"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "showSelectedText": { "alias": "showSelectedText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, never, never, false, never>;
122
122
  }
123
123
  export {};
@@ -10,5 +10,5 @@ export declare class SizeDetectorDirective implements OnDestroy {
10
10
  private _observe;
11
11
  private _unobserve;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SizeDetectorDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDetectorDirective, "[impdcSizeDetector]", never, {}, { "resized": "resized"; }, never, never, false>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDetectorDirective, "[impdcSizeDetector]", never, {}, { "resized": "resized"; }, never, never, false, never>;
14
14
  }
@@ -9,5 +9,5 @@ export declare class SpinnerComponent {
9
9
  */
10
10
  accessibilityText: string;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "impdc-spinner, div[impdc-spinner]", never, { "accessibilityText": "accessibilityText"; }, {}, never, never, false>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "impdc-spinner, div[impdc-spinner]", never, { "accessibilityText": { "alias": "accessibilityText"; "required": false; }; }, {}, never, never, false, never>;
13
13
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TableBulkActionsComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableBulkActionsComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableBulkActionsComponent, "impdc-table-bulk-actions", never, {}, {}, never, ["[selectedTotal]", "[bulkAction]"], false, never>;
5
+ }
@@ -0,0 +1,14 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ColumnHeadingComponent {
4
+ isSortable: boolean;
5
+ columnIndex?: number;
6
+ sortColumnIndex?: number;
7
+ direction: 'asc' | 'desc';
8
+ text: string;
9
+ get sortedColumn(): boolean;
10
+ sort: EventEmitter<number>;
11
+ onSort(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeadingComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeadingComponent, "impdc-column-heading", never, { "isSortable": { "alias": "isSortable"; "required": false; }; "columnIndex": { "alias": "columnIndex"; "required": false; }; "sortColumnIndex": { "alias": "sortColumnIndex"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, { "sort": "sort"; }, never, never, false, never>;
14
+ }
@@ -0,0 +1,3 @@
1
+ export * from './column-heading/column-heading.component';
2
+ export * from './bulk-actions/bulk-actions.component';
3
+ export * from './row-actions/row-actions.component';
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ITableActionsColumnDef, ITableRowAction, ITableRowItem } from '../../interfaces';
3
+ import { BrandedDirective } from '../../../branding';
4
+ import { ButtonTheme } from '../../../button';
5
+ import { ComponentTheme } from '../../../../types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class RowActionsComponent {
8
+ columnDef: ITableActionsColumnDef<any>;
9
+ rowItem: ITableRowItem;
10
+ lastColumn: boolean;
11
+ actionClick: EventEmitter<string>;
12
+ /** @ignore */
13
+ branded: boolean;
14
+ constructor(_branded: BrandedDirective);
15
+ isVisible(action: ITableRowAction): boolean;
16
+ handleActionClick(apiName: string): void;
17
+ getColor(action: ITableRowAction): string;
18
+ protected getButtonThemeFromComponentTheme(componentTheme?: ComponentTheme): ButtonTheme;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowActionsComponent, [{ optional: true; }]>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RowActionsComponent, "impdc-row-actions", never, { "columnDef": { "alias": "columnDef"; "required": true; }; "rowItem": { "alias": "rowItem"; "required": true; }; "lastColumn": { "alias": "lastColumn"; "required": false; }; }, { "actionClick": "actionClick"; }, never, never, false, never>;
21
+ }
@@ -0,0 +1,2 @@
1
+ export * from './table.constants';
2
+ export * from './public-table.constants';
@@ -0,0 +1 @@
1
+ export declare const IS_SELECTED_PROPERTY = "isSelected";
@@ -0,0 +1,10 @@
1
+ import { ITableCellOption } from '../interfaces';
2
+ export declare const DEFAULT_PAGE = 1;
3
+ export declare const ROWS_PER_PAGE = 10;
4
+ export declare const SELECTED_ROWS_PER_PAGE: {
5
+ value: string;
6
+ text: string;
7
+ };
8
+ export declare const ROWS_PER_PAGE_GROUP: ITableCellOption[];
9
+ export declare const SORT_COLUMN_INDEX = 0;
10
+ export declare const DEBOUNCE_TIME = 500;
@@ -0,0 +1 @@
1
+ export * from './table.component';
@@ -0,0 +1,133 @@
1
+ import { DatePipe, DecimalPipe, PercentPipe } from '@angular/common';
2
+ import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
3
+ import { TableColumnType } from '../enumerations/index';
4
+ import { ICustomCellRendererComponents, ISortByPayload, ITableActionsColumnDef, ITableEventPayload, ITableRowActionPayload, ITableRowItem, ITableRowItemValue, ITableRowItemValueTypes, TableColumnDef } from '../interfaces/index';
5
+ import { CheckboxChangeEvent } from '../../form-field';
6
+ import { ComponentTheme } from '../../../types';
7
+ import { BrandedDirective } from '../../branding';
8
+ import { PaginationComponent } from '../../pagination';
9
+ import { TableBulkActionsComponent } from '../components';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * The `TableComponent` (`<impdc-table`) is a data table component.
13
+ * To use, import `TableModule` from `@impartner/design-components`.
14
+ */
15
+ export declare class TableComponent implements OnChanges {
16
+ private readonly _datePipe;
17
+ private readonly _percentPipe;
18
+ private readonly _decmialPipe;
19
+ private readonly _changeDetectorRef;
20
+ private _branded;
21
+ /**
22
+ * Whether the table data is currently being loaded. The `<impdc-spinner>` will show if data is loading.
23
+ */
24
+ loading: boolean;
25
+ /**
26
+ * The visible columns of the table. Each `ITableColumnDef` defines properties regarding the display, formatting and interaction of the column's cells.
27
+ * Column/cell color precedence is:
28
+ * 1) `fieldColor` - allows an `ITableColumnDef` to delegate the responsibility of cell color to an `ITableRowItem` property.
29
+ * 2) `colorGetter`- allows an `ITableColumnDef` to delegate the responsibility of cell color to a function of the `ITableRowItem` determined by the developer.
30
+ * 3) `color` - a property of an `ITableColumnDef`.
31
+ */
32
+ columnDefs: TableColumnDef[];
33
+ /**
34
+ * Whether the table is striped.
35
+ */
36
+ striped: boolean;
37
+ /**
38
+ * Whether individual rows can be selected. Will be `true` if explicitly set to `true` or `canSelectAllRows` is `true`.
39
+ */
40
+ set canSelectRows(value: boolean);
41
+ get canSelectRows(): boolean;
42
+ /**
43
+ * Whether all rows can be selected at once. Will be `true` if explicitly set to `true` or if `TableBulkActionsComponent` is content projected.
44
+ */
45
+ set canSelectAllRows(value: boolean);
46
+ get canSelectAllRows(): boolean;
47
+ /**
48
+ * The placeholder text and empty value display text for `<impdc-select>` instances in cells with a `ITableColumnDef` `columnType` = `SingleSelect` or `MultiSelect`.
49
+ */
50
+ selectPlaceholder: string;
51
+ /**
52
+ * The `columnDefs` index of the currently sorted column.
53
+ */
54
+ sortColumnIndex: number;
55
+ /**
56
+ * The direction of the currently sorted column.
57
+ */
58
+ sortDirection: 'asc' | 'desc';
59
+ /**
60
+ * The table row data as an array of `ITableRowItem`.
61
+ */
62
+ tableData: ITableRowItem[];
63
+ /**
64
+ * An array of currently selected IDs from the `tableData` input. Array must be of type `(string | number)[]`.
65
+ */
66
+ set selectedRowIds(value: (string | number)[]);
67
+ get selectedRowIds(): (string | number)[];
68
+ /**
69
+ * The registered custom cell renderer components available to be used in the table instance.
70
+ * For a given `ITableColumnDef` in the `columnDefs` input, the `cellRendererComponent` property should be set to the key of the registered component in this input.
71
+ */
72
+ customCellComponents?: ICustomCellRendererComponents;
73
+ /**
74
+ * Event emitted when one or multiple rows are selected. Emits `(string | number)[]` payload.
75
+ */
76
+ readonly rowSelect: EventEmitter<(string | number)[]>;
77
+ /**
78
+ * Event emitted when a column is sorted. Emits `ISortByPayload` payload.
79
+ */
80
+ readonly sortBy: EventEmitter<ISortByPayload>;
81
+ /**
82
+ * Event emitted when a row link is clicked. Emits `ITableEventPayload` payload.
83
+ */
84
+ readonly linkClick: EventEmitter<ITableEventPayload<ITableRowItem>>;
85
+ /**
86
+ * Event emitted when a row action is clicked. Emits an `ITableRowActionPayload` payload.
87
+ */
88
+ readonly rowActionClick: EventEmitter<ITableRowActionPayload<ITableRowItem>>;
89
+ /** @ignore */
90
+ paginationComponent?: PaginationComponent;
91
+ /** @ignore */
92
+ bulkActions?: TableBulkActionsComponent;
93
+ /**
94
+ * Event emitted when a row input value is changed. Emitted cells of `columnType` `SinglSelect`, `MultiSelect`, `Input`, `Boolean` or `Icon`.
95
+ * Not emitted if column definition property `disabled` = `true`. Emits `ITableEventPayload` payload.
96
+ */
97
+ readonly inputChange: EventEmitter<ITableEventPayload<ITableRowItem>>;
98
+ /** @ignore */
99
+ readonly cellType: typeof TableColumnType;
100
+ /** @ignore */
101
+ allSelected: boolean;
102
+ /** @ignore */
103
+ get someSelected(): boolean;
104
+ /** @ignore */
105
+ readonly branded: boolean;
106
+ /** @ignore */
107
+ get tableSpan(): number;
108
+ private _canSelectRows;
109
+ private _canSelectAllRows;
110
+ private _selectedRowIds;
111
+ private readonly _inputChange;
112
+ constructor(_datePipe: DatePipe, _percentPipe: PercentPipe, _decmialPipe: DecimalPipe, _changeDetectorRef: ChangeDetectorRef, _branded: BrandedDirective);
113
+ ngOnChanges(changes: SimpleChanges): void;
114
+ getMailToValue(columnIndex: number, currentRow: ITableRowItem): string;
115
+ getStringValue(columnIndex: number, currentRow: ITableRowItem): string;
116
+ getValue(columnIndex: number, currentRow: ITableRowItem): string | string[];
117
+ getRawValue(columnIndex: number, currentRow: ITableRowItem): ITableRowItemValueTypes<ITableRowItemValue>;
118
+ getCellColor(columnDefinition: TableColumnDef, item: ITableRowItem): string;
119
+ getTheme(columnDefinition: TableColumnDef, item: ITableRowItem): ComponentTheme;
120
+ isSortedColumn(columnIndex: number): boolean;
121
+ isRowSelected(id: string | number): boolean;
122
+ handleSelectAll(event: CheckboxChangeEvent): void;
123
+ handleSort(columnIndex: number): void;
124
+ handleRowSelect(event: CheckboxChangeEvent, rowId: number | string): void;
125
+ handleCellValueChange(columnIndex: number, rowIndex: number, value: string | number | boolean | string[]): void;
126
+ handleLinkClick(columnIndex: number, item: ITableRowItem): void;
127
+ handleActionClick(columnIndex: number, item: ITableRowItem, actionApiName: string): void;
128
+ protected columnDefIsActions(columnDef: TableColumnDef<any>): columnDef is ITableActionsColumnDef<any>;
129
+ private _getColumnDefByIndex;
130
+ private _getValue;
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, [null, null, null, null, { optional: true; host: true; }]>;
132
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "impdc-table", never, { "loading": { "alias": "loading"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "canSelectRows": { "alias": "canSelectRows"; "required": false; }; "canSelectAllRows": { "alias": "canSelectAllRows"; "required": false; }; "selectPlaceholder": { "alias": "selectPlaceholder"; "required": false; }; "sortColumnIndex": { "alias": "sortColumnIndex"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "selectedRowIds": { "alias": "selectedRowIds"; "required": false; }; "customCellComponents": { "alias": "customCellComponents"; "required": false; }; }, { "rowSelect": "rowSelect"; "sortBy": "sortBy"; "linkClick": "linkClick"; "rowActionClick": "rowActionClick"; "inputChange": "inputChange"; }, ["paginationComponent", "bulkActions"], ["impdc-table-bulk-actions", "[impdcTableBulkActions]", "[noData]", "impdc-pagination, div[impdc-pagination]"], false, never>;
133
+ }
@@ -0,0 +1,2 @@
1
+ export * from './table-inject-component.directive';
2
+ export * from './table.directive';
@@ -0,0 +1,16 @@
1
+ import { ComponentFactoryResolver, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { ICustomCellRendererComponents, ITableRowItem, ITableRowItemValue, ITableRowItemValueTypes, TableColumnDef } from '../interfaces/index';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TableInjectComponentDirective implements OnInit {
5
+ private readonly _viewContainerRef;
6
+ private readonly _componentFactoryResolver;
7
+ columnDef: TableColumnDef;
8
+ value: ITableRowItemValueTypes<ITableRowItemValue>;
9
+ rowItem: ITableRowItem;
10
+ customCellComponents: ICustomCellRendererComponents;
11
+ constructor(_viewContainerRef: ViewContainerRef, _componentFactoryResolver: ComponentFactoryResolver);
12
+ ngOnInit(): void;
13
+ private _renderCustomCell;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableInjectComponentDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableInjectComponentDirective, "[impdcTableInjectComponent]", never, { "columnDef": { "alias": "columnDef"; "required": true; }; "value": { "alias": "value"; "required": false; }; "rowItem": { "alias": "rowItem"; "required": false; }; "customCellComponents": { "alias": "customCellComponents"; "required": false; }; }, {}, never, never, false, never>;
16
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * The `TableDirective` (`<table impdcTable`) that adds Hex styling to a `table` element.
4
+ * To use, import `TableModule` or another module that imports and exports that module from `@impartner/design-components`.
5
+ */
6
+ export declare class TableDirective {
7
+ /**
8
+ * Stripes every other row in a slightly darker background color.
9
+ */
10
+ striped: boolean;
11
+ private classTable;
12
+ private get classTableStriped();
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "table[impdcTable]", never, { "striped": { "alias": "striped"; "required": false; }; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1 @@
1
+ export * from './table-column-type';
@@ -0,0 +1,19 @@
1
+ export declare enum TableColumnType {
2
+ Badge = "Badge",
3
+ Boolean = "Boolean",
4
+ Link = "Link",
5
+ Text = "Text",
6
+ Input = "Input",
7
+ Currency = "Currency",
8
+ Decimal = "Decimal",
9
+ Date = "Date",
10
+ DateTime = "DateTime",
11
+ Percentage = "Percentage",
12
+ CellRender = "CellRender",
13
+ SingleSelect = "SingleSelect",
14
+ MultiSelect = "MultiSelect",
15
+ Icon = "Icon",
16
+ Email = "Email",
17
+ Url = "Url",
18
+ Actions = "Actions"
19
+ }
@@ -0,0 +1 @@
1
+ export * from './table-theme.helper';
@@ -0,0 +1,7 @@
1
+ import { ITableRowItem, TableColumnDef } from '../interfaces';
2
+ import { ComponentTheme } from '../../../types';
3
+ export declare class TableThemeHelper {
4
+ static getTheme({ fieldColor, color, colorGetter }: TableColumnDef, currentRow: ITableRowItem): ComponentTheme | undefined;
5
+ static getCellColor(columnDefinition: TableColumnDef, currentRow: ITableRowItem): string;
6
+ static getColor(color?: ComponentTheme): string;
7
+ }
@@ -1,2 +1,7 @@
1
- export { TableComponent } from './table.component';
2
- export { TableModule } from './table.module';
1
+ export * from './table.module';
2
+ export * from './containers';
3
+ export * from './components';
4
+ export * from './directives';
5
+ export * from './helpers';
6
+ export * from './enumerations';
7
+ export * from './interfaces';
@@ -0,0 +1,6 @@
1
+ import { ITableRowItem, ITableRowItemValue, ITableRowItemValueTypes } from './table-row-item.interface';
2
+ export interface ICellRenderer<T = ITableRowItem, P = object> {
3
+ value: ITableRowItemValueTypes<ITableRowItemValue>;
4
+ rowItem: T;
5
+ params?: P;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { Type } from '@angular/core';
2
+ import { ICellRenderer } from './index';
3
+ export type ICustomCellRendererComponents = Record<string, Type<ICellRenderer>>;
@@ -0,0 +1,10 @@
1
+ export * from './table-column-defs.type';
2
+ export * from './table-event-payload.interface';
3
+ export * from './sort-by-payload.interface';
4
+ export * from './table-row-item.interface';
5
+ export * from './cell-renderer.interface';
6
+ export * from './cell-renderer.interface';
7
+ export * from './custom-cell-renderer-components.type';
8
+ export * from './table-cell-option.interface';
9
+ export * from './table-row-action.interface';
10
+ export * from './table-row-action-payload.interface';
@@ -0,0 +1,5 @@
1
+ export interface ISortByPayload {
2
+ field: string;
3
+ columnIndex: number;
4
+ direction: 'asc' | 'desc';
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface ITableCellOption {
2
+ value: string;
3
+ label: string;
4
+ }
@@ -0,0 +1,29 @@
1
+ import { TableColumnType } from '../enumerations/index';
2
+ import { ComponentTheme } from '../../../types';
3
+ import { ITableRowItem } from './table-row-item.interface';
4
+ import { ITableCellOption } from './table-cell-option.interface';
5
+ import { ITableRowAction } from './table-row-action.interface';
6
+ export interface ITableColumnDef<T = ITableRowItem> {
7
+ readonly columnType: TableColumnType;
8
+ title: string;
9
+ field?: string;
10
+ valueGetter?: (record: T) => string;
11
+ color?: ComponentTheme;
12
+ colorGetter?: (record: T) => ComponentTheme;
13
+ fieldColor?: string;
14
+ sorted?: boolean;
15
+ boldedText?: boolean;
16
+ truncated?: number;
17
+ cellRendererComponent?: string;
18
+ cellRendererParams?: object;
19
+ noPadding?: boolean;
20
+ values?: ITableCellOption[];
21
+ iconName?: string;
22
+ disabled?: boolean;
23
+ }
24
+ export interface ITableActionsColumnDef<T = ITableRowItem> extends ITableColumnDef<T> {
25
+ readonly columnType: TableColumnType.Actions;
26
+ actions: ITableRowAction[];
27
+ actionType: 'icon' | 'button' | 'link';
28
+ }
29
+ export type TableColumnDef<T = ITableRowItem> = ITableActionsColumnDef<T> | ITableColumnDef<T>;
@@ -0,0 +1,6 @@
1
+ import { ITableRowItem } from './table-row-item.interface';
2
+ export interface ITableEventPayload<T = ITableRowItem> {
3
+ item: T;
4
+ columnIndex: number;
5
+ value?: string | number | boolean | string[];
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ITableRowItem } from './table-row-item.interface';
2
+ export interface ITableRowActionPayload<T = ITableRowItem> {
3
+ item: T;
4
+ columnIndex: number;
5
+ actionApiName: string;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { ComponentTheme } from 'projects/design-components/src/types';
2
+ import { ITableRowItem } from './table-row-item.interface';
3
+ export interface ITableRowAction {
4
+ apiName: string;
5
+ text: string;
6
+ iconName: string;
7
+ theme?: ComponentTheme;
8
+ isVisible?: (rowItem: ITableRowItem) => boolean;
9
+ }
@@ -0,0 +1,9 @@
1
+ export interface IIdentifiable {
2
+ id: string | number;
3
+ }
4
+ export type ITableRowItemValueTypes<T = never> = string | number | boolean | Array<string | number> | T | Array<T>;
5
+ export interface ITableRowItemBase<T = never> {
6
+ [field: string]: ITableRowItemValueTypes<T>;
7
+ }
8
+ export type ITableRowItemValue = ITableRowItemBase<ITableRowItemBase<ITableRowItemBase>>;
9
+ export type ITableRowItem = IIdentifiable & ITableRowItemValue;
@@ -1,9 +1,23 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./table.component";
3
- import * as i2 from "../button/button.module";
2
+ import * as i1 from "./directives/table.directive";
3
+ import * as i2 from "./containers/table.component";
4
+ import * as i3 from "./components/column-heading/column-heading.component";
5
+ import * as i4 from "./directives/table-inject-component.directive";
6
+ import * as i5 from "./components/bulk-actions/bulk-actions.component";
7
+ import * as i6 from "./components/row-actions/row-actions.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "../button/button.module";
10
+ import * as i9 from "../pagination/pagination.module";
11
+ import * as i10 from "../icon/icon.module";
12
+ import * as i11 from "../form-field/impdc-forms.module";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "../spinner/spinner.module";
15
+ import * as i14 from "../badge/badge.module";
16
+ import * as i15 from "../branding/branding.module";
17
+ import * as i16 from "@ng-bootstrap/ng-bootstrap";
4
18
  export declare class TableModule {
5
19
  constructor();
6
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent], [typeof i2.ButtonModule], [typeof i2.ButtonModule, typeof i1.TableComponent]>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableDirective, typeof i2.TableComponent, typeof i3.ColumnHeadingComponent, typeof i4.TableInjectComponentDirective, typeof i5.TableBulkActionsComponent, typeof i6.RowActionsComponent], [typeof i7.CommonModule, typeof i8.ButtonModule, typeof i9.PaginationModule, typeof i10.IconModule, typeof i11.ImpdcFormsModule, typeof i12.FormsModule, typeof i13.SpinnerModule, typeof i14.BadgeModule, typeof i15.BrandingModule, typeof i16.NgbDropdownModule], [typeof i8.ButtonModule, typeof i1.TableDirective, typeof i3.ColumnHeadingComponent, typeof i5.TableBulkActionsComponent, typeof i9.PaginationModule, typeof i2.TableComponent, typeof i10.IconModule, typeof i4.TableInjectComponentDirective, typeof i15.BrandingModule, typeof i6.RowActionsComponent]>;
8
22
  static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
9
23
  }