@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,614 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, input, booleanAttribute, output, signal, inject, ElementRef, Renderer2, NgZone, Directive, viewChild, contentChildren, Component } from '@angular/core';
3
+
4
+ const CAROUSEL = new InjectionToken('CAROUSEL');
5
+ const CAROUSEL_CARD = new InjectionToken('CAROUSEL_CARD');
6
+
7
+ function easeOutQuad(t) {
8
+ return t * (2 - t);
9
+ }
10
+ class DraggableCarouselDirective {
11
+ cardSelector = input('.ngs-carousel-card', ...(ngDevMode ? [{ debugName: "cardSelector" }] : /* istanbul ignore next */ []));
12
+ snapToCenter = input(true, ...(ngDevMode ? [{ debugName: "snapToCenter" }] : /* istanbul ignore next */ []));
13
+ snapDebounceTime = input(50, ...(ngDevMode ? [{ debugName: "snapDebounceTime" }] : /* istanbul ignore next */ []));
14
+ snapDuration = input(300, ...(ngDevMode ? [{ debugName: "snapDuration" }] : /* istanbul ignore next */ []));
15
+ resistanceFactor = input(0.5, ...(ngDevMode ? [{ debugName: "resistanceFactor" }] : /* istanbul ignore next */ []));
16
+ velocityThreshold = input(0.5, ...(ngDevMode ? [{ debugName: "velocityThreshold" }] : /* istanbul ignore next */ []));
17
+ visibilityDebounceTime = input(100, ...(ngDevMode ? [{ debugName: "visibilityDebounceTime" }] : /* istanbul ignore next */ []));
18
+ stopPropagation = input(true, { ...(ngDevMode ? { debugName: "stopPropagation" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
+ indexChange = output();
20
+ isDragging = signal(false, ...(ngDevMode ? [{ debugName: "isDragging" }] : /* istanbul ignore next */ []));
21
+ startX = signal(0, ...(ngDevMode ? [{ debugName: "startX" }] : /* istanbul ignore next */ []));
22
+ scrollLeftStart = signal(0, ...(ngDevMode ? [{ debugName: "scrollLeftStart" }] : /* istanbul ignore next */ []));
23
+ currentTranslateX = signal(0, ...(ngDevMode ? [{ debugName: "currentTranslateX" }] : /* istanbul ignore next */ []));
24
+ lastMoveX = signal(null, ...(ngDevMode ? [{ debugName: "lastMoveX" }] : /* istanbul ignore next */ []));
25
+ lastMoveTime = signal(null, ...(ngDevMode ? [{ debugName: "lastMoveTime" }] : /* istanbul ignore next */ []));
26
+ currentVelocityX = signal(0, ...(ngDevMode ? [{ debugName: "currentVelocityX" }] : /* istanbul ignore next */ []));
27
+ lastEmittedIndex = signal(null, ...(ngDevMode ? [{ debugName: "lastEmittedIndex" }] : /* istanbul ignore next */ []));
28
+ snapTimeoutId = null;
29
+ scrollAnimationId = null;
30
+ transformAnimationId = null;
31
+ visibilityDebounceTimeoutId = null;
32
+ el = inject((ElementRef));
33
+ renderer = inject(Renderer2);
34
+ zone = inject(NgZone);
35
+ hostElement;
36
+ cards = [];
37
+ ngOnInit() {
38
+ this.hostElement = this.el.nativeElement;
39
+ this.renderer.setStyle(this.hostElement, 'cursor', 'grab');
40
+ this.hostElement.style.scrollBehavior = 'auto';
41
+ }
42
+ ngAfterContentInit() {
43
+ this.cards = Array.from(this.hostElement.querySelectorAll(this.cardSelector()));
44
+ // Initial state calculation after content is initialized and layout is stable
45
+ setTimeout(() => {
46
+ const actualInitialIndex = this.findCurrentCenterIndex();
47
+ this.emitActiveIndex(actualInitialIndex);
48
+ this.updateCardVisibilityClasses();
49
+ }, 0);
50
+ }
51
+ ngOnDestroy() {
52
+ this.clearSnapTimeout();
53
+ this.cancelScrollAnimation();
54
+ this.cancelTransformAnimation();
55
+ clearTimeout(this.visibilityDebounceTimeoutId);
56
+ }
57
+ onScroll(event) {
58
+ if (this.isDragging() || this.scrollAnimationId !== null || this.transformAnimationId !== null) {
59
+ return;
60
+ }
61
+ if (this.visibilityDebounceTimeoutId !== null) {
62
+ clearTimeout(this.visibilityDebounceTimeoutId);
63
+ }
64
+ this.visibilityDebounceTimeoutId = setTimeout(() => {
65
+ this.updateCardVisibilityClasses();
66
+ const currentIndex = this.findCurrentCenterIndex();
67
+ this.emitActiveIndex(currentIndex);
68
+ this.visibilityDebounceTimeoutId = null;
69
+ }, this.visibilityDebounceTime());
70
+ }
71
+ onMouseDown(event) {
72
+ clearTimeout(this.visibilityDebounceTimeoutId);
73
+ this.clearSnapTimeout();
74
+ this.cancelScrollAnimation();
75
+ this.cancelTransformAnimation();
76
+ if (this.currentTranslateX() !== 0) {
77
+ this.currentTranslateX.set(0);
78
+ this.renderer.setStyle(this.hostElement, 'transform', '');
79
+ }
80
+ this.hostElement.style.scrollBehavior = 'auto';
81
+ if (event.button !== 0)
82
+ return;
83
+ this.isDragging.set(true);
84
+ this.startX.set(event.pageX - this.hostElement.offsetLeft);
85
+ this.scrollLeftStart.set(this.hostElement.scrollLeft);
86
+ this.lastMoveX.set(event.pageX);
87
+ this.lastMoveTime.set(event.timeStamp);
88
+ this.currentVelocityX.set(0);
89
+ this.renderer.setStyle(this.hostElement, 'cursor', 'grabbing');
90
+ event.preventDefault();
91
+ }
92
+ onMouseMove(event) {
93
+ if (!this.isDragging())
94
+ return;
95
+ event.preventDefault();
96
+ const currentX = event.pageX;
97
+ const currentTime = event.timeStamp;
98
+ const lastMoveTime = this.lastMoveTime();
99
+ const lastMoveX = this.lastMoveX();
100
+ if (lastMoveTime !== null && lastMoveX !== null && currentTime > lastMoveTime) {
101
+ const deltaX = currentX - lastMoveX;
102
+ const deltaTime = currentTime - lastMoveTime;
103
+ if (deltaTime > 0) {
104
+ this.currentVelocityX.set(-deltaX / deltaTime);
105
+ }
106
+ }
107
+ this.lastMoveX.set(currentX);
108
+ this.lastMoveTime.set(currentTime);
109
+ const dragDeltaX = currentX - (this.startX() + this.hostElement.offsetLeft);
110
+ const intendedScrollLeft = this.scrollLeftStart() - dragDeltaX;
111
+ const maxScrollLeft = this.hostElement.scrollWidth - this.hostElement.clientWidth;
112
+ let targetScrollLeft = intendedScrollLeft;
113
+ let translateX = 0;
114
+ if (intendedScrollLeft < 0) {
115
+ targetScrollLeft = 0;
116
+ const overpull = -intendedScrollLeft;
117
+ translateX = Math.min(overpull * this.resistanceFactor(), this.hostElement.clientWidth * 0.4);
118
+ }
119
+ else if (intendedScrollLeft > maxScrollLeft) {
120
+ targetScrollLeft = maxScrollLeft;
121
+ const overpull = intendedScrollLeft - maxScrollLeft;
122
+ translateX = -Math.min(overpull * this.resistanceFactor(), this.hostElement.clientWidth * 0.4);
123
+ }
124
+ if (this.hostElement.scrollLeft !== targetScrollLeft) {
125
+ this.hostElement.scrollLeft = targetScrollLeft;
126
+ }
127
+ if (this.currentTranslateX() !== translateX) {
128
+ this.currentTranslateX.set(translateX);
129
+ if (Math.abs(translateX) > 0.1) {
130
+ this.renderer.setStyle(this.hostElement, 'transform', `translateX(${translateX}px)`);
131
+ }
132
+ else {
133
+ this.currentTranslateX.set(0);
134
+ this.renderer.setStyle(this.hostElement, 'transform', '');
135
+ }
136
+ }
137
+ }
138
+ onMouseUpOrLeave(event) {
139
+ if (!this.isDragging()) {
140
+ return;
141
+ }
142
+ this.stopDragging();
143
+ if (this.stopPropagation()) {
144
+ event.stopPropagation();
145
+ event.preventDefault();
146
+ event.stopImmediatePropagation();
147
+ }
148
+ }
149
+ onMouseLeaveElement(event) {
150
+ if (!this.isDragging()) {
151
+ this.renderer.setStyle(this.hostElement, 'cursor', 'grab');
152
+ }
153
+ }
154
+ stopDragging() {
155
+ if (!this.isDragging())
156
+ return;
157
+ this.isDragging.set(false);
158
+ this.renderer.setStyle(this.hostElement, 'cursor', 'grab');
159
+ this.clearSnapTimeout();
160
+ const wasPulled = Math.abs(this.currentTranslateX()) > 0.1;
161
+ if (wasPulled) {
162
+ this.snapTimeoutId = setTimeout(() => {
163
+ this.animateTransformReset();
164
+ this.snapTimeoutId = null;
165
+ }, this.snapDebounceTime() / 2);
166
+ }
167
+ else if (this.snapToCenter()) {
168
+ this.snapTimeoutId = setTimeout(() => {
169
+ this.initiateSnap();
170
+ this.snapTimeoutId = null;
171
+ }, this.snapDebounceTime());
172
+ }
173
+ else {
174
+ this.updateCardVisibilityClasses();
175
+ const currentIndex = this.findCurrentCenterIndex();
176
+ this.emitActiveIndex(currentIndex);
177
+ }
178
+ }
179
+ initiateSnap() {
180
+ this.cards = Array.from(this.hostElement.querySelectorAll(this.cardSelector()));
181
+ if (!this.cards.length)
182
+ return;
183
+ let targetCardIndex = -1;
184
+ const currentScroll = this.hostElement.scrollLeft;
185
+ const containerCenter = currentScroll + this.hostElement.clientWidth / 2;
186
+ let currentNearestCardIndex = this.findNearestCardIndex(this.cards, containerCenter);
187
+ if (currentNearestCardIndex < 0)
188
+ return;
189
+ const absVelocity = Math.abs(this.currentVelocityX());
190
+ const threshold = this.velocityThreshold();
191
+ if (absVelocity > threshold) {
192
+ if (this.currentVelocityX() < 0) {
193
+ targetCardIndex = currentNearestCardIndex - 1;
194
+ }
195
+ else {
196
+ targetCardIndex = currentNearestCardIndex + 1;
197
+ }
198
+ targetCardIndex = Math.max(0, Math.min(targetCardIndex, this.cards.length - 1));
199
+ }
200
+ else {
201
+ targetCardIndex = currentNearestCardIndex;
202
+ }
203
+ if (targetCardIndex >= 0 && targetCardIndex < this.cards.length) {
204
+ this.scrollToCard(targetCardIndex, false);
205
+ }
206
+ else {
207
+ this.updateCardVisibilityClasses();
208
+ }
209
+ }
210
+ scrollToCard(index, immediate = false) {
211
+ if (index < 0 || index >= this.cards.length) {
212
+ return;
213
+ }
214
+ const targetCard = this.cards[index];
215
+ if (!targetCard)
216
+ return;
217
+ const container = this.hostElement;
218
+ const containerWidth = container.clientWidth;
219
+ const targetCardLeft = targetCard.offsetLeft;
220
+ const targetCardWidth = targetCard.offsetWidth;
221
+ let targetScrollLeft = targetCardLeft + targetCardWidth / 2 - containerWidth / 2;
222
+ const maxScrollLeft = container.scrollWidth - containerWidth;
223
+ targetScrollLeft = Math.max(0, Math.min(targetScrollLeft, maxScrollLeft));
224
+ this.cancelScrollAnimation();
225
+ if (immediate) {
226
+ container.scrollLeft = targetScrollLeft;
227
+ this.updateCardVisibilityClasses();
228
+ this.emitActiveIndex(index);
229
+ }
230
+ else {
231
+ this.animateScroll(targetScrollLeft);
232
+ }
233
+ }
234
+ findNearestCardIndex(cards, position) {
235
+ let nearestIndex = -1;
236
+ let minDistance = Infinity;
237
+ cards.forEach((card, index) => {
238
+ if (card instanceof HTMLElement) {
239
+ const cardLeft = card.offsetLeft;
240
+ const cardWidth = card.offsetWidth;
241
+ const cardCenter = cardLeft + cardWidth / 2;
242
+ const distance = Math.abs(cardCenter - position);
243
+ if (distance < minDistance) {
244
+ minDistance = distance;
245
+ nearestIndex = index;
246
+ }
247
+ }
248
+ });
249
+ return nearestIndex;
250
+ }
251
+ animateTransformReset() {
252
+ this.cancelTransformAnimation();
253
+ const startTranslateX = this.currentTranslateX();
254
+ const distance = 0 - startTranslateX;
255
+ if (Math.abs(distance) < 1) {
256
+ if (startTranslateX !== 0) {
257
+ this.currentTranslateX.set(0);
258
+ this.renderer.setStyle(this.hostElement, 'transform', '');
259
+ const finalIndex = this.findCurrentCenterIndex();
260
+ this.emitActiveIndex(finalIndex);
261
+ this.updateCardVisibilityClasses();
262
+ }
263
+ return;
264
+ }
265
+ const duration = this.snapDuration();
266
+ let startTime = null;
267
+ const step = (timestamp) => {
268
+ if (startTime === null)
269
+ startTime = timestamp;
270
+ const elapsed = timestamp - startTime;
271
+ const progress = Math.min(1, elapsed / duration);
272
+ const easedProgress = easeOutQuad(progress);
273
+ const newTranslateX = startTranslateX + distance * easedProgress;
274
+ this.currentTranslateX.set(newTranslateX);
275
+ this.renderer.setStyle(this.hostElement, 'transform', `translateX(${newTranslateX}px)`);
276
+ if (progress < 1) {
277
+ this.transformAnimationId = requestAnimationFrame(step);
278
+ }
279
+ else {
280
+ this.currentTranslateX.set(0);
281
+ this.renderer.setStyle(this.hostElement, 'transform', '');
282
+ this.transformAnimationId = null;
283
+ const finalIndex = this.findCurrentCenterIndex();
284
+ this.emitActiveIndex(finalIndex);
285
+ this.updateCardVisibilityClasses();
286
+ }
287
+ };
288
+ this.zone.runOutsideAngular(() => {
289
+ this.transformAnimationId = requestAnimationFrame(step);
290
+ });
291
+ }
292
+ animateScroll(targetScrollLeft) {
293
+ this.cancelScrollAnimation();
294
+ const container = this.hostElement;
295
+ const startScrollLeft = container.scrollLeft;
296
+ const distance = targetScrollLeft - startScrollLeft;
297
+ if (Math.abs(distance) < 1) {
298
+ const finalIndex = this.findCurrentCenterIndex();
299
+ this.emitActiveIndex(finalIndex);
300
+ this.updateCardVisibilityClasses();
301
+ return;
302
+ }
303
+ const duration = this.snapDuration();
304
+ let startTime = null;
305
+ const step = (timestamp) => {
306
+ if (startTime === null)
307
+ startTime = timestamp;
308
+ const elapsed = timestamp - startTime;
309
+ const progress = Math.min(1, elapsed / duration);
310
+ const easedProgress = easeOutQuad(progress);
311
+ container.scrollLeft = startScrollLeft + distance * easedProgress;
312
+ if (progress < 1) {
313
+ this.scrollAnimationId = requestAnimationFrame(step);
314
+ }
315
+ else {
316
+ container.scrollLeft = targetScrollLeft;
317
+ this.scrollAnimationId = null;
318
+ const finalIndex = this.findCurrentCenterIndex();
319
+ this.emitActiveIndex(finalIndex);
320
+ this.updateCardVisibilityClasses();
321
+ }
322
+ };
323
+ this.zone.runOutsideAngular(() => {
324
+ this.scrollAnimationId = requestAnimationFrame(step);
325
+ });
326
+ }
327
+ findCurrentCenterIndex() {
328
+ this.cards = Array.from(this.hostElement.querySelectorAll(this.cardSelector()));
329
+ if (!this.cards.length)
330
+ return -1;
331
+ const currentScroll = this.hostElement.scrollLeft;
332
+ const containerCenter = currentScroll + this.hostElement.clientWidth / 2;
333
+ return this.findNearestCardIndex(this.cards, containerCenter);
334
+ }
335
+ emitActiveIndex(index) {
336
+ if (index >= 0 && index !== this.lastEmittedIndex()) {
337
+ this.lastEmittedIndex.set(index);
338
+ this.zone.run(() => {
339
+ this.indexChange.emit(index);
340
+ });
341
+ }
342
+ }
343
+ updateCardVisibilityClasses() {
344
+ this.cards = Array.from(this.hostElement.querySelectorAll(this.cardSelector()));
345
+ if (!this.cards.length || !this.hostElement.clientWidth)
346
+ return;
347
+ const viewportStart = this.hostElement.scrollLeft;
348
+ const viewportWidth = this.hostElement.clientWidth;
349
+ const viewportEnd = viewportStart + viewportWidth;
350
+ const tolerance = 1;
351
+ this.cards.forEach(card => {
352
+ if (card instanceof HTMLElement) {
353
+ const cardStart = card.offsetLeft;
354
+ const cardEnd = cardStart + card.offsetWidth;
355
+ const isSpanned = cardStart >= viewportStart - tolerance && cardEnd <= viewportEnd + tolerance;
356
+ const isInView = cardEnd > viewportStart + tolerance && cardStart < viewportEnd - tolerance;
357
+ if (isSpanned) {
358
+ this.renderer.addClass(card, 'is-spanned');
359
+ }
360
+ else {
361
+ this.renderer.removeClass(card, 'is-spanned');
362
+ }
363
+ if (isInView) {
364
+ this.renderer.addClass(card, 'is-in-view');
365
+ }
366
+ else {
367
+ this.renderer.removeClass(card, 'is-in-view');
368
+ }
369
+ }
370
+ });
371
+ }
372
+ cancelScrollAnimation() {
373
+ if (this.scrollAnimationId !== null) {
374
+ cancelAnimationFrame(this.scrollAnimationId);
375
+ this.scrollAnimationId = null;
376
+ }
377
+ }
378
+ cancelTransformAnimation() {
379
+ if (this.transformAnimationId !== null) {
380
+ cancelAnimationFrame(this.transformAnimationId);
381
+ this.transformAnimationId = null;
382
+ }
383
+ }
384
+ clearSnapTimeout() {
385
+ if (this.snapTimeoutId !== null) {
386
+ clearTimeout(this.snapTimeoutId);
387
+ this.snapTimeoutId = null;
388
+ }
389
+ }
390
+ onClick(event) {
391
+ if (this.stopPropagation()) {
392
+ event.stopPropagation();
393
+ event.preventDefault();
394
+ }
395
+ }
396
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DraggableCarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
397
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: DraggableCarouselDirective, isStandalone: true, selector: "[ngsDraggableCarousel]", inputs: { cardSelector: { classPropertyName: "cardSelector", publicName: "cardSelector", isSignal: true, isRequired: false, transformFunction: null }, snapToCenter: { classPropertyName: "snapToCenter", publicName: "snapToCenter", isSignal: true, isRequired: false, transformFunction: null }, snapDebounceTime: { classPropertyName: "snapDebounceTime", publicName: "snapDebounceTime", isSignal: true, isRequired: false, transformFunction: null }, snapDuration: { classPropertyName: "snapDuration", publicName: "snapDuration", isSignal: true, isRequired: false, transformFunction: null }, resistanceFactor: { classPropertyName: "resistanceFactor", publicName: "resistanceFactor", isSignal: true, isRequired: false, transformFunction: null }, velocityThreshold: { classPropertyName: "velocityThreshold", publicName: "velocityThreshold", isSignal: true, isRequired: false, transformFunction: null }, visibilityDebounceTime: { classPropertyName: "visibilityDebounceTime", publicName: "visibilityDebounceTime", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { indexChange: "indexChange" }, host: { listeners: { "scroll": "onScroll($event)", "click": "onClick($event)", "mousedown": "onMouseDown($event)", "mouseleave": "onMouseLeaveElement($event)", "document:mousemove": "onMouseMove($event)", "document:mouseup": "onMouseUpOrLeave($event)", "document:mouseleave": "onMouseUpOrLeave($event)" }, properties: { "class.dragging-active": "isDragging()" } }, ngImport: i0 });
398
+ }
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DraggableCarouselDirective, decorators: [{
400
+ type: Directive,
401
+ args: [{
402
+ selector: '[ngsDraggableCarousel]',
403
+ host: {
404
+ '(scroll)': 'onScroll($event)',
405
+ '(click)': 'onClick($event)',
406
+ '(mousedown)': 'onMouseDown($event)',
407
+ '(mouseleave)': 'onMouseLeaveElement($event)',
408
+ '(document:mousemove)': 'onMouseMove($event)',
409
+ '(document:mouseup)': 'onMouseUpOrLeave($event)',
410
+ '(document:mouseleave)': 'onMouseUpOrLeave($event)',
411
+ '[class.dragging-active]': 'isDragging()'
412
+ }
413
+ }]
414
+ }], propDecorators: { cardSelector: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardSelector", required: false }] }], snapToCenter: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToCenter", required: false }] }], snapDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapDebounceTime", required: false }] }], snapDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapDuration", required: false }] }], resistanceFactor: [{ type: i0.Input, args: [{ isSignal: true, alias: "resistanceFactor", required: false }] }], velocityThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "velocityThreshold", required: false }] }], visibilityDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibilityDebounceTime", required: false }] }], stopPropagation: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopPropagation", required: false }] }], indexChange: [{ type: i0.Output, args: ["indexChange"] }] } });
415
+
416
+ class Carousel {
417
+ _content = viewChild.required('content');
418
+ _cards = contentChildren(CAROUSEL_CARD, ...(ngDevMode ? [{ debugName: "_cards" }] : /* istanbul ignore next */ []));
419
+ fade = input(false, { ...(ngDevMode ? { debugName: "fade" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
420
+ snapToCenter = input(true, ...(ngDevMode ? [{ debugName: "snapToCenter" }] : /* istanbul ignore next */ []));
421
+ snapDebounceTime = input(50, ...(ngDevMode ? [{ debugName: "snapDebounceTime" }] : /* istanbul ignore next */ []));
422
+ snapDuration = input(300, ...(ngDevMode ? [{ debugName: "snapDuration" }] : /* istanbul ignore next */ []));
423
+ resistanceFactor = input(0.5, ...(ngDevMode ? [{ debugName: "resistanceFactor" }] : /* istanbul ignore next */ []));
424
+ velocityThreshold = input(0.5, ...(ngDevMode ? [{ debugName: "velocityThreshold" }] : /* istanbul ignore next */ []));
425
+ visibilityDebounceTime = input(100, ...(ngDevMode ? [{ debugName: "visibilityDebounceTime" }] : /* istanbul ignore next */ []));
426
+ stopPropagation = input(true, { ...(ngDevMode ? { debugName: "stopPropagation" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
427
+ indexChange = output();
428
+ _index = signal(0, ...(ngDevMode ? [{ debugName: "_index" }] : /* istanbul ignore next */ []));
429
+ get api() {
430
+ return {
431
+ isNextDisabled: () => this._isNextDisabled,
432
+ isPreviousDisabled: () => this._isPreviousDisabled,
433
+ previous: () => this._previous(),
434
+ next: () => this._next(),
435
+ selectedIndex: () => this._index()
436
+ };
437
+ }
438
+ onIndexChanged(index) {
439
+ if (this._index() === index) {
440
+ return;
441
+ }
442
+ this._index.set(index);
443
+ this.indexChange.emit(index);
444
+ }
445
+ _previous() {
446
+ const contentElement = this._content()?.nativeElement;
447
+ for (let index = this._cards().length - 1; index >= 0; index--) {
448
+ if (index >= this._index()) {
449
+ continue;
450
+ }
451
+ const card = this._cards().at(index);
452
+ if (!this._visibleInParentViewport(contentElement, card.element)) {
453
+ this._scrollToCard(card);
454
+ break;
455
+ }
456
+ }
457
+ }
458
+ _next() {
459
+ const contentElement = this._content().nativeElement;
460
+ const notVisibleCard = this._cards().find((card, index) => !this._visibleInParentViewport(contentElement, card.element) && index > this._index());
461
+ if (notVisibleCard) {
462
+ this._scrollToCard(notVisibleCard);
463
+ }
464
+ }
465
+ _scrollToCard(notVisibleCard) {
466
+ this._index.set(this._cards().findIndex(card => card === notVisibleCard));
467
+ this.indexChange.emit(this._index());
468
+ notVisibleCard.element.scrollIntoView({
469
+ block: 'nearest',
470
+ behavior: 'smooth',
471
+ inline: 'center'
472
+ });
473
+ }
474
+ _visibleInParentViewport = (parent, el) => {
475
+ const parentRect = parent.getBoundingClientRect();
476
+ const elementRect = el.getBoundingClientRect();
477
+ return (elementRect.right <= parentRect.right &&
478
+ elementRect.left >= parentRect.left);
479
+ };
480
+ get _isPreviousDisabled() {
481
+ return this._index() === 0;
482
+ }
483
+ get _isNextDisabled() {
484
+ return this._index() === this._cards().length - 1;
485
+ }
486
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: Carousel, deps: [], target: i0.ɵɵFactoryTarget.Component });
487
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.4", type: Carousel, isStandalone: true, selector: "ngs-carousel", inputs: { fade: { classPropertyName: "fade", publicName: "fade", isSignal: true, isRequired: false, transformFunction: null }, snapToCenter: { classPropertyName: "snapToCenter", publicName: "snapToCenter", isSignal: true, isRequired: false, transformFunction: null }, snapDebounceTime: { classPropertyName: "snapDebounceTime", publicName: "snapDebounceTime", isSignal: true, isRequired: false, transformFunction: null }, snapDuration: { classPropertyName: "snapDuration", publicName: "snapDuration", isSignal: true, isRequired: false, transformFunction: null }, resistanceFactor: { classPropertyName: "resistanceFactor", publicName: "resistanceFactor", isSignal: true, isRequired: false, transformFunction: null }, velocityThreshold: { classPropertyName: "velocityThreshold", publicName: "velocityThreshold", isSignal: true, isRequired: false, transformFunction: null }, visibilityDebounceTime: { classPropertyName: "visibilityDebounceTime", publicName: "visibilityDebounceTime", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { indexChange: "indexChange" }, host: { properties: { "class.fade": "fade()" }, classAttribute: "ngs-carousel" }, providers: [
488
+ {
489
+ provide: CAROUSEL,
490
+ useExisting: Carousel
491
+ }
492
+ ], queries: [{ propertyName: "_cards", predicate: CAROUSEL_CARD, isSignal: true }], viewQueries: [{ propertyName: "_content", first: true, predicate: ["content"], descendants: true, isSignal: true }], exportAs: ["ngsCarousel"], ngImport: i0, template: "<div #content class=\"content\"\n ngsDraggableCarousel\n [stopPropagation]=\"stopPropagation()\"\n [snapToCenter]=\"snapToCenter()\"\n [snapDebounceTime]=\"snapDebounceTime()\"\n [snapDuration]=\"snapDuration()\"\n [resistanceFactor]=\"resistanceFactor()\"\n [velocityThreshold]=\"velocityThreshold()\"\n [visibilityDebounceTime]=\"visibilityDebounceTime()\"\n (indexChange)=\"onIndexChanged($event)\">\n <ng-content select=\"ngs-carousel-card,[ngs-carousel-card]\" />\n</div>\n<div class=\"controls\">\n <ng-content select=\"[ngsCarouselControls]\" />\n</div>\n", styles: [":host{--ngs-carousel-gap: calc(var(--spacing, .25rem) * 8);display:block;position:relative}:host .content{display:flex;overflow:hidden;gap:var(--ngs-carousel-gap)}:host .controls{margin-top:calc(var(--spacing, .25rem) * 4);gap:calc(var(--spacing, .25rem) * 3)}:host .controls:empty{display:none}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: DraggableCarouselDirective, selector: "[ngsDraggableCarousel]", inputs: ["cardSelector", "snapToCenter", "snapDebounceTime", "snapDuration", "resistanceFactor", "velocityThreshold", "visibilityDebounceTime", "stopPropagation"], outputs: ["indexChange"] }] });
493
+ }
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: Carousel, decorators: [{
495
+ type: Component,
496
+ args: [{ selector: 'ngs-carousel', exportAs: 'ngsCarousel', providers: [
497
+ {
498
+ provide: CAROUSEL,
499
+ useExisting: Carousel
500
+ }
501
+ ], hostDirectives: [], imports: [
502
+ DraggableCarouselDirective
503
+ ], host: {
504
+ 'class': 'ngs-carousel',
505
+ '[class.fade]': 'fade()',
506
+ }, template: "<div #content class=\"content\"\n ngsDraggableCarousel\n [stopPropagation]=\"stopPropagation()\"\n [snapToCenter]=\"snapToCenter()\"\n [snapDebounceTime]=\"snapDebounceTime()\"\n [snapDuration]=\"snapDuration()\"\n [resistanceFactor]=\"resistanceFactor()\"\n [velocityThreshold]=\"velocityThreshold()\"\n [visibilityDebounceTime]=\"visibilityDebounceTime()\"\n (indexChange)=\"onIndexChanged($event)\">\n <ng-content select=\"ngs-carousel-card,[ngs-carousel-card]\" />\n</div>\n<div class=\"controls\">\n <ng-content select=\"[ngsCarouselControls]\" />\n</div>\n", styles: [":host{--ngs-carousel-gap: calc(var(--spacing, .25rem) * 8);display:block;position:relative}:host .content{display:flex;overflow:hidden;gap:var(--ngs-carousel-gap)}:host .controls{margin-top:calc(var(--spacing, .25rem) * 4);gap:calc(var(--spacing, .25rem) * 3)}:host .controls:empty{display:none}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
507
+ }], propDecorators: { _content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], _cards: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CAROUSEL_CARD), { isSignal: true }] }], fade: [{ type: i0.Input, args: [{ isSignal: true, alias: "fade", required: false }] }], snapToCenter: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToCenter", required: false }] }], snapDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapDebounceTime", required: false }] }], snapDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapDuration", required: false }] }], resistanceFactor: [{ type: i0.Input, args: [{ isSignal: true, alias: "resistanceFactor", required: false }] }], velocityThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "velocityThreshold", required: false }] }], visibilityDebounceTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibilityDebounceTime", required: false }] }], stopPropagation: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopPropagation", required: false }] }], indexChange: [{ type: i0.Output, args: ["indexChange"] }] } });
508
+
509
+ class CarouselCard {
510
+ _elementRef = inject(ElementRef);
511
+ get element() {
512
+ return this._elementRef.nativeElement;
513
+ }
514
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
515
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: CarouselCard, isStandalone: true, selector: "ngs-carousel-card,[ngs-carousel-card]", host: { classAttribute: "ngs-carousel-card" }, providers: [
516
+ {
517
+ provide: CAROUSEL_CARD,
518
+ useExisting: CarouselCard
519
+ }
520
+ ], exportAs: ["ngsCarouselCard"], ngImport: i0, template: "<ng-content />\n", styles: [":host{display:block;scroll-padding-inline:100px;flex:none}:host-context(.ngs-carousel.fade){animation:ngs-carousel-fade;animation-fill-mode:both;animation-timing-function:linear;animation-timeline:view(inline)}@keyframes ngs-carousel-fade{0%,to{opacity:.3}50%{opacity:1}}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] });
521
+ }
522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselCard, decorators: [{
523
+ type: Component,
524
+ args: [{ selector: 'ngs-carousel-card,[ngs-carousel-card]', exportAs: 'ngsCarouselCard', imports: [], providers: [
525
+ {
526
+ provide: CAROUSEL_CARD,
527
+ useExisting: CarouselCard
528
+ }
529
+ ], host: {
530
+ 'class': 'ngs-carousel-card',
531
+ }, template: "<ng-content />\n", styles: [":host{display:block;scroll-padding-inline:100px;flex:none}:host-context(.ngs-carousel.fade){animation:ngs-carousel-fade;animation-fill-mode:both;animation-timing-function:linear;animation-timeline:view(inline)}@keyframes ngs-carousel-fade{0%,to{opacity:.3}50%{opacity:1}}\n/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n"] }]
532
+ }] });
533
+
534
+ class CarouselControlsDirective {
535
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselControlsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
536
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CarouselControlsDirective, isStandalone: true, selector: "[ngsCarouselControls]", host: { classAttribute: "ngs-carousel-controls" }, ngImport: i0 });
537
+ }
538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselControlsDirective, decorators: [{
539
+ type: Directive,
540
+ args: [{
541
+ selector: '[ngsCarouselControls]',
542
+ standalone: true,
543
+ host: {
544
+ 'class': 'ngs-carousel-controls',
545
+ }
546
+ }]
547
+ }] });
548
+
549
+ class CarouselPreviousDirective {
550
+ _carousel = inject(CAROUSEL, {
551
+ optional: true
552
+ });
553
+ carousel = input(null, ...(ngDevMode ? [{ debugName: "carousel" }] : /* istanbul ignore next */ []));
554
+ ngOnInit() {
555
+ if (this.carousel() && !this._carousel) {
556
+ this._carousel = this.carousel();
557
+ }
558
+ }
559
+ _handleClick() {
560
+ this._carousel?.api.previous();
561
+ }
562
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselPreviousDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
563
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: CarouselPreviousDirective, isStandalone: true, selector: "[ngsCarouselPrevious]", inputs: { carousel: { classPropertyName: "carousel", publicName: "carousel", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick()" }, properties: { "attr.disabled": "_carousel?.api?.isPreviousDisabled() ? true : null" }, classAttribute: "ngs-carousel-previous" }, exportAs: ["ngsCarouselPrevious"], ngImport: i0 });
564
+ }
565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselPreviousDirective, decorators: [{
566
+ type: Directive,
567
+ args: [{
568
+ selector: '[ngsCarouselPrevious]',
569
+ exportAs: 'ngsCarouselPrevious',
570
+ standalone: true,
571
+ host: {
572
+ 'class': 'ngs-carousel-previous',
573
+ '[attr.disabled]': '_carousel?.api?.isPreviousDisabled() ? true : null',
574
+ '(click)': '_handleClick()'
575
+ }
576
+ }]
577
+ }], propDecorators: { carousel: [{ type: i0.Input, args: [{ isSignal: true, alias: "carousel", required: false }] }] } });
578
+
579
+ class CarouselNextDirective {
580
+ _carousel = inject(CAROUSEL, {
581
+ optional: true
582
+ });
583
+ carousel = input(null, ...(ngDevMode ? [{ debugName: "carousel" }] : /* istanbul ignore next */ []));
584
+ ngOnInit() {
585
+ if (this.carousel() && !this._carousel) {
586
+ this._carousel = this.carousel();
587
+ }
588
+ }
589
+ _handleClick() {
590
+ this._carousel?.api.next();
591
+ }
592
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselNextDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
593
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: CarouselNextDirective, isStandalone: true, selector: "[ngsCarouselNext]", inputs: { carousel: { classPropertyName: "carousel", publicName: "carousel", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick()" }, properties: { "attr.disabled": "_carousel?.api?.isNextDisabled() ? true : null" }, classAttribute: "ngs-carousel-next" }, exportAs: ["ngsCarouselNext"], ngImport: i0 });
594
+ }
595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CarouselNextDirective, decorators: [{
596
+ type: Directive,
597
+ args: [{
598
+ selector: '[ngsCarouselNext]',
599
+ exportAs: 'ngsCarouselNext',
600
+ standalone: true,
601
+ host: {
602
+ 'class': 'ngs-carousel-next',
603
+ '[attr.disabled]': '_carousel?.api?.isNextDisabled() ? true : null',
604
+ '(click)': '_handleClick()'
605
+ }
606
+ }]
607
+ }], propDecorators: { carousel: [{ type: i0.Input, args: [{ isSignal: true, alias: "carousel", required: false }] }] } });
608
+
609
+ /**
610
+ * Generated bundle index. Do not edit.
611
+ */
612
+
613
+ export { CAROUSEL, CAROUSEL_CARD, Carousel, CarouselCard, CarouselControlsDirective, CarouselNextDirective, CarouselPreviousDirective };
614
+ //# sourceMappingURL=ngstarter-ui-components-carousel.mjs.map