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