@mintplayer/ng-bootstrap 22.0.0 → 22.1.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 +373 -1
  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,659 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, TemplateRef, input, Directive, PLATFORM_ID, ViewContainerRef, DestroyRef, model, output, viewChild, contentChildren, contentChild, signal, computed, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import { isPlatformServer } from '@angular/common';
4
+ export { computeNextSort } from '@mintplayer/web-components/datatable';
5
+
6
+ class DatatableSettings {
7
+ constructor(data) {
8
+ this.sortColumns = [];
9
+ this.pageNumberOfBoxes = 11;
10
+ Object.assign(this, data);
11
+ if (data && data.perPage) {
12
+ this.perPage = data.perPage;
13
+ }
14
+ else {
15
+ // Set default value
16
+ this.perPage = {
17
+ values: [10, 20, 50],
18
+ selected: 20
19
+ };
20
+ }
21
+ if (data && data.page) {
22
+ this.page = data.page;
23
+ }
24
+ else {
25
+ // Set default value
26
+ this.page = {
27
+ values: [1],
28
+ selected: 1
29
+ };
30
+ }
31
+ }
32
+ toPagination() {
33
+ const res = {
34
+ sortColumns: this.sortColumns,
35
+ perPage: this.perPage.selected,
36
+ page: this.page.selected
37
+ };
38
+ return res;
39
+ }
40
+ }
41
+
42
+ /**
43
+ * Declares a column in `<bs-datatable>`.
44
+ *
45
+ * - `bsDatatableColumn` (the directive value) is the **data property name** —
46
+ * it must match the field key on each row in the fetched data and is what
47
+ * `SortColumn.property` references when the column is clicked.
48
+ * - The directive's **template content** is the header template — what gets
49
+ * rendered inside the `<th>`.
50
+ *
51
+ * Example:
52
+ * ```html
53
+ * <div *bsDatatableColumn="'YearStarted'; sortable: true">Year started</div>
54
+ * ```
55
+ *
56
+ * Optional `bsDatatableColumnSortable` controls whether the header acts as a
57
+ * sort toggle (default `true`).
58
+ */
59
+ class BsDatatableColumnDirective {
60
+ constructor() {
61
+ this.templateRef = inject(TemplateRef);
62
+ /** Data property name on each row; used as `SortColumn.property` on sort. */
63
+ this.name = input('', { ...(ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {}), alias: 'bsDatatableColumn' });
64
+ this.sortable = input(true, { ...(ngDevMode ? { debugName: "sortable" } : /* istanbul ignore next */ {}), alias: 'bsDatatableColumnSortable' });
65
+ }
66
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsDatatableColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
67
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: BsDatatableColumnDirective, isStandalone: true, selector: "[bsDatatableColumn]", inputs: { name: { classPropertyName: "name", publicName: "bsDatatableColumn", isSignal: true, isRequired: false, transformFunction: null }, sortable: { classPropertyName: "sortable", publicName: "bsDatatableColumnSortable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
68
+ }
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsDatatableColumnDirective, decorators: [{
70
+ type: Directive,
71
+ args: [{ selector: '[bsDatatableColumn]' }]
72
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsDatatableColumn", required: false }] }], sortable: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsDatatableColumnSortable", required: false }] }] } });
73
+
74
+ /**
75
+ * Marks an `<ng-template>` as the per-row body for `<bs-datatable>`. The
76
+ * template's `$implicit` is the row object. The template should render one
77
+ * `<td>` per data column (in column order).
78
+ *
79
+ * In tree mode (`[tree]="true"`) the context also carries `depth` (0 for
80
+ * roots, +1 per nesting level), `isExpanded`, and `isPlaceholder` (true when
81
+ * the row is a not-yet-loaded child slot — `$implicit` is undefined).
82
+ *
83
+ * Example:
84
+ * ```html
85
+ * <ng-container *bsRowTemplate="let artist">
86
+ * <td class="text-nowrap">{{ artist?.name }}</td>
87
+ * <td class="text-nowrap">{{ artist?.yearStarted }}</td>
88
+ * </ng-container>
89
+ *
90
+ * <!-- tree mode: render a spinner for placeholder rows -->
91
+ * <ng-container *bsRowTemplate="let item; let isPlaceholder = isPlaceholder">
92
+ * @if (isPlaceholder) { <td colspan="3"><i>Loading…</i></td> }
93
+ * @else { <td>{{ item.name }}</td><td>{{ item.headcount }}</td><td>{{ item.code }}</td> }
94
+ * </ng-container>
95
+ * ```
96
+ */
97
+ class BsRowTemplateDirective {
98
+ constructor() {
99
+ this.templateRef = inject(TemplateRef);
100
+ }
101
+ static ngTemplateContextGuard(_dir, ctx) {
102
+ return true;
103
+ }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRowTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
105
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsRowTemplateDirective, isStandalone: true, selector: "[bsRowTemplate]", ngImport: i0 }); }
106
+ }
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsRowTemplateDirective, decorators: [{
108
+ type: Directive,
109
+ args: [{ selector: '[bsRowTemplate]' }]
110
+ }] });
111
+ class BsRowTemplateContext {
112
+ constructor() {
113
+ this.$implicit = undefined;
114
+ /** 0 for roots; +1 per nesting level. Always 0 in flat mode. */
115
+ this.depth = 0;
116
+ /** True when the row is currently expanded. Always false in flat mode. */
117
+ this.isExpanded = false;
118
+ /** True when the row is a not-yet-loaded child slot — `$implicit` is undefined. */
119
+ this.isPlaceholder = false;
120
+ }
121
+ }
122
+
123
+ class BsDatatableComponent {
124
+ constructor() {
125
+ this.platformId = inject(PLATFORM_ID);
126
+ this.vcr = inject(ViewContainerRef);
127
+ this.destroyRef = inject(DestroyRef);
128
+ /**
129
+ * Programmatic column list. Mutually exclusive with the `*bsDatatableColumn`
130
+ * template directives — if provided, takes precedence.
131
+ */
132
+ this.columnsInput = input(null, { ...(ngDevMode ? { debugName: "columnsInput" } : /* istanbul ignore next */ {}), alias: 'columns' });
133
+ /** Static (already-paginated) data array. Use `[fetch]` for server-side pagination. */
134
+ this.data = input(null, /* @ts-ignore */
135
+ ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
136
+ /** Async data loader (server-side pagination). Mutually exclusive with `[data]`. */
137
+ this.fetch = input(null, /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "fetch" }] : /* istanbul ignore next */ []));
139
+ /** Two-way bound pagination / sort settings. */
140
+ this.settings = model(new DatatableSettings(), /* @ts-ignore */
141
+ ...(ngDevMode ? [{ debugName: "settings" }] : /* istanbul ignore next */ []));
142
+ /** `'none'` hides selection; `'multiple'` shows checkboxes; `'single'` is a single-row selection. */
143
+ this.selectionMode = input('none', /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []));
145
+ /** @deprecated Use `selectionMode`. Kept for source-level compatibility. */
146
+ this.selectable = input(undefined, /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []));
148
+ /** Two-way bound array of selected rows (identity via `rowKey`). */
149
+ this.selection = model([], /* @ts-ignore */
150
+ ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
151
+ /** Required for selection / async refetch identity. Default `String((row as any).id)`. */
152
+ this.rowKey = input((row, index) => {
153
+ const r = row;
154
+ return r && r.id != null ? String(r.id) : `row-${index}`;
155
+ }, /* @ts-ignore */
156
+ ...(ngDevMode ? [{ debugName: "rowKey" }] : /* istanbul ignore next */ []));
157
+ /** Drag-resize column widths. Default `true`. */
158
+ this.resizableColumns = input(true, /* @ts-ignore */
159
+ ...(ngDevMode ? [{ debugName: "resizableColumns" }] : /* istanbul ignore next */ []));
160
+ /** Built-in pagination footer. Ignored when `[fetch]` is provided (server-side paging owns the page state). */
161
+ this.pagination = input(true, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
163
+ /** Enable virtual scrolling for large datasets. */
164
+ this.virtualScroll = input(false, /* @ts-ignore */
165
+ ...(ngDevMode ? [{ debugName: "virtualScroll" }] : /* istanbul ignore next */ []));
166
+ /** Approximate row height in px (drives virtual scroll). */
167
+ this.itemSize = input(40, /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "itemSize" }] : /* istanbul ignore next */ []));
169
+ /** Off-screen row buffer per side for virtual scrolling. */
170
+ this.virtualBuffer = input(10, /* @ts-ignore */
171
+ ...(ngDevMode ? [{ debugName: "virtualBuffer" }] : /* istanbul ignore next */ []));
172
+ /** Forwarded to the inner table (legacy responsive flag, currently a CSS hook). */
173
+ this.isResponsive = input(false, /* @ts-ignore */
174
+ ...(ngDevMode ? [{ debugName: "isResponsive" }] : /* istanbul ignore next */ []));
175
+ /** Optional row equality predicate (selection identity across re-fetches). */
176
+ this.compareWith = input(undefined, /* @ts-ignore */
177
+ ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
178
+ /** Emitted on row single-click. */
179
+ this.rowClick = output();
180
+ /** Emitted on row double-click. */
181
+ this.rowDblClick = output();
182
+ /** Emitted on row context-menu. */
183
+ this.rowContextMenu = output();
184
+ // ─── Tree-mode inputs / models / outputs ─────────────────────────────────
185
+ /** Enable tree mode (chevron column, nested expansion, lazy children). */
186
+ this.tree = input(false, /* @ts-ignore */
187
+ ...(ngDevMode ? [{ debugName: "tree" }] : /* istanbul ignore next */ []));
188
+ /**
189
+ * Property name (or function) that extracts the row's stable identity.
190
+ * Required when `tree=true`. Used as the expansion key and as the
191
+ * `parentId` value the WC sends in `mp-datatable-fetch-request`.
192
+ */
193
+ this.idKey = input(null, /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "idKey" }] : /* istanbul ignore next */ []));
195
+ /**
196
+ * Property name on the row holding the direct-child count. Drives chevron
197
+ * visibility AND placeholder reservation for lazy children. Required when
198
+ * `tree=true`.
199
+ */
200
+ this.childCountKey = input(null, /* @ts-ignore */
201
+ ...(ngDevMode ? [{ debugName: "childCountKey" }] : /* istanbul ignore next */ []));
202
+ /** Indent in rem per depth level on the chevron cell. Default `1.25`. */
203
+ this.treeIndent = input(1.25, /* @ts-ignore */
204
+ ...(ngDevMode ? [{ debugName: "treeIndent" }] : /* istanbul ignore next */ []));
205
+ /** Two-way bound set of expanded-row ids (keyed by `idKey`). */
206
+ this.expandedIds = model(new Set(), /* @ts-ignore */
207
+ ...(ngDevMode ? [{ debugName: "expandedIds" }] : /* istanbul ignore next */ []));
208
+ /**
209
+ * `'flat'` (default) leaves selection to per-row toggles; `'cascading'`
210
+ * (recommended in tree mode) propagates a parent toggle to all loaded
211
+ * descendants and surfaces an indeterminate state on partially-selected
212
+ * parents.
213
+ */
214
+ this.selectionStrategy = input('flat', /* @ts-ignore */
215
+ ...(ngDevMode ? [{ debugName: "selectionStrategy" }] : /* istanbul ignore next */ []));
216
+ /** Emitted after a row is expanded. */
217
+ this.rowExpand = output();
218
+ /** Emitted after a row is collapsed. */
219
+ this.rowCollapse = output();
220
+ this.datatableRef = viewChild('datatable', /* @ts-ignore */
221
+ ...(ngDevMode ? [{ debugName: "datatableRef" }] : /* istanbul ignore next */ []));
222
+ /** Column directives (header template + sortable). Wrapper-level discovery. */
223
+ this.columnDirectives = contentChildren(BsDatatableColumnDirective, /* @ts-ignore */
224
+ ...(ngDevMode ? [{ debugName: "columnDirectives" }] : /* istanbul ignore next */ []));
225
+ /** Optional row template. When present, drives a per-row EmbeddedView render path. */
226
+ this.rowTemplate = contentChild((BsRowTemplateDirective), /* @ts-ignore */
227
+ ...(ngDevMode ? [{ debugName: "rowTemplate" }] : /* istanbul ignore next */ []));
228
+ /** Internal data source — populated either from `data()` or from `fetch()` responses. */
229
+ this.currentData = signal([], /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "currentData" }] : /* istanbul ignore next */ []));
231
+ this.totalRecords = signal(0, /* @ts-ignore */
232
+ ...(ngDevMode ? [{ debugName: "totalRecords" }] : /* istanbul ignore next */ []));
233
+ /**
234
+ * Merged column defs:
235
+ * - `[columns]` if provided
236
+ * - else the `*bsDatatableColumn` directives mapped onto column defs whose
237
+ * `headerRenderer` returns a DOM node produced from the directive's template.
238
+ */
239
+ this.effectiveColumns = computed(() => {
240
+ const programmatic = this.columnsInput();
241
+ if (programmatic && programmatic.length)
242
+ return programmatic;
243
+ return this.columnDirectives().map((dir) => {
244
+ let headerView;
245
+ return {
246
+ name: dir.name(),
247
+ sortable: dir.sortable(),
248
+ headerRenderer: () => {
249
+ if (!headerView) {
250
+ headerView = this.vcr.createEmbeddedView(dir.templateRef);
251
+ this.headerViews.push(headerView);
252
+ }
253
+ headerView.detectChanges();
254
+ const nodes = headerView.rootNodes.filter((n) => n instanceof Node);
255
+ if (nodes.length === 0)
256
+ return '';
257
+ if (nodes.length === 1)
258
+ return nodes[0];
259
+ const frag = document.createDocumentFragment();
260
+ for (const n of nodes)
261
+ frag.appendChild(n);
262
+ return frag;
263
+ },
264
+ };
265
+ });
266
+ }, /* @ts-ignore */
267
+ ...(ngDevMode ? [{ debugName: "effectiveColumns" }] : /* istanbul ignore next */ []));
268
+ /** EmbeddedViews for header templates (one per column directive). */
269
+ this.headerViews = [];
270
+ /** EmbeddedViews for row templates, keyed by rowKey for reuse. */
271
+ this.rowViews = new Map();
272
+ /** Generation token: invalidates an in-flight virtual-mode preload when sort/fetcher changes. */
273
+ this.virtualFetchToken = 0;
274
+ this.destroyRef.onDestroy(() => {
275
+ for (const v of this.headerViews)
276
+ v.destroy();
277
+ this.headerViews = [];
278
+ for (const v of this.rowViews.values())
279
+ v.destroy();
280
+ this.rowViews.clear();
281
+ });
282
+ // Sync data input → internal source.
283
+ effect(() => {
284
+ const d = this.data();
285
+ if (d !== null) {
286
+ this.currentData.set(d);
287
+ this.totalRecords.set(d.length);
288
+ }
289
+ });
290
+ // Async fetch: re-run on fetch / settings changes. In virtual flat mode
291
+ // the WC's virtualizer slices the in-memory `currentData` array, so the
292
+ // wrapper drains every page from the fetcher up front. In tree mode the
293
+ // wrapper does one root-page fetch; the WC pulls children on demand via
294
+ // `mp-datatable-fetch-request` (bridged by `onFetchRequest` below), so
295
+ // virtual + tree composes without front-loading.
296
+ effect(() => {
297
+ if (isPlatformServer(this.platformId))
298
+ return;
299
+ const fetcher = this.fetch();
300
+ if (!fetcher)
301
+ return;
302
+ const settings = this.settings();
303
+ if (this.tree()) {
304
+ const req = {
305
+ page: settings.page.selected,
306
+ perPage: settings.perPage.selected,
307
+ sortColumns: settings.sortColumns,
308
+ parentId: undefined,
309
+ };
310
+ // Sort changes invalidate the per-parent child cache (server-side sort
311
+ // applies within siblings, so cached children are stale).
312
+ const el = this.datatableRef()?.nativeElement;
313
+ if (el && typeof el.invalidateChildren === 'function')
314
+ el.invalidateChildren();
315
+ void this.runFetch(fetcher, req, settings);
316
+ }
317
+ else if (this.virtualScroll()) {
318
+ void this.runVirtualFetchAll(fetcher, settings.sortColumns);
319
+ }
320
+ else {
321
+ const req = {
322
+ page: settings.page.selected,
323
+ perPage: settings.perPage.selected,
324
+ sortColumns: settings.sortColumns,
325
+ };
326
+ void this.runFetch(fetcher, req, settings);
327
+ }
328
+ });
329
+ // Forward columns + data to the WC.
330
+ effect(() => {
331
+ const el = this.datatableRef()?.nativeElement;
332
+ if (!el)
333
+ return;
334
+ el.columns = this.effectiveColumns();
335
+ });
336
+ effect(() => {
337
+ const el = this.datatableRef()?.nativeElement;
338
+ if (!el)
339
+ return;
340
+ el.data = this.currentData();
341
+ // Stale row views for rows no longer present are pruned lazily on next render.
342
+ });
343
+ effect(() => {
344
+ const el = this.datatableRef()?.nativeElement;
345
+ if (!el)
346
+ return;
347
+ const settings = this.settings();
348
+ const fetching = !!this.fetch();
349
+ const virtual = this.virtualScroll();
350
+ el.sortColumns = settings.sortColumns.map((c) => ({ property: c.property, direction: c.direction }));
351
+ el.autoSort = !fetching;
352
+ // Pagination renders in non-virtual mode; in fetch mode the wrapper
353
+ // owns page state and the WC just reports the change via event.
354
+ el.pagination = this.pagination() && !virtual;
355
+ el.page = settings.page.selected;
356
+ el.perPage = settings.perPage.selected;
357
+ el.perPageOptions = settings.perPage.values;
358
+ el.totalRecords = fetching ? this.totalRecords() : null;
359
+ });
360
+ effect(() => {
361
+ const el = this.datatableRef()?.nativeElement;
362
+ if (!el)
363
+ return;
364
+ const mode = this.selectable() ?? this.selectionMode();
365
+ el.selectionMode = mode;
366
+ });
367
+ effect(() => {
368
+ const el = this.datatableRef()?.nativeElement;
369
+ if (!el)
370
+ return;
371
+ el.rowKey = (row, index) => this.rowKey()(row, index);
372
+ });
373
+ effect(() => {
374
+ const el = this.datatableRef()?.nativeElement;
375
+ if (!el)
376
+ return;
377
+ el.resizableColumns = this.resizableColumns();
378
+ });
379
+ effect(() => {
380
+ const el = this.datatableRef()?.nativeElement;
381
+ if (!el)
382
+ return;
383
+ el.virtualScroll = this.virtualScroll();
384
+ el.itemSize = this.itemSize();
385
+ el.virtualBuffer = this.virtualBuffer();
386
+ });
387
+ // Tree-mode prop sync to the WC.
388
+ effect(() => {
389
+ const el = this.datatableRef()?.nativeElement;
390
+ if (!el)
391
+ return;
392
+ el.tree = this.tree();
393
+ el.idKey = this.idKey();
394
+ el.childCountKey = this.childCountKey();
395
+ el.treeIndent = this.treeIndent();
396
+ el.selectionStrategy = this.selectionStrategy();
397
+ });
398
+ // Two-way bind `expandedIds` to the WC. Skip-on-echo via structural equality
399
+ // — the WC's getter returns a fresh Set on every read.
400
+ effect(() => {
401
+ const desired = this.expandedIds();
402
+ const el = this.datatableRef()?.nativeElement;
403
+ if (!el)
404
+ return;
405
+ const current = el.expandedIds;
406
+ if (setsEqual(current, desired))
407
+ return;
408
+ el.expandedIds = desired;
409
+ });
410
+ // Wire the row renderer when *bsRowTemplate is provided.
411
+ effect(() => {
412
+ const el = this.datatableRef()?.nativeElement;
413
+ if (!el)
414
+ return;
415
+ const tpl = this.rowTemplate();
416
+ if (!tpl) {
417
+ el.rowRenderer = undefined;
418
+ // Destroy any stale row views.
419
+ for (const v of this.rowViews.values())
420
+ v.destroy();
421
+ this.rowViews.clear();
422
+ return;
423
+ }
424
+ el.rowRenderer = this.buildRowRenderer(tpl);
425
+ });
426
+ // Selection rows → IDs forwarded to WC.
427
+ effect(() => {
428
+ const el = this.datatableRef()?.nativeElement;
429
+ if (!el)
430
+ return;
431
+ const rows = this.selection();
432
+ const keyFn = this.rowKey();
433
+ el.selectedIds = rows.map((row, i) => keyFn(row, i));
434
+ });
435
+ }
436
+ ngAfterViewInit() {
437
+ // Effects above re-run as the view is created; nothing else needed.
438
+ }
439
+ buildRowRenderer(tpl) {
440
+ return (row, rowIndex, ctx) => {
441
+ // Placeholder rows (tree-mode, children pending fetch) get a synthetic key
442
+ // so the view is reused per slot. Consumers detect them via `isPlaceholder`.
443
+ const isPlaceholder = ctx?.isPlaceholder ?? row === undefined;
444
+ const depth = ctx?.depth ?? 0;
445
+ const isExpanded = ctx?.isExpanded ?? false;
446
+ const key = isPlaceholder
447
+ ? `__placeholder-${rowIndex}`
448
+ : this.rowKey()(row, rowIndex);
449
+ let viewRef = this.rowViews.get(key);
450
+ if (!viewRef) {
451
+ const context = new BsRowTemplateContext();
452
+ context.$implicit = row;
453
+ context.index = rowIndex;
454
+ context.depth = depth;
455
+ context.isExpanded = isExpanded;
456
+ context.isPlaceholder = isPlaceholder;
457
+ viewRef = this.vcr.createEmbeddedView(tpl.templateRef, context);
458
+ this.rowViews.set(key, viewRef);
459
+ }
460
+ else {
461
+ viewRef.context.$implicit = row;
462
+ viewRef.context.index = rowIndex;
463
+ viewRef.context.depth = depth;
464
+ viewRef.context.isExpanded = isExpanded;
465
+ viewRef.context.isPlaceholder = isPlaceholder;
466
+ }
467
+ viewRef.detectChanges();
468
+ const nodes = viewRef.rootNodes.filter((n) => n instanceof Node);
469
+ return nodes;
470
+ };
471
+ }
472
+ async runVirtualFetchAll(fetcher, sortColumns) {
473
+ const token = ++this.virtualFetchToken;
474
+ const perPage = 200;
475
+ const first = await fetcher({ page: 1, perPage, sortColumns });
476
+ if (!first || token !== this.virtualFetchToken)
477
+ return;
478
+ const accumulator = [...(first.data ?? [])];
479
+ const totalRecords = first.totalRecords ?? accumulator.length;
480
+ const totalPages = Math.max(1, first.totalPages ?? Math.ceil(totalRecords / perPage));
481
+ this.currentData.set(accumulator);
482
+ this.totalRecords.set(totalRecords);
483
+ const remaining = Array.from({ length: totalPages - 1 }, (_, i) => i + 2);
484
+ for (const page of remaining) {
485
+ const response = await fetcher({ page, perPage, sortColumns });
486
+ if (!response || token !== this.virtualFetchToken)
487
+ return;
488
+ accumulator.push(...(response.data ?? []));
489
+ this.currentData.set([...accumulator]);
490
+ }
491
+ }
492
+ async runFetch(fetcher, req, settings) {
493
+ const response = await fetcher(req);
494
+ if (!response)
495
+ return;
496
+ this.currentData.set(response.data ?? []);
497
+ this.totalRecords.set(response.totalRecords ?? response.data?.length ?? 0);
498
+ const desiredPageCount = Math.max(1, response.totalPages ?? 1);
499
+ if (settings.page.values.length !== desiredPageCount) {
500
+ this.settings.set(new DatatableSettings({
501
+ ...settings,
502
+ page: {
503
+ values: Array.from({ length: desiredPageCount }, (_, i) => i + 1),
504
+ selected: Math.min(settings.page.selected, desiredPageCount),
505
+ },
506
+ }));
507
+ }
508
+ }
509
+ // ─── WC event handlers ───────────────────────────────────────────────────
510
+ onSortChange(event) {
511
+ const detail = event.detail;
512
+ const settings = this.settings();
513
+ this.settings.set(new DatatableSettings({
514
+ ...settings,
515
+ sortColumns: detail.sortColumns,
516
+ page: { ...settings.page, selected: 1 },
517
+ }));
518
+ }
519
+ onSelectionChange(event) {
520
+ const detail = event.detail;
521
+ const keyFn = this.rowKey();
522
+ // The naïve `currentData().filter(id ∈ idSet)` drops cross-page
523
+ // selections in pagination mode — `currentData` only holds the
524
+ // currently-visible page, so any id selected on a page the user has
525
+ // since navigated away from disappears. Look up known IDs in
526
+ // `selection()` first (rows from earlier pages we still remember),
527
+ // then fall back to `currentData()` for IDs the WC just acknowledged
528
+ // from the current page.
529
+ const existingById = new Map();
530
+ this.selection().forEach((row, i) => existingById.set(keyFn(row, i), row));
531
+ const currentById = new Map();
532
+ this.currentData().forEach((row, i) => currentById.set(keyFn(row, i), row));
533
+ const next = [];
534
+ for (const id of detail.selectedIds) {
535
+ const row = existingById.get(id) ?? currentById.get(id);
536
+ if (row !== undefined)
537
+ next.push(row);
538
+ }
539
+ this.selection.set(next);
540
+ }
541
+ onPageChange(event) {
542
+ const detail = event.detail;
543
+ const settings = this.settings();
544
+ this.settings.set(new DatatableSettings({
545
+ ...settings,
546
+ page: { ...settings.page, selected: detail.page },
547
+ }));
548
+ }
549
+ onPerPageChange(event) {
550
+ const detail = event.detail;
551
+ const settings = this.settings();
552
+ this.settings.set(new DatatableSettings({
553
+ ...settings,
554
+ perPage: { ...settings.perPage, selected: detail.perPage },
555
+ page: { ...settings.page, selected: 1 },
556
+ }));
557
+ }
558
+ onRowClick(event) {
559
+ this.rowClick.emit(this.toBsEvent(event));
560
+ }
561
+ onRowDblClick(event) {
562
+ this.rowDblClick.emit(this.toBsEvent(event));
563
+ }
564
+ onRowContextMenu(event) {
565
+ this.rowContextMenu.emit(this.toBsEvent(event));
566
+ }
567
+ // ─── Tree-mode event handlers ────────────────────────────────────────────
568
+ /**
569
+ * Bridge the WC's fetch-request to the consumer's `[fetch]` callback. The
570
+ * WC fires this when a row is expanded (or scrolled into view as a
571
+ * placeholder) without cached children. We resolve the consumer's promise
572
+ * and hand the response back to the WC via `setFetchResponse`.
573
+ */
574
+ onFetchRequest(event) {
575
+ const detail = event.detail;
576
+ const fetcher = this.fetch();
577
+ if (!fetcher)
578
+ return;
579
+ void (async () => {
580
+ try {
581
+ const response = await fetcher({
582
+ page: detail.page,
583
+ perPage: detail.perPage,
584
+ sortColumns: detail.sortColumns,
585
+ parentId: detail.parentId ?? undefined,
586
+ });
587
+ const el = this.datatableRef()?.nativeElement;
588
+ if (!el)
589
+ return;
590
+ el.setFetchResponse(detail.parentId, {
591
+ data: response.data ?? [],
592
+ totalRecords: response.totalRecords ?? response.data?.length ?? 0,
593
+ page: response.page ?? detail.page,
594
+ perPage: response.perPage ?? detail.perPage,
595
+ });
596
+ }
597
+ catch (err) {
598
+ // Surface failures to the consumer via the rowExpand event chain in a
599
+ // future iteration. For v1 logging is sufficient to debug bad fetches.
600
+ console.error('[bs-datatable] tree fetch failed', err);
601
+ }
602
+ })();
603
+ }
604
+ onRowExpand(event) {
605
+ const detail = event.detail;
606
+ this.rowExpand.emit({ row: detail.row, depth: detail.depth, parentId: detail.parentId });
607
+ }
608
+ onRowCollapse(event) {
609
+ const detail = event.detail;
610
+ this.rowCollapse.emit({ row: detail.row, depth: detail.depth, parentId: detail.parentId });
611
+ }
612
+ onExpandedIdsChange(event) {
613
+ const detail = event.detail;
614
+ const next = new Set(detail.expandedIds);
615
+ if (setsEqual(this.expandedIds(), next))
616
+ return;
617
+ this.expandedIds.set(next);
618
+ }
619
+ toBsEvent(event) {
620
+ const detail = event.detail;
621
+ return {
622
+ row: detail.row,
623
+ rowIndex: detail.rowIndex,
624
+ rowKey: detail.rowKey,
625
+ originalEvent: detail.originalEvent,
626
+ };
627
+ }
628
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsDatatableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
629
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsDatatableComponent, isStandalone: true, selector: "bs-datatable", inputs: { columnsInput: { classPropertyName: "columnsInput", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, fetch: { classPropertyName: "fetch", publicName: "fetch", isSignal: true, isRequired: false, transformFunction: null }, settings: { classPropertyName: "settings", publicName: "settings", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, resizableColumns: { classPropertyName: "resizableColumns", publicName: "resizableColumns", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualBuffer: { classPropertyName: "virtualBuffer", publicName: "virtualBuffer", isSignal: true, isRequired: false, transformFunction: null }, isResponsive: { classPropertyName: "isResponsive", publicName: "isResponsive", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, idKey: { classPropertyName: "idKey", publicName: "idKey", isSignal: true, isRequired: false, transformFunction: null }, childCountKey: { classPropertyName: "childCountKey", publicName: "childCountKey", isSignal: true, isRequired: false, transformFunction: null }, treeIndent: { classPropertyName: "treeIndent", publicName: "treeIndent", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selectionStrategy: { classPropertyName: "selectionStrategy", publicName: "selectionStrategy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { settings: "settingsChange", selection: "selectionChange", rowClick: "rowClick", rowDblClick: "rowDblClick", rowContextMenu: "rowContextMenu", expandedIds: "expandedIdsChange", rowExpand: "rowExpand", rowCollapse: "rowCollapse" }, queries: [{ propertyName: "columnDirectives", predicate: BsDatatableColumnDirective, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: (BsRowTemplateDirective), descendants: true, isSignal: true }], viewQueries: [{ propertyName: "datatableRef", first: true, predicate: ["datatable"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-datatable\n #datatable\n class=\"bs-datatable\"\n (mp-datatable-sort-change)=\"onSortChange($event)\"\n (mp-datatable-selection-change)=\"onSelectionChange($event)\"\n (mp-datatable-page-change)=\"onPageChange($event)\"\n (mp-datatable-per-page-change)=\"onPerPageChange($event)\"\n (mp-datatable-row-click)=\"onRowClick($event)\"\n (mp-datatable-row-dblclick)=\"onRowDblClick($event)\"\n (mp-datatable-row-contextmenu)=\"onRowContextMenu($event)\"\n (mp-datatable-fetch-request)=\"onFetchRequest($event)\"\n (mp-datatable-row-expand)=\"onRowExpand($event)\"\n (mp-datatable-row-collapse)=\"onRowCollapse($event)\"\n (mp-datatable-expanded-ids-change)=\"onExpandedIdsChange($event)\"\n></mp-datatable>\n", styles: [":host{display:block;width:100%}.bs-datatable{display:block;width:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
630
+ }
631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsDatatableComponent, decorators: [{
632
+ type: Component,
633
+ args: [{ selector: 'bs-datatable', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-datatable\n #datatable\n class=\"bs-datatable\"\n (mp-datatable-sort-change)=\"onSortChange($event)\"\n (mp-datatable-selection-change)=\"onSelectionChange($event)\"\n (mp-datatable-page-change)=\"onPageChange($event)\"\n (mp-datatable-per-page-change)=\"onPerPageChange($event)\"\n (mp-datatable-row-click)=\"onRowClick($event)\"\n (mp-datatable-row-dblclick)=\"onRowDblClick($event)\"\n (mp-datatable-row-contextmenu)=\"onRowContextMenu($event)\"\n (mp-datatable-fetch-request)=\"onFetchRequest($event)\"\n (mp-datatable-row-expand)=\"onRowExpand($event)\"\n (mp-datatable-row-collapse)=\"onRowCollapse($event)\"\n (mp-datatable-expanded-ids-change)=\"onExpandedIdsChange($event)\"\n></mp-datatable>\n", styles: [":host{display:block;width:100%}.bs-datatable{display:block;width:100%}\n"] }]
634
+ }], ctorParameters: () => [], propDecorators: { columnsInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], fetch: [{ type: i0.Input, args: [{ isSignal: true, alias: "fetch", required: false }] }], settings: [{ type: i0.Input, args: [{ isSignal: true, alias: "settings", required: false }] }, { type: i0.Output, args: ["settingsChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], resizableColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizableColumns", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], virtualBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualBuffer", required: false }] }], isResponsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isResponsive", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], rowDblClick: [{ type: i0.Output, args: ["rowDblClick"] }], rowContextMenu: [{ type: i0.Output, args: ["rowContextMenu"] }], tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: false }] }], idKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "idKey", required: false }] }], childCountKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "childCountKey", required: false }] }], treeIndent: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeIndent", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selectionStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionStrategy", required: false }] }], rowExpand: [{ type: i0.Output, args: ["rowExpand"] }], rowCollapse: [{ type: i0.Output, args: ["rowCollapse"] }], datatableRef: [{ type: i0.ViewChild, args: ['datatable', { isSignal: true }] }], columnDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsDatatableColumnDirective), { isSignal: true }] }], rowTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRowTemplateDirective), { isSignal: true }] }] } });
635
+ function setsEqual(a, b) {
636
+ // In SSR the WC isn't upgraded yet, so reading `el.expandedIds` returns
637
+ // `undefined` instead of the getter's `new Set()`. Treat both-missing as
638
+ // equal so the sync effect short-circuits cleanly during pre-hydration.
639
+ if (a == null && b == null)
640
+ return true;
641
+ if (a == null || b == null)
642
+ return false;
643
+ const aSize = a instanceof Set ? a.size : a.length;
644
+ const bSize = b instanceof Set ? b.size : b.length;
645
+ if (aSize !== bSize)
646
+ return false;
647
+ const bSet = b instanceof Set ? b : new Set(b);
648
+ for (const v of a)
649
+ if (!bSet.has(v))
650
+ return false;
651
+ return true;
652
+ }
653
+
654
+ /**
655
+ * Generated bundle index. Do not edit.
656
+ */
657
+
658
+ export { BsDatatableColumnDirective, BsDatatableComponent, BsRowTemplateContext, BsRowTemplateDirective, DatatableSettings };
659
+ //# sourceMappingURL=mintplayer-ng-bootstrap-datatable.mjs.map