@ngstarter-ui/components 1.0.21

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 (415) hide show
  1. package/README.md +0 -0
  2. package/fesm2022/ngstarter-ui-components-action-required.mjs +42 -0
  3. package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -0
  4. package/fesm2022/ngstarter-ui-components-alert.mjs +132 -0
  5. package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -0
  6. package/fesm2022/ngstarter-ui-components-announcement.mjs +86 -0
  7. package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -0
  8. package/fesm2022/ngstarter-ui-components-autocomplete.mjs +360 -0
  9. package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -0
  10. package/fesm2022/ngstarter-ui-components-avatar.mjs +235 -0
  11. package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -0
  12. package/fesm2022/ngstarter-ui-components-badge.mjs +97 -0
  13. package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -0
  14. package/fesm2022/ngstarter-ui-components-block-loader.mjs +48 -0
  15. package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -0
  16. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +327 -0
  17. package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -0
  18. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +209 -0
  19. package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -0
  20. package/fesm2022/ngstarter-ui-components-button-toggle.mjs +175 -0
  21. package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -0
  22. package/fesm2022/ngstarter-ui-components-button.mjs +70 -0
  23. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -0
  24. package/fesm2022/ngstarter-ui-components-card-overlay.mjs +49 -0
  25. package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -0
  26. package/fesm2022/ngstarter-ui-components-card.mjs +199 -0
  27. package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -0
  28. package/fesm2022/ngstarter-ui-components-carousel.mjs +614 -0
  29. package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -0
  30. package/fesm2022/ngstarter-ui-components-checkbox.mjs +300 -0
  31. package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -0
  32. package/fesm2022/ngstarter-ui-components-chips.mjs +589 -0
  33. package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -0
  34. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +347 -0
  35. package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -0
  36. package/fesm2022/ngstarter-ui-components-color-picker.mjs +713 -0
  37. package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -0
  38. package/fesm2022/ngstarter-ui-components-color-scheme.mjs +106 -0
  39. package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -0
  40. package/fesm2022/ngstarter-ui-components-color-switcher.mjs +72 -0
  41. package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -0
  42. package/fesm2022/ngstarter-ui-components-command-bar.mjs +57 -0
  43. package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -0
  44. package/fesm2022/ngstarter-ui-components-comment-editor.mjs +1024 -0
  45. package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -0
  46. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +177 -0
  47. package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -0
  48. package/fesm2022/ngstarter-ui-components-confirm.mjs +85 -0
  49. package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -0
  50. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs +173 -0
  51. package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-Bk6QTli8.mjs.map +1 -0
  52. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs +124 -0
  53. package/fesm2022/ngstarter-ui-components-content-editor-content-editor-content-editable.directive-Bvfa2dqh.mjs.map +1 -0
  54. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +99 -0
  55. package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +1 -0
  56. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs +33 -0
  57. package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-C_iRTCPH.mjs.map +1 -0
  58. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs +354 -0
  59. package/fesm2022/ngstarter-ui-components-content-editor-embed-block-BbkC_t86.mjs.map +1 -0
  60. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs +114 -0
  61. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-D9_CxTY1.mjs.map +1 -0
  62. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs +146 -0
  63. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-B4zJyUg1.mjs.map +1 -0
  64. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs +215 -0
  65. package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-Cv6wx5Xe.mjs.map +1 -0
  66. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs +2548 -0
  67. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-1Zi2nAX5.mjs.map +1 -0
  68. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs +110 -0
  69. package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-C9bQvDYU.mjs.map +1 -0
  70. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs +141 -0
  71. package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BbHds2r2.mjs.map +1 -0
  72. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs +1604 -0
  73. package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-DlDh7Fnn.mjs.map +1 -0
  74. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs +175 -0
  75. package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-m4DTihP2.mjs.map +1 -0
  76. package/fesm2022/ngstarter-ui-components-content-editor.mjs +2 -0
  77. package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -0
  78. package/fesm2022/ngstarter-ui-components-content-fade.mjs +35 -0
  79. package/fesm2022/ngstarter-ui-components-content-fade.mjs.map +1 -0
  80. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +107 -0
  81. package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -0
  82. package/fesm2022/ngstarter-ui-components-core.mjs +1330 -0
  83. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -0
  84. package/fesm2022/ngstarter-ui-components-country-select.mjs +489 -0
  85. package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -0
  86. package/fesm2022/ngstarter-ui-components-crop.mjs +183 -0
  87. package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -0
  88. package/fesm2022/ngstarter-ui-components-currency-select.mjs +397 -0
  89. package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -0
  90. package/fesm2022/ngstarter-ui-components-data-view.mjs +1494 -0
  91. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -0
  92. package/fesm2022/ngstarter-ui-components-date-format-select.mjs +154 -0
  93. package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -0
  94. package/fesm2022/ngstarter-ui-components-datepicker.mjs +1159 -0
  95. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -0
  96. package/fesm2022/ngstarter-ui-components-dialog.mjs +357 -0
  97. package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -0
  98. package/fesm2022/ngstarter-ui-components-divider.mjs +42 -0
  99. package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -0
  100. package/fesm2022/ngstarter-ui-components-drawer.mjs +132 -0
  101. package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -0
  102. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +245 -0
  103. package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -0
  104. package/fesm2022/ngstarter-ui-components-empty-state.mjs +75 -0
  105. package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -0
  106. package/fesm2022/ngstarter-ui-components-expand.mjs +56 -0
  107. package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -0
  108. package/fesm2022/ngstarter-ui-components-expansion.mjs +193 -0
  109. package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -0
  110. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +333 -0
  111. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -0
  112. package/fesm2022/ngstarter-ui-components-form-field.mjs +230 -0
  113. package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -0
  114. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs +124 -0
  115. package/fesm2022/ngstarter-ui-components-form-renderer-autocomplete-many-field-BKQVlZHV.mjs.map +1 -0
  116. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs +22 -0
  117. package/fesm2022/ngstarter-ui-components-form-renderer-checkbox-field-CoyKdvhV.mjs.map +1 -0
  118. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs +44 -0
  119. package/fesm2022/ngstarter-ui-components-form-renderer-datepicker-field-Bzc0TPO9.mjs.map +1 -0
  120. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs +17 -0
  121. package/fesm2022/ngstarter-ui-components-form-renderer-divider-content-CwGzDCZv.mjs.map +1 -0
  122. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs +17 -0
  123. package/fesm2022/ngstarter-ui-components-form-renderer-image-content-ICTwkZPa.mjs.map +1 -0
  124. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs +35 -0
  125. package/fesm2022/ngstarter-ui-components-form-renderer-input-field-RYxi-Mpw.mjs.map +1 -0
  126. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs +38 -0
  127. package/fesm2022/ngstarter-ui-components-form-renderer-radio-group-field-Cv3AGpoq.mjs.map +1 -0
  128. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs +39 -0
  129. package/fesm2022/ngstarter-ui-components-form-renderer-select-field-eLcwI-BY.mjs.map +1 -0
  130. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs +24 -0
  131. package/fesm2022/ngstarter-ui-components-form-renderer-text-content-BjzH_M3-.mjs.map +1 -0
  132. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs +37 -0
  133. package/fesm2022/ngstarter-ui-components-form-renderer-textarea-field-4zH7FTQ1.mjs.map +1 -0
  134. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs +35 -0
  135. package/fesm2022/ngstarter-ui-components-form-renderer-timezone-field-BpH65Hd-.mjs.map +1 -0
  136. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs +22 -0
  137. package/fesm2022/ngstarter-ui-components-form-renderer-toggle-field-iyqUrWxt.mjs.map +1 -0
  138. package/fesm2022/ngstarter-ui-components-form-renderer.mjs +317 -0
  139. package/fesm2022/ngstarter-ui-components-form-renderer.mjs.map +1 -0
  140. package/fesm2022/ngstarter-ui-components-gauge.mjs +44 -0
  141. package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -0
  142. package/fesm2022/ngstarter-ui-components-grid.mjs +78 -0
  143. package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -0
  144. package/fesm2022/ngstarter-ui-components-guided-tour.mjs +736 -0
  145. package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -0
  146. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +192 -0
  147. package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -0
  148. package/fesm2022/ngstarter-ui-components-icon.mjs +61 -0
  149. package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -0
  150. package/fesm2022/ngstarter-ui-components-image-designer.mjs +4016 -0
  151. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -0
  152. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +20 -0
  153. package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -0
  154. package/fesm2022/ngstarter-ui-components-image-resizer.mjs +151 -0
  155. package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -0
  156. package/fesm2022/ngstarter-ui-components-image-viewer.mjs +349 -0
  157. package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -0
  158. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +162 -0
  159. package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -0
  160. package/fesm2022/ngstarter-ui-components-incidents.mjs +257 -0
  161. package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -0
  162. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +179 -0
  163. package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -0
  164. package/fesm2022/ngstarter-ui-components-input-mask.mjs +180 -0
  165. package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -0
  166. package/fesm2022/ngstarter-ui-components-input-validator.mjs +24 -0
  167. package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -0
  168. package/fesm2022/ngstarter-ui-components-input.mjs +152 -0
  169. package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -0
  170. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +156 -0
  171. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -0
  172. package/fesm2022/ngstarter-ui-components-kbd.mjs +31 -0
  173. package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -0
  174. package/fesm2022/ngstarter-ui-components-layout.mjs +199 -0
  175. package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -0
  176. package/fesm2022/ngstarter-ui-components-list.mjs +279 -0
  177. package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -0
  178. package/fesm2022/ngstarter-ui-components-logo.mjs +51 -0
  179. package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -0
  180. package/fesm2022/ngstarter-ui-components-marquee.mjs +76 -0
  181. package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -0
  182. package/fesm2022/ngstarter-ui-components-menu.mjs +851 -0
  183. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -0
  184. package/fesm2022/ngstarter-ui-components-micro-chart.mjs +928 -0
  185. package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -0
  186. package/fesm2022/ngstarter-ui-components-navigation.mjs +439 -0
  187. package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -0
  188. package/fesm2022/ngstarter-ui-components-notifications.mjs +181 -0
  189. package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -0
  190. package/fesm2022/ngstarter-ui-components-number-input.mjs +293 -0
  191. package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -0
  192. package/fesm2022/ngstarter-ui-components-option.mjs +157 -0
  193. package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -0
  194. package/fesm2022/ngstarter-ui-components-overlay.mjs +112 -0
  195. package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -0
  196. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +77 -0
  197. package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -0
  198. package/fesm2022/ngstarter-ui-components-paginator.mjs +297 -0
  199. package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -0
  200. package/fesm2022/ngstarter-ui-components-panel.mjs +123 -0
  201. package/fesm2022/ngstarter-ui-components-panel.mjs.map +1 -0
  202. package/fesm2022/ngstarter-ui-components-password-strength.mjs +335 -0
  203. package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -0
  204. package/fesm2022/ngstarter-ui-components-phone-input.mjs +651 -0
  205. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -0
  206. package/fesm2022/ngstarter-ui-components-pin-input.mjs +193 -0
  207. package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -0
  208. package/fesm2022/ngstarter-ui-components-popover.mjs +302 -0
  209. package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -0
  210. package/fesm2022/ngstarter-ui-components-progress-bar.mjs +68 -0
  211. package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -0
  212. package/fesm2022/ngstarter-ui-components-radio-card.mjs +102 -0
  213. package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -0
  214. package/fesm2022/ngstarter-ui-components-radio.mjs +147 -0
  215. package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -0
  216. package/fesm2022/ngstarter-ui-components-rail-nav.mjs +87 -0
  217. package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -0
  218. package/fesm2022/ngstarter-ui-components-resizable-container.mjs +74 -0
  219. package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -0
  220. package/fesm2022/ngstarter-ui-components-screen-loader.mjs +95 -0
  221. package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -0
  222. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +219 -0
  223. package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -0
  224. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +459 -0
  225. package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -0
  226. package/fesm2022/ngstarter-ui-components-segmented.mjs +218 -0
  227. package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -0
  228. package/fesm2022/ngstarter-ui-components-select.mjs +496 -0
  229. package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -0
  230. package/fesm2022/ngstarter-ui-components-side-panel.mjs +107 -0
  231. package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -0
  232. package/fesm2022/ngstarter-ui-components-sidebar.mjs +435 -0
  233. package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -0
  234. package/fesm2022/ngstarter-ui-components-sidenav.mjs +354 -0
  235. package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -0
  236. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +452 -0
  237. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -0
  238. package/fesm2022/ngstarter-ui-components-skeleton.mjs +22 -0
  239. package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -0
  240. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +93 -0
  241. package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -0
  242. package/fesm2022/ngstarter-ui-components-slider.mjs +481 -0
  243. package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -0
  244. package/fesm2022/ngstarter-ui-components-snack-bar.mjs +354 -0
  245. package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -0
  246. package/fesm2022/ngstarter-ui-components-sort.mjs +140 -0
  247. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -0
  248. package/fesm2022/ngstarter-ui-components-spinner.mjs +75 -0
  249. package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -0
  250. package/fesm2022/ngstarter-ui-components-splash-screen.mjs +93 -0
  251. package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -0
  252. package/fesm2022/ngstarter-ui-components-split.mjs +948 -0
  253. package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -0
  254. package/fesm2022/ngstarter-ui-components-stepper.mjs +103 -0
  255. package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -0
  256. package/fesm2022/ngstarter-ui-components-suggestions.mjs +72 -0
  257. package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -0
  258. package/fesm2022/ngstarter-ui-components-tab-panel.mjs +265 -0
  259. package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -0
  260. package/fesm2022/ngstarter-ui-components-table.mjs +648 -0
  261. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -0
  262. package/fesm2022/ngstarter-ui-components-tabs.mjs +591 -0
  263. package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -0
  264. package/fesm2022/ngstarter-ui-components-text-editor.mjs +1012 -0
  265. package/fesm2022/ngstarter-ui-components-text-editor.mjs.map +1 -0
  266. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +212 -0
  267. package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -0
  268. package/fesm2022/ngstarter-ui-components-tiles.mjs +634 -0
  269. package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -0
  270. package/fesm2022/ngstarter-ui-components-timeline.mjs +122 -0
  271. package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -0
  272. package/fesm2022/ngstarter-ui-components-timepicker.mjs +486 -0
  273. package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -0
  274. package/fesm2022/ngstarter-ui-components-timezone-select.mjs +371 -0
  275. package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -0
  276. package/fesm2022/ngstarter-ui-components-toolbar.mjs +299 -0
  277. package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -0
  278. package/fesm2022/ngstarter-ui-components-tooltip.mjs +506 -0
  279. package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -0
  280. package/fesm2022/ngstarter-ui-components-tree.mjs +200 -0
  281. package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -0
  282. package/fesm2022/ngstarter-ui-components-upload.mjs +330 -0
  283. package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -0
  284. package/fesm2022/ngstarter-ui-components-video-player.mjs +516 -0
  285. package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -0
  286. package/fesm2022/ngstarter-ui-components-video-viewer.mjs +218 -0
  287. package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -0
  288. package/fesm2022/ngstarter-ui-components-visual-builder.mjs +18 -0
  289. package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -0
  290. package/fesm2022/ngstarter-ui-components.mjs +6 -0
  291. package/fesm2022/ngstarter-ui-components.mjs.map +1 -0
  292. package/package.json +535 -0
  293. package/styles/_common.scss +456 -0
  294. package/styles/_global.scss +91 -0
  295. package/styles/themes/default.scss +2 -0
  296. package/types/ngstarter-ui-components-action-required.d.ts +14 -0
  297. package/types/ngstarter-ui-components-alert.d.ts +50 -0
  298. package/types/ngstarter-ui-components-announcement.d.ts +59 -0
  299. package/types/ngstarter-ui-components-autocomplete.d.ts +83 -0
  300. package/types/ngstarter-ui-components-avatar.d.ts +69 -0
  301. package/types/ngstarter-ui-components-badge.d.ts +38 -0
  302. package/types/ngstarter-ui-components-block-loader.d.ts +21 -0
  303. package/types/ngstarter-ui-components-bottom-sheet.d.ts +149 -0
  304. package/types/ngstarter-ui-components-breadcrumbs.d.ts +104 -0
  305. package/types/ngstarter-ui-components-button-toggle.d.ts +54 -0
  306. package/types/ngstarter-ui-components-button.d.ts +27 -0
  307. package/types/ngstarter-ui-components-card-overlay.d.ts +20 -0
  308. package/types/ngstarter-ui-components-card.d.ts +85 -0
  309. package/types/ngstarter-ui-components-carousel.d.ts +76 -0
  310. package/types/ngstarter-ui-components-checkbox.d.ts +94 -0
  311. package/types/ngstarter-ui-components-chips.d.ts +189 -0
  312. package/types/ngstarter-ui-components-code-highlighter.d.ts +28 -0
  313. package/types/ngstarter-ui-components-color-picker.d.ts +92 -0
  314. package/types/ngstarter-ui-components-color-scheme.d.ts +44 -0
  315. package/types/ngstarter-ui-components-color-switcher.d.ts +26 -0
  316. package/types/ngstarter-ui-components-command-bar.d.ts +28 -0
  317. package/types/ngstarter-ui-components-comment-editor.d.ts +194 -0
  318. package/types/ngstarter-ui-components-comparison-slider.d.ts +42 -0
  319. package/types/ngstarter-ui-components-confirm.d.ts +34 -0
  320. package/types/ngstarter-ui-components-content-editor.d.ts +321 -0
  321. package/types/ngstarter-ui-components-content-fade.d.ts +17 -0
  322. package/types/ngstarter-ui-components-cookie-popup.d.ts +41 -0
  323. package/types/ngstarter-ui-components-core.d.ts +421 -0
  324. package/types/ngstarter-ui-components-country-select.d.ts +78 -0
  325. package/types/ngstarter-ui-components-crop.d.ts +59 -0
  326. package/types/ngstarter-ui-components-currency-select.d.ts +82 -0
  327. package/types/ngstarter-ui-components-data-view.d.ts +391 -0
  328. package/types/ngstarter-ui-components-date-format-select.d.ts +59 -0
  329. package/types/ngstarter-ui-components-datepicker.d.ts +384 -0
  330. package/types/ngstarter-ui-components-dialog.d.ts +115 -0
  331. package/types/ngstarter-ui-components-divider.d.ts +18 -0
  332. package/types/ngstarter-ui-components-drawer.d.ts +32 -0
  333. package/types/ngstarter-ui-components-emoji-picker.d.ts +49 -0
  334. package/types/ngstarter-ui-components-empty-state.d.ts +33 -0
  335. package/types/ngstarter-ui-components-expand.d.ts +26 -0
  336. package/types/ngstarter-ui-components-expansion.d.ts +68 -0
  337. package/types/ngstarter-ui-components-filter-builder.d.ts +106 -0
  338. package/types/ngstarter-ui-components-form-field.d.ts +107 -0
  339. package/types/ngstarter-ui-components-form-renderer.d.ts +121 -0
  340. package/types/ngstarter-ui-components-gauge.d.ts +21 -0
  341. package/types/ngstarter-ui-components-grid.d.ts +45 -0
  342. package/types/ngstarter-ui-components-guided-tour.d.ts +227 -0
  343. package/types/ngstarter-ui-components-headless-stepper.d.ts +65 -0
  344. package/types/ngstarter-ui-components-icon.d.ts +17 -0
  345. package/types/ngstarter-ui-components-image-designer.d.ts +357 -0
  346. package/types/ngstarter-ui-components-image-placeholder.d.ts +8 -0
  347. package/types/ngstarter-ui-components-image-resizer.d.ts +35 -0
  348. package/types/ngstarter-ui-components-image-viewer.d.ts +63 -0
  349. package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +34 -0
  350. package/types/ngstarter-ui-components-incidents.d.ts +119 -0
  351. package/types/ngstarter-ui-components-inline-text-edit.d.ts +39 -0
  352. package/types/ngstarter-ui-components-input-mask.d.ts +36 -0
  353. package/types/ngstarter-ui-components-input-validator.d.ts +5 -0
  354. package/types/ngstarter-ui-components-input.d.ts +53 -0
  355. package/types/ngstarter-ui-components-kanban-board.d.ts +68 -0
  356. package/types/ngstarter-ui-components-kbd.d.ts +13 -0
  357. package/types/ngstarter-ui-components-layout.d.ts +83 -0
  358. package/types/ngstarter-ui-components-list.d.ts +98 -0
  359. package/types/ngstarter-ui-components-logo.d.ts +26 -0
  360. package/types/ngstarter-ui-components-marquee.d.ts +27 -0
  361. package/types/ngstarter-ui-components-menu.d.ts +199 -0
  362. package/types/ngstarter-ui-components-micro-chart.d.ts +195 -0
  363. package/types/ngstarter-ui-components-navigation.d.ts +136 -0
  364. package/types/ngstarter-ui-components-notifications.d.ts +84 -0
  365. package/types/ngstarter-ui-components-number-input.d.ts +99 -0
  366. package/types/ngstarter-ui-components-option.d.ts +61 -0
  367. package/types/ngstarter-ui-components-overlay.d.ts +12 -0
  368. package/types/ngstarter-ui-components-page-loading-bar.d.ts +20 -0
  369. package/types/ngstarter-ui-components-paginator.d.ts +145 -0
  370. package/types/ngstarter-ui-components-panel.d.ts +59 -0
  371. package/types/ngstarter-ui-components-password-strength.d.ts +109 -0
  372. package/types/ngstarter-ui-components-phone-input.d.ts +103 -0
  373. package/types/ngstarter-ui-components-pin-input.d.ts +48 -0
  374. package/types/ngstarter-ui-components-popover.d.ts +94 -0
  375. package/types/ngstarter-ui-components-progress-bar.d.ts +30 -0
  376. package/types/ngstarter-ui-components-radio-card.d.ts +37 -0
  377. package/types/ngstarter-ui-components-radio.d.ts +45 -0
  378. package/types/ngstarter-ui-components-rail-nav.d.ts +36 -0
  379. package/types/ngstarter-ui-components-resizable-container.d.ts +25 -0
  380. package/types/ngstarter-ui-components-screen-loader.d.ts +34 -0
  381. package/types/ngstarter-ui-components-scroll-spy.d.ts +63 -0
  382. package/types/ngstarter-ui-components-scrollbar-area.d.ts +67 -0
  383. package/types/ngstarter-ui-components-segmented.d.ts +65 -0
  384. package/types/ngstarter-ui-components-select.d.ts +126 -0
  385. package/types/ngstarter-ui-components-side-panel.d.ts +42 -0
  386. package/types/ngstarter-ui-components-sidebar.d.ts +143 -0
  387. package/types/ngstarter-ui-components-sidenav.d.ts +86 -0
  388. package/types/ngstarter-ui-components-signature-pad.d.ts +49 -0
  389. package/types/ngstarter-ui-components-skeleton.d.ts +9 -0
  390. package/types/ngstarter-ui-components-slide-toggle.d.ts +41 -0
  391. package/types/ngstarter-ui-components-slider.d.ts +85 -0
  392. package/types/ngstarter-ui-components-snack-bar.d.ts +142 -0
  393. package/types/ngstarter-ui-components-sort.d.ts +66 -0
  394. package/types/ngstarter-ui-components-spinner.d.ts +28 -0
  395. package/types/ngstarter-ui-components-splash-screen.d.ts +31 -0
  396. package/types/ngstarter-ui-components-split.d.ts +210 -0
  397. package/types/ngstarter-ui-components-stepper.d.ts +44 -0
  398. package/types/ngstarter-ui-components-suggestions.d.ts +32 -0
  399. package/types/ngstarter-ui-components-tab-panel.d.ts +96 -0
  400. package/types/ngstarter-ui-components-table.d.ts +277 -0
  401. package/types/ngstarter-ui-components-tabs.d.ts +145 -0
  402. package/types/ngstarter-ui-components-text-editor.d.ts +191 -0
  403. package/types/ngstarter-ui-components-thumbnail-maker.d.ts +35 -0
  404. package/types/ngstarter-ui-components-tiles.d.ts +109 -0
  405. package/types/ngstarter-ui-components-timeline.d.ts +57 -0
  406. package/types/ngstarter-ui-components-timepicker.d.ts +115 -0
  407. package/types/ngstarter-ui-components-timezone-select.d.ts +75 -0
  408. package/types/ngstarter-ui-components-toolbar.d.ts +74 -0
  409. package/types/ngstarter-ui-components-tooltip.d.ts +52 -0
  410. package/types/ngstarter-ui-components-tree.d.ts +60 -0
  411. package/types/ngstarter-ui-components-upload.d.ts +134 -0
  412. package/types/ngstarter-ui-components-video-player.d.ts +67 -0
  413. package/types/ngstarter-ui-components-video-viewer.d.ts +98 -0
  414. package/types/ngstarter-ui-components-visual-builder.d.ts +8 -0
  415. package/types/ngstarter-ui-components.d.ts +2 -0
@@ -0,0 +1,591 @@
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: "21.2.4", ngImport: i0, type: TabLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", 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: "21.2.4", 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: "21.2.4", ngImport: i0, type: TabContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
32
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", 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: "21.2.4", 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, ...(ngDevMode ? [{ debugName: "templateLabel" }] : /* istanbul ignore next */ []));
45
+ explicitContent = contentChild(TAB_CONTENT, ...(ngDevMode ? [{ debugName: "explicitContent" }] : /* istanbul ignore next */ []));
46
+ implicitContent = viewChild(TemplateRef, ...(ngDevMode ? [{ debugName: "implicitContent" }] : /* istanbul ignore next */ []));
47
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
48
+ ariaLabel = input('', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
49
+ ariaLabelledby = input('', { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
50
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
+ _contentPortal = null;
52
+ _prepareContent(viewContainerRef) {
53
+ if (!this._contentPortal) {
54
+ const template = this.explicitContent()?.template || this.implicitContent();
55
+ if (template) {
56
+ this._contentPortal = new TemplatePortal(template, viewContainerRef);
57
+ }
58
+ }
59
+ return this._contentPortal;
60
+ }
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: Tab, deps: [], target: i0.ɵɵFactoryTarget.Component });
62
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", 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 });
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: Tab, decorators: [{
65
+ type: Component,
66
+ args: [{ selector: 'ngs-tab', exportAs: 'ngsTab', changeDetection: ChangeDetectionStrategy.OnPush, host: {
67
+ 'class': 'ngs-tab',
68
+ }, template: "<ng-template>\n <ng-content/>\n</ng-template>\n" }]
69
+ }], 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 }] }] } });
70
+
71
+ class TabGroup {
72
+ _viewContainerRef = inject(ViewContainerRef);
73
+ _cdr = inject(ChangeDetectorRef);
74
+ _platformId = inject(PLATFORM_ID);
75
+ _tabsSubscription = Subscription.EMPTY;
76
+ _resizeSubscription = Subscription.EMPTY;
77
+ _resizeObserver = null;
78
+ _tabs = contentChildren(Tab, ...(ngDevMode ? [{ debugName: "_tabs" }] : /* istanbul ignore next */ []));
79
+ _tabLabels = viewChildren('tabLabel', ...(ngDevMode ? [{ debugName: "_tabLabels" }] : /* istanbul ignore next */ []));
80
+ _tabListContainer = viewChild('tabListContainer', ...(ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []));
81
+ _tabList = viewChild('tabList', ...(ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []));
82
+ _showPaginationControls = signal(false, ...(ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []));
83
+ _disableScrollBefore = signal(true, ...(ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []));
84
+ _disableScrollAfter = signal(true, ...(ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []));
85
+ selectedIndex = input(0, { ...(ngDevMode ? { debugName: "selectedIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
86
+ headerPosition = input('above', ...(ngDevMode ? [{ debugName: "headerPosition" }] : /* istanbul ignore next */ []));
87
+ preserveContent = input(false, { ...(ngDevMode ? { debugName: "preserveContent" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
88
+ stretchTabs = input(true, { ...(ngDevMode ? { debugName: "stretchTabs" } : /* istanbul ignore next */ {}), alias: 'ngs-stretch-tabs',
89
+ transform: booleanAttribute });
90
+ alignTabs = input('start', { ...(ngDevMode ? { debugName: "alignTabs" } : /* istanbul ignore next */ {}), alias: 'ngs-align-tabs' });
91
+ disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
92
+ animationDuration = input('500ms', { ...(ngDevMode ? { debugName: "animationDuration" } : /* istanbul ignore next */ {}), transform: (value) => {
93
+ return /^\d+$/.test(value + '') ? value + 'ms' : value + '';
94
+ } });
95
+ enterAnimation = input('', { ...(ngDevMode ? { debugName: "enterAnimation" } : /* istanbul ignore next */ {}), alias: 'animate.enter' });
96
+ leaveAnimation = input('', { ...(ngDevMode ? { debugName: "leaveAnimation" } : /* istanbul ignore next */ {}), alias: 'animate.leave' });
97
+ selectedIndexChange = output();
98
+ selectedTabChange = output();
99
+ focusChange = output();
100
+ _isActive = {};
101
+ _selectedIndex = 0;
102
+ _prevIndex = 0;
103
+ _isInitialized = false;
104
+ constructor() {
105
+ this._selectedIndex = this.selectedIndex();
106
+ this._prevIndex = this._selectedIndex;
107
+ this._isActive[this._selectedIndex] = true;
108
+ effect((onCleanup) => {
109
+ const selectedIndex = this.selectedIndex();
110
+ if (this._selectedIndex !== selectedIndex) {
111
+ this._prevIndex = this._selectedIndex;
112
+ this._isActive[this._prevIndex] = true;
113
+ this._selectedIndex = selectedIndex;
114
+ this._isActive[this._selectedIndex] = true;
115
+ this._cdr.markForCheck();
116
+ const prevIndex = this._prevIndex;
117
+ const timeout = setTimeout(() => {
118
+ delete this._isActive[prevIndex];
119
+ this._cdr.markForCheck();
120
+ }, parseInt(this.animationDuration()));
121
+ onCleanup(() => clearTimeout(timeout));
122
+ }
123
+ setTimeout(() => {
124
+ if (this._isInitialized) {
125
+ this._scrollToTab(this._selectedIndex);
126
+ }
127
+ this._updatePagination();
128
+ });
129
+ });
130
+ this._tabsSubscription = toObservable(this._tabs).subscribe(() => {
131
+ this._clampIndex();
132
+ this._cdr.markForCheck();
133
+ setTimeout(() => {
134
+ this._updatePagination();
135
+ });
136
+ });
137
+ effect(() => {
138
+ this._tabs();
139
+ setTimeout(() => {
140
+ this._updatePagination();
141
+ });
142
+ });
143
+ }
144
+ ngAfterViewInit() {
145
+ this._isInitialized = true;
146
+ if (isPlatformBrowser(this._platformId)) {
147
+ this._resizeSubscription = fromEvent(window, 'resize')
148
+ .pipe(debounceTime(100))
149
+ .subscribe(() => {
150
+ this._updatePagination();
151
+ });
152
+ this._resizeObserver = new ResizeObserver(() => {
153
+ this._updatePagination();
154
+ });
155
+ this._resizeObserver.observe(this._tabListContainer()?.nativeElement);
156
+ this._resizeObserver.observe(this._tabList()?.nativeElement);
157
+ }
158
+ setTimeout(() => {
159
+ this._updatePagination();
160
+ });
161
+ }
162
+ ngOnDestroy() {
163
+ this._tabsSubscription.unsubscribe();
164
+ this._resizeSubscription.unsubscribe();
165
+ this._resizeObserver?.disconnect();
166
+ }
167
+ _clampIndex() {
168
+ if (this._tabs().length === 0) {
169
+ this._selectedIndex = 0;
170
+ return;
171
+ }
172
+ this._selectedIndex = Math.max(0, Math.min(this._selectedIndex, this._tabs().length - 1));
173
+ }
174
+ _updatePagination() {
175
+ if (!isPlatformBrowser(this._platformId)) {
176
+ return;
177
+ }
178
+ const containerEl = this._tabListContainer()?.nativeElement;
179
+ const listEl = this._tabList()?.nativeElement;
180
+ if (containerEl && listEl) {
181
+ const showPaginationControls = listEl.scrollWidth > containerEl.clientWidth;
182
+ if (showPaginationControls !== this._showPaginationControls()) {
183
+ this._showPaginationControls.set(showPaginationControls);
184
+ this._cdr.detectChanges();
185
+ }
186
+ this._updateScrollButtonsState();
187
+ }
188
+ }
189
+ _updateScrollButtonsState() {
190
+ if (!isPlatformBrowser(this._platformId)) {
191
+ return;
192
+ }
193
+ const containerEl = this._tabListContainer()?.nativeElement;
194
+ if (containerEl) {
195
+ const scrollLeft = containerEl.scrollLeft;
196
+ const disableScrollBefore = scrollLeft <= 0;
197
+ const disableScrollAfter = Math.ceil(scrollLeft + containerEl.clientWidth) >= containerEl.scrollWidth;
198
+ if (disableScrollBefore !== this._disableScrollBefore() || disableScrollAfter !== this._disableScrollAfter()) {
199
+ this._disableScrollBefore.set(disableScrollBefore);
200
+ this._disableScrollAfter.set(disableScrollAfter);
201
+ this._cdr.detectChanges();
202
+ }
203
+ }
204
+ }
205
+ _scrollToTab(index) {
206
+ if (!isPlatformBrowser(this._platformId)) {
207
+ return;
208
+ }
209
+ const labels = this._tabLabels();
210
+ const containerEl = this._tabListContainer()?.nativeElement;
211
+ if (labels[index] && containerEl) {
212
+ const labelEl = labels[index].nativeElement;
213
+ const containerRect = containerEl.getBoundingClientRect();
214
+ const labelRect = labelEl.getBoundingClientRect();
215
+ if (labelRect.left < containerRect.left) {
216
+ containerEl.scrollBy({ left: labelRect.left - containerRect.left, behavior: 'smooth' });
217
+ }
218
+ else if (labelRect.right > containerRect.right) {
219
+ containerEl.scrollBy({ left: labelRect.right - containerRect.right, behavior: 'smooth' });
220
+ }
221
+ }
222
+ }
223
+ _scrollBefore() {
224
+ if (!isPlatformBrowser(this._platformId)) {
225
+ return;
226
+ }
227
+ const containerEl = this._tabListContainer()?.nativeElement;
228
+ if (containerEl) {
229
+ containerEl.scrollBy({ left: -containerEl.clientWidth / 2, behavior: 'smooth' });
230
+ }
231
+ }
232
+ _scrollAfter() {
233
+ if (!isPlatformBrowser(this._platformId)) {
234
+ return;
235
+ }
236
+ const containerEl = this._tabListContainer()?.nativeElement;
237
+ if (containerEl) {
238
+ containerEl.scrollBy({ left: containerEl.clientWidth / 2, behavior: 'smooth' });
239
+ }
240
+ }
241
+ _handleScroll() {
242
+ this._updateScrollButtonsState();
243
+ }
244
+ _onTabHeaderClick(index) {
245
+ const tabs = this._tabs();
246
+ const labels = this._tabLabels();
247
+ if (tabs[index].disabled() || this._selectedIndex === index) {
248
+ return;
249
+ }
250
+ this._prevIndex = this._selectedIndex;
251
+ this._selectedIndex = index;
252
+ this._isActive[this._prevIndex] = true;
253
+ this._isActive[this._selectedIndex] = true;
254
+ this.selectedIndexChange.emit(index);
255
+ this.selectedTabChange.emit({
256
+ index,
257
+ tab: tabs[index]
258
+ });
259
+ this._cdr.markForCheck();
260
+ const prevIndex = this._prevIndex;
261
+ setTimeout(() => {
262
+ delete this._isActive[prevIndex];
263
+ this._cdr.markForCheck();
264
+ }, parseInt(this.animationDuration()));
265
+ if (labels[index]) {
266
+ this._scrollToTab(index);
267
+ }
268
+ }
269
+ _getTabContent(tab) {
270
+ return tab._prepareContent(this._viewContainerRef);
271
+ }
272
+ _getEnterAnimation(index) {
273
+ let direction = '';
274
+ const selectedIndex = this._selectedIndex;
275
+ if (this._prevIndex > selectedIndex) {
276
+ direction = 'left';
277
+ }
278
+ else if (this._prevIndex < selectedIndex) {
279
+ direction = 'right';
280
+ }
281
+ if (this.enterAnimation()) {
282
+ return this.enterAnimation();
283
+ }
284
+ if (direction === '' || index !== selectedIndex) {
285
+ return '';
286
+ }
287
+ // If moving right (prev < current), the new tab should slide in from the RIGHT
288
+ return `ngs-tab-group-enter-${direction}`;
289
+ }
290
+ _getLeaveAnimation(index) {
291
+ let direction = '';
292
+ const selectedIndex = this._selectedIndex;
293
+ if (this._prevIndex > selectedIndex) {
294
+ direction = 'left';
295
+ }
296
+ else if (this._prevIndex < selectedIndex) {
297
+ direction = 'right';
298
+ }
299
+ if (this.leaveAnimation()) {
300
+ return this.leaveAnimation();
301
+ }
302
+ if (direction === '' || index !== this._prevIndex || index === selectedIndex) {
303
+ return '';
304
+ }
305
+ // If moving right (prev < current), the old tab should slide out to the LEFT
306
+ const leaveDirection = direction === 'right' ? 'left' : 'right';
307
+ return `ngs-tab-group-leave-${leaveDirection}`;
308
+ }
309
+ _onKeydown(event) {
310
+ const tabs = this._tabs();
311
+ const labels = this._tabLabels();
312
+ let newIndex = this._selectedIndex;
313
+ if (event.key === 'ArrowRight') {
314
+ newIndex = (this._selectedIndex + 1) % tabs.length;
315
+ }
316
+ else if (event.key === 'ArrowLeft') {
317
+ newIndex = (this._selectedIndex - 1 + tabs.length) % tabs.length;
318
+ }
319
+ else if (event.key === 'Home') {
320
+ newIndex = 0;
321
+ }
322
+ else if (event.key === 'End') {
323
+ newIndex = tabs.length - 1;
324
+ }
325
+ else {
326
+ return;
327
+ }
328
+ event.preventDefault();
329
+ // Skip disabled tabs
330
+ const direction = (newIndex >= this._selectedIndex) ? 1 : -1;
331
+ const startIndex = newIndex;
332
+ while (tabs[newIndex].disabled()) {
333
+ newIndex = (newIndex + direction + tabs.length) % tabs.length;
334
+ if (newIndex === startIndex)
335
+ break; // All tabs disabled or looped back
336
+ }
337
+ if (newIndex !== this._selectedIndex && !tabs[newIndex].disabled()) {
338
+ this._prevIndex = this._selectedIndex;
339
+ this._selectedIndex = newIndex;
340
+ this._isActive[this._prevIndex] = true;
341
+ this._isActive[this._selectedIndex] = true;
342
+ this.selectedIndexChange.emit(newIndex);
343
+ this.selectedTabChange.emit({
344
+ index: newIndex,
345
+ tab: tabs[newIndex]
346
+ });
347
+ this._cdr.markForCheck();
348
+ const prevIndex = this._prevIndex;
349
+ setTimeout(() => {
350
+ delete this._isActive[prevIndex];
351
+ this._cdr.markForCheck();
352
+ }, parseInt(this.animationDuration()));
353
+ if (isPlatformBrowser(this._platformId)) {
354
+ labels[newIndex].nativeElement.focus({ preventScroll: true });
355
+ this._scrollToTab(newIndex);
356
+ }
357
+ }
358
+ }
359
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
360
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", 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(--color-subtle);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--color-primary);--ngs-tab-label-active-border-top: 2px solid var(--color-primary);--ngs-tab-label-disabled-color: var(--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);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(--color-subtle)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none}: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 0 auto}: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(--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;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:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:1px solid var(--color-outline-variant)}:host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}: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{--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.2.2 | 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 });
361
+ }
362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabGroup, decorators: [{
363
+ type: Component,
364
+ args: [{ selector: 'ngs-tab-group', standalone: true, imports: [CommonModule, PortalModule, Ripple], changeDetection: ChangeDetectionStrategy.OnPush, host: {
365
+ 'class': 'ngs-tab-group',
366
+ '[class.ngs-tab-group-inverted]': 'headerPosition() === "below"',
367
+ '[style.--ngs-tab-group-animation-duration]': 'animationDuration()',
368
+ }, 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(--color-subtle);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--color-primary);--ngs-tab-label-active-border-top: 2px solid var(--color-primary);--ngs-tab-label-disabled-color: var(--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);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(--color-subtle)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none}: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 0 auto}: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(--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;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:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:1px solid var(--color-outline-variant)}:host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}: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{--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.2.2 | MIT License | https://tailwindcss.com */\n"] }]
369
+ }], 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"] }] } });
370
+
371
+ class TabLink {
372
+ _el = inject((ElementRef));
373
+ _parent = inject(TabNavBar, { optional: true });
374
+ _routerLink = inject(RouterLink, { optional: true });
375
+ // Whether the link is currently active
376
+ active = computed(() => {
377
+ const parent = this._parent;
378
+ if (!parent?.isActiveFn) {
379
+ return false;
380
+ }
381
+ const fn = parent.isActiveFn();
382
+ return fn(this);
383
+ }, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
384
+ // Whether the link is disabled
385
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
386
+ // Optional external control to disable ripple on this link
387
+ rippleDisabled = input(false, { ...(ngDevMode ? { debugName: "rippleDisabled" } : /* istanbul ignore next */ {}), alias: 'ngsRippleDisabled', transform: booleanAttribute });
388
+ // Combined ripple disabled state: own disabled OR parent bar disableRipple OR explicit input
389
+ get ngsRippleDisabled() {
390
+ return this.disabled() || !!this._parent?.disableRipple() || this.rippleDisabled();
391
+ }
392
+ // Link should control the provided nav panel id when active
393
+ _ariaControls() {
394
+ const panel = this._parent?.tabPanel();
395
+ return this.active() && panel ? panel.id : null;
396
+ }
397
+ // Prevent click when disabled, otherwise let parent handle focus/scroll
398
+ _onClick(event) {
399
+ if (this.disabled()) {
400
+ event.preventDefault();
401
+ event.stopImmediatePropagation();
402
+ }
403
+ }
404
+ focus() { this._el.nativeElement.focus(); }
405
+ get elementRef() { return this._el; }
406
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabLink, deps: [], target: i0.ɵɵFactoryTarget.Component });
407
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", 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(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--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(--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(--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.2.2 | MIT License | https://tailwindcss.com */\n"] });
408
+ }
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabLink, decorators: [{
410
+ type: Component,
411
+ args: [{ selector: 'a[ngs-tab-link]', standalone: true, host: {
412
+ 'role': 'tab',
413
+ 'class': 'ngs-tab-link',
414
+ '[class.ngs-tab-link-active]': 'active()',
415
+ '[class.ngs-tab-link-disabled]': 'disabled()',
416
+ '[attr.aria-selected]': 'active() ? "true" : "false"',
417
+ '[attr.aria-disabled]': 'disabled() ? "true" : "false"',
418
+ '[tabIndex]': 'disabled() ? -1 : 0',
419
+ '[attr.aria-controls]': '_ariaControls()',
420
+ '(click)': '_onClick($event)'
421
+ }, hostDirectives: [
422
+ { directive: Ripple, inputs: ['ngsRippleDisabled: ngsRippleDisabled'] }
423
+ ], template: "<ng-content/>\n", styles: [":host{--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--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(--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(--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.2.2 | MIT License | https://tailwindcss.com */\n"] }]
424
+ }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], rippleDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngsRippleDisabled", required: false }] }] } });
425
+
426
+ class TabNavBar {
427
+ _cdr = inject(ChangeDetectorRef);
428
+ platformId = inject(PLATFORM_ID);
429
+ currentUrl = signal(isPlatformBrowser(inject(PLATFORM_ID)) ? inject(Router).url : '', ...(ngDevMode ? [{ debugName: "currentUrl" }] : /* istanbul ignore next */ []));
430
+ _router = inject(Router);
431
+ _destroyRef = inject(DestroyRef);
432
+ // Projected links
433
+ _links = contentChildren(TabLink, ...(ngDevMode ? [{ debugName: "_links" }] : /* istanbul ignore next */ []));
434
+ // Scrolling container references
435
+ _tabListContainer = viewChild('tabListContainer', ...(ngDevMode ? [{ debugName: "_tabListContainer" }] : /* istanbul ignore next */ []));
436
+ _tabList = viewChild('tabList', ...(ngDevMode ? [{ debugName: "_tabList" }] : /* istanbul ignore next */ []));
437
+ // Pagination state
438
+ _showPaginationControls = signal(false, ...(ngDevMode ? [{ debugName: "_showPaginationControls" }] : /* istanbul ignore next */ []));
439
+ _disableScrollBefore = signal(true, ...(ngDevMode ? [{ debugName: "_disableScrollBefore" }] : /* istanbul ignore next */ []));
440
+ _disableScrollAfter = signal(true, ...(ngDevMode ? [{ debugName: "_disableScrollAfter" }] : /* istanbul ignore next */ []));
441
+ // External bindings
442
+ tabPanel = input(null, ...(ngDevMode ? [{ debugName: "tabPanel" }] : /* istanbul ignore next */ []));
443
+ disableRipple = input(false, ...(ngDevMode ? [{ debugName: "disableRipple" }] : /* istanbul ignore next */ []));
444
+ activator = input(...(ngDevMode ? [undefined, { debugName: "activator" }] : /* istanbul ignore next */ []));
445
+ isActiveFn = computed(() => (link) => {
446
+ const activatorFn = this.activator();
447
+ if (activatorFn) {
448
+ return activatorFn(link);
449
+ }
450
+ return this.defaultIsActive(link);
451
+ }, ...(ngDevMode ? [{ debugName: "isActiveFn" }] : /* istanbul ignore next */ []));
452
+ _resizeObserver = null;
453
+ _resizeSubscription = Subscription.EMPTY;
454
+ defaultIsActive(link) {
455
+ const el = link.elementRef.nativeElement;
456
+ // @ts-ignore
457
+ const routerLink = link['_routerLink'];
458
+ let href = '';
459
+ if (routerLink) {
460
+ href = this._router.serializeUrl(routerLink.urlTree);
461
+ }
462
+ else {
463
+ href = el.getAttribute('href') || '';
464
+ }
465
+ if (!href || href === '#') {
466
+ return false;
467
+ }
468
+ try {
469
+ const linkPath = new URL(href, window.location.origin).pathname;
470
+ const currentPath = new URL(this.currentUrl(), window.location.origin).pathname;
471
+ return currentPath === linkPath;
472
+ }
473
+ catch {
474
+ return false;
475
+ }
476
+ }
477
+ constructor() {
478
+ // Update pagination when links change (signal-based)
479
+ effect(() => {
480
+ // Track the projected links array reactively
481
+ this._links();
482
+ // Trigger re-evaluation of currentUrl to ensure links react to projection
483
+ this.currentUrl.set(this._router.url);
484
+ Promise.resolve().then(() => {
485
+ this._updatePagination();
486
+ this._cdr.markForCheck();
487
+ });
488
+ // Fallback: double check after a small delay to ensure routerLink has updated its urlTree
489
+ setTimeout(() => {
490
+ this.currentUrl.set(this._router.url);
491
+ this._cdr.markForCheck();
492
+ }, 0);
493
+ });
494
+ }
495
+ ngOnInit() {
496
+ if (isPlatformBrowser(this.platformId)) {
497
+ this.currentUrl.set(this._router.url);
498
+ this._router.events.pipe(filter((event) => event instanceof NavigationEnd), takeUntilDestroyed(this._destroyRef)).subscribe(() => {
499
+ this.currentUrl.set(this._router.url);
500
+ });
501
+ }
502
+ }
503
+ ngAfterViewInit() {
504
+ if (isPlatformBrowser(this.platformId)) {
505
+ // Fallback: listen to container resize
506
+ const container = this._tabListContainer()?.nativeElement;
507
+ if (container && 'ResizeObserver' in window) {
508
+ this._resizeObserver = new ResizeObserver(() => this._updatePagination());
509
+ this._resizeObserver.observe(container);
510
+ }
511
+ else if (container) {
512
+ this._resizeSubscription = fromEvent(window, 'resize')
513
+ .pipe(debounceTime(100))
514
+ .subscribe(() => this._updatePagination());
515
+ }
516
+ }
517
+ this._updatePagination();
518
+ }
519
+ ngOnDestroy() {
520
+ this._resizeObserver?.disconnect();
521
+ this._resizeSubscription.unsubscribe();
522
+ }
523
+ _handleScroll() {
524
+ this._updateScrollButtonsState();
525
+ }
526
+ _scrollBefore() {
527
+ const container = this._tabListContainer()?.nativeElement;
528
+ if (!container)
529
+ return;
530
+ container.scrollBy({ left: -container.clientWidth, behavior: 'smooth' });
531
+ }
532
+ _scrollAfter() {
533
+ const container = this._tabListContainer()?.nativeElement;
534
+ if (!container)
535
+ return;
536
+ container.scrollBy({ left: container.clientWidth, behavior: 'smooth' });
537
+ }
538
+ _updatePagination() {
539
+ const container = this._tabListContainer()?.nativeElement;
540
+ const list = this._tabList()?.nativeElement;
541
+ if (!container || !list)
542
+ return;
543
+ const show = list.scrollWidth > container.clientWidth + 1;
544
+ this._showPaginationControls.set(show);
545
+ this._updateScrollButtonsState();
546
+ }
547
+ _updateScrollButtonsState() {
548
+ const container = this._tabListContainer()?.nativeElement;
549
+ if (!container)
550
+ return;
551
+ const maxScroll = container.scrollWidth - container.clientWidth;
552
+ this._disableScrollBefore.set(container.scrollLeft <= 0);
553
+ this._disableScrollAfter.set(container.scrollLeft >= maxScroll);
554
+ }
555
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabNavBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
556
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", 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(--color-subtle);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--color-primary);--ngs-tab-label-active-border-top: 2px solid var(--color-primary);--ngs-tab-label-disabled-color: var(--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);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(--color-subtle)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none}: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 0 auto}: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(--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;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:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:1px solid var(--color-outline-variant)}:host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}: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.2.2 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
557
+ }
558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabNavBar, decorators: [{
559
+ type: Component,
560
+ args: [{ selector: 'ngs-tab-nav-bar, [ngs-tab-nav-bar]', exportAs: 'ngsTabNavBar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
561
+ 'class': 'ngs-tab-nav-bar'
562
+ }, 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(--color-subtle);--ngs-tab-group-header-border-top: none;--ngs-tab-label-padding: 12px 16px;--ngs-tab-label-cursor: pointer;--ngs-tab-label-color: var(--color-on-surface-variant);--ngs-tab-label-active-color: var(--color-primary);--ngs-tab-label-active-border-bottom: 2px solid var(--color-primary);--ngs-tab-label-active-border-top: 2px solid var(--color-primary);--ngs-tab-label-disabled-color: var(--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);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(--color-subtle)}:host .ngs-tab-group-header-container{display:flex;flex-direction:row;position:relative;overflow:hidden;flex:none}: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 0 auto}: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(--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;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:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-before{border-right:1px solid var(--color-outline-variant)}:host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}.ngs-tab-group-inverted :host .ngs-tab-group-pagination-control-after{border-left:1px solid var(--color-outline-variant)}: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.2.2 | MIT License | https://tailwindcss.com */\n"] }]
563
+ }], 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 }] }] } });
564
+
565
+ let nextUniqueId = 0;
566
+ class TabNavPanel {
567
+ id = `ngs-tab-nav-panel-${nextUniqueId++}`;
568
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabNavPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
569
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", 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 });
570
+ }
571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: TabNavPanel, decorators: [{
572
+ type: Component,
573
+ args: [{
574
+ selector: 'ngs-tab-nav-panel',
575
+ exportAs: 'ngsTabNavPanel',
576
+ standalone: true,
577
+ host: {
578
+ 'class': 'ngs-tab-nav-panel',
579
+ 'role': 'tabpanel',
580
+ '[attr.id]': 'id'
581
+ },
582
+ template: '<ng-content/>'
583
+ }]
584
+ }] });
585
+
586
+ /**
587
+ * Generated bundle index. Do not edit.
588
+ */
589
+
590
+ export { TAB_CONTENT, TAB_LABEL, Tab, TabContent, TabGroup, TabLabel, TabLink, TabNavBar, TabNavPanel };
591
+ //# sourceMappingURL=ngstarter-ui-components-tabs.mjs.map