@mintplayer/ng-bootstrap 22.31.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-priority-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav-item/priority-nav-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow-activation.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.html","../../../../libs/mintplayer-ng-bootstrap/priority-nav/mintplayer-ng-bootstrap-priority-nav.ts"],"sourcesContent":["import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\n\n@Directive({\n selector: '[bsPriorityNavItem]',\n})\nexport class BsPriorityNavItemDirective {\n templateRef = inject(TemplateRef);\n\n priority = input<number | null>(null, { alias: 'bsPriorityNavItem' });\n hideBelow = input<Breakpoint | null>(null, { alias: 'bsPriorityNavItemHideBelow' });\n\n readonly id: number = ++BsPriorityNavItemDirective.idCounter;\n private static idCounter = 0;\n}\n","/**\n * The priority-nav overflow math, as pure functions over numbers so it can be tested without\n * layout. The component feeds them the measured widths.\n */\n\n/**\n * Orders items in overflow order: the first item returned is the first to overflow.\n *\n * A LOWER priority number means MORE important (priority 1 stays visible longest). Items\n * without a priority are least important and overflow before any prioritized item. Ties are\n * broken by declaration order: the last-declared overflows first when overflowing from the\n * end, the first-declared when overflowing from the start.\n */\nexport function computeOverflowOrder<T extends { priority: number | null }>(items: readonly T[], fromEnd: boolean): T[] {\n return items\n .map((item, index) => ({ item, index }))\n .sort((a, b) => {\n const pa = a.item.priority;\n const pb = b.item.priority;\n if (pa === null && pb !== null) return -1;\n if (pa !== null && pb === null) return 1;\n if (pa !== null && pb !== null && pa !== pb) return pb - pa;\n return fromEnd ? b.index - a.index : a.index - b.index;\n })\n .map(({ item }) => item);\n}\n\n/**\n * How far a width may exceed the strip and still count as fitting. The item widths come from a\n * separate measure strip and the strip width from the live one, and each is rounded on its own\n * (float32 layout values, Firefox's 1/60px app units), so a row of items laid out at exactly its\n * own width can measure a hair wider than itself. Half a pixel is above every such rounding error\n * and below one device pixel at a DPR of 2. Issue #428.\n */\nexport const SUBPIXEL_TOLERANCE = 0.5;\n\nexport interface OverflowLayout {\n /** Width of the visible strip. 0 means not measured yet. */\n stripWidth: number;\n /** Width of the More toggle. */\n moreWidth: number;\n /** The strip's column gap. */\n gap: number;\n /** Measured width per item id. */\n widths: ReadonlyMap<number, number>;\n /** Item ids in overflow order (see computeOverflowOrder). */\n order: readonly number[];\n}\n\n/**\n * The ids of the items that do not fit. When every item fits there is no More toggle, so N\n * items take N-1 gaps. Once one overflows the toggle appears: with K items kicked out, the\n * strip holds N-K items plus the toggle, so N-K gaps. Items are kicked in overflow order until\n * the rest and the toggle fit.\n */\nexport function computeOverflowIds({ stripWidth, moreWidth, gap, widths, order }: OverflowLayout): Set<number> {\n if (stripWidth === 0 || widths.size === 0) return new Set();\n\n const sumWidths = [...widths.values()].reduce((a, b) => a + b, 0);\n if (sumWidths + gap * Math.max(0, widths.size - 1) <= stripWidth + SUBPIXEL_TOLERANCE) return new Set();\n\n const result = order.reduce(\n (acc, id) => {\n if (acc.done || acc.visibleSum + moreWidth + gap * acc.visibleCount <= stripWidth + SUBPIXEL_TOLERANCE) {\n return { ...acc, done: true };\n }\n return {\n visibleSum: acc.visibleSum - (widths.get(id) ?? 0),\n visibleCount: acc.visibleCount - 1,\n ids: [...acc.ids, id],\n done: false,\n };\n },\n { visibleSum: sumWidths, visibleCount: widths.size, ids: [] as number[], done: false },\n );\n return new Set(result.ids);\n}\n","/**\n * Whether a click inside the overflow panel was an item ACTION, which should close the panel.\n *\n * The first interactive element on the event path, between the target and the panel, decides:\n * - a link, button or menuitem-like role closes the panel, because activating it did something;\n * - unless it opens a menu of its own (`aria-haspopup`, `aria-expanded`, `<summary>`), or is\n * disabled, in which case the user is not done with the panel;\n * - a form control or label keeps the panel open, as does a click that hits no interactive\n * element at all (padding, plain text).\n *\n * Walks `composedPath()`, not `target.closest()`: a nested web component's trigger lives in its\n * shadow root, where `closest()` from the retargeted host would never see it.\n */\nexport function isClosingActivation(path: readonly EventTarget[], panel: Element): boolean {\n const end = path.indexOf(panel);\n if (end < 0) return false;\n const control = path\n .slice(0, end)\n .find((target): target is Element => target instanceof Element && target.matches(INTERACTIVE));\n if (!control || !control.matches(ACTION)) return false;\n\n const popup = control.getAttribute('aria-haspopup');\n if (popup !== null && popup !== 'false') return false;\n if (control.hasAttribute('aria-expanded')) return false;\n if (control.getAttribute('aria-disabled') === 'true') return false;\n return !control.matches(':disabled');\n}\n\nconst ACTION = [\n 'a[href]',\n 'button',\n '[role=button]',\n '[role=link]',\n '[role=menuitem]',\n '[role=menuitemcheckbox]',\n '[role=menuitemradio]',\n].join(',');\n\n/** Everything that stops the walk: the actions, plus the controls that must keep the panel open. */\nconst INTERACTIVE = [ACTION, 'summary', 'input', 'select', 'textarea', 'label'].join(',');\n","import { isPlatformServer, NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef,\n inject, input, output, PLATFORM_ID, signal, TemplateRef, viewChild, viewChildren\n} from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\nimport { BsPriorityNavItemDirective } from '../priority-nav-item/priority-nav-item.directive';\nimport { computeOverflowIds, computeOverflowOrder } from './overflow';\nimport { isClosingActivation } from './overflow-activation';\n\n@Component({\n selector: 'bs-priority-nav',\n templateUrl: './priority-nav.component.html',\n styleUrls: ['./priority-nav.component.scss'],\n imports: [NgClass, NgTemplateOutlet, BsNoNoscriptDirective, BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:click)': 'onDocumentClick($event)',\n '(document:keydown.escape)': 'onEscape()',\n '(window:resize)': 'onWindowResize()',\n '[style.--priority-nav-more-width]': 'hostMinWidth()',\n },\n})\nexport class BsPriorityNavComponent {\n private platformId = inject(PLATFORM_ID);\n private element = inject(ElementRef);\n private overlayStack = inject(BsOverlayStackService);\n private stackToken: symbol | null = null;\n\n isServerSide = isPlatformServer(this.platformId);\n\n private static counter = 0;\n uid = `pn-${++BsPriorityNavComponent.counter}`;\n\n // Inputs\n moreLabel = input('More');\n moreLabelTemplate = input<TemplateRef<{ $implicit: boolean }> | null>(null);\n collapseAt = input<Breakpoint | null>(null);\n overflowFrom = input<'start' | 'end'>('end');\n hideEmptyMore = input(true);\n ariaLabel = input<string>('Navigation');\n\n // Outputs\n overflowChange = output<BsPriorityNavItemDirective[]>();\n\n // Children\n readonly items = contentChildren(BsPriorityNavItemDirective);\n\n // Per-item width measurements (from the off-screen measure strip)\n private measureSizers = viewChildren<BsObserveSizeDirective>('measureItem');\n // Visible strip width and its element (for reading computed `column-gap`)\n stripSizer = viewChild.required<BsObserveSizeDirective>('stripSize');\n private stripElement = viewChild.required('stripSize', { read: ElementRef });\n // More toggle width, from the slot around the real button (measured even while idle, padding\n // included). Optional on purpose: the button exists only in the JS branch of the template (the\n // server renders a label instead), so this query is empty on the server.\n private moreMeasure = viewChild<BsObserveSizeDirective>('moreSize');\n private moreButton = viewChild('moreButton', { read: ElementRef });\n private overflowPanel = viewChild('overflowPanel', { read: ElementRef });\n\n // Open/closed state for the More menu (JS path)\n isMoreOpen = signal(false);\n windowWidth = signal<number>(0);\n\n collapseAtPx = computed(() => {\n switch (this.collapseAt()) {\n case 'xxl': return 1400;\n case 'xl': return 1200;\n case 'lg': return 992;\n case 'md': return 768;\n case 'sm': return 576;\n case 'xs': return 0;\n default: return null;\n }\n });\n\n forceCollapse = computed(() => {\n const bp = this.collapseAtPx();\n if (bp === null) return false;\n const w = this.windowWidth();\n return w > 0 && w < bp;\n });\n\n // Items in overflow order (see computeOverflowOrder for the priority convention).\n overflowOrder = computed(() => {\n const entries = this.items().map((item) => ({ item, priority: item.priority() }));\n return computeOverflowOrder(entries, this.overflowFrom() === 'end').map(({ item }) => item);\n });\n\n // Per-item width map (from measure strip, indexed by item id, in items() order)\n itemWidths = computed<Map<number, number>>(() => {\n if (this.isServerSide) return new Map();\n const sizers = this.measureSizers();\n return new Map(this.items()\n .map((item, i) => [item.id, sizers[i]?.width()] as const)\n .filter((entry): entry is readonly [number, number] => entry[1] !== undefined));\n });\n\n // The strip's `column-gap` (or `gap`) value in pixels. Read from computed\n // style so consumers' `gap` declarations get factored into the overflow math\n // — without this, items overflow late or layout-shift when a gap is set.\n // Re-read whenever the strip width changes (covers media-query gap changes\n // that piggy-back on the same breakpoint).\n itemGap = computed(() => {\n if (this.isServerSide) return 0;\n this.stripSizer().width();\n const cs = getComputedStyle(this.stripElement().nativeElement as HTMLElement);\n const raw = parseFloat(cs.columnGap || cs.gap || '0');\n return Number.isFinite(raw) ? raw : 0;\n });\n\n moreWidth = computed(() => this.moreMeasure()?.width());\n\n // Feeds `:host { min-width: var(--priority-nav-more-width, 0) }`: the host may shrink below its\n // items, so a shrink-wrapped nav can collapse, but never below the More toggle.\n hostMinWidth = computed(() => {\n const width = this.items().length > 0 ? this.moreWidth() : undefined;\n return width === undefined ? null : `${width}px`;\n });\n\n overflowingIds = computed<Set<number>>(() => {\n if (this.isServerSide) return new Set();\n if (this.forceCollapse()) {\n return new Set(this.items().map(i => i.id));\n }\n return computeOverflowIds({\n stripWidth: this.stripSizer().width() ?? 0,\n moreWidth: this.moreWidth() ?? 0,\n gap: this.itemGap(),\n widths: this.itemWidths(),\n order: this.overflowOrder().map((item) => item.id),\n });\n });\n\n hasAnyOverflow = computed(() => this.overflowingIds().size > 0);\n showMoreButton = computed(() => !this.hideEmptyMore() || this.hasAnyOverflow());\n\n // When every item is overflowing the toggle ends up at the start edge of\n // the strip (no inline items push it). Anchor the dropdown to that side\n // so it stays visually attached to the toggle.\n fullyCollapsed = computed(() => {\n const items = this.items();\n return items.length > 0 && this.overflowingIds().size === items.length;\n });\n\n // Derived per-item view used by all three rendering passes (measure strip,\n // inline strip, overflow menu). Pre-computes the breakpoint class string and\n // the JS-mode-only hide flags so the template can stay purely declarative —\n // no method calls, no inline `!isServerSide` guards. The SSR/noscript path\n // relies on CSS media queries instead of these flags, so both `hideInline`\n // and `hideInOverflow` are forced to false on the server.\n itemsWithMeta = computed(() => {\n const items = this.items();\n const overflowing = this.overflowingIds();\n const ssr = this.isServerSide;\n return items.map(item => {\n const bp = item.hideBelow();\n const isOverflowing = overflowing.has(item.id);\n return {\n item,\n hideBelowClass: bp ? `priority-nav-item-hide-below-${bp}` : '',\n hideInline: !ssr && isOverflowing,\n hideInOverflow: !ssr && !isOverflowing,\n };\n });\n });\n\n constructor() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n\n effect(() => {\n const overflowing = this.overflowingIds();\n const overflowingItems = this.items().filter(i => overflowing.has(i.id));\n this.overflowChange.emit(overflowingItems);\n });\n\n effect(() => {\n const open = this.isMoreOpen();\n if (open && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!open && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n }\n\n onWindowResize() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n }\n\n toggleMore() {\n this.isMoreOpen.update(v => !v);\n }\n\n onEscape() {\n if (this.isMoreOpen() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.closeMore();\n }\n }\n\n /** Closes the panel after an item ACTION; see `isClosingActivation` for what counts as one. */\n onOverflowClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n const panel = this.overflowPanel()?.nativeElement;\n if (panel && isClosingActivation(event.composedPath(), panel)) {\n this.closeMore();\n }\n }\n\n /**\n * Closing hides the panel, so focus inside it would fall to `<body>`. It goes back to the More\n * button instead, but only if it is still in the panel: an action that already moved focus\n * elsewhere (a dialog it opened) keeps it.\n */\n private closeMore() {\n const panel = this.overflowPanel()?.nativeElement;\n const focusInPanel = !!panel && panel.contains(panel.ownerDocument.activeElement);\n this.isMoreOpen.set(false);\n if (focusInPanel) this.moreButton()?.nativeElement.focus();\n }\n\n onDocumentClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n if (!this.element.nativeElement.contains(event.target as Node)) {\n this.isMoreOpen.set(false);\n }\n }\n\n}\n","<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal — a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone — a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- The slot is what gets measured: its content box is the\n button's border box, so the toggle's padding, the browser's\n button styles and any consumer CSS on the toggle all count.\n With nothing to show it is taken out of flow and made\n invisible, never display:none, which would measure 0 exactly\n when the first overflow decision needs the width. -->\n <span bsObserveSize #moreSize=\"bsObserveSize\"\n class=\"priority-nav-more-slot\"\n [class.priority-nav-more-slot-idle]=\"!showMoreButton()\">\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button #moreButton type=\"button\"\n class=\"priority-nav-more-toggle\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n </span>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAMa,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QAEjC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,gFAAI,KAAK,EAAE,mBAAmB,EAAA,CAAG;QACrE,IAAA,CAAA,SAAS,GAAG,KAAK,CAAoB,IAAI,iFAAI,KAAK,EAAE,4BAA4B,EAAA,CAAG;AAE1E,QAAA,IAAA,CAAA,EAAE,GAAW,EAAE,0BAA0B,CAAC,SAAS;AAE7D,IAAA;aADgB,IAAA,CAAA,SAAS,GAAG,CAAH,CAAK;8GAPlB,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;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A,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACzB,WAAW,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAInB,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACnC,YAAY,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAC/B,eAAe,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7DzE;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-priority-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/generated/priority-nav.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/generated/priority-nav.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/mintplayer-ng-bootstrap-priority-nav.ts"],"sourcesContent":["// GENERATED from the priority-nav manifest (priority-nav) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpInstanceStyleDirective, MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { priorityNavCore, type PriorityNavInputs, type PriorityNavItem, priorityNavScopedStyles } from '@mintplayer/ui-core/priority-nav';\n\n/** The `itemTemplate` slot of `<bs-priority-nav>`: `<ng-template bsPriorityNavItemTemplate>` or `*bsPriorityNavItemTemplate`. */\n@Directive({ selector: '[bsPriorityNavItemTemplate]' })\nexport class BsPriorityNavItemTemplateDirective {\n readonly templateRef = inject<TemplateRef<{ item: PriorityNavItem } & { $implicit: { item: PriorityNavItem }['item'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsPriorityNavItemTemplateDirective, ctx: unknown): ctx is { item: PriorityNavItem } & { $implicit: { item: PriorityNavItem }['item'] } {\n return true;\n }\n}\n\n/** The `moreTemplate` slot of `<bs-priority-nav>`: `<ng-template bsPriorityNavMoreTemplate>` or `*bsPriorityNavMoreTemplate`. */\n@Directive({ selector: '[bsPriorityNavMoreTemplate]' })\nexport class BsPriorityNavMoreTemplateDirective {\n readonly templateRef = inject<TemplateRef<{ open: boolean } & { $implicit: { open: boolean }['open'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsPriorityNavMoreTemplateDirective, ctx: unknown): ctx is { open: boolean } & { $implicit: { open: boolean }['open'] } {\n return true;\n }\n}\n\n/** A horizontal navigation that keeps as many `items` visible as fit and moves the rest, least important (highest `priority`) first, into a \"More\" disclosure. Works without JavaScript through `hideBelow` breakpoints. */\n@Component({\n selector: 'bs-priority-nav',\n templateUrl: './priority-nav.view.generated.html',\n imports: [MpInstanceStyleDirective, MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsPriorityNavComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly items = input<PriorityNavInputs['items']>([]);\n readonly moreLabel = input<PriorityNavInputs['moreLabel']>('More');\n /** Below this breakpoint every item is in the overflow. */\n readonly collapseAt = input<PriorityNavInputs['collapseAt']>(null);\n readonly overflowFrom = input<PriorityNavInputs['overflowFrom']>('end');\n readonly hideEmptyMore = input<PriorityNavInputs['hideEmptyMore'], unknown>(true, { transform: booleanAttribute });\n /** Names the navigation landmark; a consumer `aria-label` wins. */\n readonly label = input<PriorityNavInputs['label']>('Navigation');\n /** The items in the overflow changed. */\n readonly overflowChange = output<PriorityNavItem[]>();\n\n private readonly itemTemplateSlot = contentChild(BsPriorityNavItemTemplateDirective);\n private readonly moreTemplateSlot = contentChild(BsPriorityNavMoreTemplateDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ itemTemplate: this.itemTemplateSlot()?.templateRef, moreTemplate: this.moreTemplateSlot()?.templateRef }));\n readonly #core = useCore(priorityNavCore, { inputs: () => ({ items: this.items(), moreLabel: this.moreLabel(), collapseAt: this.collapseAt(), overflowFrom: this.overflowFrom(), hideEmptyMore: this.hideEmptyMore(), label: this.label() }), idPrefix: 'bs-priority-nav', outputs: { overflowChange: this.overflowChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'priority-nav', role: 'navigation' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('priority-nav', priorityNavScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/priority-nav/src/templates/priority-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-container [mpInstanceStyle]=\"p_view.css\" [mpInstanceStyleName]=\"p_view.cssName\" />\n@if (p_view.checkbox) {\n <input data-mps=\"priority-nav\" [mpProps]=\"p_view.checkbox\">\n}\n@if (p_view.measure) {\n <div data-mps=\"priority-nav\" [mpProps]=\"p_view.measure\">\n <div data-mps=\"priority-nav\" class=\"priority-nav-measure\">\n @for (row of p_view.rows; track row.key) {\n <span data-mps=\"priority-nav\" [mpProps]=\"row.measure\">\n @if (slots().itemTemplate; as slot_itemTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_itemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: row.item, item: row.item }\" />\n } @else {\n <a data-mps=\"priority-nav\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.item.label }}\n </a>\n }\n </span>\n }\n </div>\n </div>\n}\n<div data-mps=\"priority-nav\" [mpProps]=\"p_view.strip\">\n @for (row of p_view.rows; track row.key) {\n <span data-mps=\"priority-nav\" [mpProps]=\"row.inline\">\n @if (slots().itemTemplate; as slot_itemTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_itemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: row.item, item: row.item }\" />\n } @else {\n <a data-mps=\"priority-nav\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.item.label }}\n </a>\n }\n </span>\n }\n @if (p_view.noscriptToggle) {\n <label data-mps=\"priority-nav\" [mpProps]=\"p_view.noscriptToggle\">\n @if (slots().moreTemplate; as slot_moreTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_moreTemplate\" [ngTemplateOutletContext]=\"{ $implicit: false, open: false }\" />\n } @else {\n <span data-mps=\"priority-nav\" class=\"priority-nav-more-label\">\n {{ p_view.moreLabel }}\n </span>\n <span data-mps=\"priority-nav\" class=\"priority-nav-caret\" aria-hidden=\"true\">\n ▾\n </span>\n }\n </label>\n }\n @if (p_view.moreSlot) {\n <span data-mps=\"priority-nav\" [mpProps]=\"p_view.moreSlot\">\n @if (p_view.more) {\n <button data-mps=\"priority-nav\" [mpProps]=\"p_view.more\">\n @if (slots().moreTemplate; as slot_moreTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_moreTemplate\" [ngTemplateOutletContext]=\"{ $implicit: p_view.open, open: p_view.open }\" />\n } @else {\n <span data-mps=\"priority-nav\" class=\"priority-nav-more-label\">\n {{ p_view.moreLabel }}\n </span>\n <span data-mps=\"priority-nav\" class=\"priority-nav-caret\" aria-hidden=\"true\">\n ▾\n </span>\n }\n </button>\n }\n </span>\n }\n</div>\n<div data-mps=\"priority-nav\" [mpProps]=\"p_view.overflow\">\n @for (row of p_view.rows; track row.key) {\n <span data-mps=\"priority-nav\" [mpProps]=\"row.overflow\">\n @if (slots().itemTemplate; as slot_itemTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_itemTemplate\" [ngTemplateOutletContext]=\"{ $implicit: row.item, item: row.item }\" />\n } @else {\n <a data-mps=\"priority-nav\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.item.label }}\n </a>\n }\n </span>\n }\n</div>\n","// GENERATED from the priority-nav manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsPriorityNavComponent, BsPriorityNavItemTemplateDirective, BsPriorityNavMoreTemplateDirective } from './priority-nav.component.generated';\n","// Generated from @mintplayer/ui-core/priority-nav (#458 D10).\nexport * from './generated';\nexport type { PriorityNavBreakpoint, PriorityNavItem } from '@mintplayer/ui-core/priority-nav';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAEa,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAA4F,WAAW,CAAC;AAItI,IAAA;AAHC,IAAA,OAAO,sBAAsB,CAAC,IAAwC,EAAE,GAAY,EAAA;AAClF,QAAA,OAAO,IAAI;IACb;8GAJW,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlC,kCAAkC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlC,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAD9C,SAAS;mBAAC,EAAE,QAAQ,EAAE,6BAA6B,EAAE;;AAQtD;MAEa,kCAAkC,CAAA;AAD/C,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAA4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A,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,kCAAkC,kGAClC,kCAAkC,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/CrF;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,82 +1,73 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, ChangeDetectionStrategy, Component, computed } from '@angular/core';
3
- import { Color } from '@mintplayer/ng-bootstrap';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component, numberAttribute } from '@angular/core';
3
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { progressCore, progressScopedStyles, progressBarCore } from '@mintplayer/ui-core/progress-bar';
5
+ import { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';
4
6
 
7
+ // GENERATED from the progress-bar manifest (progress) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /**
9
+ * Bootstrap's progress track around one or more `progress-bar`s. `indeterminate` shows an animated
10
+ * bar of unknown progress, named by `label`, instead.
11
+ */
5
12
  class BsProgressComponent {
13
+ #core;
6
14
  constructor() {
15
+ /** The host element. */
16
+ this.elementRef = inject(ElementRef);
7
17
  this.height = input(null, /* @ts-ignore */
8
18
  ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
9
- this.isIndeterminate = input(false, /* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "isIndeterminate" }] : /* istanbul ignore next */ []));
11
- this.ariaLabel = input('Loading', /* @ts-ignore */
12
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
19
+ this.indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
20
+ this.label = input('Loading', /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
22
+ this.#core = useCore(progressCore, { inputs: () => ({ height: this.height(), indeterminate: this.indeterminate(), label: this.label() }), idPrefix: 'bs-progress', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'progress' }) });
23
+ /** The template's props. */
24
+ this.props = this.#core.props;
25
+ useScopedStyles(bootstrapProgress.key, bootstrapProgress.css, { order: bootstrapProgress.order });
26
+ useScopedStyles('progress', progressScopedStyles);
13
27
  }
14
28
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsProgressComponent, isStandalone: true, selector: "bs-progress", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, isIndeterminate: { classPropertyName: "isIndeterminate", publicName: "isIndeterminate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.height.px": "height()", "class.d-block": "true", "class.overflow-hidden": "true" } }, ngImport: i0, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
29
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsProgressComponent, isStandalone: true, selector: "bs-progress", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.track\" [style]=\"p_view.trackStyle\">\n @if (p_view.indeterminate) {\n <div data-mps=\"progress\" [mpProps]=\"p_view.indeterminate\"></div>\n } @else {\n <ng-content />\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
30
  }
17
31
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressComponent, decorators: [{
18
32
  type: Component,
19
- args: [{ selector: 'bs-progress', changeDetection: ChangeDetectionStrategy.OnPush, host: {
20
- '[style.height.px]': 'height()',
21
- '[class.d-block]': 'true',
22
- '[class.overflow-hidden]': 'true',
23
- }, template: "<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host .progress,:host .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host .progress-bar{transition:none}}:host .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host .progress-stacked>.progress{overflow:visible}:host .progress-stacked>.progress>.progress-bar{width:100%}:host .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host .progress-bar-animated{animation:none}}:host .progress-bar-infinite{animation:progress-infinite 1.5s infinite}@keyframes progress-infinite{0%{width:10%;margin-left:0%}25%{width:70%;margin-left:15%}50%{width:10%;margin-left:90%}75%{width:70%;margin-left:15%}to{width:10%;margin-left:0%}}\n"] }]
24
- }], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], isIndeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "isIndeterminate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
33
+ args: [{ selector: 'bs-progress', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.track\" [style]=\"p_view.trackStyle\">\n @if (p_view.indeterminate) {\n <div data-mps=\"progress\" [mpProps]=\"p_view.indeterminate\"></div>\n } @else {\n <ng-content />\n }\n</div>\n" }]
34
+ }], ctorParameters: () => [], propDecorators: { height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
25
35
 
36
+ // GENERATED from the progress-bar manifest (progress-bar) by @mintplayer/nx-component-compiler. Do not edit.
37
+ /** One bar: a `role="progressbar"` named by `label`, its width the share of `value` between `minimum` and `maximum`. */
26
38
  class BsProgressBarComponent {
39
+ #core;
27
40
  constructor() {
28
- this.minimum = input(0, /* @ts-ignore */
29
- ...(ngDevMode ? [{ debugName: "minimum" }] : /* istanbul ignore next */ []));
30
- this.maximum = input(100, /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "maximum" }] : /* istanbul ignore next */ []));
32
- this.value = input(50, /* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
34
- this.color = input(Color.primary, /* @ts-ignore */
41
+ /** The host element. */
42
+ this.elementRef = inject(ElementRef);
43
+ this.minimum = input(0, { ...(ngDevMode ? { debugName: "minimum" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
44
+ this.maximum = input(100, { ...(ngDevMode ? { debugName: "maximum" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
45
+ this.value = input(0, { ...(ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
46
+ this.color = input('primary', /* @ts-ignore */
35
47
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
36
- this.striped = input(false, /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "striped" }] : /* istanbul ignore next */ []));
38
- this.animated = input(false, /* @ts-ignore */
39
- ...(ngDevMode ? [{ debugName: "animated" }] : /* istanbul ignore next */ []));
40
- /** Accessible name for the progressbar. Override for localisation. */
41
- this.ariaLabel = input('Progress', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
43
- /** Human reading of the value ('3 of 5 steps') when the raw number misleads. */
48
+ this.striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
49
+ this.animated = input(false, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
+ this.label = input('Progress', /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
44
52
  this.valueText = input(null, /* @ts-ignore */
45
53
  ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
46
- this.percentage = computed(() => {
47
- const min = this.minimum();
48
- const max = this.maximum();
49
- const val = this.value();
50
- return (val - min) / (max - min) * 100;
51
- }, /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "percentage" }] : /* istanbul ignore next */ []));
53
- this.width = computed(() => `${this.percentage()}%`, /* @ts-ignore */
54
- ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
55
- this.colorClassComputed = computed(() => {
56
- const name = Color[this.color()];
57
- return `bg-${name}`;
58
- }, /* @ts-ignore */
59
- ...(ngDevMode ? [{ debugName: "colorClassComputed" }] : /* istanbul ignore next */ []));
54
+ this.#core = useCore(progressBarCore, { inputs: () => ({ minimum: this.minimum(), maximum: this.maximum(), value: this.value(), color: this.color(), striped: this.striped(), animated: this.animated(), label: this.label(), valueText: this.valueText() }), idPrefix: 'bs-progress-bar' });
55
+ /** The template's props. */
56
+ this.props = this.#core.props;
57
+ useScopedStyles(bootstrapProgress.key, bootstrapProgress.css, { order: bootstrapProgress.order });
58
+ useScopedStyles('progress', progressScopedStyles);
60
59
  }
61
60
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
62
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsProgressBarComponent, isStandalone: true, selector: "bs-progress-bar", inputs: { minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.progress-bar": "true", "class.progress-bar-striped": "striped()", "class.progress-bar-animated": "animated()", "class": "colorClassComputed()", "style.width": "width()", "attr.role": "\"progressbar\"", "attr.aria-valuenow": "value()", "attr.aria-valuemin": "minimum()", "attr.aria-valuemax": "maximum()", "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "valueText()" } }, ngImport: i0, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsProgressBarComponent, isStandalone: true, selector: "bs-progress-bar", inputs: { minimum: { classPropertyName: "minimum", publicName: "minimum", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress-bar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.bar\" #root>\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
63
62
  }
64
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsProgressBarComponent, decorators: [{
65
64
  type: Component,
66
- args: [{ selector: 'bs-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, host: {
67
- '[class.progress-bar]': 'true',
68
- '[class.progress-bar-striped]': 'striped()',
69
- '[class.progress-bar-animated]': 'animated()',
70
- '[class]': 'colorClassComputed()',
71
- '[style.width]': 'width()',
72
- '[attr.role]': '"progressbar"',
73
- '[attr.aria-valuenow]': 'value()',
74
- '[attr.aria-valuemin]': 'minimum()',
75
- '[attr.aria-valuemax]': 'maximum()',
76
- '[attr.aria-label]': 'ariaLabel()',
77
- '[attr.aria-valuetext]': 'valueText()',
78
- }, template: "", styles: ["@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}:host ::ng-deep .progress,:host ::ng-deep .progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}:host ::ng-deep .progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar{transition:none}}:host ::ng-deep .progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}:host ::ng-deep .progress-stacked>.progress{overflow:visible}:host ::ng-deep .progress-stacked>.progress>.progress-bar{width:100%}:host ::ng-deep .progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion:reduce){:host ::ng-deep .progress-bar-animated{animation:none}}\n"] }]
79
- }], propDecorators: { minimum: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimum", required: false }] }], maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }] } });
65
+ args: [{ selector: 'bs-progress-bar', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress-bar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.bar\" #root>\n <ng-content />\n</div>\n" }]
66
+ }], ctorParameters: () => [], propDecorators: { minimum: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimum", required: false }] }], maximum: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximum", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }] } });
67
+
68
+ // GENERATED from the progress-bar manifest by @mintplayer/nx-component-compiler. Do not edit.
69
+
70
+ // Generated from @mintplayer/ui-core/progress-bar (#458 D10).
80
71
 
81
72
  /**
82
73
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-progress-bar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress/progress.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/progress-bar/progress-bar.component.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/mintplayer-ng-bootstrap-progress-bar.ts"],"sourcesContent":["import { Component, input, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-progress',\n templateUrl: './progress.component.html',\n styleUrls: ['./progress.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.height.px]': 'height()',\n '[class.d-block]': 'true',\n '[class.overflow-hidden]': 'true',\n },\n})\nexport class BsProgressComponent {\n readonly height = input<number | null>(null);\n readonly isIndeterminate = input(false);\n readonly ariaLabel = input<string>('Loading');\n}\n","<div class=\"progress\">\n @if (isIndeterminate()) {\n <div class=\"progress-bar progress-bar-infinite bg-primary\" role=\"progressbar\" [attr.aria-label]=\"ariaLabel()\"></div>\n } @else {\n <ng-content></ng-content>\n }\n</div>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-progress-bar',\n templateUrl: './progress-bar.component.html',\n styleUrls: ['./progress-bar.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.progress-bar]': 'true',\n '[class.progress-bar-striped]': 'striped()',\n '[class.progress-bar-animated]': 'animated()',\n '[class]': 'colorClassComputed()',\n '[style.width]': 'width()',\n '[attr.role]': '\"progressbar\"',\n '[attr.aria-valuenow]': 'value()',\n '[attr.aria-valuemin]': 'minimum()',\n '[attr.aria-valuemax]': 'maximum()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-valuetext]': 'valueText()',\n },\n})\nexport class BsProgressBarComponent {\n\n minimum = input<number>(0);\n maximum = input<number>(100);\n value = input<number>(50);\n color = input<Color>(Color.primary);\n striped = input(false);\n animated = input(false);\n /** Accessible name for the progressbar. Override for localisation. */\n ariaLabel = input<string>('Progress');\n /** Human reading of the value ('3 of 5 steps') when the raw number misleads. */\n valueText = input<string | null>(null);\n\n percentage = computed(() => {\n const min = this.minimum();\n const max = this.maximum();\n const val = this.value();\n return (val - min) / (max - min) * 100;\n });\n\n width = computed(() => `${this.percentage()}%`);\n\n colorClassComputed = computed(() => {\n const name = Color[this.color()];\n return `bg-${name}`;\n });\n}\n","","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAaa,mBAAmB,CAAA;AAXhC,IAAA,WAAA,GAAA;QAYW,IAAA,CAAA,MAAM,GAAG,KAAK,CAAgB,IAAI;mFAAC;QACnC,IAAA,CAAA,eAAe,GAAG,KAAK,CAAC,KAAK;4FAAC;QAC9B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,SAAS;sFAAC;AAC9C,IAAA;8GAJY,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,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AACnC,wBAAA,sBAAsB,EAAE,WAAW;AACnC,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,uBAAuB,EAAE,aAAa;AACvC,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,MAAA,EAAA,CAAA,ujDAAA,CAAA,EAAA;;;AEpBH;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-progress-bar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/generated/progress.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/generated/progress.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/generated/progress-bar.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/generated/progress-bar.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/progress-bar/mintplayer-ng-bootstrap-progress-bar.ts"],"sourcesContent":["// GENERATED from the progress-bar manifest (progress) 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 { progressCore, type ProgressInputs, progressScopedStyles } from '@mintplayer/ui-core/progress-bar';\nimport { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';\n\n/**\n * Bootstrap's progress track around one or more `progress-bar`s. `indeterminate` shows an animated\n * bar of unknown progress, named by `label`, instead.\n */\n@Component({\n selector: 'bs-progress',\n templateUrl: './progress.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsProgressComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly height = input<ProgressInputs['height']>(null);\n readonly indeterminate = input<ProgressInputs['indeterminate'], unknown>(false, { transform: booleanAttribute });\n readonly label = input<ProgressInputs['label']>('Loading');\n\n readonly #core = useCore(progressCore, { inputs: () => ({ height: this.height(), indeterminate: this.indeterminate(), label: this.label() }), idPrefix: 'bs-progress', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'progress' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapProgress.key, bootstrapProgress.css, { order: bootstrapProgress.order }); useScopedStyles('progress', progressScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.track\" [style]=\"p_view.trackStyle\">\n @if (p_view.indeterminate) {\n <div data-mps=\"progress\" [mpProps]=\"p_view.indeterminate\"></div>\n } @else {\n <ng-content />\n }\n</div>\n","// GENERATED from the progress-bar manifest (progress-bar) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { progressBarCore, type ProgressBarInputs, progressScopedStyles } from '@mintplayer/ui-core/progress-bar';\nimport { bootstrapProgress } from '@mintplayer/ui-core/bootstrap/progress';\n\n/** One bar: a `role=\"progressbar\"` named by `label`, its width the share of `value` between `minimum` and `maximum`. */\n@Component({\n selector: 'bs-progress-bar',\n templateUrl: './progress-bar.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsProgressBarComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly minimum = input<ProgressBarInputs['minimum'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as ProgressBarInputs['minimum'] });\n readonly maximum = input<ProgressBarInputs['maximum'], unknown>(100, { transform: (v: unknown) => numberAttribute(v) as ProgressBarInputs['maximum'] });\n readonly value = input<ProgressBarInputs['value'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as ProgressBarInputs['value'] });\n readonly color = input<ProgressBarInputs['color']>('primary');\n readonly striped = input<ProgressBarInputs['striped'], unknown>(false, { transform: booleanAttribute });\n readonly animated = input<ProgressBarInputs['animated'], unknown>(false, { transform: booleanAttribute });\n readonly label = input<ProgressBarInputs['label']>('Progress');\n readonly valueText = input<ProgressBarInputs['valueText']>(null);\n\n readonly #core = useCore(progressBarCore, { inputs: () => ({ minimum: this.minimum(), maximum: this.maximum(), value: this.value(), color: this.color(), striped: this.striped(), animated: this.animated(), label: this.label(), valueText: this.valueText() }), idPrefix: 'bs-progress-bar' });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapProgress.key, bootstrapProgress.css, { order: bootstrapProgress.order }); useScopedStyles('progress', progressScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/progress-bar/src/templates/progress-bar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"progress\" [mpProps]=\"p_view.bar\" #root>\n <ng-content />\n</div>\n","// GENERATED from the progress-bar manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsProgressComponent } from './progress.component.generated';\nexport { BsProgressBarComponent } from './progress-bar.component.generated';\n","// Generated from @mintplayer/ui-core/progress-bar (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;AAGG;MAOU,mBAAmB,CAAA;AAQrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAVS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;QAC9C,IAAA,CAAA,aAAa,GAAG,KAAK,CAA2C,KAAK,qFAAI,SAAS,E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A,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECbnC,0QAKA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDKY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,WAElB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0QAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -4,6 +4,8 @@ import { NgTemplateOutlet } from '@angular/common';
4
4
  import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
5
  import { queryBuilderCore, queryBuilderScopedStyles } from '@mintplayer/ui-core/query-builder';
6
6
  export { DEFAULT_MESSAGES, DEFAULT_OPERATOR_CATALOG, MaxDepthExceededError, addChild, addEmptyConditionTo, addEmptyGroupTo, addEmptySubqueryTo, changeConditionField, changeConditionOperator, cloneTree, collectDescendantIds, defaultValueFor, emptyCondition, emptyGroup, emptySubquery, findNodeById, mapTree, moveNode, newId, operatorsForType, removeNode, renderExpression, setGroupLogic, updateCondition, validateOperatorOverrides, valueShapeFor, visitTree } from '@mintplayer/ui-core/query-builder';
7
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
8
+ import { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';
7
9
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
10
 
9
11
  /**
@@ -140,37 +142,31 @@ class BsQueryBuilderComponent {
140
142
  this.showSavedQueries = input(false, { ...(ngDevMode ? { debugName: "showSavedQueries" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
141
143
  this.savedQueries = input([], /* @ts-ignore */
142
144
  ...(ngDevMode ? [{ debugName: "savedQueries" }] : /* istanbul ignore next */ []));
143
- /** The user edited the query. */
144
- this.querychange = output();
145
- /** The user picked another entity in the toolbar. */
146
- this.rootentitychange = output();
147
- /** The projected columns changed. */
148
- this.selectedfieldschange = output();
149
- /** The sort changed. */
150
- this.sortbychange = output();
151
145
  /** Save the current query under a name. */
152
- this.savequery = output();
146
+ this.saveQuery = output();
153
147
  /** Load the named saved query. */
154
- this.loadquery = output();
148
+ this.loadQuery = output();
155
149
  /** Delete the named saved query. */
156
- this.deletequery = output();
150
+ this.deleteQuery = output();
157
151
  this.editorSlot = contentChild(BsQueryBuilderEditorDirective, /* @ts-ignore */
158
152
  ...(ngDevMode ? [{ debugName: "editorSlot" }] : /* istanbul ignore next */ []));
159
153
  /** The template's named slots. */
160
154
  this.slots = computed(() => ({ editor: this.editorSlot()?.templateRef }), /* @ts-ignore */
161
155
  ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
162
- this.#core = useCore(queryBuilderCore, { inputs: extendInputs(() => ({ query: this.query(), schema: this.schema(), rootEntity: this.rootEntity(), multiEntityPickerEnabled: this.multiEntityPickerEnabled(), selectedFields: this.selectedFields(), sortBy: this.sortBy(), disabled: this.disabled(), messages: this.messages(), maxDepth: this.maxDepth(), showPreview: this.showPreview(), showSavedQueries: this.showSavedQueries(), savedQueries: this.savedQueries() })), idPrefix: 'bs-query-builder', outputs: { queryChange: this.querychange, rootEntityChange: this.rootentitychange, selectedFieldsChange: this.selectedfieldschange, sortByChange: this.sortbychange, saveQuery: this.savequery, loadQuery: this.loadquery, deleteQuery: this.deletequery }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'query-builder' }), models: { query: this.query, rootEntity: this.rootEntity, selectedFields: this.selectedFields, sortBy: this.sortBy } });
156
+ this.#core = useCore(queryBuilderCore, { inputs: extendInputs(() => ({ query: this.query(), schema: this.schema(), rootEntity: this.rootEntity(), multiEntityPickerEnabled: this.multiEntityPickerEnabled(), selectedFields: this.selectedFields(), sortBy: this.sortBy(), disabled: this.disabled(), messages: this.messages(), maxDepth: this.maxDepth(), showPreview: this.showPreview(), showSavedQueries: this.showSavedQueries(), savedQueries: this.savedQueries() })), idPrefix: 'bs-query-builder', outputs: { saveQuery: this.saveQuery, loadQuery: this.loadQuery, deleteQuery: this.deleteQuery }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'query-builder' }), models: { query: this.query, rootEntity: this.rootEntity, selectedFields: this.selectedFields, sortBy: this.sortBy } });
163
157
  /** The template's props. */
164
158
  this.props = this.#core.props;
159
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
160
+ useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order });
165
161
  useScopedStyles('query-builder', queryBuilderScopedStyles);
166
162
  }
167
163
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsQueryBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
168
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsQueryBuilderComponent, isStandalone: true, selector: "bs-query-builder", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, schema: { classPropertyName: "schema", publicName: "schema", isSignal: true, isRequired: false, transformFunction: null }, rootEntity: { classPropertyName: "rootEntity", publicName: "rootEntity", isSignal: true, isRequired: false, transformFunction: null }, multiEntityPickerEnabled: { classPropertyName: "multiEntityPickerEnabled", publicName: "multiEntityPickerEnabled", isSignal: true, isRequired: false, transformFunction: null }, selectedFields: { classPropertyName: "selectedFields", publicName: "selectedFields", isSignal: true, isRequired: false, transformFunction: null }, sortBy: { classPropertyName: "sortBy", publicName: "sortBy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, showPreview: { classPropertyName: "showPreview", publicName: "showPreview", isSignal: true, isRequired: false, transformFunction: null }, showSavedQueries: { classPropertyName: "showSavedQueries", publicName: "showSavedQueries", isSignal: true, isRequired: false, transformFunction: null }, savedQueries: { classPropertyName: "savedQueries", publicName: "savedQueries", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { query: "queryChange", rootEntity: "rootEntityChange", selectedFields: "selectedFieldsChange", sortBy: "sortByChange", querychange: "querychange", rootentitychange: "rootentitychange", selectedfieldschange: "selectedfieldschange", sortbychange: "sortbychange", savequery: "savequery", loadquery: "loadquery", deletequery: "deletequery" }, queries: [{ propertyName: "editorSlot", first: true, predicate: BsQueryBuilderEditorDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsQueryBuilderValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n \u00D7\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n \uD83D\uDCBE \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n \u00D7\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n \u22EE\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: { ctx: pp_node.condition.editor.ctx }, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n \u00D7\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n \u2026 \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n \u00D7\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n \u00D7\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: QueryBuilderItemPartial, selector: "ng-template[mpPartialQueryBuilderItem]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
164
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsQueryBuilderComponent, isStandalone: true, selector: "bs-query-builder", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, schema: { classPropertyName: "schema", publicName: "schema", isSignal: true, isRequired: false, transformFunction: null }, rootEntity: { classPropertyName: "rootEntity", publicName: "rootEntity", isSignal: true, isRequired: false, transformFunction: null }, multiEntityPickerEnabled: { classPropertyName: "multiEntityPickerEnabled", publicName: "multiEntityPickerEnabled", isSignal: true, isRequired: false, transformFunction: null }, selectedFields: { classPropertyName: "selectedFields", publicName: "selectedFields", isSignal: true, isRequired: false, transformFunction: null }, sortBy: { classPropertyName: "sortBy", publicName: "sortBy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, showPreview: { classPropertyName: "showPreview", publicName: "showPreview", isSignal: true, isRequired: false, transformFunction: null }, showSavedQueries: { classPropertyName: "showSavedQueries", publicName: "showSavedQueries", isSignal: true, isRequired: false, transformFunction: null }, savedQueries: { classPropertyName: "savedQueries", publicName: "savedQueries", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { query: "queryChange", rootEntity: "rootEntityChange", selectedFields: "selectedFieldsChange", sortBy: "sortByChange", saveQuery: "saveQuery", loadQuery: "loadQuery", deleteQuery: "deleteQuery" }, queries: [{ propertyName: "editorSlot", first: true, predicate: BsQueryBuilderEditorDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsQueryBuilderValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n \u00D7\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n \uD83D\uDCBE \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n \u00D7\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n \u22EE\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: pp_node.condition.editor.ctx, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n \u00D7\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n \u2026 \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n \u00D7\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n \u00D7\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: QueryBuilderItemPartial, selector: "ng-template[mpPartialQueryBuilderItem]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
169
165
  }
170
166
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsQueryBuilderComponent, decorators: [{
171
167
  type: Component,
172
- args: [{ selector: 'bs-query-builder', imports: [MpPropsDirective, NgTemplateOutlet, QueryBuilderItemPartial], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n \u00D7\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n \uD83D\uDCBE \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n \u00D7\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n \u22EE\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: { ctx: pp_node.condition.editor.ctx }, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n \u00D7\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n \u2026 \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n \u00D7\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n \u00D7\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n" }]
173
- }], ctorParameters: () => [], propDecorators: { query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], schema: [{ type: i0.Input, args: [{ isSignal: true, alias: "schema", required: false }] }], rootEntity: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootEntity", required: false }] }, { type: i0.Output, args: ["rootEntityChange"] }], multiEntityPickerEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiEntityPickerEnabled", required: false }] }], selectedFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedFields", required: false }] }, { type: i0.Output, args: ["selectedFieldsChange"] }], sortBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortBy", required: false }] }, { type: i0.Output, args: ["sortByChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], showPreview: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPreview", required: false }] }], showSavedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSavedQueries", required: false }] }], savedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "savedQueries", required: false }] }], querychange: [{ type: i0.Output, args: ["querychange"] }], rootentitychange: [{ type: i0.Output, args: ["rootentitychange"] }], selectedfieldschange: [{ type: i0.Output, args: ["selectedfieldschange"] }], sortbychange: [{ type: i0.Output, args: ["sortbychange"] }], savequery: [{ type: i0.Output, args: ["savequery"] }], loadquery: [{ type: i0.Output, args: ["loadquery"] }], deletequery: [{ type: i0.Output, args: ["deletequery"] }], editorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsQueryBuilderEditorDirective), { isSignal: true }] }] } });
168
+ args: [{ selector: 'bs-query-builder', imports: [MpPropsDirective, NgTemplateOutlet, QueryBuilderItemPartial], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/query-builder/src/templates/query-builder.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.toolbar) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarBox\">\n <label data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.entity }}\n : \n <select data-mps=\"query-builder\" [mpProps]=\"p_view.entity\">\n @for (o of p_view.entities; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n </label>\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.projectionBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.columns }}\n :\n </span>\n @for (p of p_view.projections; track p.key) {\n <label data-mps=\"query-builder\" [mpProps]=\"p.box\">\n <input data-mps=\"query-builder\" [mpProps]=\"p.input\">\n {{ p.label }}\n </label>\n }\n </span>\n }\n @if (p_view.projection) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.sortBox\">\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.toolbarLabel\">\n {{ p_view.text.sortBy }}\n :\n </span>\n @for (s of p_view.sorts; track s.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"s.box\">\n <select data-mps=\"query-builder\" [mpProps]=\"s.field\">\n @for (o of s.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"s.direction\">\n @for (o of s.directions; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <button data-mps=\"query-builder\" [mpProps]=\"s.remove\">\n \u00D7\n </button>\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.sortAdd\">\n + \n {{ p_view.text.addSort }}\n </button>\n </span>\n }\n </div>\n}\n@if (p_view.saved) {\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedBox\">\n <div data-mps=\"query-builder\" [mpProps]=\"p_view.savedList\">\n @if (p_view.savedQueries.length === 0) {\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedEmpty\">\n {{ p_view.text.noSavedQueries }}\n </span>\n }\n @for (q of p_view.savedQueries; track q.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"q.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"q.load\">\n {{ q.loadText }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"q.remove\">\n {{ p_view.text.deleteQuery }}\n </button>\n </span>\n }\n </div>\n <span data-mps=\"query-builder\" [mpProps]=\"p_view.savedNew\">\n <input data-mps=\"query-builder\" [mpProps]=\"p_view.savedName\">\n <button data-mps=\"query-builder\" [mpProps]=\"p_view.savedSave\">\n \uD83D\uDCBE \n {{ p_view.text.saveCurrentAs }}\n </button>\n </span>\n </div>\n}\n@if (p_view.preview) {\n <pre data-mps=\"query-builder\" [mpProps]=\"p_view.previewBox\">\n {{ p_view.previewText }}\n </pre>\n}\n<ul data-mps=\"query-builder\" [mpProps]=\"p_view.list\">\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: p_view.tree, view: p_view }\" />\n</ul>\n<ng-template #partial_QueryBuilderItem mpPartialQueryBuilderItem let-pp_node=\"node\" let-pp_view=\"view\">\n <li data-mps=\"query-builder\" [mpProps]=\"pp_node.item\">\n @if (pp_node.kind === 'group') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.group.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.logic\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.and\">\n {{ pp_view.text.logicAnd }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.or\">\n {{ pp_view.text.logicOr }}\n </button>\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.group.actions\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addCondition\">\n + \n {{ pp_view.text.addCondition }}\n </button>\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addGroup\">\n + \n {{ pp_view.text.addGroup }}\n </button>\n @if (pp_node.group.canAddSubquery) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.addSubquery\">\n + \n {{ pp_view.text.addSubquery }}\n </button>\n }\n @if (pp_node.group.removable) {\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.group.remove\">\n \u00D7\n </button>\n }\n </span>\n </div>\n } @else if (pp_node.kind === 'condition') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.box\">\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.handle\">\n \u22EE\n </button>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.field\">\n @for (o of pp_node.condition.fields; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.operator\">\n @for (o of pp_node.condition.operators; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n @if (pp_node.condition.hasEditor) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.wrap\">\n @if (pp_node.condition.editor.custom) {\n @if (slots().editor; as slot_editor) {\n <ng-container [ngTemplateOutlet]=\"slot_editor\" [ngTemplateOutletContext]=\"{ $implicit: pp_node.condition.editor.ctx, ctx: pp_node.condition.editor.ctx }\" />\n }\n } @else if (pp_node.condition.editor.isSelect) {\n <select data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.select\">\n @for (o of pp_node.condition.editor.options; track o.key) {\n <option data-mps=\"query-builder\" [mpProps]=\"o.bag\">\n {{ o.label }}\n </option>\n }\n </select>\n } @else if (pp_node.condition.editor.isChips) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipBox\">\n @for (c of pp_node.condition.editor.chips; track c.key) {\n <span data-mps=\"query-builder\" [mpProps]=\"c.bag\">\n {{ c.label }}\n <button data-mps=\"query-builder\" [mpProps]=\"c.remove\">\n \u00D7\n </button>\n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.chipAdd\">\n </span>\n } @else {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.inputBox\">\n @for (inp of pp_node.condition.editor.inputs; track inp.key) {\n @if (inp.sep) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.editor.sep\">\n \u2026 \n </span>\n }\n <input data-mps=\"query-builder\" [mpProps]=\"inp.bag\">\n }\n </span>\n }\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.condition.remove\">\n \u00D7\n </button>\n </div>\n } @else if (pp_node.kind === 'subquery') {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.header\">\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryField\">\n {{ pp_node.subquery.fieldLabel }}\n </span>\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryOperator\">\n {{ pp_node.subquery.operatorLabel }}\n </span>\n @if (pp_node.subquery.target) {\n <span data-mps=\"query-builder\" [mpProps]=\"pp_view.subqueryTarget\">\n (\n {{ pp_node.subquery.target }}\n )\n </span>\n }\n <button data-mps=\"query-builder\" [mpProps]=\"pp_node.subquery.remove\">\n \u00D7\n </button>\n </div>\n } @else {\n <div data-mps=\"query-builder\" [mpProps]=\"pp_node.note\">\n {{ pp_node.text }}\n </div>\n }\n @if (pp_node.children.length) {\n <ul data-mps=\"query-builder\" [mpProps]=\"pp_node.list\">\n @for (child of pp_node.children; track child.key) {\n <ng-container [ngTemplateOutlet]=\"partial_QueryBuilderItem\" [ngTemplateOutletContext]=\"{ node: child, view: pp_view }\" />\n }\n </ul>\n }\n </li>\n</ng-template>\n" }]
169
+ }], ctorParameters: () => [], propDecorators: { query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], schema: [{ type: i0.Input, args: [{ isSignal: true, alias: "schema", required: false }] }], rootEntity: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootEntity", required: false }] }, { type: i0.Output, args: ["rootEntityChange"] }], multiEntityPickerEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiEntityPickerEnabled", required: false }] }], selectedFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedFields", required: false }] }, { type: i0.Output, args: ["selectedFieldsChange"] }], sortBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortBy", required: false }] }, { type: i0.Output, args: ["sortByChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], showPreview: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPreview", required: false }] }], showSavedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSavedQueries", required: false }] }], savedQueries: [{ type: i0.Input, args: [{ isSignal: true, alias: "savedQueries", required: false }] }], saveQuery: [{ type: i0.Output, args: ["saveQuery"] }], loadQuery: [{ type: i0.Output, args: ["loadQuery"] }], deleteQuery: [{ type: i0.Output, args: ["deleteQuery"] }], editorSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsQueryBuilderEditorDirective), { isSignal: true }] }] } });
174
170
 
175
171
  // GENERATED from the query-builder manifest by @mintplayer/nx-component-compiler. Do not edit.
176
172