@ngstarter-ui/components 22.3.6 → 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-BgKuFsDy.mjs +0 -35
  438. package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
  439. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
  440. package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
  441. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
  442. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.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-Bo3irEeG.mjs +0 -375
  448. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
  449. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
  450. package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
  451. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
  452. package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
  453. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
  454. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
  455. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
  456. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
  457. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
  458. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
  459. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
  460. package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
  461. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
  462. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
  463. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
  464. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
  465. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
  466. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
  467. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
  468. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
  469. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
  470. package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.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-laP7DTyq.mjs +0 -134
  474. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.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,617 +1,1238 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, TemplateRef, Directive, contentChild, viewChild, input, booleanAttribute, ChangeDetectionStrategy, Component, ViewContainerRef, ChangeDetectorRef, PLATFORM_ID, contentChildren, viewChildren, signal, numberAttribute, output, effect, ElementRef, computed, DestroyRef } from '@angular/core';
3
- import * as i2 from '@angular/cdk/portal';
4
- import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
5
- import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
- import * as i1 from '@angular/common';
7
- import { isPlatformBrowser, CommonModule } from '@angular/common';
8
- import * as i1$1 from '@ngstarter-ui/components/core';
9
- import { Ripple } from '@ngstarter-ui/components/core';
10
- import { Subscription, fromEvent, debounceTime } from 'rxjs';
11
- import { filter } from 'rxjs/operators';
12
- import { RouterLink, Router, NavigationEnd } from '@angular/router';
13
-
14
- const TAB_LABEL = new InjectionToken('EmrTabLabel');
15
- class TabLabel {
16
- template = inject(TemplateRef);
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: TabLabel, isStandalone: true, selector: "[ngsTabLabel], [ngs-tab-label]", providers: [{ provide: TAB_LABEL, useExisting: TabLabel }], ngImport: i0 });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabLabel, decorators: [{
21
- type: Directive,
22
- args: [{
23
- selector: '[ngsTabLabel], [ngs-tab-label]',
24
- standalone: true,
25
- providers: [{ provide: TAB_LABEL, useExisting: TabLabel }],
26
- }]
27
- }] });
28
- const TAB_CONTENT = new InjectionToken('EmrTabContent');
29
- class TabContent {
30
- template = inject(TemplateRef);
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.7", type: TabContent, isStandalone: true, selector: "[ngsTabContent], [ngs-tab-content]", providers: [{ provide: TAB_CONTENT, useExisting: TabContent }], ngImport: i0 });
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabContent, decorators: [{
35
- type: Directive,
36
- args: [{
37
- selector: '[ngsTabContent], [ngs-tab-content]',
38
- standalone: true,
39
- providers: [{ provide: TAB_CONTENT, useExisting: TabContent }],
40
- }]
41
- }] });
42
-
43
- class Tab {
44
- templateLabel = contentChild(TAB_LABEL, /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "templateLabel" }] : /* istanbul ignore next */ []));
46
- explicitContent = contentChild(TAB_CONTENT, /* @ts-ignore */
47
- ...(ngDevMode ? [{ debugName: "explicitContent" }] : /* istanbul ignore next */ []));
48
- implicitContent = viewChild(TemplateRef, /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "implicitContent" }] : /* istanbul ignore next */ []));
50
- label = input('', /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
52
- ariaLabel = input('', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
53
- ariaLabelledby = input('', { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
54
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
55
- _contentPortal = null;
56
- _prepareContent(viewContainerRef) {
57
- if (!this._contentPortal) {
58
- const template = this.explicitContent()?.template || this.implicitContent();
59
- if (template) {
60
- this._contentPortal = new TemplatePortal(template, viewContainerRef);
61
- }
62
- }
63
- return this._contentPortal;
64
- }
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Tab, deps: [], target: i0.ɵɵFactoryTarget.Component });
66
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: Tab, isStandalone: true, selector: "ngs-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-tab" }, queries: [{ propertyName: "templateLabel", first: true, predicate: TAB_LABEL, descendants: true, isSignal: true }, { propertyName: "explicitContent", first: true, predicate: TAB_CONTENT, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "implicitContent", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], exportAs: ["ngsTab"], ngImport: i0, template: "<ng-template>\n <ng-content/>\n</ng-template>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: Tab, decorators: [{
69
- type: Component,
70
- args: [{ selector: 'ngs-tab', exportAs: 'ngsTab', changeDetection: ChangeDetectionStrategy.OnPush, host: {
71
- 'class': 'ngs-tab',
72
- }, template: "<ng-template>\n <ng-content/>\n</ng-template>\n" }]
73
- }], propDecorators: { templateLabel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TAB_LABEL), { isSignal: true }] }], explicitContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TAB_CONTENT), { isSignal: true }] }], implicitContent: [{ type: i0.ViewChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
74
-
75
- class TabGroup {
76
- _viewContainerRef = inject(ViewContainerRef);
77
- _cdr = inject(ChangeDetectorRef);
78
- _platformId = inject(PLATFORM_ID);
79
- _tabsSubscription = Subscription.EMPTY;
80
- _resizeSubscription = Subscription.EMPTY;
81
- _resizeObserver = null;
82
- _tabs = contentChildren(Tab, /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "_tabs" }] : /* istanbul ignore next */ []));
84
- _tabLabels = viewChildren('tabLabel', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "_tabLabels" }] : /* istanbul ignore next */ []));
86
- _tabListContainer = viewChild('tabListContainer', /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []));
88
- _tabList = viewChild('tabList', /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []));
90
- _showPaginationControls = signal(false, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []));
92
- _disableScrollBefore = signal(true, /* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []));
94
- _disableScrollAfter = signal(true, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []));
96
- selectedIndex = input(0, { ...(ngDevMode ? { debugName: "selectedIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
97
- headerPosition = input('above', /* @ts-ignore */
98
- ...(ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []));
99
- preserveContent = input(false, { ...(ngDevMode ? { debugName: "preserveContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
100
- stretchTabs = input(true, { ...(ngDevMode ? { debugName: "stretchTabs" } : /* istanbul ignore next */ {}), alias: 'ngs-stretch-tabs',
101
- transform: booleanAttribute });
102
- alignTabs = input('start', { ...(ngDevMode ? { debugName: "alignTabs" } : /* istanbul ignore next */ {}), alias: 'ngs-align-tabs' });
103
- disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
104
- animationDuration = input('500ms', { ...(ngDevMode ? { debugName: "animationDuration" } : /* istanbul ignore next */ {}), transform: (value) => {
105
- return /^\d+$/.test(value + '') ? value + 'ms' : value + '';
106
- } });
107
- enterAnimation = input('', { ...(ngDevMode ? { debugName: "enterAnimation" } : /* istanbul ignore next */ {}), alias: 'animate.enter' });
108
- leaveAnimation = input('', { ...(ngDevMode ? { debugName: "leaveAnimation" } : /* istanbul ignore next */ {}), alias: 'animate.leave' });
109
- selectedIndexChange = output();
110
- selectedTabChange = output();
111
- focusChange = output();
112
- _isActive = {};
113
- _selectedIndex = 0;
114
- _prevIndex = 0;
115
- _isInitialized = false;
116
- constructor() {
117
- this._selectedIndex = this.selectedIndex();
118
- this._prevIndex = this._selectedIndex;
119
- this._isActive[this._selectedIndex] = true;
120
- effect((onCleanup) => {
121
- const selectedIndex = this.selectedIndex();
122
- if (this._selectedIndex !== selectedIndex) {
123
- this._prevIndex = this._selectedIndex;
124
- this._isActive[this._prevIndex] = true;
125
- this._selectedIndex = selectedIndex;
126
- this._isActive[this._selectedIndex] = true;
127
- this._cdr.markForCheck();
128
- const prevIndex = this._prevIndex;
129
- const timeout = setTimeout(() => {
130
- delete this._isActive[prevIndex];
131
- this._cdr.markForCheck();
132
- }, parseInt(this.animationDuration()));
133
- onCleanup(() => clearTimeout(timeout));
134
- }
135
- setTimeout(() => {
136
- if (this._isInitialized) {
137
- this._scrollToTab(this._selectedIndex);
138
- }
139
- this._updatePagination();
140
- });
141
- });
142
- this._tabsSubscription = toObservable(this._tabs).subscribe(() => {
143
- this._clampIndex();
144
- this._cdr.markForCheck();
145
- setTimeout(() => {
146
- this._updatePagination();
147
- });
148
- });
149
- effect(() => {
150
- this._tabs();
151
- setTimeout(() => {
152
- this._updatePagination();
153
- });
154
- });
155
- }
156
- ngAfterViewInit() {
157
- this._isInitialized = true;
158
- if (isPlatformBrowser(this._platformId)) {
159
- this._resizeSubscription = fromEvent(window, 'resize')
160
- .pipe(debounceTime(100))
161
- .subscribe(() => {
162
- this._updatePagination();
163
- });
164
- this._resizeObserver = new ResizeObserver(() => {
165
- this._updatePagination();
166
- });
167
- this._resizeObserver.observe(this._tabListContainer()?.nativeElement);
168
- this._resizeObserver.observe(this._tabList()?.nativeElement);
169
- }
170
- setTimeout(() => {
171
- this._updatePagination();
172
- });
173
- }
174
- ngOnDestroy() {
175
- this._tabsSubscription.unsubscribe();
176
- this._resizeSubscription.unsubscribe();
177
- this._resizeObserver?.disconnect();
178
- }
179
- _clampIndex() {
180
- if (this._tabs().length === 0) {
181
- this._selectedIndex = 0;
182
- return;
183
- }
184
- this._selectedIndex = Math.max(0, Math.min(this._selectedIndex, this._tabs().length - 1));
185
- }
186
- _updatePagination() {
187
- if (!isPlatformBrowser(this._platformId)) {
188
- return;
189
- }
190
- const containerEl = this._tabListContainer()?.nativeElement;
191
- const listEl = this._tabList()?.nativeElement;
192
- if (containerEl && listEl) {
193
- const showPaginationControls = listEl.scrollWidth > containerEl.clientWidth + 1;
194
- if (showPaginationControls !== this._showPaginationControls()) {
195
- this._showPaginationControls.set(showPaginationControls);
196
- this._cdr.detectChanges();
197
- }
198
- this._updateScrollButtonsState();
199
- }
200
- }
201
- _updateScrollButtonsState() {
202
- if (!isPlatformBrowser(this._platformId)) {
203
- return;
204
- }
205
- const containerEl = this._tabListContainer()?.nativeElement;
206
- if (containerEl) {
207
- const maxScroll = containerEl.scrollWidth - containerEl.clientWidth;
208
- const scrollLeft = containerEl.scrollLeft;
209
- const disableScrollBefore = scrollLeft <= 0;
210
- const disableScrollAfter = scrollLeft >= maxScroll - 1;
211
- if (disableScrollBefore !== this._disableScrollBefore() || disableScrollAfter !== this._disableScrollAfter()) {
212
- this._disableScrollBefore.set(disableScrollBefore);
213
- this._disableScrollAfter.set(disableScrollAfter);
214
- this._cdr.detectChanges();
215
- }
216
- }
217
- }
218
- _scrollToTab(index) {
219
- if (!isPlatformBrowser(this._platformId)) {
220
- return;
221
- }
222
- const labels = this._tabLabels();
223
- const containerEl = this._tabListContainer()?.nativeElement;
224
- if (labels[index] && containerEl) {
225
- const labelEl = labels[index].nativeElement;
226
- const containerRect = containerEl.getBoundingClientRect();
227
- const labelRect = labelEl.getBoundingClientRect();
228
- if (labelRect.left < containerRect.left) {
229
- containerEl.scrollBy({ left: labelRect.left - containerRect.left, behavior: 'smooth' });
230
- }
231
- else if (labelRect.right > containerRect.right) {
232
- containerEl.scrollBy({ left: labelRect.right - containerRect.right, behavior: 'smooth' });
233
- }
234
- }
235
- }
236
- _scrollBefore() {
237
- if (!isPlatformBrowser(this._platformId)) {
238
- return;
239
- }
240
- const containerEl = this._tabListContainer()?.nativeElement;
241
- if (containerEl) {
242
- containerEl.scrollBy({ left: -containerEl.clientWidth / 2, behavior: 'smooth' });
243
- }
244
- }
245
- _scrollAfter() {
246
- if (!isPlatformBrowser(this._platformId)) {
247
- return;
248
- }
249
- const containerEl = this._tabListContainer()?.nativeElement;
250
- if (containerEl) {
251
- containerEl.scrollBy({ left: containerEl.clientWidth / 2, behavior: 'smooth' });
252
- }
253
- }
254
- _handleScroll() {
255
- this._updateScrollButtonsState();
256
- }
257
- _onTabHeaderClick(index) {
258
- const tabs = this._tabs();
259
- const labels = this._tabLabels();
260
- if (tabs[index].disabled() || this._selectedIndex === index) {
261
- return;
262
- }
263
- this._prevIndex = this._selectedIndex;
264
- this._selectedIndex = index;
265
- this._isActive[this._prevIndex] = true;
266
- this._isActive[this._selectedIndex] = true;
267
- this.selectedIndexChange.emit(index);
268
- this.selectedTabChange.emit({
269
- index,
270
- tab: tabs[index]
271
- });
272
- this._cdr.markForCheck();
273
- const prevIndex = this._prevIndex;
274
- setTimeout(() => {
275
- delete this._isActive[prevIndex];
276
- this._cdr.markForCheck();
277
- }, parseInt(this.animationDuration()));
278
- if (labels[index]) {
279
- this._scrollToTab(index);
280
- }
281
- }
282
- _getTabContent(tab) {
283
- return tab._prepareContent(this._viewContainerRef);
284
- }
285
- _getEnterAnimation(index) {
286
- let direction = '';
287
- const selectedIndex = this._selectedIndex;
288
- if (this._prevIndex > selectedIndex) {
289
- direction = 'left';
290
- }
291
- else if (this._prevIndex < selectedIndex) {
292
- direction = 'right';
293
- }
294
- if (this.enterAnimation()) {
295
- return this.enterAnimation();
296
- }
297
- if (direction === '' || index !== selectedIndex) {
298
- return '';
299
- }
300
- // If moving right (prev < current), the new tab should slide in from the RIGHT
301
- return `ngs-tab-group-enter-${direction}`;
302
- }
303
- _getLeaveAnimation(index) {
304
- let direction = '';
305
- const selectedIndex = this._selectedIndex;
306
- if (this._prevIndex > selectedIndex) {
307
- direction = 'left';
308
- }
309
- else if (this._prevIndex < selectedIndex) {
310
- direction = 'right';
311
- }
312
- if (this.leaveAnimation()) {
313
- return this.leaveAnimation();
314
- }
315
- if (direction === '' || index !== this._prevIndex || index === selectedIndex) {
316
- return '';
317
- }
318
- // If moving right (prev < current), the old tab should slide out to the LEFT
319
- const leaveDirection = direction === 'right' ? 'left' : 'right';
320
- return `ngs-tab-group-leave-${leaveDirection}`;
321
- }
322
- _onKeydown(event) {
323
- const tabs = this._tabs();
324
- const labels = this._tabLabels();
325
- let newIndex = this._selectedIndex;
326
- if (event.key === 'ArrowRight') {
327
- newIndex = (this._selectedIndex + 1) % tabs.length;
328
- }
329
- else if (event.key === 'ArrowLeft') {
330
- newIndex = (this._selectedIndex - 1 + tabs.length) % tabs.length;
331
- }
332
- else if (event.key === 'Home') {
333
- newIndex = 0;
334
- }
335
- else if (event.key === 'End') {
336
- newIndex = tabs.length - 1;
337
- }
338
- else {
339
- return;
340
- }
341
- event.preventDefault();
342
- // Skip disabled tabs
343
- const direction = (newIndex >= this._selectedIndex) ? 1 : -1;
344
- const startIndex = newIndex;
345
- while (tabs[newIndex].disabled()) {
346
- newIndex = (newIndex + direction + tabs.length) % tabs.length;
347
- if (newIndex === startIndex)
348
- break; // All tabs disabled or looped back
349
- }
350
- if (newIndex !== this._selectedIndex && !tabs[newIndex].disabled()) {
351
- this._prevIndex = this._selectedIndex;
352
- this._selectedIndex = newIndex;
353
- this._isActive[this._prevIndex] = true;
354
- this._isActive[this._selectedIndex] = true;
355
- this.selectedIndexChange.emit(newIndex);
356
- this.selectedTabChange.emit({
357
- index: newIndex,
358
- tab: tabs[newIndex]
359
- });
360
- this._cdr.markForCheck();
361
- const prevIndex = this._prevIndex;
362
- setTimeout(() => {
363
- delete this._isActive[prevIndex];
364
- this._cdr.markForCheck();
365
- }, parseInt(this.animationDuration()));
366
- if (isPlatformBrowser(this._platformId)) {
367
- labels[newIndex].nativeElement.focus({ preventScroll: true });
368
- this._scrollToTab(newIndex);
369
- }
370
- }
371
- }
372
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
373
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: TabGroup, isStandalone: true, selector: "ngs-tab-group", inputs: { selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, headerPosition: { classPropertyName: "headerPosition", publicName: "headerPosition", isSignal: true, isRequired: false, transformFunction: null }, preserveContent: { classPropertyName: "preserveContent", publicName: "preserveContent", isSignal: true, isRequired: false, transformFunction: null }, stretchTabs: { classPropertyName: "stretchTabs", publicName: "ngs-stretch-tabs", isSignal: true, isRequired: false, transformFunction: null }, alignTabs: { classPropertyName: "alignTabs", publicName: "ngs-align-tabs", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, animationDuration: { classPropertyName: "animationDuration", publicName: "animationDuration", isSignal: true, isRequired: false, transformFunction: null }, enterAnimation: { classPropertyName: "enterAnimation", publicName: "animate.enter", isSignal: true, isRequired: false, transformFunction: null }, leaveAnimation: { classPropertyName: "leaveAnimation", publicName: "animate.leave", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndexChange: "selectedIndexChange", selectedTabChange: "selectedTabChange", focusChange: "focusChange" }, host: { properties: { "class.ngs-tab-group-inverted": "headerPosition() === \"below\"", "style.--ngs-tab-group-animation-duration": "animationDuration()" }, classAttribute: "ngs-tab-group" }, queries: [{ propertyName: "_tabs", predicate: Tab, isSignal: true }], viewQueries: [{ propertyName: "_tabLabels", predicate: ["tabLabel"], descendants: true, isSignal: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, isSignal: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n role=\"tablist\"\n (scroll)=\"_handleScroll()\"\n (keydown)=\"_onKeydown($event)\">\n <div class=\"ngs-tab-group-header-list\" #tabList\n [class.ngs-tab-group-header-list-align-start]=\"alignTabs() === 'start'\"\n [class.ngs-tab-group-header-list-align-center]=\"alignTabs() === 'center'\"\n [class.ngs-tab-group-header-list-align-end]=\"alignTabs() === 'end'\">\n @for (tab of _tabs(); track tab; let i = $index) {\n <div\n #tabLabel\n class=\"ngs-tab-label\"\n role=\"tab\"\n ngsRipple\n [ngsRippleDisabled]=\"tab.disabled() || disableRipple()\"\n [id]=\"'ngs-tab-label-' + i\"\n [attr.aria-controls]=\"'ngs-tab-panel-' + i\"\n [attr.aria-selected]=\"_selectedIndex === i\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.ariaLabel()\"\n [attr.aria-labelledby]=\"tab.ariaLabelledby()\"\n [tabIndex]=\"_selectedIndex === i ? 0 : -1\"\n [class.ngs-tab-label-active]=\"_selectedIndex === i\"\n [class.ngs-tab-label-disabled]=\"tab.disabled()\"\n [class.ngs-tab-label-stretched]=\"stretchTabs()\"\n (click)=\"_onTabHeaderClick(i)\"\n >\n @if (tab.templateLabel()) {\n <ng-container [ngTemplateOutlet]=\"tab.templateLabel()!.template\" />\n } @else {\n {{ tab.label() }}\n }\n </div>\n }\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n\n<div class=\"ngs-tab-group-content\">\n <div class=\"ngs-tab-panel-container\">\n @for (tab of _tabs(); track tab; let i = $index) {\n @if (_selectedIndex === i || preserveContent() || _isActive[i]) {\n <div\n class=\"ngs-tab-panel\"\n [class.ngs-tab-panel-active]=\"_selectedIndex === i\"\n [class.ngs-tab-group-enter-left]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-left'\"\n [class.ngs-tab-group-enter-right]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-right'\"\n [class.ngs-tab-group-leave-left]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-left'\"\n [class.ngs-tab-group-leave-right]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-right'\"\n role=\"tabpanel\"\n [id]=\"'ngs-tab-panel-' + i\"\n [attr.aria-labelledby]=\"'ngs-tab-label-' + i\"\n [animate.enter]=\"_getEnterAnimation(i)\"\n [animate.leave]=\"_getLeaveAnimation(i)\"\n >\n <ng-template [cdkPortalOutlet]=\"_getTabContent(tab)\" />\n </div>\n }\n }\n </div>\n</div>\n", styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}:host{height:100%;--ngs-tab-content-padding: 0;--ngs-tab-panel-transition: opacity var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1)}:host .ngs-tab-panel{width:100%;flex-shrink:0;box-sizing:border-box;animation-duration:var(--ngs-tab-group-animation-duration, .5s);animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.35,0,.25,1);position:relative;display:none}:host .ngs-tab-panel.ngs-tab-panel-active,:host .ngs-tab-panel.ngs-tab-group-leave-left,:host .ngs-tab-panel.ngs-tab-group-leave-right,:host .ngs-tab-panel.ngs-tab-group-enter-left,:host .ngs-tab-panel.ngs-tab-group-enter-right{display:block}:host .ngs-tab-panel:not(.ngs-tab-panel-active){position:absolute;top:0;left:0;z-index:1;pointer-events:none}:host .ngs-tab-panel.ngs-tab-panel-active{z-index:2}@keyframes ngs-tab-group-enter-left{0%{transform:translate3d(-100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-enter-right{0%{transform:translate3d(100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-leave-left{0%{transform:none}to{transform:translate3d(-100%,0,0)}}@keyframes ngs-tab-group-leave-right{0%{transform:none}to{transform:translate3d(100%,0,0)}}:host .ngs-tab-group-enter-left{animation-name:ngs-tab-group-enter-left}:host .ngs-tab-group-enter-right{animation-name:ngs-tab-group-enter-right}:host .ngs-tab-group-leave-left{animation-name:ngs-tab-group-leave-left}:host .ngs-tab-group-leave-right{animation-name:ngs-tab-group-leave-right}:host .ngs-tab-group-content{padding:var(--ngs-tab-content-padding);overflow:hidden;position:relative;flex-grow:1}:host .ngs-tab-panel-container{display:flex;flex-direction:row;position:relative;overflow:hidden;height:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: Ripple, selector: "[ngsRipple]", inputs: ["ngsRippleColor", "ngsRippleUnbounded", "ngsRippleCentered", "ngsRippleRadius", "ngsRippleAnimation", "ngsRippleDisabled", "ngsRippleTrigger"], outputs: ["ngsRippleCenteredChange", "ngsRippleDisabledChange", "ngsRippleTriggerChange"], exportAs: ["ngsRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
374
- }
375
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabGroup, decorators: [{
376
- type: Component,
377
- args: [{ selector: 'ngs-tab-group', standalone: true, imports: [CommonModule, PortalModule, Ripple], changeDetection: ChangeDetectionStrategy.OnPush, host: {
378
- 'class': 'ngs-tab-group',
379
- '[class.ngs-tab-group-inverted]': 'headerPosition() === "below"',
380
- '[style.--ngs-tab-group-animation-duration]': 'animationDuration()',
381
- }, template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n role=\"tablist\"\n (scroll)=\"_handleScroll()\"\n (keydown)=\"_onKeydown($event)\">\n <div class=\"ngs-tab-group-header-list\" #tabList\n [class.ngs-tab-group-header-list-align-start]=\"alignTabs() === 'start'\"\n [class.ngs-tab-group-header-list-align-center]=\"alignTabs() === 'center'\"\n [class.ngs-tab-group-header-list-align-end]=\"alignTabs() === 'end'\">\n @for (tab of _tabs(); track tab; let i = $index) {\n <div\n #tabLabel\n class=\"ngs-tab-label\"\n role=\"tab\"\n ngsRipple\n [ngsRippleDisabled]=\"tab.disabled() || disableRipple()\"\n [id]=\"'ngs-tab-label-' + i\"\n [attr.aria-controls]=\"'ngs-tab-panel-' + i\"\n [attr.aria-selected]=\"_selectedIndex === i\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.ariaLabel()\"\n [attr.aria-labelledby]=\"tab.ariaLabelledby()\"\n [tabIndex]=\"_selectedIndex === i ? 0 : -1\"\n [class.ngs-tab-label-active]=\"_selectedIndex === i\"\n [class.ngs-tab-label-disabled]=\"tab.disabled()\"\n [class.ngs-tab-label-stretched]=\"stretchTabs()\"\n (click)=\"_onTabHeaderClick(i)\"\n >\n @if (tab.templateLabel()) {\n <ng-container [ngTemplateOutlet]=\"tab.templateLabel()!.template\" />\n } @else {\n {{ tab.label() }}\n }\n </div>\n }\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n\n<div class=\"ngs-tab-group-content\">\n <div class=\"ngs-tab-panel-container\">\n @for (tab of _tabs(); track tab; let i = $index) {\n @if (_selectedIndex === i || preserveContent() || _isActive[i]) {\n <div\n class=\"ngs-tab-panel\"\n [class.ngs-tab-panel-active]=\"_selectedIndex === i\"\n [class.ngs-tab-group-enter-left]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-left'\"\n [class.ngs-tab-group-enter-right]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-right'\"\n [class.ngs-tab-group-leave-left]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-left'\"\n [class.ngs-tab-group-leave-right]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-right'\"\n role=\"tabpanel\"\n [id]=\"'ngs-tab-panel-' + i\"\n [attr.aria-labelledby]=\"'ngs-tab-label-' + i\"\n [animate.enter]=\"_getEnterAnimation(i)\"\n [animate.leave]=\"_getLeaveAnimation(i)\"\n >\n <ng-template [cdkPortalOutlet]=\"_getTabContent(tab)\" />\n </div>\n }\n }\n </div>\n</div>\n", styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}:host{height:100%;--ngs-tab-content-padding: 0;--ngs-tab-panel-transition: opacity var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1)}:host .ngs-tab-panel{width:100%;flex-shrink:0;box-sizing:border-box;animation-duration:var(--ngs-tab-group-animation-duration, .5s);animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.35,0,.25,1);position:relative;display:none}:host .ngs-tab-panel.ngs-tab-panel-active,:host .ngs-tab-panel.ngs-tab-group-leave-left,:host .ngs-tab-panel.ngs-tab-group-leave-right,:host .ngs-tab-panel.ngs-tab-group-enter-left,:host .ngs-tab-panel.ngs-tab-group-enter-right{display:block}:host .ngs-tab-panel:not(.ngs-tab-panel-active){position:absolute;top:0;left:0;z-index:1;pointer-events:none}:host .ngs-tab-panel.ngs-tab-panel-active{z-index:2}@keyframes ngs-tab-group-enter-left{0%{transform:translate3d(-100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-enter-right{0%{transform:translate3d(100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-leave-left{0%{transform:none}to{transform:translate3d(-100%,0,0)}}@keyframes ngs-tab-group-leave-right{0%{transform:none}to{transform:translate3d(100%,0,0)}}:host .ngs-tab-group-enter-left{animation-name:ngs-tab-group-enter-left}:host .ngs-tab-group-enter-right{animation-name:ngs-tab-group-enter-right}:host .ngs-tab-group-leave-left{animation-name:ngs-tab-group-leave-left}:host .ngs-tab-group-leave-right{animation-name:ngs-tab-group-leave-right}:host .ngs-tab-group-content{padding:var(--ngs-tab-content-padding);overflow:hidden;position:relative;flex-grow:1}:host .ngs-tab-panel-container{display:flex;flex-direction:row;position:relative;overflow:hidden;height:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
382
- }], ctorParameters: () => [], propDecorators: { _tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => Tab), { isSignal: true }] }], _tabLabels: [{ type: i0.ViewChildren, args: ['tabLabel', { isSignal: true }] }], _tabListContainer: [{ type: i0.ViewChild, args: ['tabListContainer', { isSignal: true }] }], _tabList: [{ type: i0.ViewChild, args: ['tabList', { isSignal: true }] }], selectedIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIndex", required: false }] }], headerPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerPosition", required: false }] }], preserveContent: [{ type: i0.Input, args: [{ isSignal: true, alias: "preserveContent", required: false }] }], stretchTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngs-stretch-tabs", required: false }] }], alignTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngs-align-tabs", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], animationDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationDuration", required: false }] }], enterAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate.enter", required: false }] }], leaveAnimation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate.leave", required: false }] }], selectedIndexChange: [{ type: i0.Output, args: ["selectedIndexChange"] }], selectedTabChange: [{ type: i0.Output, args: ["selectedTabChange"] }], focusChange: [{ type: i0.Output, args: ["focusChange"] }] } });
383
-
384
- class TabLink {
385
- _el = inject((ElementRef));
386
- _parent = inject(TabNavBar, { optional: true });
387
- _routerLink = inject(RouterLink, { optional: true });
388
- // Whether the link is currently active
389
- active = computed(() => {
390
- const parent = this._parent;
391
- if (!parent?.isActiveFn) {
392
- return false;
393
- }
394
- const fn = parent.isActiveFn();
395
- return fn(this);
396
- }, /* @ts-ignore */
397
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
398
- // Whether the link is disabled
399
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
400
- // Optional external control to disable ripple on this link
401
- rippleDisabled = input(false, { ...(ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {}), alias: 'ngsRippleDisabled', transform: booleanAttribute });
402
- // Combined ripple disabled state: own disabled OR parent bar disableRipple OR explicit input
403
- get ngsRippleDisabled() {
404
- return this.disabled() || !!this._parent?.disableRipple() || this.rippleDisabled();
405
- }
406
- // Link should control the provided nav panel id when active
407
- _ariaControls() {
408
- const panel = this._parent?.tabPanel();
409
- return this.active() && panel ? panel.id : null;
410
- }
411
- // Prevent click when disabled, otherwise let parent handle focus/scroll
412
- _onClick(event) {
413
- if (this.disabled()) {
414
- event.preventDefault();
415
- event.stopImmediatePropagation();
416
- }
417
- }
418
- focus() { this._el.nativeElement.focus(); }
419
- get elementRef() { return this._el; }
420
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabLink, deps: [], target: i0.ɵɵFactoryTarget.Component });
421
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: TabLink, isStandalone: true, selector: "a[ngs-tab-link]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rippleDisabled: { classPropertyName: "rippleDisabled", publicName: "ngsRippleDisabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tab" }, listeners: { "click": "_onClick($event)" }, properties: { "class.ngs-tab-link-active": "active()", "class.ngs-tab-link-disabled": "disabled()", "attr.aria-selected": "active() ? \"true\" : \"false\"", "attr.aria-disabled": "disabled() ? \"true\" : \"false\"", "tabIndex": "disabled() ? -1 : 0", "attr.aria-controls": "_ariaControls()" }, classAttribute: "ngs-tab-link" }, hostDirectives: [{ directive: i1$1.Ripple, inputs: ["ngsRippleDisabled", "ngsRippleDisabled"] }], ngImport: i0, template: "<ng-content/>\n", styles: [":host{--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host:focus-visible{background:var(--ngs-color-surface-container-high)}:host.ngs-tab-link-stretched{flex-grow:1}:host.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}:host.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.Eager });
422
- }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabLink, decorators: [{
424
- type: Component,
425
- args: [{ selector: 'a[ngs-tab-link]', standalone: true, host: {
426
- 'role': 'tab',
427
- 'class': 'ngs-tab-link',
428
- '[class.ngs-tab-link-active]': 'active()',
429
- '[class.ngs-tab-link-disabled]': 'disabled()',
430
- '[attr.aria-selected]': 'active() ? "true" : "false"',
431
- '[attr.aria-disabled]': 'disabled() ? "true" : "false"',
432
- '[tabIndex]': 'disabled() ? -1 : 0',
433
- '[attr.aria-controls]': '_ariaControls()',
434
- '(click)': '_onClick($event)'
435
- }, changeDetection: ChangeDetectionStrategy.Eager, hostDirectives: [
436
- { directive: Ripple, inputs: ['ngsRippleDisabled: ngsRippleDisabled'] }
437
- ], template: "<ng-content/>\n", styles: [":host{--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host:focus-visible{background:var(--ngs-color-surface-container-high)}:host.ngs-tab-link-stretched{flex-grow:1}:host.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}:host.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
438
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], rippleDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsRippleDisabled", required: false }] }] } });
439
-
440
- class TabNavBar {
441
- _cdr = inject(ChangeDetectorRef);
442
- platformId = inject(PLATFORM_ID);
443
- currentUrl = signal(isPlatformBrowser(inject(PLATFORM_ID)) ? inject(Router).url : '', /* @ts-ignore */
444
- ...(ngDevMode ? [{ debugName: "currentUrl" }] : /* istanbul ignore next */ []));
445
- _router = inject(Router);
446
- _destroyRef = inject(DestroyRef);
447
- // Projected links
448
- _links = contentChildren(TabLink, /* @ts-ignore */
449
- ...(ngDevMode ? [{ debugName: "_links" }] : /* istanbul ignore next */ []));
450
- // Scrolling container references
451
- _tabListContainer = viewChild('tabListContainer', /* @ts-ignore */
452
- ...(ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []));
453
- _tabList = viewChild('tabList', /* @ts-ignore */
454
- ...(ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []));
455
- // Pagination state
456
- _showPaginationControls = signal(false, /* @ts-ignore */
457
- ...(ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []));
458
- _disableScrollBefore = signal(true, /* @ts-ignore */
459
- ...(ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []));
460
- _disableScrollAfter = signal(true, /* @ts-ignore */
461
- ...(ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []));
462
- // External bindings
463
- tabPanel = input(null, /* @ts-ignore */
464
- ...(ngDevMode ? [{ debugName: "tabPanel" }] : /* istanbul ignore next */ []));
465
- disableRipple = input(false, /* @ts-ignore */
466
- ...(ngDevMode ? [{ debugName: "disableRipple" }] : /* istanbul ignore next */ []));
467
- activator = input(/* @ts-ignore */
468
- ...(ngDevMode ? [undefined, { debugName: "activator" }] : /* istanbul ignore next */ []));
469
- isActiveFn = computed(() => (link) => {
470
- const activatorFn = this.activator();
471
- if (activatorFn) {
472
- return activatorFn(link);
473
- }
474
- return this.defaultIsActive(link);
475
- }, /* @ts-ignore */
476
- ...(ngDevMode ? [{ debugName: "isActiveFn" }] : /* istanbul ignore next */ []));
477
- _resizeObserver = null;
478
- _resizeSubscription = Subscription.EMPTY;
479
- defaultIsActive(link) {
480
- const el = link.elementRef.nativeElement;
481
- // @ts-ignore
482
- const routerLink = link['_routerLink'];
483
- let href = '';
484
- if (routerLink) {
485
- href = this._router.serializeUrl(routerLink.urlTree);
486
- }
487
- else {
488
- href = el.getAttribute('href') || '';
489
- }
490
- if (!href || href === '#') {
491
- return false;
492
- }
493
- try {
494
- const linkPath = new URL(href, window.location.origin).pathname;
495
- const currentPath = new URL(this.currentUrl(), window.location.origin).pathname;
496
- return currentPath === linkPath;
497
- }
498
- catch {
499
- return false;
500
- }
501
- }
502
- constructor() {
503
- // Update pagination when links change (signal-based)
504
- effect(() => {
505
- // Track the projected links array reactively
506
- this._links();
507
- // Trigger re-evaluation of currentUrl to ensure links react to projection
508
- this.currentUrl.set(this._router.url);
509
- Promise.resolve().then(() => {
510
- this._updatePagination();
511
- this._cdr.markForCheck();
512
- });
513
- // Fallback: double check after a small delay to ensure routerLink has updated its urlTree
514
- setTimeout(() => {
515
- this.currentUrl.set(this._router.url);
516
- this._cdr.markForCheck();
517
- }, 0);
518
- });
519
- }
520
- ngOnInit() {
521
- if (isPlatformBrowser(this.platformId)) {
522
- this.currentUrl.set(this._router.url);
523
- this._router.events.pipe(filter((event) => event instanceof NavigationEnd), takeUntilDestroyed(this._destroyRef)).subscribe(() => {
524
- this.currentUrl.set(this._router.url);
525
- });
526
- }
527
- }
528
- ngAfterViewInit() {
529
- if (isPlatformBrowser(this.platformId)) {
530
- // Fallback: listen to container resize
531
- const container = this._tabListContainer()?.nativeElement;
532
- if (container && 'ResizeObserver' in window) {
533
- this._resizeObserver = new ResizeObserver(() => this._updatePagination());
534
- this._resizeObserver.observe(container);
535
- }
536
- else if (container) {
537
- this._resizeSubscription = fromEvent(window, 'resize')
538
- .pipe(debounceTime(100))
539
- .subscribe(() => this._updatePagination());
540
- }
541
- }
542
- this._updatePagination();
543
- }
544
- ngOnDestroy() {
545
- this._resizeObserver?.disconnect();
546
- this._resizeSubscription.unsubscribe();
547
- }
548
- _handleScroll() {
549
- this._updateScrollButtonsState();
550
- }
551
- _scrollBefore() {
552
- const container = this._tabListContainer()?.nativeElement;
553
- if (!container)
554
- return;
555
- container.scrollBy({ left: -container.clientWidth, behavior: 'smooth' });
556
- }
557
- _scrollAfter() {
558
- const container = this._tabListContainer()?.nativeElement;
559
- if (!container)
560
- return;
561
- container.scrollBy({ left: container.clientWidth, behavior: 'smooth' });
562
- }
563
- _updatePagination() {
564
- const container = this._tabListContainer()?.nativeElement;
565
- const list = this._tabList()?.nativeElement;
566
- if (!container || !list)
567
- return;
568
- const show = list.scrollWidth > container.clientWidth + 1;
569
- this._showPaginationControls.set(show);
570
- this._updateScrollButtonsState();
571
- }
572
- _updateScrollButtonsState() {
573
- const container = this._tabListContainer()?.nativeElement;
574
- if (!container)
575
- return;
576
- const maxScroll = container.scrollWidth - container.clientWidth;
577
- this._disableScrollBefore.set(container.scrollLeft <= 0);
578
- this._disableScrollAfter.set(container.scrollLeft >= maxScroll);
579
- }
580
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabNavBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
581
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: TabNavBar, isStandalone: true, selector: "ngs-tab-nav-bar, [ngs-tab-nav-bar]", inputs: { tabPanel: { classPropertyName: "tabPanel", publicName: "tabPanel", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, activator: { classPropertyName: "activator", publicName: "activator", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "ngs-tab-nav-bar" }, queries: [{ propertyName: "_links", predicate: TabLink, isSignal: true }], viewQueries: [{ propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, isSignal: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, isSignal: true }], exportAs: ["ngsTabNavBar"], ngImport: i0, template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n (scroll)=\"_handleScroll()\">\n <div class=\"ngs-tab-group-header-list\" #tabList>\n <ng-content select=\"a[ngs-tab-link]\"/>\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n", styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
582
- }
583
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabNavBar, decorators: [{
584
- type: Component,
585
- args: [{ selector: 'ngs-tab-nav-bar, [ngs-tab-nav-bar]', exportAs: 'ngsTabNavBar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
586
- 'class': 'ngs-tab-nav-bar'
587
- }, template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n (scroll)=\"_handleScroll()\">\n <div class=\"ngs-tab-group-header-list\" #tabList>\n <ng-content select=\"a[ngs-tab-link]\"/>\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n", styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
588
- }], ctorParameters: () => [], propDecorators: { _links: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TabLink), { isSignal: true }] }], _tabListContainer: [{ type: i0.ViewChild, args: ['tabListContainer', { isSignal: true }] }], _tabList: [{ type: i0.ViewChild, args: ['tabList', { isSignal: true }] }], tabPanel: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabPanel", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], activator: [{ type: i0.Input, args: [{ isSignal: true, alias: "activator", required: false }] }] } });
589
-
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, Directive, ElementRef, InjectionToken, PLATFORM_ID, TemplateRef, ViewContainerRef, booleanAttribute, computed, contentChild, contentChildren, effect, inject, input, numberAttribute, output, signal, viewChild, viewChildren } from "@angular/core";
3
+ import * as i1$1 from "@angular/common";
4
+ import { CommonModule, isPlatformBrowser } from "@angular/common";
5
+ import * as i1 from "@ngstarter-ui/components/core";
6
+ import { Ripple } from "@ngstarter-ui/components/core";
7
+ import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
8
+ import { PortalModule, TemplatePortal } from "@angular/cdk/portal";
9
+ import { Subscription, debounceTime, fromEvent } from "rxjs";
10
+ import * as i2 from "@angular/cdk/dialog";
11
+ import { filter as filter$1 } from "rxjs/operators";
12
+ import { NavigationEnd, Router, RouterLink } from "@angular/router";
13
+ const TAB_LABEL = new InjectionToken("EmrTabLabel");
14
+ var TabLabel = class TabLabel {
15
+ template = inject(TemplateRef);
16
+ static ɵfac = i0.ɵɵngDeclareFactory({
17
+ minVersion: "12.0.0",
18
+ version: "22.3.0",
19
+ ngImport: i0,
20
+ type: TabLabel,
21
+ deps: [],
22
+ target: i0.ɵɵFactoryTarget.Directive
23
+ });
24
+ static ɵdir = i0.ɵɵngDeclareDirective({
25
+ minVersion: "14.0.0",
26
+ version: "22.3.0",
27
+ type: TabLabel,
28
+ isStandalone: true,
29
+ selector: "[ngsTabLabel], [ngs-tab-label]",
30
+ providers: [{
31
+ provide: TAB_LABEL,
32
+ useExisting: TabLabel
33
+ }],
34
+ ngImport: i0
35
+ });
36
+ };
37
+ i0.ɵɵngDeclareClassMetadata({
38
+ minVersion: "12.0.0",
39
+ version: "22.3.0",
40
+ ngImport: i0,
41
+ type: TabLabel,
42
+ decorators: [{
43
+ type: Directive,
44
+ args: [{
45
+ selector: "[ngsTabLabel], [ngs-tab-label]",
46
+ standalone: true,
47
+ providers: [{
48
+ provide: TAB_LABEL,
49
+ useExisting: TabLabel
50
+ }]
51
+ }]
52
+ }]
53
+ });
54
+ const TAB_CONTENT = new InjectionToken("EmrTabContent");
55
+ var TabContent = class TabContent {
56
+ template = inject(TemplateRef);
57
+ static ɵfac = i0.ɵɵngDeclareFactory({
58
+ minVersion: "12.0.0",
59
+ version: "22.3.0",
60
+ ngImport: i0,
61
+ type: TabContent,
62
+ deps: [],
63
+ target: i0.ɵɵFactoryTarget.Directive
64
+ });
65
+ static ɵdir = i0.ɵɵngDeclareDirective({
66
+ minVersion: "14.0.0",
67
+ version: "22.3.0",
68
+ type: TabContent,
69
+ isStandalone: true,
70
+ selector: "[ngsTabContent], [ngs-tab-content]",
71
+ providers: [{
72
+ provide: TAB_CONTENT,
73
+ useExisting: TabContent
74
+ }],
75
+ ngImport: i0
76
+ });
77
+ };
78
+ i0.ɵɵngDeclareClassMetadata({
79
+ minVersion: "12.0.0",
80
+ version: "22.3.0",
81
+ ngImport: i0,
82
+ type: TabContent,
83
+ decorators: [{
84
+ type: Directive,
85
+ args: [{
86
+ selector: "[ngsTabContent], [ngs-tab-content]",
87
+ standalone: true,
88
+ providers: [{
89
+ provide: TAB_CONTENT,
90
+ useExisting: TabContent
91
+ }]
92
+ }]
93
+ }]
94
+ });
95
+ var Tab = class Tab {
96
+ templateLabel = contentChild(TAB_LABEL, ...ngDevMode ? [{ debugName: "templateLabel" }] : /* istanbul ignore next */ []);
97
+ explicitContent = contentChild(TAB_CONTENT, ...ngDevMode ? [{ debugName: "explicitContent" }] : /* istanbul ignore next */ []);
98
+ implicitContent = viewChild(TemplateRef, ...ngDevMode ? [{ debugName: "implicitContent" }] : /* istanbul ignore next */ []);
99
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
100
+ ariaLabel = input("", {
101
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
102
+ alias: "aria-label"
103
+ });
104
+ ariaLabelledby = input("", {
105
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
106
+ alias: "aria-labelledby"
107
+ });
108
+ disabled = input(false, {
109
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
110
+ transform: booleanAttribute
111
+ });
112
+ _contentPortal = null;
113
+ _prepareContent(viewContainerRef) {
114
+ if (!this._contentPortal) {
115
+ const template = this.explicitContent()?.template || this.implicitContent();
116
+ if (template) this._contentPortal = new TemplatePortal(template, viewContainerRef);
117
+ }
118
+ return this._contentPortal;
119
+ }
120
+ static ɵfac = i0.ɵɵngDeclareFactory({
121
+ minVersion: "12.0.0",
122
+ version: "22.3.0",
123
+ ngImport: i0,
124
+ type: Tab,
125
+ deps: [],
126
+ target: i0.ɵɵFactoryTarget.Component
127
+ });
128
+ static ɵcmp = i0.ɵɵngDeclareComponent({
129
+ minVersion: "17.2.0",
130
+ version: "22.3.0",
131
+ type: Tab,
132
+ isStandalone: true,
133
+ selector: "ngs-tab",
134
+ inputs: {
135
+ label: {
136
+ classPropertyName: "label",
137
+ publicName: "label",
138
+ isSignal: true,
139
+ isRequired: false,
140
+ transformFunction: null
141
+ },
142
+ ariaLabel: {
143
+ classPropertyName: "ariaLabel",
144
+ publicName: "aria-label",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ },
149
+ ariaLabelledby: {
150
+ classPropertyName: "ariaLabelledby",
151
+ publicName: "aria-labelledby",
152
+ isSignal: true,
153
+ isRequired: false,
154
+ transformFunction: null
155
+ },
156
+ disabled: {
157
+ classPropertyName: "disabled",
158
+ publicName: "disabled",
159
+ isSignal: true,
160
+ isRequired: false,
161
+ transformFunction: null
162
+ }
163
+ },
164
+ host: { classAttribute: "ngs-tab" },
165
+ queries: [{
166
+ propertyName: "templateLabel",
167
+ first: true,
168
+ predicate: TAB_LABEL,
169
+ descendants: true,
170
+ isSignal: true
171
+ }, {
172
+ propertyName: "explicitContent",
173
+ first: true,
174
+ predicate: TAB_CONTENT,
175
+ descendants: true,
176
+ isSignal: true
177
+ }],
178
+ viewQueries: [{
179
+ propertyName: "implicitContent",
180
+ first: true,
181
+ predicate: TemplateRef,
182
+ descendants: true,
183
+ isSignal: true
184
+ }],
185
+ exportAs: ["ngsTab"],
186
+ ngImport: i0,
187
+ template: "<ng-template>\n <ng-content/>\n</ng-template>\n",
188
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
189
+ });
190
+ };
191
+ i0.ɵɵngDeclareClassMetadata({
192
+ minVersion: "12.0.0",
193
+ version: "22.3.0",
194
+ ngImport: i0,
195
+ type: Tab,
196
+ decorators: [{
197
+ type: Component,
198
+ args: [{
199
+ selector: "ngs-tab",
200
+ exportAs: "ngsTab",
201
+ changeDetection: ChangeDetectionStrategy.OnPush,
202
+ host: { "class": "ngs-tab" },
203
+ template: "<ng-template>\n <ng-content/>\n</ng-template>\n"
204
+ }]
205
+ }],
206
+ propDecorators: {
207
+ templateLabel: [{
208
+ type: i0.ContentChild,
209
+ args: [i0.forwardRef(() => TAB_LABEL), { isSignal: true }]
210
+ }],
211
+ explicitContent: [{
212
+ type: i0.ContentChild,
213
+ args: [i0.forwardRef(() => TAB_CONTENT), { isSignal: true }]
214
+ }],
215
+ implicitContent: [{
216
+ type: i0.ViewChild,
217
+ args: [i0.forwardRef(() => TemplateRef), { isSignal: true }]
218
+ }],
219
+ label: [{
220
+ type: i0.Input,
221
+ args: [{
222
+ isSignal: true,
223
+ alias: "label",
224
+ required: false
225
+ }]
226
+ }],
227
+ ariaLabel: [{
228
+ type: i0.Input,
229
+ args: [{
230
+ isSignal: true,
231
+ alias: "aria-label",
232
+ required: false
233
+ }]
234
+ }],
235
+ ariaLabelledby: [{
236
+ type: i0.Input,
237
+ args: [{
238
+ isSignal: true,
239
+ alias: "aria-labelledby",
240
+ required: false
241
+ }]
242
+ }],
243
+ disabled: [{
244
+ type: i0.Input,
245
+ args: [{
246
+ isSignal: true,
247
+ alias: "disabled",
248
+ required: false
249
+ }]
250
+ }]
251
+ }
252
+ });
253
+ var TabGroup = class TabGroup {
254
+ _viewContainerRef = inject(ViewContainerRef);
255
+ _cdr = inject(ChangeDetectorRef);
256
+ _platformId = inject(PLATFORM_ID);
257
+ _tabsSubscription = Subscription.EMPTY;
258
+ _resizeSubscription = Subscription.EMPTY;
259
+ _resizeObserver = null;
260
+ _tabs = contentChildren(Tab, ...ngDevMode ? [{ debugName: "_tabs" }] : /* istanbul ignore next */ []);
261
+ _tabLabels = viewChildren("tabLabel", ...ngDevMode ? [{ debugName: "_tabLabels" }] : /* istanbul ignore next */ []);
262
+ _tabListContainer = viewChild("tabListContainer", ...ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []);
263
+ _tabList = viewChild("tabList", ...ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []);
264
+ _showPaginationControls = signal(false, ...ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []);
265
+ _disableScrollBefore = signal(true, ...ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []);
266
+ _disableScrollAfter = signal(true, ...ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []);
267
+ selectedIndex = input(0, {
268
+ ...ngDevMode ? { debugName: "selectedIndex" } : /* istanbul ignore next */ {},
269
+ transform: numberAttribute
270
+ });
271
+ headerPosition = input("above", ...ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []);
272
+ preserveContent = input(false, {
273
+ ...ngDevMode ? { debugName: "preserveContent" } : /* istanbul ignore next */ {},
274
+ transform: booleanAttribute
275
+ });
276
+ stretchTabs = input(true, {
277
+ ...ngDevMode ? { debugName: "stretchTabs" } : /* istanbul ignore next */ {},
278
+ alias: "ngs-stretch-tabs",
279
+ transform: booleanAttribute
280
+ });
281
+ alignTabs = input("start", {
282
+ ...ngDevMode ? { debugName: "alignTabs" } : /* istanbul ignore next */ {},
283
+ alias: "ngs-align-tabs"
284
+ });
285
+ disableRipple = input(false, {
286
+ ...ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {},
287
+ transform: booleanAttribute
288
+ });
289
+ animationDuration = input("500ms", {
290
+ ...ngDevMode ? { debugName: "animationDuration" } : /* istanbul ignore next */ {},
291
+ transform: (value) => {
292
+ return /^\d+$/.test(value + "") ? value + "ms" : value + "";
293
+ }
294
+ });
295
+ enterAnimation = input("", {
296
+ ...ngDevMode ? { debugName: "enterAnimation" } : /* istanbul ignore next */ {},
297
+ alias: "animate.enter"
298
+ });
299
+ leaveAnimation = input("", {
300
+ ...ngDevMode ? { debugName: "leaveAnimation" } : /* istanbul ignore next */ {},
301
+ alias: "animate.leave"
302
+ });
303
+ selectedIndexChange = output();
304
+ selectedTabChange = output();
305
+ focusChange = output();
306
+ _isActive = {};
307
+ _selectedIndex = 0;
308
+ _prevIndex = 0;
309
+ _isInitialized = false;
310
+ constructor() {
311
+ this._selectedIndex = this.selectedIndex();
312
+ this._prevIndex = this._selectedIndex;
313
+ this._isActive[this._selectedIndex] = true;
314
+ effect((onCleanup) => {
315
+ const selectedIndex = this.selectedIndex();
316
+ if (this._selectedIndex !== selectedIndex) {
317
+ this._prevIndex = this._selectedIndex;
318
+ this._isActive[this._prevIndex] = true;
319
+ this._selectedIndex = selectedIndex;
320
+ this._isActive[this._selectedIndex] = true;
321
+ this._cdr.markForCheck();
322
+ const prevIndex = this._prevIndex;
323
+ const timeout = setTimeout(() => {
324
+ delete this._isActive[prevIndex];
325
+ this._cdr.markForCheck();
326
+ }, parseInt(this.animationDuration()));
327
+ onCleanup(() => clearTimeout(timeout));
328
+ }
329
+ setTimeout(() => {
330
+ if (this._isInitialized) this._scrollToTab(this._selectedIndex);
331
+ this._updatePagination();
332
+ });
333
+ });
334
+ this._tabsSubscription = toObservable(this._tabs).subscribe(() => {
335
+ this._clampIndex();
336
+ this._cdr.markForCheck();
337
+ setTimeout(() => {
338
+ this._updatePagination();
339
+ });
340
+ });
341
+ effect(() => {
342
+ this._tabs();
343
+ setTimeout(() => {
344
+ this._updatePagination();
345
+ });
346
+ });
347
+ }
348
+ ngAfterViewInit() {
349
+ this._isInitialized = true;
350
+ if (isPlatformBrowser(this._platformId)) {
351
+ this._resizeSubscription = fromEvent(window, "resize").pipe(debounceTime(100)).subscribe(() => {
352
+ this._updatePagination();
353
+ });
354
+ this._resizeObserver = new ResizeObserver(() => {
355
+ this._updatePagination();
356
+ });
357
+ this._resizeObserver.observe(this._tabListContainer()?.nativeElement);
358
+ this._resizeObserver.observe(this._tabList()?.nativeElement);
359
+ }
360
+ setTimeout(() => {
361
+ this._updatePagination();
362
+ });
363
+ }
364
+ ngOnDestroy() {
365
+ this._tabsSubscription.unsubscribe();
366
+ this._resizeSubscription.unsubscribe();
367
+ this._resizeObserver?.disconnect();
368
+ }
369
+ _clampIndex() {
370
+ if (this._tabs().length === 0) {
371
+ this._selectedIndex = 0;
372
+ return;
373
+ }
374
+ this._selectedIndex = Math.max(0, Math.min(this._selectedIndex, this._tabs().length - 1));
375
+ }
376
+ _updatePagination() {
377
+ if (!isPlatformBrowser(this._platformId)) return;
378
+ const containerEl = this._tabListContainer()?.nativeElement;
379
+ const listEl = this._tabList()?.nativeElement;
380
+ if (containerEl && listEl) {
381
+ const showPaginationControls = listEl.scrollWidth > containerEl.clientWidth + 1;
382
+ if (showPaginationControls !== this._showPaginationControls()) {
383
+ this._showPaginationControls.set(showPaginationControls);
384
+ this._cdr.detectChanges();
385
+ }
386
+ this._updateScrollButtonsState();
387
+ }
388
+ }
389
+ _updateScrollButtonsState() {
390
+ if (!isPlatformBrowser(this._platformId)) return;
391
+ const containerEl = this._tabListContainer()?.nativeElement;
392
+ if (containerEl) {
393
+ const maxScroll = containerEl.scrollWidth - containerEl.clientWidth;
394
+ const scrollLeft = containerEl.scrollLeft;
395
+ const disableScrollBefore = scrollLeft <= 0;
396
+ const disableScrollAfter = scrollLeft >= maxScroll - 1;
397
+ if (disableScrollBefore !== this._disableScrollBefore() || disableScrollAfter !== this._disableScrollAfter()) {
398
+ this._disableScrollBefore.set(disableScrollBefore);
399
+ this._disableScrollAfter.set(disableScrollAfter);
400
+ this._cdr.detectChanges();
401
+ }
402
+ }
403
+ }
404
+ _scrollToTab(index) {
405
+ if (!isPlatformBrowser(this._platformId)) return;
406
+ const labels = this._tabLabels();
407
+ const containerEl = this._tabListContainer()?.nativeElement;
408
+ if (labels[index] && containerEl) {
409
+ const labelEl = labels[index].nativeElement;
410
+ const containerRect = containerEl.getBoundingClientRect();
411
+ const labelRect = labelEl.getBoundingClientRect();
412
+ if (labelRect.left < containerRect.left) containerEl.scrollBy({
413
+ left: labelRect.left - containerRect.left,
414
+ behavior: "smooth"
415
+ });
416
+ else if (labelRect.right > containerRect.right) containerEl.scrollBy({
417
+ left: labelRect.right - containerRect.right,
418
+ behavior: "smooth"
419
+ });
420
+ }
421
+ }
422
+ _scrollBefore() {
423
+ if (!isPlatformBrowser(this._platformId)) return;
424
+ const containerEl = this._tabListContainer()?.nativeElement;
425
+ if (containerEl) containerEl.scrollBy({
426
+ left: -containerEl.clientWidth / 2,
427
+ behavior: "smooth"
428
+ });
429
+ }
430
+ _scrollAfter() {
431
+ if (!isPlatformBrowser(this._platformId)) return;
432
+ const containerEl = this._tabListContainer()?.nativeElement;
433
+ if (containerEl) containerEl.scrollBy({
434
+ left: containerEl.clientWidth / 2,
435
+ behavior: "smooth"
436
+ });
437
+ }
438
+ _handleScroll() {
439
+ this._updateScrollButtonsState();
440
+ }
441
+ _onTabHeaderClick(index) {
442
+ const tabs = this._tabs();
443
+ const labels = this._tabLabels();
444
+ if (tabs[index].disabled() || this._selectedIndex === index) return;
445
+ this._prevIndex = this._selectedIndex;
446
+ this._selectedIndex = index;
447
+ this._isActive[this._prevIndex] = true;
448
+ this._isActive[this._selectedIndex] = true;
449
+ this.selectedIndexChange.emit(index);
450
+ this.selectedTabChange.emit({
451
+ index,
452
+ tab: tabs[index]
453
+ });
454
+ this._cdr.markForCheck();
455
+ const prevIndex = this._prevIndex;
456
+ setTimeout(() => {
457
+ delete this._isActive[prevIndex];
458
+ this._cdr.markForCheck();
459
+ }, parseInt(this.animationDuration()));
460
+ if (labels[index]) this._scrollToTab(index);
461
+ }
462
+ _getTabContent(tab) {
463
+ return tab._prepareContent(this._viewContainerRef);
464
+ }
465
+ _getEnterAnimation(index) {
466
+ let direction = "";
467
+ const selectedIndex = this._selectedIndex;
468
+ if (this._prevIndex > selectedIndex) direction = "left";
469
+ else if (this._prevIndex < selectedIndex) direction = "right";
470
+ if (this.enterAnimation()) return this.enterAnimation();
471
+ if (direction === "" || index !== selectedIndex) return "";
472
+ return `ngs-tab-group-enter-${direction}`;
473
+ }
474
+ _getLeaveAnimation(index) {
475
+ let direction = "";
476
+ const selectedIndex = this._selectedIndex;
477
+ if (this._prevIndex > selectedIndex) direction = "left";
478
+ else if (this._prevIndex < selectedIndex) direction = "right";
479
+ if (this.leaveAnimation()) return this.leaveAnimation();
480
+ if (direction === "" || index !== this._prevIndex || index === selectedIndex) return "";
481
+ return `ngs-tab-group-leave-${direction === "right" ? "left" : "right"}`;
482
+ }
483
+ _onKeydown(event) {
484
+ const tabs = this._tabs();
485
+ const labels = this._tabLabels();
486
+ let newIndex = this._selectedIndex;
487
+ if (event.key === "ArrowRight") newIndex = (this._selectedIndex + 1) % tabs.length;
488
+ else if (event.key === "ArrowLeft") newIndex = (this._selectedIndex - 1 + tabs.length) % tabs.length;
489
+ else if (event.key === "Home") newIndex = 0;
490
+ else if (event.key === "End") newIndex = tabs.length - 1;
491
+ else return;
492
+ event.preventDefault();
493
+ const direction = newIndex >= this._selectedIndex ? 1 : -1;
494
+ const startIndex = newIndex;
495
+ while (tabs[newIndex].disabled()) {
496
+ newIndex = (newIndex + direction + tabs.length) % tabs.length;
497
+ if (newIndex === startIndex) break;
498
+ }
499
+ if (newIndex !== this._selectedIndex && !tabs[newIndex].disabled()) {
500
+ this._prevIndex = this._selectedIndex;
501
+ this._selectedIndex = newIndex;
502
+ this._isActive[this._prevIndex] = true;
503
+ this._isActive[this._selectedIndex] = true;
504
+ this.selectedIndexChange.emit(newIndex);
505
+ this.selectedTabChange.emit({
506
+ index: newIndex,
507
+ tab: tabs[newIndex]
508
+ });
509
+ this._cdr.markForCheck();
510
+ const prevIndex = this._prevIndex;
511
+ setTimeout(() => {
512
+ delete this._isActive[prevIndex];
513
+ this._cdr.markForCheck();
514
+ }, parseInt(this.animationDuration()));
515
+ if (isPlatformBrowser(this._platformId)) {
516
+ labels[newIndex].nativeElement.focus({ preventScroll: true });
517
+ this._scrollToTab(newIndex);
518
+ }
519
+ }
520
+ }
521
+ static ɵfac = i0.ɵɵngDeclareFactory({
522
+ minVersion: "12.0.0",
523
+ version: "22.3.0",
524
+ ngImport: i0,
525
+ type: TabGroup,
526
+ deps: [],
527
+ target: i0.ɵɵFactoryTarget.Component
528
+ });
529
+ static ɵcmp = i0.ɵɵngDeclareComponent({
530
+ minVersion: "17.0.0",
531
+ version: "22.3.0",
532
+ type: TabGroup,
533
+ isStandalone: true,
534
+ selector: "ngs-tab-group",
535
+ inputs: {
536
+ selectedIndex: {
537
+ classPropertyName: "selectedIndex",
538
+ publicName: "selectedIndex",
539
+ isSignal: true,
540
+ isRequired: false,
541
+ transformFunction: null
542
+ },
543
+ headerPosition: {
544
+ classPropertyName: "headerPosition",
545
+ publicName: "headerPosition",
546
+ isSignal: true,
547
+ isRequired: false,
548
+ transformFunction: null
549
+ },
550
+ preserveContent: {
551
+ classPropertyName: "preserveContent",
552
+ publicName: "preserveContent",
553
+ isSignal: true,
554
+ isRequired: false,
555
+ transformFunction: null
556
+ },
557
+ stretchTabs: {
558
+ classPropertyName: "stretchTabs",
559
+ publicName: "ngs-stretch-tabs",
560
+ isSignal: true,
561
+ isRequired: false,
562
+ transformFunction: null
563
+ },
564
+ alignTabs: {
565
+ classPropertyName: "alignTabs",
566
+ publicName: "ngs-align-tabs",
567
+ isSignal: true,
568
+ isRequired: false,
569
+ transformFunction: null
570
+ },
571
+ disableRipple: {
572
+ classPropertyName: "disableRipple",
573
+ publicName: "disableRipple",
574
+ isSignal: true,
575
+ isRequired: false,
576
+ transformFunction: null
577
+ },
578
+ animationDuration: {
579
+ classPropertyName: "animationDuration",
580
+ publicName: "animationDuration",
581
+ isSignal: true,
582
+ isRequired: false,
583
+ transformFunction: null
584
+ },
585
+ enterAnimation: {
586
+ classPropertyName: "enterAnimation",
587
+ publicName: "animate.enter",
588
+ isSignal: true,
589
+ isRequired: false,
590
+ transformFunction: null
591
+ },
592
+ leaveAnimation: {
593
+ classPropertyName: "leaveAnimation",
594
+ publicName: "animate.leave",
595
+ isSignal: true,
596
+ isRequired: false,
597
+ transformFunction: null
598
+ }
599
+ },
600
+ outputs: {
601
+ selectedIndexChange: "selectedIndexChange",
602
+ selectedTabChange: "selectedTabChange",
603
+ focusChange: "focusChange"
604
+ },
605
+ host: {
606
+ properties: {
607
+ "class.ngs-tab-group-inverted": "headerPosition() === \"below\"",
608
+ "style.--ngs-tab-group-animation-duration": "animationDuration()"
609
+ },
610
+ classAttribute: "ngs-tab-group"
611
+ },
612
+ queries: [{
613
+ propertyName: "_tabs",
614
+ predicate: Tab,
615
+ isSignal: true
616
+ }],
617
+ viewQueries: [
618
+ {
619
+ propertyName: "_tabLabels",
620
+ predicate: ["tabLabel"],
621
+ descendants: true,
622
+ isSignal: true
623
+ },
624
+ {
625
+ propertyName: "_tabListContainer",
626
+ first: true,
627
+ predicate: ["tabListContainer"],
628
+ descendants: true,
629
+ isSignal: true
630
+ },
631
+ {
632
+ propertyName: "_tabList",
633
+ first: true,
634
+ predicate: ["tabList"],
635
+ descendants: true,
636
+ isSignal: true
637
+ }
638
+ ],
639
+ ngImport: i0,
640
+ template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n role=\"tablist\"\n (scroll)=\"_handleScroll()\"\n (keydown)=\"_onKeydown($event)\">\n <div class=\"ngs-tab-group-header-list\" #tabList\n [class.ngs-tab-group-header-list-align-start]=\"alignTabs() === 'start'\"\n [class.ngs-tab-group-header-list-align-center]=\"alignTabs() === 'center'\"\n [class.ngs-tab-group-header-list-align-end]=\"alignTabs() === 'end'\">\n @for (tab of _tabs(); track tab; let i = $index) {\n <div\n #tabLabel\n class=\"ngs-tab-label\"\n role=\"tab\"\n ngsRipple\n [ngsRippleDisabled]=\"tab.disabled() || disableRipple()\"\n [id]=\"'ngs-tab-label-' + i\"\n [attr.aria-controls]=\"'ngs-tab-panel-' + i\"\n [attr.aria-selected]=\"_selectedIndex === i\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.ariaLabel()\"\n [attr.aria-labelledby]=\"tab.ariaLabelledby()\"\n [tabIndex]=\"_selectedIndex === i ? 0 : -1\"\n [class.ngs-tab-label-active]=\"_selectedIndex === i\"\n [class.ngs-tab-label-disabled]=\"tab.disabled()\"\n [class.ngs-tab-label-stretched]=\"stretchTabs()\"\n (click)=\"_onTabHeaderClick(i)\"\n >\n @if (tab.templateLabel()) {\n <ng-container [ngTemplateOutlet]=\"tab.templateLabel()!.template\" />\n } @else {\n {{ tab.label() }}\n }\n </div>\n }\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n\n<div class=\"ngs-tab-group-content\">\n <div class=\"ngs-tab-panel-container\">\n @for (tab of _tabs(); track tab; let i = $index) {\n @if (_selectedIndex === i || preserveContent() || _isActive[i]) {\n <div\n class=\"ngs-tab-panel\"\n [class.ngs-tab-panel-active]=\"_selectedIndex === i\"\n [class.ngs-tab-group-enter-left]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-left'\"\n [class.ngs-tab-group-enter-right]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-right'\"\n [class.ngs-tab-group-leave-left]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-left'\"\n [class.ngs-tab-group-leave-right]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-right'\"\n role=\"tabpanel\"\n [id]=\"'ngs-tab-panel-' + i\"\n [attr.aria-labelledby]=\"'ngs-tab-label-' + i\"\n [animate.enter]=\"_getEnterAnimation(i)\"\n [animate.leave]=\"_getLeaveAnimation(i)\"\n >\n <ng-template [cdkPortalOutlet]=\"_getTabContent(tab)\" />\n </div>\n }\n }\n </div>\n</div>\n",
641
+ styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}:host{height:100%;--ngs-tab-content-padding: 0;--ngs-tab-panel-transition: opacity var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1)}:host .ngs-tab-panel{width:100%;flex-shrink:0;box-sizing:border-box;animation-duration:var(--ngs-tab-group-animation-duration, .5s);animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.35,0,.25,1);position:relative;display:none}:host .ngs-tab-panel.ngs-tab-panel-active,:host .ngs-tab-panel.ngs-tab-group-leave-left,:host .ngs-tab-panel.ngs-tab-group-leave-right,:host .ngs-tab-panel.ngs-tab-group-enter-left,:host .ngs-tab-panel.ngs-tab-group-enter-right{display:block}:host .ngs-tab-panel:not(.ngs-tab-panel-active){position:absolute;top:0;left:0;z-index:1;pointer-events:none}:host .ngs-tab-panel.ngs-tab-panel-active{z-index:2}@keyframes ngs-tab-group-enter-left{0%{transform:translate3d(-100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-enter-right{0%{transform:translate3d(100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-leave-left{0%{transform:none}to{transform:translate3d(-100%,0,0)}}@keyframes ngs-tab-group-leave-right{0%{transform:none}to{transform:translate3d(100%,0,0)}}:host .ngs-tab-group-enter-left{animation-name:ngs-tab-group-enter-left}:host .ngs-tab-group-enter-right{animation-name:ngs-tab-group-enter-right}:host .ngs-tab-group-leave-left{animation-name:ngs-tab-group-leave-left}:host .ngs-tab-group-leave-right{animation-name:ngs-tab-group-leave-right}:host .ngs-tab-group-content{padding:var(--ngs-tab-content-padding);overflow:hidden;position:relative;flex-grow:1}:host .ngs-tab-panel-container{display:flex;flex-direction:row;position:relative;overflow:hidden;height:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
642
+ dependencies: [
643
+ {
644
+ kind: "ngmodule",
645
+ type: CommonModule
646
+ },
647
+ {
648
+ kind: "directive",
649
+ type: i1$1.NgTemplateOutlet,
650
+ selector: "[ngTemplateOutlet]",
651
+ inputs: [
652
+ "ngTemplateOutletContext",
653
+ "ngTemplateOutlet",
654
+ "ngTemplateOutletInjector"
655
+ ]
656
+ },
657
+ {
658
+ kind: "ngmodule",
659
+ type: PortalModule
660
+ },
661
+ {
662
+ kind: "directive",
663
+ type: i2.ɵɵCdkPortalOutlet,
664
+ selector: "[cdkPortalOutlet]",
665
+ inputs: ["cdkPortalOutlet"],
666
+ outputs: ["attached"],
667
+ exportAs: ["cdkPortalOutlet"]
668
+ },
669
+ {
670
+ kind: "directive",
671
+ type: Ripple,
672
+ selector: "[ngsRipple]",
673
+ inputs: [
674
+ "ngsRippleColor",
675
+ "ngsRippleUnbounded",
676
+ "ngsRippleCentered",
677
+ "ngsRippleRadius",
678
+ "ngsRippleAnimation",
679
+ "ngsRippleDisabled",
680
+ "ngsRippleTrigger"
681
+ ],
682
+ outputs: [
683
+ "ngsRippleCenteredChange",
684
+ "ngsRippleDisabledChange",
685
+ "ngsRippleTriggerChange"
686
+ ],
687
+ exportAs: ["ngsRipple"]
688
+ }
689
+ ],
690
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
691
+ });
692
+ };
693
+ i0.ɵɵngDeclareClassMetadata({
694
+ minVersion: "12.0.0",
695
+ version: "22.3.0",
696
+ ngImport: i0,
697
+ type: TabGroup,
698
+ decorators: [{
699
+ type: Component,
700
+ args: [{
701
+ selector: "ngs-tab-group",
702
+ standalone: true,
703
+ imports: [
704
+ CommonModule,
705
+ PortalModule,
706
+ Ripple
707
+ ],
708
+ changeDetection: ChangeDetectionStrategy.OnPush,
709
+ host: {
710
+ "class": "ngs-tab-group",
711
+ "[class.ngs-tab-group-inverted]": "headerPosition() === \"below\"",
712
+ "[style.--ngs-tab-group-animation-duration]": "animationDuration()"
713
+ },
714
+ template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n role=\"tablist\"\n (scroll)=\"_handleScroll()\"\n (keydown)=\"_onKeydown($event)\">\n <div class=\"ngs-tab-group-header-list\" #tabList\n [class.ngs-tab-group-header-list-align-start]=\"alignTabs() === 'start'\"\n [class.ngs-tab-group-header-list-align-center]=\"alignTabs() === 'center'\"\n [class.ngs-tab-group-header-list-align-end]=\"alignTabs() === 'end'\">\n @for (tab of _tabs(); track tab; let i = $index) {\n <div\n #tabLabel\n class=\"ngs-tab-label\"\n role=\"tab\"\n ngsRipple\n [ngsRippleDisabled]=\"tab.disabled() || disableRipple()\"\n [id]=\"'ngs-tab-label-' + i\"\n [attr.aria-controls]=\"'ngs-tab-panel-' + i\"\n [attr.aria-selected]=\"_selectedIndex === i\"\n [attr.aria-disabled]=\"tab.disabled()\"\n [attr.aria-label]=\"tab.ariaLabel()\"\n [attr.aria-labelledby]=\"tab.ariaLabelledby()\"\n [tabIndex]=\"_selectedIndex === i ? 0 : -1\"\n [class.ngs-tab-label-active]=\"_selectedIndex === i\"\n [class.ngs-tab-label-disabled]=\"tab.disabled()\"\n [class.ngs-tab-label-stretched]=\"stretchTabs()\"\n (click)=\"_onTabHeaderClick(i)\"\n >\n @if (tab.templateLabel()) {\n <ng-container [ngTemplateOutlet]=\"tab.templateLabel()!.template\" />\n } @else {\n {{ tab.label() }}\n }\n </div>\n }\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n\n<div class=\"ngs-tab-group-content\">\n <div class=\"ngs-tab-panel-container\">\n @for (tab of _tabs(); track tab; let i = $index) {\n @if (_selectedIndex === i || preserveContent() || _isActive[i]) {\n <div\n class=\"ngs-tab-panel\"\n [class.ngs-tab-panel-active]=\"_selectedIndex === i\"\n [class.ngs-tab-group-enter-left]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-left'\"\n [class.ngs-tab-group-enter-right]=\"_getEnterAnimation(i) === 'ngs-tab-group-enter-right'\"\n [class.ngs-tab-group-leave-left]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-left'\"\n [class.ngs-tab-group-leave-right]=\"_getLeaveAnimation(i) === 'ngs-tab-group-leave-right'\"\n role=\"tabpanel\"\n [id]=\"'ngs-tab-panel-' + i\"\n [attr.aria-labelledby]=\"'ngs-tab-label-' + i\"\n [animate.enter]=\"_getEnterAnimation(i)\"\n [animate.leave]=\"_getLeaveAnimation(i)\"\n >\n <ng-template [cdkPortalOutlet]=\"_getTabContent(tab)\" />\n </div>\n }\n }\n </div>\n</div>\n",
715
+ styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}:host{height:100%;--ngs-tab-content-padding: 0;--ngs-tab-panel-transition: opacity var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1)}:host .ngs-tab-panel{width:100%;flex-shrink:0;box-sizing:border-box;animation-duration:var(--ngs-tab-group-animation-duration, .5s);animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.35,0,.25,1);position:relative;display:none}:host .ngs-tab-panel.ngs-tab-panel-active,:host .ngs-tab-panel.ngs-tab-group-leave-left,:host .ngs-tab-panel.ngs-tab-group-leave-right,:host .ngs-tab-panel.ngs-tab-group-enter-left,:host .ngs-tab-panel.ngs-tab-group-enter-right{display:block}:host .ngs-tab-panel:not(.ngs-tab-panel-active){position:absolute;top:0;left:0;z-index:1;pointer-events:none}:host .ngs-tab-panel.ngs-tab-panel-active{z-index:2}@keyframes ngs-tab-group-enter-left{0%{transform:translate3d(-100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-enter-right{0%{transform:translate3d(100%,0,0)}to{transform:none}}@keyframes ngs-tab-group-leave-left{0%{transform:none}to{transform:translate3d(-100%,0,0)}}@keyframes ngs-tab-group-leave-right{0%{transform:none}to{transform:translate3d(100%,0,0)}}:host .ngs-tab-group-enter-left{animation-name:ngs-tab-group-enter-left}:host .ngs-tab-group-enter-right{animation-name:ngs-tab-group-enter-right}:host .ngs-tab-group-leave-left{animation-name:ngs-tab-group-leave-left}:host .ngs-tab-group-leave-right{animation-name:ngs-tab-group-leave-right}:host .ngs-tab-group-content{padding:var(--ngs-tab-content-padding);overflow:hidden;position:relative;flex-grow:1}:host .ngs-tab-panel-container{display:flex;flex-direction:row;position:relative;overflow:hidden;height:100%}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
716
+ }]
717
+ }],
718
+ ctorParameters: () => [],
719
+ propDecorators: {
720
+ _tabs: [{
721
+ type: i0.ContentChildren,
722
+ args: [i0.forwardRef(() => Tab), { isSignal: true }]
723
+ }],
724
+ _tabLabels: [{
725
+ type: i0.ViewChildren,
726
+ args: ["tabLabel", { isSignal: true }]
727
+ }],
728
+ _tabListContainer: [{
729
+ type: i0.ViewChild,
730
+ args: ["tabListContainer", { isSignal: true }]
731
+ }],
732
+ _tabList: [{
733
+ type: i0.ViewChild,
734
+ args: ["tabList", { isSignal: true }]
735
+ }],
736
+ selectedIndex: [{
737
+ type: i0.Input,
738
+ args: [{
739
+ isSignal: true,
740
+ alias: "selectedIndex",
741
+ required: false
742
+ }]
743
+ }],
744
+ headerPosition: [{
745
+ type: i0.Input,
746
+ args: [{
747
+ isSignal: true,
748
+ alias: "headerPosition",
749
+ required: false
750
+ }]
751
+ }],
752
+ preserveContent: [{
753
+ type: i0.Input,
754
+ args: [{
755
+ isSignal: true,
756
+ alias: "preserveContent",
757
+ required: false
758
+ }]
759
+ }],
760
+ stretchTabs: [{
761
+ type: i0.Input,
762
+ args: [{
763
+ isSignal: true,
764
+ alias: "ngs-stretch-tabs",
765
+ required: false
766
+ }]
767
+ }],
768
+ alignTabs: [{
769
+ type: i0.Input,
770
+ args: [{
771
+ isSignal: true,
772
+ alias: "ngs-align-tabs",
773
+ required: false
774
+ }]
775
+ }],
776
+ disableRipple: [{
777
+ type: i0.Input,
778
+ args: [{
779
+ isSignal: true,
780
+ alias: "disableRipple",
781
+ required: false
782
+ }]
783
+ }],
784
+ animationDuration: [{
785
+ type: i0.Input,
786
+ args: [{
787
+ isSignal: true,
788
+ alias: "animationDuration",
789
+ required: false
790
+ }]
791
+ }],
792
+ enterAnimation: [{
793
+ type: i0.Input,
794
+ args: [{
795
+ isSignal: true,
796
+ alias: "animate.enter",
797
+ required: false
798
+ }]
799
+ }],
800
+ leaveAnimation: [{
801
+ type: i0.Input,
802
+ args: [{
803
+ isSignal: true,
804
+ alias: "animate.leave",
805
+ required: false
806
+ }]
807
+ }],
808
+ selectedIndexChange: [{
809
+ type: i0.Output,
810
+ args: ["selectedIndexChange"]
811
+ }],
812
+ selectedTabChange: [{
813
+ type: i0.Output,
814
+ args: ["selectedTabChange"]
815
+ }],
816
+ focusChange: [{
817
+ type: i0.Output,
818
+ args: ["focusChange"]
819
+ }]
820
+ }
821
+ });
822
+ var TabLink = class TabLink {
823
+ _el = inject(ElementRef);
824
+ _parent = inject(TabNavBar, { optional: true });
825
+ _routerLink = inject(RouterLink, { optional: true });
826
+ active = computed(() => {
827
+ const parent = this._parent;
828
+ if (!parent?.isActiveFn) return false;
829
+ return parent.isActiveFn()(this);
830
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
831
+ disabled = input(false, {
832
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
833
+ transform: booleanAttribute
834
+ });
835
+ rippleDisabled = input(false, {
836
+ ...ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {},
837
+ alias: "ngsRippleDisabled",
838
+ transform: booleanAttribute
839
+ });
840
+ get ngsRippleDisabled() {
841
+ return this.disabled() || !!this._parent?.disableRipple() || this.rippleDisabled();
842
+ }
843
+ _ariaControls() {
844
+ const panel = this._parent?.tabPanel();
845
+ return this.active() && panel ? panel.id : null;
846
+ }
847
+ _onClick(event) {
848
+ if (this.disabled()) {
849
+ event.preventDefault();
850
+ event.stopImmediatePropagation();
851
+ }
852
+ }
853
+ focus() {
854
+ this._el.nativeElement.focus();
855
+ }
856
+ get elementRef() {
857
+ return this._el;
858
+ }
859
+ static ɵfac = i0.ɵɵngDeclareFactory({
860
+ minVersion: "12.0.0",
861
+ version: "22.3.0",
862
+ ngImport: i0,
863
+ type: TabLink,
864
+ deps: [],
865
+ target: i0.ɵɵFactoryTarget.Component
866
+ });
867
+ static ɵcmp = i0.ɵɵngDeclareComponent({
868
+ minVersion: "17.1.0",
869
+ version: "22.3.0",
870
+ type: TabLink,
871
+ isStandalone: true,
872
+ selector: "a[ngs-tab-link]",
873
+ inputs: {
874
+ disabled: {
875
+ classPropertyName: "disabled",
876
+ publicName: "disabled",
877
+ isSignal: true,
878
+ isRequired: false,
879
+ transformFunction: null
880
+ },
881
+ rippleDisabled: {
882
+ classPropertyName: "rippleDisabled",
883
+ publicName: "ngsRippleDisabled",
884
+ isSignal: true,
885
+ isRequired: false,
886
+ transformFunction: null
887
+ }
888
+ },
889
+ host: {
890
+ attributes: { "role": "tab" },
891
+ listeners: { "click": "_onClick($event)" },
892
+ properties: {
893
+ "class.ngs-tab-link-active": "active()",
894
+ "class.ngs-tab-link-disabled": "disabled()",
895
+ "attr.aria-selected": "active() ? \"true\" : \"false\"",
896
+ "attr.aria-disabled": "disabled() ? \"true\" : \"false\"",
897
+ "tabIndex": "disabled() ? -1 : 0",
898
+ "attr.aria-controls": "_ariaControls()"
899
+ },
900
+ classAttribute: "ngs-tab-link"
901
+ },
902
+ hostDirectives: [{
903
+ directive: i1.Ripple,
904
+ inputs: ["ngsRippleDisabled", "ngsRippleDisabled"]
905
+ }],
906
+ ngImport: i0,
907
+ template: "<ng-content/>\n",
908
+ styles: [":host{--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host:focus-visible{background:var(--ngs-color-surface-container-high)}:host.ngs-tab-link-stretched{flex-grow:1}:host.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}:host.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
909
+ changeDetection: i0.ChangeDetectionStrategy.Eager
910
+ });
911
+ };
912
+ i0.ɵɵngDeclareClassMetadata({
913
+ minVersion: "12.0.0",
914
+ version: "22.3.0",
915
+ ngImport: i0,
916
+ type: TabLink,
917
+ decorators: [{
918
+ type: Component,
919
+ args: [{
920
+ selector: "a[ngs-tab-link]",
921
+ standalone: true,
922
+ host: {
923
+ "role": "tab",
924
+ "class": "ngs-tab-link",
925
+ "[class.ngs-tab-link-active]": "active()",
926
+ "[class.ngs-tab-link-disabled]": "disabled()",
927
+ "[attr.aria-selected]": "active() ? \"true\" : \"false\"",
928
+ "[attr.aria-disabled]": "disabled() ? \"true\" : \"false\"",
929
+ "[tabIndex]": "disabled() ? -1 : 0",
930
+ "[attr.aria-controls]": "_ariaControls()",
931
+ "(click)": "_onClick($event)"
932
+ },
933
+ changeDetection: ChangeDetectionStrategy.Eager,
934
+ hostDirectives: [{
935
+ directive: Ripple,
936
+ inputs: ["ngsRippleDisabled: ngsRippleDisabled"]
937
+ }],
938
+ template: "<ng-content/>\n",
939
+ styles: [":host{--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host:focus-visible{background:var(--ngs-color-surface-container-high)}:host.ngs-tab-link-stretched{flex-grow:1}:host.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}:host.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
940
+ }]
941
+ }],
942
+ propDecorators: {
943
+ disabled: [{
944
+ type: i0.Input,
945
+ args: [{
946
+ isSignal: true,
947
+ alias: "disabled",
948
+ required: false
949
+ }]
950
+ }],
951
+ rippleDisabled: [{
952
+ type: i0.Input,
953
+ args: [{
954
+ isSignal: true,
955
+ alias: "ngsRippleDisabled",
956
+ required: false
957
+ }]
958
+ }]
959
+ }
960
+ });
961
+ var TabNavBar = class TabNavBar {
962
+ _cdr = inject(ChangeDetectorRef);
963
+ platformId = inject(PLATFORM_ID);
964
+ currentUrl = signal(isPlatformBrowser(inject(PLATFORM_ID)) ? inject(Router).url : "", ...ngDevMode ? [{ debugName: "currentUrl" }] : /* istanbul ignore next */ []);
965
+ _router = inject(Router);
966
+ _destroyRef = inject(DestroyRef);
967
+ _links = contentChildren(TabLink, ...ngDevMode ? [{ debugName: "_links" }] : /* istanbul ignore next */ []);
968
+ _tabListContainer = viewChild("tabListContainer", ...ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []);
969
+ _tabList = viewChild("tabList", ...ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []);
970
+ _showPaginationControls = signal(false, ...ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []);
971
+ _disableScrollBefore = signal(true, ...ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []);
972
+ _disableScrollAfter = signal(true, ...ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []);
973
+ tabPanel = input(null, ...ngDevMode ? [{ debugName: "tabPanel" }] : /* istanbul ignore next */ []);
974
+ disableRipple = input(false, ...ngDevMode ? [{ debugName: "disableRipple" }] : /* istanbul ignore next */ []);
975
+ activator = input(...ngDevMode ? [void 0, { debugName: "activator" }] : /* istanbul ignore next */ []);
976
+ isActiveFn = computed(() => (link) => {
977
+ const activatorFn = this.activator();
978
+ if (activatorFn) return activatorFn(link);
979
+ return this.defaultIsActive(link);
980
+ }, ...ngDevMode ? [{ debugName: "isActiveFn" }] : /* istanbul ignore next */ []);
981
+ _resizeObserver = null;
982
+ _resizeSubscription = Subscription.EMPTY;
983
+ defaultIsActive(link) {
984
+ const el = link.elementRef.nativeElement;
985
+ const routerLink = link["_routerLink"];
986
+ let href = "";
987
+ if (routerLink) href = this._router.serializeUrl(routerLink.urlTree);
988
+ else href = el.getAttribute("href") || "";
989
+ if (!href || href === "#") return false;
990
+ try {
991
+ const linkPath = new URL(href, window.location.origin).pathname;
992
+ return new URL(this.currentUrl(), window.location.origin).pathname === linkPath;
993
+ } catch {
994
+ return false;
995
+ }
996
+ }
997
+ constructor() {
998
+ effect(() => {
999
+ this._links();
1000
+ this.currentUrl.set(this._router.url);
1001
+ Promise.resolve().then(() => {
1002
+ this._updatePagination();
1003
+ this._cdr.markForCheck();
1004
+ });
1005
+ setTimeout(() => {
1006
+ this.currentUrl.set(this._router.url);
1007
+ this._cdr.markForCheck();
1008
+ }, 0);
1009
+ });
1010
+ }
1011
+ ngOnInit() {
1012
+ if (isPlatformBrowser(this.platformId)) {
1013
+ this.currentUrl.set(this._router.url);
1014
+ this._router.events.pipe(filter$1((event) => event instanceof NavigationEnd), takeUntilDestroyed(this._destroyRef)).subscribe(() => {
1015
+ this.currentUrl.set(this._router.url);
1016
+ });
1017
+ }
1018
+ }
1019
+ ngAfterViewInit() {
1020
+ if (isPlatformBrowser(this.platformId)) {
1021
+ const container = this._tabListContainer()?.nativeElement;
1022
+ if (container && "ResizeObserver" in window) {
1023
+ this._resizeObserver = new ResizeObserver(() => this._updatePagination());
1024
+ this._resizeObserver.observe(container);
1025
+ } else if (container) this._resizeSubscription = fromEvent(window, "resize").pipe(debounceTime(100)).subscribe(() => this._updatePagination());
1026
+ }
1027
+ this._updatePagination();
1028
+ }
1029
+ ngOnDestroy() {
1030
+ this._resizeObserver?.disconnect();
1031
+ this._resizeSubscription.unsubscribe();
1032
+ }
1033
+ _handleScroll() {
1034
+ this._updateScrollButtonsState();
1035
+ }
1036
+ _scrollBefore() {
1037
+ const container = this._tabListContainer()?.nativeElement;
1038
+ if (!container) return;
1039
+ container.scrollBy({
1040
+ left: -container.clientWidth,
1041
+ behavior: "smooth"
1042
+ });
1043
+ }
1044
+ _scrollAfter() {
1045
+ const container = this._tabListContainer()?.nativeElement;
1046
+ if (!container) return;
1047
+ container.scrollBy({
1048
+ left: container.clientWidth,
1049
+ behavior: "smooth"
1050
+ });
1051
+ }
1052
+ _updatePagination() {
1053
+ const container = this._tabListContainer()?.nativeElement;
1054
+ const list = this._tabList()?.nativeElement;
1055
+ if (!container || !list) return;
1056
+ const show = list.scrollWidth > container.clientWidth + 1;
1057
+ this._showPaginationControls.set(show);
1058
+ this._updateScrollButtonsState();
1059
+ }
1060
+ _updateScrollButtonsState() {
1061
+ const container = this._tabListContainer()?.nativeElement;
1062
+ if (!container) return;
1063
+ const maxScroll = container.scrollWidth - container.clientWidth;
1064
+ this._disableScrollBefore.set(container.scrollLeft <= 0);
1065
+ this._disableScrollAfter.set(container.scrollLeft >= maxScroll);
1066
+ }
1067
+ static ɵfac = i0.ɵɵngDeclareFactory({
1068
+ minVersion: "12.0.0",
1069
+ version: "22.3.0",
1070
+ ngImport: i0,
1071
+ type: TabNavBar,
1072
+ deps: [],
1073
+ target: i0.ɵɵFactoryTarget.Component
1074
+ });
1075
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1076
+ minVersion: "17.0.0",
1077
+ version: "22.3.0",
1078
+ type: TabNavBar,
1079
+ isStandalone: true,
1080
+ selector: "ngs-tab-nav-bar, [ngs-tab-nav-bar]",
1081
+ inputs: {
1082
+ tabPanel: {
1083
+ classPropertyName: "tabPanel",
1084
+ publicName: "tabPanel",
1085
+ isSignal: true,
1086
+ isRequired: false,
1087
+ transformFunction: null
1088
+ },
1089
+ disableRipple: {
1090
+ classPropertyName: "disableRipple",
1091
+ publicName: "disableRipple",
1092
+ isSignal: true,
1093
+ isRequired: false,
1094
+ transformFunction: null
1095
+ },
1096
+ activator: {
1097
+ classPropertyName: "activator",
1098
+ publicName: "activator",
1099
+ isSignal: true,
1100
+ isRequired: false,
1101
+ transformFunction: null
1102
+ }
1103
+ },
1104
+ host: { classAttribute: "ngs-tab-nav-bar" },
1105
+ queries: [{
1106
+ propertyName: "_links",
1107
+ predicate: TabLink,
1108
+ isSignal: true
1109
+ }],
1110
+ viewQueries: [{
1111
+ propertyName: "_tabListContainer",
1112
+ first: true,
1113
+ predicate: ["tabListContainer"],
1114
+ descendants: true,
1115
+ isSignal: true
1116
+ }, {
1117
+ propertyName: "_tabList",
1118
+ first: true,
1119
+ predicate: ["tabList"],
1120
+ descendants: true,
1121
+ isSignal: true
1122
+ }],
1123
+ exportAs: ["ngsTabNavBar"],
1124
+ ngImport: i0,
1125
+ template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n (scroll)=\"_handleScroll()\">\n <div class=\"ngs-tab-group-header-list\" #tabList>\n <ng-content select=\"a[ngs-tab-link]\"/>\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n",
1126
+ styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
1127
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1128
+ });
1129
+ };
1130
+ i0.ɵɵngDeclareClassMetadata({
1131
+ minVersion: "12.0.0",
1132
+ version: "22.3.0",
1133
+ ngImport: i0,
1134
+ type: TabNavBar,
1135
+ decorators: [{
1136
+ type: Component,
1137
+ args: [{
1138
+ selector: "ngs-tab-nav-bar, [ngs-tab-nav-bar]",
1139
+ exportAs: "ngsTabNavBar",
1140
+ changeDetection: ChangeDetectionStrategy.OnPush,
1141
+ host: { "class": "ngs-tab-nav-bar" },
1142
+ template: "<div class=\"ngs-tab-group-header-container\" [class.ngs-tab-group-header-pagination-controls-enabled]=\"_showPaginationControls()\">\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-before\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollBefore()\"\n (click)=\"_scrollBefore()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n\n <div class=\"ngs-tab-group-header\"\n #tabListContainer\n (scroll)=\"_handleScroll()\">\n <div class=\"ngs-tab-group-header-list\" #tabList>\n <ng-content select=\"a[ngs-tab-link]\"/>\n </div>\n </div>\n\n @if (_showPaginationControls()) {\n <button class=\"ngs-tab-group-pagination-control ngs-tab-group-pagination-control-after\"\n [class.ngs-tab-group-pagination-control-disabled]=\"_disableScrollAfter()\"\n (click)=\"_scrollAfter()\"\n type=\"button\"\n aria-hidden=\"true\">\n <div class=\"ngs-tab-group-pagination-control-icon\"></div>\n </button>\n }\n</div>\n",
1143
+ styles: [":host{--ngs-tab-group-header-border-bottom: 1px solid var(--ngs-color-border);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 0 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-active-color: var(--ngs-color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--ngs-color-primary);--ngs-tab-label-active-border-top: 2px solid var(--ngs-color-primary);--ngs-tab-label-disabled-color: var(--ngs-color-on-surface-variant);--ngs-tab-label-disabled-cursor: default;--ngs-tab-label-transition: color var(--ngs-tab-group-animation-duration, .2s) cubic-bezier(.35, 0, .25, 1);--ngs-tab-group-pagination-control-before-border-right: 1px solid var(--ngs-color-border);--ngs-tab-group-pagination-control-after-border-left: 1px solid var(--ngs-color-border);--ngs-tab-group-header-height: calc(var(--spacing, .25rem) * 14);display:flex;flex-direction:column}:host.ngs-tab-group-inverted{flex-direction:column-reverse;--ngs-tab-group-header-border-bottom: none;--ngs-tab-group-header-border-top: 1px solid var(--ngs-color-border)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none;height:var(--ngs-tab-group-header-height)}:host .ngs-tab-group-header-container:before,:host .ngs-tab-group-header-container:after{content:\"\";position:absolute;left:0;right:0;z-index:1;pointer-events:none}:host .ngs-tab-group-header-container:before{top:0;border-top:var(--ngs-tab-group-header-border-top)}:host .ngs-tab-group-header-container:after{bottom:0;border-bottom:var(--ngs-tab-group-header-border-bottom)}:host .ngs-tab-group-header{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0}:host .ngs-tab-group-header::-webkit-scrollbar{display:none}:host .ngs-tab-label,:host .ngs-tab-link{padding:var(--ngs-tab-label-padding);cursor:var(--ngs-tab-label-cursor);color:var(--ngs-tab-label-color);position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transition:var(--ngs-tab-label-transition);white-space:nowrap;outline:none;flex:none;text-decoration:none}:host .ngs-tab-label:focus-visible,:host .ngs-tab-link:focus-visible{background:var(--ngs-color-surface-container-high)}:host .ngs-tab-label.ngs-tab-label-stretched,:host .ngs-tab-label.ngs-tab-link-stretched,:host .ngs-tab-link.ngs-tab-label-stretched,:host .ngs-tab-link.ngs-tab-link-stretched{flex-grow:1}:host .ngs-tab-label.ngs-tab-label-active,:host .ngs-tab-label.ngs-tab-link-active,:host .ngs-tab-link.ngs-tab-label-active,:host .ngs-tab-link.ngs-tab-link-active{color:var(--ngs-tab-label-active-color)}:host .ngs-tab-label.ngs-tab-label-active:after,:host .ngs-tab-label.ngs-tab-link-active:after,:host .ngs-tab-link.ngs-tab-label-active:after,:host .ngs-tab-link.ngs-tab-link-active:after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:0;border-bottom:var(--ngs-tab-label-active-border-bottom);z-index:2}.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-label.ngs-tab-link-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-label-active:after,.ngs-tab-group-inverted :host .ngs-tab-link.ngs-tab-link-active:after{bottom:auto;top:0;border-bottom:none;border-top:var(--ngs-tab-label-active-border-top);z-index:2}:host .ngs-tab-label.ngs-tab-label-disabled,:host .ngs-tab-label.ngs-tab-link-disabled,:host .ngs-tab-link.ngs-tab-label-disabled,:host .ngs-tab-link.ngs-tab-link-disabled{color:var(--ngs-tab-label-disabled-color);cursor:var(--ngs-tab-label-disabled-cursor);pointer-events:none}:host .ngs-tab-group-header-list{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:100%}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-start{justify-content:flex-start}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-center{justify-content:center}:host .ngs-tab-group-header-list.ngs-tab-group-header-list-align-end{justify-content:flex-end}:host .ngs-tab-group-pagination-control{padding:0 12px;cursor:pointer;display:flex;flex:0 0 auto;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--ngs-tab-label-color);transition:opacity .2s cubic-bezier(.35,0,.25,1)}:host .ngs-tab-group-pagination-control.ngs-tab-group-pagination-control-disabled{opacity:.38;cursor:default;pointer-events:none}:host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:var(--ngs-tab-group-pagination-control-before-border-right)}:host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:var(--ngs-tab-group-pagination-control-after-border-left)}:host .ngs-tab-group-pagination-control-icon{width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;display:inline-block}:host .ngs-tab-group-pagination-control-before .ngs-tab-group-pagination-control-icon{transform:rotate(-135deg);margin-left:4px}:host .ngs-tab-group-pagination-control-after .ngs-tab-group-pagination-control-icon{transform:rotate(45deg);margin-right:4px}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
1144
+ }]
1145
+ }],
1146
+ ctorParameters: () => [],
1147
+ propDecorators: {
1148
+ _links: [{
1149
+ type: i0.ContentChildren,
1150
+ args: [i0.forwardRef(() => TabLink), { isSignal: true }]
1151
+ }],
1152
+ _tabListContainer: [{
1153
+ type: i0.ViewChild,
1154
+ args: ["tabListContainer", { isSignal: true }]
1155
+ }],
1156
+ _tabList: [{
1157
+ type: i0.ViewChild,
1158
+ args: ["tabList", { isSignal: true }]
1159
+ }],
1160
+ tabPanel: [{
1161
+ type: i0.Input,
1162
+ args: [{
1163
+ isSignal: true,
1164
+ alias: "tabPanel",
1165
+ required: false
1166
+ }]
1167
+ }],
1168
+ disableRipple: [{
1169
+ type: i0.Input,
1170
+ args: [{
1171
+ isSignal: true,
1172
+ alias: "disableRipple",
1173
+ required: false
1174
+ }]
1175
+ }],
1176
+ activator: [{
1177
+ type: i0.Input,
1178
+ args: [{
1179
+ isSignal: true,
1180
+ alias: "activator",
1181
+ required: false
1182
+ }]
1183
+ }]
1184
+ }
1185
+ });
590
1186
  let nextUniqueId = 0;
591
- class TabNavPanel {
592
- id = `ngs-tab-nav-panel-${nextUniqueId++}`;
593
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabNavPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
594
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: TabNavPanel, isStandalone: true, selector: "ngs-tab-nav-panel", host: { attributes: { "role": "tabpanel" }, properties: { "attr.id": "id" }, classAttribute: "ngs-tab-nav-panel" }, exportAs: ["ngsTabNavPanel"], ngImport: i0, template: '<ng-content/>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.Eager });
595
- }
596
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: TabNavPanel, decorators: [{
597
- type: Component,
598
- args: [{
599
- selector: 'ngs-tab-nav-panel',
600
- exportAs: 'ngsTabNavPanel',
601
- standalone: true,
602
- host: {
603
- 'class': 'ngs-tab-nav-panel',
604
- 'role': 'tabpanel',
605
- '[attr.id]': 'id'
606
- },
607
- changeDetection: ChangeDetectionStrategy.Eager,
608
- template: '<ng-content/>'
609
- }]
610
- }] });
611
-
612
- /**
613
- * Generated bundle index. Do not edit.
614
- */
615
-
1187
+ var TabNavPanel = class TabNavPanel {
1188
+ id = `ngs-tab-nav-panel-${nextUniqueId++}`;
1189
+ static ɵfac = i0.ɵɵngDeclareFactory({
1190
+ minVersion: "12.0.0",
1191
+ version: "22.3.0",
1192
+ ngImport: i0,
1193
+ type: TabNavPanel,
1194
+ deps: [],
1195
+ target: i0.ɵɵFactoryTarget.Component
1196
+ });
1197
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1198
+ minVersion: "14.0.0",
1199
+ version: "22.3.0",
1200
+ type: TabNavPanel,
1201
+ isStandalone: true,
1202
+ selector: "ngs-tab-nav-panel",
1203
+ host: {
1204
+ attributes: { "role": "tabpanel" },
1205
+ properties: { "attr.id": "id" },
1206
+ classAttribute: "ngs-tab-nav-panel"
1207
+ },
1208
+ exportAs: ["ngsTabNavPanel"],
1209
+ ngImport: i0,
1210
+ template: "<ng-content/>",
1211
+ isInline: true,
1212
+ changeDetection: i0.ChangeDetectionStrategy.Eager
1213
+ });
1214
+ };
1215
+ i0.ɵɵngDeclareClassMetadata({
1216
+ minVersion: "12.0.0",
1217
+ version: "22.3.0",
1218
+ ngImport: i0,
1219
+ type: TabNavPanel,
1220
+ decorators: [{
1221
+ type: Component,
1222
+ args: [{
1223
+ selector: "ngs-tab-nav-panel",
1224
+ exportAs: "ngsTabNavPanel",
1225
+ standalone: true,
1226
+ host: {
1227
+ "class": "ngs-tab-nav-panel",
1228
+ "role": "tabpanel",
1229
+ "[attr.id]": "id"
1230
+ },
1231
+ changeDetection: ChangeDetectionStrategy.Eager,
1232
+ template: "<ng-content/>"
1233
+ }]
1234
+ }]
1235
+ });
616
1236
  export { TAB_CONTENT, TAB_LABEL, Tab, TabContent, TabGroup, TabLabel, TabLink, TabNavBar, TabNavPanel };
617
- //# sourceMappingURL=ngstarter-ui-components-tabs.mjs.map
1237
+
1238
+ //# sourceMappingURL=ngstarter-ui-components-tabs.mjs.map