@ngstarter-ui/components 22.3.5 → 22.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +27 -0
  2. package/ai/component-registry.json +186 -101
  3. package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
  4. package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
  5. package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
  6. package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
  7. package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
  8. package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
  9. package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
  10. package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
  11. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
  12. package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
  13. package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
  14. package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
  15. package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
  16. package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
  17. package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
  18. package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
  19. package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
  20. package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
  21. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
  22. package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
  23. package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
  24. package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
  25. package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
  26. package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
  27. package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
  28. package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
  29. package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
  30. package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
  31. package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
  32. package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
  33. package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
  34. package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
  35. package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
  36. package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
  37. package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
  38. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
  39. package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
  40. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
  42. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
  44. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
  46. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
  48. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
  50. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
  52. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
  54. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
  56. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
  58. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
  60. package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
  62. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
  64. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
  66. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
  68. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
  70. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
  71. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
  72. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
  73. package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
  74. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
  75. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
  76. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
  77. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
  78. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
  79. package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
  80. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
  81. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
  82. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
  83. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
  84. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
  85. package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
  86. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
  87. package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
  88. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
  89. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
  90. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
  91. package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
  92. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  93. package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
  94. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
  95. package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
  96. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
  97. package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
  98. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
  99. package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
  100. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  101. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
  102. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
  103. package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
  104. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  105. package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
  106. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
  107. package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
  108. package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
  109. package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
  110. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
  111. package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
  112. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
  113. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
  114. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
  115. package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
  116. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
  117. package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
  118. package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
  119. package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
  120. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
  121. package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
  122. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
  123. package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
  124. package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
  125. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
  126. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  127. package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
  128. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  129. package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
  130. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
  131. package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
  132. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
  133. package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
  134. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
  135. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
  136. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
  137. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
  138. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  139. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
  140. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
  141. package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
  142. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
  143. package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
  144. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  145. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
  146. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
  147. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
  148. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
  149. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
  150. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
  151. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
  152. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
  153. package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
  154. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
  155. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
  156. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
  157. package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
  158. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
  159. package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
  160. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
  161. package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
  162. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
  163. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
  164. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  165. package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
  166. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
  167. package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
  168. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
  169. package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
  170. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
  171. package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
  172. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
  173. package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
  174. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
  175. package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
  176. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  177. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
  178. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
  179. package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
  180. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
  181. package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
  182. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
  183. package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
  184. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
  185. package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
  186. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
  187. package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
  188. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
  189. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
  190. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
  191. package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
  192. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
  193. package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
  194. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
  195. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
  196. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  197. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
  198. package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
  199. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
  200. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  201. package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
  202. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  203. package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
  204. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
  205. package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
  206. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
  207. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
  208. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
  209. package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
  210. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
  212. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
  213. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
  214. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
  215. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
  216. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
  218. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
  220. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
  222. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
  223. package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
  224. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
  225. package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
  226. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
  227. package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
  228. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
  229. package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
  230. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
  231. package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
  232. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
  233. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
  234. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  235. package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
  236. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
  238. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
  239. package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
  240. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
  241. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
  242. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
  243. package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
  244. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  245. package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
  246. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
  247. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
  248. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
  249. package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
  250. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
  251. package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
  252. package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
  253. package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
  255. package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
  257. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
  259. package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
  260. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  261. package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
  263. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
  264. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
  265. package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
  266. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
  267. package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
  268. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
  269. package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
  270. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
  271. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
  272. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
  273. package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
  274. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
  275. package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
  276. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
  277. package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
  278. package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
  279. package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
  280. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
  281. package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
  282. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
  283. package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
  285. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
  287. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
  289. package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
  290. package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
  291. package/fesm2022/ngstarter-ui-components.mjs +3 -5
  292. package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
  293. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
  294. package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
  295. package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
  296. package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
  297. package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
  298. package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
  299. package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
  300. package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
  301. package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
  302. package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
  303. package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
  304. package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
  305. package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
  306. package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
  307. package/package.json +11 -10
  308. package/styles/_tokens.scss +1 -0
  309. package/types/ngstarter-ui-components-action-required.d.ts +34 -14
  310. package/types/ngstarter-ui-components-alert.d.ts +53 -44
  311. package/types/ngstarter-ui-components-announcement.d.ts +74 -53
  312. package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
  313. package/types/ngstarter-ui-components-avatar.d.ts +113 -66
  314. package/types/ngstarter-ui-components-badge.d.ts +73 -37
  315. package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
  316. package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
  317. package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
  318. package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
  319. package/types/ngstarter-ui-components-button.d.ts +69 -27
  320. package/types/ngstarter-ui-components-calendar.d.ts +123 -71
  321. package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
  322. package/types/ngstarter-ui-components-card.d.ts +75 -71
  323. package/types/ngstarter-ui-components-carousel.d.ts +115 -69
  324. package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
  325. package/types/ngstarter-ui-components-chips.d.ts +288 -195
  326. package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
  327. package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
  328. package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
  329. package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
  330. package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
  331. package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
  332. package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
  333. package/types/ngstarter-ui-components-confirm.d.ts +24 -29
  334. package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
  335. package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
  336. package/types/ngstarter-ui-components-core.d.ts +513 -467
  337. package/types/ngstarter-ui-components-country-select.d.ts +170 -97
  338. package/types/ngstarter-ui-components-crop.d.ts +67 -52
  339. package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
  340. package/types/ngstarter-ui-components-data-view.d.ts +811 -567
  341. package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
  342. package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
  343. package/types/ngstarter-ui-components-dialog.d.ts +138 -116
  344. package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
  345. package/types/ngstarter-ui-components-divider.d.ts +29 -17
  346. package/types/ngstarter-ui-components-drawer.d.ts +39 -30
  347. package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
  348. package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
  349. package/types/ngstarter-ui-components-events.d.ts +73 -57
  350. package/types/ngstarter-ui-components-expand.d.ts +55 -25
  351. package/types/ngstarter-ui-components-expansion.d.ts +93 -64
  352. package/types/ngstarter-ui-components-file-type.d.ts +53 -27
  353. package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
  354. package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
  355. package/types/ngstarter-ui-components-form-field.d.ts +116 -105
  356. package/types/ngstarter-ui-components-gauge.d.ts +32 -20
  357. package/types/ngstarter-ui-components-grid.d.ts +66 -50
  358. package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
  359. package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
  360. package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
  361. package/types/ngstarter-ui-components-icon.d.ts +39 -38
  362. package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
  363. package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
  364. package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
  365. package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
  366. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
  367. package/types/ngstarter-ui-components-incidents.d.ts +97 -104
  368. package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
  369. package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
  370. package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
  371. package/types/ngstarter-ui-components-input.d.ts +82 -54
  372. package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
  373. package/types/ngstarter-ui-components-kbd.d.ts +8 -12
  374. package/types/ngstarter-ui-components-layout.d.ts +131 -87
  375. package/types/ngstarter-ui-components-list.d.ts +123 -88
  376. package/types/ngstarter-ui-components-logo.d.ts +21 -21
  377. package/types/ngstarter-ui-components-marquee.d.ts +41 -34
  378. package/types/ngstarter-ui-components-menu.d.ts +329 -221
  379. package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
  380. package/types/ngstarter-ui-components-navigation.d.ts +186 -125
  381. package/types/ngstarter-ui-components-notifications.d.ts +104 -89
  382. package/types/ngstarter-ui-components-number-input.d.ts +138 -96
  383. package/types/ngstarter-ui-components-option.d.ts +102 -68
  384. package/types/ngstarter-ui-components-overlay.d.ts +7 -12
  385. package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
  386. package/types/ngstarter-ui-components-paginator.d.ts +171 -129
  387. package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
  388. package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
  389. package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
  390. package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
  391. package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
  392. package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
  393. package/types/ngstarter-ui-components-popover.d.ts +128 -89
  394. package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
  395. package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
  396. package/types/ngstarter-ui-components-radio.d.ts +100 -47
  397. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
  398. package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
  399. package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
  400. package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
  401. package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
  402. package/types/ngstarter-ui-components-segmented.d.ts +93 -61
  403. package/types/ngstarter-ui-components-select.d.ts +366 -266
  404. package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
  405. package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
  406. package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
  407. package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
  408. package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
  409. package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
  410. package/types/ngstarter-ui-components-slider.d.ts +123 -82
  411. package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
  412. package/types/ngstarter-ui-components-sort.d.ts +99 -63
  413. package/types/ngstarter-ui-components-spinner.d.ts +49 -27
  414. package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
  415. package/types/ngstarter-ui-components-split.d.ts +276 -195
  416. package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
  417. package/types/ngstarter-ui-components-stepper.d.ts +57 -43
  418. package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
  419. package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
  420. package/types/ngstarter-ui-components-table.d.ts +256 -228
  421. package/types/ngstarter-ui-components-tabs.d.ts +231 -138
  422. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
  423. package/types/ngstarter-ui-components-tiles.d.ts +166 -104
  424. package/types/ngstarter-ui-components-timeline.d.ts +45 -57
  425. package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
  426. package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
  427. package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
  428. package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
  429. package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
  430. package/types/ngstarter-ui-components-tree.d.ts +355 -229
  431. package/types/ngstarter-ui-components-upload.d.ts +216 -131
  432. package/types/ngstarter-ui-components-video-player.d.ts +130 -67
  433. package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
  434. package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
  435. package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
  436. package/types/ngstarter-ui-components.d.ts +2 -2
  437. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-8OmuepvH.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-Dp5tISk3.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-BbBs-R_y.mjs.map +0 -1
  443. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
  444. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
  445. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
  446. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
  447. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-DGCCeU-Y.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-BJfRgtaA.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-C_L7hF2G.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-durrPUhm.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-BoL1jZpT.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs +0 -235
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-ChZpgXO5.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-DwyNFnII.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-BWpJv6CO.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-BvNvkqTO.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-tgNKltfK.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-BcAlqmh8.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-S474I51r.mjs.map +0 -1
  471. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
  472. package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
  473. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-Dj82fxTI.mjs.map +0 -1
  475. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
  476. package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ngstarter-ui-components-table.mjs","sources":["../../../projects/components/table/src/table/table.ts","../../../projects/components/table/src/table/table.html","../../../projects/components/table/src/cell/cell.ts","../../../projects/components/table/src/cell-def.ts","../../../projects/components/table/src/column-def.ts","../../../projects/components/table/src/footer-cell/footer-cell.ts","../../../projects/components/table/src/footer-cell-def.ts","../../../projects/components/table/src/footer-row/footer-row.ts","../../../projects/components/table/src/footer-row/footer-row.html","../../../projects/components/table/src/footer-row-def.ts","../../../projects/components/table/src/header-cell/header-cell.ts","../../../projects/components/table/src/header-cell-def.ts","../../../projects/components/table/src/header-row/header-row.ts","../../../projects/components/table/src/header-row/header-row.html","../../../projects/components/table/src/header-row-def.ts","../../../projects/components/table/src/no-data-row.ts","../../../projects/components/table/src/row/row.ts","../../../projects/components/table/src/row/row.html","../../../projects/components/table/src/row-def.ts","../../../projects/components/table/src/text-column/text-column.ts","../../../projects/components/table/src/text-column/text-column.html","../../../projects/components/table/src/table-data-source.ts","../../../projects/components/table/src/native-table/native-table.ts","../../../projects/components/table/src/native-table/native-table.html","../../../projects/components/table/ngstarter-ui-components-table.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ContentChildren,\n QueryList,\n signal,\n DestroyRef,\n inject\n} from '@angular/core';\nimport {\n CdkColumnDef,\n CdkHeaderRowDef,\n CdkTable,\n CDK_TABLE,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n NoDataRowOutlet,\n STICKY_POSITIONING_LISTENER,\n CdkTableModule,\n} from '@angular/cdk/table';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-table, table[ngs-table]',\n exportAs: 'ngsTable',\n imports: [\n CdkTableModule,\n HeaderRowOutlet,\n FooterRowOutlet,\n DataRowOutlet,\n NoDataRowOutlet,\n ],\n templateUrl: './table.html',\n styleUrl: './table.scss',\n providers: [\n { provide: CdkTable, useExisting: forwardRef(() => Table) },\n { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-table not-prose',\n '[class.ngs-table-fixed-layout]': 'fixedLayout',\n '[class.ngs-table-sticky]': 'hasStickyColumns()',\n 'role': 'grid'\n },\n})\nexport class Table<T> extends CdkTable<T> {\n hideHeader = input(false, { transform: booleanAttribute });\n hideBody = input(false, { transform: booleanAttribute });\n hideFooter = input(false, { transform: booleanAttribute });\n\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * Whether the table has any sticky header rows.\n * This is used to apply the 'ngs-table-sticky-header' class.\n */\n private readonly _hasStickyHeader = signal<boolean>(false);\n\n readonly hasStickyHeader = computed(() => this._hasStickyHeader());\n\n // We define our own queries to track changes, avoiding conflict with CdkTable's internal properties.\n // Angular will populate these just fine alongside the parent's queries.\n @ContentChildren(CdkHeaderRowDef, { descendants: true })\n headerRowDefsQuery!: QueryList<CdkHeaderRowDef>;\n\n @ContentChildren(CdkColumnDef, { descendants: true })\n columnDefsQuery!: QueryList<CdkColumnDef>;\n\n /**\n * Whether the table has any sticky columns.\n */\n private readonly _hasStickyColumns = signal<boolean>(false);\n\n readonly hasStickyColumns = computed(() => this._hasStickyColumns());\n\n private _updateStickyStates(): void {\n if (this.headerRowDefsQuery) {\n const headerRowDefs = this.headerRowDefsQuery.toArray();\n const hasStickyHeaderRows = headerRowDefs.some((def: any) => def.sticky);\n this._hasStickyHeader.set(hasStickyHeaderRows);\n }\n if (this.columnDefsQuery) {\n const colDefs = this.columnDefsQuery.toArray();\n const hasStickyColumns = colDefs.some((def: any) => def.sticky || def.stickyEnd);\n\n this._hasStickyColumns.set(hasStickyColumns);\n\n // Directly set the property on the base class.\n // This triggers the base class setter logic which handles style updates.\n this.fixedLayout = hasStickyColumns;\n }\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n }\n\n override ngAfterContentInit(): void {\n super.ngAfterContentInit();\n\n this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this._updateStickyStates();\n }\n\n protected override stickyCssClass = 'ngs-table-sticky';\n}\n","<thead [class.ngs-table-sticky-header]=\"hasStickyHeader()\" [class.hidden]=\"hideHeader()\">\n <ng-container headerRowOutlet />\n</thead>\n<tbody [class.hidden]=\"hideBody()\">\n <ng-container rowOutlet />\n <ng-container noDataRowOutlet />\n</tbody>\n<tfoot [class.hidden]=\"hideFooter()\">\n <ng-container footerRowOutlet />\n</tfoot>\n","import { Directive } from '@angular/core';\nimport { CdkCell } from '@angular/cdk/table';\n\n/** Cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-cell, [ngs-cell], td[ngs-cell]',\n host: {\n 'class': 'ngs-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class Cell extends CdkCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkCellDef } from '@angular/cdk/table';\n\n/** Cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsCellDef]',\n standalone: true,\n providers: [{provide: CdkCellDef, useExisting: forwardRef(() => CellDef)}],\n})\nexport class CellDef extends CdkCellDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkColumnDef } from '@angular/cdk/table';\n\n/**\n * Column definition for the ngs-table.\n * Defines a set of cells available for a table column.\n */\n@Directive({\n selector: '[ngsColumnDef]',\n standalone: true,\n providers: [{provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef)}],\n inputs: ['name: ngsColumnDef'],\n})\nexport class ColumnDef extends CdkColumnDef {}\n","import { Directive } from '@angular/core';\nimport { CdkFooterCell } from '@angular/cdk/table';\n\n/** Footer cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]',\n host: {\n 'class': 'ngs-footer-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class FooterCell extends CdkFooterCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterCellDef } from '@angular/cdk/table';\n\n/** Footer cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterCellDef]',\n standalone: true,\n providers: [{provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef)}],\n})\nexport class FooterCellDef extends CdkFooterCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkFooterRow\n} from '@angular/cdk/table';\n\n/** Footer template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]',\n templateUrl: './footer-row.html',\n styleUrl: './footer-row.scss',\n host: {\n 'class': 'ngs-footer-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow)}],\n})\nexport class FooterRow extends CdkFooterRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterRowDef } from '@angular/cdk/table';\n\n/** Footer row definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterRowDef]',\n standalone: true,\n providers: [{provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef)}],\n inputs: ['columns: ngsFooterRowDef', 'sticky: ngsFooterRowDefSticky'],\n})\nexport class FooterRowDef extends CdkFooterRowDef {}\n","import { Directive } from '@angular/core';\nimport { CdkHeaderCell } from '@angular/cdk/table';\n\n/** Header cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]',\n host: {\n 'class': 'ngs-header-cell',\n 'role': 'columnheader',\n },\n standalone: true,\n})\nexport class HeaderCell extends CdkHeaderCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderCellDef } from '@angular/cdk/table';\n\n/** Header cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderCellDef]',\n standalone: true,\n providers: [{provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef)}],\n})\nexport class HeaderCellDef extends CdkHeaderCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkHeaderRow\n} from '@angular/cdk/table';\n\n/** Header template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-header-row, [ngs-header-row], tr[ngs-header-row]',\n templateUrl: './header-row.html',\n styleUrl: './header-row.scss',\n host: {\n 'class': 'ngs-header-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow)}],\n})\nexport class HeaderRow extends CdkHeaderRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderRowDef } from '@angular/cdk/table';\n\n/** Header row definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderRowDef]',\n standalone: true,\n providers: [{provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef)}],\n inputs: ['columns: ngsHeaderRowDef', 'sticky: ngsHeaderRowDefSticky'],\n})\nexport class HeaderRowDef extends CdkHeaderRowDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkNoDataRow } from '@angular/cdk/table';\n\n/** Row that can be used to display a message when no data is shown in the table. */\n@Directive({\n selector: 'ng-template[ngsNoDataRow]',\n standalone: true,\n providers: [{provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow)}],\n})\nexport class NoDataRow extends CdkNoDataRow {\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkRow\n} from '@angular/cdk/table';\n\n/** Data row template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-row, [ngs-row], tr[ngs-row]',\n templateUrl: './row.html',\n styleUrl: './row.scss',\n host: {\n 'class': 'ngs-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkRow, useExisting: forwardRef(() => Row)}],\n})\nexport class Row extends CdkRow {}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkRowDef } from '@angular/cdk/table';\n\n/** Data row definition for the ngs-table. */\n@Directive({\n selector: '[ngsRowDef]',\n standalone: true,\n providers: [{provide: CdkRowDef, useExisting: forwardRef(() => RowDef)}],\n inputs: ['columns: ngsRowDefColumns', 'when: ngsRowDefWhen'],\n})\nexport class RowDef<T> extends CdkRowDef<T> {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { CdkTextColumn } from '@angular/cdk/table';\nimport { ColumnDef } from '../column-def';\nimport { CellDef } from '../cell-def';\nimport { HeaderCellDef } from '../header-cell-def';\nimport { HeaderCell } from '../header-cell/header-cell';\nimport { Cell } from '../cell/cell';\n\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the same as the data property that it should show.\n * The header can be overridden by setting the `headerText` input.\n *\n * Example usage:\n * <table ngs-table [dataSource]=\"dataSource\">\n * <ngs-text-column name=\"userName\"></ngs-text-column>\n * <tr ngs-header-row *ngsHeaderRowDef=\"['userName']\"></tr>\n * <tr ngs-row *ngsRowDef=\"['userName']\"></tr>\n * </table>\n */\n@Component({\n selector: 'ngs-text-column',\n exportAs: 'ngsTextColumn',\n imports: [\n ColumnDef,\n HeaderCellDef,\n HeaderCell,\n CellDef,\n Cell\n ],\n templateUrl: './text-column.html',\n styleUrl: './text-column.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-text-column',\n }\n})\nexport class TextColumn<T> extends CdkTextColumn<T> {}\n","<ng-container ngsColumnDef>\n <th ngs-header-cell *ngsHeaderCellDef> {{headerText}} </th>\n <td ngs-cell *ngsCellDef=\"let data\"> {{dataAccessor(data, name)}} </td>\n</ng-container>\n","import { DataSource as _DataSource } from '@angular/cdk/collections';\nimport {\n BehaviorSubject,\n combineLatest,\n isObservable,\n merge,\n Observable,\n of,\n Subject,\n Subscription\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { SortDirective, Sort } from '@ngstarter-ui/components/sort';\nimport { Paginator } from '@ngstarter-ui/components/paginator';\n\nexport class TableDataSource<T> extends _DataSource<T> {\n /** Stream that emits when a new data array is set on the data source. */\n private readonly _data: BehaviorSubject<T[]>;\n\n /** Stream emitting render data to the table (depends on ordered data changes). */\n private readonly _renderData: BehaviorSubject<T[]>;\n\n /** Stream that emits when a new filter string is set on the data source. */\n private readonly _filter = new BehaviorSubject<string>('');\n\n /** Used to react to internal changes of the paginator that the table needs to be notified about. */\n private readonly _internalPageChanges = new Subject<void>();\n\n /**\n * Subscription to the changes that should trigger an update to the table's rendered data, such\n * as filtering, sorting, pagination, or base data changes.\n */\n _renderChangesSubscription = Subscription.EMPTY;\n\n /**\n * Cache for quick filter strings. Maps each data object to its concatenated string representation\n * used for filtering.\n */\n private _quickFilterCache = new WeakMap<T & object, string>();\n\n /**\n * The filtered set of data that has been matched by the filter string, or all the data if there\n * is no filter. Useful for knowing the set of data the table represents.\n * For example, a 'scrolled' paginator can use this to know the total number of items when\n * pagination has been applied.\n */\n filteredData: T[];\n\n /**\n * The sorted set of data that has been ordered by the sort state, or all the filtered data if there\n * is no sort. Useful for knowing the set of data the table represents.\n */\n sortedData: T[];\n\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data: T[]) {\n this.invalidateFilterCache();\n this._data.next(data);\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n\n /**\n * Filter term that should be used to filter out objects from the data array. To `TableDataSource`'s\n * default implementation, this string checks for stringification matches anywhere in the object.\n */\n get filter(): string {\n return this._filter.value;\n }\n set filter(filter: string) {\n this._filter.next(filter);\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort(): SortDirective | null {\n return this._sort;\n }\n set sort(sort: SortDirective | null) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n private _sort: SortDirective | null = null;\n\n /**\n * Instance of the Paginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the Paginator will trigger an update to the\n * table's rendered data.\n */\n get paginator(): Paginator | null {\n return this._paginator;\n }\n set paginator(paginator: Paginator | null) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n private _paginator: Paginator | null = null;\n\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the data objects are flat and can be accessed directly by\n * the column name.\n */\n sortingDataAccessor: (data: T, sortHeaderId: string) => string | number = (\n data: T,\n sortHeaderId: string,\n ): string | number => {\n const value = (data as unknown as Record<string, any>)[sortHeaderId];\n return typeof value === 'number' || typeof value === 'string' ? value : '' + value;\n };\n\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * objects by retrieving data using the sortingDataAccessor. May be overridden for a\n * custom implementation of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n sortData: (data: T[], sort: SortDirective) => T[] = (data: T[], sort: SortDirective): T[] => {\n const active = typeof sort.active === 'function' ? sort.active() : sort.active;\n const direction = typeof sort.direction === 'function' ? sort.direction() : sort.direction;\n if (!active || direction === '') {\n return data;\n }\n\n return data.slice().sort((a, b) => {\n const valueA = this.sortingDataAccessor(a, active);\n const valueB = this.sortingDataAccessor(b, active);\n\n // If both valueA and valueB are numbers, use the numeric comparison.\n // If either valueA or valueB is not a number, use the string comparison.\n const comparatorResult =\n typeof valueA === 'number' && typeof valueB === 'number'\n ? valueA - valueB\n : (valueA + '').localeCompare(valueB + '');\n\n return comparatorResult * (direction === 'asc' ? 1 : -1);\n });\n };\n\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has at least one\n * occurrence in that string. By default, the filter string has its whitespace trimmed and the match\n * is case-insensitive. May be overridden for a custom implementation of filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches the data.\n */\n filterPredicate: (data: T, filter: string) => boolean = (data: T, filter: string): boolean => {\n // Transform the filter by converting it to lowercase and splitting into words.\n const transformedFilter = filter.trim().toLowerCase();\n if (!transformedFilter) {\n return true;\n }\n const filterWords = transformedFilter.split(/\\s+/);\n\n // Get the string representation of the data.\n const dataStr = this._getQuickFilterString(data);\n\n // Check if all filter words are present in the data string (any order).\n return filterWords.every(word => dataStr.indexOf(word) !== -1);\n };\n\n /**\n * Gets a string representation of the data object used for quick filtering.\n * Caches the result to improve performance.\n * @param data\n * @private\n */\n /** Call after mutating a row in place; assigning data also invalidates the cache. */\n invalidateFilterCache(row?: T): void {\n if (row !== undefined && typeof row === 'object' && row !== null) {\n this._quickFilterCache.delete(row as T & object);\n } else {\n this._quickFilterCache = new WeakMap<T & object, string>();\n }\n }\n\n private _getQuickFilterString(data: T): string {\n if (typeof data !== 'object' || data === null) {\n return String(data).toLowerCase();\n }\n\n let cached = this._quickFilterCache.get(data as T & object);\n if (cached !== undefined) {\n return cached;\n }\n\n const dataStr = Object.keys(data as unknown as Record<string, any>)\n .reduce((currentTerm: string, key: string) => {\n const val = (data as unknown as Record<string, any>)[key];\n return currentTerm + (val === null || val === undefined ? '' : val) + ' ';\n }, '')\n .toLowerCase();\n\n this._quickFilterCache.set(data as T & object, dataStr);\n return dataStr;\n }\n\n constructor(initialData: T[] = []) {\n super();\n this._data = new BehaviorSubject<T[]>(initialData);\n this._renderData = new BehaviorSubject<T[]>(initialData);\n this.filteredData = initialData;\n this.sortedData = initialData;\n this._updateChangeSubscription();\n }\n\n /**\n * Subscribe to changes that should trigger an update to the table's rendered data.\n */\n _updateChangeSubscription() {\n const sortChange: Observable<Sort | null | void> = this._sort\n ? (merge(\n this._observeOutput<Sort>(this._sort.sortChange),\n this._sort.initialized || of(undefined),\n of(undefined)\n ) as Observable<Sort | void>)\n : of(null);\n const pageChange: Observable<any> = this._paginator\n ? (merge(\n this._observeOutput<any>(this._paginator.page as any),\n this._internalPageChanges,\n this._paginator.initialized || of(undefined),\n of(undefined)\n ) as Observable<any>)\n : of(null);\n const dataStream = this._data;\n\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(\n map(([data]) => this._filterData(data)),\n );\n\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(\n map(([data]) => this._orderData(data)),\n );\n\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(\n map(([data]) => this._pageData(data)),\n );\n\n // Watched for paged data changes and emit the result to the table to render.\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe((data) =>\n this._renderData.next(data),\n );\n }\n\n private _observeOutput<R>(output: any): Observable<R> {\n if (isObservable(output)) {\n return output as Observable<R>;\n }\n\n if (typeof output === 'object' && output !== null && ('subscribe' in output || 'emit' in output)) {\n return new Observable<R>((subscriber) => {\n try {\n const obs = outputToObservable(output);\n const sub = obs.subscribe({\n next: (value: any) => subscriber.next(value as R),\n error: (err) => {\n if (err && err.message && err.message.includes('NG0911')) {\n subscriber.complete();\n } else {\n subscriber.error(err);\n }\n },\n complete: () => subscriber.complete(),\n });\n return () => sub.unsubscribe();\n } catch (e: any) {\n if (e && e.message && e.message.includes('NG0911')) {\n subscriber.complete();\n return;\n }\n throw e;\n }\n });\n }\n\n return of() as Observable<R>;\n }\n\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterPredicate function. If no filter is set, returns the entire data\n * array without changes.\n */\n _filterData(data: T[]) {\n this.filteredData = !this.filter\n ? data\n : data.filter((obj) => this.filterPredicate(obj, this.filter));\n\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n\n return this.filteredData;\n }\n\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array entirely.\n */\n _orderData(data: T[]): T[] {\n // If there is no active sort or direction, then the data should not be ordered.\n if (!this.sort) {\n this.sortedData = data;\n return data;\n }\n\n this.sortedData = this.sortData(data.slice(), this.sort);\n return this.sortedData;\n }\n\n /**\n * Returns a paged splice of the provided data array based on the provided Paginator's page\n * index and length. If there is no paginator provided, returns the data array as is.\n */\n _pageData(data: T[]): T[] {\n if (!this.paginator) {\n return data;\n }\n\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + (this.paginator.pageSize as any));\n }\n\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the amount of pages in the new data set.\n */\n _updatePaginator(filteredDataLength: number) {\n if (!this.paginator) {\n return;\n }\n\n this.paginator.length = filteredDataLength;\n\n // If the page index is now larger than the number of pages, move the page index to the last\n // page.\n if (this.paginator.pageIndex > 0) {\n const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);\n const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);\n\n if (newPageIndex !== this.paginator.pageIndex) {\n this.paginator.pageIndex = newPageIndex;\n\n // Since the paginator has changed, notify the data source that the rendered data\n // should be updated.\n this._internalPageChanges.next();\n }\n }\n }\n\n /**\n * Used by the CdkTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) {\n this._updateChangeSubscription();\n }\n\n return this._renderData;\n }\n\n /**\n * Used by the CdkTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = Subscription.EMPTY;\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'table[ngs-native-table]',\n exportAs: 'ngsNativeTable',\n imports: [],\n templateUrl: './native-table.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './native-table.scss',\n host: {\n 'class': 'ngs-native-table not-prose',\n }\n})\nexport class NativeTable {\n\n}\n","<ng-content/>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["_DataSource"],"mappings":";;;;;;;;;AAqDM,MAAO,KAAS,SAAQ,QAAW,CAAA;IACvC,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC1D,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IACxD,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEzC,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAEhD;;;AAGG;IACc,gBAAgB,GAAG,MAAM,CAAU,KAAK;yFAAC;IAEjD,eAAe,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE;w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AAA,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE;AAC7C,QAAA,IAAI,CAAC,0BAA0B,GAAG,YAAY,CAAC,KAAK;IACtD;AACD;;MC1XY,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,yKCbxB,iBACA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FDYa,WAAW,EAAA,UAAA,EAAA,CAAA;kBAXvB,SAAS;+BACE,yBAAyB,EAAA,QAAA,EACzB,gBAAgB,EAAA,OAAA,EACjB,EAAE,mBAEM,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE,4BAA4B;AACtC,qBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,mgCAAA,CAAA,EAAA;;;AEXH;;AAEG;;;;"}
1
+ {"version":3,"file":"ngstarter-ui-components-table.mjs","names":["_DataSource","map"],"sources":["../../../projects/components/table/src/table/table.ts","../../../projects/components/table/src/table/table.html","../../../projects/components/table/src/cell/cell.ts","../../../projects/components/table/src/cell-def.ts","../../../projects/components/table/src/column-def.ts","../../../projects/components/table/src/footer-cell/footer-cell.ts","../../../projects/components/table/src/footer-cell-def.ts","../../../projects/components/table/src/footer-row/footer-row.ts","../../../projects/components/table/src/footer-row/footer-row.html","../../../projects/components/table/src/footer-row-def.ts","../../../projects/components/table/src/header-cell/header-cell.ts","../../../projects/components/table/src/header-cell-def.ts","../../../projects/components/table/src/header-row/header-row.ts","../../../projects/components/table/src/header-row/header-row.html","../../../projects/components/table/src/header-row-def.ts","../../../projects/components/table/src/no-data-row.ts","../../../projects/components/table/src/row/row.ts","../../../projects/components/table/src/row/row.html","../../../projects/components/table/src/row-def.ts","../../../projects/components/table/src/text-column/text-column.ts","../../../projects/components/table/src/text-column/text-column.html","../../../projects/components/table/src/table-data-source.ts","../../../projects/components/table/src/native-table/native-table.ts","../../../projects/components/table/src/native-table/native-table.html"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n forwardRef,\n input,\n ContentChildren,\n QueryList,\n signal,\n DestroyRef,\n inject\n} from '@angular/core';\nimport {\n CdkColumnDef,\n CdkHeaderRowDef,\n CdkTable,\n CDK_TABLE,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n NoDataRowOutlet,\n STICKY_POSITIONING_LISTENER,\n CdkTableModule,\n} from '@angular/cdk/table';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'ngs-table, table[ngs-table]',\n exportAs: 'ngsTable',\n imports: [\n CdkTableModule,\n HeaderRowOutlet,\n FooterRowOutlet,\n DataRowOutlet,\n NoDataRowOutlet,\n ],\n templateUrl: './table.html',\n styleUrl: './table.scss',\n providers: [\n { provide: CdkTable, useExisting: forwardRef(() => Table) },\n { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-table not-prose',\n '[class.ngs-table-fixed-layout]': 'fixedLayout',\n '[class.ngs-table-sticky]': 'hasStickyColumns()',\n 'role': 'grid'\n },\n})\nexport class Table<T> extends CdkTable<T> {\n hideHeader = input(false, { transform: booleanAttribute });\n hideBody = input(false, { transform: booleanAttribute });\n hideFooter = input(false, { transform: booleanAttribute });\n\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * Whether the table has any sticky header rows.\n * This is used to apply the 'ngs-table-sticky-header' class.\n */\n private readonly _hasStickyHeader = signal<boolean>(false);\n\n readonly hasStickyHeader = computed(() => this._hasStickyHeader());\n\n // We define our own queries to track changes, avoiding conflict with CdkTable's internal properties.\n // Angular will populate these just fine alongside the parent's queries.\n @ContentChildren(CdkHeaderRowDef, { descendants: true })\n headerRowDefsQuery!: QueryList<CdkHeaderRowDef>;\n\n @ContentChildren(CdkColumnDef, { descendants: true })\n columnDefsQuery!: QueryList<CdkColumnDef>;\n\n /**\n * Whether the table has any sticky columns.\n */\n private readonly _hasStickyColumns = signal<boolean>(false);\n\n readonly hasStickyColumns = computed(() => this._hasStickyColumns());\n\n private _updateStickyStates(): void {\n if (this.headerRowDefsQuery) {\n const headerRowDefs = this.headerRowDefsQuery.toArray();\n const hasStickyHeaderRows = headerRowDefs.some((def: any) => def.sticky);\n this._hasStickyHeader.set(hasStickyHeaderRows);\n }\n if (this.columnDefsQuery) {\n const colDefs = this.columnDefsQuery.toArray();\n const hasStickyColumns = colDefs.some((def: any) => def.sticky || def.stickyEnd);\n\n this._hasStickyColumns.set(hasStickyColumns);\n\n // Directly set the property on the base class.\n // This triggers the base class setter logic which handles style updates.\n this.fixedLayout = hasStickyColumns;\n }\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n }\n\n override ngAfterContentInit(): void {\n super.ngAfterContentInit();\n\n this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this._updateStickyStates();\n });\n\n this._updateStickyStates();\n }\n\n protected override stickyCssClass = 'ngs-table-sticky';\n}\n","<thead [class.ngs-table-sticky-header]=\"hasStickyHeader()\" [class.hidden]=\"hideHeader()\">\n <ng-container headerRowOutlet />\n</thead>\n<tbody [class.hidden]=\"hideBody()\">\n <ng-container rowOutlet />\n <ng-container noDataRowOutlet />\n</tbody>\n<tfoot [class.hidden]=\"hideFooter()\">\n <ng-container footerRowOutlet />\n</tfoot>\n","import { Directive } from '@angular/core';\nimport { CdkCell } from '@angular/cdk/table';\n\n/** Cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-cell, [ngs-cell], td[ngs-cell]',\n host: {\n 'class': 'ngs-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class Cell extends CdkCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkCellDef } from '@angular/cdk/table';\n\n/** Cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsCellDef]',\n standalone: true,\n providers: [{provide: CdkCellDef, useExisting: forwardRef(() => CellDef)}],\n})\nexport class CellDef extends CdkCellDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkColumnDef } from '@angular/cdk/table';\n\n/**\n * Column definition for the ngs-table.\n * Defines a set of cells available for a table column.\n */\n@Directive({\n selector: '[ngsColumnDef]',\n standalone: true,\n providers: [{provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef)}],\n inputs: ['name: ngsColumnDef'],\n})\nexport class ColumnDef extends CdkColumnDef {}\n","import { Directive } from '@angular/core';\nimport { CdkFooterCell } from '@angular/cdk/table';\n\n/** Footer cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]',\n host: {\n 'class': 'ngs-footer-cell',\n 'role': 'gridcell',\n },\n standalone: true,\n})\nexport class FooterCell extends CdkFooterCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterCellDef } from '@angular/cdk/table';\n\n/** Footer cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterCellDef]',\n standalone: true,\n providers: [{provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef)}],\n})\nexport class FooterCellDef extends CdkFooterCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkFooterRow\n} from '@angular/cdk/table';\n\n/** Footer template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]',\n templateUrl: './footer-row.html',\n styleUrl: './footer-row.scss',\n host: {\n 'class': 'ngs-footer-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow)}],\n})\nexport class FooterRow extends CdkFooterRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkFooterRowDef } from '@angular/cdk/table';\n\n/** Footer row definition for the ngs-table. */\n@Directive({\n selector: '[ngsFooterRowDef]',\n standalone: true,\n providers: [{provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef)}],\n inputs: ['columns: ngsFooterRowDef', 'sticky: ngsFooterRowDefSticky'],\n})\nexport class FooterRowDef extends CdkFooterRowDef {}\n","import { Directive } from '@angular/core';\nimport { CdkHeaderCell } from '@angular/cdk/table';\n\n/** Header cell template container that adds the right classes and role. */\n@Directive({\n selector: 'ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]',\n host: {\n 'class': 'ngs-header-cell',\n 'role': 'columnheader',\n },\n standalone: true,\n})\nexport class HeaderCell extends CdkHeaderCell {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderCellDef } from '@angular/cdk/table';\n\n/** Header cell definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderCellDef]',\n standalone: true,\n providers: [{provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef)}],\n})\nexport class HeaderCellDef extends CdkHeaderCellDef {}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkHeaderRow\n} from '@angular/cdk/table';\n\n/** Header template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-header-row, [ngs-header-row], tr[ngs-header-row]',\n templateUrl: './header-row.html',\n styleUrl: './header-row.scss',\n host: {\n 'class': 'ngs-header-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow)}],\n})\nexport class HeaderRow extends CdkHeaderRow {\n}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkHeaderRowDef } from '@angular/cdk/table';\n\n/** Header row definition for the ngs-table. */\n@Directive({\n selector: '[ngsHeaderRowDef]',\n standalone: true,\n providers: [{provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef)}],\n inputs: ['columns: ngsHeaderRowDef', 'sticky: ngsHeaderRowDefSticky'],\n})\nexport class HeaderRowDef extends CdkHeaderRowDef {}\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkNoDataRow } from '@angular/cdk/table';\n\n/** Row that can be used to display a message when no data is shown in the table. */\n@Directive({\n selector: 'ng-template[ngsNoDataRow]',\n standalone: true,\n providers: [{provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow)}],\n})\nexport class NoDataRow extends CdkNoDataRow {\n}\n","import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';\nimport {\n CdkCellOutlet,\n CdkRow\n} from '@angular/cdk/table';\n\n/** Data row template container that adds the right classes and role. */\n@Component({\n selector: 'ngs-row, [ngs-row], tr[ngs-row]',\n templateUrl: './row.html',\n styleUrl: './row.scss',\n host: {\n 'class': 'ngs-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: true,\n imports: [CdkCellOutlet],\n providers: [{provide: CdkRow, useExisting: forwardRef(() => Row)}],\n})\nexport class Row extends CdkRow {}\n","<ng-container cdkCellOutlet />\n","import { Directive, forwardRef } from '@angular/core';\nimport { CdkRowDef } from '@angular/cdk/table';\n\n/** Data row definition for the ngs-table. */\n@Directive({\n selector: '[ngsRowDef]',\n standalone: true,\n providers: [{provide: CdkRowDef, useExisting: forwardRef(() => RowDef)}],\n inputs: ['columns: ngsRowDefColumns', 'when: ngsRowDefWhen'],\n})\nexport class RowDef<T> extends CdkRowDef<T> {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { CdkTextColumn } from '@angular/cdk/table';\nimport { ColumnDef } from '../column-def';\nimport { CellDef } from '../cell-def';\nimport { HeaderCellDef } from '../header-cell-def';\nimport { HeaderCell } from '../header-cell/header-cell';\nimport { Cell } from '../cell/cell';\n\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the same as the data property that it should show.\n * The header can be overridden by setting the `headerText` input.\n *\n * Example usage:\n * <table ngs-table [dataSource]=\"dataSource\">\n * <ngs-text-column name=\"userName\"></ngs-text-column>\n * <tr ngs-header-row *ngsHeaderRowDef=\"['userName']\"></tr>\n * <tr ngs-row *ngsRowDef=\"['userName']\"></tr>\n * </table>\n */\n@Component({\n selector: 'ngs-text-column',\n exportAs: 'ngsTextColumn',\n imports: [\n ColumnDef,\n HeaderCellDef,\n HeaderCell,\n CellDef,\n Cell\n ],\n templateUrl: './text-column.html',\n styleUrl: './text-column.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'ngs-text-column',\n }\n})\nexport class TextColumn<T> extends CdkTextColumn<T> {}\n","<ng-container ngsColumnDef>\n <th ngs-header-cell *ngsHeaderCellDef> {{headerText}} </th>\n <td ngs-cell *ngsCellDef=\"let data\"> {{dataAccessor(data, name)}} </td>\n</ng-container>\n","import { DataSource as _DataSource } from '@angular/cdk/collections';\nimport {\n BehaviorSubject,\n combineLatest,\n isObservable,\n merge,\n Observable,\n of,\n Subject,\n Subscription\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { outputToObservable } from '@angular/core/rxjs-interop';\nimport { SortDirective, Sort } from '@ngstarter-ui/components/sort';\nimport { Paginator } from '@ngstarter-ui/components/paginator';\n\nexport class TableDataSource<T> extends _DataSource<T> {\n /** Stream that emits when a new data array is set on the data source. */\n private readonly _data: BehaviorSubject<T[]>;\n\n /** Stream emitting render data to the table (depends on ordered data changes). */\n private readonly _renderData: BehaviorSubject<T[]>;\n\n /** Stream that emits when a new filter string is set on the data source. */\n private readonly _filter = new BehaviorSubject<string>('');\n\n /** Used to react to internal changes of the paginator that the table needs to be notified about. */\n private readonly _internalPageChanges = new Subject<void>();\n\n /**\n * Subscription to the changes that should trigger an update to the table's rendered data, such\n * as filtering, sorting, pagination, or base data changes.\n */\n _renderChangesSubscription = Subscription.EMPTY;\n\n /**\n * Cache for quick filter strings. Maps each data object to its concatenated string representation\n * used for filtering.\n */\n private _quickFilterCache = new WeakMap<T & object, string>();\n\n /**\n * The filtered set of data that has been matched by the filter string, or all the data if there\n * is no filter. Useful for knowing the set of data the table represents.\n * For example, a 'scrolled' paginator can use this to know the total number of items when\n * pagination has been applied.\n */\n filteredData: T[];\n\n /**\n * The sorted set of data that has been ordered by the sort state, or all the filtered data if there\n * is no sort. Useful for knowing the set of data the table represents.\n */\n sortedData: T[];\n\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data: T[]) {\n this.invalidateFilterCache();\n this._data.next(data);\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n\n /**\n * Filter term that should be used to filter out objects from the data array. To `TableDataSource`'s\n * default implementation, this string checks for stringification matches anywhere in the object.\n */\n get filter(): string {\n return this._filter.value;\n }\n set filter(filter: string) {\n this._filter.next(filter);\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort(): SortDirective | null {\n return this._sort;\n }\n set sort(sort: SortDirective | null) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n private _sort: SortDirective | null = null;\n\n /**\n * Instance of the Paginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the Paginator will trigger an update to the\n * table's rendered data.\n */\n get paginator(): Paginator | null {\n return this._paginator;\n }\n set paginator(paginator: Paginator | null) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n private _paginator: Paginator | null = null;\n\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the data objects are flat and can be accessed directly by\n * the column name.\n */\n sortingDataAccessor: (data: T, sortHeaderId: string) => string | number = (\n data: T,\n sortHeaderId: string,\n ): string | number => {\n const value = (data as unknown as Record<string, any>)[sortHeaderId];\n return typeof value === 'number' || typeof value === 'string' ? value : '' + value;\n };\n\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * objects by retrieving data using the sortingDataAccessor. May be overridden for a\n * custom implementation of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n sortData: (data: T[], sort: SortDirective) => T[] = (data: T[], sort: SortDirective): T[] => {\n const active = typeof sort.active === 'function' ? sort.active() : sort.active;\n const direction = typeof sort.direction === 'function' ? sort.direction() : sort.direction;\n if (!active || direction === '') {\n return data;\n }\n\n return data.slice().sort((a, b) => {\n const valueA = this.sortingDataAccessor(a, active);\n const valueB = this.sortingDataAccessor(b, active);\n\n // If both valueA and valueB are numbers, use the numeric comparison.\n // If either valueA or valueB is not a number, use the string comparison.\n const comparatorResult =\n typeof valueA === 'number' && typeof valueB === 'number'\n ? valueA - valueB\n : (valueA + '').localeCompare(valueB + '');\n\n return comparatorResult * (direction === 'asc' ? 1 : -1);\n });\n };\n\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has at least one\n * occurrence in that string. By default, the filter string has its whitespace trimmed and the match\n * is case-insensitive. May be overridden for a custom implementation of filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches the data.\n */\n filterPredicate: (data: T, filter: string) => boolean = (data: T, filter: string): boolean => {\n // Transform the filter by converting it to lowercase and splitting into words.\n const transformedFilter = filter.trim().toLowerCase();\n if (!transformedFilter) {\n return true;\n }\n const filterWords = transformedFilter.split(/\\s+/);\n\n // Get the string representation of the data.\n const dataStr = this._getQuickFilterString(data);\n\n // Check if all filter words are present in the data string (any order).\n return filterWords.every(word => dataStr.indexOf(word) !== -1);\n };\n\n /**\n * Gets a string representation of the data object used for quick filtering.\n * Caches the result to improve performance.\n * @param data\n * @private\n */\n /** Call after mutating a row in place; assigning data also invalidates the cache. */\n invalidateFilterCache(row?: T): void {\n if (row !== undefined && typeof row === 'object' && row !== null) {\n this._quickFilterCache.delete(row as T & object);\n } else {\n this._quickFilterCache = new WeakMap<T & object, string>();\n }\n }\n\n private _getQuickFilterString(data: T): string {\n if (typeof data !== 'object' || data === null) {\n return String(data).toLowerCase();\n }\n\n let cached = this._quickFilterCache.get(data as T & object);\n if (cached !== undefined) {\n return cached;\n }\n\n const dataStr = Object.keys(data as unknown as Record<string, any>)\n .reduce((currentTerm: string, key: string) => {\n const val = (data as unknown as Record<string, any>)[key];\n return currentTerm + (val === null || val === undefined ? '' : val) + ' ';\n }, '')\n .toLowerCase();\n\n this._quickFilterCache.set(data as T & object, dataStr);\n return dataStr;\n }\n\n constructor(initialData: T[] = []) {\n super();\n this._data = new BehaviorSubject<T[]>(initialData);\n this._renderData = new BehaviorSubject<T[]>(initialData);\n this.filteredData = initialData;\n this.sortedData = initialData;\n this._updateChangeSubscription();\n }\n\n /**\n * Subscribe to changes that should trigger an update to the table's rendered data.\n */\n _updateChangeSubscription() {\n const sortChange: Observable<Sort | null | void> = this._sort\n ? (merge(\n this._observeOutput<Sort>(this._sort.sortChange),\n this._sort.initialized || of(undefined),\n of(undefined)\n ) as Observable<Sort | void>)\n : of(null);\n const pageChange: Observable<any> = this._paginator\n ? (merge(\n this._observeOutput<any>(this._paginator.page as any),\n this._internalPageChanges,\n this._paginator.initialized || of(undefined),\n of(undefined)\n ) as Observable<any>)\n : of(null);\n const dataStream = this._data;\n\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(\n map(([data]) => this._filterData(data)),\n );\n\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(\n map(([data]) => this._orderData(data)),\n );\n\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(\n map(([data]) => this._pageData(data)),\n );\n\n // Watched for paged data changes and emit the result to the table to render.\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe((data) =>\n this._renderData.next(data),\n );\n }\n\n private _observeOutput<R>(output: any): Observable<R> {\n if (isObservable(output)) {\n return output as Observable<R>;\n }\n\n if (typeof output === 'object' && output !== null && ('subscribe' in output || 'emit' in output)) {\n return new Observable<R>((subscriber) => {\n try {\n const obs = outputToObservable(output);\n const sub = obs.subscribe({\n next: (value: any) => subscriber.next(value as R),\n error: (err) => {\n if (err && err.message && err.message.includes('NG0911')) {\n subscriber.complete();\n } else {\n subscriber.error(err);\n }\n },\n complete: () => subscriber.complete(),\n });\n return () => sub.unsubscribe();\n } catch (e: any) {\n if (e && e.message && e.message.includes('NG0911')) {\n subscriber.complete();\n return;\n }\n throw e;\n }\n });\n }\n\n return of() as Observable<R>;\n }\n\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterPredicate function. If no filter is set, returns the entire data\n * array without changes.\n */\n _filterData(data: T[]) {\n this.filteredData = !this.filter\n ? data\n : data.filter((obj) => this.filterPredicate(obj, this.filter));\n\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n\n return this.filteredData;\n }\n\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array entirely.\n */\n _orderData(data: T[]): T[] {\n // If there is no active sort or direction, then the data should not be ordered.\n if (!this.sort) {\n this.sortedData = data;\n return data;\n }\n\n this.sortedData = this.sortData(data.slice(), this.sort);\n return this.sortedData;\n }\n\n /**\n * Returns a paged splice of the provided data array based on the provided Paginator's page\n * index and length. If there is no paginator provided, returns the data array as is.\n */\n _pageData(data: T[]): T[] {\n if (!this.paginator) {\n return data;\n }\n\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + (this.paginator.pageSize as any));\n }\n\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the amount of pages in the new data set.\n */\n _updatePaginator(filteredDataLength: number) {\n if (!this.paginator) {\n return;\n }\n\n this.paginator.length = filteredDataLength;\n\n // If the page index is now larger than the number of pages, move the page index to the last\n // page.\n if (this.paginator.pageIndex > 0) {\n const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);\n const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);\n\n if (newPageIndex !== this.paginator.pageIndex) {\n this.paginator.pageIndex = newPageIndex;\n\n // Since the paginator has changed, notify the data source that the rendered data\n // should be updated.\n this._internalPageChanges.next();\n }\n }\n }\n\n /**\n * Used by the CdkTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) {\n this._updateChangeSubscription();\n }\n\n return this._renderData;\n }\n\n /**\n * Used by the CdkTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n this._renderChangesSubscription.unsubscribe();\n this._renderChangesSubscription = Subscription.EMPTY;\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'table[ngs-native-table]',\n exportAs: 'ngsNativeTable',\n imports: [],\n templateUrl: './native-table.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './native-table.scss',\n host: {\n 'class': 'ngs-native-table not-prose',\n }\n})\nexport class NativeTable {\n\n}\n","<ng-content/>\n"],"mappings":";;;;;;;;AAqDA,IAAa,QAAb,MAAa,cAAiB,SAAW;CACvC,aAAa,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAA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