@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,136 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Pipe } from '@angular/core';
3
+
4
+ class BsCalendarMonthService {
5
+ getWeeks(month) {
6
+ const firstAndLast = this.getFirstAndLastDayOfMonth(month);
7
+ const firstOfMonth = this.getMondayBefore(firstAndLast.first);
8
+ const lastOfMonth = this.getSundayAfter(firstAndLast.last);
9
+ const days = this.dateDiff(firstOfMonth, lastOfMonth) + 1;
10
+ const firstDayOffset = (firstAndLast.first.getDay() + 7 - 1) % 7;
11
+ const allDays = this.generateList(days).map(d => d - firstDayOffset).map(d => {
12
+ const wrongDate = new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d);
13
+ const correctDate = new Date(wrongDate.getFullYear(), wrongDate.getMonth(), wrongDate.getDate());
14
+ return {
15
+ date: correctDate,
16
+ dayOfMonth: correctDate.getDate(),
17
+ isInMonth: (correctDate.getFullYear() === month.getFullYear()) && (correctDate.getMonth() === month.getMonth())
18
+ };
19
+ });
20
+ const weeks = this.chunk(allDays, 7);
21
+ const weeksMapped = weeks.map((w, i) => ({
22
+ number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), w.find(d => d.isInMonth)?.dayOfMonth)),
23
+ days: w
24
+ }));
25
+ return weeksMapped;
26
+ }
27
+ generateList(count) {
28
+ return [...Array(count).keys()];
29
+ }
30
+ dayOfWeekMondayBased(date) {
31
+ const d = date.getDay() - 1;
32
+ if (d < 0) {
33
+ return 6;
34
+ }
35
+ else {
36
+ return d;
37
+ }
38
+ }
39
+ weekOfYear(date) {
40
+ const dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
41
+ dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
42
+ const yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
43
+ const utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
44
+ return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
45
+ }
46
+ getFirstAndLastDayOfMonth(date) {
47
+ const first = new Date(date.getFullYear(), date.getMonth(), 1);
48
+ const last = new Date(date.getFullYear(), date.getMonth() + 1, 0);
49
+ return { first, last };
50
+ }
51
+ dateDiff(date1, date2) {
52
+ const utc1 = this.toUTC(date1);
53
+ const utc2 = this.toUTC(date2);
54
+ const msPerDay = 1000 * 60 * 60 * 24;
55
+ return Math.floor((utc2 - utc1) / msPerDay);
56
+ }
57
+ dayOfYear(date) {
58
+ const start = new Date(date.getFullYear(), 0, 0);
59
+ return this.dateDiff(start, date);
60
+ }
61
+ toUTC(date) {
62
+ return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
63
+ }
64
+ chunk(items, size) {
65
+ const result = [];
66
+ for (let i = 0; i < items.length; i += size) {
67
+ result.push(items.slice(i, i + size));
68
+ }
69
+ return result;
70
+ }
71
+ getMondayBefore(date) {
72
+ const day = date.getDay(), diff = date.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday
73
+ const monday = new Date(date);
74
+ monday.setDate(diff);
75
+ return monday;
76
+ }
77
+ getSundayAfter(date) {
78
+ const day = date.getDay();
79
+ const sunday = new Date(date);
80
+ if (day !== 0) {
81
+ const diff = date.getDate() + 7 - day;
82
+ sunday.setDate(diff);
83
+ }
84
+ return sunday;
85
+ }
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
87
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' }); }
88
+ }
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCalendarMonthService, decorators: [{
90
+ type: Injectable,
91
+ args: [{
92
+ providedIn: 'root'
93
+ }]
94
+ }] });
95
+
96
+ class BsMonthNamePipe {
97
+ transform(date) {
98
+ if (date) {
99
+ return date.toLocaleString("default", { month: 'long' });
100
+ }
101
+ else {
102
+ return '';
103
+ }
104
+ }
105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsMonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
106
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: BsMonthNamePipe, isStandalone: true, name: "monthName" }); }
107
+ }
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsMonthNamePipe, decorators: [{
109
+ type: Pipe,
110
+ args: [{
111
+ name: 'monthName',
112
+ pure: true,
113
+ }]
114
+ }] });
115
+
116
+ class BsWeekdayNamePipe {
117
+ transform(date) {
118
+ return date.toLocaleString("default", { weekday: 'short' });
119
+ }
120
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsWeekdayNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
121
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: BsWeekdayNamePipe, isStandalone: true, name: "weekdayName" }); }
122
+ }
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsWeekdayNamePipe, decorators: [{
124
+ type: Pipe,
125
+ args: [{
126
+ name: 'weekdayName',
127
+ pure: true,
128
+ }]
129
+ }] });
130
+
131
+ /**
132
+ * Generated bundle index. Do not edit.
133
+ */
134
+
135
+ export { BsCalendarMonthService, BsMonthNamePipe, BsWeekdayNamePipe };
136
+ //# sourceMappingURL=mintplayer-ng-bootstrap-calendar-month.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-calendar-month.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar-month/src/service/calendar-month.service.ts","../../../../libs/mintplayer-ng-bootstrap/calendar-month/src/pipes/month-name/month-name.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/calendar-month/src/pipes/weekday-name/weekday-name.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/calendar-month/mintplayer-ng-bootstrap-calendar-month.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Week } from '../interfaces/week';\nimport { FirstAndLastDate } from '../interfaces/first-and-last-date';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BsCalendarMonthService {\n\n public getWeeks(month: Date) {\n const firstAndLast = this.getFirstAndLastDayOfMonth(month);\n const firstOfMonth = this.getMondayBefore(firstAndLast.first);\n const lastOfMonth = this.getSundayAfter(firstAndLast.last);\n const days = this.dateDiff(firstOfMonth, lastOfMonth) + 1;\n const firstDayOffset = (firstAndLast.first.getDay() + 7 - 1) % 7;\n const allDays = this.generateList(days).map(d => d - firstDayOffset).map(d => {\n const wrongDate = new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d);\n const correctDate = new Date(wrongDate.getFullYear(), wrongDate.getMonth(), wrongDate.getDate());\n return {\n date: correctDate,\n dayOfMonth: correctDate.getDate(),\n isInMonth: (correctDate.getFullYear() === month.getFullYear()) && (correctDate.getMonth() === month.getMonth())\n };\n });\n const weeks = this.chunk(allDays, 7);\n const weeksMapped = weeks.map<Week>((w, i) => ({\n number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), w.find(d => d.isInMonth)?.dayOfMonth)),\n days: w\n }));\n return weeksMapped;\n }\n \n generateList(count: number) {\n return [...Array(count).keys()];\n }\n\n dayOfWeekMondayBased(date: Date) {\n const d = date.getDay() - 1;\n if (d < 0) {\n return 6;\n } else {\n return d;\n }\n }\n\n weekOfYear(date: Date) {\n const dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));\n const yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));\n const utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);\n return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);\n }\n\n getFirstAndLastDayOfMonth(date: Date) {\n const first = new Date(date.getFullYear(), date.getMonth(), 1);\n const last = new Date(date.getFullYear(), date.getMonth() + 1, 0);\n return <FirstAndLastDate>{ first, last };\n }\n\n dateDiff(date1: Date, date2: Date) {\n const utc1 = this.toUTC(date1);\n const utc2 = this.toUTC(date2);\n const msPerDay = 1000 * 60 * 60 * 24;\n return Math.floor((utc2 - utc1) / msPerDay);\n }\n\n dayOfYear(date: Date) {\n const start = new Date(date.getFullYear(), 0, 0);\n return this.dateDiff(start, date);\n }\n\n toUTC(date: Date) {\n return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n chunk<T>(items: T[], size: number) {\n const result: T[][] = [];\n for (let i = 0; i < items.length; i += size) {\n result.push(items.slice(i, i + size));\n }\n return result;\n }\n\n getMondayBefore(date: Date) {\n const day = date.getDay(), diff = date.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday\n const monday = new Date(date);\n monday.setDate(diff);\n return monday;\n }\n\n getSundayAfter(date: Date) {\n const day = date.getDay();\n const sunday = new Date(date);\n if (day !== 0) {\n const diff = date.getDate() + 7 - day;\n sunday.setDate(diff);\n }\n return sunday;\n }\n}","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'monthName',\n pure: true,\n})\nexport class BsMonthNamePipe implements PipeTransform {\n\n transform(date: Date | null) {\n if (date) {\n return date.toLocaleString(\"default\", { month: 'long' });\n } else {\n return '';\n }\n }\n\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'weekdayName',\n pure: true,\n})\nexport class BsWeekdayNamePipe implements PipeTransform {\n\n transform(date: Date): unknown {\n return date.toLocaleString(\"default\", { weekday: 'short' });\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,sBAAsB,CAAA;AAE1B,IAAA,QAAQ,CAAC,KAAW,EAAA;QACzB,MAAM,YAAY,GAAG,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAC1D,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC;QAC7D,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC;AAC1D,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,GAAG,CAAC;AACzD,QAAA,MAAM,cAAc,GAAG,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;QAChE,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,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IAAA,EAAA,CAAA,CAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;MCCY,iBAAiB,CAAA;AAE5B,IAAA,SAAS,CAAC,IAAU,EAAA;AAClB,QAAA,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC7D;8GAJW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -0,0 +1,71 @@
1
+ import * as i0 from '@angular/core';
2
+ import { model, input, viewChild, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
+ import { MpCalendarElement } from '@mintplayer/web-components/calendar';
4
+ export * from '@mintplayer/web-components/calendar';
5
+
6
+ // Side-effect: registers <mp-calendar>. Importing the element class is enough —
7
+ // the file calls customElements.define() on load.
8
+ void MpCalendarElement;
9
+ class BsCalendarComponent {
10
+ constructor() {
11
+ this.currentMonth = model(new Date(), /* @ts-ignore */
12
+ ...(ngDevMode ? [{ debugName: "currentMonth" }] : /* istanbul ignore next */ []));
13
+ this.selectedDate = model(new Date(), /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "selectedDate" }] : /* istanbul ignore next */ []));
15
+ this.disableDateFn = input(undefined, /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "disableDateFn" }] : /* istanbul ignore next */ []));
17
+ this.min = input(undefined, /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
19
+ this.max = input(undefined, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
21
+ this.firstDayOfWeek = input(1, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "firstDayOfWeek" }] : /* istanbul ignore next */ []));
23
+ this.locale = input(undefined, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
25
+ this.wcRef = viewChild('wc', /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "wcRef" }] : /* istanbul ignore next */ []));
27
+ // Sync Angular signal state into the WC properties on every change.
28
+ effect(() => {
29
+ const wc = this.wcRef()?.nativeElement;
30
+ if (!wc)
31
+ return;
32
+ wc.selectedDate = this.selectedDate();
33
+ wc.currentMonth = this.currentMonth();
34
+ wc.disableDateFn = this.disableDateFn() ?? null;
35
+ wc.min = this.min() ?? null;
36
+ wc.max = this.max() ?? null;
37
+ wc.firstDayOfWeek = this.firstDayOfWeek();
38
+ wc.locale = this.locale();
39
+ // SSR / pre-upgrade: requestUpdate only exists after customElements has
40
+ // registered the Lit class. The DOM element is the upgrade target but
41
+ // may still be a plain HTMLElement at the first effect tick.
42
+ wc.requestUpdate?.();
43
+ });
44
+ }
45
+ ngAfterViewInit() {
46
+ // Initial sync happens via effect once the view child resolves.
47
+ }
48
+ onSelectedDateChange(event) {
49
+ const detail = event.detail;
50
+ if (detail instanceof Date)
51
+ this.selectedDate.set(detail);
52
+ }
53
+ onCurrentMonthChange(event) {
54
+ const detail = event.detail;
55
+ if (detail instanceof Date)
56
+ this.currentMonth.set(detail);
57
+ }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsCalendarComponent, isStandalone: true, selector: "bs-calendar", inputs: { currentMonth: { classPropertyName: "currentMonth", publicName: "currentMonth", isSignal: true, isRequired: false, transformFunction: null }, selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: false, transformFunction: null }, disableDateFn: { classPropertyName: "disableDateFn", publicName: "disableDateFn", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { currentMonth: "currentMonthChange", selectedDate: "selectedDateChange" }, viewQueries: [{ propertyName: "wcRef", first: true, predicate: ["wc"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-calendar\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\">\n</mp-calendar>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCalendarComponent, decorators: [{
62
+ type: Component,
63
+ args: [{ selector: 'bs-calendar', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-calendar\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\">\n</mp-calendar>\n" }]
64
+ }], ctorParameters: () => [], propDecorators: { currentMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentMonth", required: false }] }, { type: i0.Output, args: ["currentMonthChange"] }], selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: false }] }, { type: i0.Output, args: ["selectedDateChange"] }], disableDateFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableDateFn", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], wcRef: [{ type: i0.ViewChild, args: ['wc', { isSignal: true }] }] } });
65
+
66
+ /**
67
+ * Generated bundle index. Do not edit.
68
+ */
69
+
70
+ export { BsCalendarComponent };
71
+ //# sourceMappingURL=mintplayer-ng-bootstrap-calendar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-calendar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.html","../../../../libs/mintplayer-ng-bootstrap/calendar/mintplayer-ng-bootstrap-calendar.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { FirstDayOfWeek, MpCalendarElement } from '@mintplayer/web-components/calendar';\n\n// Side-effect: registers <mp-calendar>. Importing the element class is enough —\n// the file calls customElements.define() on load.\nvoid MpCalendarElement;\n\n@Component({\n selector: 'bs-calendar',\n templateUrl: './calendar.component.html',\n styleUrls: ['./calendar.component.scss'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCalendarComponent implements AfterViewInit {\n currentMonth = model<Date>(new Date());\n selectedDate = model<Date>(new Date());\n disableDateFn = input<((date: Date) => boolean) | undefined>(undefined);\n min = input<Date | undefined>(undefined);\n max = input<Date | undefined>(undefined);\n firstDayOfWeek = input<FirstDayOfWeek>(1);\n locale = input<string | undefined>(undefined);\n\n readonly wcRef = viewChild<ElementRef<MpCalendarElement>>('wc');\n\n constructor() {\n // Sync Angular signal state into the WC properties on every change.\n effect(() => {\n const wc = this.wcRef()?.nativeElement;\n if (!wc) return;\n wc.selectedDate = this.selectedDate();\n wc.currentMonth = this.currentMonth();\n wc.disableDateFn = this.disableDateFn() ?? null;\n wc.min = this.min() ?? null;\n wc.max = this.max() ?? null;\n wc.firstDayOfWeek = this.firstDayOfWeek();\n wc.locale = this.locale();\n // SSR / pre-upgrade: requestUpdate only exists after customElements has\n // registered the Lit class. The DOM element is the upgrade target but\n // may still be a plain HTMLElement at the first effect tick.\n wc.requestUpdate?.();\n });\n }\n\n ngAfterViewInit(): void {\n // Initial sync happens via effect once the view child resolves.\n }\n\n onSelectedDateChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (detail instanceof Date) this.selectedDate.set(detail);\n }\n\n onCurrentMonthChange(event: Event): void {\n const detail = (event as CustomEvent<Date>).detail;\n if (detail instanceof Date) this.currentMonth.set(detail);\n }\n}\n","<mp-calendar\n #wc\n (selected-date-change)=\"onSelectedDateChange($event)\"\n (current-month-change)=\"onCurrentMonthChange($event)\">\n</mp-calendar>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAaA;AACA;AACA,KAAK,iBAAiB;MAST,mBAAmB,CAAA;AAW9B,IAAA,WAAA,GAAA;AAVA,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAO,IAAI,IAAI,EAAE;yFAAC;AACtC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAO,IAAI,IAAI,EAAE;yFAAC;QACtC,IAA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AM,MAAM,GAAI,KAA2B,CAAC,MAAM;QAClD,IAAI,MAAM,YAAY,IAAI;AAAE,YAAA,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;IAC3D;8GA1CW,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,irCCxBhC,8JAKA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDmBa,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAP/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,WAGd,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8JAAA,EAAA;i3BAWW,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjChE;;AAEG;;;;"}
@@ -0,0 +1,338 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component, inject, ElementRef, DestroyRef, effect } from '@angular/core';
3
+ import { Color } from '@mintplayer/ng-bootstrap';
4
+ import { applyTextBgClass, applyHeaderNavStyle, isNavTargetNode } from '@mintplayer/web-components/card';
5
+ export * from '@mintplayer/web-components/card';
6
+ import { NgTemplateOutlet } from '@angular/common';
7
+
8
+ /**
9
+ * Angular wrapper for the Bootstrap card root.
10
+ *
11
+ * Renders an inner `<mp-card>` — the single card web component, which owns the
12
+ * card chrome (border / radius / background) in its shadow DOM. Projected
13
+ * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled via
14
+ * the WC's `::slotted()` rules (header / body / footer / img) plus the global
15
+ * typography sheet (title / text). This is what makes the card render
16
+ * correctly even when itself slotted inside another web component.
17
+ */
18
+ class BsCardComponent {
19
+ constructor() {
20
+ this.color = input(undefined, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
22
+ this.outline = input(false, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "outline" }] : /* istanbul ignore next */ []));
24
+ this.colorName = computed(() => {
25
+ const c = this.color();
26
+ return c === undefined ? null : Color[c];
27
+ }, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "colorName" }] : /* istanbul ignore next */ []));
29
+ }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCardComponent, isStandalone: true, selector: "bs-card", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<mp-card [attr.color]="colorName()" [attr.outline]="outline() ? '' : null"><ng-content></ng-content></mp-card>`, isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
32
+ }
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardComponent, decorators: [{
34
+ type: Component,
35
+ args: [{ selector: 'bs-card', template: `<mp-card [attr.color]="colorName()" [attr.outline]="outline() ? '' : null"><ng-content></ng-content></mp-card>`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
36
+ }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }] } });
37
+
38
+ /**
39
+ * Card header.
40
+ *
41
+ * `[navStyle]` decorates a slotted `<nav>` / `<ul>` with
42
+ * `card-header-tabs` / `card-header-pills` so Bootstrap's `_card.scss`
43
+ * tab/pill integration kicks in. The class lands on the first nav/ul
44
+ * descendant, and a MutationObserver re-applies it when the consumer
45
+ * swaps the slotted markup (e.g. an `@if` that flips the nav in or out).
46
+ */
47
+ class BsCardHeaderComponent {
48
+ constructor() {
49
+ this.el = inject(ElementRef);
50
+ this.destroyRef = inject(DestroyRef);
51
+ this.color = input(undefined, /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
53
+ this.navStyle = input(undefined, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "navStyle" }] : /* istanbul ignore next */ []));
55
+ effect(() => {
56
+ const c = this.color();
57
+ const name = c === undefined ? null : Color[c];
58
+ applyTextBgClass(this.el.nativeElement, name);
59
+ });
60
+ effect(() => {
61
+ applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);
62
+ });
63
+ // Slotted navs may appear after the component is created (Angular @if,
64
+ // structural directives). Re-apply the nav-style class on child changes
65
+ // so a late-rendered nav still picks up `card-header-tabs` / `-pills`.
66
+ // Scope to direct children only: the slotted nav must be a direct child
67
+ // for Bootstrap's `.card-header-tabs` styling to apply; deep subtree
68
+ // mutations (Angular re-renders of nested content) would otherwise
69
+ // trigger a full `querySelector` walk on every keystroke.
70
+ if (typeof MutationObserver !== 'undefined') {
71
+ const observer = new MutationObserver((records) => {
72
+ const navAffected = records.some((r) => [...Array.from(r.addedNodes), ...Array.from(r.removedNodes)].some(isNavTargetNode));
73
+ if (!navAffected)
74
+ return;
75
+ applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);
76
+ });
77
+ observer.observe(this.el.nativeElement, { childList: true, subtree: false });
78
+ this.destroyRef.onDestroy(() => observer.disconnect());
79
+ }
80
+ }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCardHeaderComponent, isStandalone: true, selector: "bs-card-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, navStyle: { classPropertyName: "navStyle", publicName: "navStyle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "card-header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
+ }
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
85
+ type: Component,
86
+ args: [{
87
+ selector: 'bs-card-header',
88
+ template: '<ng-content></ng-content>',
89
+ host: { class: 'card-header' },
90
+ changeDetection: ChangeDetectionStrategy.OnPush,
91
+ }]
92
+ }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], navStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "navStyle", required: false }] }] } });
93
+
94
+ /**
95
+ * Card body — explicit wrapper. No auto-padding workaround like the previous
96
+ * implementation: Bootstrap's `.card-body` padding applies as upstream
97
+ * specifies. Consumers wanting unpadded content can use a raw `<div>` inside
98
+ * `<bs-card>` instead.
99
+ */
100
+ class BsCardBodyComponent {
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
102
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: BsCardBodyComponent, isStandalone: true, selector: "bs-card-body", host: { classAttribute: "card-body" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
103
+ }
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardBodyComponent, decorators: [{
105
+ type: Component,
106
+ args: [{
107
+ selector: 'bs-card-body',
108
+ template: '<ng-content></ng-content>',
109
+ host: { class: 'card-body' },
110
+ changeDetection: ChangeDetectionStrategy.OnPush,
111
+ }]
112
+ }] });
113
+
114
+ class BsCardFooterComponent {
115
+ constructor() {
116
+ this.el = inject(ElementRef);
117
+ this.color = input(undefined, /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
119
+ effect(() => {
120
+ const c = this.color();
121
+ const name = c === undefined ? null : Color[c];
122
+ applyTextBgClass(this.el.nativeElement, name);
123
+ });
124
+ }
125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
126
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCardFooterComponent, isStandalone: true, selector: "bs-card-footer", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "card-footer" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
127
+ }
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardFooterComponent, decorators: [{
129
+ type: Component,
130
+ args: [{
131
+ selector: 'bs-card-footer',
132
+ template: '<ng-content></ng-content>',
133
+ host: { class: 'card-footer' },
134
+ changeDetection: ChangeDetectionStrategy.OnPush,
135
+ }]
136
+ }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
137
+
138
+ class BsCardTitleComponent {
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
140
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: BsCardTitleComponent, isStandalone: true, selector: "bs-card-title", host: { classAttribute: "card-title" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardTitleComponent, decorators: [{
143
+ type: Component,
144
+ args: [{
145
+ selector: 'bs-card-title',
146
+ template: '<ng-content></ng-content>',
147
+ host: { class: 'card-title' },
148
+ changeDetection: ChangeDetectionStrategy.OnPush,
149
+ }]
150
+ }] });
151
+
152
+ class BsCardSubtitleComponent {
153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardSubtitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
154
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: BsCardSubtitleComponent, isStandalone: true, selector: "bs-card-subtitle", host: { classAttribute: "card-subtitle" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
155
+ }
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardSubtitleComponent, decorators: [{
157
+ type: Component,
158
+ args: [{
159
+ selector: 'bs-card-subtitle',
160
+ template: '<ng-content></ng-content>',
161
+ host: { class: 'card-subtitle' },
162
+ changeDetection: ChangeDetectionStrategy.OnPush,
163
+ }]
164
+ }] });
165
+
166
+ class BsCardTextComponent {
167
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
168
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: BsCardTextComponent, isStandalone: true, selector: "bs-card-text", host: { classAttribute: "card-text" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
169
+ }
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardTextComponent, decorators: [{
171
+ type: Component,
172
+ args: [{
173
+ selector: 'bs-card-text',
174
+ template: '<ng-content></ng-content>',
175
+ host: { class: 'card-text' },
176
+ changeDetection: ChangeDetectionStrategy.OnPush,
177
+ }]
178
+ }] });
179
+
180
+ /**
181
+ * Card link. The inner `<a>` carries `.card-link` (so Bootstrap's hover /
182
+ * spacing styling and the `+` adjacency rule both apply). For the adjacency
183
+ * margin between sibling `<bs-card-link>` wrappers, see the compensating
184
+ * CSS in `mp-card.element.scss`.
185
+ */
186
+ class BsCardLinkComponent {
187
+ constructor() {
188
+ this.href = input(undefined, /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
190
+ // Coalesce `undefined` to `null` so Angular drops the attribute entirely
191
+ // when the input is unset. Hoisted out of the template per the workspace's
192
+ // "computed over inline expression" memory rule.
193
+ this.hrefAttr = computed(() => this.href() ?? null, /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "hrefAttr" }] : /* istanbul ignore next */ []));
195
+ }
196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
197
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsCardLinkComponent, isStandalone: true, selector: "bs-card-link", inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '<a class="card-link" [attr.href]="hrefAttr()"><ng-content></ng-content></a>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
198
+ }
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardLinkComponent, decorators: [{
200
+ type: Component,
201
+ args: [{
202
+ selector: 'bs-card-link',
203
+ template: '<a class="card-link" [attr.href]="hrefAttr()"><ng-content></ng-content></a>',
204
+ changeDetection: ChangeDetectionStrategy.OnPush,
205
+ }]
206
+ }], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }] } });
207
+
208
+ /**
209
+ * Card image. `position` switches the rendered shape; `src` and `alt` map
210
+ * to the underlying `<img>`. Overlay form additionally wraps slotted content
211
+ * in `<div class="card-img-overlay">`.
212
+ *
213
+ * The host element carries the `card-img-*` class so Bootstrap's
214
+ * `.card-group > .card > .card-img-top` corner-rounding selectors match
215
+ * (the inner `<img>` would otherwise be a grandchild of `.card`). The inner
216
+ * `<img>` carries the same class so Bootstrap's `width: 100%` sizing rule
217
+ * applies; the host's border-radius is paired with `overflow: hidden` (in
218
+ * `mp-card.element.scss`) so the img's straight corners get clipped.
219
+ *
220
+ * Projection uses `*ngTemplateOutlet` instead of inlining `<ng-content>` in
221
+ * each `@case`: multiple `<ng-content>` slots in conditional branches silently
222
+ * drop the projected children. One `<ng-content>` inside a `<ng-template>`
223
+ * works around the limitation, at the cost of importing `NgTemplateOutlet`.
224
+ */
225
+ class BsCardImgComponent {
226
+ constructor() {
227
+ this.position = input('top', /* @ts-ignore */
228
+ ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
229
+ this.src = input(undefined, /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
231
+ this.alt = input(undefined, /* @ts-ignore */
232
+ ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
233
+ this.hostClass = computed(() => {
234
+ switch (this.position()) {
235
+ case 'overlay':
236
+ return 'card-img';
237
+ case 'bottom':
238
+ return 'card-img-bottom';
239
+ default:
240
+ return 'card-img-top';
241
+ }
242
+ }, /* @ts-ignore */
243
+ ...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
244
+ // The inner <img> carries the same card-img-* class so Bootstrap's
245
+ // `width: 100%` rule sizes the actual image element.
246
+ this.imgClass = computed(() => this.hostClass(), /* @ts-ignore */
247
+ ...(ngDevMode ? [{ debugName: "imgClass" }] : /* istanbul ignore next */ []));
248
+ // `?? null` so an absent input removes the attribute instead of leaving an
249
+ // empty `src=""` / `alt=""` on the DOM. Hoisted out of the template per
250
+ // the workspace's "computed over inline expression" memory rule.
251
+ this.srcAttr = computed(() => this.src() ?? null, /* @ts-ignore */
252
+ ...(ngDevMode ? [{ debugName: "srcAttr" }] : /* istanbul ignore next */ []));
253
+ this.altAttr = computed(() => this.alt() ?? null, /* @ts-ignore */
254
+ ...(ngDevMode ? [{ debugName: "altAttr" }] : /* istanbul ignore next */ []));
255
+ }
256
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardImgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
257
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsCardImgComponent, isStandalone: true, selector: "bs-card-img", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: `
258
+ <ng-template #projected><ng-content></ng-content></ng-template>
259
+ <ng-template #imgTpl>
260
+ <img [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
261
+ </ng-template>
262
+
263
+ @switch (position()) {
264
+ @case ('overlay') {
265
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
266
+ <div class="card-img-overlay">
267
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
268
+ </div>
269
+ }
270
+ @case ('bottom') {
271
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
272
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
273
+ }
274
+ @default {
275
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
276
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
277
+ }
278
+ }
279
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
280
+ }
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardImgComponent, decorators: [{
282
+ type: Component,
283
+ args: [{
284
+ selector: 'bs-card-img',
285
+ imports: [NgTemplateOutlet],
286
+ template: `
287
+ <ng-template #projected><ng-content></ng-content></ng-template>
288
+ <ng-template #imgTpl>
289
+ <img [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
290
+ </ng-template>
291
+
292
+ @switch (position()) {
293
+ @case ('overlay') {
294
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
295
+ <div class="card-img-overlay">
296
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
297
+ </div>
298
+ }
299
+ @case ('bottom') {
300
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
301
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
302
+ }
303
+ @default {
304
+ <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
305
+ <ng-container *ngTemplateOutlet="projected"></ng-container>
306
+ }
307
+ }
308
+ `,
309
+ host: { '[class]': 'hostClass()' },
310
+ changeDetection: ChangeDetectionStrategy.OnPush,
311
+ }]
312
+ }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }] } });
313
+
314
+ class BsCardGroupComponent {
315
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
316
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: BsCardGroupComponent, isStandalone: true, selector: "bs-card-group", host: { classAttribute: "card-group" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
317
+ }
318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsCardGroupComponent, decorators: [{
319
+ type: Component,
320
+ args: [{
321
+ selector: 'bs-card-group',
322
+ template: '<ng-content></ng-content>',
323
+ host: { class: 'card-group' },
324
+ changeDetection: ChangeDetectionStrategy.OnPush,
325
+ }]
326
+ }] });
327
+
328
+ // Angular wrappers (M2). The legacy `card/` + `card-header/` directories
329
+ // have been removed; consumers continue to import `BsCardComponent` and
330
+ // `BsCardHeaderComponent` via the same `@mintplayer/ng-bootstrap/card`
331
+ // secondary entry — only the internal file paths moved.
332
+
333
+ /**
334
+ * Generated bundle index. Do not edit.
335
+ */
336
+
337
+ export { BsCardBodyComponent, BsCardComponent, BsCardFooterComponent, BsCardGroupComponent, BsCardHeaderComponent, BsCardImgComponent, BsCardLinkComponent, BsCardSubtitleComponent, BsCardTextComponent, BsCardTitleComponent };
338
+ //# sourceMappingURL=mintplayer-ng-bootstrap-card.mjs.map