@mintplayer/ng-bootstrap 22.0.0 → 22.2.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 (373) hide show
  1. package/a11y/package.json +4 -0
  2. package/accordion/package.json +4 -0
  3. package/alert/package.json +4 -0
  4. package/badge/package.json +4 -0
  5. package/breadcrumb/package.json +4 -0
  6. package/button-group/package.json +4 -0
  7. package/button-type/package.json +4 -0
  8. package/calendar/package.json +4 -0
  9. package/calendar-month/package.json +4 -0
  10. package/card/package.json +4 -0
  11. package/carousel/package.json +4 -0
  12. package/checkbox/package.json +4 -0
  13. package/close/package.json +4 -0
  14. package/code-snippet/package.json +4 -0
  15. package/color-picker/package.json +4 -0
  16. package/container/package.json +4 -0
  17. package/context-menu/package.json +4 -0
  18. package/copy/package.json +4 -0
  19. package/datatable/package.json +4 -0
  20. package/datepicker/package.json +4 -0
  21. package/datetime-picker/package.json +4 -0
  22. package/dock/package.json +4 -0
  23. package/dropdown/package.json +4 -0
  24. package/dropdown-divider/package.json +4 -0
  25. package/dropdown-menu/package.json +4 -0
  26. package/enhanced-paste/package.json +4 -0
  27. package/enum/package.json +4 -0
  28. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +470 -0
  29. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -0
  30. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +105 -0
  31. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -0
  32. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +53 -0
  33. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -0
  34. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +26 -0
  35. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -0
  36. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +36 -0
  37. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -0
  38. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +22 -0
  39. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -0
  40. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +37 -0
  41. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -0
  42. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +136 -0
  43. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +1 -0
  44. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +71 -0
  45. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -0
  46. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +338 -0
  47. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -0
  48. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +290 -0
  49. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -0
  50. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +240 -0
  51. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -0
  52. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -0
  53. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -0
  54. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +45 -0
  55. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -0
  56. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +703 -0
  57. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -0
  58. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +18 -0
  59. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +1 -0
  60. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +88 -0
  61. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -0
  62. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +47 -0
  63. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -0
  64. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +659 -0
  65. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -0
  66. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +153 -0
  67. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -0
  68. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +166 -0
  69. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -0
  70. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +135 -0
  71. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -0
  72. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +23 -0
  73. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -0
  74. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +206 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +338 -0
  77. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -0
  78. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +62 -0
  79. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -0
  80. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +38 -0
  81. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -0
  82. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +242 -0
  83. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -0
  84. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +144 -0
  85. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -0
  86. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +25 -0
  87. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -0
  88. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +34 -0
  89. package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +1 -0
  90. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +42 -0
  91. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -0
  92. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +61 -0
  93. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -0
  94. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +133 -0
  95. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -0
  96. package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs +4 -0
  97. package/fesm2022/mintplayer-ng-bootstrap-has-id.mjs.map +1 -0
  98. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +32 -0
  99. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +1 -0
  100. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +23 -0
  101. package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +1 -0
  102. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +23 -0
  103. package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +1 -0
  104. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +18 -0
  105. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -0
  106. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +185 -0
  107. package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +1 -0
  108. package/fesm2022/mintplayer-ng-bootstrap-let.mjs +47 -0
  109. package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -0
  110. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +28 -0
  111. package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +1 -0
  112. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +34 -0
  113. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -0
  114. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +118 -0
  115. package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -0
  116. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +22 -0
  117. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -0
  118. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +254 -0
  119. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -0
  120. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +174 -0
  121. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -0
  122. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +33 -0
  123. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -0
  124. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +751 -0
  125. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -0
  126. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +234 -0
  127. package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -0
  128. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +31 -0
  129. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +1 -0
  130. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +386 -0
  131. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -0
  132. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +36 -0
  133. package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -0
  134. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +264 -0
  135. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -0
  136. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +61 -0
  137. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -0
  138. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +29 -0
  139. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -0
  140. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +66 -0
  141. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -0
  142. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +33 -0
  143. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -0
  144. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +256 -0
  145. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -0
  146. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +272 -0
  147. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -0
  148. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +81 -0
  149. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -0
  150. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +278 -0
  151. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -0
  152. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +189 -0
  153. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -0
  154. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +79 -0
  155. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -0
  156. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +84 -0
  157. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -0
  158. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +60 -0
  159. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +1 -0
  160. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +408 -0
  161. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -0
  162. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +1028 -0
  163. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -0
  164. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +248 -0
  165. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -0
  166. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +186 -0
  167. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -0
  168. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +215 -0
  169. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -0
  170. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +90 -0
  171. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -0
  172. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +81 -0
  173. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -0
  174. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +30 -0
  175. package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +1 -0
  176. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +30 -0
  177. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -0
  178. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +25 -0
  179. package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +1 -0
  180. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +46 -0
  181. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -0
  182. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +142 -0
  183. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -0
  184. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +46 -0
  185. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -0
  186. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +124 -0
  187. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -0
  188. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +215 -0
  189. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -0
  190. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +233 -0
  191. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -0
  192. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +132 -0
  193. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -0
  194. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +168 -0
  195. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -0
  196. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +178 -0
  197. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -0
  198. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +324 -0
  199. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -0
  200. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +189 -0
  201. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -0
  202. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +28 -0
  203. package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -0
  204. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +121 -0
  205. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -0
  206. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +24 -0
  207. package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +1 -0
  208. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +102 -0
  209. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -0
  210. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +48 -0
  211. package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +1 -0
  212. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +34 -0
  213. package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +1 -0
  214. package/file-manager/package.json +4 -0
  215. package/file-upload/package.json +4 -0
  216. package/floating-labels/package.json +4 -0
  217. package/font-color/package.json +4 -0
  218. package/for/package.json +4 -0
  219. package/form/package.json +4 -0
  220. package/grid/package.json +4 -0
  221. package/has-id/package.json +4 -0
  222. package/has-overlay/package.json +4 -0
  223. package/has-property/package.json +4 -0
  224. package/in-list/package.json +4 -0
  225. package/input-group/package.json +4 -0
  226. package/instance-of/package.json +4 -0
  227. package/let/package.json +4 -0
  228. package/linify/package.json +4 -0
  229. package/list-group/package.json +4 -0
  230. package/markdown/package.json +4 -0
  231. package/marquee/package.json +4 -0
  232. package/modal/package.json +4 -0
  233. package/multi-range/package.json +4 -0
  234. package/navbar/package.json +4 -0
  235. package/navbar-toggler/package.json +4 -0
  236. package/navigation-lock/package.json +4 -0
  237. package/no-noscript/package.json +4 -0
  238. package/offcanvas/package.json +4 -0
  239. package/ordinal-number/package.json +4 -0
  240. package/otp-input/package.json +4 -0
  241. package/package.json +376 -2
  242. package/pagination/package.json +4 -0
  243. package/parallax/package.json +4 -0
  244. package/placeholder/package.json +4 -0
  245. package/playlist-toggler/package.json +4 -0
  246. package/popover/package.json +4 -0
  247. package/priority-nav/package.json +4 -0
  248. package/progress-bar/package.json +4 -0
  249. package/query-builder/package.json +4 -0
  250. package/radio/package.json +4 -0
  251. package/range/package.json +4 -0
  252. package/rating/package.json +4 -0
  253. package/reduced-motion/package.json +4 -0
  254. package/resizable/package.json +4 -0
  255. package/ribbon/package.json +4 -0
  256. package/scheduler/package.json +4 -0
  257. package/scrollspy/package.json +4 -0
  258. package/select/package.json +4 -0
  259. package/shell/package.json +4 -0
  260. package/signature-pad/package.json +4 -0
  261. package/slugify/package.json +4 -0
  262. package/spinner/package.json +4 -0
  263. package/split-string/package.json +4 -0
  264. package/sticky-footer/package.json +4 -0
  265. package/tab-control/package.json +4 -0
  266. package/table/package.json +4 -0
  267. package/theming/package.json +4 -0
  268. package/tile-manager/package.json +4 -0
  269. package/timeline/package.json +4 -0
  270. package/timepicker/package.json +4 -0
  271. package/toast/package.json +4 -0
  272. package/tooltip/package.json +4 -0
  273. package/tree-select/package.json +4 -0
  274. package/treeview/package.json +4 -0
  275. package/trust-html/package.json +4 -0
  276. package/typeahead/package.json +4 -0
  277. package/types/mintplayer-ng-bootstrap-a11y.d.ts +196 -0
  278. package/types/mintplayer-ng-bootstrap-accordion.d.ts +39 -0
  279. package/types/mintplayer-ng-bootstrap-alert.d.ts +22 -0
  280. package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -0
  281. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +14 -0
  282. package/types/mintplayer-ng-bootstrap-button-group.d.ts +9 -0
  283. package/types/mintplayer-ng-bootstrap-button-type.d.ts +12 -0
  284. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +54 -0
  285. package/types/mintplayer-ng-bootstrap-calendar.d.ts +23 -0
  286. package/types/mintplayer-ng-bootstrap-card.d.ts +124 -0
  287. package/types/mintplayer-ng-bootstrap-carousel.d.ts +121 -0
  288. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +94 -0
  289. package/types/mintplayer-ng-bootstrap-close.d.ts +10 -0
  290. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +27 -0
  291. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +234 -0
  292. package/types/mintplayer-ng-bootstrap-container.d.ts +8 -0
  293. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +21 -0
  294. package/types/mintplayer-ng-bootstrap-copy.d.ts +12 -0
  295. package/types/mintplayer-ng-bootstrap-datatable.d.ts +234 -0
  296. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +41 -0
  297. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +55 -0
  298. package/types/mintplayer-ng-bootstrap-dock.d.ts +45 -0
  299. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +8 -0
  300. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +66 -0
  301. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +102 -0
  302. package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +20 -0
  303. package/types/mintplayer-ng-bootstrap-enum.d.ts +17 -0
  304. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +97 -0
  305. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +51 -0
  306. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +9 -0
  307. package/types/mintplayer-ng-bootstrap-font-color.d.ts +10 -0
  308. package/types/mintplayer-ng-bootstrap-for.d.ts +13 -0
  309. package/types/mintplayer-ng-bootstrap-form.d.ts +24 -0
  310. package/types/mintplayer-ng-bootstrap-grid.d.ts +50 -0
  311. package/types/mintplayer-ng-bootstrap-has-id.d.ts +5 -0
  312. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +22 -0
  313. package/types/mintplayer-ng-bootstrap-has-property.d.ts +10 -0
  314. package/types/mintplayer-ng-bootstrap-in-list.d.ts +11 -0
  315. package/types/mintplayer-ng-bootstrap-input-group.d.ts +8 -0
  316. package/types/mintplayer-ng-bootstrap-instance-of.d.ts +74 -0
  317. package/types/mintplayer-ng-bootstrap-let.d.ts +44 -0
  318. package/types/mintplayer-ng-bootstrap-linify.d.ts +10 -0
  319. package/types/mintplayer-ng-bootstrap-list-group.d.ts +14 -0
  320. package/types/mintplayer-ng-bootstrap-markdown.d.ts +33 -0
  321. package/types/mintplayer-ng-bootstrap-marquee.d.ts +9 -0
  322. package/types/mintplayer-ng-bootstrap-modal.d.ts +83 -0
  323. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +43 -0
  324. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +13 -0
  325. package/types/mintplayer-ng-bootstrap-navbar.d.ts +238 -0
  326. package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +128 -0
  327. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +11 -0
  328. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +106 -0
  329. package/types/mintplayer-ng-bootstrap-ordinal-number.d.ts +12 -0
  330. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +50 -0
  331. package/types/mintplayer-ng-bootstrap-pagination.d.ts +34 -0
  332. package/types/mintplayer-ng-bootstrap-parallax.d.ts +11 -0
  333. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +23 -0
  334. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +13 -0
  335. package/types/mintplayer-ng-bootstrap-popover.d.ts +67 -0
  336. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +64 -0
  337. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +27 -0
  338. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +113 -0
  339. package/types/mintplayer-ng-bootstrap-radio.d.ts +80 -0
  340. package/types/mintplayer-ng-bootstrap-range.d.ts +28 -0
  341. package/types/mintplayer-ng-bootstrap-rating.d.ts +20 -0
  342. package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +36 -0
  343. package/types/mintplayer-ng-bootstrap-resizable.d.ts +89 -0
  344. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +279 -0
  345. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +171 -0
  346. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +40 -0
  347. package/types/mintplayer-ng-bootstrap-select.d.ts +67 -0
  348. package/types/mintplayer-ng-bootstrap-shell.d.ts +54 -0
  349. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +36 -0
  350. package/types/mintplayer-ng-bootstrap-slugify.d.ts +10 -0
  351. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -0
  352. package/types/mintplayer-ng-bootstrap-split-string.d.ts +10 -0
  353. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +21 -0
  354. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +50 -0
  355. package/types/mintplayer-ng-bootstrap-table.d.ts +25 -0
  356. package/types/mintplayer-ng-bootstrap-theming.d.ts +81 -0
  357. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +58 -0
  358. package/types/mintplayer-ng-bootstrap-timeline.d.ts +112 -0
  359. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +39 -0
  360. package/types/mintplayer-ng-bootstrap-toast.d.ts +67 -0
  361. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +29 -0
  362. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +117 -0
  363. package/types/mintplayer-ng-bootstrap-treeview.d.ts +60 -0
  364. package/types/mintplayer-ng-bootstrap-trust-html.d.ts +12 -0
  365. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +34 -0
  366. package/types/mintplayer-ng-bootstrap-uc-first.d.ts +10 -0
  367. package/types/mintplayer-ng-bootstrap-user-agent.d.ts +28 -0
  368. package/types/mintplayer-ng-bootstrap-viewport.d.ts +16 -0
  369. package/types/mintplayer-ng-bootstrap-word-count.d.ts +10 -0
  370. package/uc-first/package.json +4 -0
  371. package/user-agent/package.json +4 -0
  372. package/viewport/package.json +4 -0
  373. package/word-count/package.json +4 -0
@@ -0,0 +1,264 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, Injector, DestroyRef, forwardRef, Directive, input, model, output, viewChild, ElementRef, computed, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ export * from '@mintplayer/web-components/otp-input';
5
+
6
+ class BsOtpInputValueAccessor {
7
+ constructor() {
8
+ this.host = inject(BsOtpInputComponent);
9
+ // Inject NgControl LAZILY via the injector. Eager `inject(NgControl)` here
10
+ // creates a cycle: NgControl → NG_VALUE_ACCESSOR token → this directive →
11
+ // NgControl. Looking it up in ngOnInit (after the form directive has
12
+ // finished its own construction) breaks the cycle.
13
+ this.injector = inject(Injector);
14
+ this.destroyRef = inject(DestroyRef);
15
+ this.ngControl = null;
16
+ }
17
+ ngOnInit() {
18
+ this.ngControl = this.injector.get(NgControl, null);
19
+ // Push invalid state to the WC whenever the form control's status or
20
+ // touched state changes. Mirrors Bootstrap's .is-invalid convention: only
21
+ // mark the boxes red after the control has been touched, otherwise we'd
22
+ // light up a "required" field the moment the form mounts.
23
+ if (!this.ngControl?.control)
24
+ return;
25
+ const sub = this.ngControl.statusChanges?.subscribe(() => this.syncInvalid());
26
+ if (sub)
27
+ this.destroyRef.onDestroy(() => sub.unsubscribe());
28
+ // Sync once now in case the control was created already invalid+touched
29
+ // (e.g. server-side validation rehydrate).
30
+ queueMicrotask(() => this.syncInvalid());
31
+ }
32
+ onValueChangeEvent(ev) {
33
+ if (!this.onValueChange)
34
+ return;
35
+ const detail = ev.detail ?? '';
36
+ this.onValueChange(detail);
37
+ }
38
+ onTouchEvent() {
39
+ if (this.onTouched)
40
+ this.onTouched();
41
+ // Re-sync invalid on touch — statusChanges doesn't always fire on touched
42
+ // alone, so we trigger the recompute here.
43
+ this.syncInvalid();
44
+ }
45
+ syncInvalid() {
46
+ // Guard async-scheduled invocations: queueMicrotask in ngOnInit + the
47
+ // statusChanges subscription are both possible after destroy. Reading
48
+ // `host.elementRef()` (a required viewChild) on a destroyed view throws.
49
+ if (this.destroyRef.destroyed)
50
+ return;
51
+ const ref = this.host.elementRef();
52
+ if (!ref || !this.ngControl)
53
+ return;
54
+ const invalid = (this.ngControl.invalid ?? false) && (this.ngControl.touched ?? false);
55
+ ref.nativeElement.invalid = invalid;
56
+ }
57
+ registerOnChange(fn) {
58
+ this.onValueChange = fn;
59
+ }
60
+ registerOnTouched(fn) {
61
+ this.onTouched = fn;
62
+ }
63
+ writeValue(value) {
64
+ const ref = this.host.elementRef();
65
+ if (!ref)
66
+ return;
67
+ ref.nativeElement.value = value ?? '';
68
+ }
69
+ setDisabledState(isDisabled) {
70
+ const ref = this.host.elementRef();
71
+ if (!ref)
72
+ return;
73
+ if (isDisabled) {
74
+ ref.nativeElement.setAttribute('disabled', '');
75
+ }
76
+ else {
77
+ ref.nativeElement.removeAttribute('disabled');
78
+ }
79
+ }
80
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
81
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsOtpInputValueAccessor, isStandalone: true, selector: "bs-otp-input", host: { listeners: { "value-change": "onValueChangeEvent($event)", "focusout": "onTouchEvent()" } }, providers: [{
82
+ provide: NG_VALUE_ACCESSOR,
83
+ useExisting: forwardRef(() => BsOtpInputValueAccessor),
84
+ multi: true,
85
+ }], ngImport: i0 }); }
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputValueAccessor, decorators: [{
88
+ type: Directive,
89
+ args: [{
90
+ selector: 'bs-otp-input',
91
+ providers: [{
92
+ provide: NG_VALUE_ACCESSOR,
93
+ useExisting: forwardRef(() => BsOtpInputValueAccessor),
94
+ multi: true,
95
+ }],
96
+ host: {
97
+ '(value-change)': 'onValueChangeEvent($event)',
98
+ '(focusout)': 'onTouchEvent()',
99
+ },
100
+ }]
101
+ }] });
102
+
103
+ class BsOtpInputComponent {
104
+ constructor() {
105
+ this.groups = input([1, 1, 1, 1, 1, 1], /* @ts-ignore */
106
+ ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
107
+ this.type = input('numeric', /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
109
+ this.case = input('upper', /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "case" }] : /* istanbul ignore next */ []));
111
+ this.size = input('md', /* @ts-ignore */
112
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
113
+ this.disabled = input(false, /* @ts-ignore */
114
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
115
+ this.invalid = input(false, /* @ts-ignore */
116
+ ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
117
+ this.label = input(null, /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
119
+ // `model()` already exposes a `valueChange` output for two-way [(value)]
120
+ // binding; declaring it explicitly is an error in Angular 22 (NG1054).
121
+ // `value.set()` in onValueChange drives that auto-output.
122
+ this.value = model(undefined, /* @ts-ignore */
123
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
124
+ this.complete = output();
125
+ this.elementRef = viewChild.required('el');
126
+ this.hostRef = inject((ElementRef));
127
+ this.invalidAttr = computed(() => (this.invalid() ? '' : null), /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "invalidAttr" }] : /* istanbul ignore next */ []));
129
+ // Override the host DOM element's `.focus` so external directives that look
130
+ // up the element and call `.focus()` on it (e.g. FocusOnLoadDirective's
131
+ // `*[autofocus]`) route into the internal hidden input. Without this, the
132
+ // call hits HTMLElement.prototype.focus which is a no-op on a non-focusable
133
+ // host. Capture the WC ref lazily because viewChild isn't available in the
134
+ // constructor and external directives may call .focus() before our
135
+ // ngAfterViewInit runs.
136
+ const host = this.hostRef.nativeElement;
137
+ Object.defineProperty(host, 'focus', {
138
+ value: (options) => {
139
+ const wc = this.elementRef()?.nativeElement;
140
+ if (wc) {
141
+ wc.focus(options);
142
+ }
143
+ else {
144
+ // Defer to a microtask so a focus() call landing before the view is
145
+ // ready still hits the WC once it mounts. FocusOnLoadDirective uses
146
+ // setTimeout(10) which runs after microtasks, so this path is mostly
147
+ // defensive — but it cheaply handles the race.
148
+ Promise.resolve().then(() => this.elementRef()?.nativeElement.focus(options));
149
+ }
150
+ },
151
+ configurable: true,
152
+ writable: true,
153
+ });
154
+ // Forward signal inputs that aren't attributes (groups is a number[] —
155
+ // attribute serialisation works for it, but property write is the canonical
156
+ // path and avoids the "string-from-attribute" parse round-trip).
157
+ effect(() => {
158
+ const ref = this.elementRef();
159
+ if (!ref)
160
+ return;
161
+ ref.nativeElement.groups = this.groups();
162
+ });
163
+ // Forward `value` model writes to the WC. Skip undefined so a freshly-set
164
+ // form control's writeValue(null) can still clear the field (we map null
165
+ // to '' inside the WC's normaliseValue).
166
+ effect(() => {
167
+ const ref = this.elementRef();
168
+ if (!ref)
169
+ return;
170
+ const v = this.value();
171
+ if (v === undefined)
172
+ return;
173
+ ref.nativeElement.value = v;
174
+ });
175
+ // Forward the `invalid` boolean to the WC's invalid property (mirrors the
176
+ // attribute, but property write is the canonical path for a boolean).
177
+ effect(() => {
178
+ const ref = this.elementRef();
179
+ if (!ref)
180
+ return;
181
+ ref.nativeElement.invalid = this.invalid();
182
+ });
183
+ // Forward `disabled` via attribute. This used to be `[attr.disabled]` in the
184
+ // template, but that creates a race with the CVA's `setDisabledState`:
185
+ // both write to the same DOM attribute, and any signal change in the
186
+ // wrapper re-fires the template binding which clobbers the CVA's
187
+ // form-disabled state. Using an effect makes the write fire only when the
188
+ // `disabled` signal actually changes; the CVA's imperative writes are
189
+ // unaffected because Angular doesn't reconcile attribute bindings in the
190
+ // template anymore for this attr.
191
+ effect(() => {
192
+ const ref = this.elementRef();
193
+ if (!ref)
194
+ return;
195
+ if (this.disabled()) {
196
+ ref.nativeElement.setAttribute('disabled', '');
197
+ }
198
+ else {
199
+ ref.nativeElement.removeAttribute('disabled');
200
+ }
201
+ });
202
+ }
203
+ onValueChange(event) {
204
+ const detail = event.detail ?? '';
205
+ this.value.set(detail);
206
+ }
207
+ onCompleteEvent(event) {
208
+ // The WC's `complete` DOM event bubbles. The wrapper's Output is also
209
+ // named `complete`. Without stopPropagation, the parent's `(complete)`
210
+ // binding would catch BOTH the bubbled DOM event AND the Output emit
211
+ // below — Angular's `(name)` binding on a child component listens to
212
+ // both channels when their names collide.
213
+ event.stopPropagation();
214
+ const detail = event.detail ?? '';
215
+ this.complete.emit(detail);
216
+ }
217
+ /** Move focus into the hidden input. */
218
+ focus(options) {
219
+ this.elementRef()?.nativeElement.focus(options);
220
+ }
221
+ /** Reset the value to empty string. */
222
+ clear() {
223
+ this.elementRef()?.nativeElement.clear();
224
+ }
225
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
226
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsOtpInputComponent, isStandalone: true, selector: "bs-otp-input", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, case: { classPropertyName: "case", publicName: "case", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, host: { properties: { "attr.size": "size()" } }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsOtpInputValueAccessor }], ngImport: i0, template: `
227
+ <mp-otp-input
228
+ #el
229
+ class="bs-otp-input"
230
+ [attr.type]="type()"
231
+ [attr.case]="case()"
232
+ [attr.size]="size()"
233
+ [attr.invalid]="invalidAttr()"
234
+ [attr.label]="label()"
235
+ (value-change)="onValueChange($event)"
236
+ (complete)="onCompleteEvent($event)"
237
+ ></mp-otp-input>
238
+ `, isInline: true, styles: [":host{display:inline-block}.bs-otp-input{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
239
+ }
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsOtpInputComponent, decorators: [{
241
+ type: Component,
242
+ args: [{ selector: 'bs-otp-input', template: `
243
+ <mp-otp-input
244
+ #el
245
+ class="bs-otp-input"
246
+ [attr.type]="type()"
247
+ [attr.case]="case()"
248
+ [attr.size]="size()"
249
+ [attr.invalid]="invalidAttr()"
250
+ [attr.label]="label()"
251
+ (value-change)="onValueChange($event)"
252
+ (complete)="onCompleteEvent($event)"
253
+ ></mp-otp-input>
254
+ `, host: {
255
+ '[attr.size]': 'size()',
256
+ }, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsOtpInputValueAccessor], styles: [":host{display:inline-block}.bs-otp-input{display:inline-flex}\n"] }]
257
+ }], ctorParameters: () => [], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], case: [{ type: i0.Input, args: [{ isSignal: true, alias: "case", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], complete: [{ type: i0.Output, args: ["complete"] }], elementRef: [{ type: i0.ViewChild, args: ['el', { isSignal: true }] }] } });
258
+
259
+ /**
260
+ * Generated bundle index. Do not edit.
261
+ */
262
+
263
+ export { BsOtpInputComponent, BsOtpInputValueAccessor };
264
+ //# sourceMappingURL=mintplayer-ng-bootstrap-otp-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-otp-input.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/value-accessor/otp-input-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/src/lib/components/otp-input.component.ts","../../../../libs/mintplayer-ng-bootstrap/otp-input/mintplayer-ng-bootstrap-otp-input.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport { BsOtpInputComponent } from '../components/otp-input.component';\n\n@Directive({\n selector: 'bs-otp-input',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsOtpInputValueAccessor),\n multi: true,\n }],\n host: {\n '(value-change)': 'onValueChangeEvent($event)',\n '(focusout)': 'onTouchEvent()',\n },\n})\nexport class BsOtpInputValueAccessor implements ControlValueAccessor, OnInit {\n private host = inject(BsOtpInputComponent);\n // Inject NgControl LAZILY via the injector. Eager `inject(NgControl)` here\n // creates a cycle: NgControl → NG_VALUE_ACCESSOR token → this directive →\n // NgControl. Looking it up in ngOnInit (after the form directive has\n // finished its own construction) breaks the cycle.\n private injector = inject(Injector);\n private destroyRef = inject(DestroyRef);\n private ngControl: NgControl | null = null;\n\n private onValueChange?: (value: string) => void;\n private onTouched?: () => void;\n\n ngOnInit(): void {\n this.ngControl = this.injector.get(NgControl, null);\n // Push invalid state to the WC whenever the form control's status or\n // touched state changes. Mirrors Bootstrap's .is-invalid convention: only\n // mark the boxes red after the control has been touched, otherwise we'd\n // light up a \"required\" field the moment the form mounts.\n if (!this.ngControl?.control) return;\n const sub = this.ngControl.statusChanges?.subscribe(() => this.syncInvalid());\n if (sub) this.destroyRef.onDestroy(() => sub.unsubscribe());\n // Sync once now in case the control was created already invalid+touched\n // (e.g. server-side validation rehydrate).\n queueMicrotask(() => this.syncInvalid());\n }\n\n protected onValueChangeEvent(ev: Event): void {\n if (!this.onValueChange) return;\n const detail = (ev as CustomEvent<string>).detail ?? '';\n this.onValueChange(detail);\n }\n\n protected onTouchEvent(): void {\n if (this.onTouched) this.onTouched();\n // Re-sync invalid on touch — statusChanges doesn't always fire on touched\n // alone, so we trigger the recompute here.\n this.syncInvalid();\n }\n\n private syncInvalid(): void {\n // Guard async-scheduled invocations: queueMicrotask in ngOnInit + the\n // statusChanges subscription are both possible after destroy. Reading\n // `host.elementRef()` (a required viewChild) on a destroyed view throws.\n if (this.destroyRef.destroyed) return;\n const ref = this.host.elementRef();\n if (!ref || !this.ngControl) return;\n const invalid = (this.ngControl.invalid ?? false) && (this.ngControl.touched ?? false);\n ref.nativeElement.invalid = invalid;\n }\n\n registerOnChange(fn: (value: string) => void): void {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null | undefined): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n ref.nativeElement.value = value ?? '';\n }\n\n setDisabledState(isDisabled: boolean): void {\n const ref = this.host.elementRef();\n if (!ref) return;\n if (isDisabled) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MintOtpInputElement,\n OtpInputType,\n OtpInputCase,\n OtpInputSize,\n} from '@mintplayer/web-components/otp-input';\nimport { BsOtpInputValueAccessor } from '../value-accessor/otp-input-value-accessor';\n\n@Component({\n selector: 'bs-otp-input',\n template: `\n <mp-otp-input\n #el\n class=\"bs-otp-input\"\n [attr.type]=\"type()\"\n [attr.case]=\"case()\"\n [attr.size]=\"size()\"\n [attr.invalid]=\"invalidAttr()\"\n [attr.label]=\"label()\"\n (value-change)=\"onValueChange($event)\"\n (complete)=\"onCompleteEvent($event)\"\n ></mp-otp-input>\n `,\n styles: [`\n :host { display: inline-block; }\n .bs-otp-input { display: inline-flex; }\n `],\n host: {\n '[attr.size]': 'size()',\n },\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsOtpInputValueAccessor],\n})\nexport class BsOtpInputComponent {\n readonly groups = input<number[]>([1, 1, 1, 1, 1, 1]);\n readonly type = input<OtpInputType>('numeric');\n readonly case = input<OtpInputCase>('upper');\n readonly size = input<OtpInputSize>('md');\n readonly disabled = input(false);\n readonly invalid = input(false);\n readonly label = input<string | null>(null);\n\n // `model()` already exposes a `valueChange` output for two-way [(value)]\n // binding; declaring it explicitly is an error in Angular 22 (NG1054).\n // `value.set()` in onValueChange drives that auto-output.\n readonly value = model<string | undefined>(undefined);\n\n readonly complete = output<string>();\n\n readonly elementRef = viewChild.required<ElementRef<MintOtpInputElement>>('el');\n\n private readonly hostRef = inject(ElementRef<HTMLElement>);\n\n protected readonly invalidAttr = computed(() => (this.invalid() ? '' : null));\n\n constructor() {\n // Override the host DOM element's `.focus` so external directives that look\n // up the element and call `.focus()` on it (e.g. FocusOnLoadDirective's\n // `*[autofocus]`) route into the internal hidden input. Without this, the\n // call hits HTMLElement.prototype.focus which is a no-op on a non-focusable\n // host. Capture the WC ref lazily because viewChild isn't available in the\n // constructor and external directives may call .focus() before our\n // ngAfterViewInit runs.\n const host = this.hostRef.nativeElement as HTMLElement & { focus: (o?: FocusOptions) => void };\n Object.defineProperty(host, 'focus', {\n value: (options?: FocusOptions) => {\n const wc = this.elementRef()?.nativeElement;\n if (wc) {\n wc.focus(options);\n } else {\n // Defer to a microtask so a focus() call landing before the view is\n // ready still hits the WC once it mounts. FocusOnLoadDirective uses\n // setTimeout(10) which runs after microtasks, so this path is mostly\n // defensive — but it cheaply handles the race.\n Promise.resolve().then(() => this.elementRef()?.nativeElement.focus(options));\n }\n },\n configurable: true,\n writable: true,\n });\n\n // Forward signal inputs that aren't attributes (groups is a number[] —\n // attribute serialisation works for it, but property write is the canonical\n // path and avoids the \"string-from-attribute\" parse round-trip).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.groups = this.groups();\n });\n\n // Forward `value` model writes to the WC. Skip undefined so a freshly-set\n // form control's writeValue(null) can still clear the field (we map null\n // to '' inside the WC's normaliseValue).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n const v = this.value();\n if (v === undefined) return;\n ref.nativeElement.value = v;\n });\n\n // Forward the `invalid` boolean to the WC's invalid property (mirrors the\n // attribute, but property write is the canonical path for a boolean).\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.invalid = this.invalid();\n });\n\n // Forward `disabled` via attribute. This used to be `[attr.disabled]` in the\n // template, but that creates a race with the CVA's `setDisabledState`:\n // both write to the same DOM attribute, and any signal change in the\n // wrapper re-fires the template binding which clobbers the CVA's\n // form-disabled state. Using an effect makes the write fire only when the\n // `disabled` signal actually changes; the CVA's imperative writes are\n // unaffected because Angular doesn't reconcile attribute bindings in the\n // template anymore for this attr.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n if (this.disabled()) {\n ref.nativeElement.setAttribute('disabled', '');\n } else {\n ref.nativeElement.removeAttribute('disabled');\n }\n });\n }\n\n protected onValueChange(event: Event): void {\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.value.set(detail);\n }\n\n protected onCompleteEvent(event: Event): void {\n // The WC's `complete` DOM event bubbles. The wrapper's Output is also\n // named `complete`. Without stopPropagation, the parent's `(complete)`\n // binding would catch BOTH the bubbled DOM event AND the Output emit\n // below — Angular's `(name)` binding on a child component listens to\n // both channels when their names collide.\n event.stopPropagation();\n const detail = (event as CustomEvent<string>).detail ?? '';\n this.complete.emit(detail);\n }\n\n /** Move focus into the hidden input. */\n focus(options?: FocusOptions): void {\n this.elementRef()?.nativeElement.focus(options);\n }\n\n /** Reset the value to empty string. */\n clear(): void {\n this.elementRef()?.nativeElement.clear();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsOtpInputValueAccessor"],"mappings":";;;;;MAgBa,uBAAuB,CAAA;AAZpC,IAAA,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
+ import { input, model, viewChild, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import '@mintplayer/web-components/pagination';
4
+
5
+ const SIZE_MAP = {
6
+ small: 'small',
7
+ medium: 'medium',
8
+ large: 'large',
9
+ };
10
+ class BsPaginationComponent {
11
+ constructor() {
12
+ /** All page numbers. */
13
+ this.pageNumbers = input([], /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "pageNumbers" }] : /* istanbul ignore next */ []));
15
+ /** Selected number. */
16
+ this.selectedPageNumber = model(1, /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "selectedPageNumber" }] : /* istanbul ignore next */ []));
18
+ /** Number of boxes (cap on visible items; the WC clamps to whatever fits the host). */
19
+ this.numberOfBoxes = input(0, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "numberOfBoxes" }] : /* istanbul ignore next */ []));
21
+ /** Display previous/next arrows. */
22
+ this.showArrows = input(true, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "showArrows" }] : /* istanbul ignore next */ []));
24
+ /** Page number size. */
25
+ this.size = input('medium', /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
27
+ /** Accessible name on the surrounding `<nav>` landmark. */
28
+ this.ariaLabel = input('Pagination', /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
30
+ this.paginationRef = viewChild('pagination', /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "paginationRef" }] : /* istanbul ignore next */ []));
32
+ effect(() => {
33
+ const el = this.paginationRef()?.nativeElement;
34
+ if (!el)
35
+ return;
36
+ el.pageNumbers = this.pageNumbers();
37
+ el.selectedPageNumber = this.selectedPageNumber();
38
+ el.numberOfBoxes = this.numberOfBoxes();
39
+ el.showArrows = this.showArrows();
40
+ el.size = SIZE_MAP[this.size()] ?? 'medium';
41
+ el.setAttribute('aria-label', this.ariaLabel());
42
+ });
43
+ }
44
+ onPageChange(event) {
45
+ const detail = event.detail;
46
+ this.selectedPageNumber.set(detail.page);
47
+ }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsPaginationComponent, isStandalone: true, selector: "bs-pagination", inputs: { pageNumbers: { classPropertyName: "pageNumbers", publicName: "pageNumbers", isSignal: true, isRequired: false, transformFunction: null }, selectedPageNumber: { classPropertyName: "selectedPageNumber", publicName: "selectedPageNumber", isSignal: true, isRequired: false, transformFunction: null }, numberOfBoxes: { classPropertyName: "numberOfBoxes", publicName: "numberOfBoxes", isSignal: true, isRequired: false, transformFunction: null }, showArrows: { classPropertyName: "showArrows", publicName: "showArrows", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedPageNumber: "selectedPageNumberChange" }, viewQueries: [{ propertyName: "paginationRef", first: true, predicate: ["pagination"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-pagination #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n", styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
50
+ }
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPaginationComponent, decorators: [{
52
+ type: Component,
53
+ args: [{ selector: 'bs-pagination', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-pagination #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n", styles: [":host{display:block}\n"] }]
54
+ }], ctorParameters: () => [], propDecorators: { pageNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageNumbers", required: false }] }], selectedPageNumber: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedPageNumber", required: false }] }, { type: i0.Output, args: ["selectedPageNumberChange"] }], numberOfBoxes: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfBoxes", required: false }] }], showArrows: [{ type: i0.Input, args: [{ isSignal: true, alias: "showArrows", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], paginationRef: [{ type: i0.ViewChild, args: ['pagination', { isSignal: true }] }] } });
55
+
56
+ /**
57
+ * Generated bundle index. Do not edit.
58
+ */
59
+
60
+ export { BsPaginationComponent };
61
+ //# sourceMappingURL=mintplayer-ng-bootstrap-pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-pagination.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/pagination/src/component/pagination/pagination.component.ts","../../../../libs/mintplayer-ng-bootstrap/pagination/src/component/pagination/pagination.component.html","../../../../libs/mintplayer-ng-bootstrap/pagination/mintplayer-ng-bootstrap-pagination.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { Size } from '@mintplayer/ng-bootstrap';\nimport {\n type MpPagination,\n type PageChangeEventDetail,\n type PaginationSize,\n} from '@mintplayer/web-components/pagination';\n\n// Side-effect import: registers <mp-pagination>.\nimport '@mintplayer/web-components/pagination';\n\nconst SIZE_MAP: Record<Size, PaginationSize> = {\n small: 'small',\n medium: 'medium',\n large: 'large',\n};\n\n@Component({\n selector: 'bs-pagination',\n templateUrl: './pagination.component.html',\n styleUrls: ['./pagination.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsPaginationComponent {\n /** All page numbers. */\n readonly pageNumbers = input<number[]>([]);\n /** Selected number. */\n readonly selectedPageNumber = model<number>(1);\n /** Number of boxes (cap on visible items; the WC clamps to whatever fits the host). */\n readonly numberOfBoxes = input<number>(0);\n /** Display previous/next arrows. */\n readonly showArrows = input<boolean>(true);\n /** Page number size. */\n readonly size = input<Size>('medium');\n /** Accessible name on the surrounding `<nav>` landmark. */\n readonly ariaLabel = input<string>('Pagination');\n\n protected readonly paginationRef = viewChild<ElementRef<MpPagination>>('pagination');\n\n constructor() {\n effect(() => {\n const el = this.paginationRef()?.nativeElement;\n if (!el) return;\n el.pageNumbers = this.pageNumbers();\n el.selectedPageNumber = this.selectedPageNumber();\n el.numberOfBoxes = this.numberOfBoxes();\n el.showArrows = this.showArrows();\n el.size = SIZE_MAP[this.size()] ?? 'medium';\n el.setAttribute('aria-label', this.ariaLabel());\n });\n }\n\n onPageChange(event: Event): void {\n const detail = (event as CustomEvent<PageChangeEventDetail>).detail;\n this.selectedPageNumber.set(detail.page);\n }\n}\n","<mp-pagination #pagination (mp-pagination-page-change)=\"onPageChange($event)\"></mp-pagination>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAoBA,MAAM,QAAQ,GAAiC;AAC7C,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,OAAO;CACf;MASY,qBAAqB,CAAA;AAgBhC,IAAA,WAAA,GAAA;;QAdS,IAAA,CAAA,WAAW,GAAG,KAAK,CAAW,EAAE;wFAAC;;QAEjC,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,CAAC;+FAAC;;QAErC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAS,CAAC;0FAAC;;QAEhC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,IAAI;uFAAC;;QAEjC,IAAA,CA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,EAAA,CAAA,CAAA;;2FDgCa,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,WAGhB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oGAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;gwBAgBwB,YAAY,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/CrF;;AAEG;;;;"}
@@ -0,0 +1,29 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+
4
+ class BsParallaxComponent {
5
+ constructor() {
6
+ this.height = input(150, /* @ts-ignore */
7
+ ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
8
+ this.image = input.required(/* @ts-ignore */
9
+ ...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
10
+ this.imageStyle = computed(() => {
11
+ const img = this.image();
12
+ return !!img ? `url(${img})` : '';
13
+ }, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "imageStyle" }] : /* istanbul ignore next */ []));
15
+ }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsParallaxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
17
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsParallaxComponent, isStandalone: true, selector: "bs-parallax", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n", styles: [".parallax{background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18
+ }
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsParallaxComponent, decorators: [{
20
+ type: Component,
21
+ args: [{ selector: 'bs-parallax', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n", styles: [".parallax{background-attachment:fixed;background-position:center;background-repeat:no-repeat;background-size:cover}\n"] }]
22
+ }], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: true }] }] } });
23
+
24
+ /**
25
+ * Generated bundle index. Do not edit.
26
+ */
27
+
28
+ export { BsParallaxComponent };
29
+ //# sourceMappingURL=mintplayer-ng-bootstrap-parallax.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-parallax.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/parallax/src/parallax.component.ts","../../../../libs/mintplayer-ng-bootstrap/parallax/src/parallax.component.html","../../../../libs/mintplayer-ng-bootstrap/parallax/mintplayer-ng-bootstrap-parallax.ts"],"sourcesContent":["import { Component, Input, computed, input, ChangeDetectionStrategy} from '@angular/core';\n\n\n@Component({\n selector: 'bs-parallax',\n templateUrl: './parallax.component.html',\n styleUrl: './parallax.component.scss',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsParallaxComponent {\n height = input<number>(150);\n image = input.required<string>();\n imageStyle = computed(() => {\n const img = this.image();\n return !!img ? `url(${img})` : '';\n });\n}\n","<div class=\"parallax\" [style.height.px]=\"height()\" [style.background-image]=\"imageStyle()\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,mBAAmB,CAAA;AAPhC,IAAA,WAAA,GAAA;QAQE,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,GAAG;mFAAC;QAC3B,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAU;AAChC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;AACzB,YAAA,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE;AACxB,YAAA,OAAO,CAAC,CAAC,GAAG,GAAG,CAAA,IAAA,EAAO,GAAG,CAAA,CAAA,CAAG,GAAG,EAAE;QACnC,CAAC;uFAAC;AACH,IAAA;8GAPY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,mBAAmB,qUCVhC,2GACA,EAAA,MAAA,EAAA,CAAA,uHAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDSa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAP/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EAGd,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2GAAA,EAAA,MAAA,EAAA,CAAA,uHAAA,CAAA,EAAA;;;AERjD;;AAEG;;;;"}
@@ -0,0 +1,66 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, model, input, effect, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
+ import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
4
+
5
+ class BsPlaceholderComponent {
6
+ constructor() {
7
+ this.announcer = inject(BsLiveAnnouncerService);
8
+ this.isLoading = model(false, /* @ts-ignore */
9
+ ...(ngDevMode ? [{ debugName: "isLoading" }] : /* istanbul ignore next */ []));
10
+ this.loadingCompleteText = input('Loading complete', /* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "loadingCompleteText" }] : /* istanbul ignore next */ []));
12
+ this.wasLoading = false;
13
+ effect(() => {
14
+ const isLoading = this.isLoading();
15
+ if (this.wasLoading && !isLoading) {
16
+ this.announcer.announce(this.loadingCompleteText());
17
+ }
18
+ this.wasLoading = isLoading;
19
+ });
20
+ }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsPlaceholderComponent, isStandalone: true, selector: "bs-placeholder", inputs: { isLoading: { classPropertyName: "isLoading", publicName: "isLoading", isSignal: true, isRequired: false, transformFunction: null }, loadingCompleteText: { classPropertyName: "loadingCompleteText", publicName: "loadingCompleteText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isLoading: "isLoadingChange" }, host: { properties: { "attr.aria-busy": "isLoading() ? \"true\" : null", "attr.aria-live": "isLoading() ? \"polite\" : null" } }, ngImport: i0, template: "<div class=\"placeholder-glow\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}:host ::ng-deep .placeholder.btn:before{display:inline-block;content:\"\"}:host ::ng-deep .placeholder-xs{min-height:.6em}:host ::ng-deep .placeholder-sm{min-height:.8em}:host ::ng-deep .placeholder-lg{min-height:1.2em}:host ::ng-deep .placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}:host ::ng-deep .placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}:host ::ng-deep .placeholder{min-height:calc(1em - 1px)!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderComponent, decorators: [{
25
+ type: Component,
26
+ args: [{ selector: 'bs-placeholder', changeDetection: ChangeDetectionStrategy.OnPush, host: {
27
+ '[attr.aria-busy]': 'isLoading() ? "true" : null',
28
+ '[attr.aria-live]': 'isLoading() ? "polite" : null',
29
+ }, template: "<div class=\"placeholder-glow\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}:host ::ng-deep .placeholder.btn:before{display:inline-block;content:\"\"}:host ::ng-deep .placeholder-xs{min-height:.6em}:host ::ng-deep .placeholder-sm{min-height:.8em}:host ::ng-deep .placeholder-lg{min-height:1.2em}:host ::ng-deep .placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}:host ::ng-deep .placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}:host ::ng-deep .placeholder{min-height:calc(1em - 1px)!important}\n"] }]
30
+ }], ctorParameters: () => [], propDecorators: { isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }, { type: i0.Output, args: ["isLoadingChange"] }], loadingCompleteText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingCompleteText", required: false }] }] } });
31
+
32
+ class BsPlaceholderFieldDirective {
33
+ constructor() {
34
+ this.placeholder = inject(BsPlaceholderComponent);
35
+ this.html = undefined;
36
+ this.marginBottom = 0;
37
+ this.placeholderClass = true;
38
+ effect(() => {
39
+ const isLoading = this.placeholder.isLoading();
40
+ this.placeholderClass = isLoading;
41
+ this.marginBottom = isLoading ? -1 : 0;
42
+ this.html = isLoading ? '&nbsp;' : undefined;
43
+ });
44
+ }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsPlaceholderFieldDirective, isStandalone: true, selector: "[bsPlaceholderField]", host: { properties: { "attr.innerHtml": "html", "style.min-width.px": "80", "style.margin-bottom.px": "marginBottom", "class.placeholder": "placeholderClass" } }, ngImport: i0 }); }
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaceholderFieldDirective, decorators: [{
49
+ type: Directive,
50
+ args: [{
51
+ selector: '[bsPlaceholderField]',
52
+ host: {
53
+ '[attr.innerHtml]': 'html',
54
+ '[style.min-width.px]': '80',
55
+ '[style.margin-bottom.px]': 'marginBottom',
56
+ '[class.placeholder]': 'placeholderClass',
57
+ },
58
+ }]
59
+ }], ctorParameters: () => [] });
60
+
61
+ /**
62
+ * Generated bundle index. Do not edit.
63
+ */
64
+
65
+ export { BsPlaceholderComponent, BsPlaceholderFieldDirective };
66
+ //# sourceMappingURL=mintplayer-ng-bootstrap-placeholder.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-placeholder.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder/placeholder.component.html","../../../../libs/mintplayer-ng-bootstrap/placeholder/src/placeholder-field/placeholder-field.directive.ts","../../../../libs/mintplayer-ng-bootstrap/placeholder/mintplayer-ng-bootstrap-placeholder.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, effect, inject, input, model } from '@angular/core';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-placeholder',\n templateUrl: './placeholder.component.html',\n styleUrls: ['./placeholder.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.aria-busy]': 'isLoading() ? \"true\" : null',\n '[attr.aria-live]': 'isLoading() ? \"polite\" : null',\n },\n})\nexport class BsPlaceholderComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n isLoading = model<boolean>(false);\n loadingCompleteText = input<string>('Loading complete');\n\n private wasLoading = false;\n\n constructor() {\n effect(() => {\n const isLoading = this.isLoading();\n if (this.wasLoading && !isLoading) {\n this.announcer.announce(this.loadingCompleteText());\n }\n this.wasLoading = isLoading;\n });\n }\n}\n","<div class=\"placeholder-glow\">\n <ng-content></ng-content>\n</div>","import { Directive, effect, inject } from '@angular/core';\nimport { BsPlaceholderComponent } from '../placeholder/placeholder.component';\n\n@Directive({\n selector: '[bsPlaceholderField]',\n host: {\n '[attr.innerHtml]': 'html',\n '[style.min-width.px]': '80',\n '[style.margin-bottom.px]': 'marginBottom',\n '[class.placeholder]': 'placeholderClass',\n },\n})\nexport class BsPlaceholderFieldDirective {\n private placeholder = inject(BsPlaceholderComponent);\n\n constructor() {\n effect(() => {\n const isLoading = this.placeholder.isLoading();\n this.placeholderClass = isLoading;\n this.marginBottom = isLoading ? -1 : 0;\n this.html = isLoading ? '&nbsp;' : undefined;\n });\n }\n\n html?: string = undefined;\n marginBottom = 0;\n placeholderClass = true;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAaa,sBAAsB,CAAA;AAQjC,IAA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+ import * as i0 from '@angular/core';
2
+ import { model, input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+
4
+ class BsPlaylistTogglerComponent {
5
+ constructor() {
6
+ this.state = model(false, /* @ts-ignore */
7
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
8
+ this.toggleOnClick = input(true, /* @ts-ignore */
9
+ ...(ngDevMode ? [{ debugName: "toggleOnClick" }] : /* istanbul ignore next */ []));
10
+ this.ariaLabel = input('Toggle playlist', /* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
12
+ this.controls = input(null, /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
14
+ }
15
+ toggleState() {
16
+ if (this.toggleOnClick()) {
17
+ this.state.update(v => !v);
18
+ }
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaylistTogglerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsPlaylistTogglerComponent, isStandalone: true, selector: "bs-playlist-toggler", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { state: "stateChange" }, ngImport: i0, template: "<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n", styles: [".playlist-toggler{width:3.5rem;padding:.75rem;border:none;background:transparent;cursor:pointer}.playlist-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.playlist-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.playlist-toggler.open>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:0}.playlist-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}.playlist-toggler:not(.open)>div:nth-of-type(1){-webkit-transform:rotate(-30deg) translate(-10px,11px);transform:rotate(-30deg) translate(-10px,11px)}.playlist-toggler:not(.open)>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:1}.playlist-toggler:not(.open)>div:nth-of-type(3){-webkit-transform:rotate(30deg) translate(-10px,-11px);transform:rotate(30deg) translate(-10px,-11px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsPlaylistTogglerComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ selector: 'bs-playlist-toggler', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n", styles: [".playlist-toggler{width:3.5rem;padding:.75rem;border:none;background:transparent;cursor:pointer}.playlist-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.playlist-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.playlist-toggler.open>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:0}.playlist-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}.playlist-toggler:not(.open)>div:nth-of-type(1){-webkit-transform:rotate(-30deg) translate(-10px,11px);transform:rotate(-30deg) translate(-10px,11px)}.playlist-toggler:not(.open)>div:nth-of-type(2){-webkit-transform:rotate(90deg) translate(0px,14px);transform:rotate(90deg) translateY(14px);opacity:1}.playlist-toggler:not(.open)>div:nth-of-type(3){-webkit-transform:rotate(30deg) translate(-10px,-11px);transform:rotate(30deg) translate(-10px,-11px)}\n"] }]
26
+ }], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }, { type: i0.Output, args: ["stateChange"] }], toggleOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOnClick", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }] } });
27
+
28
+ /**
29
+ * Generated bundle index. Do not edit.
30
+ */
31
+
32
+ export { BsPlaylistTogglerComponent };
33
+ //# sourceMappingURL=mintplayer-ng-bootstrap-playlist-toggler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-playlist-toggler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/playlist-toggler/playlist-toggler.component.ts","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/src/playlist-toggler/playlist-toggler.component.html","../../../../libs/mintplayer-ng-bootstrap/playlist-toggler/mintplayer-ng-bootstrap-playlist-toggler.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\n\n@Component({\n selector: 'bs-playlist-toggler',\n templateUrl: './playlist-toggler.component.html',\n styleUrls: ['./playlist-toggler.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsPlaylistTogglerComponent {\n state = model<boolean>(false);\n toggleOnClick = input(true);\n ariaLabel = input<string>('Toggle playlist');\n controls = input<string | null>(null);\n\n toggleState() {\n if (this.toggleOnClick()) {\n this.state.update(v => !v);\n }\n }\n}\n","<button\n type=\"button\"\n class=\"playlist-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div></div>\n <div></div>\n <div></div>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,0BAA0B,CAAA;AANvC,IAAA,WAAA,GAAA;QAOE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,KAAK;kFAAC;QAC7B,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,IAAI;0FAAC;QAC3B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,iBAAiB;sFAAC;QAC5C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI;qFAAC;AAOtC,IAAA;IALC,WAAW,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;AACxB,YAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5B;IACF;8GAVW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,2oBCRvC,8TAYA,EAAA,MAAA,EAAA,CAAA,6jCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDJa,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBANtC,SAAS;+BACE,qBAAqB,EAAA,eAAA,EAGd,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8TAAA,EAAA,MAAA,EAAA,CAAA,6jCAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}