@mintplayer/ng-bootstrap 22.32.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +4 -8
  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 +6 -8
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  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 +5 -5
  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 +5 -5
  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 +12 -24
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
  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 +199 -16
  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 +9 -11
  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 +7 -15
  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 +47 -63
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
  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 +8 -8
  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 +5 -7
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  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 +9 -13
  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 +9 -11
  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 +95 -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 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-tree-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tree-select/src/value-accessor/tree-select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/tree-select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/mintplayer-ng-bootstrap-tree-select.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-tree-select` (a host directive of the\n * generated component, see `tree-select.angular.ts`). A bound form control\n * drives the value through `viewValue`; a user's change reaches the form\n * through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTreeSelectValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the value: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<TreeSelectValue>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: TreeSelectValue) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsTreeSelectComponent);\n const sub = component.valuechange.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: TreeSelectValue) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: TreeSelectValue | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TreeSelectInputs } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectValueAccessor } from './value-accessor/tree-select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-tree-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsTreeSelectValueAccessor];\n\nexport function extendInputs(inputs: () => TreeSelectInputs): () => TreeSelectInputs {\n const accessor = inject(BsTreeSelectValueAccessor, { self: true });\n return computed<TreeSelectInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the tree-select manifest (tree-select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeSelectChangeEventDetail, treeSelectCore, type TreeSelectInputs, type TreeSelectLoadErrorEventDetail, type TreeSelectMethods, treeSelectScopedStyles, type TreeSelectSearchEventDetail, type TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../tree-select.angular';\n\n/** The `item` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectItem>` or `*bsTreeSelectItem`. */\n@Directive({ selector: '[bsTreeSelectItem]' })\nexport class BsTreeSelectItemDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectItemDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string } } {\n return true;\n }\n}\n\n/** The `suggestion` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectSuggestion>` or `*bsTreeSelectSuggestion`. */\n@Directive({ selector: '[bsTreeSelectSuggestion]' })\nexport class BsTreeSelectSuggestionDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectSuggestionDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string } } {\n return true;\n }\n}\n\n/** The `button` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectButton>` or `*bsTreeSelectButton`. */\n@Directive({ selector: '[bsTreeSelectButton]' })\nexport class BsTreeSelectButtonDirective {\n readonly templateRef = inject<TemplateRef<{ value: TreeSelectValue } & { $implicit: { value: TreeSelectValue } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectButtonDirective, ctx: unknown): ctx is { value: TreeSelectValue } & { $implicit: { value: TreeSelectValue } } {\n return true;\n }\n}\n\n/** The `header` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectHeader>` or `*bsTreeSelectHeader`. */\n@Directive({ selector: '[bsTreeSelectHeader]' })\nexport class BsTreeSelectHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `footer` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectFooter>` or `*bsTreeSelectFooter`. */\n@Directive({ selector: '[bsTreeSelectFooter]' })\nexport class BsTreeSelectFooterDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `noResults` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectNoResults>` or `*bsTreeSelectNoResults`. */\n@Directive({ selector: '[bsTreeSelectNoResults]' })\nexport class BsTreeSelectNoResultsDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `enterSearchTerm` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectEnterSearchTerm>` or `*bsTreeSelectEnterSearchTerm`. */\n@Directive({ selector: '[bsTreeSelectEnterSearchTerm]' })\nexport class BsTreeSelectEnterSearchTermDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * A hierarchical, async, searchable select (#437): a combobox, or a button, opening a tree in\n * a native popover.\n *\n * Data comes from a `provider` (roots, search and lazy children, each paged); `value` holds\n * whole nodes, one in `single` mode and an array in `multiple` / `checkbox`. `cascadeSelect`\n * checks a branch with its loaded children. Slots: `item` (a chosen node), `suggestion` (a\n * tree row's body), `button` (the button variant's body), `header`, `footer`, `noResults`,\n * `enterSearchTerm`. An `aria-label` names the combobox.\n */\n@Component({\n selector: 'bs-tree-select',\n templateUrl: './tree-select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTreeSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly provider = input<TreeSelectInputs['provider']>(null);\n readonly value = model<TreeSelectInputs['value']>(null);\n readonly mode = input<TreeSelectInputs['mode']>('single');\n readonly variant = input<TreeSelectInputs['variant']>('textbox');\n readonly cascadeSelect = input<TreeSelectInputs['cascadeSelect'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TreeSelectInputs['placeholder']>('');\n readonly showClear = input<TreeSelectInputs['showClear'], unknown>(false, { transform: booleanAttribute });\n readonly panelScrollHeight = input<TreeSelectInputs['panelScrollHeight']>('300px');\n readonly disabled = input<TreeSelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly searchDebounceMs = input<TreeSelectInputs['searchDebounceMs'], unknown>(200, { transform: (v: unknown) => numberAttribute(v) as TreeSelectInputs['searchDebounceMs'] });\n readonly inputLabel = input<TreeSelectInputs['inputLabel']>(null);\n readonly labels = input<TreeSelectInputs['labels']>(null);\n /** The value, after the user changed it. */\n readonly valuechange = output<TreeSelectValue>();\n /** The node added or removed (neither for a clear), with the value. */\n readonly selectionchanged = output<TreeSelectChangeEventDetail>();\n /** The panel opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n /** A search started (an empty query restores the browse tree). */\n readonly searchstart = output<TreeSelectSearchEventDetail>();\n /** A provider call rejected. */\n readonly loaderror = output<TreeSelectLoadErrorEventDetail>();\n\n private readonly itemSlot = contentChild(BsTreeSelectItemDirective);\n private readonly suggestionSlot = contentChild(BsTreeSelectSuggestionDirective);\n private readonly buttonSlot = contentChild(BsTreeSelectButtonDirective);\n private readonly headerSlot = contentChild(BsTreeSelectHeaderDirective);\n private readonly footerSlot = contentChild(BsTreeSelectFooterDirective);\n private readonly noResultsSlot = contentChild(BsTreeSelectNoResultsDirective);\n private readonly enterSearchTermSlot = contentChild(BsTreeSelectEnterSearchTermDirective);\n /** The template's named slots. */\n protected readonly 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 }));\n readonly #core = useCore(treeSelectCore, { inputs: ext_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 } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('tree-select', treeSelectScopedStyles);\n }\n\n /** Open the panel (ignored when disabled or without a provider). */\n open(...args: Parameters<TreeSelectMethods['open']>): ReturnType<TreeSelectMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TreeSelectMethods['open']>;\n }\n\n /** Close the panel. */\n close(...args: Parameters<TreeSelectMethods['close']>): ReturnType<TreeSelectMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TreeSelectMethods['close']>;\n }\n}\n","<!-- 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 ×\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 ×\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","// GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeSelectComponent, BsTreeSelectItemDirective, BsTreeSelectSuggestionDirective, BsTreeSelectButtonDirective, BsTreeSelectHeaderDirective, BsTreeSelectFooterDirective, BsTreeSelectNoResultsDirective, BsTreeSelectEnterSearchTermDirective } from './tree-select.component.generated';\n","// The tree-select is generated from @mintplayer/ui-core/tree-select (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/tree-select-value-accessor';\nexport { InMemoryTreeSelectProvider } from '@mintplayer/ui-core/tree-select';\nexport type {\n InMemoryProviderOptions,\n NodePage,\n NodeRequest,\n TreeNode,\n TreeSelectChangeEventDetail,\n TreeSelectLabels,\n TreeSelectLoadErrorEventDetail,\n TreeSelectMode,\n TreeSelectProvider,\n TreeSelectSearchEventDetail,\n TreeSelectValue,\n TreeSelectVariant,\n} from '@mintplayer/ui-core/tree-select';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTreeSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;AAKG;MAOU,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QA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AAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACnC,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC3B,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC3B,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,8BAA8B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,oCAAoC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7G1F;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-tree-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tree-select/src/value-accessor/tree-select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/tree-select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/tree-select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/tree-select/mintplayer-ng-bootstrap-tree-select.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-tree-select` (a host directive of the\n * generated component, see `tree-select.angular.ts`). A bound form control\n * drives the value through `viewValue`; a user's change reaches the form\n * through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTreeSelectValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the value: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<TreeSelectValue>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: TreeSelectValue) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsTreeSelectComponent);\n const sub = component.value.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: TreeSelectValue) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: TreeSelectValue | undefined): void {\n this.viewValue.set(value ?? null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { TreeSelectInputs } from '@mintplayer/ui-core/tree-select';\nimport { BsTreeSelectValueAccessor } from './value-accessor/tree-select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-tree-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsTreeSelectValueAccessor];\n\nexport function extendInputs(inputs: () => TreeSelectInputs): () => TreeSelectInputs {\n const accessor = inject(BsTreeSelectValueAccessor, { self: true });\n return computed<TreeSelectInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the tree-select manifest (tree-select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeSelectChangeEventDetail, treeSelectCore, type TreeSelectInputs, type TreeSelectLoadErrorEventDetail, type TreeSelectMethods, treeSelectScopedStyles, type TreeSelectSearchEventDetail, type TreeSelectValue } from '@mintplayer/ui-core/tree-select';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../tree-select.angular';\n\n/** The `item` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectItem>` or `*bsTreeSelectItem`. */\n@Directive({ selector: '[bsTreeSelectItem]' })\nexport class BsTreeSelectItemDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectItemDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `suggestion` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectSuggestion>` or `*bsTreeSelectSuggestion`. */\n@Directive({ selector: '[bsTreeSelectSuggestion]' })\nexport class BsTreeSelectSuggestionDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectSuggestionDirective, ctx: unknown): ctx is { node: TreeNode; query: string } & { $implicit: { node: TreeNode; query: string }['node'] } {\n return true;\n }\n}\n\n/** The `button` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectButton>` or `*bsTreeSelectButton`. */\n@Directive({ selector: '[bsTreeSelectButton]' })\nexport class BsTreeSelectButtonDirective {\n readonly templateRef = inject<TemplateRef<{ value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeSelectButtonDirective, ctx: unknown): ctx is { value: TreeSelectValue } & { $implicit: { value: TreeSelectValue }['value'] } {\n return true;\n }\n}\n\n/** The `header` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectHeader>` or `*bsTreeSelectHeader`. */\n@Directive({ selector: '[bsTreeSelectHeader]' })\nexport class BsTreeSelectHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `footer` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectFooter>` or `*bsTreeSelectFooter`. */\n@Directive({ selector: '[bsTreeSelectFooter]' })\nexport class BsTreeSelectFooterDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `noResults` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectNoResults>` or `*bsTreeSelectNoResults`. */\n@Directive({ selector: '[bsTreeSelectNoResults]' })\nexport class BsTreeSelectNoResultsDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `enterSearchTerm` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectEnterSearchTerm>` or `*bsTreeSelectEnterSearchTerm`. */\n@Directive({ selector: '[bsTreeSelectEnterSearchTerm]' })\nexport class BsTreeSelectEnterSearchTermDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * A hierarchical, async, searchable select (#437): a combobox, or a button, opening a tree in\n * a native popover.\n *\n * Data comes from a `provider` (roots, search and lazy children, each paged); `value` holds\n * whole nodes, one in `single` mode and an array in `multiple` / `checkbox`. `cascadeSelect`\n * checks a branch with its loaded children. Slots: `item` (a chosen node), `suggestion` (a\n * tree row's body), `button` (the button variant's body), `header`, `footer`, `noResults`,\n * `enterSearchTerm`. An `aria-label` names the combobox.\n */\n@Component({\n selector: 'bs-tree-select',\n templateUrl: './tree-select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTreeSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly provider = input<TreeSelectInputs['provider']>(null);\n readonly value = model<TreeSelectInputs['value']>(null);\n readonly mode = input<TreeSelectInputs['mode']>('single');\n readonly variant = input<TreeSelectInputs['variant']>('textbox');\n readonly cascadeSelect = input<TreeSelectInputs['cascadeSelect'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TreeSelectInputs['placeholder']>('');\n readonly showClear = input<TreeSelectInputs['showClear'], unknown>(false, { transform: booleanAttribute });\n readonly panelScrollHeight = input<TreeSelectInputs['panelScrollHeight']>('300px');\n readonly disabled = input<TreeSelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly searchDebounceMs = input<TreeSelectInputs['searchDebounceMs'], unknown>(200, { transform: (v: unknown) => numberAttribute(v) as TreeSelectInputs['searchDebounceMs'] });\n readonly inputLabel = input<TreeSelectInputs['inputLabel']>(null);\n readonly labels = input<TreeSelectInputs['labels']>(null);\n /** The node added or removed (neither for a clear), with the value. */\n readonly selectionChanged = output<TreeSelectChangeEventDetail>();\n /** The panel opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n /** A search started (an empty query restores the browse tree). */\n readonly searchStart = output<TreeSelectSearchEventDetail>();\n /** A provider call rejected. */\n readonly loadError = output<TreeSelectLoadErrorEventDetail>();\n\n private readonly itemSlot = contentChild(BsTreeSelectItemDirective);\n private readonly suggestionSlot = contentChild(BsTreeSelectSuggestionDirective);\n private readonly buttonSlot = contentChild(BsTreeSelectButtonDirective);\n private readonly headerSlot = contentChild(BsTreeSelectHeaderDirective);\n private readonly footerSlot = contentChild(BsTreeSelectFooterDirective);\n private readonly noResultsSlot = contentChild(BsTreeSelectNoResultsDirective);\n private readonly enterSearchTermSlot = contentChild(BsTreeSelectEnterSearchTermDirective);\n /** The template's named slots. */\n protected readonly 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 }));\n readonly #core = useCore(treeSelectCore, { inputs: ext_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 } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('tree-select', treeSelectScopedStyles);\n }\n\n /** Open the panel (ignored when disabled or without a provider). */\n open(...args: Parameters<TreeSelectMethods['open']>): ReturnType<TreeSelectMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TreeSelectMethods['open']>;\n }\n\n /** Close the panel. */\n close(...args: Parameters<TreeSelectMethods['close']>): ReturnType<TreeSelectMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TreeSelectMethods['close']>;\n }\n}\n","<!-- 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 ×\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 ×\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","// GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeSelectComponent, BsTreeSelectItemDirective, BsTreeSelectSuggestionDirective, BsTreeSelectButtonDirective, BsTreeSelectHeaderDirective, BsTreeSelectFooterDirective, BsTreeSelectNoResultsDirective, BsTreeSelectEnterSearchTermDirective } from './tree-select.component.generated';\n","// The tree-select is generated from @mintplayer/ui-core/tree-select (PRD #437 D10).\nexport * from './generated';\nexport * from './value-accessor/tree-select-value-accessor';\nexport { InMemoryTreeSelectProvider } from '@mintplayer/ui-core/tree-select';\nexport type {\n InMemoryProviderOptions,\n NodePage,\n NodeRequest,\n TreeNode,\n TreeSelectChangeEventDetail,\n TreeSelectLabels,\n TreeSelectLoadErrorEventDetail,\n TreeSelectMode,\n TreeSelectProvider,\n TreeSelectSearchEventDetail,\n TreeSelectValue,\n TreeSelectVariant,\n} from '@mintplayer/ui-core/tree-select';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTreeSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;AAKG;MAOU,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;QACrB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAkB,IAAI;sFAAC;QACzC,IAAA,C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,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC3B,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC3B,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,8BAA8B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACxB,oCAAoC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3G1F;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, TemplateRef, Directive, ElementRef, input, model, booleanAttribute, output, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
- import { useCore, useScopedStyles, MpPropsDirective, MpTrustedHtmlPipe } from '@mintplayer/ng-bootstrap/machine';
4
+ import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective, MpTrustedHtmlPipe } from '@mintplayer/ng-bootstrap/machine';
5
5
  import { treeviewCore, treeviewScopedStyles } from '@mintplayer/ui-core/treeview';
6
6
 
7
7
  // GENERATED from the treeview manifest (treeview) by @mintplayer/nx-component-compiler. Do not edit.
@@ -32,6 +32,8 @@ class BsTreeviewComponent {
32
32
  constructor() {
33
33
  /** The host element. */
34
34
  this.elementRef = inject(ElementRef);
35
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
36
+ this.hostAttrs = useHostAttrs();
35
37
  this.items = input([], /* @ts-ignore */
36
38
  ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
37
39
  this.expandedIds = model([], /* @ts-ignore */
@@ -50,34 +52,30 @@ class BsTreeviewComponent {
50
52
  this.labels = input(/* @ts-ignore */
51
53
  ...(ngDevMode ? [undefined, { debugName: "labels" }] : /* istanbul ignore next */ []));
52
54
  /** A node was selected or deselected. */
53
- this.nodeselect = output();
55
+ this.nodeSelect = output();
54
56
  /** A node expanded (after its lazy load, if any). */
55
- this.nodeexpand = output();
57
+ this.nodeExpand = output();
56
58
  /** A node collapsed. */
57
- this.nodecollapse = output();
59
+ this.nodeCollapse = output();
58
60
  /** A lazy node's loader rejected. */
59
- this.nodeloaderror = output();
60
- /** The ids of the selected nodes. */
61
- this.selectedidschange = output();
62
- /** The ids of the expanded nodes. */
63
- this.expandedidschange = output();
61
+ this.nodeLoadError = output();
64
62
  this.nodeSlot = contentChild(BsTreeviewNodeDirective, /* @ts-ignore */
65
63
  ...(ngDevMode ? [{ debugName: "nodeSlot" }] : /* istanbul ignore next */ []));
66
64
  /** The template's named slots. */
67
65
  this.slots = computed(() => ({ node: this.nodeSlot()?.templateRef }), /* @ts-ignore */
68
66
  ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
69
- this.#core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeselect, nodeExpand: this.nodeexpand, nodeCollapse: this.nodecollapse, nodeLoadError: this.nodeloaderror, selectedIdsChange: this.selectedidschange, expandedIdsChange: this.expandedidschange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: { expandedIds: this.expandedIds, selectedIds: this.selectedIds } });
67
+ this.#core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeSelect, nodeExpand: this.nodeExpand, nodeCollapse: this.nodeCollapse, nodeLoadError: this.nodeLoadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: { expandedIds: this.expandedIds, selectedIds: this.selectedIds } });
70
68
  /** The template's props. */
71
69
  this.props = this.#core.props;
72
70
  useScopedStyles('treeview', treeviewScopedStyles);
73
71
  }
74
72
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTreeviewComponent, isStandalone: true, selector: "bs-treeview", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, hideBorders: { classPropertyName: "hideBorders", publicName: "hideBorders", isSignal: true, isRequired: false, transformFunction: null }, iconResolver: { classPropertyName: "iconResolver", publicName: "iconResolver", isSignal: true, isRequired: false, transformFunction: null }, loadChildren: { classPropertyName: "loadChildren", publicName: "loadChildren", 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: { expandedIds: "expandedIdsChange", selectedIds: "selectedIdsChange", nodeselect: "nodeselect", nodeexpand: "nodeexpand", nodecollapse: "nodecollapse", nodeloaderror: "nodeloaderror", selectedidschange: "selectedidschange", expandedidschange: "expandedidschange" }, queries: [{ propertyName: "nodeSlot", first: true, predicate: BsTreeviewNodeDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, ctx: row.ctx }, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: MpTrustedHtmlPipe, name: "mpTrustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTreeviewComponent, isStandalone: true, selector: "bs-treeview", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, expandedIds: { classPropertyName: "expandedIds", publicName: "expandedIds", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, hideBorders: { classPropertyName: "hideBorders", publicName: "hideBorders", isSignal: true, isRequired: false, transformFunction: null }, iconResolver: { classPropertyName: "iconResolver", publicName: "iconResolver", isSignal: true, isRequired: false, transformFunction: null }, loadChildren: { classPropertyName: "loadChildren", publicName: "loadChildren", 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: { expandedIds: "expandedIdsChange", selectedIds: "selectedIdsChange", nodeSelect: "nodeSelect", nodeExpand: "nodeExpand", nodeCollapse: "nodeCollapse", nodeLoadError: "nodeLoadError" }, queries: [{ propertyName: "nodeSlot", first: true, predicate: BsTreeviewNodeDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\" [mpHostAttrs]=\"hostAttrs\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: MpTrustedHtmlPipe, name: "mpTrustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
74
  }
77
75
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeviewComponent, decorators: [{
78
76
  type: Component,
79
- args: [{ selector: 'bs-treeview', imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, ctx: row.ctx }, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n" }]
80
- }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], hideBorders: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideBorders", required: false }] }], iconResolver: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconResolver", required: false }] }], loadChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadChildren", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], nodeselect: [{ type: i0.Output, args: ["nodeselect"] }], nodeexpand: [{ type: i0.Output, args: ["nodeexpand"] }], nodecollapse: [{ type: i0.Output, args: ["nodecollapse"] }], nodeloaderror: [{ type: i0.Output, args: ["nodeloaderror"] }], selectedidschange: [{ type: i0.Output, args: ["selectedidschange"] }], expandedidschange: [{ type: i0.Output, args: ["expandedidschange"] }], nodeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeviewNodeDirective), { isSignal: true }] }] } });
77
+ args: [{ selector: 'bs-treeview', imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\" [mpHostAttrs]=\"hostAttrs\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n" }]
78
+ }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], expandedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandedIds", required: false }] }, { type: i0.Output, args: ["expandedIdsChange"] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }, { type: i0.Output, args: ["selectedIdsChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], hideBorders: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideBorders", required: false }] }], iconResolver: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconResolver", required: false }] }], loadChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadChildren", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], nodeSelect: [{ type: i0.Output, args: ["nodeSelect"] }], nodeExpand: [{ type: i0.Output, args: ["nodeExpand"] }], nodeCollapse: [{ type: i0.Output, args: ["nodeCollapse"] }], nodeLoadError: [{ type: i0.Output, args: ["nodeLoadError"] }], nodeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeviewNodeDirective), { isSignal: true }] }] } });
81
79
 
82
80
  // GENERATED from the treeview manifest by @mintplayer/nx-component-compiler. Do not edit.
83
81
 
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-treeview.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/mintplayer-ng-bootstrap-treeview.ts"],"sourcesContent":["// GENERATED from the treeview manifest (treeview) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeNodeCollapseEventDetail, type TreeNodeExpandEventDetail, type TreeNodeLoadErrorEventDetail, type TreeNodeRenderContext, type TreeNodeSelectEventDetail, treeviewCore, type TreeviewIds, type TreeviewInputs, treeviewScopedStyles } from '@mintplayer/ui-core/treeview';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\n\n/** The `node` slot of `<bs-treeview>`: `<ng-template bsTreeviewNode>` or `*bsTreeviewNode`. */\n@Directive({ selector: '[bsTreeviewNode]' })\nexport class BsTreeviewNodeDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeviewNodeDirective, ctx: unknown): ctx is { node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext } } {\n return true;\n }\n}\n\n/**\n * A data-driven tree (WAI-ARIA tree pattern, #437).\n *\n * Give it `items`; `expandedIds` and `selectedIds` are two-way. The `node` slot renders a\n * node's body (the chevron stays). Lazy nodes (`lazy: true`) load through `loadChildren` on\n * first expansion. The server render shows every expanded level. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-treeview',\n templateUrl: './treeview.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTreeviewComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly items = input<TreeviewInputs['items']>([]);\n readonly expandedIds = model<TreeviewInputs['expandedIds']>([]);\n readonly selectedIds = model<TreeviewInputs['selectedIds']>([]);\n readonly selectionMode = input<TreeviewInputs['selectionMode']>('single');\n readonly hideBorders = input<TreeviewInputs['hideBorders'], unknown>(false, { transform: booleanAttribute });\n readonly iconResolver = input<TreeviewInputs['iconResolver']>();\n readonly loadChildren = input<TreeviewInputs['loadChildren']>();\n readonly inputLabel = input<TreeviewInputs['inputLabel']>(null);\n readonly labels = input<TreeviewInputs['labels']>();\n /** A node was selected or deselected. */\n readonly nodeselect = output<TreeNodeSelectEventDetail>();\n /** A node expanded (after its lazy load, if any). */\n readonly nodeexpand = output<TreeNodeExpandEventDetail>();\n /** A node collapsed. */\n readonly nodecollapse = output<TreeNodeCollapseEventDetail>();\n /** A lazy node's loader rejected. */\n readonly nodeloaderror = output<TreeNodeLoadErrorEventDetail>();\n /** The ids of the selected nodes. */\n readonly selectedidschange = output<TreeviewIds>();\n /** The ids of the expanded nodes. */\n readonly expandedidschange = output<TreeviewIds>();\n\n private readonly nodeSlot = contentChild(BsTreeviewNodeDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ node: this.nodeSlot()?.templateRef }));\n readonly #core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeselect, nodeExpand: this.nodeexpand, nodeCollapse: this.nodecollapse, nodeLoadError: this.nodeloaderror, selectedIdsChange: this.selectedidschange, expandedIdsChange: this.expandedidschange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: { expandedIds: this.expandedIds, selectedIds: this.selectedIds } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('treeview', treeviewScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, ctx: row.ctx }, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n","// GENERATED from the treeview manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeviewComponent, BsTreeviewNodeDirective } from './treeview.component.generated';\n","// The treeview is generated from @mintplayer/ui-core/treeview (PRD #437 D10).\nexport * from './generated';\nexport type {\n IconResolver,\n TreeChildrenLoader,\n TreeNode,\n TreeNodeCollapseEventDetail,\n TreeNodeExpandEventDetail,\n TreeNodeLoadErrorEventDetail,\n TreeNodeRenderContext,\n TreeNodeSelectEventDetail,\n TreeviewIds,\n TreeviewLabels,\n TreeviewSelectionMode,\n} from '@mintplayer/ui-core/treeview';\n","/**\n * Generated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,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAnC,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGlC,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,SAAS;+BACE,aAAa,EAAA,OAAA,EAEd,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC/C,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,q3CAAA,EAAA;69CA4BN,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvDlE;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-treeview.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/treeview.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/treeview/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/treeview/mintplayer-ng-bootstrap-treeview.ts"],"sourcesContent":["// GENERATED from the treeview manifest (treeview) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type TreeNodeCollapseEventDetail, type TreeNodeExpandEventDetail, type TreeNodeLoadErrorEventDetail, type TreeNodeRenderContext, type TreeNodeSelectEventDetail, treeviewCore, type TreeviewInputs, treeviewScopedStyles } from '@mintplayer/ui-core/treeview';\nimport { type TreeNode } from '@mintplayer/ui-core/tree';\n\n/** The `node` slot of `<bs-treeview>`: `<ng-template bsTreeviewNode>` or `*bsTreeviewNode`. */\n@Directive({ selector: '[bsTreeviewNode]' })\nexport class BsTreeviewNodeDirective {\n readonly templateRef = inject<TemplateRef<{ node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsTreeviewNodeDirective, ctx: unknown): ctx is { node: TreeNode; ctx: TreeNodeRenderContext } & { $implicit: { node: TreeNode; ctx: TreeNodeRenderContext }['node'] } {\n return true;\n }\n}\n\n/**\n * A data-driven tree (WAI-ARIA tree pattern, #437).\n *\n * Give it `items`; `expandedIds` and `selectedIds` are two-way. The `node` slot renders a\n * node's body (the chevron stays). Lazy nodes (`lazy: true`) load through `loadChildren` on\n * first expansion. The server render shows every expanded level. An `aria-label` names it.\n */\n@Component({\n selector: 'bs-treeview',\n templateUrl: './treeview.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTreeviewComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly items = input<TreeviewInputs['items']>([]);\n readonly expandedIds = model<TreeviewInputs['expandedIds']>([]);\n readonly selectedIds = model<TreeviewInputs['selectedIds']>([]);\n readonly selectionMode = input<TreeviewInputs['selectionMode']>('single');\n readonly hideBorders = input<TreeviewInputs['hideBorders'], unknown>(false, { transform: booleanAttribute });\n readonly iconResolver = input<TreeviewInputs['iconResolver']>();\n readonly loadChildren = input<TreeviewInputs['loadChildren']>();\n readonly inputLabel = input<TreeviewInputs['inputLabel']>(null);\n readonly labels = input<TreeviewInputs['labels']>();\n /** A node was selected or deselected. */\n readonly nodeSelect = output<TreeNodeSelectEventDetail>();\n /** A node expanded (after its lazy load, if any). */\n readonly nodeExpand = output<TreeNodeExpandEventDetail>();\n /** A node collapsed. */\n readonly nodeCollapse = output<TreeNodeCollapseEventDetail>();\n /** A lazy node's loader rejected. */\n readonly nodeLoadError = output<TreeNodeLoadErrorEventDetail>();\n\n private readonly nodeSlot = contentChild(BsTreeviewNodeDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ node: this.nodeSlot()?.templateRef }));\n readonly #core = useCore(treeviewCore, { inputs: () => ({ items: this.items(), expandedIds: this.expandedIds(), selectedIds: this.selectedIds(), selectionMode: this.selectionMode(), hideBorders: this.hideBorders(), iconResolver: this.iconResolver(), loadChildren: this.loadChildren(), inputLabel: this.inputLabel(), labels: this.labels() }), idPrefix: 'bs-treeview', outputs: { nodeSelect: this.nodeSelect, nodeExpand: this.nodeExpand, nodeCollapse: this.nodeCollapse, nodeLoadError: this.nodeLoadError }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'treeview' }), models: { expandedIds: this.expandedIds, selectedIds: this.selectedIds } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('treeview', treeviewScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/treeview/src/templates/treeview.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"treeview\" [mpProps]=\"p_view.tree\" [mpHostAttrs]=\"hostAttrs\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"treeview\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"treeview\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.spinner\"></span>\n }\n </span>\n <span data-mps=\"treeview\" [mpProps]=\"p_view.body\">\n @if (slots().node; as slot_node) {\n <ng-container [ngTemplateOutlet]=\"slot_node\" [ngTemplateOutletContext]=\"{ $implicit: row.node, node: row.node, ctx: row.ctx }\" />\n } @else {\n @if (row.icon) {\n <span data-mps=\"treeview\" [mpProps]=\"p_view.icon\" [innerHTML]=\"row.icon | mpTrustedHtml\"></span>\n }\n <span data-mps=\"treeview\" [mpProps]=\"p_view.label\">\n {{ row.node.label }}\n </span>\n }\n </span>\n </li>\n }\n</ul>\n<div data-mps=\"treeview\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n","// GENERATED from the treeview manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTreeviewComponent, BsTreeviewNodeDirective } from './treeview.component.generated';\n","// The treeview is generated from @mintplayer/ui-core/treeview (PRD #437 D10).\nexport * from './generated';\nexport type {\n IconResolver,\n TreeChildrenLoader,\n TreeNode,\n TreeNodeCollapseEventDetail,\n TreeNodeExpandEventDetail,\n TreeNodeLoadErrorEventDetail,\n TreeNodeRenderContext,\n TreeNodeSelectEventDetail,\n TreeviewIds,\n TreeviewLabels,\n TreeviewSelectionMode,\n} from '@mintplayer/ui-core/treeview';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAOA;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAsI,WAAW,CAAC;AAIhL,IAAA;AAHC,IAAA,OAAO,sBAAsB,CAAC,IAA6B,EAAE,GAAY,EAAA;AACvE,QAAA,OAAO,IAAI;IACb;8GAJW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,Q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