@mintplayer/ng-bootstrap 22.31.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,314 +1,243 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { Color } from '@mintplayer/ng-bootstrap';
4
- import { cardColorClasses, capColorClasses, cardImgClass } from '@mintplayer/ui-core/card';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component, numberAttribute } from '@angular/core';
3
+ import { useCore, useScopedStyles, useHostAttrs, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { cardCore, cardScopedStyles, cardHeaderCore, cardFooterCore, cardBodyCore, cardTitleCore, cardSubtitleCore, cardTextCore, cardGroupCore, cardImgCore, cardLinkCore } from '@mintplayer/ui-core/card';
5
5
  export { CARD_COLORS, isCardColor } from '@mintplayer/ui-core/card';
6
- import { NgTemplateOutlet } from '@angular/common';
6
+ import { bootstrapCard } from '@mintplayer/ui-core/bootstrap/card';
7
7
 
8
- /**
9
- * The card root (PRD #437 wave A). The host IS the Bootstrap `.card`: no
10
- * inner element and no core, so the server renders the finished card and the
11
- * page baseline styles it with JS off. Projected `<bs-card-*>` children are
12
- * plain class-carrying elements.
13
- */
8
+ // GENERATED from the card manifest (card) by @mintplayer/nx-component-compiler. Do not edit.
9
+ /** Bootstrap's card: a `.card` around its header, body, image and footer parts. `color` fills it; `outline` colours only its border. */
14
10
  class BsCardComponent {
11
+ #core;
15
12
  constructor() {
16
- this.color = input(undefined, /* @ts-ignore */
13
+ /** The host element. */
14
+ this.elementRef = inject(ElementRef);
15
+ this.color = input(null, /* @ts-ignore */
17
16
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
18
- this.outline = input(false, /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "outline" }] : /* istanbul ignore next */ []));
20
- this.classes = computed(() => {
21
- const c = this.color();
22
- return ['card', ...cardColorClasses(c === undefined ? null : Color[c], this.outline())];
23
- }, /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
17
+ this.outline = input(false, { ...(ngDevMode ? { debugName: "outline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
18
+ this.#core = useCore(cardCore, { inputs: () => ({ color: this.color(), outline: this.outline() }), idPrefix: 'bs-card', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
19
+ /** The template's props. */
20
+ this.props = this.#core.props;
21
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
22
+ useScopedStyles('card', cardScopedStyles);
25
23
  }
26
24
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
27
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", 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 } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", 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: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
26
  }
29
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardComponent, decorators: [{
30
28
  type: Component,
31
- args: [{
32
- selector: 'bs-card',
33
- template: '<ng-content></ng-content>',
34
- host: { '[class]': 'classes()' },
35
- changeDetection: ChangeDetectionStrategy.OnPush,
36
- }]
37
- }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }] } });
29
+ args: [{ selector: 'bs-card', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
30
+ }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }] } });
38
31
 
39
- /**
40
- * Card header. A nav inside it takes Bootstrap's own `card-header-tabs` or
41
- * `card-header-pills` class, written by the consumer on the nav (the old
42
- * `navStyle` input walked and mutated consumer DOM, which a headless front
43
- * never does).
44
- */
32
+ // GENERATED from the card manifest (card-header) by @mintplayer/nx-component-compiler. Do not edit.
33
+ /** The card's header cap. A nav inside it takes the nav's `cardHeader` for Bootstrap's header tabs or pills. */
45
34
  class BsCardHeaderComponent {
35
+ #core;
46
36
  constructor() {
47
- this.color = input(undefined, /* @ts-ignore */
37
+ /** The host element. */
38
+ this.elementRef = inject(ElementRef);
39
+ this.color = input(null, /* @ts-ignore */
48
40
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
49
- this.classes = computed(() => {
50
- const c = this.color();
51
- return ['card-header', ...capColorClasses(c === undefined ? null : Color[c])];
52
- }, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
41
+ this.#core = useCore(cardHeaderCore, { inputs: () => ({ color: this.color() }), idPrefix: 'bs-card-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
42
+ /** The template's props. */
43
+ this.props = this.#core.props;
44
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
45
+ useScopedStyles('card', cardScopedStyles);
54
46
  }
55
47
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
56
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardHeaderComponent, isStandalone: true, selector: "bs-card-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardHeaderComponent, isStandalone: true, selector: "bs-card-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
57
49
  }
58
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
59
51
  type: Component,
60
- args: [{
61
- selector: 'bs-card-header',
62
- template: '<ng-content></ng-content>',
63
- host: { '[class]': 'classes()' },
64
- changeDetection: ChangeDetectionStrategy.OnPush,
65
- }]
66
- }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
67
-
68
- /**
69
- * Card body — explicit wrapper. No auto-padding workaround like the previous
70
- * implementation: Bootstrap's `.card-body` padding applies as upstream
71
- * specifies. Consumers wanting unpadded content can use a raw `<div>` inside
72
- * `<bs-card>` instead.
73
- */
74
- class BsCardBodyComponent {
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
76
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", 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 }); }
77
- }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, decorators: [{
79
- type: Component,
80
- args: [{
81
- selector: 'bs-card-body',
82
- template: '<ng-content></ng-content>',
83
- host: { class: 'card-body' },
84
- changeDetection: ChangeDetectionStrategy.OnPush,
85
- }]
86
- }] });
52
+ args: [{ selector: 'bs-card-header', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
53
+ }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
87
54
 
55
+ // GENERATED from the card manifest (card-footer) by @mintplayer/nx-component-compiler. Do not edit.
56
+ /** The card's footer cap. */
88
57
  class BsCardFooterComponent {
58
+ #core;
89
59
  constructor() {
90
- this.color = input(undefined, /* @ts-ignore */
60
+ /** The host element. */
61
+ this.elementRef = inject(ElementRef);
62
+ this.color = input(null, /* @ts-ignore */
91
63
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
92
- this.classes = computed(() => {
93
- const c = this.color();
94
- return ['card-footer', ...capColorClasses(c === undefined ? null : Color[c])];
95
- }, /* @ts-ignore */
96
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
64
+ this.#core = useCore(cardFooterCore, { inputs: () => ({ color: this.color() }), idPrefix: 'bs-card-footer', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
65
+ /** The template's props. */
66
+ this.props = this.#core.props;
67
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
68
+ useScopedStyles('card', cardScopedStyles);
97
69
  }
98
70
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
99
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardFooterComponent, isStandalone: true, selector: "bs-card-footer", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardFooterComponent, isStandalone: true, selector: "bs-card-footer", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
100
72
  }
101
73
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardFooterComponent, decorators: [{
102
74
  type: Component,
103
- args: [{
104
- selector: 'bs-card-footer',
105
- template: '<ng-content></ng-content>',
106
- host: { '[class]': 'classes()' },
107
- changeDetection: ChangeDetectionStrategy.OnPush,
108
- }]
109
- }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
75
+ args: [{ selector: 'bs-card-footer', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
76
+ }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
110
77
 
78
+ // GENERATED from the card manifest (card-body) by @mintplayer/nx-component-compiler. Do not edit.
79
+ /** The card's padded body. */
80
+ class BsCardBodyComponent {
81
+ #core;
82
+ constructor() {
83
+ /** The host element. */
84
+ this.elementRef = inject(ElementRef);
85
+ this.#core = useCore(cardBodyCore, { inputs: () => ({}), idPrefix: 'bs-card-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
86
+ /** The template's props. */
87
+ this.props = this.#core.props;
88
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
89
+ useScopedStyles('card', cardScopedStyles);
90
+ }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
92
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardBodyComponent, isStandalone: true, selector: "bs-card-body", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, decorators: [{
95
+ type: Component,
96
+ args: [{ selector: 'bs-card-body', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
97
+ }], ctorParameters: () => [] });
98
+
99
+ // GENERATED from the card manifest (card-title) by @mintplayer/nx-component-compiler. Do not edit.
100
+ /** A card title: `role="heading"` at `level` (5 by default, matching Bootstrap's visual h5). */
111
101
  class BsCardTitleComponent {
102
+ #core;
112
103
  constructor() {
113
- /** Heading level in the page outline. Cards default to a section-level 5, matching Bootstrap's visual h5. */
114
- this.level = input(5, /* @ts-ignore */
115
- ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
104
+ /** The host element. */
105
+ this.elementRef = inject(ElementRef);
106
+ this.level = input(5, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
107
+ this.#core = useCore(cardTitleCore, { inputs: () => ({ level: this.level() }), idPrefix: 'bs-card-title', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
108
+ /** The template's props. */
109
+ this.props = this.#core.props;
110
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
111
+ useScopedStyles('card', cardScopedStyles);
116
112
  }
117
113
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
118
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardTitleComponent, isStandalone: true, selector: "bs-card-title", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "heading" }, properties: { "attr.aria-level": "level()" }, classAttribute: "card-title d-block" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
114
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardTitleComponent, isStandalone: true, selector: "bs-card-title", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
119
115
  }
120
116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTitleComponent, decorators: [{
121
117
  type: Component,
122
- args: [{
123
- selector: 'bs-card-title',
124
- // role=heading + aria-level rather than swapping real h1-h6 tags: the tag
125
- // cannot change dynamically without destroying projected content, and the
126
- // computed pair is exactly equivalent in the accessibility tree.
127
- template: '<ng-content></ng-content>',
128
- host: {
129
- // d-block: the host is a custom element, inline by default, and the
130
- // title's margin needs a block box.
131
- class: 'card-title d-block',
132
- role: 'heading',
133
- '[attr.aria-level]': 'level()',
134
- },
135
- changeDetection: ChangeDetectionStrategy.OnPush,
136
- }]
137
- }], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }] } });
118
+ args: [{ selector: 'bs-card-title', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
119
+ }], ctorParameters: () => [], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }] } });
138
120
 
121
+ // GENERATED from the card manifest (card-subtitle) by @mintplayer/nx-component-compiler. Do not edit.
122
+ /** A card subtitle. */
139
123
  class BsCardSubtitleComponent {
124
+ #core;
125
+ constructor() {
126
+ /** The host element. */
127
+ this.elementRef = inject(ElementRef);
128
+ this.#core = useCore(cardSubtitleCore, { inputs: () => ({}), idPrefix: 'bs-card-subtitle', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
129
+ /** The template's props. */
130
+ this.props = this.#core.props;
131
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
132
+ useScopedStyles('card', cardScopedStyles);
133
+ }
140
134
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardSubtitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardSubtitleComponent, isStandalone: true, selector: "bs-card-subtitle", host: { classAttribute: "card-subtitle d-block" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardSubtitleComponent, isStandalone: true, selector: "bs-card-subtitle", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
136
  }
143
137
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardSubtitleComponent, decorators: [{
144
138
  type: Component,
145
- args: [{
146
- selector: 'bs-card-subtitle',
147
- template: '<ng-content></ng-content>',
148
- host: { class: 'card-subtitle d-block' },
149
- changeDetection: ChangeDetectionStrategy.OnPush,
150
- }]
151
- }] });
139
+ args: [{ selector: 'bs-card-subtitle', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
140
+ }], ctorParameters: () => [] });
152
141
 
142
+ // GENERATED from the card manifest (card-text) by @mintplayer/nx-component-compiler. Do not edit.
143
+ /** A paragraph of card text. */
153
144
  class BsCardTextComponent {
145
+ #core;
146
+ constructor() {
147
+ /** The host element. */
148
+ this.elementRef = inject(ElementRef);
149
+ this.#core = useCore(cardTextCore, { inputs: () => ({}), idPrefix: 'bs-card-text', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
150
+ /** The template's props. */
151
+ this.props = this.#core.props;
152
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
153
+ useScopedStyles('card', cardScopedStyles);
154
+ }
154
155
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
155
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardTextComponent, isStandalone: true, selector: "bs-card-text", host: { classAttribute: "card-text d-block" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
156
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardTextComponent, isStandalone: true, selector: "bs-card-text", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
156
157
  }
157
158
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTextComponent, decorators: [{
158
159
  type: Component,
159
- args: [{
160
- selector: 'bs-card-text',
161
- template: '<ng-content></ng-content>',
162
- host: { class: 'card-text d-block' },
163
- changeDetection: ChangeDetectionStrategy.OnPush,
164
- }]
165
- }] });
160
+ args: [{ selector: 'bs-card-text', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
161
+ }], ctorParameters: () => [] });
166
162
 
167
- /**
168
- * Card link. The HOST carries `.card-link`, so Bootstrap's
169
- * `.card-link + .card-link` spacing matches sibling `<bs-card-link>`s; the
170
- * inner `<a>` is the link.
171
- */
172
- class BsCardLinkComponent {
163
+ // GENERATED from the card manifest (card-group) by @mintplayer/nx-component-compiler. Do not edit.
164
+ /** Cards side by side with joined borders. */
165
+ class BsCardGroupComponent {
166
+ #core;
173
167
  constructor() {
174
- this.href = input(undefined, /* @ts-ignore */
175
- ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
176
- // Coalesce `undefined` to `null` so Angular drops the attribute entirely
177
- // when the input is unset.
178
- this.hrefAttr = computed(() => this.href() ?? null, /* @ts-ignore */
179
- ...(ngDevMode ? [{ debugName: "hrefAttr" }] : /* istanbul ignore next */ []));
168
+ /** The host element. */
169
+ this.elementRef = inject(ElementRef);
170
+ this.#core = useCore(cardGroupCore, { inputs: () => ({}), idPrefix: 'bs-card-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
171
+ /** The template's props. */
172
+ this.props = this.#core.props;
173
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
174
+ useScopedStyles('card', cardScopedStyles);
180
175
  }
181
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
182
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardLinkComponent, isStandalone: true, selector: "bs-card-link", inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "card-link" }, ngImport: i0, template: '<a [attr.href]="hrefAttr()"><ng-content></ng-content></a>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
176
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
177
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardGroupComponent, isStandalone: true, selector: "bs-card-group", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
183
178
  }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, decorators: [{
185
180
  type: Component,
186
- args: [{
187
- selector: 'bs-card-link',
188
- template: '<a [attr.href]="hrefAttr()"><ng-content></ng-content></a>',
189
- host: { class: 'card-link' },
190
- changeDetection: ChangeDetectionStrategy.OnPush,
191
- }]
192
- }], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }] } });
181
+ args: [{ selector: 'bs-card-group', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
182
+ }], ctorParameters: () => [] });
193
183
 
194
- /**
195
- * Card image. `position` switches the rendered shape; `src` and `alt` map
196
- * to the underlying `<img>`. Overlay form additionally wraps slotted content
197
- * in `<div class="card-img-overlay">`.
198
- *
199
- * The host element carries the `card-img-*` class so Bootstrap's
200
- * `.card-group > .card > .card-img-top` corner-rounding selectors match
201
- * (the inner `<img>` would otherwise be a grandchild of `.card`). The inner
202
- * `<img>` carries the same class so Bootstrap's `width: 100%` sizing rule
203
- * applies; the host's border-radius is paired with `overflow: hidden` so the img's straight corners get clipped.
204
- *
205
- * Projection uses `*ngTemplateOutlet` instead of inlining `<ng-content>` in
206
- * each `@case`: multiple `<ng-content>` slots in conditional branches silently
207
- * drop the projected children. One `<ng-content>` inside a `<ng-template>`
208
- * works around the limitation, at the cost of importing `NgTemplateOutlet`.
209
- */
184
+ // GENERATED from the card manifest (card-img) by @mintplayer/nx-component-compiler. Do not edit.
185
+ /** A card image at the top or bottom, or `overlay` with the content laid over it. Without `alt` it is decorative. */
210
186
  class BsCardImgComponent {
187
+ #core;
211
188
  constructor() {
189
+ /** The host element. */
190
+ this.elementRef = inject(ElementRef);
191
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
192
+ this.hostAttrs = useHostAttrs();
212
193
  this.position = input('top', /* @ts-ignore */
213
194
  ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
214
- this.src = input(undefined, /* @ts-ignore */
195
+ this.src = input(null, /* @ts-ignore */
215
196
  ...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
216
- this.alt = input(undefined, /* @ts-ignore */
197
+ this.alt = input(null, /* @ts-ignore */
217
198
  ...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
218
- this.hostClass = computed(() => cardImgClass(this.position()), /* @ts-ignore */
219
- ...(ngDevMode ? [{ debugName: "hostClass" }] : /* istanbul ignore next */ []));
220
- // The inner <img> carries the same card-img-* class so Bootstrap's
221
- // `width: 100%` rule sizes the actual image element.
222
- this.imgClass = computed(() => this.hostClass(), /* @ts-ignore */
223
- ...(ngDevMode ? [{ debugName: "imgClass" }] : /* istanbul ignore next */ []));
224
- // `?? null` so an absent src removes the attribute instead of leaving an
225
- // empty `src=""` on the DOM.
226
- this.srcAttr = computed(() => this.src() ?? null, /* @ts-ignore */
227
- ...(ngDevMode ? [{ debugName: "srcAttr" }] : /* istanbul ignore next */ []));
228
- // alt is the opposite case: an <img> with NO alt attribute is announced by
229
- // its filename, while alt="" marks it decorative and silences it. Absent
230
- // input therefore means decorative, never unlabelled.
231
- this.altAttr = computed(() => this.alt() ?? '', /* @ts-ignore */
232
- ...(ngDevMode ? [{ debugName: "altAttr" }] : /* istanbul ignore next */ []));
199
+ this.#core = useCore(cardImgCore, { inputs: () => ({ position: this.position(), src: this.src(), alt: this.alt() }), idPrefix: 'bs-card-img', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'card' }) });
200
+ /** The template's props. */
201
+ this.props = this.#core.props;
202
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
203
+ useScopedStyles('card', cardScopedStyles);
233
204
  }
234
205
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardImgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
235
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", 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: `
236
- <ng-template #projected><ng-content></ng-content></ng-template>
237
- <ng-template #imgTpl>
238
- <img [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
239
- </ng-template>
240
-
241
- @switch (position()) {
242
- @case ('overlay') {
243
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
244
- <div class="card-img-overlay">
245
- <ng-container *ngTemplateOutlet="projected"></ng-container>
246
- </div>
247
- }
248
- @case ('bottom') {
249
- <ng-container *ngTemplateOutlet="projected"></ng-container>
250
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
251
- }
252
- @default {
253
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
254
- <ng-container *ngTemplateOutlet="projected"></ng-container>
255
- }
256
- }
257
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
206
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", 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 } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-img.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<img data-mps=\"card\" [mpProps]=\"p_view.img\" [attr.src]=\"p_view.src\" [mpHostAttrs]=\"hostAttrs\">\n@if (p_view.overlay) {\n <div data-mps=\"card\" [mpProps]=\"p_view.overlay\">\n <ng-content />\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
258
207
  }
259
208
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardImgComponent, decorators: [{
260
209
  type: Component,
261
- args: [{
262
- selector: 'bs-card-img',
263
- imports: [NgTemplateOutlet],
264
- template: `
265
- <ng-template #projected><ng-content></ng-content></ng-template>
266
- <ng-template #imgTpl>
267
- <img [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
268
- </ng-template>
210
+ args: [{ selector: 'bs-card-img', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-img.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<img data-mps=\"card\" [mpProps]=\"p_view.img\" [attr.src]=\"p_view.src\" [mpHostAttrs]=\"hostAttrs\">\n@if (p_view.overlay) {\n <div data-mps=\"card\" [mpProps]=\"p_view.overlay\">\n <ng-content />\n </div>\n}\n" }]
211
+ }], ctorParameters: () => [], 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 }] }] } });
269
212
 
270
- @switch (position()) {
271
- @case ('overlay') {
272
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
273
- <div class="card-img-overlay">
274
- <ng-container *ngTemplateOutlet="projected"></ng-container>
275
- </div>
276
- }
277
- @case ('bottom') {
278
- <ng-container *ngTemplateOutlet="projected"></ng-container>
279
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
280
- }
281
- @default {
282
- <ng-container *ngTemplateOutlet="imgTpl"></ng-container>
283
- <ng-container *ngTemplateOutlet="projected"></ng-container>
284
- }
213
+ // GENERATED from the card manifest (card-link) by @mintplayer/nx-component-compiler. Do not edit.
214
+ /** A link in a card. Sibling links are spaced apart. */
215
+ class BsCardLinkComponent {
216
+ #core;
217
+ constructor() {
218
+ /** The host element. */
219
+ this.elementRef = inject(ElementRef);
220
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
221
+ this.hostAttrs = useHostAttrs();
222
+ this.href = input(null, /* @ts-ignore */
223
+ ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
224
+ this.#core = useCore(cardLinkCore, { inputs: () => ({ href: this.href() }), idPrefix: 'bs-card-link', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'card' }) });
225
+ /** The template's props. */
226
+ this.props = this.#core.props;
227
+ useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
228
+ useScopedStyles('card', cardScopedStyles);
285
229
  }
286
- `,
287
- host: { '[class]': 'hostClass()' },
288
- changeDetection: ChangeDetectionStrategy.OnPush,
289
- }]
290
- }], 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 }] }] } });
291
-
292
- /**
293
- * Card group. No host `display` of its own: Bootstrap's `.card-group` turns
294
- * flex from `sm` up, and an unlayered component rule would out-rank the
295
- * layered baseline and keep it a block (PRD #437 C3).
296
- */
297
- class BsCardGroupComponent {
298
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
299
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", 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 }); }
230
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
231
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardLinkComponent, isStandalone: true, selector: "bs-card-link", inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-link.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"card\" [mpProps]=\"p_view.link\" [attr.href]=\"p_view.href\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</a>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
300
232
  }
301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, decorators: [{
233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, decorators: [{
302
234
  type: Component,
303
- args: [{
304
- selector: 'bs-card-group',
305
- template: '<ng-content></ng-content>',
306
- host: { class: 'card-group' },
307
- changeDetection: ChangeDetectionStrategy.OnPush,
308
- }]
309
- }] });
235
+ args: [{ selector: 'bs-card-link', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-link.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"card\" [mpProps]=\"p_view.link\" [attr.href]=\"p_view.href\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</a>\n" }]
236
+ }], ctorParameters: () => [], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }] } });
237
+
238
+ // GENERATED from the card manifest by @mintplayer/nx-component-compiler. Do not edit.
310
239
 
311
- // Angular front of the card (PRD #437 wave A): plain Bootstrap markup, no custom element.
240
+ // Generated from @mintplayer/ui-core/card (#458 M4, D10): the card and its parts.
312
241
 
313
242
  /**
314
243
  * Generated bundle index. Do not edit.