@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,663 +1,1145 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, inject, DestroyRef, signal, computed, forwardRef, ContentChildren, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
- import * as i1 from '@angular/cdk/table';
4
- import { CdkTable, CdkTableModule, CdkHeaderRowDef, CdkColumnDef, CDK_TABLE, STICKY_POSITIONING_LISTENER, HeaderRowOutlet, FooterRowOutlet, DataRowOutlet, NoDataRowOutlet, CdkCell, CdkCellDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkCellOutlet, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkNoDataRow, CdkRow, CdkRowDef, CdkTextColumn } from '@angular/cdk/table';
5
- import { takeUntilDestroyed, outputToObservable } from '@angular/core/rxjs-interop';
6
- import { DataSource } from '@angular/cdk/collections';
7
- import { BehaviorSubject, Subject, Subscription, merge, of, combineLatest, isObservable, Observable } from 'rxjs';
8
- import { map } from 'rxjs/operators';
9
-
10
- class Table extends CdkTable {
11
- hideHeader = input(false, { ...(ngDevMode ? { debugName: "hideHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
12
- hideBody = input(false, { ...(ngDevMode ? { debugName: "hideBody" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13
- hideFooter = input(false, { ...(ngDevMode ? { debugName: "hideFooter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14
- destroyRef = inject(DestroyRef);
15
- /**
16
- * Whether the table has any sticky header rows.
17
- * This is used to apply the 'ngs-table-sticky-header' class.
18
- */
19
- _hasStickyHeader = signal(false, /* @ts-ignore */
20
- ...(ngDevMode ? [{ debugName: "_hasStickyHeader" }] : /* istanbul ignore next */ []));
21
- hasStickyHeader = computed(() => this._hasStickyHeader(), /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "hasStickyHeader" }] : /* istanbul ignore next */ []));
23
- // We define our own queries to track changes, avoiding conflict with CdkTable's internal properties.
24
- // Angular will populate these just fine alongside the parent's queries.
25
- headerRowDefsQuery;
26
- columnDefsQuery;
27
- /**
28
- * Whether the table has any sticky columns.
29
- */
30
- _hasStickyColumns = signal(false, /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "_hasStickyColumns" }] : /* istanbul ignore next */ []));
32
- hasStickyColumns = computed(() => this._hasStickyColumns(), /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "hasStickyColumns" }] : /* istanbul ignore next */ []));
34
- _updateStickyStates() {
35
- if (this.headerRowDefsQuery) {
36
- const headerRowDefs = this.headerRowDefsQuery.toArray();
37
- const hasStickyHeaderRows = headerRowDefs.some((def) => def.sticky);
38
- this._hasStickyHeader.set(hasStickyHeaderRows);
39
- }
40
- if (this.columnDefsQuery) {
41
- const colDefs = this.columnDefsQuery.toArray();
42
- const hasStickyColumns = colDefs.some((def) => def.sticky || def.stickyEnd);
43
- this._hasStickyColumns.set(hasStickyColumns);
44
- // Directly set the property on the base class.
45
- // This triggers the base class setter logic which handles style updates.
46
- this.fixedLayout = hasStickyColumns;
47
- }
48
- }
49
- ngOnInit() {
50
- super.ngOnInit();
51
- }
52
- ngAfterContentInit() {
53
- super.ngAfterContentInit();
54
- this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
55
- this._updateStickyStates();
56
- });
57
- this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
58
- this._updateStickyStates();
59
- });
60
- this._updateStickyStates();
61
- }
62
- stickyCssClass = 'ngs-table-sticky';
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Table, deps: null, target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: Table, isStandalone: true, selector: "ngs-table, table[ngs-table]", inputs: { hideHeader: { classPropertyName: "hideHeader", publicName: "hideHeader", isSignal: true, isRequired: false, transformFunction: null }, hideBody: { classPropertyName: "hideBody", publicName: "hideBody", isSignal: true, isRequired: false, transformFunction: null }, hideFooter: { classPropertyName: "hideFooter", publicName: "hideFooter", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "grid" }, properties: { "class.ngs-table-fixed-layout": "fixedLayout", "class.ngs-table-sticky": "hasStickyColumns()" }, classAttribute: "ngs-table not-prose" }, providers: [
65
- { provide: CdkTable, useExisting: forwardRef(() => Table) },
66
- { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },
67
- { provide: STICKY_POSITIONING_LISTENER, useValue: null },
68
- ], queries: [{ propertyName: "headerRowDefsQuery", predicate: CdkHeaderRowDef, descendants: true }, { propertyName: "columnDefsQuery", predicate: CdkColumnDef, descendants: true }], exportAs: ["ngsTable"], usesInheritance: true, ngImport: i0, template: "<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", styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;display:table;border-collapse:collapse}:host.ngs-table-fixed-layout{table-layout:fixed;min-width:100%;width:max-content}:host ::ng-deep .ngs-header-cell{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;display:table-cell;vertical-align:middle;text-align:start}:host ::ng-deep .ngs-header-cell,:host ::ng-deep .ngs-cell,:host ::ng-deep .ngs-footer-cell{display:table-cell;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky,:host ::ng-deep .ngs-cell.ngs-table-sticky,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky{position:sticky!important;background:inherit;z-index:10;background-clip:padding-box}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-header-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-footer-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before{content:\"\";position:absolute;top:0;right:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before{content:\"\";position:absolute;top:0;left:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after{content:\"\";position:absolute;left:0;right:0;height:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after{content:\"\";position:absolute;top:0;left:0;height:1px;right:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left,:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right{z-index:110}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CdkTableModule }, { kind: "directive", type: i1.DataRowOutlet, selector: "[rowOutlet]" }, { kind: "directive", type: i1.HeaderRowOutlet, selector: "[headerRowOutlet]" }, { kind: "directive", type: i1.FooterRowOutlet, selector: "[footerRowOutlet]" }, { kind: "directive", type: i1.NoDataRowOutlet, selector: "[noDataRowOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
69
- }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Table, decorators: [{
71
- type: Component,
72
- args: [{ selector: 'ngs-table, table[ngs-table]', exportAs: 'ngsTable', imports: [
73
- CdkTableModule,
74
- HeaderRowOutlet,
75
- FooterRowOutlet,
76
- DataRowOutlet,
77
- NoDataRowOutlet,
78
- ], providers: [
79
- { provide: CdkTable, useExisting: forwardRef(() => Table) },
80
- { provide: CDK_TABLE, useExisting: forwardRef(() => Table) },
81
- { provide: STICKY_POSITIONING_LISTENER, useValue: null },
82
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
83
- 'class': 'ngs-table not-prose',
84
- '[class.ngs-table-fixed-layout]': 'fixedLayout',
85
- '[class.ngs-table-sticky]': 'hasStickyColumns()',
86
- 'role': 'grid'
87
- }, template: "<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", styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;display:table;border-collapse:collapse}:host.ngs-table-fixed-layout{table-layout:fixed;min-width:100%;width:max-content}:host ::ng-deep .ngs-header-cell{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;display:table-cell;vertical-align:middle;text-align:start}:host ::ng-deep .ngs-header-cell,:host ::ng-deep .ngs-cell,:host ::ng-deep .ngs-footer-cell{display:table-cell;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky,:host ::ng-deep .ngs-cell.ngs-table-sticky,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky{position:sticky!important;background:inherit;z-index:10;background-clip:padding-box}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-header-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-footer-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before{content:\"\";position:absolute;top:0;right:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before{content:\"\";position:absolute;top:0;left:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after{content:\"\";position:absolute;left:0;right:0;height:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after{content:\"\";position:absolute;top:0;left:0;height:1px;right:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left,:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right{z-index:110}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
88
- }], propDecorators: { hideHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeader", required: false }] }], hideBody: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideBody", required: false }] }], hideFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideFooter", required: false }] }], headerRowDefsQuery: [{
89
- type: ContentChildren,
90
- args: [CdkHeaderRowDef, { descendants: true }]
91
- }], columnDefsQuery: [{
92
- type: ContentChildren,
93
- args: [CdkColumnDef, { descendants: true }]
94
- }] } });
95
-
96
- /** Cell template container that adds the right classes and role. */
97
- class Cell extends CdkCell {
98
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Cell, deps: null, target: i0.ɵɵFactoryTarget.Directive });
99
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: Cell, isStandalone: true, selector: "ngs-cell, [ngs-cell], td[ngs-cell]", host: { attributes: { "role": "gridcell" }, classAttribute: "ngs-cell" }, usesInheritance: true, ngImport: i0 });
100
- }
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Cell, decorators: [{
102
- type: Directive,
103
- args: [{
104
- selector: 'ngs-cell, [ngs-cell], td[ngs-cell]',
105
- host: {
106
- 'class': 'ngs-cell',
107
- 'role': 'gridcell',
108
- },
109
- standalone: true,
110
- }]
111
- }] });
112
-
113
- /** Cell definition for the ngs-table. */
114
- class CellDef extends CdkCellDef {
115
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
116
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: CellDef, isStandalone: true, selector: "[ngsCellDef]", providers: [{ provide: CdkCellDef, useExisting: forwardRef(() => CellDef) }], usesInheritance: true, ngImport: i0 });
117
- }
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: CellDef, decorators: [{
119
- type: Directive,
120
- args: [{
121
- selector: '[ngsCellDef]',
122
- standalone: true,
123
- providers: [{ provide: CdkCellDef, useExisting: forwardRef(() => CellDef) }],
124
- }]
125
- }] });
126
-
127
- /**
128
- * Column definition for the ngs-table.
129
- * Defines a set of cells available for a table column.
130
- */
131
- class ColumnDef extends CdkColumnDef {
132
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ColumnDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
133
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: ColumnDef, isStandalone: true, selector: "[ngsColumnDef]", inputs: { name: ["ngsColumnDef", "name"] }, providers: [{ provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef) }], usesInheritance: true, ngImport: i0 });
134
- }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: ColumnDef, decorators: [{
136
- type: Directive,
137
- args: [{
138
- selector: '[ngsColumnDef]',
139
- standalone: true,
140
- providers: [{ provide: CdkColumnDef, useExisting: forwardRef(() => ColumnDef) }],
141
- inputs: ['name: ngsColumnDef'],
142
- }]
143
- }] });
144
-
145
- /** Footer cell template container that adds the right classes and role. */
146
- class FooterCell extends CdkFooterCell {
147
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });
148
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: FooterCell, isStandalone: true, selector: "ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]", host: { attributes: { "role": "gridcell" }, classAttribute: "ngs-footer-cell" }, usesInheritance: true, ngImport: i0 });
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterCell, decorators: [{
151
- type: Directive,
152
- args: [{
153
- selector: 'ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]',
154
- host: {
155
- 'class': 'ngs-footer-cell',
156
- 'role': 'gridcell',
157
- },
158
- standalone: true,
159
- }]
160
- }] });
161
-
162
- /** Footer cell definition for the ngs-table. */
163
- class FooterCellDef extends CdkFooterCellDef {
164
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
165
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: FooterCellDef, isStandalone: true, selector: "[ngsFooterCellDef]", providers: [{ provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef) }], usesInheritance: true, ngImport: i0 });
166
- }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterCellDef, decorators: [{
168
- type: Directive,
169
- args: [{
170
- selector: '[ngsFooterCellDef]',
171
- standalone: true,
172
- providers: [{ provide: CdkFooterCellDef, useExisting: forwardRef(() => FooterCellDef) }],
173
- }]
174
- }] });
175
-
176
- /** Footer template container that adds the right classes and role. */
177
- class FooterRow extends CdkFooterRow {
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterRow, deps: null, target: i0.ɵɵFactoryTarget.Component });
179
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: FooterRow, isStandalone: true, selector: "ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]", host: { attributes: { "role": "row" }, classAttribute: "ngs-footer-row" }, providers: [{ provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow) }], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet />\n", styles: [":host{min-height:var(--ngs-table-row-height);display:table-row}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}\n"], dependencies: [{ kind: "directive", type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
180
- }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterRow, decorators: [{
182
- type: Component,
183
- args: [{ selector: 'ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]', host: {
184
- 'class': 'ngs-footer-row',
185
- 'role': 'row',
186
- }, changeDetection: ChangeDetectionStrategy.Eager, standalone: true, imports: [CdkCellOutlet], providers: [{ provide: CdkFooterRow, useExisting: forwardRef(() => FooterRow) }], template: "<ng-container cdkCellOutlet />\n", styles: [":host{min-height:var(--ngs-table-row-height);display:table-row}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}\n"] }]
187
- }] });
188
-
189
- /** Footer row definition for the ngs-table. */
190
- class FooterRowDef extends CdkFooterRowDef {
191
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
192
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: FooterRowDef, isStandalone: true, selector: "[ngsFooterRowDef]", inputs: { columns: ["ngsFooterRowDef", "columns"], sticky: ["ngsFooterRowDefSticky", "sticky"] }, providers: [{ provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef) }], usesInheritance: true, ngImport: i0 });
193
- }
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: FooterRowDef, decorators: [{
195
- type: Directive,
196
- args: [{
197
- selector: '[ngsFooterRowDef]',
198
- standalone: true,
199
- providers: [{ provide: CdkFooterRowDef, useExisting: forwardRef(() => FooterRowDef) }],
200
- inputs: ['columns: ngsFooterRowDef', 'sticky: ngsFooterRowDefSticky'],
201
- }]
202
- }] });
203
-
204
- /** Header cell template container that adds the right classes and role. */
205
- class HeaderCell extends CdkHeaderCell {
206
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });
207
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: HeaderCell, isStandalone: true, selector: "ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]", host: { attributes: { "role": "columnheader" }, classAttribute: "ngs-header-cell" }, usesInheritance: true, ngImport: i0 });
208
- }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderCell, decorators: [{
210
- type: Directive,
211
- args: [{
212
- selector: 'ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]',
213
- host: {
214
- 'class': 'ngs-header-cell',
215
- 'role': 'columnheader',
216
- },
217
- standalone: true,
218
- }]
219
- }] });
220
-
221
- /** Header cell definition for the ngs-table. */
222
- class HeaderCellDef extends CdkHeaderCellDef {
223
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
224
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: HeaderCellDef, isStandalone: true, selector: "[ngsHeaderCellDef]", providers: [{ provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef) }], usesInheritance: true, ngImport: i0 });
225
- }
226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderCellDef, decorators: [{
227
- type: Directive,
228
- args: [{
229
- selector: '[ngsHeaderCellDef]',
230
- standalone: true,
231
- providers: [{ provide: CdkHeaderCellDef, useExisting: forwardRef(() => HeaderCellDef) }],
232
- }]
233
- }] });
234
-
235
- /** Header template container that adds the right classes and role. */
236
- class HeaderRow extends CdkHeaderRow {
237
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderRow, deps: null, target: i0.ɵɵFactoryTarget.Component });
238
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: HeaderRow, isStandalone: true, selector: "ngs-header-row, [ngs-header-row], tr[ngs-header-row]", host: { attributes: { "role": "row" }, classAttribute: "ngs-header-row" }, providers: [{ provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow) }], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet />\n", styles: [":host{height:var(--ngs-table-header-row-height);display:table-row;background:var(--ngs-data-view-header-bg, var(--ngs-table-header-bg));width:100%}:host-context(.highlight-header) :host{position:relative;margin:var(--ngs-data-view-hl-header-margin, 0)}:host-context(.highlight-header) :host:before{content:\"\";position:absolute;left:0;right:0;background:var(--ngs-data-view-hl-header-row-bg, var(--ngs-color-surface-container));height:calc(var(--spacing, .25rem) * 12);border-radius:var(--ngs-radius-lg);z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderRow, decorators: [{
241
- type: Component,
242
- args: [{ selector: 'ngs-header-row, [ngs-header-row], tr[ngs-header-row]', host: {
243
- 'class': 'ngs-header-row',
244
- 'role': 'row',
245
- }, changeDetection: ChangeDetectionStrategy.Eager, standalone: true, imports: [CdkCellOutlet], providers: [{ provide: CdkHeaderRow, useExisting: forwardRef(() => HeaderRow) }], template: "<ng-container cdkCellOutlet />\n", styles: [":host{height:var(--ngs-table-header-row-height);display:table-row;background:var(--ngs-data-view-header-bg, var(--ngs-table-header-bg));width:100%}:host-context(.highlight-header) :host{position:relative;margin:var(--ngs-data-view-hl-header-margin, 0)}:host-context(.highlight-header) :host:before{content:\"\";position:absolute;left:0;right:0;background:var(--ngs-data-view-hl-header-row-bg, var(--ngs-color-surface-container));height:calc(var(--spacing, .25rem) * 12);border-radius:var(--ngs-radius-lg);z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
246
- }] });
247
-
248
- /** Header row definition for the ngs-table. */
249
- class HeaderRowDef extends CdkHeaderRowDef {
250
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
251
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: HeaderRowDef, isStandalone: true, selector: "[ngsHeaderRowDef]", inputs: { columns: ["ngsHeaderRowDef", "columns"], sticky: ["ngsHeaderRowDefSticky", "sticky"] }, providers: [{ provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef) }], usesInheritance: true, ngImport: i0 });
252
- }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: HeaderRowDef, decorators: [{
254
- type: Directive,
255
- args: [{
256
- selector: '[ngsHeaderRowDef]',
257
- standalone: true,
258
- providers: [{ provide: CdkHeaderRowDef, useExisting: forwardRef(() => HeaderRowDef) }],
259
- inputs: ['columns: ngsHeaderRowDef', 'sticky: ngsHeaderRowDefSticky'],
260
- }]
261
- }] });
262
-
263
- /** Row that can be used to display a message when no data is shown in the table. */
264
- class NoDataRow extends CdkNoDataRow {
265
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NoDataRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });
266
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: NoDataRow, isStandalone: true, selector: "ng-template[ngsNoDataRow]", providers: [{ provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow) }], usesInheritance: true, ngImport: i0 });
267
- }
268
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NoDataRow, decorators: [{
269
- type: Directive,
270
- args: [{
271
- selector: 'ng-template[ngsNoDataRow]',
272
- standalone: true,
273
- providers: [{ provide: CdkNoDataRow, useExisting: forwardRef(() => NoDataRow) }],
274
- }]
275
- }] });
276
-
277
- /** Data row template container that adds the right classes and role. */
278
- class Row extends CdkRow {
279
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Row, deps: null, target: i0.ɵɵFactoryTarget.Component });
280
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: Row, isStandalone: true, selector: "ngs-row, [ngs-row], tr[ngs-row]", host: { attributes: { "role": "row" }, classAttribute: "ngs-row" }, providers: [{ provide: CdkRow, useExisting: forwardRef(() => Row) }], usesInheritance: true, ngImport: i0, template: "<ng-container cdkCellOutlet />\n", styles: [":host{position:relative;display:table-row;border:none;border-top:1px solid var(--ngs-table-border-color);height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}:host-context(.highlight-header,.sticky-header,.ngs-table-sticky-header) :host:first-of-type{border-top:none!important}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: CdkCellOutlet, selector: "[cdkCellOutlet]" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
281
- }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Row, decorators: [{
283
- type: Component,
284
- args: [{ selector: 'ngs-row, [ngs-row], tr[ngs-row]', host: {
285
- 'class': 'ngs-row',
286
- 'role': 'row',
287
- }, changeDetection: ChangeDetectionStrategy.Eager, standalone: true, imports: [CdkCellOutlet], providers: [{ provide: CdkRow, useExisting: forwardRef(() => Row) }], template: "<ng-container cdkCellOutlet />\n", styles: [":host{position:relative;display:table-row;border:none;border-top:1px solid var(--ngs-table-border-color);height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}:host-context(.highlight-header,.sticky-header,.ngs-table-sticky-header) :host:first-of-type{border-top:none!important}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
288
- }] });
289
-
290
- /** Data row definition for the ngs-table. */
291
- class RowDef extends CdkRowDef {
292
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: RowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
293
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: RowDef, isStandalone: true, selector: "[ngsRowDef]", inputs: { columns: ["ngsRowDefColumns", "columns"], when: ["ngsRowDefWhen", "when"] }, providers: [{ provide: CdkRowDef, useExisting: forwardRef(() => RowDef) }], usesInheritance: true, ngImport: i0 });
294
- }
295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: RowDef, decorators: [{
296
- type: Directive,
297
- args: [{
298
- selector: '[ngsRowDef]',
299
- standalone: true,
300
- providers: [{ provide: CdkRowDef, useExisting: forwardRef(() => RowDef) }],
301
- inputs: ['columns: ngsRowDefColumns', 'when: ngsRowDefWhen'],
302
- }]
303
- }] });
304
-
305
- /**
306
- * Column that simply shows text content for the header and row cells. Assumes that the table
307
- * is using the native table implementation (`<table>`).
308
- *
309
- * By default, the name of this column will be the same as the data property that it should show.
310
- * The header can be overridden by setting the `headerText` input.
311
- *
312
- * Example usage:
313
- * <table ngs-table [dataSource]="dataSource">
314
- * <ngs-text-column name="userName"></ngs-text-column>
315
- * <tr ngs-header-row *ngsHeaderRowDef="['userName']"></tr>
316
- * <tr ngs-row *ngsRowDef="['userName']"></tr>
317
- * </table>
318
- */
319
- class TextColumn extends CdkTextColumn {
320
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TextColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });
321
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: TextColumn, isStandalone: true, selector: "ngs-text-column", host: { classAttribute: "ngs-text-column" }, exportAs: ["ngsTextColumn"], usesInheritance: true, ngImport: i0, template: "<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", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: ColumnDef, selector: "[ngsColumnDef]", inputs: ["ngsColumnDef"] }, { kind: "directive", type: HeaderCellDef, selector: "[ngsHeaderCellDef]" }, { kind: "directive", type: HeaderCell, selector: "ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]" }, { kind: "directive", type: CellDef, selector: "[ngsCellDef]" }, { kind: "directive", type: Cell, selector: "ngs-cell, [ngs-cell], td[ngs-cell]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
322
- }
323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TextColumn, decorators: [{
324
- type: Component,
325
- args: [{ selector: 'ngs-text-column', exportAs: 'ngsTextColumn', imports: [
326
- ColumnDef,
327
- HeaderCellDef,
328
- HeaderCell,
329
- CellDef,
330
- Cell
331
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: {
332
- 'class': 'ngs-text-column',
333
- }, template: "<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", styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
334
- }] });
335
-
336
- class TableDataSource extends DataSource {
337
- /** Stream that emits when a new data array is set on the data source. */
338
- _data;
339
- /** Stream emitting render data to the table (depends on ordered data changes). */
340
- _renderData;
341
- /** Stream that emits when a new filter string is set on the data source. */
342
- _filter = new BehaviorSubject('');
343
- /** Used to react to internal changes of the paginator that the table needs to be notified about. */
344
- _internalPageChanges = new Subject();
345
- /**
346
- * Subscription to the changes that should trigger an update to the table's rendered data, such
347
- * as filtering, sorting, pagination, or base data changes.
348
- */
349
- _renderChangesSubscription = Subscription.EMPTY;
350
- /**
351
- * Cache for quick filter strings. Maps each data object to its concatenated string representation
352
- * used for filtering.
353
- */
354
- _quickFilterCache = new WeakMap();
355
- /**
356
- * The filtered set of data that has been matched by the filter string, or all the data if there
357
- * is no filter. Useful for knowing the set of data the table represents.
358
- * For example, a 'scrolled' paginator can use this to know the total number of items when
359
- * pagination has been applied.
360
- */
361
- filteredData;
362
- /**
363
- * The sorted set of data that has been ordered by the sort state, or all the filtered data if there
364
- * is no sort. Useful for knowing the set of data the table represents.
365
- */
366
- sortedData;
367
- /** Array of data that should be rendered by the table, where each object represents one row. */
368
- get data() {
369
- return this._data.value;
370
- }
371
- set data(data) {
372
- this.invalidateFilterCache();
373
- this._data.next(data);
374
- if (!this._renderChangesSubscription) {
375
- this._filterData(data);
376
- }
377
- }
378
- /**
379
- * Filter term that should be used to filter out objects from the data array. To `TableDataSource`'s
380
- * default implementation, this string checks for stringification matches anywhere in the object.
381
- */
382
- get filter() {
383
- return this._filter.value;
384
- }
385
- set filter(filter) {
386
- this._filter.next(filter);
387
- if (!this._renderChangesSubscription) {
388
- this._filterData(this.data);
389
- }
390
- }
391
- /**
392
- * Instance of the MatSort directive used by the table to control its sorting. Sort changes
393
- * emitted by the MatSort will trigger an update to the table's rendered data.
394
- */
395
- get sort() {
396
- return this._sort;
397
- }
398
- set sort(sort) {
399
- this._sort = sort;
400
- this._updateChangeSubscription();
401
- }
402
- _sort = null;
403
- /**
404
- * Instance of the Paginator component used by the table to control what page of the data is
405
- * displayed. Page changes emitted by the Paginator will trigger an update to the
406
- * table's rendered data.
407
- */
408
- get paginator() {
409
- return this._paginator;
410
- }
411
- set paginator(paginator) {
412
- this._paginator = paginator;
413
- this._updateChangeSubscription();
414
- }
415
- _paginator = null;
416
- /**
417
- * Data accessor function that is used for accessing data properties for sorting through
418
- * the default sortData function.
419
- * This default function assumes that the data objects are flat and can be accessed directly by
420
- * the column name.
421
- */
422
- sortingDataAccessor = (data, sortHeaderId) => {
423
- const value = data[sortHeaderId];
424
- return typeof value === 'number' || typeof value === 'string' ? value : '' + value;
425
- };
426
- /**
427
- * Gets a sorted copy of the data array based on the state of the MatSort. Called
428
- * after changes are made to the filtered data or when sort changes are emitted from MatSort.
429
- * By default, the function retrieves the active sort and its direction and compares data
430
- * objects by retrieving data using the sortingDataAccessor. May be overridden for a
431
- * custom implementation of data ordering.
432
- * @param data The array of data that should be sorted.
433
- * @param sort The connected MatSort that holds the current sort state.
434
- */
435
- sortData = (data, sort) => {
436
- const active = typeof sort.active === 'function' ? sort.active() : sort.active;
437
- const direction = typeof sort.direction === 'function' ? sort.direction() : sort.direction;
438
- if (!active || direction === '') {
439
- return data;
440
- }
441
- return data.slice().sort((a, b) => {
442
- const valueA = this.sortingDataAccessor(a, active);
443
- const valueB = this.sortingDataAccessor(b, active);
444
- // If both valueA and valueB are numbers, use the numeric comparison.
445
- // If either valueA or valueB is not a number, use the string comparison.
446
- const comparatorResult = typeof valueA === 'number' && typeof valueB === 'number'
447
- ? valueA - valueB
448
- : (valueA + '').localeCompare(valueB + '');
449
- return comparatorResult * (direction === 'asc' ? 1 : -1);
450
- });
451
- };
452
- /**
453
- * Checks if a data object matches the data source's filter string. By default, each data object
454
- * is converted to a string of its properties and returns true if the filter has at least one
455
- * occurrence in that string. By default, the filter string has its whitespace trimmed and the match
456
- * is case-insensitive. May be overridden for a custom implementation of filter matching.
457
- * @param data Data object used to check against the filter.
458
- * @param filter Filter string that has been set on the data source.
459
- * @returns Whether the filter matches the data.
460
- */
461
- filterPredicate = (data, filter) => {
462
- // Transform the filter by converting it to lowercase and splitting into words.
463
- const transformedFilter = filter.trim().toLowerCase();
464
- if (!transformedFilter) {
465
- return true;
466
- }
467
- const filterWords = transformedFilter.split(/\s+/);
468
- // Get the string representation of the data.
469
- const dataStr = this._getQuickFilterString(data);
470
- // Check if all filter words are present in the data string (any order).
471
- return filterWords.every(word => dataStr.indexOf(word) !== -1);
472
- };
473
- /**
474
- * Gets a string representation of the data object used for quick filtering.
475
- * Caches the result to improve performance.
476
- * @param data
477
- * @private
478
- */
479
- /** Call after mutating a row in place; assigning data also invalidates the cache. */
480
- invalidateFilterCache(row) {
481
- if (row !== undefined && typeof row === 'object' && row !== null) {
482
- this._quickFilterCache.delete(row);
483
- }
484
- else {
485
- this._quickFilterCache = new WeakMap();
486
- }
487
- }
488
- _getQuickFilterString(data) {
489
- if (typeof data !== 'object' || data === null) {
490
- return String(data).toLowerCase();
491
- }
492
- let cached = this._quickFilterCache.get(data);
493
- if (cached !== undefined) {
494
- return cached;
495
- }
496
- const dataStr = Object.keys(data)
497
- .reduce((currentTerm, key) => {
498
- const val = data[key];
499
- return currentTerm + (val === null || val === undefined ? '' : val) + ' ';
500
- }, '')
501
- .toLowerCase();
502
- this._quickFilterCache.set(data, dataStr);
503
- return dataStr;
504
- }
505
- constructor(initialData = []) {
506
- super();
507
- this._data = new BehaviorSubject(initialData);
508
- this._renderData = new BehaviorSubject(initialData);
509
- this.filteredData = initialData;
510
- this.sortedData = initialData;
511
- this._updateChangeSubscription();
512
- }
513
- /**
514
- * Subscribe to changes that should trigger an update to the table's rendered data.
515
- */
516
- _updateChangeSubscription() {
517
- const sortChange = this._sort
518
- ? merge(this._observeOutput(this._sort.sortChange), this._sort.initialized || of(undefined), of(undefined))
519
- : of(null);
520
- const pageChange = this._paginator
521
- ? merge(this._observeOutput(this._paginator.page), this._internalPageChanges, this._paginator.initialized || of(undefined), of(undefined))
522
- : of(null);
523
- const dataStream = this._data;
524
- // Watch for base data or filter changes to provide a filtered set of data.
525
- const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));
526
- // Watch for filtered data or sort changes to provide an ordered set of data.
527
- const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));
528
- // Watch for ordered data or page changes to provide a paged set of data.
529
- const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));
530
- // Watched for paged data changes and emit the result to the table to render.
531
- this._renderChangesSubscription.unsubscribe();
532
- this._renderChangesSubscription = paginatedData.subscribe((data) => this._renderData.next(data));
533
- }
534
- _observeOutput(output) {
535
- if (isObservable(output)) {
536
- return output;
537
- }
538
- if (typeof output === 'object' && output !== null && ('subscribe' in output || 'emit' in output)) {
539
- return new Observable((subscriber) => {
540
- try {
541
- const obs = outputToObservable(output);
542
- const sub = obs.subscribe({
543
- next: (value) => subscriber.next(value),
544
- error: (err) => {
545
- if (err && err.message && err.message.includes('NG0911')) {
546
- subscriber.complete();
547
- }
548
- else {
549
- subscriber.error(err);
550
- }
551
- },
552
- complete: () => subscriber.complete(),
553
- });
554
- return () => sub.unsubscribe();
555
- }
556
- catch (e) {
557
- if (e && e.message && e.message.includes('NG0911')) {
558
- subscriber.complete();
559
- return;
560
- }
561
- throw e;
562
- }
563
- });
564
- }
565
- return of();
566
- }
567
- /**
568
- * Returns a filtered data array where each filter object contains the filter string within
569
- * the result of the filterPredicate function. If no filter is set, returns the entire data
570
- * array without changes.
571
- */
572
- _filterData(data) {
573
- this.filteredData = !this.filter
574
- ? data
575
- : data.filter((obj) => this.filterPredicate(obj, this.filter));
576
- if (this.paginator) {
577
- this._updatePaginator(this.filteredData.length);
578
- }
579
- return this.filteredData;
580
- }
581
- /**
582
- * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the
583
- * data array entirely.
584
- */
585
- _orderData(data) {
586
- // If there is no active sort or direction, then the data should not be ordered.
587
- if (!this.sort) {
588
- this.sortedData = data;
589
- return data;
590
- }
591
- this.sortedData = this.sortData(data.slice(), this.sort);
592
- return this.sortedData;
593
- }
594
- /**
595
- * Returns a paged splice of the provided data array based on the provided Paginator's page
596
- * index and length. If there is no paginator provided, returns the data array as is.
597
- */
598
- _pageData(data) {
599
- if (!this.paginator) {
600
- return data;
601
- }
602
- const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
603
- return data.slice(startIndex, startIndex + this.paginator.pageSize);
604
- }
605
- /**
606
- * Updates the paginator to reflect the length of the filtered data, and makes sure that the page
607
- * index does not exceed the amount of pages in the new data set.
608
- */
609
- _updatePaginator(filteredDataLength) {
610
- if (!this.paginator) {
611
- return;
612
- }
613
- this.paginator.length = filteredDataLength;
614
- // If the page index is now larger than the number of pages, move the page index to the last
615
- // page.
616
- if (this.paginator.pageIndex > 0) {
617
- const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);
618
- const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);
619
- if (newPageIndex !== this.paginator.pageIndex) {
620
- this.paginator.pageIndex = newPageIndex;
621
- // Since the paginator has changed, notify the data source that the rendered data
622
- // should be updated.
623
- this._internalPageChanges.next();
624
- }
625
- }
626
- }
627
- /**
628
- * Used by the CdkTable. Called when it connects to the data source.
629
- * @docs-private
630
- */
631
- connect() {
632
- if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) {
633
- this._updateChangeSubscription();
634
- }
635
- return this._renderData;
636
- }
637
- /**
638
- * Used by the CdkTable. Called when it disconnects from the data source.
639
- * @docs-private
640
- */
641
- disconnect() {
642
- this._renderChangesSubscription.unsubscribe();
643
- this._renderChangesSubscription = Subscription.EMPTY;
644
- }
645
- }
646
-
647
- class NativeTable {
648
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NativeTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
649
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: NativeTable, isStandalone: true, selector: "table[ngs-native-table]", host: { classAttribute: "ngs-native-table not-prose" }, exportAs: ["ngsNativeTable"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;border-collapse:collapse}:host ::ng-deep th{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);height:var(--ngs-table-row-height);background:var(--ngs-table-background);border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep td{text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background);vertical-align:middle;border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep tr{position:relative;border:none;height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host ::ng-deep tbody tr:last-child td{border-bottom:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
650
- }
651
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: NativeTable, decorators: [{
652
- type: Component,
653
- args: [{ selector: 'table[ngs-native-table]', exportAs: 'ngsNativeTable', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, host: {
654
- 'class': 'ngs-native-table not-prose',
655
- }, template: "<ng-content/>\n", styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;border-collapse:collapse}:host ::ng-deep th{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);height:var(--ngs-table-row-height);background:var(--ngs-table-background);border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep td{text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background);vertical-align:middle;border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep tr{position:relative;border:none;height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host ::ng-deep tbody tr:last-child td{border-bottom:none}\n"] }]
656
- }] });
657
-
658
- /**
659
- * Generated bundle index. Do not edit.
660
- */
661
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ContentChildren, DestroyRef, Directive, booleanAttribute, computed, forwardRef, inject, input, signal } from "@angular/core";
3
+ import { outputToObservable, takeUntilDestroyed } from "@angular/core/rxjs-interop";
4
+ import { BehaviorSubject, Observable, Subject, Subscription, combineLatest, isObservable, merge, of } from "rxjs";
5
+ import { map as map$1 } from "rxjs/operators";
6
+ import { DataSource } from "@angular/cdk/collections";
7
+ import * as i1 from "@angular/cdk/table";
8
+ import { CDK_TABLE, CdkCell, CdkCellDef, CdkCellOutlet, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRow, CdkRowDef, CdkTable, CdkTableModule, CdkTextColumn, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, STICKY_POSITIONING_LISTENER } from "@angular/cdk/table";
9
+ var Table = class Table extends CdkTable {
10
+ hideHeader = input(false, {
11
+ ...ngDevMode ? { debugName: "hideHeader" } : /* istanbul ignore next */ {},
12
+ transform: booleanAttribute
13
+ });
14
+ hideBody = input(false, {
15
+ ...ngDevMode ? { debugName: "hideBody" } : /* istanbul ignore next */ {},
16
+ transform: booleanAttribute
17
+ });
18
+ hideFooter = input(false, {
19
+ ...ngDevMode ? { debugName: "hideFooter" } : /* istanbul ignore next */ {},
20
+ transform: booleanAttribute
21
+ });
22
+ destroyRef = inject(DestroyRef);
23
+ _hasStickyHeader = signal(false, ...ngDevMode ? [{ debugName: "_hasStickyHeader" }] : /* istanbul ignore next */ []);
24
+ hasStickyHeader = computed(() => this._hasStickyHeader(), ...ngDevMode ? [{ debugName: "hasStickyHeader" }] : /* istanbul ignore next */ []);
25
+ headerRowDefsQuery;
26
+ columnDefsQuery;
27
+ _hasStickyColumns = signal(false, ...ngDevMode ? [{ debugName: "_hasStickyColumns" }] : /* istanbul ignore next */ []);
28
+ hasStickyColumns = computed(() => this._hasStickyColumns(), ...ngDevMode ? [{ debugName: "hasStickyColumns" }] : /* istanbul ignore next */ []);
29
+ _updateStickyStates() {
30
+ if (this.headerRowDefsQuery) {
31
+ const hasStickyHeaderRows = this.headerRowDefsQuery.toArray().some((def) => def.sticky);
32
+ this._hasStickyHeader.set(hasStickyHeaderRows);
33
+ }
34
+ if (this.columnDefsQuery) {
35
+ const hasStickyColumns = this.columnDefsQuery.toArray().some((def) => def.sticky || def.stickyEnd);
36
+ this._hasStickyColumns.set(hasStickyColumns);
37
+ this.fixedLayout = hasStickyColumns;
38
+ }
39
+ }
40
+ ngOnInit() {
41
+ super.ngOnInit();
42
+ }
43
+ ngAfterContentInit() {
44
+ super.ngAfterContentInit();
45
+ this.headerRowDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
46
+ this._updateStickyStates();
47
+ });
48
+ this.columnDefsQuery.changes.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
49
+ this._updateStickyStates();
50
+ });
51
+ this._updateStickyStates();
52
+ }
53
+ stickyCssClass = "ngs-table-sticky";
54
+ static ɵfac = i0.ɵɵngDeclareFactory({
55
+ minVersion: "12.0.0",
56
+ version: "22.3.0",
57
+ ngImport: i0,
58
+ type: Table,
59
+ deps: null,
60
+ target: i0.ɵɵFactoryTarget.Component
61
+ });
62
+ static ɵcmp = i0.ɵɵngDeclareComponent({
63
+ minVersion: "17.1.0",
64
+ version: "22.3.0",
65
+ type: Table,
66
+ isStandalone: true,
67
+ selector: "ngs-table, table[ngs-table]",
68
+ inputs: {
69
+ hideHeader: {
70
+ classPropertyName: "hideHeader",
71
+ publicName: "hideHeader",
72
+ isSignal: true,
73
+ isRequired: false,
74
+ transformFunction: null
75
+ },
76
+ hideBody: {
77
+ classPropertyName: "hideBody",
78
+ publicName: "hideBody",
79
+ isSignal: true,
80
+ isRequired: false,
81
+ transformFunction: null
82
+ },
83
+ hideFooter: {
84
+ classPropertyName: "hideFooter",
85
+ publicName: "hideFooter",
86
+ isSignal: true,
87
+ isRequired: false,
88
+ transformFunction: null
89
+ }
90
+ },
91
+ host: {
92
+ attributes: { "role": "grid" },
93
+ properties: {
94
+ "class.ngs-table-fixed-layout": "fixedLayout",
95
+ "class.ngs-table-sticky": "hasStickyColumns()"
96
+ },
97
+ classAttribute: "ngs-table not-prose"
98
+ },
99
+ providers: [
100
+ {
101
+ provide: CdkTable,
102
+ useExisting: forwardRef(() => Table)
103
+ },
104
+ {
105
+ provide: CDK_TABLE,
106
+ useExisting: forwardRef(() => Table)
107
+ },
108
+ {
109
+ provide: STICKY_POSITIONING_LISTENER,
110
+ useValue: null
111
+ }
112
+ ],
113
+ queries: [{
114
+ propertyName: "headerRowDefsQuery",
115
+ predicate: CdkHeaderRowDef,
116
+ descendants: true
117
+ }, {
118
+ propertyName: "columnDefsQuery",
119
+ predicate: CdkColumnDef,
120
+ descendants: true
121
+ }],
122
+ exportAs: ["ngsTable"],
123
+ usesInheritance: true,
124
+ ngImport: i0,
125
+ template: "<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",
126
+ styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;display:table;border-collapse:collapse}:host.ngs-table-fixed-layout{table-layout:fixed;min-width:100%;width:max-content}:host ::ng-deep .ngs-header-cell{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;display:table-cell;vertical-align:middle;text-align:start}:host ::ng-deep .ngs-header-cell,:host ::ng-deep .ngs-cell,:host ::ng-deep .ngs-footer-cell{display:table-cell;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky,:host ::ng-deep .ngs-cell.ngs-table-sticky,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky{position:sticky!important;background:inherit;z-index:10;background-clip:padding-box}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-header-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-footer-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before{content:\"\";position:absolute;top:0;right:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before{content:\"\";position:absolute;top:0;left:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after{content:\"\";position:absolute;left:0;right:0;height:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after{content:\"\";position:absolute;top:0;left:0;height:1px;right:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left,:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right{z-index:110}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
127
+ dependencies: [
128
+ {
129
+ kind: "ngmodule",
130
+ type: CdkTableModule
131
+ },
132
+ {
133
+ kind: "directive",
134
+ type: i1.DataRowOutlet,
135
+ selector: "[rowOutlet]"
136
+ },
137
+ {
138
+ kind: "directive",
139
+ type: i1.HeaderRowOutlet,
140
+ selector: "[headerRowOutlet]"
141
+ },
142
+ {
143
+ kind: "directive",
144
+ type: i1.FooterRowOutlet,
145
+ selector: "[footerRowOutlet]"
146
+ },
147
+ {
148
+ kind: "directive",
149
+ type: i1.NoDataRowOutlet,
150
+ selector: "[noDataRowOutlet]"
151
+ }
152
+ ],
153
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
154
+ });
155
+ };
156
+ i0.ɵɵngDeclareClassMetadata({
157
+ minVersion: "12.0.0",
158
+ version: "22.3.0",
159
+ ngImport: i0,
160
+ type: Table,
161
+ decorators: [{
162
+ type: Component,
163
+ args: [{
164
+ selector: "ngs-table, table[ngs-table]",
165
+ exportAs: "ngsTable",
166
+ imports: [
167
+ CdkTableModule,
168
+ HeaderRowOutlet,
169
+ FooterRowOutlet,
170
+ DataRowOutlet,
171
+ NoDataRowOutlet
172
+ ],
173
+ providers: [
174
+ {
175
+ provide: CdkTable,
176
+ useExisting: forwardRef(() => Table)
177
+ },
178
+ {
179
+ provide: CDK_TABLE,
180
+ useExisting: forwardRef(() => Table)
181
+ },
182
+ {
183
+ provide: STICKY_POSITIONING_LISTENER,
184
+ useValue: null
185
+ }
186
+ ],
187
+ changeDetection: ChangeDetectionStrategy.OnPush,
188
+ host: {
189
+ "class": "ngs-table not-prose",
190
+ "[class.ngs-table-fixed-layout]": "fixedLayout",
191
+ "[class.ngs-table-sticky]": "hasStickyColumns()",
192
+ "role": "grid"
193
+ },
194
+ template: "<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",
195
+ styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;display:table;border-collapse:collapse}:host.ngs-table-fixed-layout{table-layout:fixed;min-width:100%;width:max-content}:host ::ng-deep .ngs-header-cell{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;display:table-cell;vertical-align:middle;text-align:start}:host ::ng-deep .ngs-header-cell,:host ::ng-deep .ngs-cell,:host ::ng-deep .ngs-footer-cell{display:table-cell;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky,:host ::ng-deep .ngs-cell.ngs-table-sticky,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky{position:sticky!important;background:inherit;z-index:10;background-clip:padding-box}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-header-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-header-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-footer-cell,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-footer-cell{z-index:100;background:var(--ngs-table-header-cell-background, var(--ngs-table-background))}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left:before{content:\"\";position:absolute;top:0;right:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right:before{content:\"\";position:absolute;top:0;left:0;width:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-top:after{content:\"\";position:absolute;left:0;right:0;height:1px;bottom:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after,:host ::ng-deep .ngs-footer-cell.ngs-table-sticky.ngs-table-sticky-border-elem-bottom:after{content:\"\";position:absolute;top:0;left:0;height:1px;right:0;background:var(--ngs-table-border-color)}:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-left,:host ::ng-deep .ngs-header-cell.ngs-table-sticky.ngs-table-sticky-border-elem-right{z-index:110}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
196
+ }]
197
+ }],
198
+ propDecorators: {
199
+ hideHeader: [{
200
+ type: i0.Input,
201
+ args: [{
202
+ isSignal: true,
203
+ alias: "hideHeader",
204
+ required: false
205
+ }]
206
+ }],
207
+ hideBody: [{
208
+ type: i0.Input,
209
+ args: [{
210
+ isSignal: true,
211
+ alias: "hideBody",
212
+ required: false
213
+ }]
214
+ }],
215
+ hideFooter: [{
216
+ type: i0.Input,
217
+ args: [{
218
+ isSignal: true,
219
+ alias: "hideFooter",
220
+ required: false
221
+ }]
222
+ }],
223
+ headerRowDefsQuery: [{
224
+ type: ContentChildren,
225
+ args: [CdkHeaderRowDef, { descendants: true }]
226
+ }],
227
+ columnDefsQuery: [{
228
+ type: ContentChildren,
229
+ args: [CdkColumnDef, { descendants: true }]
230
+ }]
231
+ }
232
+ });
233
+ var Cell = class Cell extends CdkCell {
234
+ static ɵfac = i0.ɵɵngDeclareFactory({
235
+ minVersion: "12.0.0",
236
+ version: "22.3.0",
237
+ ngImport: i0,
238
+ type: Cell,
239
+ deps: null,
240
+ target: i0.ɵɵFactoryTarget.Directive
241
+ });
242
+ static ɵdir = i0.ɵɵngDeclareDirective({
243
+ minVersion: "14.0.0",
244
+ version: "22.3.0",
245
+ type: Cell,
246
+ isStandalone: true,
247
+ selector: "ngs-cell, [ngs-cell], td[ngs-cell]",
248
+ host: {
249
+ attributes: { "role": "gridcell" },
250
+ classAttribute: "ngs-cell"
251
+ },
252
+ usesInheritance: true,
253
+ ngImport: i0
254
+ });
255
+ };
256
+ i0.ɵɵngDeclareClassMetadata({
257
+ minVersion: "12.0.0",
258
+ version: "22.3.0",
259
+ ngImport: i0,
260
+ type: Cell,
261
+ decorators: [{
262
+ type: Directive,
263
+ args: [{
264
+ selector: "ngs-cell, [ngs-cell], td[ngs-cell]",
265
+ host: {
266
+ "class": "ngs-cell",
267
+ "role": "gridcell"
268
+ },
269
+ standalone: true
270
+ }]
271
+ }]
272
+ });
273
+ var CellDef = class CellDef extends CdkCellDef {
274
+ static ɵfac = i0.ɵɵngDeclareFactory({
275
+ minVersion: "12.0.0",
276
+ version: "22.3.0",
277
+ ngImport: i0,
278
+ type: CellDef,
279
+ deps: null,
280
+ target: i0.ɵɵFactoryTarget.Directive
281
+ });
282
+ static ɵdir = i0.ɵɵngDeclareDirective({
283
+ minVersion: "14.0.0",
284
+ version: "22.3.0",
285
+ type: CellDef,
286
+ isStandalone: true,
287
+ selector: "[ngsCellDef]",
288
+ providers: [{
289
+ provide: CdkCellDef,
290
+ useExisting: forwardRef(() => CellDef)
291
+ }],
292
+ usesInheritance: true,
293
+ ngImport: i0
294
+ });
295
+ };
296
+ i0.ɵɵngDeclareClassMetadata({
297
+ minVersion: "12.0.0",
298
+ version: "22.3.0",
299
+ ngImport: i0,
300
+ type: CellDef,
301
+ decorators: [{
302
+ type: Directive,
303
+ args: [{
304
+ selector: "[ngsCellDef]",
305
+ standalone: true,
306
+ providers: [{
307
+ provide: CdkCellDef,
308
+ useExisting: forwardRef(() => CellDef)
309
+ }]
310
+ }]
311
+ }]
312
+ });
313
+ var ColumnDef = class ColumnDef extends CdkColumnDef {
314
+ static ɵfac = i0.ɵɵngDeclareFactory({
315
+ minVersion: "12.0.0",
316
+ version: "22.3.0",
317
+ ngImport: i0,
318
+ type: ColumnDef,
319
+ deps: null,
320
+ target: i0.ɵɵFactoryTarget.Directive
321
+ });
322
+ static ɵdir = i0.ɵɵngDeclareDirective({
323
+ minVersion: "14.0.0",
324
+ version: "22.3.0",
325
+ type: ColumnDef,
326
+ isStandalone: true,
327
+ selector: "[ngsColumnDef]",
328
+ inputs: { name: ["ngsColumnDef", "name"] },
329
+ providers: [{
330
+ provide: CdkColumnDef,
331
+ useExisting: forwardRef(() => ColumnDef)
332
+ }],
333
+ usesInheritance: true,
334
+ ngImport: i0
335
+ });
336
+ };
337
+ i0.ɵɵngDeclareClassMetadata({
338
+ minVersion: "12.0.0",
339
+ version: "22.3.0",
340
+ ngImport: i0,
341
+ type: ColumnDef,
342
+ decorators: [{
343
+ type: Directive,
344
+ args: [{
345
+ selector: "[ngsColumnDef]",
346
+ standalone: true,
347
+ providers: [{
348
+ provide: CdkColumnDef,
349
+ useExisting: forwardRef(() => ColumnDef)
350
+ }],
351
+ inputs: ["name: ngsColumnDef"]
352
+ }]
353
+ }]
354
+ });
355
+ var FooterCell = class FooterCell extends CdkFooterCell {
356
+ static ɵfac = i0.ɵɵngDeclareFactory({
357
+ minVersion: "12.0.0",
358
+ version: "22.3.0",
359
+ ngImport: i0,
360
+ type: FooterCell,
361
+ deps: null,
362
+ target: i0.ɵɵFactoryTarget.Directive
363
+ });
364
+ static ɵdir = i0.ɵɵngDeclareDirective({
365
+ minVersion: "14.0.0",
366
+ version: "22.3.0",
367
+ type: FooterCell,
368
+ isStandalone: true,
369
+ selector: "ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]",
370
+ host: {
371
+ attributes: { "role": "gridcell" },
372
+ classAttribute: "ngs-footer-cell"
373
+ },
374
+ usesInheritance: true,
375
+ ngImport: i0
376
+ });
377
+ };
378
+ i0.ɵɵngDeclareClassMetadata({
379
+ minVersion: "12.0.0",
380
+ version: "22.3.0",
381
+ ngImport: i0,
382
+ type: FooterCell,
383
+ decorators: [{
384
+ type: Directive,
385
+ args: [{
386
+ selector: "ngs-footer-cell, [ngs-footer-cell], td[ngs-footer-cell]",
387
+ host: {
388
+ "class": "ngs-footer-cell",
389
+ "role": "gridcell"
390
+ },
391
+ standalone: true
392
+ }]
393
+ }]
394
+ });
395
+ var FooterCellDef = class FooterCellDef extends CdkFooterCellDef {
396
+ static ɵfac = i0.ɵɵngDeclareFactory({
397
+ minVersion: "12.0.0",
398
+ version: "22.3.0",
399
+ ngImport: i0,
400
+ type: FooterCellDef,
401
+ deps: null,
402
+ target: i0.ɵɵFactoryTarget.Directive
403
+ });
404
+ static ɵdir = i0.ɵɵngDeclareDirective({
405
+ minVersion: "14.0.0",
406
+ version: "22.3.0",
407
+ type: FooterCellDef,
408
+ isStandalone: true,
409
+ selector: "[ngsFooterCellDef]",
410
+ providers: [{
411
+ provide: CdkFooterCellDef,
412
+ useExisting: forwardRef(() => FooterCellDef)
413
+ }],
414
+ usesInheritance: true,
415
+ ngImport: i0
416
+ });
417
+ };
418
+ i0.ɵɵngDeclareClassMetadata({
419
+ minVersion: "12.0.0",
420
+ version: "22.3.0",
421
+ ngImport: i0,
422
+ type: FooterCellDef,
423
+ decorators: [{
424
+ type: Directive,
425
+ args: [{
426
+ selector: "[ngsFooterCellDef]",
427
+ standalone: true,
428
+ providers: [{
429
+ provide: CdkFooterCellDef,
430
+ useExisting: forwardRef(() => FooterCellDef)
431
+ }]
432
+ }]
433
+ }]
434
+ });
435
+ var FooterRow = class FooterRow extends CdkFooterRow {
436
+ static ɵfac = i0.ɵɵngDeclareFactory({
437
+ minVersion: "12.0.0",
438
+ version: "22.3.0",
439
+ ngImport: i0,
440
+ type: FooterRow,
441
+ deps: null,
442
+ target: i0.ɵɵFactoryTarget.Component
443
+ });
444
+ static ɵcmp = i0.ɵɵngDeclareComponent({
445
+ minVersion: "14.0.0",
446
+ version: "22.3.0",
447
+ type: FooterRow,
448
+ isStandalone: true,
449
+ selector: "ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]",
450
+ host: {
451
+ attributes: { "role": "row" },
452
+ classAttribute: "ngs-footer-row"
453
+ },
454
+ providers: [{
455
+ provide: CdkFooterRow,
456
+ useExisting: forwardRef(() => FooterRow)
457
+ }],
458
+ usesInheritance: true,
459
+ ngImport: i0,
460
+ template: "<ng-container cdkCellOutlet />\n",
461
+ styles: [":host{min-height:var(--ngs-table-row-height);display:table-row}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}\n"],
462
+ dependencies: [{
463
+ kind: "directive",
464
+ type: CdkCellOutlet,
465
+ selector: "[cdkCellOutlet]"
466
+ }],
467
+ changeDetection: i0.ChangeDetectionStrategy.Eager
468
+ });
469
+ };
470
+ i0.ɵɵngDeclareClassMetadata({
471
+ minVersion: "12.0.0",
472
+ version: "22.3.0",
473
+ ngImport: i0,
474
+ type: FooterRow,
475
+ decorators: [{
476
+ type: Component,
477
+ args: [{
478
+ selector: "ngs-footer-row, [ngs-footer-row], tr[ngs-footer-row]",
479
+ host: {
480
+ "class": "ngs-footer-row",
481
+ "role": "row"
482
+ },
483
+ changeDetection: ChangeDetectionStrategy.Eager,
484
+ standalone: true,
485
+ imports: [CdkCellOutlet],
486
+ providers: [{
487
+ provide: CdkFooterRow,
488
+ useExisting: forwardRef(() => FooterRow)
489
+ }],
490
+ template: "<ng-container cdkCellOutlet />\n",
491
+ styles: [":host{min-height:var(--ngs-table-row-height);display:table-row}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}\n"]
492
+ }]
493
+ }]
494
+ });
495
+ var FooterRowDef = class FooterRowDef extends CdkFooterRowDef {
496
+ static ɵfac = i0.ɵɵngDeclareFactory({
497
+ minVersion: "12.0.0",
498
+ version: "22.3.0",
499
+ ngImport: i0,
500
+ type: FooterRowDef,
501
+ deps: null,
502
+ target: i0.ɵɵFactoryTarget.Directive
503
+ });
504
+ static ɵdir = i0.ɵɵngDeclareDirective({
505
+ minVersion: "14.0.0",
506
+ version: "22.3.0",
507
+ type: FooterRowDef,
508
+ isStandalone: true,
509
+ selector: "[ngsFooterRowDef]",
510
+ inputs: {
511
+ columns: ["ngsFooterRowDef", "columns"],
512
+ sticky: ["ngsFooterRowDefSticky", "sticky"]
513
+ },
514
+ providers: [{
515
+ provide: CdkFooterRowDef,
516
+ useExisting: forwardRef(() => FooterRowDef)
517
+ }],
518
+ usesInheritance: true,
519
+ ngImport: i0
520
+ });
521
+ };
522
+ i0.ɵɵngDeclareClassMetadata({
523
+ minVersion: "12.0.0",
524
+ version: "22.3.0",
525
+ ngImport: i0,
526
+ type: FooterRowDef,
527
+ decorators: [{
528
+ type: Directive,
529
+ args: [{
530
+ selector: "[ngsFooterRowDef]",
531
+ standalone: true,
532
+ providers: [{
533
+ provide: CdkFooterRowDef,
534
+ useExisting: forwardRef(() => FooterRowDef)
535
+ }],
536
+ inputs: ["columns: ngsFooterRowDef", "sticky: ngsFooterRowDefSticky"]
537
+ }]
538
+ }]
539
+ });
540
+ var HeaderCell = class HeaderCell extends CdkHeaderCell {
541
+ static ɵfac = i0.ɵɵngDeclareFactory({
542
+ minVersion: "12.0.0",
543
+ version: "22.3.0",
544
+ ngImport: i0,
545
+ type: HeaderCell,
546
+ deps: null,
547
+ target: i0.ɵɵFactoryTarget.Directive
548
+ });
549
+ static ɵdir = i0.ɵɵngDeclareDirective({
550
+ minVersion: "14.0.0",
551
+ version: "22.3.0",
552
+ type: HeaderCell,
553
+ isStandalone: true,
554
+ selector: "ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]",
555
+ host: {
556
+ attributes: { "role": "columnheader" },
557
+ classAttribute: "ngs-header-cell"
558
+ },
559
+ usesInheritance: true,
560
+ ngImport: i0
561
+ });
562
+ };
563
+ i0.ɵɵngDeclareClassMetadata({
564
+ minVersion: "12.0.0",
565
+ version: "22.3.0",
566
+ ngImport: i0,
567
+ type: HeaderCell,
568
+ decorators: [{
569
+ type: Directive,
570
+ args: [{
571
+ selector: "ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]",
572
+ host: {
573
+ "class": "ngs-header-cell",
574
+ "role": "columnheader"
575
+ },
576
+ standalone: true
577
+ }]
578
+ }]
579
+ });
580
+ var HeaderCellDef = class HeaderCellDef extends CdkHeaderCellDef {
581
+ static ɵfac = i0.ɵɵngDeclareFactory({
582
+ minVersion: "12.0.0",
583
+ version: "22.3.0",
584
+ ngImport: i0,
585
+ type: HeaderCellDef,
586
+ deps: null,
587
+ target: i0.ɵɵFactoryTarget.Directive
588
+ });
589
+ static ɵdir = i0.ɵɵngDeclareDirective({
590
+ minVersion: "14.0.0",
591
+ version: "22.3.0",
592
+ type: HeaderCellDef,
593
+ isStandalone: true,
594
+ selector: "[ngsHeaderCellDef]",
595
+ providers: [{
596
+ provide: CdkHeaderCellDef,
597
+ useExisting: forwardRef(() => HeaderCellDef)
598
+ }],
599
+ usesInheritance: true,
600
+ ngImport: i0
601
+ });
602
+ };
603
+ i0.ɵɵngDeclareClassMetadata({
604
+ minVersion: "12.0.0",
605
+ version: "22.3.0",
606
+ ngImport: i0,
607
+ type: HeaderCellDef,
608
+ decorators: [{
609
+ type: Directive,
610
+ args: [{
611
+ selector: "[ngsHeaderCellDef]",
612
+ standalone: true,
613
+ providers: [{
614
+ provide: CdkHeaderCellDef,
615
+ useExisting: forwardRef(() => HeaderCellDef)
616
+ }]
617
+ }]
618
+ }]
619
+ });
620
+ var HeaderRow = class HeaderRow extends CdkHeaderRow {
621
+ static ɵfac = i0.ɵɵngDeclareFactory({
622
+ minVersion: "12.0.0",
623
+ version: "22.3.0",
624
+ ngImport: i0,
625
+ type: HeaderRow,
626
+ deps: null,
627
+ target: i0.ɵɵFactoryTarget.Component
628
+ });
629
+ static ɵcmp = i0.ɵɵngDeclareComponent({
630
+ minVersion: "14.0.0",
631
+ version: "22.3.0",
632
+ type: HeaderRow,
633
+ isStandalone: true,
634
+ selector: "ngs-header-row, [ngs-header-row], tr[ngs-header-row]",
635
+ host: {
636
+ attributes: { "role": "row" },
637
+ classAttribute: "ngs-header-row"
638
+ },
639
+ providers: [{
640
+ provide: CdkHeaderRow,
641
+ useExisting: forwardRef(() => HeaderRow)
642
+ }],
643
+ usesInheritance: true,
644
+ ngImport: i0,
645
+ template: "<ng-container cdkCellOutlet />\n",
646
+ styles: [":host{height:var(--ngs-table-header-row-height);display:table-row;background:var(--ngs-data-view-header-bg, var(--ngs-table-header-bg));width:100%}:host-context(.highlight-header) :host{position:relative;margin:var(--ngs-data-view-hl-header-margin, 0)}:host-context(.highlight-header) :host:before{content:\"\";position:absolute;left:0;right:0;background:var(--ngs-data-view-hl-header-row-bg, var(--ngs-color-surface-container));height:calc(var(--spacing, .25rem) * 12);border-radius:var(--ngs-radius-lg);z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
647
+ dependencies: [{
648
+ kind: "directive",
649
+ type: CdkCellOutlet,
650
+ selector: "[cdkCellOutlet]"
651
+ }],
652
+ changeDetection: i0.ChangeDetectionStrategy.Eager
653
+ });
654
+ };
655
+ i0.ɵɵngDeclareClassMetadata({
656
+ minVersion: "12.0.0",
657
+ version: "22.3.0",
658
+ ngImport: i0,
659
+ type: HeaderRow,
660
+ decorators: [{
661
+ type: Component,
662
+ args: [{
663
+ selector: "ngs-header-row, [ngs-header-row], tr[ngs-header-row]",
664
+ host: {
665
+ "class": "ngs-header-row",
666
+ "role": "row"
667
+ },
668
+ changeDetection: ChangeDetectionStrategy.Eager,
669
+ standalone: true,
670
+ imports: [CdkCellOutlet],
671
+ providers: [{
672
+ provide: CdkHeaderRow,
673
+ useExisting: forwardRef(() => HeaderRow)
674
+ }],
675
+ template: "<ng-container cdkCellOutlet />\n",
676
+ styles: [":host{height:var(--ngs-table-header-row-height);display:table-row;background:var(--ngs-data-view-header-bg, var(--ngs-table-header-bg));width:100%}:host-context(.highlight-header) :host{position:relative;margin:var(--ngs-data-view-hl-header-margin, 0)}:host-context(.highlight-header) :host:before{content:\"\";position:absolute;left:0;right:0;background:var(--ngs-data-view-hl-header-row-bg, var(--ngs-color-surface-container));height:calc(var(--spacing, .25rem) * 12);border-radius:var(--ngs-radius-lg);z-index:0}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
677
+ }]
678
+ }]
679
+ });
680
+ var HeaderRowDef = class HeaderRowDef extends CdkHeaderRowDef {
681
+ static ɵfac = i0.ɵɵngDeclareFactory({
682
+ minVersion: "12.0.0",
683
+ version: "22.3.0",
684
+ ngImport: i0,
685
+ type: HeaderRowDef,
686
+ deps: null,
687
+ target: i0.ɵɵFactoryTarget.Directive
688
+ });
689
+ static ɵdir = i0.ɵɵngDeclareDirective({
690
+ minVersion: "14.0.0",
691
+ version: "22.3.0",
692
+ type: HeaderRowDef,
693
+ isStandalone: true,
694
+ selector: "[ngsHeaderRowDef]",
695
+ inputs: {
696
+ columns: ["ngsHeaderRowDef", "columns"],
697
+ sticky: ["ngsHeaderRowDefSticky", "sticky"]
698
+ },
699
+ providers: [{
700
+ provide: CdkHeaderRowDef,
701
+ useExisting: forwardRef(() => HeaderRowDef)
702
+ }],
703
+ usesInheritance: true,
704
+ ngImport: i0
705
+ });
706
+ };
707
+ i0.ɵɵngDeclareClassMetadata({
708
+ minVersion: "12.0.0",
709
+ version: "22.3.0",
710
+ ngImport: i0,
711
+ type: HeaderRowDef,
712
+ decorators: [{
713
+ type: Directive,
714
+ args: [{
715
+ selector: "[ngsHeaderRowDef]",
716
+ standalone: true,
717
+ providers: [{
718
+ provide: CdkHeaderRowDef,
719
+ useExisting: forwardRef(() => HeaderRowDef)
720
+ }],
721
+ inputs: ["columns: ngsHeaderRowDef", "sticky: ngsHeaderRowDefSticky"]
722
+ }]
723
+ }]
724
+ });
725
+ var NoDataRow = class NoDataRow extends CdkNoDataRow {
726
+ static ɵfac = i0.ɵɵngDeclareFactory({
727
+ minVersion: "12.0.0",
728
+ version: "22.3.0",
729
+ ngImport: i0,
730
+ type: NoDataRow,
731
+ deps: null,
732
+ target: i0.ɵɵFactoryTarget.Directive
733
+ });
734
+ static ɵdir = i0.ɵɵngDeclareDirective({
735
+ minVersion: "14.0.0",
736
+ version: "22.3.0",
737
+ type: NoDataRow,
738
+ isStandalone: true,
739
+ selector: "ng-template[ngsNoDataRow]",
740
+ providers: [{
741
+ provide: CdkNoDataRow,
742
+ useExisting: forwardRef(() => NoDataRow)
743
+ }],
744
+ usesInheritance: true,
745
+ ngImport: i0
746
+ });
747
+ };
748
+ i0.ɵɵngDeclareClassMetadata({
749
+ minVersion: "12.0.0",
750
+ version: "22.3.0",
751
+ ngImport: i0,
752
+ type: NoDataRow,
753
+ decorators: [{
754
+ type: Directive,
755
+ args: [{
756
+ selector: "ng-template[ngsNoDataRow]",
757
+ standalone: true,
758
+ providers: [{
759
+ provide: CdkNoDataRow,
760
+ useExisting: forwardRef(() => NoDataRow)
761
+ }]
762
+ }]
763
+ }]
764
+ });
765
+ var Row = class Row extends CdkRow {
766
+ static ɵfac = i0.ɵɵngDeclareFactory({
767
+ minVersion: "12.0.0",
768
+ version: "22.3.0",
769
+ ngImport: i0,
770
+ type: Row,
771
+ deps: null,
772
+ target: i0.ɵɵFactoryTarget.Component
773
+ });
774
+ static ɵcmp = i0.ɵɵngDeclareComponent({
775
+ minVersion: "14.0.0",
776
+ version: "22.3.0",
777
+ type: Row,
778
+ isStandalone: true,
779
+ selector: "ngs-row, [ngs-row], tr[ngs-row]",
780
+ host: {
781
+ attributes: { "role": "row" },
782
+ classAttribute: "ngs-row"
783
+ },
784
+ providers: [{
785
+ provide: CdkRow,
786
+ useExisting: forwardRef(() => Row)
787
+ }],
788
+ usesInheritance: true,
789
+ ngImport: i0,
790
+ template: "<ng-container cdkCellOutlet />\n",
791
+ styles: [":host{position:relative;display:table-row;border:none;border-top:1px solid var(--ngs-table-border-color);height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}:host-context(.highlight-header,.sticky-header,.ngs-table-sticky-header) :host:first-of-type{border-top:none!important}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
792
+ dependencies: [{
793
+ kind: "directive",
794
+ type: CdkCellOutlet,
795
+ selector: "[cdkCellOutlet]"
796
+ }],
797
+ changeDetection: i0.ChangeDetectionStrategy.Eager
798
+ });
799
+ };
800
+ i0.ɵɵngDeclareClassMetadata({
801
+ minVersion: "12.0.0",
802
+ version: "22.3.0",
803
+ ngImport: i0,
804
+ type: Row,
805
+ decorators: [{
806
+ type: Component,
807
+ args: [{
808
+ selector: "ngs-row, [ngs-row], tr[ngs-row]",
809
+ host: {
810
+ "class": "ngs-row",
811
+ "role": "row"
812
+ },
813
+ changeDetection: ChangeDetectionStrategy.Eager,
814
+ standalone: true,
815
+ imports: [CdkCellOutlet],
816
+ providers: [{
817
+ provide: CdkRow,
818
+ useExisting: forwardRef(() => Row)
819
+ }],
820
+ template: "<ng-container cdkCellOutlet />\n",
821
+ styles: [":host{position:relative;display:table-row;border:none;border-top:1px solid var(--ngs-table-border-color);height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host:last-child ::ng-deep .ngs-footer-cell,:host:last-child ::ng-deep td{border-bottom:none}:host-context(.highlight-header,.sticky-header,.ngs-table-sticky-header) :host:first-of-type{border-top:none!important}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
822
+ }]
823
+ }]
824
+ });
825
+ var RowDef = class RowDef extends CdkRowDef {
826
+ static ɵfac = i0.ɵɵngDeclareFactory({
827
+ minVersion: "12.0.0",
828
+ version: "22.3.0",
829
+ ngImport: i0,
830
+ type: RowDef,
831
+ deps: null,
832
+ target: i0.ɵɵFactoryTarget.Directive
833
+ });
834
+ static ɵdir = i0.ɵɵngDeclareDirective({
835
+ minVersion: "14.0.0",
836
+ version: "22.3.0",
837
+ type: RowDef,
838
+ isStandalone: true,
839
+ selector: "[ngsRowDef]",
840
+ inputs: {
841
+ columns: ["ngsRowDefColumns", "columns"],
842
+ when: ["ngsRowDefWhen", "when"]
843
+ },
844
+ providers: [{
845
+ provide: CdkRowDef,
846
+ useExisting: forwardRef(() => RowDef)
847
+ }],
848
+ usesInheritance: true,
849
+ ngImport: i0
850
+ });
851
+ };
852
+ i0.ɵɵngDeclareClassMetadata({
853
+ minVersion: "12.0.0",
854
+ version: "22.3.0",
855
+ ngImport: i0,
856
+ type: RowDef,
857
+ decorators: [{
858
+ type: Directive,
859
+ args: [{
860
+ selector: "[ngsRowDef]",
861
+ standalone: true,
862
+ providers: [{
863
+ provide: CdkRowDef,
864
+ useExisting: forwardRef(() => RowDef)
865
+ }],
866
+ inputs: ["columns: ngsRowDefColumns", "when: ngsRowDefWhen"]
867
+ }]
868
+ }]
869
+ });
870
+ var TextColumn = class TextColumn extends CdkTextColumn {
871
+ static ɵfac = i0.ɵɵngDeclareFactory({
872
+ minVersion: "12.0.0",
873
+ version: "22.3.0",
874
+ ngImport: i0,
875
+ type: TextColumn,
876
+ deps: null,
877
+ target: i0.ɵɵFactoryTarget.Component
878
+ });
879
+ static ɵcmp = i0.ɵɵngDeclareComponent({
880
+ minVersion: "14.0.0",
881
+ version: "22.3.0",
882
+ type: TextColumn,
883
+ isStandalone: true,
884
+ selector: "ngs-text-column",
885
+ host: { classAttribute: "ngs-text-column" },
886
+ exportAs: ["ngsTextColumn"],
887
+ usesInheritance: true,
888
+ ngImport: i0,
889
+ template: "<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",
890
+ styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
891
+ dependencies: [
892
+ {
893
+ kind: "directive",
894
+ type: ColumnDef,
895
+ selector: "[ngsColumnDef]",
896
+ inputs: ["ngsColumnDef"]
897
+ },
898
+ {
899
+ kind: "directive",
900
+ type: HeaderCellDef,
901
+ selector: "[ngsHeaderCellDef]"
902
+ },
903
+ {
904
+ kind: "directive",
905
+ type: HeaderCell,
906
+ selector: "ngs-header-cell, [ngs-header-cell], th[ngs-header-cell]"
907
+ },
908
+ {
909
+ kind: "directive",
910
+ type: CellDef,
911
+ selector: "[ngsCellDef]"
912
+ },
913
+ {
914
+ kind: "directive",
915
+ type: Cell,
916
+ selector: "ngs-cell, [ngs-cell], td[ngs-cell]"
917
+ }
918
+ ],
919
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
920
+ });
921
+ };
922
+ i0.ɵɵngDeclareClassMetadata({
923
+ minVersion: "12.0.0",
924
+ version: "22.3.0",
925
+ ngImport: i0,
926
+ type: TextColumn,
927
+ decorators: [{
928
+ type: Component,
929
+ args: [{
930
+ selector: "ngs-text-column",
931
+ exportAs: "ngsTextColumn",
932
+ imports: [
933
+ ColumnDef,
934
+ HeaderCellDef,
935
+ HeaderCell,
936
+ CellDef,
937
+ Cell
938
+ ],
939
+ changeDetection: ChangeDetectionStrategy.OnPush,
940
+ host: { "class": "ngs-text-column" },
941
+ template: "<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",
942
+ styles: ["/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
943
+ }]
944
+ }]
945
+ });
946
+ var TableDataSource = class extends DataSource {
947
+ _data;
948
+ _renderData;
949
+ _filter = new BehaviorSubject("");
950
+ _internalPageChanges = new Subject();
951
+ _renderChangesSubscription = Subscription.EMPTY;
952
+ _quickFilterCache = /* @__PURE__ */ new WeakMap();
953
+ filteredData;
954
+ sortedData;
955
+ get data() {
956
+ return this._data.value;
957
+ }
958
+ set data(data) {
959
+ this.invalidateFilterCache();
960
+ this._data.next(data);
961
+ if (!this._renderChangesSubscription) this._filterData(data);
962
+ }
963
+ get filter() {
964
+ return this._filter.value;
965
+ }
966
+ set filter(filter) {
967
+ this._filter.next(filter);
968
+ if (!this._renderChangesSubscription) this._filterData(this.data);
969
+ }
970
+ get sort() {
971
+ return this._sort;
972
+ }
973
+ set sort(sort) {
974
+ this._sort = sort;
975
+ this._updateChangeSubscription();
976
+ }
977
+ _sort = null;
978
+ get paginator() {
979
+ return this._paginator;
980
+ }
981
+ set paginator(paginator) {
982
+ this._paginator = paginator;
983
+ this._updateChangeSubscription();
984
+ }
985
+ _paginator = null;
986
+ sortingDataAccessor = (data, sortHeaderId) => {
987
+ const value = data[sortHeaderId];
988
+ return typeof value === "number" || typeof value === "string" ? value : "" + value;
989
+ };
990
+ sortData = (data, sort) => {
991
+ const active = typeof sort.active === "function" ? sort.active() : sort.active;
992
+ const direction = typeof sort.direction === "function" ? sort.direction() : sort.direction;
993
+ if (!active || direction === "") return data;
994
+ return data.slice().sort((a, b) => {
995
+ const valueA = this.sortingDataAccessor(a, active);
996
+ const valueB = this.sortingDataAccessor(b, active);
997
+ return (typeof valueA === "number" && typeof valueB === "number" ? valueA - valueB : (valueA + "").localeCompare(valueB + "")) * (direction === "asc" ? 1 : -1);
998
+ });
999
+ };
1000
+ filterPredicate = (data, filter) => {
1001
+ const transformedFilter = filter.trim().toLowerCase();
1002
+ if (!transformedFilter) return true;
1003
+ const filterWords = transformedFilter.split(/\s+/);
1004
+ const dataStr = this._getQuickFilterString(data);
1005
+ return filterWords.every((word) => dataStr.indexOf(word) !== -1);
1006
+ };
1007
+ invalidateFilterCache(row) {
1008
+ if (row !== void 0 && typeof row === "object" && row !== null) this._quickFilterCache.delete(row);
1009
+ else this._quickFilterCache = /* @__PURE__ */ new WeakMap();
1010
+ }
1011
+ _getQuickFilterString(data) {
1012
+ if (typeof data !== "object" || data === null) return String(data).toLowerCase();
1013
+ let cached = this._quickFilterCache.get(data);
1014
+ if (cached !== void 0) return cached;
1015
+ const dataStr = Object.keys(data).reduce((currentTerm, key) => {
1016
+ const val = data[key];
1017
+ return currentTerm + (val === null || val === void 0 ? "" : val) + " ";
1018
+ }, "").toLowerCase();
1019
+ this._quickFilterCache.set(data, dataStr);
1020
+ return dataStr;
1021
+ }
1022
+ constructor(initialData = []) {
1023
+ super();
1024
+ this._data = new BehaviorSubject(initialData);
1025
+ this._renderData = new BehaviorSubject(initialData);
1026
+ this.filteredData = initialData;
1027
+ this.sortedData = initialData;
1028
+ this._updateChangeSubscription();
1029
+ }
1030
+ _updateChangeSubscription() {
1031
+ const sortChange = this._sort ? merge(this._observeOutput(this._sort.sortChange), this._sort.initialized || of(void 0), of(void 0)) : of(null);
1032
+ const pageChange = this._paginator ? merge(this._observeOutput(this._paginator.page), this._internalPageChanges, this._paginator.initialized || of(void 0), of(void 0)) : of(null);
1033
+ const dataStream = this._data;
1034
+ const filteredData = combineLatest([dataStream, this._filter]).pipe(map$1(([data]) => this._filterData(data)));
1035
+ const orderedData = combineLatest([filteredData, sortChange]).pipe(map$1(([data]) => this._orderData(data)));
1036
+ const paginatedData = combineLatest([orderedData, pageChange]).pipe(map$1(([data]) => this._pageData(data)));
1037
+ this._renderChangesSubscription.unsubscribe();
1038
+ this._renderChangesSubscription = paginatedData.subscribe((data) => this._renderData.next(data));
1039
+ }
1040
+ _observeOutput(output) {
1041
+ if (isObservable(output)) return output;
1042
+ if (typeof output === "object" && output !== null && ("subscribe" in output || "emit" in output)) return new Observable((subscriber) => {
1043
+ try {
1044
+ const sub = outputToObservable(output).subscribe({
1045
+ next: (value) => subscriber.next(value),
1046
+ error: (err) => {
1047
+ if (err && err.message && err.message.includes("NG0911")) subscriber.complete();
1048
+ else subscriber.error(err);
1049
+ },
1050
+ complete: () => subscriber.complete()
1051
+ });
1052
+ return () => sub.unsubscribe();
1053
+ } catch (e) {
1054
+ if (e && e.message && e.message.includes("NG0911")) {
1055
+ subscriber.complete();
1056
+ return;
1057
+ }
1058
+ throw e;
1059
+ }
1060
+ });
1061
+ return of();
1062
+ }
1063
+ _filterData(data) {
1064
+ this.filteredData = !this.filter ? data : data.filter((obj) => this.filterPredicate(obj, this.filter));
1065
+ if (this.paginator) this._updatePaginator(this.filteredData.length);
1066
+ return this.filteredData;
1067
+ }
1068
+ _orderData(data) {
1069
+ if (!this.sort) {
1070
+ this.sortedData = data;
1071
+ return data;
1072
+ }
1073
+ this.sortedData = this.sortData(data.slice(), this.sort);
1074
+ return this.sortedData;
1075
+ }
1076
+ _pageData(data) {
1077
+ if (!this.paginator) return data;
1078
+ const startIndex = this.paginator.pageIndex * this.paginator.pageSize;
1079
+ return data.slice(startIndex, startIndex + this.paginator.pageSize);
1080
+ }
1081
+ _updatePaginator(filteredDataLength) {
1082
+ if (!this.paginator) return;
1083
+ this.paginator.length = filteredDataLength;
1084
+ if (this.paginator.pageIndex > 0) {
1085
+ const lastPageIndex = Math.max(0, Math.ceil(this.paginator.length / this.paginator.pageSize) - 1);
1086
+ const newPageIndex = Math.min(this.paginator.pageIndex, lastPageIndex);
1087
+ if (newPageIndex !== this.paginator.pageIndex) {
1088
+ this.paginator.pageIndex = newPageIndex;
1089
+ this._internalPageChanges.next();
1090
+ }
1091
+ }
1092
+ }
1093
+ connect() {
1094
+ if (!this._renderChangesSubscription || this._renderChangesSubscription.closed) this._updateChangeSubscription();
1095
+ return this._renderData;
1096
+ }
1097
+ disconnect() {
1098
+ this._renderChangesSubscription.unsubscribe();
1099
+ this._renderChangesSubscription = Subscription.EMPTY;
1100
+ }
1101
+ };
1102
+ var NativeTable = class NativeTable {
1103
+ static ɵfac = i0.ɵɵngDeclareFactory({
1104
+ minVersion: "12.0.0",
1105
+ version: "22.3.0",
1106
+ ngImport: i0,
1107
+ type: NativeTable,
1108
+ deps: [],
1109
+ target: i0.ɵɵFactoryTarget.Component
1110
+ });
1111
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1112
+ minVersion: "14.0.0",
1113
+ version: "22.3.0",
1114
+ type: NativeTable,
1115
+ isStandalone: true,
1116
+ selector: "table[ngs-native-table]",
1117
+ host: { classAttribute: "ngs-native-table not-prose" },
1118
+ exportAs: ["ngsNativeTable"],
1119
+ ngImport: i0,
1120
+ template: "<ng-content/>\n",
1121
+ styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;border-collapse:collapse}:host ::ng-deep th{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);height:var(--ngs-table-row-height);background:var(--ngs-table-background);border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep td{text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background);vertical-align:middle;border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep tr{position:relative;border:none;height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host ::ng-deep tbody tr:last-child td{border-bottom:none}\n"],
1122
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1123
+ });
1124
+ };
1125
+ i0.ɵɵngDeclareClassMetadata({
1126
+ minVersion: "12.0.0",
1127
+ version: "22.3.0",
1128
+ ngImport: i0,
1129
+ type: NativeTable,
1130
+ decorators: [{
1131
+ type: Component,
1132
+ args: [{
1133
+ selector: "table[ngs-native-table]",
1134
+ exportAs: "ngsNativeTable",
1135
+ imports: [],
1136
+ changeDetection: ChangeDetectionStrategy.OnPush,
1137
+ host: { "class": "ngs-native-table not-prose" },
1138
+ template: "<ng-content/>\n",
1139
+ styles: [":host{background:var(--ngs-table-background);border-spacing:0;width:100%;border-collapse:collapse}:host ::ng-deep th{font-size:var(--ngs-table-header-cell-font-size);font-weight:var(--ngs-table-header-cell-font-weight);color:var(--ngs-table-header-cell-color);text-transform:uppercase;overflow:hidden;vertical-align:middle;text-align:start;padding:var(--ngs-table-cell-padding);height:var(--ngs-table-row-height);background:var(--ngs-table-background);border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep td{text-align:start;padding:var(--ngs-table-cell-padding);font-size:var(--ngs-table-cell-font-size);height:var(--ngs-table-row-height);background:var(--ngs-table-background);vertical-align:middle;border-bottom:1px solid var(--ngs-table-border-color)}:host ::ng-deep tr{position:relative;border:none;height:auto;border-radius:0;margin-top:0;background:var(--ngs-data-view-row-bg, var(--ngs-table-row-bg));min-height:var(--ngs-table-row-height)}:host ::ng-deep tbody tr:last-child td{border-bottom:none}\n"]
1140
+ }]
1141
+ }]
1142
+ });
662
1143
  export { Cell, CellDef, ColumnDef, FooterCell, FooterCellDef, FooterRow, FooterRowDef, HeaderCell, HeaderCellDef, HeaderRow, HeaderRowDef, NativeTable, NoDataRow, Row, RowDef, Table, TableDataSource, TextColumn };
663
- //# sourceMappingURL=ngstarter-ui-components-table.mjs.map
1144
+
1145
+ //# sourceMappingURL=ngstarter-ui-components-table.mjs.map