@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,179 +1,72 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ComponentPortal } from '@angular/cdk/portal';
3
1
  import * as i0 from '@angular/core';
4
- import { InjectionToken, inject, input, computed, ChangeDetectionStrategy, Component, ElementRef, Injector, TemplateRef, DestroyRef, Directive } from '@angular/core';
5
- import { BsOverlayStackService, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
6
- import { NgTemplateOutlet } from '@angular/common';
7
- import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
+ import { useCore, useScopedStyles, MpPropsDirective, anchorElement, useOverlayComponent } from '@mintplayer/ng-bootstrap/machine';
4
+ import { tooltipPanelCore, tooltipScopedStyles, tooltipCore } from '@mintplayer/ui-core/tooltip';
5
+ import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
8
6
  import { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';
9
- import { FadeInOutAnimation } from '@mintplayer/ng-animations';
10
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
11
7
 
12
- const TOOLTIP_CONTENT = new InjectionToken('TooltipContent');
13
-
14
- /** The dom id assigned to the rendered tooltip element so the trigger can point at it via aria-describedby. */
15
- const TOOLTIP_ID = new InjectionToken('TOOLTIP_ID');
16
-
17
- class BsTooltipComponent {
8
+ // GENERATED from the tooltip manifest (tooltip-panel) by @mintplayer/nx-component-compiler. Do not edit.
9
+ /** Bootstrap's tooltip panel, as the tooltip directive renders it; not used on its own. */
10
+ class BsTooltipPanelComponent {
11
+ #core;
18
12
  constructor() {
19
- this.template = inject(TOOLTIP_CONTENT);
20
- this.tooltipId = inject(TOOLTIP_ID);
21
- this.position = input('bottom', /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
23
- this.positionClass = computed(() => `bs-tooltip-${this.position()}`, /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "positionClass" }] : /* istanbul ignore next */ []));
25
- this.marginClass = computed(() => {
26
- switch (this.position()) {
27
- case 'start': return 'me-1';
28
- case 'end': return 'ms-1';
29
- case 'top': return 'mb-1';
30
- case 'bottom': return 'mt-1';
31
- }
32
- }, /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "marginClass" }] : /* istanbul ignore next */ []));
34
- // #452: the tooltip partial ships with this component, scoped to the elements it stamps (data-mps="tooltip").
35
- useBootstrap(bootstrapTooltip);
13
+ /** The host element. */
14
+ this.elementRef = inject(ElementRef);
15
+ /** The panel's id, which the trigger's `aria-describedby` names. */
16
+ this.overlayId = input('', /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "overlayId" }] : /* istanbul ignore next */ []));
18
+ this.side = input('top', /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
20
+ this.shown = input(false, { ...(ngDevMode ? { debugName: "shown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
21
+ this.#core = useCore(tooltipPanelCore, { inputs: () => ({ overlayId: this.overlayId(), side: this.side(), shown: this.shown() }), idPrefix: 'bs-tooltip-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tooltip' }) });
22
+ /** The template's props. */
23
+ this.props = this.#core.props;
24
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
25
+ useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order });
26
+ useScopedStyles('tooltip', tooltipScopedStyles);
36
27
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipComponent, isStandalone: true, selector: "bs-tooltip", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.position-relative": "true" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
29
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipPanelComponent, isStandalone: true, selector: "bs-tooltip-panel", inputs: { overlayId: { classPropertyName: "overlayId", publicName: "overlayId", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, shown: { classPropertyName: "shown", publicName: "shown", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
30
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipComponent, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipPanelComponent, decorators: [{
41
32
  type: Component,
42
- args: [{ selector: 'bs-tooltip', imports: [NgTemplateOutlet, BsHasOverlayComponent], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, host: {
43
- '[class.position-relative]': 'true',
44
- }, template: "<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(calc(-100% - .3rem))}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"] }]
45
- }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
33
+ args: [{ selector: 'bs-tooltip-panel', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n" }]
34
+ }], ctorParameters: () => [], propDecorators: { overlayId: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayId", required: false }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], shown: [{ type: i0.Input, args: [{ isSignal: true, alias: "shown", required: false }] }] } });
46
35
 
47
- /** Where the tooltip attaches for each side of the trigger. */
48
- const POSITIONS = {
49
- bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },
50
- top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },
51
- start: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },
52
- end: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },
53
- };
54
- /** How long the pointer may travel from the trigger into the tooltip before it hides. */
55
- const TOOLTIP_HIDE_DELAY_MS = 150;
36
+ // GENERATED from the tooltip manifest (tooltip) by @mintplayer/nx-component-compiler. Do not edit.
37
+ /**
38
+ * A tooltip on the element: shown on hover and on focus, dismissed by Escape, hoverable (WCAG 1.4.13).
39
+ * While it shows, the element's `aria-describedby` names it.
40
+ */
56
41
  class BsTooltipDirective {
42
+ /** The element the template sits in: the trigger. */
43
+ #anchor;
57
44
  constructor() {
58
- this.overlay = inject(Overlay);
59
- this.overlayStack = inject(BsOverlayStackService);
60
- /** The element the structural directive sits on: the tooltip's trigger. */
61
- this.parent = inject(ElementRef, { host: true, skipSelf: true });
62
- this.tooltipId = inject(BsIdService).next('bs-tooltip');
63
- this.portal = new ComponentPortal(BsTooltipComponent, null, Injector.create({
64
- providers: [
65
- { provide: TOOLTIP_CONTENT, useValue: inject(TemplateRef) },
66
- { provide: TOOLTIP_ID, useValue: this.tooltipId },
67
- ],
68
- parent: inject(Injector),
69
- }));
70
- this.stackToken = null;
71
- this.overlayRef = null;
72
- this.bsTooltip = input('bottom', /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "bsTooltip" }] : /* istanbul ignore next */ []));
74
- /**
75
- * WCAG 1.4.13 "hoverable": the pointer must be able to travel INTO the
76
- * tooltip (to select/zoom its text) without it vanishing. Hide on a short
77
- * delay; entering the overlay cancels it, leaving the overlay hides.
78
- */
79
- this.hideTimer = null;
80
- const el = this.parent.nativeElement;
81
- /* addEventListener rather than the on* properties the old code assigned —
82
- those silently CLOBBER any handler the consumer set on their own element. */
83
- // WCAG 1.4.13: content on hover must also appear on FOCUS. A keyboard user
84
- // could never see these tooltips at all.
85
- const listeners = [
86
- ['mouseenter', () => this.showTooltip()],
87
- ['mouseleave', () => this.scheduleHide()],
88
- ['focusin', () => this.showTooltip()],
89
- ['focusout', () => this.hideTooltip()],
90
- ];
91
- listeners.map(([type, fn]) => el.addEventListener(type, fn));
92
- inject(DestroyRef).onDestroy(() => {
93
- listeners.map(([type, fn]) => el.removeEventListener(type, fn));
94
- this.hideTooltip();
95
- });
96
- }
97
- scheduleHide() {
98
- this.cancelScheduledHide();
99
- this.hideTimer = setTimeout(() => this.hideTooltip(), TOOLTIP_HIDE_DELAY_MS);
100
- }
101
- cancelScheduledHide() {
102
- if (this.hideTimer !== null) {
103
- clearTimeout(this.hideTimer);
104
- this.hideTimer = null;
105
- }
106
- }
107
- onBlur() {
108
- this.hideTooltip();
109
- }
110
- onEscape() {
111
- if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {
112
- this.hideTooltip();
113
- }
114
- }
115
- showTooltip() {
116
- this.cancelScheduledHide();
117
- if (this.overlayRef)
118
- return;
119
- this.overlayRef = this.overlay.create({
120
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
121
- positionStrategy: this.overlay.position()
122
- .flexibleConnectedTo(this.parent)
123
- .withPositions([POSITIONS[this.bsTooltip()]]),
124
- });
125
- const component = this.overlayRef.attach(this.portal);
126
- component.setInput('position', this.bsTooltip());
127
- // Hoverable half of 1.4.13 — see scheduleHide().
128
- this.overlayRef.overlayElement.addEventListener('mouseenter', () => this.cancelScheduledHide());
129
- this.overlayRef.overlayElement.addEventListener('mouseleave', () => this.scheduleHide());
130
- this.setDescribedBy(true);
131
- this.stackToken = this.overlayStack.push();
132
- }
133
- hideTooltip() {
134
- this.cancelScheduledHide();
135
- if (!this.overlayRef)
136
- return;
137
- this.overlayRef.dispose();
138
- this.overlayRef = null;
139
- this.setDescribedBy(false);
140
- if (this.stackToken !== null) {
141
- this.overlayStack.release(this.stackToken);
142
- this.stackToken = null;
143
- }
144
- }
145
- /**
146
- * Adds or removes the tooltip's id in the trigger's `aria-describedby` token list, leaving
147
- * any description the consumer set (a hint, a validation message) in place.
148
- */
149
- setDescribedBy(present) {
150
- const el = this.parent.nativeElement;
151
- const others = (el.getAttribute('aria-describedby') ?? '').split(/\s+/).filter((id) => id && id !== this.tooltipId);
152
- const ids = present ? [...others, this.tooltipId] : others;
153
- if (ids.length)
154
- el.setAttribute('aria-describedby', ids.join(' '));
155
- else
156
- el.removeAttribute('aria-describedby');
45
+ /** The side of the element it shows on; it flips when it does not fit. */
46
+ this.position = input('top', { ...(ngDevMode ? { debugName: "position" } : /* istanbul ignore next */ {}), transform: (v) => (v === '' ? 'top' : v), alias: 'bsTooltip' });
47
+ /** The element the template sits in: the trigger. */
48
+ this.#anchor = anchorElement();
49
+ this.core = useCore(tooltipCore, { inputs: () => ({ position: this.position() }), idPrefix: 'bs-tooltip', element: this.#anchor, hostBag: (props) => props.anchor });
50
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
51
+ useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order });
52
+ useScopedStyles('tooltip', tooltipScopedStyles);
53
+ useOverlayComponent(BsTooltipPanelComponent, () => this.core.props().overlay, this.#anchor);
157
54
  }
158
55
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
159
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipDirective, isStandalone: true, selector: "*[bsTooltip]", inputs: { bsTooltip: { classPropertyName: "bsTooltip", publicName: "bsTooltip", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "window:blur": "onBlur()", "document:keydown.escape": "onEscape()" } }, ngImport: i0 }); }
56
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsTooltipDirective, isStandalone: true, selector: "[bsTooltip]", inputs: { position: { classPropertyName: "position", publicName: "bsTooltip", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
160
57
  }
161
58
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTooltipDirective, decorators: [{
162
59
  type: Directive,
163
- args: [{
164
- selector: '*[bsTooltip]',
165
- host: {
166
- '(window:blur)': 'onBlur()',
167
- '(document:keydown.escape)': 'onEscape()',
168
- },
169
- }]
170
- }], ctorParameters: () => [], propDecorators: { bsTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsTooltip", required: false }] }] } });
60
+ args: [{ selector: '[bsTooltip]' }]
61
+ }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsTooltip", required: false }] }] } });
62
+
63
+ // GENERATED from the tooltip manifest by @mintplayer/nx-component-compiler. Do not edit.
171
64
 
172
- // export * from './component/tooltip.component';
65
+ // Generated from @mintplayer/ui-core/tooltip (#458 D10).
173
66
 
174
67
  /**
175
68
  * Generated bundle index. Do not edit.
176
69
  */
177
70
 
178
- export { BsTooltipDirective, TOOLTIP_HIDE_DELAY_MS };
71
+ export { BsTooltipDirective, BsTooltipPanelComponent };
179
72
  //# sourceMappingURL=mintplayer-ng-bootstrap-tooltip.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/providers/tooltip-id.provider.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/component/tooltip.component.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/directive/tooltip.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const TOOLTIP_CONTENT = new InjectionToken<TemplateRef<any>>('TooltipContent');","import { InjectionToken } from '@angular/core';\n\n/** The dom id assigned to the rendered tooltip element so the trigger can point at it via aria-describedby. */\nexport const TOOLTIP_ID = new InjectionToken<string>('TOOLTIP_ID');\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, TemplateRef } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n@Component({\n selector: 'bs-tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.position-relative]': 'true',\n },\n})\nexport class BsTooltipComponent {\n constructor() {\n // #452: the tooltip partial ships with this component, scoped to the elements it stamps (data-mps=\"tooltip\").\n useBootstrap(bootstrapTooltip);\n }\n\n template = inject<TemplateRef<any>>(TOOLTIP_CONTENT);\n tooltipId = inject(TOOLTIP_ID);\n\n position = input<Position>('bottom');\n\n positionClass = computed(() => `bs-tooltip-${this.position()}`);\n\n marginClass = computed(() => {\n switch (this.position()) {\n case 'start': return 'me-1';\n case 'end': return 'ms-1';\n case 'top': return 'mb-1';\n case 'bottom': return 'mt-1';\n }\n });\n}\n","<bs-has-overlay></bs-has-overlay>\n<div data-mps=\"tooltip\" [@fadeInOut] class=\"tooltip position-absolute show\"\n [class]=\"[positionClass(), marginClass()]\"\n [id]=\"tooltipId\"\n role=\"tooltip\">\n <div data-mps=\"tooltip\" class=\"tooltip-arrow position-absolute\" aria-hidden=\"true\"></div>\n <div data-mps=\"tooltip\" class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n","import { ConnectedPosition, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { DestroyRef, Directive, ElementRef, inject, input, Injector, TemplateRef } from '@angular/core';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsIdService, BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsTooltipComponent } from '../component/tooltip.component';\nimport { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';\nimport { TOOLTIP_ID } from '../providers/tooltip-id.provider';\n\n/** Where the tooltip attaches for each side of the trigger. */\nconst POSITIONS: Record<Position, ConnectedPosition> = {\n bottom: { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top' },\n top: { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom' },\n start: { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center' },\n end: { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center' },\n};\n\n/** How long the pointer may travel from the trigger into the tooltip before it hides. */\nexport const TOOLTIP_HIDE_DELAY_MS = 150;\n\n@Directive({\n selector: '*[bsTooltip]',\n host: {\n '(window:blur)': 'onBlur()',\n '(document:keydown.escape)': 'onEscape()',\n },\n})\nexport class BsTooltipDirective {\n private readonly overlay = inject(Overlay);\n private readonly overlayStack = inject(BsOverlayStackService);\n /** The element the structural directive sits on: the tooltip's trigger. */\n private readonly parent = inject<ElementRef<HTMLElement>>(ElementRef, { host: true, skipSelf: true });\n private readonly tooltipId = inject(BsIdService).next('bs-tooltip');\n private readonly portal = new ComponentPortal(BsTooltipComponent, null, Injector.create({\n providers: [\n { provide: TOOLTIP_CONTENT, useValue: inject(TemplateRef) },\n { provide: TOOLTIP_ID, useValue: this.tooltipId },\n ],\n parent: inject(Injector),\n }));\n\n private stackToken: symbol | null = null;\n private overlayRef: OverlayRef | null = null;\n\n readonly bsTooltip = input<Position>('bottom');\n\n constructor() {\n const el = this.parent.nativeElement;\n /* addEventListener rather than the on* properties the old code assigned —\n those silently CLOBBER any handler the consumer set on their own element. */\n // WCAG 1.4.13: content on hover must also appear on FOCUS. A keyboard user\n // could never see these tooltips at all.\n const listeners: [string, () => void][] = [\n ['mouseenter', () => this.showTooltip()],\n ['mouseleave', () => this.scheduleHide()],\n ['focusin', () => this.showTooltip()],\n ['focusout', () => this.hideTooltip()],\n ];\n listeners.map(([type, fn]) => el.addEventListener(type, fn));\n inject(DestroyRef).onDestroy(() => {\n listeners.map(([type, fn]) => el.removeEventListener(type, fn));\n this.hideTooltip();\n });\n }\n\n /**\n * WCAG 1.4.13 \"hoverable\": the pointer must be able to travel INTO the\n * tooltip (to select/zoom its text) without it vanishing. Hide on a short\n * delay; entering the overlay cancels it, leaving the overlay hides.\n */\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n\n private scheduleHide(): void {\n this.cancelScheduledHide();\n this.hideTimer = setTimeout(() => this.hideTooltip(), TOOLTIP_HIDE_DELAY_MS);\n }\n\n private cancelScheduledHide(): void {\n if (this.hideTimer !== null) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n onBlur() {\n this.hideTooltip();\n }\n\n onEscape() {\n if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.hideTooltip();\n }\n }\n\n showTooltip() {\n this.cancelScheduledHide();\n if (this.overlayRef) return;\n\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .flexibleConnectedTo(this.parent)\n .withPositions([POSITIONS[this.bsTooltip()]]),\n });\n const component = this.overlayRef.attach<BsTooltipComponent>(this.portal);\n component.setInput('position', this.bsTooltip());\n\n // Hoverable half of 1.4.13 — see scheduleHide().\n this.overlayRef.overlayElement.addEventListener('mouseenter', () => this.cancelScheduledHide());\n this.overlayRef.overlayElement.addEventListener('mouseleave', () => this.scheduleHide());\n\n this.setDescribedBy(true);\n this.stackToken = this.overlayStack.push();\n }\n\n hideTooltip() {\n this.cancelScheduledHide();\n if (!this.overlayRef) return;\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.setDescribedBy(false);\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n }\n\n /**\n * Adds or removes the tooltip's id in the trigger's `aria-describedby` token list, leaving\n * any description the consumer set (a hint, a validation message) in place.\n */\n private setDescribedBy(present: boolean) {\n const el = this.parent.nativeElement;\n const others = (el.getAttribute('aria-describedby') ?? '').split(/\\s+/).filter((id) => id && id !== this.tooltipId);\n const ids = present ? [...others, this.tooltipId] : others;\n if (ids.length) el.setAttribute('aria-describedby', ids.join(' '));\n else el.removeAttribute('aria-describedby');\n }\n}\n","export * from './directive/tooltip.directive';\n// export * from './component/tooltip.component';","/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AA,eAAe,EAAE,UAAU;AAC3B,wBAAA,2BAA2B,EAAE,YAAY;AAC1C,qBAAA;AACF,iBAAA;;;ACzBD;;ACDA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-tooltip.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/tooltip.directive.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tooltip/mintplayer-ng-bootstrap-tooltip.ts"],"sourcesContent":["// GENERATED from the tooltip manifest (tooltip-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tooltipPanelCore, type TooltipPanelInputs, tooltipScopedStyles } from '@mintplayer/ui-core/tooltip';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\n\n/** Bootstrap's tooltip panel, as the tooltip directive renders it; not used on its own. */\n@Component({\n selector: 'bs-tooltip-panel',\n templateUrl: './tooltip-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTooltipPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The panel's id, which the trigger's `aria-describedby` names. */\n readonly overlayId = input<TooltipPanelInputs['overlayId']>('');\n readonly side = input<TooltipPanelInputs['side']>('top');\n readonly shown = input<TooltipPanelInputs['shown'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(tooltipPanelCore, { inputs: () => ({ overlayId: this.overlayId(), side: this.side(), shown: this.shown() }), idPrefix: 'bs-tooltip-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tooltip' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order }); useScopedStyles('tooltip', tooltipScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tooltip/src/templates/tooltip-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.arrow\"></div>\n<div data-mps=\"tooltip\" [mpProps]=\"p_view.inner\">\n <ng-content />\n</div>\n","// GENERATED from the tooltip manifest (tooltip) by @mintplayer/nx-component-compiler. Do not edit.\nimport { Directive, input } from '@angular/core';\nimport { anchorElement, useCore, useOverlayComponent, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tooltipCore, type TooltipInputs, tooltipScopedStyles } from '@mintplayer/ui-core/tooltip';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapTooltip } from '@mintplayer/ui-core/bootstrap/tooltip';\nimport { BsTooltipPanelComponent } from './tooltip-panel.component.generated';\n\n/**\n * A tooltip on the element: shown on hover and on focus, dismissed by Escape, hoverable (WCAG 1.4.13).\n * While it shows, the element's `aria-describedby` names it.\n */\n@Directive({ selector: '[bsTooltip]' })\nexport class BsTooltipDirective {\n /** The side of the element it shows on; it flips when it does not fit. */\n readonly position = input<TooltipInputs['position'], TooltipInputs['position'] | ''>('top', { transform: (v: TooltipInputs['position'] | '') => (v === '' ? 'top' : v), alias: 'bsTooltip' });\n\n /** The element the template sits in: the trigger. */\n readonly #anchor = anchorElement();\n protected readonly core = useCore(tooltipCore, { inputs: () => ({ position: this.position() }), idPrefix: 'bs-tooltip', element: this.#anchor, hostBag: (props) => props.anchor });\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapTooltip.key, bootstrapTooltip.css, { order: bootstrapTooltip.order }); useScopedStyles('tooltip', tooltipScopedStyles);\n useOverlayComponent(BsTooltipPanelComponent, () => this.core.props().overlay, this.#anchor);\n }\n}\n","// GENERATED from the tooltip manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTooltipPanelComponent } from './tooltip-panel.component.generated';\nexport { BsTooltipDirective } from './tooltip.directive.generated';\n","// Generated from @mintplayer/ui-core/tooltip (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AAOA;MAOa,uBAAuB,CAAA;AASzB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAGxD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAkC,EAAE;sFAAC;QACtD,IAAA,CAAA,IAAI,GAAG,KAAK,CAA6B,KAAK;iFAAC;QAC/C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAuC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE3F,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;;AAEvN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BAAmB,CAAC,uBAAuB,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;IAC7F;8GAXW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,SAAS;mBAAC,EAAE,QAAQ,EAAE,aAAa,EAAE;;;ACZtC;;ACAA;;ACAA;;AAEG;;;;"}
@@ -29,7 +29,7 @@ class BsTreeSelectValueAccessor {
29
29
  ngOnInit() {
30
30
  // The component is created after its host directives, so it is looked up here.
31
31
  const component = this.injector.get(BsTreeSelectComponent);
32
- const sub = component.valuechange.subscribe((value) => {
32
+ const sub = component.value.subscribe((value) => {
33
33
  if (!this.bound() || value === this.viewValue())
34
34
  return;
35
35
  this.viewValue.set(value);
@@ -205,21 +205,19 @@ class BsTreeSelectComponent {
205
205
  this.panelScrollHeight = input('300px', /* @ts-ignore */
206
206
  ...(ngDevMode ? [{ debugName: "panelScrollHeight" }] : /* istanbul ignore next */ []));
207
207
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
208
- this.searchDebounceMs = input(200, { ...(ngDevMode ? { debugName: "searchDebounceMs" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
208
+ this.searchDebounceMs = input(200, { ...(ngDevMode ? { debugName: "searchDebounceMs" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? 200 : numberAttribute(v)) });
209
209
  this.inputLabel = input(null, /* @ts-ignore */
210
210
  ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
211
211
  this.labels = input(null, /* @ts-ignore */
212
212
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
213
- /** The value, after the user changed it. */
214
- this.valuechange = output();
215
213
  /** The node added or removed (neither for a clear), with the value. */
216
- this.selectionchanged = output();
214
+ this.selectionChanged = output();
217
215
  /** The panel opened (true) or closed (false). */
218
- this.openchange = output();
216
+ this.openChange = output();
219
217
  /** A search started (an empty query restores the browse tree). */
220
- this.searchstart = output();
218
+ this.searchStart = output();
221
219
  /** A provider call rejected. */
222
- this.loaderror = output();
220
+ this.loadError = output();
223
221
  this.itemSlot = contentChild(BsTreeSelectItemDirective, /* @ts-ignore */
224
222
  ...(ngDevMode ? [{ debugName: "itemSlot" }] : /* istanbul ignore next */ []));
225
223
  this.suggestionSlot = contentChild(BsTreeSelectSuggestionDirective, /* @ts-ignore */
@@ -237,7 +235,7 @@ class BsTreeSelectComponent {
237
235
  /** The template's named slots. */
238
236
  this.slots = computed(() => ({ item: this.itemSlot()?.templateRef, suggestion: this.suggestionSlot()?.templateRef, button: this.buttonSlot()?.templateRef, header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef, noResults: this.noResultsSlot()?.templateRef, enterSearchTerm: this.enterSearchTermSlot()?.templateRef }), /* @ts-ignore */
239
237
  ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
240
- this.#core = useCore(treeSelectCore, { inputs: extendInputs(() => ({ provider: this.provider(), value: this.value(), mode: this.mode(), variant: this.variant(), cascadeSelect: this.cascadeSelect(), placeholder: this.placeholder(), showClear: this.showClear(), panelScrollHeight: this.panelScrollHeight(), disabled: this.disabled(), searchDebounceMs: this.searchDebounceMs(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-tree-select', outputs: { valueChange: this.valuechange, selectionChanged: this.selectionchanged, openChange: this.openchange, searchStart: this.searchstart, loadError: this.loaderror }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tree-select' }), models: { value: this.value } });
238
+ this.#core = useCore(treeSelectCore, { inputs: extendInputs(() => ({ provider: this.provider(), value: this.value(), mode: this.mode(), variant: this.variant(), cascadeSelect: this.cascadeSelect(), placeholder: this.placeholder(), showClear: this.showClear(), panelScrollHeight: this.panelScrollHeight(), disabled: this.disabled(), searchDebounceMs: this.searchDebounceMs(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-tree-select', outputs: { selectionChanged: this.selectionChanged, openChange: this.openChange, searchStart: this.searchStart, loadError: this.loadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tree-select' }), models: { value: this.value } });
241
239
  /** The template's props. */
242
240
  this.props = this.#core.props;
243
241
  useScopedStyles('tree-select', treeSelectScopedStyles);
@@ -251,12 +249,12 @@ class BsTreeSelectComponent {
251
249
  return this.#core.call('close', args);
252
250
  }
253
251
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
254
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTreeSelectComponent, isStandalone: true, selector: "bs-tree-select", inputs: { provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, cascadeSelect: { classPropertyName: "cascadeSelect", publicName: "cascadeSelect", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, panelScrollHeight: { classPropertyName: "panelScrollHeight", publicName: "panelScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, searchDebounceMs: { classPropertyName: "searchDebounceMs", publicName: "searchDebounceMs", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valuechange: "valuechange", selectionchanged: "selectionchanged", openchange: "openchange", searchstart: "searchstart", loaderror: "loaderror" }, queries: [{ propertyName: "itemSlot", first: true, predicate: BsTreeSelectItemDirective, descendants: true, isSignal: true }, { propertyName: "suggestionSlot", first: true, predicate: BsTreeSelectSuggestionDirective, descendants: true, isSignal: true }, { propertyName: "buttonSlot", first: true, predicate: BsTreeSelectButtonDirective, descendants: true, isSignal: true }, { propertyName: "headerSlot", first: true, predicate: BsTreeSelectHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: BsTreeSelectFooterDirective, descendants: true, isSignal: true }, { propertyName: "noResultsSlot", first: true, predicate: BsTreeSelectNoResultsDirective, descendants: true, isSignal: true }, { propertyName: "enterSearchTermSlot", first: true, predicate: BsTreeSelectEnterSearchTermDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsTreeSelectValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: { value: p_view.value }, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, query: p_view.query }, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTreeSelectComponent, isStandalone: true, selector: "bs-tree-select", inputs: { provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, cascadeSelect: { classPropertyName: "cascadeSelect", publicName: "cascadeSelect", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, panelScrollHeight: { classPropertyName: "panelScrollHeight", publicName: "panelScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, searchDebounceMs: { classPropertyName: "searchDebounceMs", publicName: "searchDebounceMs", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", selectionChanged: "selectionChanged", openChange: "openChange", searchStart: "searchStart", loadError: "loadError" }, queries: [{ propertyName: "itemSlot", first: true, predicate: BsTreeSelectItemDirective, descendants: true, isSignal: true }, { propertyName: "suggestionSlot", first: true, predicate: BsTreeSelectSuggestionDirective, descendants: true, isSignal: true }, { propertyName: "buttonSlot", first: true, predicate: BsTreeSelectButtonDirective, descendants: true, isSignal: true }, { propertyName: "headerSlot", first: true, predicate: BsTreeSelectHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: BsTreeSelectFooterDirective, descendants: true, isSignal: true }, { propertyName: "noResultsSlot", first: true, predicate: BsTreeSelectNoResultsDirective, descendants: true, isSignal: true }, { propertyName: "enterSearchTermSlot", first: true, predicate: BsTreeSelectEnterSearchTermDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsTreeSelectValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: p_view.value, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
255
253
  }
256
254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectComponent, decorators: [{
257
255
  type: Component,
258
- args: [{ selector: 'bs-tree-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: { value: p_view.value }, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, query: p_view.query }, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n" }]
259
- }], ctorParameters: () => [], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], cascadeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "cascadeSelect", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], panelScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelScrollHeight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], searchDebounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDebounceMs", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], openchange: [{ type: i0.Output, args: ["openchange"] }], searchstart: [{ type: i0.Output, args: ["searchstart"] }], loaderror: [{ type: i0.Output, args: ["loaderror"] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectItemDirective), { isSignal: true }] }], suggestionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectSuggestionDirective), { isSignal: true }] }], buttonSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectButtonDirective), { isSignal: true }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectFooterDirective), { isSignal: true }] }], noResultsSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectNoResultsDirective), { isSignal: true }] }], enterSearchTermSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectEnterSearchTermDirective), { isSignal: true }] }] } });
256
+ args: [{ selector: 'bs-tree-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: p_view.value, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: chip.node, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: p_view.single, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n" }]
257
+ }], ctorParameters: () => [], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], cascadeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "cascadeSelect", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], panelScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelScrollHeight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], searchDebounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDebounceMs", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], openChange: [{ type: i0.Output, args: ["openChange"] }], searchStart: [{ type: i0.Output, args: ["searchStart"] }], loadError: [{ type: i0.Output, args: ["loadError"] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectItemDirective), { isSignal: true }] }], suggestionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectSuggestionDirective), { isSignal: true }] }], buttonSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectButtonDirective), { isSignal: true }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectFooterDirective), { isSignal: true }] }], noResultsSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectNoResultsDirective), { isSignal: true }] }], enterSearchTermSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectEnterSearchTermDirective), { isSignal: true }] }] } });
260
258
 
261
259
  // GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.
262
260