@mintplayer/ng-bootstrap 21.32.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 (283) hide show
  1. package/package.json +1 -377
  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-ribbon.mjs +0 -5016
  127. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +0 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +0 -237
  129. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +0 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +0 -120
  131. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +0 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +0 -194
  133. package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +0 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +0 -213
  135. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +0 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +0 -205
  137. package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +0 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +0 -52
  139. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +0 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +0 -76
  141. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +0 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +0 -30
  143. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +0 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +0 -26
  145. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +0 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +0 -25
  147. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +0 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +0 -46
  149. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +0 -1
  150. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +0 -124
  151. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +0 -1
  152. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +0 -40
  153. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +0 -1
  154. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +0 -1446
  155. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +0 -1
  156. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +0 -104
  157. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +0 -1
  158. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +0 -163
  159. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +0 -1
  160. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +0 -236
  161. package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +0 -1
  162. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +0 -174
  163. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +0 -1
  164. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +0 -100
  165. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +0 -1
  166. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +0 -28
  167. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +0 -1
  168. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +0 -111
  169. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +0 -1
  170. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +0 -24
  171. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +0 -1
  172. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +0 -94
  173. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +0 -1
  174. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +0 -48
  175. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +0 -1
  176. package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs +0 -282
  177. package/fesm2022/mintplayer-ng-bootstrap-virtual-datatable.mjs.map +0 -1
  178. package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs +0 -74
  179. package/fesm2022/mintplayer-ng-bootstrap-web-components-a11y.mjs.map +0 -1
  180. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs +0 -1356
  181. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler-core.mjs.map +0 -1
  182. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs +0 -5224
  183. package/fesm2022/mintplayer-ng-bootstrap-web-components-scheduler.mjs.map +0 -1
  184. package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs +0 -923
  185. package/fesm2022/mintplayer-ng-bootstrap-web-components-splitter.mjs.map +0 -1
  186. package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs +0 -553
  187. package/fesm2022/mintplayer-ng-bootstrap-web-components-tab-control.mjs.map +0 -1
  188. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +0 -34
  189. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +0 -1
  190. package/types/mintplayer-ng-bootstrap-a11y.d.ts +0 -196
  191. package/types/mintplayer-ng-bootstrap-accordion.d.ts +0 -39
  192. package/types/mintplayer-ng-bootstrap-alert.d.ts +0 -21
  193. package/types/mintplayer-ng-bootstrap-badge.d.ts +0 -12
  194. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +0 -14
  195. package/types/mintplayer-ng-bootstrap-button-group.d.ts +0 -9
  196. package/types/mintplayer-ng-bootstrap-button-type.d.ts +0 -12
  197. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  198. package/types/mintplayer-ng-bootstrap-calendar.d.ts +0 -57
  199. package/types/mintplayer-ng-bootstrap-card.d.ts +0 -15
  200. package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -121
  201. package/types/mintplayer-ng-bootstrap-close.d.ts +0 -10
  202. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +0 -20
  203. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +0 -236
  204. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  205. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +0 -21
  206. package/types/mintplayer-ng-bootstrap-copy.d.ts +0 -12
  207. package/types/mintplayer-ng-bootstrap-datatable.d.ts +0 -63
  208. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +0 -13
  209. package/types/mintplayer-ng-bootstrap-dock.d.ts +0 -419
  210. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  211. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -66
  212. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +0 -102
  213. package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +0 -20
  214. package/types/mintplayer-ng-bootstrap-enum.d.ts +0 -17
  215. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +0 -51
  216. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +0 -9
  217. package/types/mintplayer-ng-bootstrap-font-color.d.ts +0 -10
  218. package/types/mintplayer-ng-bootstrap-for.d.ts +0 -13
  219. package/types/mintplayer-ng-bootstrap-form.d.ts +0 -24
  220. package/types/mintplayer-ng-bootstrap-grid.d.ts +0 -50
  221. package/types/mintplayer-ng-bootstrap-has-id.d.ts +0 -5
  222. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  223. package/types/mintplayer-ng-bootstrap-has-property.d.ts +0 -10
  224. package/types/mintplayer-ng-bootstrap-in-list.d.ts +0 -11
  225. package/types/mintplayer-ng-bootstrap-input-group.d.ts +0 -8
  226. package/types/mintplayer-ng-bootstrap-instance-of.d.ts +0 -74
  227. package/types/mintplayer-ng-bootstrap-let.d.ts +0 -44
  228. package/types/mintplayer-ng-bootstrap-linify.d.ts +0 -10
  229. package/types/mintplayer-ng-bootstrap-list-group.d.ts +0 -14
  230. package/types/mintplayer-ng-bootstrap-markdown.d.ts +0 -33
  231. package/types/mintplayer-ng-bootstrap-marquee.d.ts +0 -9
  232. package/types/mintplayer-ng-bootstrap-modal.d.ts +0 -82
  233. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +0 -170
  234. package/types/mintplayer-ng-bootstrap-multiselect.d.ts +0 -58
  235. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +0 -13
  236. package/types/mintplayer-ng-bootstrap-navbar.d.ts +0 -189
  237. package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +0 -117
  238. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
  239. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +0 -106
  240. package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +0 -12
  241. package/types/mintplayer-ng-bootstrap-pagination.d.ts +0 -40
  242. package/types/mintplayer-ng-bootstrap-parallax.d.ts +0 -11
  243. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +0 -23
  244. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +0 -13
  245. package/types/mintplayer-ng-bootstrap-popover.d.ts +0 -67
  246. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +0 -64
  247. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +0 -27
  248. package/types/mintplayer-ng-bootstrap-range.d.ts +0 -28
  249. package/types/mintplayer-ng-bootstrap-rating.d.ts +0 -20
  250. package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
  251. package/types/mintplayer-ng-bootstrap-resizable.d.ts +0 -89
  252. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +0 -958
  253. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +0 -171
  254. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +0 -36
  255. package/types/mintplayer-ng-bootstrap-searchbox.d.ts +0 -65
  256. package/types/mintplayer-ng-bootstrap-select.d.ts +0 -65
  257. package/types/mintplayer-ng-bootstrap-select2.d.ts +0 -61
  258. package/types/mintplayer-ng-bootstrap-shell.d.ts +0 -26
  259. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +0 -36
  260. package/types/mintplayer-ng-bootstrap-slugify.d.ts +0 -10
  261. package/types/mintplayer-ng-bootstrap-spinner.d.ts +0 -14
  262. package/types/mintplayer-ng-bootstrap-split-string.d.ts +0 -10
  263. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +0 -21
  264. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +0 -50
  265. package/types/mintplayer-ng-bootstrap-table.d.ts +0 -24
  266. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +0 -304
  267. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +0 -26
  268. package/types/mintplayer-ng-bootstrap-toast.d.ts +0 -67
  269. package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +0 -57
  270. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +0 -29
  271. package/types/mintplayer-ng-bootstrap-treeview.d.ts +0 -44
  272. package/types/mintplayer-ng-bootstrap-trust-html.d.ts +0 -12
  273. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +0 -34
  274. package/types/mintplayer-ng-bootstrap-uc-first.d.ts +0 -10
  275. package/types/mintplayer-ng-bootstrap-user-agent.d.ts +0 -27
  276. package/types/mintplayer-ng-bootstrap-viewport.d.ts +0 -16
  277. package/types/mintplayer-ng-bootstrap-virtual-datatable.d.ts +0 -68
  278. package/types/mintplayer-ng-bootstrap-web-components-a11y.d.ts +0 -34
  279. package/types/mintplayer-ng-bootstrap-web-components-scheduler-core.d.ts +0 -914
  280. package/types/mintplayer-ng-bootstrap-web-components-scheduler.d.ts +0 -600
  281. package/types/mintplayer-ng-bootstrap-web-components-splitter.d.ts +0 -223
  282. package/types/mintplayer-ng-bootstrap-web-components-tab-control.d.ts +0 -95
  283. package/types/mintplayer-ng-bootstrap-word-count.d.ts +0 -10
@@ -1,194 +0,0 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, signal, viewChild, model, input, output, effect, ChangeDetectionStrategy, Component, TemplateRef, Directive } from '@angular/core';
4
- import * as i1 from '@angular/forms';
5
- import { FormsModule } from '@angular/forms';
6
- import { Color } from '@mintplayer/ng-bootstrap';
7
- import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
8
- import { BsFormComponent } from '@mintplayer/ng-bootstrap/form';
9
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
10
- import { BsDropdownDirective, BsDropdownToggleDirective, BsDropdownMenuDirective } from '@mintplayer/ng-bootstrap/dropdown';
11
- import { BsDropdownMenuComponent, BsDropdownItemComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';
12
- import { BsButtonTypeDirective } from '@mintplayer/ng-bootstrap/button-type';
13
- import { BsProgressComponent, BsProgressBarComponent } from '@mintplayer/ng-bootstrap/progress-bar';
14
- import { FocusOnLoadDirective } from '@mintplayer/ng-focus-on-load';
15
- import { DomSanitizer } from '@angular/platform-browser';
16
-
17
- /// <reference types="../types" />
18
- class BsSearchboxComponent {
19
- constructor() {
20
- this.bsForm = inject(BsFormComponent, { optional: true });
21
- this.sanitizer = inject(DomSanitizer);
22
- this.announcer = inject(BsLiveAnnouncerService);
23
- this.caretUpFill = signal(undefined, ...(ngDevMode ? [{ debugName: "caretUpFill" }] : /* istanbul ignore next */ []));
24
- this.caretDownFill = signal(undefined, ...(ngDevMode ? [{ debugName: "caretDownFill" }] : /* istanbul ignore next */ []));
25
- this.colors = Color;
26
- this.isBusy = signal(false, ...(ngDevMode ? [{ debugName: "isBusy" }] : /* istanbul ignore next */ []));
27
- this.textbox = viewChild.required('textbox');
28
- this.isOpen = model(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
29
- this.selectedItem = model(undefined, ...(ngDevMode ? [{ debugName: "selectedItem" }] : /* istanbul ignore next */ []));
30
- this.searchterm = model('', ...(ngDevMode ? [{ debugName: "searchterm" }] : /* istanbul ignore next */ []));
31
- this.ariaLabel = input('Search', ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
32
- this.suggestions = model([], ...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
33
- this.suggestionTemplate = signal(undefined, ...(ngDevMode ? [{ debugName: "suggestionTemplate" }] : /* istanbul ignore next */ []));
34
- this.enterSearchtermTemplate = signal(undefined, ...(ngDevMode ? [{ debugName: "enterSearchtermTemplate" }] : /* istanbul ignore next */ []));
35
- this.noResultsTemplate = signal(undefined, ...(ngDevMode ? [{ debugName: "noResultsTemplate" }] : /* istanbul ignore next */ []));
36
- this.noResultsAnnouncement = input('No results found', ...(ngDevMode ? [{ debugName: "noResultsAnnouncement" }] : /* istanbul ignore next */ []));
37
- this.resultsAnnouncementSingular = input('1 result found', ...(ngDevMode ? [{ debugName: "resultsAnnouncementSingular" }] : /* istanbul ignore next */ []));
38
- this.resultsAnnouncementPlural = input((count) => `${count} results found`, ...(ngDevMode ? [{ debugName: "resultsAnnouncementPlural" }] : /* istanbul ignore next */ []));
39
- this.provideSuggestions = output();
40
- this.debouncedSearchterm = signal('', ...(ngDevMode ? [{ debugName: "debouncedSearchterm" }] : /* istanbul ignore next */ []));
41
- this.requestInFlight = false;
42
- if (!this.bsForm) {
43
- throw '<bs-searchbox> must be inside a <bs-form>';
44
- }
45
- effect(() => {
46
- const searchterm = this.searchterm();
47
- clearTimeout(this.debounceTimeout);
48
- this.debounceTimeout = setTimeout(() => {
49
- if (searchterm === '') {
50
- this.requestInFlight = false;
51
- }
52
- else {
53
- this.requestInFlight = true;
54
- this.isBusy.set(true);
55
- this.provideSuggestions.emit(searchterm);
56
- }
57
- }, 200);
58
- });
59
- effect(() => {
60
- const suggestions = this.suggestions();
61
- if (suggestions) {
62
- this.isBusy.set(false);
63
- if (this.requestInFlight) {
64
- this.requestInFlight = false;
65
- this.announceResults(suggestions.length);
66
- }
67
- }
68
- });
69
- effect(() => {
70
- const isOpen = this.isOpen();
71
- if (isOpen) {
72
- setTimeout(() => this.textbox()?.nativeElement?.setSelectionRange(0, -1), 20);
73
- }
74
- });
75
- import('bootstrap-icons/icons/caret-up-fill.svg').then((icon) => {
76
- this.caretUpFill.set(this.sanitizer.bypassSecurityTrustHtml(icon.default));
77
- });
78
- import('bootstrap-icons/icons/caret-down-fill.svg').then((icon) => {
79
- this.caretDownFill.set(this.sanitizer.bypassSecurityTrustHtml(icon.default));
80
- });
81
- }
82
- ngOnDestroy() {
83
- clearTimeout(this.debounceTimeout);
84
- }
85
- announceResults(count) {
86
- if (count === 0) {
87
- this.announcer.announce(this.noResultsAnnouncement());
88
- }
89
- else if (count === 1) {
90
- this.announcer.announce(this.resultsAnnouncementSingular());
91
- }
92
- else {
93
- this.announcer.announce(this.resultsAnnouncementPlural()(count));
94
- }
95
- }
96
- onSearchtermChange(searchterm) {
97
- this.searchterm.set(searchterm);
98
- }
99
- onSuggestionClicked(suggestion) {
100
- this.selectedItem.set(suggestion);
101
- this.isOpen.set(false);
102
- this.searchterm.set('');
103
- }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSearchboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
105
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.11", type: BsSearchboxComponent, isStandalone: true, selector: "bs-searchbox", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, selectedItem: { classPropertyName: "selectedItem", publicName: "selectedItem", isSignal: true, isRequired: false, transformFunction: null }, searchterm: { classPropertyName: "searchterm", publicName: "searchterm", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, noResultsAnnouncement: { classPropertyName: "noResultsAnnouncement", publicName: "noResultsAnnouncement", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementSingular: { classPropertyName: "resultsAnnouncementSingular", publicName: "resultsAnnouncementSingular", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementPlural: { classPropertyName: "resultsAnnouncementPlural", publicName: "resultsAnnouncementPlural", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", selectedItem: "selectedItemChange", searchterm: "searchtermChange", suggestions: "suggestionsChange", provideSuggestions: "provideSuggestions" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true, isSignal: true }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <button [color]=\"colors.primary\" class=\"d-flex w-100\" bsDropdownToggle>\n <div class=\"flex-grow-1\">\n @if (!selectedItem()) {\n <ng-content></ng-content>\n } @else {\n @let template = suggestionTemplate();\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: selectedItem(), searchbox: this }\"></ng-container>\n }\n }\n </div>\n <span [innerHTML]=\"isOpen() ? caretUpFill() : caretDownFill()\" class=\"float-end\"></span>\n </button>\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isBusy()) {\n <bs-progress [isIndeterminate]=\"true\" class=\"prog\">\n <bs-progress-bar></bs-progress-bar>\n </bs-progress>\n }\n <div class=\"w-100 px-2 mb-2\">\n <input type=\"search\" #textbox autofocus class=\"form-control d-block\" [attr.aria-label]=\"ariaLabel()\" [ngModel]=\"searchterm()\" (ngModelChange)=\"onSearchtermChange($event)\">\n </div>\n\n @if (searchterm() === '') {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"enterSearchtermTemplate() ?? defaultEnterSearchtermTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n } @else {\n <div class=\"overflow-y-auto\" [style.max-height.px]=\"200\">\n @let template = suggestionTemplate();\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"onSuggestionClicked(suggestion)\" [isSelected]=\"selectedItem()?.id === suggestion.id\" [disabled]=\"isBusy()\">\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: suggestion, searchbox: this }\"></ng-container>\n }\n </bs-dropdown-item>\n }\n @if (suggestions().length === 0) {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"noResultsTemplate() ?? defaultNoResultsTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n }\n </div>\n }\n </bs-dropdown-menu>\n</div>\n\n<ng-template #defaultEnterSearchtermTemplate>\n Enter a search term\n</ng-template>\n<ng-template #defaultNoResultsTemplate>\n No results\n</ng-template>\n", styles: [".prog{height:.3rem;margin-top:-.5rem;margin-bottom:.2rem}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: FocusOnLoadDirective, selector: "*[autofocus]", inputs: ["autofocus"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "directive", type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "sameDropdownWidth", "isOpen", "popupRole"], outputs: ["isOpenChange"], exportAs: ["bsDropdown"] }, { kind: "directive", type: BsDropdownToggleDirective, selector: "[bsDropdownToggle]" }, { kind: "directive", type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { kind: "component", type: BsDropdownMenuComponent, selector: "bs-dropdown-menu", inputs: ["maxHeight"] }, { kind: "component", type: BsDropdownItemComponent, selector: "bs-dropdown-item", inputs: ["isSelected", "disabled"] }, { kind: "directive", type: BsButtonTypeDirective, selector: "button[color],input[type=\"button\"][color],input[type=\"submit\"][color],a[color]", inputs: ["color"] }, { kind: "component", type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate", "ariaLabel"] }, { kind: "component", type: BsProgressBarComponent, selector: "bs-progress-bar", inputs: ["minimum", "maximum", "value", "color", "striped", "animated", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
106
- }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSearchboxComponent, decorators: [{
108
- type: Component,
109
- args: [{ selector: 'bs-searchbox', imports: [
110
- NgTemplateOutlet,
111
- FormsModule,
112
- FocusOnLoadDirective,
113
- BsHasOverlayComponent,
114
- BsDropdownDirective,
115
- BsDropdownToggleDirective,
116
- BsDropdownMenuDirective,
117
- BsDropdownMenuComponent,
118
- BsDropdownItemComponent,
119
- BsButtonTypeDirective,
120
- BsProgressComponent,
121
- BsProgressBarComponent,
122
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-has-overlay></bs-has-overlay>\n<div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <button [color]=\"colors.primary\" class=\"d-flex w-100\" bsDropdownToggle>\n <div class=\"flex-grow-1\">\n @if (!selectedItem()) {\n <ng-content></ng-content>\n } @else {\n @let template = suggestionTemplate();\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: selectedItem(), searchbox: this }\"></ng-container>\n }\n }\n </div>\n <span [innerHTML]=\"isOpen() ? caretUpFill() : caretDownFill()\" class=\"float-end\"></span>\n </button>\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isBusy()) {\n <bs-progress [isIndeterminate]=\"true\" class=\"prog\">\n <bs-progress-bar></bs-progress-bar>\n </bs-progress>\n }\n <div class=\"w-100 px-2 mb-2\">\n <input type=\"search\" #textbox autofocus class=\"form-control d-block\" [attr.aria-label]=\"ariaLabel()\" [ngModel]=\"searchterm()\" (ngModelChange)=\"onSearchtermChange($event)\">\n </div>\n\n @if (searchterm() === '') {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"enterSearchtermTemplate() ?? defaultEnterSearchtermTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n } @else {\n <div class=\"overflow-y-auto\" [style.max-height.px]=\"200\">\n @let template = suggestionTemplate();\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"onSuggestionClicked(suggestion)\" [isSelected]=\"selectedItem()?.id === suggestion.id\" [disabled]=\"isBusy()\">\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: suggestion, searchbox: this }\"></ng-container>\n }\n </bs-dropdown-item>\n }\n @if (suggestions().length === 0) {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"noResultsTemplate() ?? defaultNoResultsTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n }\n </div>\n }\n </bs-dropdown-menu>\n</div>\n\n<ng-template #defaultEnterSearchtermTemplate>\n Enter a search term\n</ng-template>\n<ng-template #defaultNoResultsTemplate>\n No results\n</ng-template>\n", styles: [".prog{height:.3rem;margin-top:-.5rem;margin-bottom:.2rem}\n"] }]
123
- }], ctorParameters: () => [], propDecorators: { textbox: [{ type: i0.ViewChild, args: ['textbox', { isSignal: true }] }], isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }, { type: i0.Output, args: ["isOpenChange"] }], selectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItem", required: false }] }, { type: i0.Output, args: ["selectedItemChange"] }], searchterm: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchterm", required: false }] }, { type: i0.Output, args: ["searchtermChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }, { type: i0.Output, args: ["suggestionsChange"] }], noResultsAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsAnnouncement", required: false }] }], resultsAnnouncementSingular: [{ type: i0.Input, args: [{ isSignal: true, alias: "resultsAnnouncementSingular", required: false }] }], resultsAnnouncementPlural: [{ type: i0.Input, args: [{ isSignal: true, alias: "resultsAnnouncementPlural", required: false }] }], provideSuggestions: [{ type: i0.Output, args: ["provideSuggestions"] }] } });
124
-
125
- class BsEnterSearchTermTemplateDirective {
126
- constructor() {
127
- const searchbox = inject(BsSearchboxComponent);
128
- const template = inject(TemplateRef);
129
- searchbox.enterSearchtermTemplate.set(template);
130
- }
131
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsEnterSearchTermTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
132
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsEnterSearchTermTemplateDirective, isStandalone: true, selector: "[bsEnterSearchTermTemplate]", ngImport: i0 }); }
133
- }
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsEnterSearchTermTemplateDirective, decorators: [{
135
- type: Directive,
136
- args: [{
137
- selector: '[bsEnterSearchTermTemplate]',
138
- }]
139
- }], ctorParameters: () => [] });
140
-
141
- class BsNoResultsTemplateDirective {
142
- constructor() {
143
- const searchbox = inject(BsSearchboxComponent);
144
- const template = inject(TemplateRef);
145
- searchbox.noResultsTemplate.set(template);
146
- }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsNoResultsTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
148
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.11", type: BsNoResultsTemplateDirective, isStandalone: true, selector: "[bsNoResultsTemplate]", ngImport: i0 }); }
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsNoResultsTemplateDirective, decorators: [{
151
- type: Directive,
152
- args: [{
153
- selector: '[bsNoResultsTemplate]',
154
- }]
155
- }], ctorParameters: () => [] });
156
-
157
- class BsSuggestionTemplateDirective {
158
- constructor() {
159
- this.searchbox = inject(BsSearchboxComponent);
160
- this.bsSuggestionTemplateOf = input(undefined, ...(ngDevMode ? [{ debugName: "bsSuggestionTemplateOf" }] : /* istanbul ignore next */ []));
161
- const template = inject(TemplateRef);
162
- this.searchbox.suggestionTemplate.set(template);
163
- effect(() => {
164
- const value = this.bsSuggestionTemplateOf();
165
- if (value) {
166
- this.searchbox.suggestions.set(value);
167
- }
168
- });
169
- }
170
- static ngTemplateContextGuard(dir, ctx) {
171
- return true;
172
- }
173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSuggestionTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
174
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.11", type: BsSuggestionTemplateDirective, isStandalone: true, selector: "[bsSuggestionTemplate]", inputs: { bsSuggestionTemplateOf: { classPropertyName: "bsSuggestionTemplateOf", publicName: "bsSuggestionTemplateOf", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
175
- }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSuggestionTemplateDirective, decorators: [{
177
- type: Directive,
178
- args: [{
179
- selector: '[bsSuggestionTemplate]',
180
- }]
181
- }], ctorParameters: () => [], propDecorators: { bsSuggestionTemplateOf: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsSuggestionTemplateOf", required: false }] }] } });
182
- class BsSuggestionTemplateContext {
183
- constructor() {
184
- this.$implicit = null;
185
- this.searchbox = null;
186
- }
187
- }
188
-
189
- /**
190
- * Generated bundle index. Do not edit.
191
- */
192
-
193
- export { BsEnterSearchTermTemplateDirective, BsNoResultsTemplateDirective, BsSearchboxComponent, BsSuggestionTemplateContext, BsSuggestionTemplateDirective };
194
- //# sourceMappingURL=mintplayer-ng-bootstrap-searchbox.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-searchbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/searchbox/src/searchbox/searchbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/searchbox/src/searchbox/searchbox.component.html","../../../../libs/mintplayer-ng-bootstrap/searchbox/src/directives/enter-search-term.directive.ts","../../../../libs/mintplayer-ng-bootstrap/searchbox/src/directives/no-results.directive.ts","../../../../libs/mintplayer-ng-bootstrap/searchbox/src/directives/suggestion.directive.ts","../../../../libs/mintplayer-ng-bootstrap/searchbox/mintplayer-ng-bootstrap-searchbox.ts"],"sourcesContent":["/// <reference types=\"../types\" />\n\nimport { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, ElementRef, inject, input, model, OnDestroy, output, signal, TemplateRef, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsFormComponent } from '@mintplayer/ng-bootstrap/form';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsDropdownDirective } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownToggleDirective } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuDirective } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsDropdownItemComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsButtonTypeDirective } from '@mintplayer/ng-bootstrap/button-type';\nimport { BsProgressComponent } from '@mintplayer/ng-bootstrap/progress-bar';\nimport { BsProgressBarComponent } from '@mintplayer/ng-bootstrap/progress-bar';\nimport { FocusOnLoadDirective } from '@mintplayer/ng-focus-on-load';\nimport { BsSuggestionTemplateContext } from '../directives';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Component({\n selector: 'bs-searchbox',\n templateUrl: './searchbox.component.html',\n styleUrls: ['./searchbox.component.scss'],\n imports: [\n NgTemplateOutlet,\n FormsModule,\n FocusOnLoadDirective,\n BsHasOverlayComponent,\n BsDropdownDirective,\n BsDropdownToggleDirective,\n BsDropdownMenuDirective,\n BsDropdownMenuComponent,\n BsDropdownItemComponent,\n BsButtonTypeDirective,\n BsProgressComponent,\n BsProgressBarComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSearchboxComponent<T extends HasId<U>, U> implements OnDestroy {\n\n private bsForm = inject(BsFormComponent, { optional: true });\n private sanitizer = inject(DomSanitizer);\n private announcer = inject(BsLiveAnnouncerService);\n\n caretUpFill = signal<SafeHtml | undefined>(undefined);\n caretDownFill = signal<SafeHtml | undefined>(undefined);\n colors = Color;\n isBusy = signal<boolean>(false);\n readonly textbox = viewChild.required<ElementRef<HTMLInputElement>>('textbox');\n\n isOpen = model(false);\n selectedItem = model<T | undefined>(undefined);\n searchterm = model('');\n ariaLabel = input<string>('Search');\n\n suggestions = model<T[]>([]);\n\n readonly suggestionTemplate = signal<TemplateRef<BsSuggestionTemplateContext<T, U>> | undefined>(undefined);\n readonly enterSearchtermTemplate = signal<TemplateRef<T> | undefined>(undefined);\n readonly noResultsTemplate = signal<TemplateRef<T> | undefined>(undefined);\n noResultsAnnouncement = input<string>('No results found');\n resultsAnnouncementSingular = input<string>('1 result found');\n resultsAnnouncementPlural = input<(count: number) => string>((count) => `${count} results found`);\n provideSuggestions = output<string>();\n\n private debouncedSearchterm = signal('');\n private debounceTimeout: any;\n private requestInFlight = false;\n\n constructor() {\n if (!this.bsForm) {\n throw '<bs-searchbox> must be inside a <bs-form>';\n }\n\n effect(() => {\n const searchterm = this.searchterm();\n clearTimeout(this.debounceTimeout);\n this.debounceTimeout = setTimeout(() => {\n if (searchterm === '') {\n this.requestInFlight = false;\n } else {\n this.requestInFlight = true;\n this.isBusy.set(true);\n this.provideSuggestions.emit(searchterm);\n }\n }, 200);\n });\n\n effect(() => {\n const suggestions = this.suggestions();\n if (suggestions) {\n this.isBusy.set(false);\n if (this.requestInFlight) {\n this.requestInFlight = false;\n this.announceResults(suggestions.length);\n }\n }\n });\n\n effect(() => {\n const isOpen = this.isOpen();\n if (isOpen) {\n setTimeout(() => this.textbox()?.nativeElement?.setSelectionRange(0, -1), 20);\n }\n });\n\n import('bootstrap-icons/icons/caret-up-fill.svg').then((icon) => {\n this.caretUpFill.set(this.sanitizer.bypassSecurityTrustHtml(icon.default));\n });\n import('bootstrap-icons/icons/caret-down-fill.svg').then((icon) => {\n this.caretDownFill.set(this.sanitizer.bypassSecurityTrustHtml(icon.default));\n });\n }\n\n ngOnDestroy() {\n clearTimeout(this.debounceTimeout);\n }\n\n private announceResults(count: number) {\n if (count === 0) {\n this.announcer.announce(this.noResultsAnnouncement());\n } else if (count === 1) {\n this.announcer.announce(this.resultsAnnouncementSingular());\n } else {\n this.announcer.announce(this.resultsAnnouncementPlural()(count));\n }\n }\n\n onSearchtermChange(searchterm: string) {\n this.searchterm.set(searchterm);\n }\n\n onSuggestionClicked(suggestion: T) {\n this.selectedItem.set(suggestion);\n this.isOpen.set(false);\n this.searchterm.set('');\n }\n}\n","<bs-has-overlay></bs-has-overlay>\n<div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <button [color]=\"colors.primary\" class=\"d-flex w-100\" bsDropdownToggle>\n <div class=\"flex-grow-1\">\n @if (!selectedItem()) {\n <ng-content></ng-content>\n } @else {\n @let template = suggestionTemplate();\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: selectedItem(), searchbox: this }\"></ng-container>\n }\n }\n </div>\n <span [innerHTML]=\"isOpen() ? caretUpFill() : caretDownFill()\" class=\"float-end\"></span>\n </button>\n <bs-dropdown-menu *bsDropdownMenu>\n @if (isBusy()) {\n <bs-progress [isIndeterminate]=\"true\" class=\"prog\">\n <bs-progress-bar></bs-progress-bar>\n </bs-progress>\n }\n <div class=\"w-100 px-2 mb-2\">\n <input type=\"search\" #textbox autofocus class=\"form-control d-block\" [attr.aria-label]=\"ariaLabel()\" [ngModel]=\"searchterm()\" (ngModelChange)=\"onSearchtermChange($event)\">\n </div>\n\n @if (searchterm() === '') {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"enterSearchtermTemplate() ?? defaultEnterSearchtermTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n } @else {\n <div class=\"overflow-y-auto\" [style.max-height.px]=\"200\">\n @let template = suggestionTemplate();\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item (click)=\"onSuggestionClicked(suggestion)\" [isSelected]=\"selectedItem()?.id === suggestion.id\" [disabled]=\"isBusy()\">\n @if (template) {\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: suggestion, searchbox: this }\"></ng-container>\n }\n </bs-dropdown-item>\n }\n @if (suggestions().length === 0) {\n <bs-dropdown-item [disabled]=\"true\">\n <ng-container *ngTemplateOutlet=\"noResultsTemplate() ?? defaultNoResultsTemplate; context: { }\"></ng-container>\n </bs-dropdown-item>\n }\n </div>\n }\n </bs-dropdown-menu>\n</div>\n\n<ng-template #defaultEnterSearchtermTemplate>\n Enter a search term\n</ng-template>\n<ng-template #defaultNoResultsTemplate>\n No results\n</ng-template>\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\nimport { BsSearchboxComponent } from '../searchbox/searchbox.component';\n\n@Directive({\n selector: '[bsEnterSearchTermTemplate]',\n})\nexport class BsEnterSearchTermTemplateDirective<T extends HasId<U>, U> {\n constructor() {\n const searchbox = inject<BsSearchboxComponent<T, U>>(BsSearchboxComponent);\n const template = inject<TemplateRef<T>>(TemplateRef);\n searchbox.enterSearchtermTemplate.set(template);\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\nimport { BsSearchboxComponent } from '../searchbox/searchbox.component';\n\n@Directive({\n selector: '[bsNoResultsTemplate]',\n})\nexport class BsNoResultsTemplateDirective<T extends HasId<U>, U> {\n constructor() {\n const searchbox = inject<BsSearchboxComponent<T, U>>(BsSearchboxComponent);\n const template = inject<TemplateRef<T>>(TemplateRef);\n searchbox.noResultsTemplate.set(template);\n }\n}\n","import { Directive, effect, inject, input, TemplateRef } from '@angular/core';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\nimport { BsSearchboxComponent } from '../searchbox/searchbox.component';\n\n@Directive({\n selector: '[bsSuggestionTemplate]',\n})\nexport class BsSuggestionTemplateDirective<TData extends HasId<U>, U> {\n private searchbox = inject<BsSearchboxComponent<TData, U>>(BsSearchboxComponent);\n\n constructor() {\n const template = inject<TemplateRef<BsSuggestionTemplateContext<TData, U>>>(TemplateRef);\n this.searchbox.suggestionTemplate.set(template);\n\n effect(() => {\n const value = this.bsSuggestionTemplateOf();\n if (value) {\n this.searchbox.suggestions.set(value);\n }\n });\n }\n\n public static ngTemplateContextGuard<TData extends HasId<U>, U>(\n dir: BsSuggestionTemplateDirective<TData, U>,\n ctx: any\n ): ctx is BsSuggestionTemplateContext<Exclude<TData, false | 0 | '' | null | undefined>, U> {\n return true;\n }\n\n readonly bsSuggestionTemplateOf = input<TData[] | undefined>(undefined);\n}\n\nexport class BsSuggestionTemplateContext<TData extends HasId<U>, U> {\n public $implicit: TData = null!;\n public searchbox: BsSearchboxComponent<TData, U> = null!;\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;MA0Ca,oBAAoB,CAAA;AA+B/B,IAAA,WAAA,GAAA;QA7BQ,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;AAChC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAElD,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,SAAS,kFAAC;AACrD,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAuB,SAAS,oFAAC;QACvD,IAAA,CAAA,MAAM,GAAG,KAAK;AACd,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAU,KAAK,6EAAC;AACtB,QAAA,IAAA,CAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAA+B,SAAS,CAAC;AAE9E,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK,6EAAC;AACrB,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAgB,SAAS,mFAAC;AAC9C,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,EAAE,iFAAC;AACtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,QAAQ,gFAAC;AAEnC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAM,EAAE,kFAAC;A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AA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,sBAAA,EAAA,EAAA,iBAAA,EAAA,wBAAA,EAAA,UAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AACnC,iBAAA;;MA0BY,2BAA2B,CAAA;AAAxC,IAAA,WAAA,GAAA;QACS,IAAA,CAAA,SAAS,GAAU,IAAK;QACxB,IAAA,CAAA,SAAS,GAAmC,IAAK;IAC1D;AAAC;;ACnCD;;AAEG;;;;"}
@@ -1,213 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Renderer2, ElementRef, input, effect, forwardRef, Directive, viewChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
-
5
- class BsSelectValueAccessor {
6
- registerOnTouched(fn) {
7
- this.onTouched = fn;
8
- }
9
- registerOnChange(fn) {
10
- this.onChange = (valueString) => {
11
- // View -> Model
12
- this.value = this.getOptionValue(valueString);
13
- fn(this.value);
14
- // fn(valueString);
15
- };
16
- }
17
- setDisabledState(isDisabled) {
18
- this.setProperty('disabled', isDisabled);
19
- }
20
- setProperty(key, value) {
21
- if (this.selectBox.selectBox()) {
22
- this._renderer.setProperty(this.selectBox.selectBox().nativeElement, key, value);
23
- }
24
- }
25
- hostOnChange(event) {
26
- this.onChange(event.target.value);
27
- }
28
- hostBlur(ev) {
29
- this.onTouched();
30
- }
31
- constructor() {
32
- this._renderer = inject(Renderer2);
33
- this._elementRef = inject(ElementRef);
34
- this.selectBox = inject(BsSelectComponent);
35
- this.onChange = (_) => { };
36
- this.onTouched = () => { };
37
- this.optionMap = new Map();
38
- this.idCounter = 0;
39
- this.compareWithFunction = Object.is;
40
- this.compareWith = input(undefined, ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
41
- effect(() => {
42
- const value = this.compareWith();
43
- if (value !== undefined) {
44
- if (typeof value !== 'function') {
45
- throw new Error('compareWith must be a function');
46
- }
47
- this.compareWithFunction = value;
48
- }
49
- });
50
- }
51
- buildValueString(id, value) {
52
- if (id == null) {
53
- return `${value}`;
54
- }
55
- if (value && (typeof value === 'object')) {
56
- value = 'Object';
57
- }
58
- return `${id}: ${value}`.slice(0, 50);
59
- }
60
- extractId(valueString) {
61
- return valueString.split(':')[0];
62
- }
63
- writeValue(value) {
64
- this.value = value;
65
- const id = this.getOptionId(value);
66
- const valueString = this.buildValueString(id, value);
67
- this.setProperty('value', valueString);
68
- }
69
- registerOption() {
70
- return (this.idCounter++).toString();
71
- }
72
- getOptionId(value) {
73
- for (const id of Array.from(this.optionMap.keys())) {
74
- if (this.compareWithFunction(this.optionMap.get(id), value)) {
75
- return id;
76
- }
77
- }
78
- // This shouldn't happen
79
- // debugger;
80
- return null;
81
- }
82
- getOptionValue(valueString) {
83
- const id = this.extractId(valueString);
84
- return this.optionMap.has(id) ? this.optionMap.get(id) : valueString;
85
- }
86
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
87
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.11", type: BsSelectValueAccessor, isStandalone: true, selector: "bs-select", inputs: { compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "hostOnChange($event)", "blur": "hostBlur($event)" } }, providers: [{
88
- provide: NG_VALUE_ACCESSOR,
89
- useExisting: forwardRef(() => BsSelectValueAccessor),
90
- multi: true,
91
- }], ngImport: i0 }); }
92
- }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectValueAccessor, decorators: [{
94
- type: Directive,
95
- args: [{
96
- selector: 'bs-select',
97
- providers: [{
98
- provide: NG_VALUE_ACCESSOR,
99
- useExisting: forwardRef(() => BsSelectValueAccessor),
100
- multi: true,
101
- }],
102
- host: {
103
- '(change)': 'hostOnChange($event)',
104
- '(blur)': 'hostBlur($event)',
105
- },
106
- }]
107
- }], ctorParameters: () => [], propDecorators: { compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }] } });
108
- class BsSelectOption {
109
- constructor() {
110
- this.element = inject(ElementRef);
111
- this.renderer = inject(Renderer2);
112
- this.select = inject(BsSelectValueAccessor, { optional: true, host: true });
113
- this.ngValue = input(undefined, { ...(ngDevMode ? { debugName: "ngValue" } : /* istanbul ignore next */ {}), alias: 'ngValue' });
114
- this.value = input(undefined, { ...(ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {}), alias: 'value' });
115
- if (this.select) {
116
- this.id = this.select.registerOption();
117
- }
118
- effect(() => {
119
- const val = this.ngValue();
120
- if (val !== undefined && this.select) {
121
- this.select.optionMap.set(this.id, val);
122
- this.setElementValue(this.select.buildValueString(this.id, val));
123
- this.select.writeValue(this.select.value);
124
- }
125
- });
126
- effect(() => {
127
- const val = this.value();
128
- if (val !== undefined) {
129
- this.setElementValue(val);
130
- if (this.select) {
131
- this.select.writeValue(this.select.value);
132
- }
133
- }
134
- });
135
- }
136
- setElementValue(value) {
137
- // console.log('setElementValue', value);
138
- // const nativeSelect = this.select['selectBox'].selectBox;
139
- // if (nativeSelect) {
140
- // this.renderer.setProperty(nativeSelect.nativeElement, 'value', value);
141
- // }
142
- this.renderer.setProperty(this.element.nativeElement, 'value', value);
143
- }
144
- ngOnDestroy() {
145
- if (this.select) {
146
- this.select.optionMap.delete(this.id);
147
- this.select.writeValue(this.select.value);
148
- }
149
- }
150
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
151
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.11", type: BsSelectOption, isStandalone: true, selector: "option", inputs: { ngValue: { classPropertyName: "ngValue", publicName: "ngValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
152
- }
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectOption, decorators: [{
154
- type: Directive,
155
- args: [{
156
- selector: 'option',
157
- }]
158
- }], ctorParameters: () => [], propDecorators: { ngValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngValue", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
159
-
160
- class BsSelectComponent {
161
- constructor() {
162
- this.renderer = inject(Renderer2);
163
- // For debugging purposes
164
- this.identifier = input(0, ...(ngDevMode ? [{ debugName: "identifier" }] : /* istanbul ignore next */ []));
165
- this.selectBox = viewChild.required('selectBox');
166
- this.size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
167
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
168
- this.numberVisible = input(null, ...(ngDevMode ? [{ debugName: "numberVisible" }] : /* istanbul ignore next */ []));
169
- this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
170
- this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
171
- this.sizeClass = computed(() => {
172
- const size = this.size();
173
- switch (size) {
174
- case 'sm':
175
- case 'lg':
176
- return `form-select-${size}`;
177
- default:
178
- return null;
179
- }
180
- }, ...(ngDevMode ? [{ debugName: "sizeClass" }] : /* istanbul ignore next */ []));
181
- this.multipleValue = computed(() => {
182
- if (this.multiple()) {
183
- return true;
184
- }
185
- else {
186
- return null;
187
- }
188
- }, ...(ngDevMode ? [{ debugName: "multipleValue" }] : /* istanbul ignore next */ []));
189
- effect(() => {
190
- const disabled = this.disabled();
191
- const selectBox = this.selectBox();
192
- if (selectBox) {
193
- this.renderer.setProperty(selectBox.nativeElement, 'disabled', disabled);
194
- }
195
- });
196
- }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
198
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.11", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { identifier: { classPropertyName: "identifier", publicName: "identifier", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", 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 } }, viewQueries: [{ propertyName: "selectBox", first: true, predicate: ["selectBox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i0.forwardRef(() => BsSelectValueAccessor), inputs: ["compareWith", "compareWith"] }], ngImport: i0, template: "<select class=\"form-select\" #selectBox [class]=\"sizeClass()\" [attr.multiple]=\"multipleValue()\" [attr.size]=\"numberVisible()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</select>\n", styles: [":host ::ng-deep .form-select{--bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-select{transition:none}}:host ::ng-deep .form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-select[multiple],:host ::ng-deep .form-select[size]:not([size=\"1\"]){padding-right:.75rem;background-image:none}:host ::ng-deep .form-select:disabled{background-color:var(--bs-secondary-bg)}:host ::ng-deep .form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}:host ::ng-deep .form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}:host ::ng-deep .form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}:host ::ng-deep [data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
199
- }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BsSelectComponent, decorators: [{
201
- type: Component,
202
- args: [{ selector: 'bs-select', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [{
203
- directive: forwardRef(() => BsSelectValueAccessor),
204
- inputs: ['compareWith'],
205
- }], template: "<select class=\"form-select\" #selectBox [class]=\"sizeClass()\" [attr.multiple]=\"multipleValue()\" [attr.size]=\"numberVisible()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</select>\n", styles: [":host ::ng-deep .form-select{--bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-select{transition:none}}:host ::ng-deep .form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-select[multiple],:host ::ng-deep .form-select[size]:not([size=\"1\"]){padding-right:.75rem;background-image:none}:host ::ng-deep .form-select:disabled{background-color:var(--bs-secondary-bg)}:host ::ng-deep .form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}:host ::ng-deep .form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}:host ::ng-deep .form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}:host ::ng-deep [data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\")}\n"] }]
206
- }], ctorParameters: () => [], propDecorators: { identifier: [{ type: i0.Input, args: [{ isSignal: true, alias: "identifier", required: false }] }], selectBox: [{ type: i0.ViewChild, args: ['selectBox', { isSignal: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], numberVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberVisible", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
207
-
208
- /**
209
- * Generated bundle index. Do not edit.
210
- */
211
-
212
- export { BsSelectComponent, BsSelectOption, BsSelectValueAccessor };
213
- //# sourceMappingURL=mintplayer-ng-bootstrap-select.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/select/src/value-accessors/select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/component/select.component.html","../../../../libs/mintplayer-ng-bootstrap/select/mintplayer-ng-bootstrap-select.ts"],"sourcesContent":["import { Directive, effect, ElementRef, forwardRef, inject, input, OnDestroy, Renderer2 } from \"@angular/core\";\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from \"@angular/forms\";\nimport { BsSelectComponent } from \"../component/select.component\";\n\n@Directive({\n selector: 'bs-select',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsSelectValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'hostOnChange($event)',\n '(blur)': 'hostBlur($event)',\n },\n})\nexport class BsSelectValueAccessor implements ControlValueAccessor {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private selectBox = inject(BsSelectComponent);\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n registerOnChange(fn: (p: any) => {}) {\n this.onChange = (valueString: string) => {\n // View -> Model\n this.value = this.getOptionValue(valueString);\n fn(this.value);\n // fn(valueString);\n };\n }\n setDisabledState(isDisabled: boolean): void {\n this.setProperty('disabled', isDisabled);\n }\n protected setProperty(key: string, value: any): void {\n if (this.selectBox.selectBox()) {\n this._renderer.setProperty(this.selectBox.selectBox().nativeElement, key, value);\n }\n }\n\n hostOnChange(event: Event) {\n this.onChange((<any>event.target).value);\n }\n\n hostBlur(ev: Event) {\n this.onTouched();\n }\n\n value: any;\n optionMap = new Map<string, any>();\n idCounter = 0;\n\n private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n readonly compareWith = input<((value1: any, value2: any) => boolean) | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const value = this.compareWith();\n if (value !== undefined) {\n if (typeof value !== 'function') {\n throw new Error('compareWith must be a function');\n }\n this.compareWithFunction = value;\n }\n });\n }\n\n buildValueString(id: string | null, value: any) {\n if (id == null) {\n return `${value}`;\n }\n\n if (value && (typeof value === 'object')) {\n value = 'Object';\n }\n\n return `${id}: ${value}`.slice(0, 50);\n }\n\n extractId(valueString: string) {\n return valueString.split(':')[0];\n }\n\n writeValue(value: any) {\n this.value = value;\n\n const id = this.getOptionId(value);\n const valueString = this.buildValueString(id, value);\n this.setProperty('value', valueString);\n }\n\n registerOption() {\n return (this.idCounter++).toString();\n }\n\n getOptionId(value: any) {\n for (const id of Array.from(this.optionMap.keys())) {\n if (this.compareWithFunction(this.optionMap.get(id), value)) {\n return id;\n }\n }\n\n // This shouldn't happen\n // debugger;\n \n return null;\n }\n\n getOptionValue(valueString: string) {\n const id = this.extractId(valueString);\n return this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n }\n}\n\n@Directive({\n selector: 'option',\n})\nexport class BsSelectOption implements OnDestroy {\n private element = inject(ElementRef);\n private renderer = inject(Renderer2);\n private select = inject(BsSelectValueAccessor, { optional: true, host: true });\n\n constructor() {\n if (this.select) {\n this.id = this.select.registerOption();\n }\n\n effect(() => {\n const val = this.ngValue();\n if (val !== undefined && this.select) {\n this.select.optionMap.set(this.id, val);\n this.setElementValue(this.select.buildValueString(this.id, val));\n this.select.writeValue(this.select.value);\n }\n });\n\n effect(() => {\n const val = this.value();\n if (val !== undefined) {\n this.setElementValue(val);\n if (this.select) {\n this.select.writeValue(this.select.value);\n }\n }\n });\n }\n\n id!: string;\n\n readonly ngValue = input<any>(undefined, { alias: 'ngValue' });\n\n readonly value = input<any>(undefined, { alias: 'value' });\n\n setElementValue(value: string) {\n // console.log('setElementValue', value);\n // const nativeSelect = this.select['selectBox'].selectBox;\n // if (nativeSelect) {\n // this.renderer.setProperty(nativeSelect.nativeElement, 'value', value);\n // }\n this.renderer.setProperty(this.element.nativeElement, 'value', value);\n }\n\n ngOnDestroy() {\n if (this.select) {\n this.select.optionMap.delete(this.id);\n this.select.writeValue(this.select.value);\n }\n }\n}\n\n// @Directive({\n// selector: 'bs-select',\n// providers: [{\n// provide: NG_VALUE_ACCESSOR,\n// useExisting: forwardRef(() => BsSelectValueAccessor),\n// multi: true,\n// }],\n// })\n// export class BsSelectValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {\n// constructor(private host: BsSelectComponent) {}\n\n// destroyed$ = new Subject();\n\n// onValueChange?: (value: any) => void;\n// onTouched?: () => void;\n\n// //#region Lifecycle hooks\n// ngAfterViewInit() {\n// fromEvent(this.host.selectBox.nativeElement, 'change')\n// .pipe(takeUntil(this.destroyed$))\n// .subscribe((ev) => {\n// if (this.onValueChange) {\n// const val = (<HTMLSelectElement>ev.target).value;\n// console.log('selected', val);\n// this.onValueChange(val);\n// }\n// });\n// }\n\n// ngOnDestroy() {\n// this.destroyed$.next(true);\n// }\n// //#endregion\n\n// @Input('ngValue') set ngValue(value: any) {\n// if (this.host) {\n// this.host.opt\n// }\n// }\n\n// //#region OptionId mapping\n// private compareWithFunction: (value1: any, value2: any) => boolean = Object.is;\n// private optionMap = new Map<string, any>();\n// @Input() public set compareWith(fn: (value1: any, value2: any) => boolean) {\n// if (typeof fn !== 'function') {\n// throw new Error('compareWith must be a function');\n// }\n// this.compareWithFunction = fn;\n// }\n\n// private getOptionId(value: any) {\n// for (const id of Array.from(this.optionMap.keys())) {\n// if (this.compareWith(this.optionMap.get(id), value)) {\n// return id;\n// }\n// }\n// return null;\n// }\n\n// private getOptionValue(valueString: string) {\n// const id = this.extractId(valueString);\n// return this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n// }\n\n// private extractId(valueString: string) {\n// return valueString.split(':')[0];\n// }\n// //#endregion\n\n// //#region ControlValueAccessor implementation\n// registerOnChange(fn: (_: any) => void) {\n// this.onValueChange = (valueString: string) => {\n// this.value = this.getOptionValue(valueString);\n// fn(this.value);\n// };\n// }\n \n// registerOnTouched(fn: () => void) {\n// this.onTouched = fn;\n// }\n\n// value: any;\n// writeValue(value: any) {\n// this.value = value;\n// if (this.host.selectBox) {\n// // this.host.selectBox.nativeElement.selectedIndex = this.host.selectBox.nativeElement.options.item();\n// }\n// }\n\n// setDisabledState(isDisabled: boolean) {\n// if (this.host.selectBox) {\n// this.host.selectBox.nativeElement.disabled = isDisabled;\n// }\n// }\n// //#endregion\n\n// }\n","import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, forwardRef, inject, input, Renderer2, viewChild } from '@angular/core';\nimport { BsSelectValueAccessor } from '../value-accessors/select-value-accessor';\nimport { BsSelectSize } from '../types/select-size';\n\n@Component({\n selector: 'bs-select',\n templateUrl: './select.component.html',\n styleUrls: ['./select.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [{\n directive: forwardRef(() => BsSelectValueAccessor),\n inputs: ['compareWith'],\n }],\n})\nexport class BsSelectComponent {\n private renderer = inject(Renderer2);\n\n constructor() {\n effect(() => {\n const disabled = this.disabled();\n const selectBox = this.selectBox();\n if (selectBox) {\n this.renderer.setProperty(selectBox.nativeElement, 'disabled', disabled);\n }\n });\n }\n\n // For debugging purposes\n identifier = input(0);\n\n readonly selectBox = viewChild.required<ElementRef<HTMLSelectElement>>('selectBox');\n\n size = input<BsSelectSize>('md');\n multiple = input<boolean>(false);\n numberVisible = input<number | null>(null);\n disabled = input<boolean>(false);\n ariaLabel = input<string | null>(null);\n\n sizeClass = computed(() => {\n const size = this.size();\n switch (size) {\n case 'sm':\n case 'lg':\n return `form-select-${size}`;\n default:\n return null;\n }\n });\n\n multipleValue = computed(() => {\n if (this.multiple()) {\n return true;\n } else {\n return null;\n }\n });\n}\n","<select class=\"form-select\" #selectBox [class]=\"sizeClass()\" [attr.multiple]=\"multipleValue()\" [attr.size]=\"numberVisible()\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content></ng-content>\n</select>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,qBAAqB,CAAA;AAQhC,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AACA,IAAA,gBAAgB,CAAC,EAAkB,EAAA;AACjC,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,WAAmB,KAAI;;YAEtC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC;AAC7C,YAAA,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;AAEhB,QAAA,CAAC;IACH;AACA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;AAClC,QAAA,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,UAAU,CAAC;IAC1C;IACU,WAAW,CAAC,GAAW,EAAE,KAAU,EAAA;AAC3C,QAAA,IAAI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