@mintplayer/ng-bootstrap 21.31.0 → 21.33.0

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 (280) hide show
  1. package/package.json +1 -373
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +0 -455
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +0 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +0 -94
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +0 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +0 -45
  7. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +0 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +0 -24
  9. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +0 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +0 -35
  11. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +0 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +0 -21
  13. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +0 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +0 -36
  15. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +0 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  17. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +0 -210
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +0 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +0 -33
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +0 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +0 -270
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +0 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +0 -25
  25. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +0 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +0 -44
  27. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +0 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +0 -654
  29. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +0 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  31. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +0 -88
  33. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +0 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +0 -46
  35. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +0 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +0 -181
  37. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +0 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +0 -30
  39. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +0 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +0 -4101
  41. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +0 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  43. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -195
  45. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +0 -326
  47. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +0 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +0 -62
  49. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +0 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +0 -38
  51. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +0 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +0 -135
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +0 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +0 -25
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +0 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +0 -34
  57. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +0 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +0 -41
  59. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +0 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +0 -59
  61. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +0 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +0 -122
  63. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +0 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs +0 -4
  65. package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs.map +0 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  67. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +0 -23
  69. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +0 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +0 -23
  71. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +0 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +0 -18
  73. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +0 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +0 -183
  75. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +0 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-let.mjs +0 -46
  77. package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +0 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +0 -28
  79. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +0 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +0 -33
  81. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +0 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +0 -118
  83. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +0 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +0 -21
  85. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +0 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +0 -240
  87. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +0 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +0 -693
  89. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +0 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +0 -136
  91. package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +0 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +0 -29
  93. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +0 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +0 -629
  95. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +0 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +0 -205
  97. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +0 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  99. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +0 -366
  101. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +0 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +0 -36
  103. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +0 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +0 -188
  105. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +0 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +0 -26
  107. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +0 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +0 -64
  109. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +0 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +0 -29
  111. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +0 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +0 -246
  113. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +0 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +0 -250
  115. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +0 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +0 -68
  117. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +0 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +0 -75
  119. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +0 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +0 -79
  121. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +0 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +0 -59
  123. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +0 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +0 -387
  125. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +0 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +0 -237
  127. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +0 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +0 -120
  129. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +0 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +0 -194
  131. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +0 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +0 -213
  133. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +0 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +0 -205
  135. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +0 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +0 -52
  137. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +0 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +0 -76
  139. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +0 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +0 -30
  141. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +0 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +0 -26
  143. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +0 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +0 -25
  145. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +0 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +0 -46
  147. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +0 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +0 -124
  149. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +0 -1
  150. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +0 -40
  151. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +0 -1
  152. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +0 -1446
  153. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +0 -1
  154. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +0 -104
  155. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +0 -1
  156. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +0 -163
  157. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +0 -1
  158. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +0 -236
  159. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +0 -1
  160. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +0 -174
  161. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +0 -1
  162. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +0 -100
  163. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +0 -1
  164. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +0 -28
  165. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +0 -1
  166. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +0 -111
  167. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +0 -1
  168. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +0 -24
  169. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +0 -1
  170. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +0 -94
  171. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +0 -1
  172. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +0 -48
  173. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +0 -1
  174. package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs +0 -282
  175. package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs.map +0 -1
  176. package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs +0 -74
  177. package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs.map +0 -1
  178. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs +0 -1356
  179. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs.map +0 -1
  180. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs +0 -5224
  181. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs.map +0 -1
  182. package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs +0 -923
  183. package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs.map +0 -1
  184. package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs +0 -553
  185. package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs.map +0 -1
  186. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +0 -34
  187. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +0 -1
  188. package/types/mintplayer-ng-bootstrap-a11y.d.ts +0 -196
  189. package/types/mintplayer-ng-bootstrap-accordion.d.ts +0 -39
  190. package/types/mintplayer-ng-bootstrap-alert.d.ts +0 -21
  191. package/types/mintplayer-ng-bootstrap-badge.d.ts +0 -12
  192. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +0 -14
  193. package/types/mintplayer-ng-bootstrap-button-group.d.ts +0 -9
  194. package/types/mintplayer-ng-bootstrap-button-type.d.ts +0 -12
  195. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  196. package/types/mintplayer-ng-bootstrap-calendar.d.ts +0 -57
  197. package/types/mintplayer-ng-bootstrap-card.d.ts +0 -15
  198. package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -121
  199. package/types/mintplayer-ng-bootstrap-close.d.ts +0 -10
  200. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +0 -20
  201. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +0 -236
  202. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  203. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +0 -21
  204. package/types/mintplayer-ng-bootstrap-copy.d.ts +0 -12
  205. package/types/mintplayer-ng-bootstrap-datatable.d.ts +0 -63
  206. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +0 -13
  207. package/types/mintplayer-ng-bootstrap-dock.d.ts +0 -419
  208. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  209. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -66
  210. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +0 -102
  211. package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +0 -20
  212. package/types/mintplayer-ng-bootstrap-enum.d.ts +0 -17
  213. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +0 -51
  214. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +0 -9
  215. package/types/mintplayer-ng-bootstrap-font-color.d.ts +0 -10
  216. package/types/mintplayer-ng-bootstrap-for.d.ts +0 -13
  217. package/types/mintplayer-ng-bootstrap-form.d.ts +0 -24
  218. package/types/mintplayer-ng-bootstrap-grid.d.ts +0 -50
  219. package/types/mintplayer-ng-bootstrap-has-id.d.ts +0 -5
  220. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  221. package/types/mintplayer-ng-bootstrap-has-property.d.ts +0 -10
  222. package/types/mintplayer-ng-bootstrap-in-list.d.ts +0 -11
  223. package/types/mintplayer-ng-bootstrap-input-group.d.ts +0 -8
  224. package/types/mintplayer-ng-bootstrap-instance-of.d.ts +0 -74
  225. package/types/mintplayer-ng-bootstrap-let.d.ts +0 -44
  226. package/types/mintplayer-ng-bootstrap-linify.d.ts +0 -10
  227. package/types/mintplayer-ng-bootstrap-list-group.d.ts +0 -14
  228. package/types/mintplayer-ng-bootstrap-markdown.d.ts +0 -33
  229. package/types/mintplayer-ng-bootstrap-marquee.d.ts +0 -9
  230. package/types/mintplayer-ng-bootstrap-modal.d.ts +0 -82
  231. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +0 -170
  232. package/types/mintplayer-ng-bootstrap-multiselect.d.ts +0 -58
  233. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +0 -13
  234. package/types/mintplayer-ng-bootstrap-navbar.d.ts +0 -189
  235. package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +0 -117
  236. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
  237. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +0 -106
  238. package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +0 -12
  239. package/types/mintplayer-ng-bootstrap-pagination.d.ts +0 -40
  240. package/types/mintplayer-ng-bootstrap-parallax.d.ts +0 -11
  241. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +0 -23
  242. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +0 -13
  243. package/types/mintplayer-ng-bootstrap-popover.d.ts +0 -67
  244. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +0 -64
  245. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +0 -27
  246. package/types/mintplayer-ng-bootstrap-range.d.ts +0 -28
  247. package/types/mintplayer-ng-bootstrap-rating.d.ts +0 -20
  248. package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
  249. package/types/mintplayer-ng-bootstrap-resizable.d.ts +0 -89
  250. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +0 -171
  251. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +0 -36
  252. package/types/mintplayer-ng-bootstrap-searchbox.d.ts +0 -65
  253. package/types/mintplayer-ng-bootstrap-select.d.ts +0 -65
  254. package/types/mintplayer-ng-bootstrap-select2.d.ts +0 -61
  255. package/types/mintplayer-ng-bootstrap-shell.d.ts +0 -26
  256. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +0 -36
  257. package/types/mintplayer-ng-bootstrap-slugify.d.ts +0 -10
  258. package/types/mintplayer-ng-bootstrap-spinner.d.ts +0 -14
  259. package/types/mintplayer-ng-bootstrap-split-string.d.ts +0 -10
  260. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +0 -21
  261. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +0 -50
  262. package/types/mintplayer-ng-bootstrap-table.d.ts +0 -24
  263. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +0 -304
  264. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +0 -26
  265. package/types/mintplayer-ng-bootstrap-toast.d.ts +0 -67
  266. package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +0 -57
  267. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +0 -29
  268. package/types/mintplayer-ng-bootstrap-treeview.d.ts +0 -44
  269. package/types/mintplayer-ng-bootstrap-trust-html.d.ts +0 -12
  270. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +0 -34
  271. package/types/mintplayer-ng-bootstrap-uc-first.d.ts +0 -10
  272. package/types/mintplayer-ng-bootstrap-user-agent.d.ts +0 -27
  273. package/types/mintplayer-ng-bootstrap-viewport.d.ts +0 -16
  274. package/types/mintplayer-ng-bootstrap-virtual-datatable.d.ts +0 -68
  275. package/types/mintplayer-ng-bootstrap-web-components-a11y.d.ts +0 -34
  276. package/types/mintplayer-ng-bootstrap-web-components-scheduler-core.d.ts +0 -914
  277. package/types/mintplayer-ng-bootstrap-web-components-scheduler.d.ts +0 -600
  278. package/types/mintplayer-ng-bootstrap-web-components-splitter.d.ts +0 -223
  279. package/types/mintplayer-ng-bootstrap-web-components-tab-control.d.ts +0 -95
  280. package/types/mintplayer-ng-bootstrap-word-count.d.ts +0 -10
@@ -1,654 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { viewChild, input, model, signal, computed, ChangeDetectionStrategy, Component, Directive, inject, forwardRef, output, effect } from '@angular/core';
3
- import * as i2 from '@angular/forms';
4
- import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
5
- import { Subject } from 'rxjs';
6
- import { BsToggleButtonComponent } from '@mintplayer/ng-bootstrap/toggle-button';
7
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
8
-
9
- /**
10
- * Single source of truth for color-space conversions used by the picker.
11
- *
12
- * Conventions across this module:
13
- * - hue is in degrees [0, 360)
14
- * - saturation, lightness, value, alpha are in [0, 1]
15
- * - r, g, b are in [0, 255] (integer on the way out, real-valued internally)
16
- * - hex is "#RRGGBB" — three-digit "#RGB" is accepted on parse only
17
- */
18
- const TWO_PI = Math.PI * 2;
19
- const clamp01 = (n) => Math.max(0, Math.min(1, n));
20
- const clamp255 = (n) => Math.max(0, Math.min(255, Math.round(n)));
21
- const HEX6_RE = /^[0-9a-fA-F]{6}$/;
22
- const BLACK = { r: 0, g: 0, b: 0 };
23
- function hex2rgb(hex) {
24
- const stripped = hex.startsWith('#') ? hex.slice(1) : hex;
25
- const expanded = stripped.length === 3
26
- ? stripped.split('').map(c => c + c).join('')
27
- : stripped;
28
- if (!HEX6_RE.test(expanded))
29
- return { ...BLACK };
30
- return {
31
- r: parseInt(expanded.slice(0, 2), 16),
32
- g: parseInt(expanded.slice(2, 4), 16),
33
- b: parseInt(expanded.slice(4, 6), 16),
34
- };
35
- }
36
- function rgb2hex(rgb) {
37
- const r = clamp255(rgb.r);
38
- const g = clamp255(rgb.g);
39
- const b = clamp255(rgb.b);
40
- return '#' + ((r << 16) + (g << 8) + b).toString(16).padStart(6, '0');
41
- }
42
- function rgb2hsv(rgb) {
43
- const r = rgb.r / 255;
44
- const g = rgb.g / 255;
45
- const b = rgb.b / 255;
46
- const max = Math.max(r, g, b);
47
- const min = Math.min(r, g, b);
48
- const d = max - min;
49
- const value = max;
50
- const saturation = max === 0 ? 0 : d / max;
51
- const hue = d === 0 ? 0 : hueFromRgb(r, g, b, max, d);
52
- return { hue, saturation, value };
53
- }
54
- function hsv2rgb(hsv) {
55
- const s = clamp01(hsv.saturation);
56
- const v = clamp01(hsv.value);
57
- const h = ((hsv.hue % 360) + 360) % 360;
58
- const c = v * s;
59
- const hp = h / 60;
60
- const x = c * (1 - Math.abs((hp % 2) - 1));
61
- const m = v - c;
62
- let r1 = 0, g1 = 0, b1 = 0;
63
- if (hp < 1) {
64
- r1 = c;
65
- g1 = x;
66
- }
67
- else if (hp < 2) {
68
- r1 = x;
69
- g1 = c;
70
- }
71
- else if (hp < 3) {
72
- g1 = c;
73
- b1 = x;
74
- }
75
- else if (hp < 4) {
76
- g1 = x;
77
- b1 = c;
78
- }
79
- else if (hp < 5) {
80
- r1 = x;
81
- b1 = c;
82
- }
83
- else {
84
- r1 = c;
85
- b1 = x;
86
- }
87
- return {
88
- r: (r1 + m) * 255,
89
- g: (g1 + m) * 255,
90
- b: (b1 + m) * 255,
91
- };
92
- }
93
- function rgb2hsl(rgb) {
94
- const r = rgb.r / 255;
95
- const g = rgb.g / 255;
96
- const b = rgb.b / 255;
97
- const max = Math.max(r, g, b);
98
- const min = Math.min(r, g, b);
99
- const d = max - min;
100
- const luminosity = (max + min) / 2;
101
- const saturation = d === 0
102
- ? 0
103
- : d / (1 - Math.abs(2 * luminosity - 1));
104
- const hue = d === 0 ? 0 : hueFromRgb(r, g, b, max, d);
105
- return { hue, saturation, luminosity };
106
- }
107
- function hsl2rgb(hsl) {
108
- return hsv2rgb(hsl2hsv(hsl));
109
- }
110
- function hsv2hsl(hsv) {
111
- const v = clamp01(hsv.value);
112
- const s = clamp01(hsv.saturation);
113
- const luminosity = v * (1 - s / 2);
114
- const denom = Math.min(luminosity, 1 - luminosity);
115
- const saturation = denom === 0 ? 0 : (v - luminosity) / denom;
116
- return { hue: hsv.hue, saturation, luminosity };
117
- }
118
- function hsl2hsv(hsl) {
119
- const l = clamp01(hsl.luminosity);
120
- const s = clamp01(hsl.saturation);
121
- const value = l + s * Math.min(l, 1 - l);
122
- const saturation = value === 0 ? 0 : 2 * (1 - l / value);
123
- return { hue: hsl.hue, saturation, value };
124
- }
125
- function hex2hsv(hex) {
126
- return rgb2hsv(hex2rgb(hex));
127
- }
128
- function hsv2hex(hsv) {
129
- return rgb2hex(hsv2rgb(hsv));
130
- }
131
- /** Polar position (cx, cy) on a disc of radius R → HSV (hue, saturation). */
132
- function polar2hs(dx, dy, radius) {
133
- const r = Math.sqrt(dx * dx + dy * dy);
134
- const saturation = clamp01(r / radius);
135
- let hue = (Math.atan2(dy, dx) * 360) / TWO_PI;
136
- if (hue < 0)
137
- hue += 360;
138
- return { hue, saturation };
139
- }
140
- /** Inverse of polar2hs. Hue in degrees, saturation in [0, 1] → (dx, dy) on a disc of given radius. */
141
- function hs2polar(hue, saturation, radius) {
142
- const theta = (hue * TWO_PI) / 360;
143
- const r = clamp01(saturation) * radius;
144
- return { dx: r * Math.cos(theta), dy: r * Math.sin(theta) };
145
- }
146
- function hueFromRgb(r, g, b, max, d) {
147
- let h;
148
- switch (max) {
149
- case r:
150
- h = ((g - b) / d) % 6;
151
- break;
152
- case g:
153
- h = (b - r) / d + 2;
154
- break;
155
- default:
156
- h = (r - g) / d + 4;
157
- break;
158
- }
159
- h *= 60;
160
- if (h < 0)
161
- h += 360;
162
- return h;
163
- }
164
-
165
- class BsSliderComponent {
166
- constructor() {
167
- this.track = viewChild.required('track');
168
- this.thumb = viewChild.required('thumb');
169
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
170
- this.value = model(0.5, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
171
- /** Accessible name for SR users. e.g. "Brightness", "Alpha", "Hue". */
172
- this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
173
- /** Multiplier applied to the 0..1 value when reporting it through aria-valuenow / aria-valuemax / aria-valuetext. 100 = percent (default); 360 = degrees; 255 = byte; etc. */
174
- this.valueScale = input(100, ...(ngDevMode ? [{ debugName: "valueScale" }] : /* istanbul ignore next */ []));
175
- /** Suffix appended to aria-valuetext after the scaled number. Defaults to "%". Use "°" for hue, "" for unitless. */
176
- this.valueUnit = input('%', ...(ngDevMode ? [{ debugName: "valueUnit" }] : /* istanbul ignore next */ []));
177
- this.isPointerDown = signal(false, ...(ngDevMode ? [{ debugName: "isPointerDown" }] : /* istanbul ignore next */ []));
178
- this.thumbLeft = computed(() => `${this.value() * 100}%`, ...(ngDevMode ? [{ debugName: "thumbLeft" }] : /* istanbul ignore next */ []));
179
- this.cursorClass = computed(() => 'position-absolute top-0 ' + (this.isPointerDown() ? 'cursor-grabbing' : 'cursor-grab'), ...(ngDevMode ? [{ debugName: "cursorClass" }] : /* istanbul ignore next */ []));
180
- /** Scaled current value for aria-valuenow (e.g. 0..100 for percent, 0..360 for hue). */
181
- this.ariaValueNow = computed(() => Math.round(this.value() * this.valueScale()), ...(ngDevMode ? [{ debugName: "ariaValueNow" }] : /* istanbul ignore next */ []));
182
- /** Human-readable value for SR with the configured unit. */
183
- this.ariaValueText = computed(() => `${this.ariaValueNow()}${this.valueUnit()}`, ...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
184
- }
185
- onPointerDown(ev) {
186
- if (this.disabled())
187
- return;
188
- ev.preventDefault();
189
- ev.stopPropagation();
190
- this.isPointerDown.set(true);
191
- this.updateColor(ev);
192
- }
193
- onPointerMove(ev) {
194
- if (this.isPointerDown()) {
195
- ev.preventDefault();
196
- ev.stopPropagation();
197
- this.updateColor(ev);
198
- }
199
- }
200
- onPointerUp(_ev) {
201
- this.isPointerDown.set(false);
202
- }
203
- onKeydown(ev) {
204
- if (this.disabled())
205
- return;
206
- const cur = this.value();
207
- const step = ev.shiftKey ? 0.001 : 0.01; // 1% default, 0.1% with Shift
208
- const pageStep = 0.1; // 10% with PageUp/PageDown
209
- let next = null;
210
- switch (ev.key) {
211
- case 'ArrowRight':
212
- case 'ArrowUp':
213
- next = Math.min(1, cur + step);
214
- break;
215
- case 'ArrowLeft':
216
- case 'ArrowDown':
217
- next = Math.max(0, cur - step);
218
- break;
219
- case 'PageUp':
220
- next = Math.min(1, cur + pageStep);
221
- break;
222
- case 'PageDown':
223
- next = Math.max(0, cur - pageStep);
224
- break;
225
- case 'Home':
226
- next = 0;
227
- break;
228
- case 'End':
229
- next = 1;
230
- break;
231
- default:
232
- return;
233
- }
234
- ev.preventDefault();
235
- if (next !== cur)
236
- this.value.set(next);
237
- }
238
- updateColor(ev) {
239
- const rect = this.track().nativeElement.getBoundingClientRect();
240
- const clientX = 'touches' in ev ? ev.touches[0].clientX : ev.clientX;
241
- const percent = (clientX - rect.left) / this.track().nativeElement.clientWidth;
242
- this.value.set(Math.max(0, Math.min(1, percent)));
243
- }
244
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
245
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.11", type: BsSliderComponent, isStandalone: true, selector: "bs-slider", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueScale: { classPropertyName: "valueScale", publicName: "valueScale", isSignal: true, isRequired: false, transformFunction: null }, valueUnit: { classPropertyName: "valueUnit", publicName: "valueUnit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "slider", "aria-valuemin": "0", "aria-orientation": "horizontal" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-valuemax": "valueScale()", "attr.aria-valuenow": "ariaValueNow()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-label": "ariaLabel()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "d-block position-relative" }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }, { propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
246
- }
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSliderComponent, decorators: [{
248
- type: Component,
249
- args: [{ selector: 'bs-slider', changeDetection: ChangeDetectionStrategy.OnPush, host: {
250
- 'class': 'd-block position-relative',
251
- 'role': 'slider',
252
- 'aria-valuemin': '0',
253
- 'aria-orientation': 'horizontal',
254
- '[attr.aria-valuemax]': 'valueScale()',
255
- '[attr.aria-valuenow]': 'ariaValueNow()',
256
- '[attr.aria-valuetext]': 'ariaValueText()',
257
- '[attr.aria-label]': 'ariaLabel()',
258
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
259
- '[attr.tabindex]': 'disabled() ? -1 : 0',
260
- '(document:mousemove)': 'onPointerMove($event)',
261
- '(document:mouseup)': 'onPointerUp($event)',
262
- '(keydown)': 'onKeydown($event)',
263
- }, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"] }]
264
- }], propDecorators: { track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], thumb: [{ type: i0.ViewChild, args: ['thumb', { isSignal: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueScale", required: false }] }], valueUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueUnit", required: false }] }] } });
265
- class BsThumbDirective {
266
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsThumbDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
267
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsThumbDirective, isStandalone: true, selector: "[bsThumb]", host: { classAttribute: "thumb position-absolute" }, ngImport: i0 }); }
268
- }
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsThumbDirective, decorators: [{
270
- type: Directive,
271
- args: [{
272
- selector: '[bsThumb]',
273
- host: {
274
- 'class': 'thumb position-absolute',
275
- },
276
- }]
277
- }] });
278
- class BsTrackDirective {
279
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsTrackDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
280
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsTrackDirective, isStandalone: true, selector: "[bsTrack]", host: { classAttribute: "track" }, ngImport: i0 }); }
281
- }
282
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsTrackDirective, decorators: [{
283
- type: Directive,
284
- args: [{
285
- selector: '[bsTrack]',
286
- host: {
287
- 'class': 'track',
288
- },
289
- }]
290
- }] });
291
-
292
- class BsAlphaStripComponent {
293
- constructor() {
294
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
295
- this.hs = model({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
296
- this.brightness = model(1, ...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
297
- this.alpha = model(1, ...(ngDevMode ? [{ debugName: "alpha" }] : /* istanbul ignore next */ []));
298
- this.trackGradient = computed(() => {
299
- const hs = this.hs();
300
- const brightness = this.brightness();
301
- const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
302
- const r = Math.round(rgb.r), g = Math.round(rgb.g), b = Math.round(rgb.b);
303
- return `linear-gradient(to right, rgba(${r}, ${g}, ${b}, 0), rgba(${r}, ${g}, ${b}, 1))`;
304
- }, ...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
305
- this.resultBackground = computed(() => {
306
- const hs = this.hs();
307
- const brightness = this.brightness();
308
- const alpha = this.alpha();
309
- const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
310
- return `rgba(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)}, ${alpha})`;
311
- }, ...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
312
- }
313
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsAlphaStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
314
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: BsAlphaStripComponent, isStandalone: true, selector: "bs-alpha-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange", alpha: "alphaChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
315
- }
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsAlphaStripComponent, decorators: [{
317
- type: Component,
318
- args: [{ selector: 'bs-alpha-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"] }]
319
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }, { type: i0.Output, args: ["alphaChange"] }] } });
320
-
321
- class BsBrightnessStripComponent {
322
- constructor() {
323
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
324
- this.hs = model({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
325
- this.brightness = model(1, ...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
326
- this.trackGradient = computed(() => {
327
- const hs = this.hs();
328
- const peak = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: 1 });
329
- return `linear-gradient(to right, #000, rgb(${Math.round(peak.r)}, ${Math.round(peak.g)}, ${Math.round(peak.b)}))`;
330
- }, ...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
331
- this.resultBackground = computed(() => {
332
- const hs = this.hs();
333
- const brightness = this.brightness();
334
- const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
335
- return `rgb(${Math.round(rgb.r)}, ${Math.round(rgb.g)}, ${Math.round(rgb.b)})`;
336
- }, ...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
337
- }
338
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsBrightnessStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
339
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: BsBrightnessStripComponent, isStandalone: true, selector: "bs-brightness-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [""], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
340
- }
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsBrightnessStripComponent, decorators: [{
342
- type: Component,
343
- args: [{ selector: 'bs-brightness-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n" }]
344
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }] } });
345
-
346
- class BsColorPickerValueAccessor {
347
- constructor() {
348
- this.host = inject(BsColorPickerComponent);
349
- this.host.userChanged.pipe(takeUntilDestroyed()).subscribe(() => this.emit());
350
- }
351
- emit() {
352
- this.onTouched?.();
353
- if (!this.onValueChange)
354
- return;
355
- const hs = this.host.hs();
356
- const brightness = this.host.brightness();
357
- const rgb = hsv2rgb({ hue: hs.hue, saturation: hs.saturation, value: brightness });
358
- this.onValueChange(rgb2hex(rgb));
359
- }
360
- registerOnChange(fn) {
361
- this.onValueChange = fn;
362
- }
363
- registerOnTouched(fn) {
364
- this.onTouched = fn;
365
- }
366
- writeValue(value) {
367
- if (!value)
368
- return;
369
- const hsv = hex2hsv(value);
370
- this.host.hs.set({ hue: hsv.hue, saturation: hsv.saturation });
371
- this.host.brightness.set(hsv.value);
372
- }
373
- setDisabledState(isDisabled) {
374
- this.host.disabled.set(isDisabled);
375
- }
376
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorPickerValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
377
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsColorPickerValueAccessor, isStandalone: true, selector: "bs-color-picker", providers: [{
378
- provide: NG_VALUE_ACCESSOR,
379
- useExisting: forwardRef(() => BsColorPickerValueAccessor),
380
- multi: true
381
- }], exportAs: ["bsColorPicker"], ngImport: i0 }); }
382
- }
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorPickerValueAccessor, decorators: [{
384
- type: Directive,
385
- args: [{
386
- selector: 'bs-color-picker',
387
- providers: [{
388
- provide: NG_VALUE_ACCESSOR,
389
- useExisting: forwardRef(() => BsColorPickerValueAccessor),
390
- multi: true
391
- }],
392
- exportAs: 'bsColorPicker'
393
- }]
394
- }], ctorParameters: () => [] });
395
-
396
- class BsColorWheelComponent {
397
- constructor() {
398
- this.surface = viewChild.required('surface');
399
- this.width = model(150, ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
400
- this.height = model(150, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
401
- this.brightness = model(1, ...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
402
- this.hs = model({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
403
- this.hsChange = output();
404
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
405
- this.ariaLabel = input('Color wheel: arrow left and right adjust hue, arrow up and down adjust saturation', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
406
- this.isPointerDown = signal(false, ...(ngDevMode ? [{ debugName: "isPointerDown" }] : /* istanbul ignore next */ []));
407
- this.squareSize = computed(() => Math.min(this.width(), this.height()), ...(ngDevMode ? [{ debugName: "squareSize" }] : /* istanbul ignore next */ []));
408
- this.shiftX = computed(() => Math.max(0, (this.width() - this.height()) / 2), ...(ngDevMode ? [{ debugName: "shiftX" }] : /* istanbul ignore next */ []));
409
- this.shiftY = computed(() => Math.max(0, (this.height() - this.width()) / 2), ...(ngDevMode ? [{ debugName: "shiftY" }] : /* istanbul ignore next */ []));
410
- this.outerRadius = computed(() => this.squareSize() / 2, ...(ngDevMode ? [{ debugName: "outerRadius" }] : /* istanbul ignore next */ []));
411
- this.overlayOpacity = computed(() => 1 - this.brightness(), ...(ngDevMode ? [{ debugName: "overlayOpacity" }] : /* istanbul ignore next */ []));
412
- this.ariaValueText = computed(() => {
413
- const hs = this.hs();
414
- return `Hue ${Math.round(hs.hue)}°, saturation ${Math.round(hs.saturation * 100)}%`;
415
- }, ...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
416
- this.markerPosition = computed(() => {
417
- const hs = this.hs();
418
- const radius = this.outerRadius();
419
- const cx = this.shiftX() + radius;
420
- const cy = this.shiftY() + radius;
421
- const { dx, dy } = hs2polar(hs.hue, hs.saturation, radius);
422
- return { x: cx + dx, y: cy + dy };
423
- }, ...(ngDevMode ? [{ debugName: "markerPosition" }] : /* istanbul ignore next */ []));
424
- effect(() => {
425
- const hs = this.hs();
426
- this.hsChange.emit(hs);
427
- });
428
- }
429
- onPointerDown(ev) {
430
- if (this.disabled())
431
- return;
432
- if (!('touches' in ev))
433
- ev.preventDefault();
434
- ev.stopPropagation();
435
- this.isPointerDown.set(true);
436
- this.updateColor(ev);
437
- }
438
- onPointerMove(ev) {
439
- if (!this.isPointerDown())
440
- return;
441
- if (!('touches' in ev))
442
- ev.preventDefault();
443
- ev.stopPropagation();
444
- this.updateColor(ev);
445
- }
446
- onPointerUp(_ev) {
447
- this.isPointerDown.set(false);
448
- }
449
- /**
450
- * Keyboard model for the 2-D wheel:
451
- * ArrowLeft / ArrowRight → -1° / +1° hue (Shift: stays 1° for "fine")
452
- * ArrowDown / ArrowUp → -1% / +1% saturation (Shift: stays 1% for "fine")
453
- * PageDown / PageUp → -30° / +30° hue
454
- * Home / End → saturation 100% / 0%
455
- *
456
- * Hue wraps around; saturation clamps. Sighted-keyboard users get the same
457
- * wheel as mouse users; blind users typically prefer the channel sliders
458
- * (toggleable in bs-color-picker), since aria-valuetext on a 2-D widget is
459
- * harder to spatialise than two 1-D sliders.
460
- */
461
- onKeydown(ev) {
462
- if (this.disabled())
463
- return;
464
- const cur = this.hs();
465
- const hueStep = ev.shiftKey ? 1 : 5;
466
- const satStep = ev.shiftKey ? 0.01 : 0.05;
467
- let nextHue = cur.hue;
468
- let nextSat = cur.saturation;
469
- switch (ev.key) {
470
- case 'ArrowRight':
471
- nextHue = (cur.hue + hueStep) % 360;
472
- break;
473
- case 'ArrowLeft':
474
- nextHue = (cur.hue - hueStep + 360) % 360;
475
- break;
476
- case 'ArrowUp':
477
- nextSat = Math.min(1, cur.saturation + satStep);
478
- break;
479
- case 'ArrowDown':
480
- nextSat = Math.max(0, cur.saturation - satStep);
481
- break;
482
- case 'PageUp':
483
- nextHue = (cur.hue + 30) % 360;
484
- break;
485
- case 'PageDown':
486
- nextHue = (cur.hue - 30 + 360) % 360;
487
- break;
488
- case 'Home':
489
- nextSat = 1;
490
- break;
491
- case 'End':
492
- nextSat = 0;
493
- break;
494
- default:
495
- return;
496
- }
497
- ev.preventDefault();
498
- if (nextHue !== cur.hue || nextSat !== cur.saturation) {
499
- this.hs.set({ hue: nextHue, saturation: nextSat });
500
- }
501
- }
502
- updateColor(ev) {
503
- const rect = this.surface().nativeElement.getBoundingClientRect();
504
- const clientX = 'touches' in ev ? ev.touches[0].clientX : ev.clientX;
505
- const clientY = 'touches' in ev ? ev.touches[0].clientY : ev.clientY;
506
- const radius = this.outerRadius();
507
- const dx = clientX - rect.left - radius;
508
- const dy = clientY - rect.top - radius;
509
- const hs = polar2hs(dx, dy, radius);
510
- this.hs.set(hs);
511
- }
512
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorWheelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
513
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsColorWheelComponent, isStandalone: true, selector: "bs-color-wheel", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { width: "widthChange", height: "heightChange", brightness: "brightnessChange", hs: "hsChange", hsChange: "hsChange" }, host: { attributes: { "role": "application" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "position-relative" }, viewQueries: [{ propertyName: "surface", first: true, predicate: ["surface"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [style.width.px]=\"width()\" [style.height.px]=\"height()\" class=\"position-relative\">\n <div class=\"wheel-surface position-absolute\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n #surface></div>\n\n <div class=\"brightness-overlay position-absolute pe-none\"\n [style.opacity]=\"overlayOpacity()\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"></div>\n\n @if (markerPosition(); as markerPosition) {\n <div class=\"marker position-absolute pe-none\" [style.left.px]=\"markerPosition.x\" [style.top.px]=\"markerPosition.y\"></div>\n }\n</div>\n", styles: [".wheel-surface{border-radius:50%;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair}.brightness-overlay{background:#000;border-radius:50%;transition:opacity 60ms linear}.marker{width:30px;height:30px;border-radius:15px;margin-top:-15px;margin-left:-15px;box-sizing:border-box;border:2px solid white;box-shadow:#0000001a 0 0 10px 5px;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
514
- }
515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorWheelComponent, decorators: [{
516
- type: Component,
517
- args: [{ selector: 'bs-color-wheel', changeDetection: ChangeDetectionStrategy.OnPush, host: {
518
- 'class': 'position-relative',
519
- 'role': 'application',
520
- '[attr.aria-label]': 'ariaLabel()',
521
- '[attr.aria-valuetext]': 'ariaValueText()',
522
- '[attr.aria-disabled]': 'disabled() ? "true" : null',
523
- '[attr.tabindex]': 'disabled() ? -1 : 0',
524
- '(document:mousemove)': 'onPointerMove($event)',
525
- '(document:mouseup)': 'onPointerUp($event)',
526
- '(keydown)': 'onKeydown($event)',
527
- }, template: "<div [style.width.px]=\"width()\" [style.height.px]=\"height()\" class=\"position-relative\">\n <div class=\"wheel-surface position-absolute\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n #surface></div>\n\n <div class=\"brightness-overlay position-absolute pe-none\"\n [style.opacity]=\"overlayOpacity()\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"></div>\n\n @if (markerPosition(); as markerPosition) {\n <div class=\"marker position-absolute pe-none\" [style.left.px]=\"markerPosition.x\" [style.top.px]=\"markerPosition.y\"></div>\n }\n</div>\n", styles: [".wheel-surface{border-radius:50%;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair}.brightness-overlay{background:#000;border-radius:50%;transition:opacity 60ms linear}.marker{width:30px;height:30px;border-radius:15px;margin-top:-15px;margin-left:-15px;box-sizing:border-box;border:2px solid white;box-shadow:#0000001a 0 0 10px 5px;pointer-events:none}\n"] }]
528
- }], ctorParameters: () => [], propDecorators: { surface: [{ type: i0.ViewChild, args: ['surface', { isSignal: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }, { type: i0.Output, args: ["widthChange"] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }, { type: i0.Output, args: ["heightChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], hsChange: [{ type: i0.Output, args: ["hsChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
529
-
530
- /**
531
- * Hue picker — a horizontal rainbow strip backed by `bs-slider`. Two-way
532
- * `[(hs)]` keeps the saturation untouched; only `hs.hue` (0–360°) changes.
533
- * Inherits the slider's APG keyboard model (Arrow keys, Home/End, PageUp/Down).
534
- */
535
- class BsHueStripComponent {
536
- constructor() {
537
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
538
- this.hs = model({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
539
- /** Hue normalized to 0..1 for the underlying bs-slider (which works in 0..1). */
540
- this.normalizedHue = computed(() => this.hs().hue / 360, ...(ngDevMode ? [{ debugName: "normalizedHue" }] : /* istanbul ignore next */ []));
541
- /** Rainbow gradient — every hue at full saturation/lightness. */
542
- this.trackGradient = 'linear-gradient(to right,' +
543
- ' hsl(0, 100%, 50%),' +
544
- ' hsl(60, 100%, 50%),' +
545
- ' hsl(120, 100%, 50%),' +
546
- ' hsl(180, 100%, 50%),' +
547
- ' hsl(240, 100%, 50%),' +
548
- ' hsl(300, 100%, 50%),' +
549
- ' hsl(360, 100%, 50%))';
550
- this.thumbBackground = computed(() => `hsl(${Math.round(this.hs().hue)}, 100%, 50%)`, ...(ngDevMode ? [{ debugName: "thumbBackground" }] : /* istanbul ignore next */ []));
551
- }
552
- onValueChange(v) {
553
- this.hs.set({ ...this.hs(), hue: v * 360 });
554
- }
555
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsHueStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
556
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: BsHueStripComponent, isStandalone: true, selector: "bs-hue-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
557
- }
558
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsHueStripComponent, decorators: [{
559
- type: Component,
560
- args: [{ selector: 'bs-hue-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
561
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
562
-
563
- /**
564
- * Saturation picker — a horizontal grey-to-pure-colour strip backed by
565
- * `bs-slider`. Two-way `[(hs)]` keeps the hue untouched; only `hs.saturation`
566
- * (0–1) changes. The track gradient re-derives from the current hue so the
567
- * preview always matches what the user is about to pick.
568
- */
569
- class BsSaturationStripComponent {
570
- constructor() {
571
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
572
- this.hs = model({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
573
- this.trackGradient = computed(() => {
574
- const hue = Math.round(this.hs().hue);
575
- return `linear-gradient(to right, hsl(${hue}, 0%, 50%), hsl(${hue}, 100%, 50%))`;
576
- }, ...(ngDevMode ? [{ debugName: "trackGradient" }] : /* istanbul ignore next */ []));
577
- this.thumbBackground = computed(() => {
578
- const hue = Math.round(this.hs().hue);
579
- const sat = Math.round(this.hs().saturation * 100);
580
- return `hsl(${hue}, ${sat}%, 50%)`;
581
- }, ...(ngDevMode ? [{ debugName: "thumbBackground" }] : /* istanbul ignore next */ []));
582
- }
583
- onValueChange(v) {
584
- this.hs.set({ ...this.hs(), saturation: v });
585
- }
586
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSaturationStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
587
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.11", type: BsSaturationStripComponent, isStandalone: true, selector: "bs-saturation-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
588
- }
589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSaturationStripComponent, decorators: [{
590
- type: Component,
591
- args: [{ selector: 'bs-saturation-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
592
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
593
-
594
- class BsColorPickerComponent {
595
- constructor() {
596
- this.colorWheel = viewChild.required('wheel');
597
- this.size = input(150, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
598
- this.disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
599
- this.allowAlpha = input(true, ...(ngDevMode ? [{ debugName: "allowAlpha" }] : /* istanbul ignore next */ []));
600
- /**
601
- * When true (default), a "Show hue + saturation sliders" toggle is rendered
602
- * below the picker. Toggling it reveals dedicated 1-D sliders for hue and
603
- * saturation alongside the existing brightness/alpha strips, giving keyboard
604
- * and screen-reader users a 1-D path for every channel without having to
605
- * spatialise the 2-D wheel. Set to false to hide both the toggle and the
606
- * channel sliders entirely (e.g. when the consuming app provides its own
607
- * accessibility settings UI).
608
- */
609
- this.showAccessibilityToggle = input(true, ...(ngDevMode ? [{ debugName: "showAccessibilityToggle" }] : /* istanbul ignore next */ []));
610
- this.channelSlidersVisible = model(false, ...(ngDevMode ? [{ debugName: "channelSlidersVisible" }] : /* istanbul ignore next */ []));
611
- this.hs = signal({ hue: 0, saturation: 0 }, ...(ngDevMode ? [{ debugName: "hs" }] : /* istanbul ignore next */ []));
612
- this.brightness = signal(1, ...(ngDevMode ? [{ debugName: "brightness" }] : /* istanbul ignore next */ []));
613
- this.alpha = model(1, ...(ngDevMode ? [{ debugName: "alpha" }] : /* istanbul ignore next */ []));
614
- /**
615
- * Fires when the user drives a change (drags the wheel or the brightness strip).
616
- * The value accessor subscribes to this so it only emits to the form on real
617
- * user actions — not on writeValue echoes or initial signal-default state.
618
- */
619
- this.userChanged = new Subject();
620
- }
621
- onUserHsChange(hs) {
622
- this.hs.set(hs);
623
- this.userChanged.next();
624
- }
625
- onUserBrightnessChange(brightness) {
626
- this.brightness.set(brightness);
627
- this.userChanged.next();
628
- }
629
- onUserAlphaChange(alpha) {
630
- this.alpha.set(alpha);
631
- this.userChanged.next();
632
- }
633
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
634
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsColorPickerComponent, isStandalone: true, selector: "bs-color-picker", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, allowAlpha: { classPropertyName: "allowAlpha", publicName: "allowAlpha", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, channelSlidersVisible: { classPropertyName: "channelSlidersVisible", publicName: "channelSlidersVisible", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { channelSlidersVisible: "channelSlidersVisibleChange", alpha: "alphaChange" }, viewQueries: [{ propertyName: "colorWheel", first: true, predicate: ["wheel"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsColorPickerValueAccessor }], ngImport: i0, template: "@let letDisabled = disabled();\n@let letHS = hs();\n@let letBrightness = brightness();\n@let letAlpha = alpha();\n\n<bs-color-wheel [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" [brightness]=\"letBrightness\" [width]=\"size()\" [height]=\"size()\" #wheel></bs-color-wheel>\n<bs-brightness-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" (brightnessChange)=\"onUserBrightnessChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #strip></bs-brightness-strip>\n@if (allowAlpha()) {\n <bs-alpha-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" [alpha]=\"letAlpha\" (alphaChange)=\"onUserAlphaChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #alphaStrip></bs-alpha-strip>\n}\n@if (showAccessibilityToggle()) {\n <bs-toggle-button class=\"mt-2 d-block\" type=\"switch\" [(ngModel)]=\"channelSlidersVisible\" [style.width.px]=\"size()\">Show hue + saturation sliders</bs-toggle-button>\n @if (channelSlidersVisible()) {\n <bs-hue-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-hue-strip>\n <bs-saturation-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-saturation-strip>\n }\n}\n", styles: [""], dependencies: [{ kind: "component", type: BsColorWheelComponent, selector: "bs-color-wheel", inputs: ["width", "height", "brightness", "hs", "disabled", "ariaLabel"], outputs: ["widthChange", "heightChange", "brightnessChange", "hsChange"] }, { kind: "component", type: BsBrightnessStripComponent, selector: "bs-brightness-strip", inputs: ["disabled", "hs", "brightness"], outputs: ["hsChange", "brightnessChange"] }, { kind: "component", type: BsAlphaStripComponent, selector: "bs-alpha-strip", inputs: ["disabled", "hs", "brightness", "alpha"], outputs: ["hsChange", "brightnessChange", "alphaChange"] }, { kind: "component", type: BsHueStripComponent, selector: "bs-hue-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsSaturationStripComponent, selector: "bs-saturation-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsToggleButtonComponent, selector: "bs-toggle-button", inputs: ["type", "isToggled", "name", "value", "group"], outputs: ["isToggledChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
635
- }
636
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsColorPickerComponent, decorators: [{
637
- type: Component,
638
- args: [{ selector: 'bs-color-picker', imports: [
639
- BsColorWheelComponent,
640
- BsBrightnessStripComponent,
641
- BsAlphaStripComponent,
642
- BsHueStripComponent,
643
- BsSaturationStripComponent,
644
- BsToggleButtonComponent,
645
- FormsModule,
646
- ], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsColorPickerValueAccessor], template: "@let letDisabled = disabled();\n@let letHS = hs();\n@let letBrightness = brightness();\n@let letAlpha = alpha();\n\n<bs-color-wheel [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" [brightness]=\"letBrightness\" [width]=\"size()\" [height]=\"size()\" #wheel></bs-color-wheel>\n<bs-brightness-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" (brightnessChange)=\"onUserBrightnessChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #strip></bs-brightness-strip>\n@if (allowAlpha()) {\n <bs-alpha-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" [alpha]=\"letAlpha\" (alphaChange)=\"onUserAlphaChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #alphaStrip></bs-alpha-strip>\n}\n@if (showAccessibilityToggle()) {\n <bs-toggle-button class=\"mt-2 d-block\" type=\"switch\" [(ngModel)]=\"channelSlidersVisible\" [style.width.px]=\"size()\">Show hue + saturation sliders</bs-toggle-button>\n @if (channelSlidersVisible()) {\n <bs-hue-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-hue-strip>\n <bs-saturation-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-saturation-strip>\n }\n}\n" }]
647
- }], propDecorators: { colorWheel: [{ type: i0.ViewChild, args: ['wheel', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], allowAlpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowAlpha", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], channelSlidersVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "channelSlidersVisible", required: false }] }, { type: i0.Output, args: ["channelSlidersVisibleChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }, { type: i0.Output, args: ["alphaChange"] }] } });
648
-
649
- /**
650
- * Generated bundle index. Do not edit.
651
- */
652
-
653
- export { BsAlphaStripComponent, BsBrightnessStripComponent, BsColorPickerComponent, BsColorPickerValueAccessor, BsColorWheelComponent, BsHueStripComponent, BsSaturationStripComponent, BsSliderComponent, BsThumbDirective, BsTrackDirective, hex2hsv, hex2rgb, hs2polar, hsl2hsv, hsl2rgb, hsv2hex, hsv2hsl, hsv2rgb, polar2hs, rgb2hex, rgb2hsl, rgb2hsv };
654
- //# sourceMappingURL=mintplayer-ng-bootstrap-color-picker.mjs.map