@sixbell-telco/sdk 0.71.0 → 1.0.2

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 (344) hide show
  1. package/CHANGELOG.md +317 -30
  2. package/README.md +357 -241
  3. package/_index.css +452 -0
  4. package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  5. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +2 -2
  6. package/components/audio-player/button-play/button-play.component.d.ts +6 -6
  7. package/components/audio-player/services/audio.service.d.ts +1 -0
  8. package/components/audio-player/src/audio-player.component.d.ts +14 -8
  9. package/components/audio-player/volume-control/volume-control.component.d.ts +2 -2
  10. package/components/avatar/src/avatar.component.d.ts +116 -8
  11. package/components/badge/src/badge.component.d.ts +69 -7
  12. package/components/button/src/button.component.d.ts +120 -8
  13. package/components/card/card-actions/card-actions.component.d.ts +29 -1
  14. package/components/card/card-content/card-content.component.d.ts +25 -0
  15. package/components/card/card-title/card-title.component.d.ts +22 -0
  16. package/components/card/src/card.component.d.ts +90 -5
  17. package/components/countdown/src/countdown.component.d.ts +2 -6
  18. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +35 -2
  19. package/components/dropdown/src/dropdown.component.d.ts +151 -9
  20. package/components/dual-list/src/dual-list.component.d.ts +7 -8
  21. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +254 -0
  22. package/components/file-upload/file-uploader/file-uploader.component.d.ts +209 -0
  23. package/components/file-upload/index.d.ts +5 -0
  24. package/components/file-upload/public-api.d.ts +4 -0
  25. package/components/file-upload/shared/types/file-upload.d.ts +8 -0
  26. package/components/forms/checkbox/src/checkbox.component.d.ts +68 -5
  27. package/components/forms/combobox/src/combobox.component.d.ts +476 -39
  28. package/components/forms/datepicker/src/datepicker.component.d.ts +2 -2
  29. package/components/forms/form-error/src/form-error.component.d.ts +2 -2
  30. package/components/forms/input/input-content/input-content.component.d.ts +8 -0
  31. package/components/forms/input/public-api.d.ts +1 -0
  32. package/components/forms/input/src/input.component.d.ts +148 -25
  33. package/components/forms/radio/src/radio.component.d.ts +83 -7
  34. package/components/forms/range/src/range.component.d.ts +101 -6
  35. package/components/forms/select/src/select.component.d.ts +316 -24
  36. package/components/forms/switch/src/switch.component.d.ts +74 -7
  37. package/components/forms/textarea/src/textarea.component.d.ts +172 -16
  38. package/components/forms/toggle/src/toggle.component.d.ts +3 -3
  39. package/components/icon/src/icon.component.d.ts +5 -5
  40. package/components/link/src/link.component.d.ts +1 -1
  41. package/components/modal/modal-actions/modal-actions.component.d.ts +1 -1
  42. package/components/modal/src/modal.component.d.ts +10 -10
  43. package/components/notification/src/notification.component.d.ts +2 -3
  44. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +64 -15
  45. package/components/paginator/src/paginator.component.d.ts +93 -2
  46. package/components/product-card/src/product-card.component.d.ts +7 -8
  47. package/components/progress/src/progress.component.d.ts +59 -4
  48. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  49. package/components/tab/directives/tab-header/tab-header.directive.d.ts +1 -1
  50. package/components/tab/src/tab.component.d.ts +3 -3
  51. package/components/table/public-api.d.ts +2 -0
  52. package/components/table/src/table.component.d.ts +160 -14
  53. package/components/table/table-action/table-action.component.d.ts +49 -0
  54. package/components/table/table-actions/table-actions.component.d.ts +25 -0
  55. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
  56. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
  57. package/components/toast/toast-message/toast-message.component.d.ts +3 -3
  58. package/components/tooltip/public-api.d.ts +1 -0
  59. package/components/tooltip/src/tooltip.component.d.ts +66 -5
  60. package/components/tooltip/tooltip-content/tooltip-content.component.d.ts +38 -0
  61. package/components/wizard/public-api.d.ts +2 -3
  62. package/components/wizard/services/wizard.service.d.ts +221 -0
  63. package/components/wizard/wizard-actions/wizard-actions.component.d.ts +8 -0
  64. package/components/wizard/wizard-content/wizard-content.component.d.ts +67 -13
  65. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +81 -6
  66. package/components/wizard/wizard-step/wizard-step.component.d.ts +76 -9
  67. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +91 -9
  68. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +152 -16
  69. package/directives/auto-focus/index.d.ts +5 -0
  70. package/directives/auto-focus/public-api.d.ts +1 -0
  71. package/directives/auto-focus/src/autofocus.directive.d.ts +93 -0
  72. package/directives/click-outside/src/click-outside.directive.d.ts +48 -3
  73. package/directives/only-numbers/index.d.ts +5 -0
  74. package/directives/only-numbers/public-api.d.ts +1 -0
  75. package/directives/only-numbers/src/just-numbers.directive.d.ts +9 -0
  76. package/directives/typography/src/typography.directive.d.ts +47 -1
  77. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +10 -12
  78. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +119 -69
  80. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +109 -19
  82. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +92 -46
  84. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-button.mjs +153 -34
  86. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-card.mjs +195 -33
  88. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +8 -11
  90. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +197 -26
  92. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +30 -18
  94. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +706 -0
  96. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -0
  97. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +85 -25
  98. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +996 -113
  100. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +11 -11
  102. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +13 -12
  104. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +221 -121
  106. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +98 -26
  108. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +117 -25
  110. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +671 -74
  112. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +95 -45
  114. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +236 -75
  116. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +74 -258
  118. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +23 -14
  120. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-link.mjs +16 -16
  122. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +39 -36
  124. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +16 -9
  126. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +189 -59
  128. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +35 -43
  130. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +60 -12
  132. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +33 -35
  134. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  135. package/fesm2022/sixbell-telco-sdk-components-table.mjs +403 -58
  136. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  137. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +28 -44
  138. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  139. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +112 -10
  140. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  141. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +897 -161
  142. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  143. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +206 -0
  144. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -0
  145. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +54 -11
  146. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  147. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +52 -0
  148. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -0
  149. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +66 -15
  150. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  151. package/fesm2022/sixbell-telco-sdk-utils-cn.mjs.map +1 -1
  152. package/fesm2022/sixbell-telco-sdk-utils-generators-uuid.mjs.map +1 -1
  153. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +3 -3
  154. package/fesm2022/sixbell-telco-sdk-utils-pipes-extract-extension.mjs.map +1 -1
  155. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs +3 -3
  156. package/fesm2022/sixbell-telco-sdk-utils-pipes-time.mjs.map +1 -1
  157. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +3 -3
  158. package/fesm2022/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs.map +1 -1
  159. package/package.json +55 -148
  160. package/sixbell-telco-sdk-1.0.2.tgz +0 -0
  161. package/_index.scss +0 -146
  162. package/assets/styles/combobox.scss +0 -454
  163. package/components/file-upload/file-dropzone/index.d.ts +0 -5
  164. package/components/file-upload/file-dropzone/public-api.d.ts +0 -1
  165. package/components/file-upload/file-dropzone/src/file-dropzone.component.d.ts +0 -68
  166. package/components/file-upload/file-uploader/index.d.ts +0 -5
  167. package/components/file-upload/file-uploader/public-api.d.ts +0 -1
  168. package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +0 -46
  169. package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +0 -43
  170. package/esm2022/components/accordion/public-api.mjs +0 -3
  171. package/esm2022/components/accordion/sixbell-telco-sdk-components-accordion.mjs +0 -5
  172. package/esm2022/components/accordion/src/accordion.component.mjs +0 -13
  173. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +0 -76
  174. package/esm2022/components/audio-player/button-play/button-play.component.mjs +0 -71
  175. package/esm2022/components/audio-player/public-api.mjs +0 -4
  176. package/esm2022/components/audio-player/services/audio.service.mjs +0 -189
  177. package/esm2022/components/audio-player/sixbell-telco-sdk-components-audio-player.mjs +0 -5
  178. package/esm2022/components/audio-player/src/audio-player.component.mjs +0 -84
  179. package/esm2022/components/audio-player/track-info/track-info.component.mjs +0 -17
  180. package/esm2022/components/audio-player/volume-control/volume-control.component.mjs +0 -83
  181. package/esm2022/components/avatar/public-api.mjs +0 -2
  182. package/esm2022/components/avatar/sixbell-telco-sdk-components-avatar.mjs +0 -5
  183. package/esm2022/components/avatar/src/avatar.component.mjs +0 -59
  184. package/esm2022/components/badge/public-api.mjs +0 -2
  185. package/esm2022/components/badge/sixbell-telco-sdk-components-badge.mjs +0 -5
  186. package/esm2022/components/badge/src/badge.component.mjs +0 -76
  187. package/esm2022/components/button/public-api.mjs +0 -2
  188. package/esm2022/components/button/sixbell-telco-sdk-components-button.mjs +0 -5
  189. package/esm2022/components/button/src/button.component.mjs +0 -84
  190. package/esm2022/components/card/card-actions/card-actions.component.mjs +0 -22
  191. package/esm2022/components/card/card-content/card-content.component.mjs +0 -12
  192. package/esm2022/components/card/card-title/card-title.component.mjs +0 -12
  193. package/esm2022/components/card/public-api.mjs +0 -5
  194. package/esm2022/components/card/sixbell-telco-sdk-components-card.mjs +0 -5
  195. package/esm2022/components/card/src/card.component.mjs +0 -32
  196. package/esm2022/components/countdown/public-api.mjs +0 -2
  197. package/esm2022/components/countdown/sixbell-telco-sdk-components-countdown.mjs +0 -5
  198. package/esm2022/components/countdown/src/countdown.component.mjs +0 -60
  199. package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +0 -24
  200. package/esm2022/components/dropdown/public-api.mjs +0 -3
  201. package/esm2022/components/dropdown/sixbell-telco-sdk-components-dropdown.mjs +0 -5
  202. package/esm2022/components/dropdown/src/dropdown.component.mjs +0 -127
  203. package/esm2022/components/dual-list/public-api.mjs +0 -2
  204. package/esm2022/components/dual-list/sixbell-telco-sdk-components-dual-list.mjs +0 -5
  205. package/esm2022/components/dual-list/src/dual-list.component.mjs +0 -174
  206. package/esm2022/components/file-upload/file-dropzone/public-api.mjs +0 -2
  207. package/esm2022/components/file-upload/file-dropzone/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -5
  208. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +0 -232
  209. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.constants.mjs +0 -7
  210. package/esm2022/components/file-upload/file-uploader/public-api.mjs +0 -2
  211. package/esm2022/components/file-upload/file-uploader/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -5
  212. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +0 -114
  213. package/esm2022/components/forms/checkbox/public-api.mjs +0 -2
  214. package/esm2022/components/forms/checkbox/sixbell-telco-sdk-components-forms-checkbox.mjs +0 -5
  215. package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +0 -94
  216. package/esm2022/components/forms/combobox/public-api.mjs +0 -2
  217. package/esm2022/components/forms/combobox/sixbell-telco-sdk-components-forms-combobox.mjs +0 -5
  218. package/esm2022/components/forms/combobox/src/combobox.component.mjs +0 -165
  219. package/esm2022/components/forms/datepicker/public-api.mjs +0 -3
  220. package/esm2022/components/forms/datepicker/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -5
  221. package/esm2022/components/forms/datepicker/src/datepicker-format-month.pipe.mjs +0 -20
  222. package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +0 -190
  223. package/esm2022/components/forms/form-error/public-api.mjs +0 -2
  224. package/esm2022/components/forms/form-error/sixbell-telco-sdk-components-forms-form-error.mjs +0 -5
  225. package/esm2022/components/forms/form-error/src/form-error.component.mjs +0 -32
  226. package/esm2022/components/forms/input/public-api.mjs +0 -2
  227. package/esm2022/components/forms/input/sixbell-telco-sdk-components-forms-input.mjs +0 -5
  228. package/esm2022/components/forms/input/src/input.component.mjs +0 -201
  229. package/esm2022/components/forms/radio/public-api.mjs +0 -2
  230. package/esm2022/components/forms/radio/sixbell-telco-sdk-components-forms-radio.mjs +0 -5
  231. package/esm2022/components/forms/radio/src/radio.component.mjs +0 -96
  232. package/esm2022/components/forms/range/public-api.mjs +0 -2
  233. package/esm2022/components/forms/range/sixbell-telco-sdk-components-forms-range.mjs +0 -5
  234. package/esm2022/components/forms/range/src/range.component.mjs +0 -103
  235. package/esm2022/components/forms/select/public-api.mjs +0 -2
  236. package/esm2022/components/forms/select/sixbell-telco-sdk-components-forms-select.mjs +0 -5
  237. package/esm2022/components/forms/select/src/select.component.mjs +0 -138
  238. package/esm2022/components/forms/switch/public-api.mjs +0 -2
  239. package/esm2022/components/forms/switch/sixbell-telco-sdk-components-forms-switch.mjs +0 -5
  240. package/esm2022/components/forms/switch/src/switch.component.mjs +0 -108
  241. package/esm2022/components/forms/textarea/public-api.mjs +0 -2
  242. package/esm2022/components/forms/textarea/sixbell-telco-sdk-components-forms-textarea.mjs +0 -5
  243. package/esm2022/components/forms/textarea/src/textarea.component.mjs +0 -167
  244. package/esm2022/components/forms/toggle/public-api.mjs +0 -2
  245. package/esm2022/components/forms/toggle/sixbell-telco-sdk-components-forms-toggle.mjs +0 -5
  246. package/esm2022/components/forms/toggle/src/toggle.component.mjs +0 -404
  247. package/esm2022/components/icon/heroicons/mini/public-api.mjs +0 -2
  248. package/esm2022/components/icon/heroicons/mini/sixbell-telco-sdk-components-icon-heroicons-mini.mjs +0 -5
  249. package/esm2022/components/icon/heroicons/outline/public-api.mjs +0 -2
  250. package/esm2022/components/icon/heroicons/outline/sixbell-telco-sdk-components-icon-heroicons-outline.mjs +0 -5
  251. package/esm2022/components/icon/heroicons/solid/public-api.mjs +0 -2
  252. package/esm2022/components/icon/heroicons/solid/sixbell-telco-sdk-components-icon-heroicons-solid.mjs +0 -5
  253. package/esm2022/components/icon/ionicons/public-api.mjs +0 -2
  254. package/esm2022/components/icon/ionicons/sixbell-telco-sdk-components-icon-ionicons.mjs +0 -5
  255. package/esm2022/components/icon/material/baseline/public-api.mjs +0 -2
  256. package/esm2022/components/icon/material/baseline/sixbell-telco-sdk-components-icon-material-baseline.mjs +0 -5
  257. package/esm2022/components/icon/material/outline/public-api.mjs +0 -2
  258. package/esm2022/components/icon/material/outline/sixbell-telco-sdk-components-icon-material-outline.mjs +0 -5
  259. package/esm2022/components/icon/material/round/public-api.mjs +0 -2
  260. package/esm2022/components/icon/material/round/sixbell-telco-sdk-components-icon-material-round.mjs +0 -5
  261. package/esm2022/components/icon/material/sharp/public-api.mjs +0 -2
  262. package/esm2022/components/icon/material/sharp/sixbell-telco-sdk-components-icon-material-sharp.mjs +0 -5
  263. package/esm2022/components/icon/public-api.mjs +0 -2
  264. package/esm2022/components/icon/sixbell-telco-sdk-components-icon.mjs +0 -5
  265. package/esm2022/components/icon/src/icon.component.mjs +0 -41
  266. package/esm2022/components/link/public-api.mjs +0 -2
  267. package/esm2022/components/link/sixbell-telco-sdk-components-link.mjs +0 -5
  268. package/esm2022/components/link/src/link.component.mjs +0 -63
  269. package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +0 -22
  270. package/esm2022/components/modal/modal-content/modal-content.component.mjs +0 -12
  271. package/esm2022/components/modal/modal-title/modal-title.component.mjs +0 -13
  272. package/esm2022/components/modal/public-api.mjs +0 -5
  273. package/esm2022/components/modal/sixbell-telco-sdk-components-modal.mjs +0 -5
  274. package/esm2022/components/modal/src/modal.component.mjs +0 -154
  275. package/esm2022/components/notification/public-api.mjs +0 -2
  276. package/esm2022/components/notification/sixbell-telco-sdk-components-notification.mjs +0 -5
  277. package/esm2022/components/notification/src/notification.component.mjs +0 -55
  278. package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +0 -113
  279. package/esm2022/components/paginator/public-api.mjs +0 -3
  280. package/esm2022/components/paginator/sixbell-telco-sdk-components-paginator.mjs +0 -5
  281. package/esm2022/components/paginator/src/paginator.component.mjs +0 -52
  282. package/esm2022/components/product-card/directives/product-card-actions.directive.mjs +0 -15
  283. package/esm2022/components/product-card/directives/product-card-content.directive.mjs +0 -15
  284. package/esm2022/components/product-card/directives/product-card-header.directive.mjs +0 -15
  285. package/esm2022/components/product-card/public-api.mjs +0 -5
  286. package/esm2022/components/product-card/sixbell-telco-sdk-components-product-card.mjs +0 -5
  287. package/esm2022/components/product-card/src/product-card.component.mjs +0 -140
  288. package/esm2022/components/progress/public-api.mjs +0 -2
  289. package/esm2022/components/progress/sixbell-telco-sdk-components-progress.mjs +0 -5
  290. package/esm2022/components/progress/src/progress.component.mjs +0 -43
  291. package/esm2022/components/tab/directives/tab-content/tab-content.directive.mjs +0 -51
  292. package/esm2022/components/tab/directives/tab-header/tab-header.directive.mjs +0 -56
  293. package/esm2022/components/tab/public-api.mjs +0 -4
  294. package/esm2022/components/tab/sixbell-telco-sdk-components-tab.mjs +0 -5
  295. package/esm2022/components/tab/src/tab.component.mjs +0 -42
  296. package/esm2022/components/table/public-api.mjs +0 -4
  297. package/esm2022/components/table/sixbell-telco-sdk-components-table.mjs +0 -5
  298. package/esm2022/components/table/src/table.component.mjs +0 -143
  299. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +0 -25
  300. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +0 -26
  301. package/esm2022/components/toast/public-api.mjs +0 -4
  302. package/esm2022/components/toast/services/toast.service.mjs +0 -67
  303. package/esm2022/components/toast/sixbell-telco-sdk-components-toast.mjs +0 -5
  304. package/esm2022/components/toast/toast-message/toast-message.component.mjs +0 -80
  305. package/esm2022/components/toast/toasts-container/toasts-container.component.mjs +0 -41
  306. package/esm2022/components/tooltip/public-api.mjs +0 -2
  307. package/esm2022/components/tooltip/sixbell-telco-sdk-components-tooltip.mjs +0 -5
  308. package/esm2022/components/tooltip/src/tooltip.component.mjs +0 -45
  309. package/esm2022/components/wizard/public-api.mjs +0 -6
  310. package/esm2022/components/wizard/sixbell-telco-sdk-components-wizard.mjs +0 -5
  311. package/esm2022/components/wizard/wizard-content/wizard-content.component.mjs +0 -30
  312. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +0 -24
  313. package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +0 -44
  314. package/esm2022/components/wizard/wizard-sub-step/wizard-sub-step.component.mjs +0 -34
  315. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +0 -88
  316. package/esm2022/directives/click-outside/public-api.mjs +0 -2
  317. package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +0 -5
  318. package/esm2022/directives/click-outside/src/click-outside.directive.mjs +0 -30
  319. package/esm2022/directives/typography/public-api.mjs +0 -2
  320. package/esm2022/directives/typography/sixbell-telco-sdk-directives-typography.mjs +0 -5
  321. package/esm2022/directives/typography/src/typography.directive.mjs +0 -68
  322. package/esm2022/public_api.mjs +0 -2
  323. package/esm2022/sixbell-telco-sdk.mjs +0 -5
  324. package/esm2022/utils/cn/public-api.mjs +0 -2
  325. package/esm2022/utils/cn/sixbell-telco-sdk-utils-cn.mjs +0 -5
  326. package/esm2022/utils/cn/src/cn.mjs +0 -6
  327. package/esm2022/utils/generators/uuid/public-api.mjs +0 -2
  328. package/esm2022/utils/generators/uuid/sixbell-telco-sdk-utils-generators-uuid.mjs +0 -5
  329. package/esm2022/utils/generators/uuid/src/uuid.mjs +0 -5
  330. package/esm2022/utils/pipes/extract-extension/public-api.mjs +0 -2
  331. package/esm2022/utils/pipes/extract-extension/sixbell-telco-sdk-utils-pipes-extract-extension.mjs +0 -5
  332. package/esm2022/utils/pipes/extract-extension/src/extract-extension.mjs +0 -30
  333. package/esm2022/utils/pipes/time/public-api.mjs +0 -2
  334. package/esm2022/utils/pipes/time/sixbell-telco-sdk-utils-pipes-time.mjs +0 -5
  335. package/esm2022/utils/pipes/time/src/time.pipe.mjs +0 -19
  336. package/esm2022/utils/pipes/to-bytes-extesion/public-api.mjs +0 -2
  337. package/esm2022/utils/pipes/to-bytes-extesion/sixbell-telco-sdk-utils-pipes-to-bytes-extesion.mjs +0 -5
  338. package/esm2022/utils/pipes/to-bytes-extesion/src/to-bytes.pipe.mjs +0 -29
  339. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +0 -245
  340. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +0 -1
  341. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +0 -121
  342. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +0 -1
  343. /package/assets/styles/{toast.scss → toast.css} +0 -0
  344. /package/components/file-upload/{file-dropzone/src/file-dropzone.constants.d.ts → shared/const/file-upload.constants.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, signal, computed, Injectable, input, output, Component, ChangeDetectionStrategy, viewChild, HostListener, model, effect } from '@angular/core';
3
+ import { inject, signal, computed, Injectable, input, output, ChangeDetectionStrategy, Component, viewChild, HostListener, model, effect } from '@angular/core';
4
4
  import { matPlayArrow, matPause, matSkipPrevious, matSkipNext } from '@ng-icons/material-icons/baseline';
5
5
  import { ButtonComponent } from '@sixbell-telco/sdk/components/button';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
@@ -8,6 +8,7 @@ import { heroMusicalNoteMini } from '@sixbell-telco/sdk/components/icon/heroicon
8
8
  import { cn } from '@sixbell-telco/sdk/utils/cn';
9
9
  import { HttpClient } from '@angular/common/http';
10
10
  import { firstValueFrom } from 'rxjs';
11
+ import { TranslatePipe } from '@ngx-translate/core';
11
12
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
12
13
  import { TimePipe } from '@sixbell-telco/sdk/utils/pipes/time';
13
14
  import { matVolumeUpOutline, matVolumeDownOutline, matVolumeMuteOutline } from '@ng-icons/material-icons/outline';
@@ -97,10 +98,29 @@ class AudioPlayerService {
97
98
  this._isInitializing.set(false);
98
99
  }
99
100
  }
101
+ init() {
102
+ this.audio = new Audio();
103
+ this.setupAudioListeners();
104
+ this.restoreVolumeSettings();
105
+ }
100
106
  cleanup() {
107
+ this.audio.pause();
108
+ this.audio.src = '';
101
109
  this.objectUrls.forEach((url) => URL.revokeObjectURL(url));
102
110
  this.objectUrls.clear();
103
- this.audio.src = ''; // Clear audio source
111
+ // reset signals
112
+ this._tracks.set([]);
113
+ this._currentTrackIndex.set(-1);
114
+ this._isPlaying.set(false);
115
+ this._duration.set(0);
116
+ this._currentTime.set(0);
117
+ this._volume.set(1);
118
+ this._isMuted.set(false);
119
+ this._lastVolume.set(1);
120
+ this._isBuffering.set(false);
121
+ this._isInitializing.set(false);
122
+ this._autoPlayNext.set(false);
123
+ this._error.set(null);
104
124
  }
105
125
  async togglePlay() {
106
126
  if (!this.checkIfTrackIsLoaded())
@@ -189,10 +209,10 @@ class AudioPlayerService {
189
209
  checkIfTrackIsLoaded() {
190
210
  return this.audio.src !== '';
191
211
  }
192
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioPlayerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
193
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioPlayerService, providedIn: 'root' });
212
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
213
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, providedIn: 'root' });
194
214
  }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioPlayerService, decorators: [{
215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerService, decorators: [{
196
216
  type: Injectable,
197
217
  args: [{ providedIn: 'root' }]
198
218
  }], ctorParameters: () => [] });
@@ -210,7 +230,7 @@ class ButtonPlayComponent {
210
230
  asButton = input(false);
211
231
  isHovered = signal(false);
212
232
  trackIndex = input.required();
213
- onTogglePlay = output();
233
+ togglePlay = output();
214
234
  iconMusicNote = heroMusicalNoteMini;
215
235
  iconPlay = matPlayArrow;
216
236
  iconPause = matPause;
@@ -221,24 +241,24 @@ class ButtonPlayComponent {
221
241
  { delay: '0.3s', class: 'h-3/5 animate-wave w-[2px] rounded-full bg-current' },
222
242
  { delay: '0.4s', class: 'h-1/5 animate-wave w-[2px] rounded-full bg-current' },
223
243
  ];
224
- get ButtonClass() {
225
- return cn('absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-200 inline-flex items-center justify-center', {
244
+ buttonClass = computed(() => {
245
+ return cn('absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-200 inline-flex items-center justify-center align-top', {
226
246
  'opacity-100': (this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex()) || this.isHovered(),
227
247
  });
228
- }
229
- get WaveBarsClass() {
248
+ });
249
+ waveBarsClass = computed(() => {
230
250
  return cn('h-6 w-6 opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200', {
231
251
  'opacity-100': this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() && !this.isHovered(),
232
252
  });
233
- }
234
- get IconClass() {
235
- return cn('opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200 inline-flex items-center justify-center', {
253
+ });
254
+ iconClass = computed(() => {
255
+ return cn('opacity-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-200 inline-flex items-center justify-center align-top text-lg', {
236
256
  'opacity-100': !this.audioService.isPlaying() || this.trackIndex() !== this.audioService.currentTrackIndex() || this.isHovered(),
237
257
  });
238
- }
239
- get Icon() {
258
+ });
259
+ icon = computed(() => {
240
260
  return this.audioService.isPlaying() && this.trackIndex() === this.audioService.currentTrackIndex() ? this.iconPause : this.iconPlay;
241
- }
261
+ });
242
262
  handleHover(isHovered) {
243
263
  this.isHovered.set(isHovered);
244
264
  }
@@ -249,14 +269,14 @@ class ButtonPlayComponent {
249
269
  else {
250
270
  await this.audioService.togglePlay();
251
271
  }
252
- this.onTogglePlay.emit();
272
+ this.togglePlay.emit();
253
273
  }
254
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonPlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
255
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: ButtonPlayComponent, isStandalone: true, selector: "st-button-play", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, trackIndex: { classPropertyName: "trackIndex", publicName: "trackIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onTogglePlay: "onTogglePlay" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded bg-gradient-to-br from-primary text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"ButtonClass\">\n\t\t\t<st-button\n\t\t\t\t[circle]=\"true\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\t[shadow]=\"true\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(click)=\"handleTogglePlay()\"\n\t\t\t\tclass=\"inline-flex items-center justify-center\"\n\t\t\t>\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t\tclass=\"inline-flex items-center justify-center\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
274
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ButtonPlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
275
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: ButtonPlayComponent, isStandalone: true, selector: "st-button-play", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, ghost: { classPropertyName: "ghost", publicName: "ghost", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null }, circle: { classPropertyName: "circle", publicName: "circle", isSignal: true, isRequired: false, transformFunction: null }, square: { classPropertyName: "square", publicName: "square", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, trackIndex: { classPropertyName: "trackIndex", publicName: "trackIndex", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { togglePlay: "togglePlay" }, ngImport: i0, template: "@let waveBarsVar = waveBarsClass();\n@let iconClassVar = iconClass();\n@let iconVar = icon();\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"from-primary to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded-sm bg-linear-to-br text-lg text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"buttonClass()\">\n\t\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" (click)=\"handleTogglePlay()\">\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
256
276
  }
257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: ButtonPlayComponent, decorators: [{
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ButtonPlayComponent, decorators: [{
258
278
  type: Component,
259
- args: [{ selector: 'st-button-play', standalone: true, imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded bg-gradient-to-br from-primary text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"ButtonClass\">\n\t\t\t<st-button\n\t\t\t\t[circle]=\"true\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\t[shadow]=\"true\"\n\t\t\t\tvariant=\"secondary\"\n\t\t\t\t(click)=\"handleTogglePlay()\"\n\t\t\t\tclass=\"inline-flex items-center justify-center\"\n\t\t\t>\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t\tclass=\"inline-flex items-center justify-center\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"WaveBarsClass\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"IconClass\">\n\t\t\t\t<st-icon [icon]=\"Icon\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n" }]
279
+ args: [{ selector: 'st-button-play', imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let waveBarsVar = waveBarsClass();\n@let iconClassVar = iconClass();\n@let iconVar = icon();\n\n@if (!asButton()) {\n\t<div\n\t\tclass=\"from-primary to-primary-gradient relative grid h-10 min-h-10 w-10 min-w-10 place-content-center rounded-sm bg-linear-to-br text-lg text-white\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\n\t\t<div [class]=\"buttonClass()\">\n\t\t\t<st-button [circle]=\"true\" size=\"sm\" [shadow]=\"true\" variant=\"secondary\" (click)=\"handleTogglePlay()\">\n\t\t\t\t<div class=\"relative h-full w-full\">\n\t\t\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</st-button>\n\t\t</div>\n\t</div>\n} @else {\n\t<st-button\n\t\t[variant]=\"variant()\"\n\t\t[ghost]=\"ghost()\"\n\t\t[outline]=\"outline()\"\n\t\t[circle]=\"circle()\"\n\t\t[square]=\"square()\"\n\t\t[glass]=\"glass()\"\n\t\t[size]=\"size()\"\n\t\t[shadow]=\"shadow()\"\n\t\t(click)=\"handleTogglePlay()\"\n\t\t(mouseenter)=\"handleHover(true)\"\n\t\t(mouseleave)=\"handleHover(false)\"\n\t>\n\t\t<div class=\"relative h-full w-full\">\n\t\t\t<div [class]=\"waveBarsVar\">\n\t\t\t\t<div class=\"flex h-full w-full items-center justify-between\">\n\t\t\t\t\t@for (bar of waveBars; track $index) {\n\t\t\t\t\t\t<div [class]=\"bar.class\" [style.--i]=\"bar.delay\"></div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div [class]=\"iconClassVar\">\n\t\t\t\t<st-icon [icon]=\"iconVar\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</st-button>\n}\n" }]
260
280
  }] });
261
281
 
262
282
  class AudioTimelineComponent {
@@ -264,12 +284,8 @@ class AudioTimelineComponent {
264
284
  audioService = inject(AudioPlayerService);
265
285
  isDragging = signal(false);
266
286
  isHovered = signal(false);
267
- get timelineClass() {
268
- return cn('relative h-1 w-full cursor-pointer rounded-full bg-neutral ', { 'h-[6px]': this.isHovered() || this.isDragging() });
269
- }
270
- get timelineCircleClass() {
271
- return cn('transition-opacity duration-200 absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main', this.isHovered() || this.isDragging() ? 'opacity-100' : 'opacity-0');
272
- }
287
+ timelineClass = computed(() => cn('relative h-1 w-full cursor-pointer rounded-full bg-neutral ', { 'h-[6px]': this.isHovered() || this.isDragging() }));
288
+ timelineCircleClass = computed(() => cn('transition-opacity duration-200 absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main', this.isHovered() || this.isDragging() ? 'opacity-100' : 'opacity-0'));
273
289
  // Handle timeline hover
274
290
  handleTimelineHover(isHovered) {
275
291
  this.isHovered.set(isHovered);
@@ -308,12 +324,12 @@ class AudioTimelineComponent {
308
324
  this.updateProgress(event);
309
325
  }
310
326
  }
311
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
312
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AudioTimelineComponent, isStandalone: true, selector: "st-timeline", host: { listeners: { "document:mousemove": "onDrag($event)", "document:touchmove": "onDrag($event)", "document:mouseup": "stopDrag()", "document:touchend": "stopDrag()" } }, viewQueries: [{ propertyName: "timeline", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-end text-tertiary\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-start text-tertiary\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TimePipe, name: "time" }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
327
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
328
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: AudioTimelineComponent, isStandalone: true, selector: "st-timeline", host: { listeners: { "document:mousemove": "onDrag($event)", "document:touchmove": "onDrag($event)", "document:mouseup": "stopDrag()", "document:touchend": "stopDrag()" } }, viewQueries: [{ propertyName: "timeline", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-end align-top select-none\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass()\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass()\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-start align-top select-none\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TimePipe, name: "time" }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
313
329
  }
314
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioTimelineComponent, decorators: [{
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioTimelineComponent, decorators: [{
315
331
  type: Component,
316
- args: [{ selector: 'st-timeline', standalone: true, imports: [CommonModule, TimePipe, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-end text-tertiary\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"inline-flex min-h-5 select-none items-center justify-start text-tertiary\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-sm\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n" }]
332
+ args: [{ selector: 'st-timeline', imports: [CommonModule, TimePipe, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Progress Bar -->\n<div class=\"grid w-full grid-cols-[1fr_5fr_1fr] items-center gap-4\">\n\t<!-- Current Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-end align-top select-none\">\n\t\t@if (!audioService.isInitializing()) {\n\t\t\t@if (audioService.isBuffering()) {\n\t\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t\t} @else {\n\t\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.currentTime() | time }}</span>\n\t\t\t}\n\t\t}\n\t</div>\n\n\t<div [class]=\"timelineClass()\" (click)=\"seek($event)\" #timeline (mouseenter)=\"handleTimelineHover(true)\" (mouseleave)=\"handleTimelineHover(false)\">\n\t\t<!-- Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"(audioService.currentTime() / audioService.duration()) * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Circle -->\n\t\t<div\n\t\t\t[style.left]=\"\n\t\t\t\t'calc(' +\n\t\t\t\t(audioService.currentTime() / audioService.duration()) * 100 +\n\t\t\t\t'% - ' +\n\t\t\t\t(audioService.currentTime() / audioService.duration() === 1 ? '6px' : '3px') +\n\t\t\t\t')'\n\t\t\t\"\n\t\t\t[class]=\"timelineCircleClass()\"\n\t\t\t#circle\n\t\t\t(mousedown)=\"startDrag($event)\"\n\t\t\t(touchstart)=\"startDrag($event)\"\n\t\t></div>\n\t</div>\n\n\t<!-- Total Time Display -->\n\t<div class=\"text-tertiary inline-flex min-h-5 items-center justify-start align-top select-none\">\n\t\t@if (audioService.isInitializing()) {\n\t\t\t<span class=\"loading loading-ring loading-xs\"></span>\n\t\t} @else {\n\t\t\t<span typography tyVariant=\"body-xxs\">{{ audioService.duration() | time }}</span>\n\t\t}\n\t</div>\n</div>\n" }]
317
333
  }], propDecorators: { onDrag: [{
318
334
  type: HostListener,
319
335
  args: ['document:mousemove', ['$event']]
@@ -331,12 +347,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
331
347
  class TrackInfoComponent {
332
348
  currentTrack = input();
333
349
  iconMusicNote = heroMusicalNoteMini;
334
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TrackInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
335
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: TrackInfoComponent, isStandalone: true, selector: "st-track-info", inputs: { currentTrack: { classPropertyName: "currentTrack", publicName: "currentTrack", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded bg-gradient-to-br from-primary text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'No title' }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'No description' }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"pointer-events-none absolute inset-y-0 right-0 w-12 bg-gradient-to-l from-base-200 to-transparent\"></div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
350
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TrackInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
351
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", type: TrackInfoComponent, isStandalone: true, selector: "st-track-info", inputs: { currentTrack: { classPropertyName: "currentTrack", publicName: "currentTrack", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"from-primary to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded-sm bg-linear-to-br text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\" size=\"md\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'sdk.audioPlayer.trackInfo.title' | translate }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'sdk.audioPlayer.trackInfo.description' | translate }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"from-base-200 pointer-events-none absolute inset-y-0 right-0 w-12 bg-linear-to-l to-transparent\"></div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
336
352
  }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TrackInfoComponent, decorators: [{
353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: TrackInfoComponent, decorators: [{
338
354
  type: Component,
339
- args: [{ selector: 'st-track-info', standalone: true, imports: [IconComponent, CommonModule, TypographyDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded bg-gradient-to-br from-primary text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'No title' }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'No description' }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"pointer-events-none absolute inset-y-0 right-0 w-12 bg-gradient-to-l from-base-200 to-transparent\"></div>\n</div>\n" }]
355
+ args: [{ selector: 'st-track-info', imports: [IconComponent, CommonModule, TypographyDirective, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"relative flex max-w-80 items-center gap-4 overflow-x-hidden whitespace-nowrap\">\n\t<div class=\"flex items-center gap-3\">\n\t\t<!-- Album/Track Icon -->\n\t\t<div class=\"from-primary to-primary-gradient grid h-12 min-h-12 w-12 min-w-12 place-content-center rounded-sm bg-linear-to-br text-white\">\n\t\t\t<st-icon [icon]=\"iconMusicNote\" size=\"md\"></st-icon>\n\t\t</div>\n\n\t\t<!-- Track Info -->\n\t\t@let currentTrackVar = this.currentTrack();\n\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t<p typography tyVariant=\"body\" tyFontWeight=\"medium\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.title ?? 'sdk.audioPlayer.trackInfo.title' | translate }}\n\t\t\t</p>\n\t\t\t<p typography tyVariant=\"body-sm\" tyFontWeight=\"normal\" tyColor=\"base\">\n\t\t\t\t{{ currentTrackVar?.description ?? 'sdk.audioPlayer.trackInfo.description' | translate }}\n\t\t\t</p>\n\t\t</div>\n\t</div>\n\t<div class=\"from-base-200 pointer-events-none absolute inset-y-0 right-0 w-12 bg-linear-to-l to-transparent\"></div>\n</div>\n" }]
340
356
  }] });
341
357
 
342
358
  class VolumeControlComponent {
@@ -347,12 +363,14 @@ class VolumeControlComponent {
347
363
  iconVolumeUp = matVolumeUpOutline;
348
364
  iconVolumeDown = matVolumeDownOutline;
349
365
  iconVolumeMute = matVolumeMuteOutline;
350
- get volumeTimelineClass() {
351
- return cn('relative h-1 w-20 cursor-pointer rounded-full bg-neutral', { 'h-[6px]': this.isVolumeHovered() || this.isVolumeDragging() });
352
- }
353
- get volumeTimelineCircleClass() {
366
+ volumeTimelineClass = computed(() => {
367
+ return cn('relative h-1 w-20 cursor-pointer rounded-full bg-neutral', {
368
+ 'h-[6px]': this.isVolumeHovered() || this.isVolumeDragging(),
369
+ });
370
+ });
371
+ volumeTimelineCircleClass = computed(() => {
354
372
  return cn('absolute top-1/2 h-3 w-3 -translate-y-1/2 transform cursor-grab rounded-full bg-tertiary shadow-main transition-opacity duration-200', this.isVolumeHovered() || this.isVolumeDragging() ? 'opacity-100' : 'opacity-0');
355
- }
373
+ });
356
374
  // Handle volume hover
357
375
  handleVolumeHover(isHovered) {
358
376
  this.isVolumeHovered.set(isHovered);
@@ -394,12 +412,12 @@ class VolumeControlComponent {
394
412
  toggleMute() {
395
413
  this.audioService.setMuted(!this.audioService.isMuted());
396
414
  }
397
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: VolumeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
398
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: VolumeControlComponent, isStandalone: true, selector: "st-volume-control", host: { listeners: { "document:mousemove": "onVolumeDrag($event)", "document:touchmove": "onVolumeDrag($event)", "document:mouseup": "stopVolumeDrag()", "document:touchend": "stopVolumeDrag()" } }, viewQueries: [{ propertyName: "volumeTimeline", first: true, predicate: ["volumeTimeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass\"\n\t\t(click)=\"seekVolume($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass\"\n\t\t\t#volumeCircle\n\t\t\t(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
415
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VolumeControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
416
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: VolumeControlComponent, isStandalone: true, selector: "st-volume-control", host: { listeners: { "document:mousemove": "onVolumeDrag($event)", "document:touchmove": "onVolumeDrag($event)", "document:mouseup": "stopVolumeDrag()", "document:touchend": "stopVolumeDrag()" } }, viewQueries: [{ propertyName: "volumeTimeline", first: true, predicate: ["volumeTimeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\" size=\"sm\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\" size=\"sm\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\" size=\"sm\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass()\"\n\t\t(click)=\"seekVolume($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass()\"\n\t\t\t#volumeCircle\n\t\t\t(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
399
417
  }
400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: VolumeControlComponent, decorators: [{
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VolumeControlComponent, decorators: [{
401
419
  type: Component,
402
- args: [{ selector: 'st-volume-control', standalone: true, imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass\"\n\t\t(click)=\"seekVolume($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"absolute h-full rounded-full bg-primary\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass\"\n\t\t\t#volumeCircle\n\t\t\t(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n" }]
420
+ args: [{ selector: 'st-volume-control', imports: [IconComponent, CommonModule, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<!-- Volume Control -->\n<div class=\"flex items-center justify-end gap-2\">\n\t<!-- Mute/Unmute Button -->\n\t<st-button [ghost]=\"true\" size=\"sm\" [circle]=\"true\" (click)=\"toggleMute()\">\n\t\t@if (audioService.volume() === 0) {\n\t\t\t<st-icon [icon]=\"iconVolumeMute\" size=\"sm\"></st-icon>\n\t\t} @else if (audioService.volume() > 0.5) {\n\t\t\t<st-icon [icon]=\"iconVolumeUp\" size=\"sm\"></st-icon>\n\t\t} @else {\n\t\t\t<st-icon [icon]=\"iconVolumeDown\" size=\"sm\"></st-icon>\n\t\t}\n\t</st-button>\n\n\t<!-- Custom Volume Progress Bar -->\n\t<div\n\t\t[class]=\"volumeTimelineClass()\"\n\t\t(click)=\"seekVolume($event)\"\n\t\t#volumeTimeline\n\t\t(mouseenter)=\"handleVolumeHover(true)\"\n\t\t(mouseleave)=\"handleVolumeHover(false)\"\n\t>\n\t\t<!-- Volume Progress Bar Background -->\n\t\t<div class=\"bg-primary absolute h-full rounded-full\" [style.width]=\"audioService.volume() * 100 + '%'\"></div>\n\n\t\t<!-- Draggable Volume Circle -->\n\t\t<div\n\t\t\t[style.left]=\"'calc(' + audioService.volume() * 100 + '% - ' + (audioService.volume() === 1 ? '6px' : '3px') + ')'\"\n\t\t\t[class]=\"volumeTimelineCircleClass()\"\n\t\t\t#volumeCircle\n\t\t\t(mousedown)=\"startVolumeDrag($event)\"\n\t\t\t(touchstart)=\"startVolumeDrag($event)\"\n\t\t></div>\n\t</div>\n</div>\n" }]
403
421
  }], propDecorators: { onVolumeDrag: [{
404
422
  type: HostListener,
405
423
  args: ['document:mousemove', ['$event']]
@@ -415,43 +433,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
415
433
  }] } });
416
434
 
417
435
  class AudioPlayerComponent {
436
+ audioPlayerService = inject(AudioPlayerService);
418
437
  variant = input('default');
419
- opened = input(false);
420
- trackListTitle = input('Tracks');
421
- currentTrackIndex = model(-1);
438
+ shadow = input(false);
439
+ opened = model(false);
422
440
  tracks = input([]);
423
441
  showTrackList = input(false);
442
+ currentTrackIndex = model(-1);
443
+ currentTrack = computed(() => {
444
+ const tracks = this.tracks();
445
+ return this.currentTrackIndex() >= 0 && tracks ? tracks[this.currentTrackIndex()] : undefined;
446
+ });
424
447
  iconSkipPrevious = matSkipPrevious;
425
448
  iconSkipNext = matSkipNext;
426
449
  iconPlay = matPlayArrow;
427
450
  iconPause = matPause;
428
451
  iconMusicNote = heroMusicalNoteMini;
429
- shadow = input(false);
430
- audioPlayerService = inject(AudioPlayerService);
452
+ offScreen = signal(false);
453
+ playerClass = computed(() => cn('grid w-full grid-cols-[minmax(0,1fr)_minmax(0,2fr)_minmax(0,1fr)] items-center gap-4 relative translate-y-0', {
454
+ 'shadow-main': this.shadow(),
455
+ }, {
456
+ 'fixed bottom-0 left-0 bg-base-200 p-4 z-50 border-t border-neutral transform transition-transform duration-300': this.variant() === 'fixed',
457
+ }, {
458
+ 'animate-fade-in-up animate-steps-modern animate-duration-300': this.opened() && this.variant() === 'fixed',
459
+ }, {
460
+ 'animate-fade-out-down animate-steps-modern animate-duration-300': !this.opened() && this.variant() === 'fixed',
461
+ }, {
462
+ 'invisible pointer-events-none -z-10 fixed bottom-5': this.offScreen() && this.variant() === 'fixed',
463
+ }));
431
464
  constructor() {
432
465
  // Sync tracks with service
433
466
  effect(() => {
434
467
  this.audioPlayerService.setTracks(this.tracks());
435
- }, { allowSignalWrites: true });
468
+ });
436
469
  // One-way sync from service to component
437
470
  effect(() => {
438
471
  this.currentTrackIndex.set(this.audioPlayerService.currentTrackIndex());
439
- }, { allowSignalWrites: true });
440
- }
441
- get playerClass() {
442
- return cn('grid w-full grid-cols-[2fr_3fr_1fr] items-center gap-4', {
443
- 'shadow-main': this.shadow(),
444
- }, {
445
- 'fixed bottom-0 left-0 bg-base-200 p-4 z-50 border-t border-neutral': this.variant() === 'fixed',
446
- }, {
447
- 'animate-fade-in-up animate-steps-modern animate-duration-300': this.opened() && this.variant() === 'fixed',
448
- }, {
449
- 'animate-fade-out-down animate-steps-modern animate-duration-300': !this.opened() && this.variant() === 'fixed',
450
472
  });
451
473
  }
452
- get currentTrack() {
453
- const tracks = this.tracks();
454
- return this.currentTrackIndex() >= 0 && tracks ? tracks[this.currentTrackIndex()] : undefined;
474
+ entering = signal(false);
475
+ leaving = signal(false);
476
+ handleAnimationEnd(event) {
477
+ if (this.variant() !== 'fixed')
478
+ return;
479
+ if (event.animationName === 'fade-out-down' && !this.opened()) {
480
+ this.offScreen.set(true);
481
+ this.leaving.set(false);
482
+ }
483
+ if (event.animationName === 'fade-in-up' && this.opened()) {
484
+ this.entering.set(false);
485
+ }
486
+ }
487
+ handleAnimationStart(event) {
488
+ if (this.variant() !== 'fixed')
489
+ return;
490
+ if (event.animationName === 'fade-in-up' && this.opened()) {
491
+ this.offScreen.set(false);
492
+ this.entering.set(true);
493
+ }
494
+ if (event.animationName === 'fade-out-down' && !this.opened()) {
495
+ this.leaving.set(true);
496
+ }
455
497
  }
456
498
  // Simplify methods to call service
457
499
  async playTrack(index) {
@@ -466,15 +508,21 @@ class AudioPlayerComponent {
466
508
  async next() {
467
509
  await this.audioPlayerService.next();
468
510
  }
511
+ handleOpen() {
512
+ this.opened.set(true);
513
+ }
514
+ handleClose() {
515
+ this.opened.set(false);
516
+ }
469
517
  ngOnDestroy() {
470
518
  this.audioPlayerService.cleanup();
471
519
  }
472
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
473
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AudioPlayerComponent, isStandalone: true, selector: "st-audio-player", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, trackListTitle: { classPropertyName: "trackListTitle", publicName: "trackListTitle", isSignal: true, isRequired: false, transformFunction: null }, currentTrackIndex: { classPropertyName: "currentTrackIndex", publicName: "currentTrackIndex", isSignal: true, isRequired: false, transformFunction: null }, tracks: { classPropertyName: "tracks", publicName: "tracks", isSignal: true, isRequired: false, transformFunction: null }, showTrackList: { classPropertyName: "showTrackList", publicName: "showTrackList", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentTrackIndex: "currentTrackIndexChange" }, ngImport: i0, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"mb-4 rounded-box border border-neutral shadow-sm\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 typography tyVariant=\"h4\">{{ trackListTitle() }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"flex cursor-pointer items-center gap-2 rounded-btn p-2 hover:bg-base-300\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass\">\n\t\t<!-- track info -->\n\t\t<st-track-info [currentTrack]=\"currentTrack\"></st-track-info>\n\n\t\t<div class=\"grid items-center\">\n\t\t\t<!-- Controls -->\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [icon]=\"iconSkipPrevious\" [circle]=\"true\" size=\"sm\"> </st-button>\n\n\t\t\t\t<st-button (click)=\"togglePlay()\" [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\n\t\t\t\t</st-button>\n\n\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [icon]=\"iconSkipNext\" [circle]=\"true\" size=\"sm\"> </st-button>\n\t\t\t</div>\n\n\t\t\t<!-- Progress Bar -->\n\t\t\t<st-timeline></st-timeline>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<st-volume-control></st-volume-control>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "block", "loader", "size", "shadow", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: VolumeControlComponent, selector: "st-volume-control" }, { kind: "component", type: TrackInfoComponent, selector: "st-track-info", inputs: ["currentTrack"] }, { kind: "component", type: AudioTimelineComponent, selector: "st-timeline" }, { kind: "component", type: ButtonPlayComponent, selector: "st-button-play", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "size", "shadow", "asButton", "trackIndex"], outputs: ["onTogglePlay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
520
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
521
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", type: AudioPlayerComponent, isStandalone: true, selector: "st-audio-player", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, tracks: { classPropertyName: "tracks", publicName: "tracks", isSignal: true, isRequired: false, transformFunction: null }, showTrackList: { classPropertyName: "showTrackList", publicName: "showTrackList", isSignal: true, isRequired: false, transformFunction: null }, currentTrackIndex: { classPropertyName: "currentTrackIndex", publicName: "currentTrackIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", currentTrackIndex: "currentTrackIndexChange" }, ngImport: i0, template: "<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"rounded-box border-neutral shadow-main mb-4 border\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 typography tyVariant=\"h4\">{{ 'sdk.audioPlayer.trackListTitle' | translate }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"rounded-field hover:bg-base-300 flex cursor-pointer items-center gap-2 p-2\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\" (click)=\"handleOpen()\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass()\" (animationend)=\"handleAnimationEnd($event)\" (animationstart)=\"handleAnimationStart($event)\">\n\t\t<!-- close button -->\n\t\t@if (variant() === 'fixed') {\n\t\t\t<div\n\t\t\t\tclass=\"group/close btn btn-ghost btn-square btn-primary btn-xs absolute top-1 right-1 grid place-content-center gap-0 hover:cursor-pointer\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t(keydown.enter)=\"handleClose()\"\n\t\t\t\taria-label=\"Close player\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content relative h-0.5 w-4 translate-y-0.5 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:rotate-45 group-hover/close:rotate-45 group-active/close:rotate-45\"\n\t\t\t\t></div>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content h-0.5 w-4 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:-rotate-45 group-hover/close:-rotate-45 group-active/close:-rotate-45\"\n\t\t\t\t></div>\n\t\t\t</div>\n\t\t}\n\n\t\t<!-- track info -->\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Added min-w-0 to prevent overflow -->\n\t\t\t<st-track-info [currentTrack]=\"currentTrack()\"></st-track-info>\n\t\t</div>\n\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Center section -->\n\t\t\t<!-- Your controls content -->\n\t\t\t<div class=\"grid items-center\">\n\t\t\t\t<!-- Controls -->\n\t\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipPrevious\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"togglePlay()\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\n\t\t\t\t\t\t<st-icon [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipNext\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Progress Bar -->\n\t\t\t\t<st-timeline></st-timeline>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<div class=\"min-w-0 justify-self-end\">\n\t\t\t<!-- Right-aligned -->\n\t\t\t<st-volume-control></st-volume-control>\n\t\t</div>\n\t</div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled"] }, { kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight", "tyTextOverflow"] }, { kind: "component", type: VolumeControlComponent, selector: "st-volume-control" }, { kind: "component", type: TrackInfoComponent, selector: "st-track-info", inputs: ["currentTrack"] }, { kind: "component", type: AudioTimelineComponent, selector: "st-timeline" }, { kind: "component", type: ButtonPlayComponent, selector: "st-button-play", inputs: ["variant", "ghost", "outline", "circle", "square", "glass", "size", "shadow", "asButton", "trackIndex"], outputs: ["togglePlay"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
474
522
  }
475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AudioPlayerComponent, decorators: [{
523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: AudioPlayerComponent, decorators: [{
476
524
  type: Component,
477
- args: [{ selector: 'st-audio-player', standalone: true, imports: [
525
+ args: [{ selector: 'st-audio-player', imports: [
478
526
  CommonModule,
479
527
  ButtonComponent,
480
528
  TypographyDirective,
@@ -482,7 +530,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
482
530
  TrackInfoComponent,
483
531
  AudioTimelineComponent,
484
532
  ButtonPlayComponent,
485
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- eslint-disable @angular-eslint/template/interactive-supports-focus -->\n<!-- eslint-disable @angular-eslint/template/click-events-have-key-events -->\n\n<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"mb-4 rounded-box border border-neutral shadow-sm\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 typography tyVariant=\"h4\">{{ trackListTitle() }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"flex cursor-pointer items-center gap-2 rounded-btn p-2 hover:bg-base-300\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass\">\n\t\t<!-- track info -->\n\t\t<st-track-info [currentTrack]=\"currentTrack\"></st-track-info>\n\n\t\t<div class=\"grid items-center\">\n\t\t\t<!-- Controls -->\n\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [icon]=\"iconSkipPrevious\" [circle]=\"true\" size=\"sm\"> </st-button>\n\n\t\t\t\t<st-button (click)=\"togglePlay()\" [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\n\t\t\t\t</st-button>\n\n\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [icon]=\"iconSkipNext\" [circle]=\"true\" size=\"sm\"> </st-button>\n\t\t\t</div>\n\n\t\t\t<!-- Progress Bar -->\n\t\t\t<st-timeline></st-timeline>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<st-volume-control></st-volume-control>\n\t</div>\n</div>\n" }]
533
+ TranslatePipe,
534
+ IconComponent,
535
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex w-full flex-col gap-4\">\n\t<!-- Track List -->\n\t@if (showTrackList()) {\n\t\t<div class=\"rounded-box border-neutral shadow-main mb-4 border\">\n\t\t\t<div class=\"p-4\">\n\t\t\t\t<h4 typography tyVariant=\"h4\">{{ 'sdk.audioPlayer.trackListTitle' | translate }}</h4>\n\t\t\t\t<div class=\"max-h-[300px] space-y-2 overflow-y-auto\">\n\t\t\t\t\t@for (track of tracks(); track $index; let i = $index) {\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"rounded-field hover:bg-base-300 flex cursor-pointer items-center gap-2 p-2\"\n\t\t\t\t\t\t\t[class.bg-base-300]=\"audioPlayerService.currentTrackIndex() === i\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<st-button-play [trackIndex]=\"i\" (click)=\"handleOpen()\"> </st-button-play>\n\t\t\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body\">{{ track.title }}</div>\n\t\t\t\t\t\t\t\t<div typography tyVariant=\"body-sm\">{{ track.description }}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t}\n\n\t<div [class]=\"playerClass()\" (animationend)=\"handleAnimationEnd($event)\" (animationstart)=\"handleAnimationStart($event)\">\n\t\t<!-- close button -->\n\t\t@if (variant() === 'fixed') {\n\t\t\t<div\n\t\t\t\tclass=\"group/close btn btn-ghost btn-square btn-primary btn-xs absolute top-1 right-1 grid place-content-center gap-0 hover:cursor-pointer\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t\t(click)=\"handleClose()\"\n\t\t\t\t(keydown.enter)=\"handleClose()\"\n\t\t\t\taria-label=\"Close player\"\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content relative h-0.5 w-4 translate-y-0.5 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:rotate-45 group-hover/close:rotate-45 group-active/close:rotate-45\"\n\t\t\t\t></div>\n\t\t\t\t<div\n\t\t\t\t\tclass=\"bg-primary group-hover/close:bg-primary-content group-active/close:bg-primary-content group-focus-within/close:bg-primary-content h-0.5 w-4 rounded-full transition-transform duration-300 ease-in-out group-focus-within/close:-rotate-45 group-hover/close:-rotate-45 group-active/close:-rotate-45\"\n\t\t\t\t></div>\n\t\t\t</div>\n\t\t}\n\n\t\t<!-- track info -->\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Added min-w-0 to prevent overflow -->\n\t\t\t<st-track-info [currentTrack]=\"currentTrack()\"></st-track-info>\n\t\t</div>\n\n\t\t<div class=\"min-w-0\">\n\t\t\t<!-- Center section -->\n\t\t\t<!-- Your controls content -->\n\t\t\t<div class=\"grid items-center\">\n\t\t\t\t<!-- Controls -->\n\t\t\t\t<div class=\"flex items-center justify-center gap-2\">\n\t\t\t\t\t<st-button (click)=\"previous()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipPrevious\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"togglePlay()\" [circle]=\"true\" size=\"sm\" [shadow]=\"true\">\n\t\t\t\t\t\t<st-icon [icon]=\"audioPlayerService.isPlaying() ? iconPause : iconPlay\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\n\t\t\t\t\t<st-button (click)=\"next()\" [ghost]=\"true\" [circle]=\"true\" size=\"sm\">\n\t\t\t\t\t\t<st-icon [icon]=\"iconSkipNext\" size=\"sm\"></st-icon>\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- Progress Bar -->\n\t\t\t\t<st-timeline></st-timeline>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Volume Control -->\n\t\t<div class=\"min-w-0 justify-self-end\">\n\t\t\t<!-- Right-aligned -->\n\t\t\t<st-volume-control></st-volume-control>\n\t\t</div>\n\t</div>\n</div>\n" }]
486
536
  }], ctorParameters: () => [] });
487
537
 
488
538
  /**