@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,415 +1,75 @@
1
- import { isPlatformServer, NgTemplateOutlet } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { InjectionToken, signal, Injectable, inject, PLATFORM_ID, Injector, computed, output, effect, untracked, ChangeDetectionStrategy, Component, ElementRef, afterNextRender, input, ApplicationRef, model, Directive, TemplateRef } from '@angular/core';
4
- import { FadeInOutAnimation } from '@mintplayer/ng-animations';
5
- import { BsOverlayFocusDirective, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
6
- import { Overlay } from '@angular/cdk/overlay';
7
- import { ComponentPortal } from '@angular/cdk/portal';
8
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
9
- import { AnimationBuilder, style, animate } from '@angular/animations';
2
+ import { inject, TemplateRef, Directive, ElementRef, model, input, numberAttribute, booleanAttribute, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { useCore, useScopedStyles, MpBodyTeleportDirective, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { offcanvasCore, offcanvasScopedStyles } from '@mintplayer/ui-core/offcanvas';
6
+ import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
7
+ import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
8
+ import { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';
10
9
 
11
- const OFFCANVAS_CONTENT = new InjectionToken('OffcanvasContent');
12
-
13
- /**
14
- * Component-scoped state shared between BsOffcanvasComponent (the dialog renderer)
15
- * and the bs-offcanvas-header / bs-offcanvas-body components inside the user's
16
- * template. Provides the ids for aria-labelledby and aria-describedby.
17
- */
18
- class BsOffcanvasContextService {
10
+ // GENERATED from the offcanvas manifest (offcanvas) by @mintplayer/nx-component-compiler. Do not edit.
11
+ /** The `header` slot of `<bs-offcanvas>`: `<ng-template bsOffcanvasHeader>` or `*bsOffcanvasHeader`. */
12
+ class BsOffcanvasHeaderDirective {
19
13
  constructor() {
20
- this.headerId = signal(null, /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
22
- this.bodyId = signal(null, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "bodyId" }] : /* istanbul ignore next */ []));
14
+ this.templateRef = inject(TemplateRef);
24
15
  }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
26
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContextService }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOffcanvasHeaderDirective, isStandalone: true, selector: "[bsOffcanvasHeader]", ngImport: i0 }); }
27
18
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContextService, decorators: [{
29
- type: Injectable
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHeaderDirective, decorators: [{
20
+ type: Directive,
21
+ args: [{ selector: '[bsOffcanvasHeader]' }]
30
22
  }] });
31
-
32
- /** Duration of the panel's slide transition (Bootstrap's $offcanvas-transition-duration). */
33
- const OFFCANVAS_TRANSITION_MS = 300;
23
+ /**
24
+ * Bootstrap's offcanvas panel, rendered at the end of `<body>`. `open` is two-way; `position` picks the edge.
25
+ * With `backdrop` it is modal. The `header` slot names it; any element inside with
26
+ * `data-bs-dismiss="offcanvas"` closes it.
27
+ */
34
28
  class BsOffcanvasComponent {
29
+ #core;
35
30
  constructor() {
36
- this.contentTemplate = inject(OFFCANVAS_CONTENT);
37
- this.platformId = inject(PLATFORM_ID);
38
- this.context = inject(BsOffcanvasContextService);
39
- this.injector = inject(Injector);
40
- // Core state signals
41
- this.position = signal('bottom', /* @ts-ignore */
31
+ /** The host element. */
32
+ this.elementRef = inject(ElementRef);
33
+ this.open = model(false, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
35
+ this.position = input('start', /* @ts-ignore */
42
36
  ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
43
- this.size = signal(null, /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
45
- this.isVisible = signal(false, /* @ts-ignore */
46
- ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
47
- this.hasBackdrop = signal(false, /* @ts-ignore */
48
- ...(ngDevMode ? [{ debugName: "hasBackdrop" }] : /* istanbul ignore next */ []));
49
- // Internal state signals
50
- this.disableTransition = signal(false, /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "disableTransition" }] : /* istanbul ignore next */ []));
52
- this.offcanvasClass = signal(null, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "offcanvasClass" }] : /* istanbul ignore next */ []));
54
- this.visibility = signal('hidden', /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "visibility" }] : /* istanbul ignore next */ []));
56
- this.show = signal(false, /* @ts-ignore */
57
- ...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
58
- // Computed signals
59
- this.width = computed(() => {
60
- const position = this.position();
61
- const size = this.size();
62
- return ['start', 'end'].includes(position) ? size : null;
63
- }, /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
65
- this.height = computed(() => {
66
- const position = this.position();
67
- const size = this.size();
68
- return ['top', 'bottom'].includes(position) ? size : null;
69
- }, /* @ts-ignore */
70
- ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
71
- this.overflowClass = computed(() => {
72
- const position = this.position();
73
- return ['top', 'bottom'].includes(position) ? 'overflow-y-hidden' : 'overflow-x-hidden';
74
- }, /* @ts-ignore */
75
- ...(ngDevMode ? [{ debugName: "overflowClass" }] : /* istanbul ignore next */ []));
76
- this.showBackdrop = computed(() => {
77
- return this.hasBackdrop() && this.isVisible();
78
- }, /* @ts-ignore */
79
- ...(ngDevMode ? [{ debugName: "showBackdrop" }] : /* istanbul ignore next */ []));
80
- // Outputs
81
- this.isVisibleChange = output();
82
- this.backdropClick = output();
83
- // Effect to handle position changes - disable transition temporarily
84
- effect(() => {
85
- const position = this.position();
86
- // Use untracked to avoid creating dependency on disableTransition
87
- untracked(() => {
88
- this.disableTransition.set(true);
89
- this.offcanvasClass.set(`offcanvas-${position}`);
90
- // Re-enable transitions after browser has processed position change
91
- if (!isPlatformServer(this.platformId)) {
92
- requestAnimationFrame(() => {
93
- this.disableTransition.set(false);
94
- });
95
- }
96
- });
97
- });
98
- // Effect to handle visibility changes
99
- effect(() => {
100
- const isVisible = this.isVisible();
101
- untracked(() => {
102
- if (isVisible) {
103
- // When showing: set visibility immediately, then add .show class after position is applied
104
- this.visibility.set('visible');
105
- // Delay adding .show class to allow position to be applied first
106
- if (!isPlatformServer(this.platformId)) {
107
- requestAnimationFrame(() => {
108
- requestAnimationFrame(() => {
109
- this.show.set(true);
110
- });
111
- });
112
- }
113
- }
114
- else {
115
- // When hiding: remove .show class immediately, delay visibility for animation
116
- this.show.set(false);
117
- setTimeout(() => {
118
- if (!this.isVisible()) {
119
- this.visibility.set('hidden');
120
- }
121
- }, OFFCANVAS_TRANSITION_MS);
122
- }
123
- });
124
- });
125
- }
126
- onBackdropClick(ev) {
127
- this.backdropClick.emit(ev);
128
- }
129
- /**
130
- * Escape closes — the dialog pattern's universal exit, and the panel traps
131
- * focus while open (bsOverlayFocus), so without this a keyboard user had no
132
- * way out at all.
133
- */
134
- onEscape() {
135
- if (!this.isVisible())
136
- return;
137
- this.isVisible.set(false);
138
- this.isVisibleChange.emit(false);
37
+ this.size = input(null, { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
38
+ this.backdrop = input(true, { ...(ngDevMode ? { debugName: "backdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
39
+ this.closeOnBackdrop = input(true, { ...(ngDevMode ? { debugName: "closeOnBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
40
+ this.closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
41
+ this.closeButton = input(true, { ...(ngDevMode ? { debugName: "closeButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
42
+ this.closeLabel = input('Close', /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
44
+ this.noPadding = input(false, { ...(ngDevMode ? { debugName: "noPadding" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
45
+ this.headerSlot = contentChild(BsOffcanvasHeaderDirective, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
47
+ /** The template's named slots. */
48
+ this.slots = computed(() => ({ header: this.headerSlot()?.templateRef }), /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
50
+ this.#core = useCore(offcanvasCore, { inputs: () => ({ open: this.open(), position: this.position(), size: this.size(), backdrop: this.backdrop(), closeOnBackdrop: this.closeOnBackdrop(), closeOnEscape: this.closeOnEscape(), closeButton: this.closeButton(), closeLabel: this.closeLabel(), noPadding: this.noPadding() }), idPrefix: 'bs-offcanvas', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'offcanvas' }), models: { open: this.open } });
51
+ /** The template's props. */
52
+ this.props = this.#core.props;
53
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
54
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
55
+ useScopedStyles(bootstrapOffcanvas.key, bootstrapOffcanvas.css, { order: bootstrapOffcanvas.order });
56
+ useScopedStyles('offcanvas', offcanvasScopedStyles);
139
57
  }
140
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsOffcanvasComponent, isStandalone: true, selector: "bs-offcanvas-holder", outputs: { isVisibleChange: "isVisibleChange", backdropClick: "backdropClick" }, host: { listeners: { "document:keydown.escape": "onEscape()" } }, providers: [BsOffcanvasContextService], ngImport: i0, template: "@if (showBackdrop()) {\n <div [@fadeInOut]=\"{value: ':leave', params: {duration: '300ms'} }\">\n <div class=\"modal-backdrop show\" (click)=\"onBackdropClick($event)\" aria-hidden=\"true\"></div>\n </div>\n}\n<div class=\"offcanvas\"\n [class.show]=\"show()\"\n [class.disable-transition]=\"disableTransition()\"\n [class]=\"[offcanvasClass(), overflowClass()]\"\n [style.height.px]=\"height()\"\n [style.width.px]=\"width()\"\n role=\"dialog\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; injector: injector\"></ng-container>\n</div>\n", styles: [":host ::ng-deep .modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: var(--bs-body-color);--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}:host ::ng-deep .modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade :host ::ng-deep .modal-dialog{transform:translateY(-50px);transition:transform .3s ease-out}@media(prefers-reduced-motion:reduce){.modal.fade :host ::ng-deep .modal-dialog{transition:none}}.modal.show :host ::ng-deep .modal-dialog{transform:none}.modal.modal-static :host ::ng-deep .modal-dialog{transform:scale(1.02)}:host ::ng-deep .modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}:host ::ng-deep .modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}:host ::ng-deep .modal-dialog-scrollable .modal-body{overflow-y:auto}:host ::ng-deep .modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}:host ::ng-deep .modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}:host ::ng-deep .modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}:host ::ng-deep .modal-backdrop.fade{opacity:0}:host ::ng-deep .modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}:host ::ng-deep .modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}:host ::ng-deep .modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin-top:calc(-.5 * var(--bs-modal-header-padding-y));margin-right:calc(-.5 * var(--bs-modal-header-padding-x));margin-bottom:calc(-.5 * var(--bs-modal-header-padding-y));margin-left:auto}:host ::ng-deep .modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}:host ::ng-deep .modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}:host ::ng-deep .modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}:host ::ng-deep .modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media(min-width:576px){:host ::ng-deep .modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}:host ::ng-deep .modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}:host ::ng-deep .modal-sm{--bs-modal-width: 300px}}@media(min-width:992px){:host ::ng-deep .modal-lg,:host ::ng-deep .modal-xl{--bs-modal-width: 800px}}@media(min-width:1200px){:host ::ng-deep .modal-xl{--bs-modal-width: 1140px}}:host ::ng-deep .modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen .modal-header,:host ::ng-deep .modal-fullscreen .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen .modal-body{overflow-y:auto}@media(max-width:575.98px){:host ::ng-deep .modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-header,:host ::ng-deep .modal-fullscreen-sm-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media(max-width:767.98px){:host ::ng-deep .modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-md-down .modal-header,:host ::ng-deep .modal-fullscreen-md-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media(max-width:991.98px){:host ::ng-deep .modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-header,:host ::ng-deep .modal-fullscreen-lg-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media(max-width:1199.98px){:host ::ng-deep .modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-header,:host ::ng-deep .modal-fullscreen-xl-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media(max-width:1399.98px){:host ::ng-deep .modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-header,:host ::ng-deep .modal-fullscreen-xxl-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}:host ::ng-deep .offcanvas,:host ::ng-deep .offcanvas-xxl,:host ::ng-deep .offcanvas-xl,:host ::ng-deep .offcanvas-lg,:host ::ng-deep .offcanvas-md,:host ::ng-deep .offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: var(--bs-body-color);--bs-offcanvas-bg: var(--bs-body-bg);--bs-offcanvas-border-width: var(--bs-border-width);--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);--bs-offcanvas-transition: transform .3s ease-in-out;--bs-offcanvas-title-line-height: 1.5}@media(max-width:575.98px){:host ::ng-deep .offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:575.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-sm{transition:none}}@media(max-width:575.98px){:host ::ng-deep .offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-sm.showing,:host ::ng-deep .offcanvas-sm.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-sm.showing,:host ::ng-deep .offcanvas-sm.hiding,:host ::ng-deep .offcanvas-sm.show{visibility:visible}}@media(min-width:576px){:host ::ng-deep .offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-sm .offcanvas-header{display:none}:host ::ng-deep .offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:767.98px){:host ::ng-deep .offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:767.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-md{transition:none}}@media(max-width:767.98px){:host ::ng-deep .offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-md.showing,:host ::ng-deep .offcanvas-md.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-md.showing,:host ::ng-deep .offcanvas-md.hiding,:host ::ng-deep .offcanvas-md.show{visibility:visible}}@media(min-width:768px){:host ::ng-deep .offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-md .offcanvas-header{display:none}:host ::ng-deep .offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:991.98px){:host ::ng-deep .offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:991.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-lg{transition:none}}@media(max-width:991.98px){:host ::ng-deep .offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-lg.showing,:host ::ng-deep .offcanvas-lg.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-lg.showing,:host ::ng-deep .offcanvas-lg.hiding,:host ::ng-deep .offcanvas-lg.show{visibility:visible}}@media(min-width:992px){:host ::ng-deep .offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-lg .offcanvas-header{display:none}:host ::ng-deep .offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:1199.98px){:host ::ng-deep .offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:1199.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-xl{transition:none}}@media(max-width:1199.98px){:host ::ng-deep .offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-xl.showing,:host ::ng-deep .offcanvas-xl.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-xl.showing,:host ::ng-deep .offcanvas-xl.hiding,:host ::ng-deep .offcanvas-xl.show{visibility:visible}}@media(min-width:1200px){:host ::ng-deep .offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-xl .offcanvas-header{display:none}:host ::ng-deep .offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:1399.98px){:host ::ng-deep .offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:1399.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-xxl{transition:none}}@media(max-width:1399.98px){:host ::ng-deep .offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-xxl.showing,:host ::ng-deep .offcanvas-xxl.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-xxl.showing,:host ::ng-deep .offcanvas-xxl.hiding,:host ::ng-deep .offcanvas-xxl.show{visibility:visible}}@media(min-width:1400px){:host ::ng-deep .offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-xxl .offcanvas-header{display:none}:host ::ng-deep .offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}:host ::ng-deep .offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas{transition:none}}:host ::ng-deep .offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas.showing,:host ::ng-deep .offcanvas.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas.showing,:host ::ng-deep .offcanvas.hiding,:host ::ng-deep .offcanvas.show{visibility:visible}:host ::ng-deep .offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}:host ::ng-deep .offcanvas-backdrop.fade{opacity:0}:host ::ng-deep .offcanvas-backdrop.show{opacity:.5}:host ::ng-deep .offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}:host ::ng-deep .offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y));margin-left:auto}:host ::ng-deep .offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}:host ::ng-deep .offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.offcanvas.oc-max-width{max-width:calc(100% - 40px)}.offcanvas.oc-max-height{max-height:calc(100% - 40px)}.modal-backdrop{z-index:1040}.offcanvas{visibility:unset}.offcanvas.disable-transition{transition:none}.offcanvas.offcanvas-top{height:auto;bottom:unset}.offcanvas.offcanvas-bottom{height:auto;top:unset}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsOffcanvasComponent, isStandalone: true, selector: "bs-offcanvas", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, noPadding: { classPropertyName: "noPadding", publicName: "noPadding", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsOffcanvasHeaderDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/offcanvas/src/templates/offcanvas.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rendered) {\n <ng-template mpBodyTeleport>\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.panel\" [style]=\"p_view.panelStyle\">\n @if (slots().header) {\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.header\">\n <h2 data-mps=\"offcanvas\" [mpProps]=\"p_view.title\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </h2>\n @if (p_view.close) {\n <button data-mps=\"offcanvas\" [mpProps]=\"p_view.close\"></button>\n }\n </div>\n }\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.body\">\n <ng-content />\n </div>\n </div>\n @if (p_view.backdrop) {\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.backdrop\"></div>\n }\n </ng-template>\n}\n", dependencies: [{ kind: "directive", type: MpBodyTeleportDirective, selector: "[mpBodyTeleport]" }, { kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
60
  }
143
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasComponent, decorators: [{
144
62
  type: Component,
145
- args: [{ selector: 'bs-offcanvas-holder', host: {
146
- '(document:keydown.escape)': 'onEscape()',
147
- }, imports: [NgTemplateOutlet, BsOverlayFocusDirective], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, providers: [BsOffcanvasContextService], template: "@if (showBackdrop()) {\n <div [@fadeInOut]=\"{value: ':leave', params: {duration: '300ms'} }\">\n <div class=\"modal-backdrop show\" (click)=\"onBackdropClick($event)\" aria-hidden=\"true\"></div>\n </div>\n}\n<div class=\"offcanvas\"\n [class.show]=\"show()\"\n [class.disable-transition]=\"disableTransition()\"\n [class]=\"[offcanvasClass(), overflowClass()]\"\n [style.height.px]=\"height()\"\n [style.width.px]=\"width()\"\n role=\"dialog\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [bsOverlayFocus]=\"isVisible()\"\n tabindex=\"-1\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; injector: injector\"></ng-container>\n</div>\n", styles: [":host ::ng-deep .modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: var(--bs-body-color);--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}:host ::ng-deep .modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade :host ::ng-deep .modal-dialog{transform:translateY(-50px);transition:transform .3s ease-out}@media(prefers-reduced-motion:reduce){.modal.fade :host ::ng-deep .modal-dialog{transition:none}}.modal.show :host ::ng-deep .modal-dialog{transform:none}.modal.modal-static :host ::ng-deep .modal-dialog{transform:scale(1.02)}:host ::ng-deep .modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}:host ::ng-deep .modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}:host ::ng-deep .modal-dialog-scrollable .modal-body{overflow-y:auto}:host ::ng-deep .modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}:host ::ng-deep .modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}:host ::ng-deep .modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}:host ::ng-deep .modal-backdrop.fade{opacity:0}:host ::ng-deep .modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}:host ::ng-deep .modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}:host ::ng-deep .modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin-top:calc(-.5 * var(--bs-modal-header-padding-y));margin-right:calc(-.5 * var(--bs-modal-header-padding-x));margin-bottom:calc(-.5 * var(--bs-modal-header-padding-y));margin-left:auto}:host ::ng-deep .modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}:host ::ng-deep .modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}:host ::ng-deep .modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}:host ::ng-deep .modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media(min-width:576px){:host ::ng-deep .modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}:host ::ng-deep .modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}:host ::ng-deep .modal-sm{--bs-modal-width: 300px}}@media(min-width:992px){:host ::ng-deep .modal-lg,:host ::ng-deep .modal-xl{--bs-modal-width: 800px}}@media(min-width:1200px){:host ::ng-deep .modal-xl{--bs-modal-width: 1140px}}:host ::ng-deep .modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen .modal-header,:host ::ng-deep .modal-fullscreen .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen .modal-body{overflow-y:auto}@media(max-width:575.98px){:host ::ng-deep .modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-header,:host ::ng-deep .modal-fullscreen-sm-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media(max-width:767.98px){:host ::ng-deep .modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-md-down .modal-header,:host ::ng-deep .modal-fullscreen-md-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media(max-width:991.98px){:host ::ng-deep .modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-header,:host ::ng-deep .modal-fullscreen-lg-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media(max-width:1199.98px){:host ::ng-deep .modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-header,:host ::ng-deep .modal-fullscreen-xl-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media(max-width:1399.98px){:host ::ng-deep .modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-header,:host ::ng-deep .modal-fullscreen-xxl-down .modal-footer{border-radius:0}:host ::ng-deep .modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}:host ::ng-deep .offcanvas,:host ::ng-deep .offcanvas-xxl,:host ::ng-deep .offcanvas-xl,:host ::ng-deep .offcanvas-lg,:host ::ng-deep .offcanvas-md,:host ::ng-deep .offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: var(--bs-body-color);--bs-offcanvas-bg: var(--bs-body-bg);--bs-offcanvas-border-width: var(--bs-border-width);--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);--bs-offcanvas-transition: transform .3s ease-in-out;--bs-offcanvas-title-line-height: 1.5}@media(max-width:575.98px){:host ::ng-deep .offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:575.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-sm{transition:none}}@media(max-width:575.98px){:host ::ng-deep .offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-sm.showing,:host ::ng-deep .offcanvas-sm.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-sm.showing,:host ::ng-deep .offcanvas-sm.hiding,:host ::ng-deep .offcanvas-sm.show{visibility:visible}}@media(min-width:576px){:host ::ng-deep .offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-sm .offcanvas-header{display:none}:host ::ng-deep .offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:767.98px){:host ::ng-deep .offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:767.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-md{transition:none}}@media(max-width:767.98px){:host ::ng-deep .offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-md.showing,:host ::ng-deep .offcanvas-md.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-md.showing,:host ::ng-deep .offcanvas-md.hiding,:host ::ng-deep .offcanvas-md.show{visibility:visible}}@media(min-width:768px){:host ::ng-deep .offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-md .offcanvas-header{display:none}:host ::ng-deep .offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:991.98px){:host ::ng-deep .offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:991.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-lg{transition:none}}@media(max-width:991.98px){:host ::ng-deep .offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-lg.showing,:host ::ng-deep .offcanvas-lg.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-lg.showing,:host ::ng-deep .offcanvas-lg.hiding,:host ::ng-deep .offcanvas-lg.show{visibility:visible}}@media(min-width:992px){:host ::ng-deep .offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-lg .offcanvas-header{display:none}:host ::ng-deep .offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:1199.98px){:host ::ng-deep .offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:1199.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-xl{transition:none}}@media(max-width:1199.98px){:host ::ng-deep .offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-xl.showing,:host ::ng-deep .offcanvas-xl.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-xl.showing,:host ::ng-deep .offcanvas-xl.hiding,:host ::ng-deep .offcanvas-xl.show{visibility:visible}}@media(min-width:1200px){:host ::ng-deep .offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-xl .offcanvas-header{display:none}:host ::ng-deep .offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media(max-width:1399.98px){:host ::ng-deep .offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media(max-width:1399.98px)and (prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas-xxl{transition:none}}@media(max-width:1399.98px){:host ::ng-deep .offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas-xxl.showing,:host ::ng-deep .offcanvas-xxl.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas-xxl.showing,:host ::ng-deep .offcanvas-xxl.hiding,:host ::ng-deep .offcanvas-xxl.show{visibility:visible}}@media(min-width:1400px){:host ::ng-deep .offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}:host ::ng-deep .offcanvas-xxl .offcanvas-header{display:none}:host ::ng-deep .offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}:host ::ng-deep .offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media(prefers-reduced-motion:reduce){:host ::ng-deep .offcanvas{transition:none}}:host ::ng-deep .offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}:host ::ng-deep .offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}:host ::ng-deep .offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}:host ::ng-deep .offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}:host ::ng-deep .offcanvas.showing,:host ::ng-deep .offcanvas.show:not(.hiding){transform:none}:host ::ng-deep .offcanvas.showing,:host ::ng-deep .offcanvas.hiding,:host ::ng-deep .offcanvas.show{visibility:visible}:host ::ng-deep .offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}:host ::ng-deep .offcanvas-backdrop.fade{opacity:0}:host ::ng-deep .offcanvas-backdrop.show{opacity:.5}:host ::ng-deep .offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}:host ::ng-deep .offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y));margin-left:auto}:host ::ng-deep .offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}:host ::ng-deep .offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.offcanvas.oc-max-width{max-width:calc(100% - 40px)}.offcanvas.oc-max-height{max-height:calc(100% - 40px)}.modal-backdrop{z-index:1040}.offcanvas{visibility:unset}.offcanvas.disable-transition{transition:none}.offcanvas.offcanvas-top{height:auto;bottom:unset}.offcanvas.offcanvas-bottom{height:auto;top:unset}\n"] }]
148
- }], ctorParameters: () => [], propDecorators: { isVisibleChange: [{ type: i0.Output, args: ["isVisibleChange"] }], backdropClick: [{ type: i0.Output, args: ["backdropClick"] }] } });
149
-
150
- class OffcanvasHeaderComponent {
151
- constructor() {
152
- this.el = inject(ElementRef);
153
- this.ids = inject(BsIdService);
154
- this.context = inject(BsOffcanvasContextService, { optional: true });
155
- afterNextRender(() => {
156
- const headerDiv = this.el.nativeElement.querySelector('.offcanvas-header');
157
- let id = headerDiv.id;
158
- if (!id) {
159
- id = this.ids.next('bs-offcanvas-header');
160
- headerDiv.id = id;
161
- }
162
- this.context?.headerId.set(id);
163
- });
164
- }
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
166
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: OffcanvasHeaderComponent, isStandalone: true, selector: "bs-offcanvas-header", ngImport: i0, template: "<div class=\"offcanvas-header\">\n <ng-content></ng-content>\n</div>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
167
- }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasHeaderComponent, decorators: [{
169
- type: Component,
170
- args: [{ selector: 'bs-offcanvas-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"offcanvas-header\">\n <ng-content></ng-content>\n</div>" }]
171
- }], ctorParameters: () => [] });
63
+ args: [{ selector: 'bs-offcanvas', imports: [MpBodyTeleportDirective, MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/offcanvas/src/templates/offcanvas.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rendered) {\n <ng-template mpBodyTeleport>\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.panel\" [style]=\"p_view.panelStyle\">\n @if (slots().header) {\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.header\">\n <h2 data-mps=\"offcanvas\" [mpProps]=\"p_view.title\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </h2>\n @if (p_view.close) {\n <button data-mps=\"offcanvas\" [mpProps]=\"p_view.close\"></button>\n }\n </div>\n }\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.body\">\n <ng-content />\n </div>\n </div>\n @if (p_view.backdrop) {\n <div data-mps=\"offcanvas\" [mpProps]=\"p_view.backdrop\"></div>\n }\n </ng-template>\n}\n" }]
64
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], noPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "noPadding", required: false }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsOffcanvasHeaderDirective), { isSignal: true }] }] } });
172
65
 
173
- class OffcanvasBodyComponent {
174
- constructor() {
175
- this.el = inject(ElementRef);
176
- this.ids = inject(BsIdService);
177
- this.context = inject(BsOffcanvasContextService, { optional: true });
178
- this.noPadding = input(false, /* @ts-ignore */
179
- ...(ngDevMode ? [{ debugName: "noPadding" }] : /* istanbul ignore next */ []));
180
- afterNextRender(() => {
181
- const bodyDiv = this.el.nativeElement.querySelector('.offcanvas-body');
182
- let id = bodyDiv.id;
183
- if (!id) {
184
- id = this.ids.next('bs-offcanvas-body');
185
- bodyDiv.id = id;
186
- }
187
- this.context?.bodyId.set(id);
188
- });
189
- }
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
191
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: OffcanvasBodyComponent, isStandalone: true, selector: "bs-offcanvas-body", inputs: { noPadding: { classPropertyName: "noPadding", publicName: "noPadding", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"offcanvas-body\" [class.p-0]=\"noPadding()\">\n <ng-content></ng-content>\n</div>", styles: [".offcanvas-body{overflow:unset}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
192
- }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasBodyComponent, decorators: [{
194
- type: Component,
195
- args: [{ selector: 'bs-offcanvas-body', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"offcanvas-body\" [class.p-0]=\"noPadding()\">\n <ng-content></ng-content>\n</div>", styles: [".offcanvas-body{overflow:unset}\n"] }]
196
- }], ctorParameters: () => [], propDecorators: { noPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "noPadding", required: false }] }] } });
197
-
198
- const PORTAL_FACTORY = new InjectionToken('OffcanvasPortalFactory');
66
+ // GENERATED from the offcanvas manifest by @mintplayer/nx-component-compiler. Do not edit.
199
67
 
200
- class BsOffcanvasHostComponent {
201
- constructor() {
202
- this.overlayService = inject(Overlay);
203
- this.rootInjector = inject(Injector);
204
- this.appRef = inject(ApplicationRef);
205
- this.portalFactory = inject(PORTAL_FACTORY);
206
- // Signals
207
- this.viewInited = signal(false, /* @ts-ignore */
208
- ...(ngDevMode ? [{ debugName: "viewInited" }] : /* istanbul ignore next */ []));
209
- this.isVisible = model(false, /* @ts-ignore */
210
- ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
211
- this.size = model(null, /* @ts-ignore */
212
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
213
- this.position = model('bottom', /* @ts-ignore */
214
- ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
215
- this.hasBackdrop = model(false, /* @ts-ignore */
216
- ...(ngDevMode ? [{ debugName: "hasBackdrop" }] : /* istanbul ignore next */ []));
217
- this.backdropClick = output();
218
- // Effect to sync isVisible with the inner component
219
- effect(() => {
220
- const isVisible = this.isVisible();
221
- if (this.component) {
222
- this.component.instance.isVisible.set(isVisible);
223
- }
224
- });
225
- // Effect to sync position with the inner component
226
- effect(() => {
227
- const position = this.position();
228
- if (this.component && this.viewInited()) {
229
- this.component.instance.position.set(position);
230
- }
231
- });
232
- // Effect to sync size with the inner component
233
- effect(() => {
234
- const size = this.size();
235
- if (this.component && this.viewInited()) {
236
- this.component.instance.size.set(size);
237
- }
238
- });
239
- // Effect to sync hasBackdrop with the inner component
240
- effect(() => {
241
- const hasBackdrop = this.hasBackdrop();
242
- if (this.component && this.viewInited()) {
243
- this.component.instance.hasBackdrop.set(hasBackdrop);
244
- }
245
- });
246
- }
247
- ngAfterViewInit() {
248
- const injector = Injector.create({
249
- providers: [
250
- { provide: OFFCANVAS_CONTENT, useValue: this.content },
251
- ],
252
- parent: this.rootInjector,
253
- });
254
- const portal = this.portalFactory(injector);
255
- this.overlayRef = this.overlayService.create({
256
- scrollStrategy: this.overlayService.scrollStrategies.reposition(),
257
- positionStrategy: this.overlayService.position().global()
258
- .top('0').left('0').bottom('0').right('0'),
259
- hasBackdrop: false
260
- });
261
- this.component = this.overlayRef.attach(portal);
262
- this.backdropClickSubscription = this.component.instance.backdropClick.subscribe((ev) => this.backdropClick.emit(ev));
263
- // Initialize the inner component with current values
264
- this.component.instance.isVisible.set(this.isVisible());
265
- this.component.instance.position.set(this.position());
266
- this.component.instance.size.set(this.size());
267
- this.component.instance.hasBackdrop.set(this.hasBackdrop());
268
- this.viewInited.set(true);
269
- }
270
- /**
271
- * Plays the panel's hide transition, then disposes the overlay. The hide is written to the
272
- * panel directly: this host's sync effects are destroyed with it and would never deliver it.
273
- * If the application is torn down before the transition ends, the pending dispose is
274
- * cancelled and runs at once, so no timer outlives the app.
275
- */
276
- ngOnDestroy() {
277
- this.backdropClickSubscription?.unsubscribe();
278
- if (!this.overlayRef)
279
- return;
280
- const overlayRef = this.overlayRef;
281
- this.component.instance.isVisible.set(false);
282
- const dispose = () => {
283
- clearTimeout(timer);
284
- unregister();
285
- overlayRef.dispose();
286
- };
287
- const timer = setTimeout(dispose, OFFCANVAS_TRANSITION_MS);
288
- const unregister = this.appRef.onDestroy(dispose);
289
- }
290
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
291
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsOffcanvasHostComponent, isStandalone: true, selector: "bs-offcanvas", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isVisible: "isVisibleChange", size: "sizeChange", position: "positionChange", hasBackdrop: "hasBackdropChange", backdropClick: "backdropClick" }, providers: [{
292
- provide: PORTAL_FACTORY,
293
- useValue: (injector) => {
294
- return new ComponentPortal(BsOffcanvasComponent, null, injector);
295
- }
296
- }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n", styles: [""], dependencies: [{ kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
297
- }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHostComponent, decorators: [{
299
- type: Component,
300
- args: [{ selector: 'bs-offcanvas', imports: [BsHasOverlayComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
301
- provide: PORTAL_FACTORY,
302
- useValue: (injector) => {
303
- return new ComponentPortal(BsOffcanvasComponent, null, injector);
304
- }
305
- }], template: "<bs-has-overlay></bs-has-overlay>\n" }]
306
- }], ctorParameters: () => [], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }, { type: i0.Output, args: ["isVisibleChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }, { type: i0.Output, args: ["positionChange"] }], hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }, { type: i0.Output, args: ["hasBackdropChange"] }], backdropClick: [{ type: i0.Output, args: ["backdropClick"] }] } });
307
-
308
- class BsOffcanvasCloseDirective {
309
- constructor() {
310
- this.offcanvas = inject(BsOffcanvasHostComponent);
311
- }
312
- onClick() {
313
- this.offcanvas.isVisible.set(false);
314
- }
315
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
316
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOffcanvasCloseDirective, isStandalone: true, selector: "[bsOffcanvasClose]", host: { listeners: { "click": "onClick()" }, properties: { "attr.aria-label": "\"Close\"" } }, ngImport: i0 }); }
317
- }
318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasCloseDirective, decorators: [{
319
- type: Directive,
320
- args: [{
321
- selector: '[bsOffcanvasClose]',
322
- host: {
323
- '[attr.aria-label]': '"Close"',
324
- '(click)': 'onClick()',
325
- },
326
- }]
327
- }] });
328
-
329
- class BsOffcanvasContentDirective {
330
- constructor() {
331
- const offcanvasHost = inject(BsOffcanvasHostComponent);
332
- const template = inject(TemplateRef);
333
- offcanvasHost.content = template;
334
- }
335
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
336
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOffcanvasContentDirective, isStandalone: true, selector: "[bsOffcanvasContent]", ngImport: i0 }); }
337
- }
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContentDirective, decorators: [{
339
- type: Directive,
340
- args: [{
341
- selector: '[bsOffcanvasContent]',
342
- }]
343
- }], ctorParameters: () => [] });
344
-
345
- class BsOffcanvasPushDirective {
346
- constructor() {
347
- this.element = inject(ElementRef);
348
- this.builder = inject(AnimationBuilder);
349
- this.offcanvas = input(null, { ...(ngDevMode ? { debugName: "offcanvas" } : /* istanbul ignore next */ {}), alias: 'bsOffcanvasPush' });
350
- let previousIsVisible = null;
351
- effect(() => {
352
- const offcanvas = this.offcanvas();
353
- if (!offcanvas)
354
- return;
355
- const isVisible = offcanvas.isVisible();
356
- // Skip the first run (initial state)
357
- if (previousIsVisible === null) {
358
- previousIsVisible = isVisible;
359
- return;
360
- }
361
- // Skip if no change
362
- if (previousIsVisible === isVisible)
363
- return;
364
- previousIsVisible = isVisible;
365
- let data;
366
- if (isVisible) {
367
- data = [
368
- style({ 'margin-left': '0', 'margin-right': '0' }),
369
- animate('250ms', style({ 'margin-left': '400px', 'margin-right': '-400px' })),
370
- ];
371
- let el = this.element.nativeElement;
372
- while (el.parentElement && !['scroll', 'visible'].includes(el.parentElement.style.overflowX)) {
373
- el = el.parentElement;
374
- }
375
- if (this.element.nativeElement.parentElement) {
376
- // Remember the value of the element that is clipped, which is only the direct
377
- // parent when the walk stopped immediately.
378
- this.initialOverflowX = { value: el.style.overflowX, element: el };
379
- el.style.overflowX = 'hidden';
380
- }
381
- }
382
- else {
383
- data = [
384
- style({ 'margin-left': '400px', 'margin-right': '-400px' }),
385
- animate('250ms', style({ 'margin-left': '0', 'margin-right': '0' })),
386
- ];
387
- }
388
- const b = this.builder.build(data);
389
- const player = b.create(this.element.nativeElement, {});
390
- if (!isVisible) {
391
- player.onDone(() => {
392
- if (this.element.nativeElement.parentElement && this.initialOverflowX) {
393
- this.initialOverflowX.element.style.overflowX = this.initialOverflowX.value;
394
- }
395
- });
396
- }
397
- player.play();
398
- });
399
- }
400
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasPushDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
401
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsOffcanvasPushDirective, isStandalone: true, selector: "[bsOffcanvasPush]", inputs: { offcanvas: { classPropertyName: "offcanvas", publicName: "bsOffcanvasPush", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
402
- }
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasPushDirective, decorators: [{
404
- type: Directive,
405
- args: [{
406
- selector: '[bsOffcanvasPush]',
407
- }]
408
- }], ctorParameters: () => [], propDecorators: { offcanvas: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsOffcanvasPush", required: false }] }] } });
68
+ // Generated from @mintplayer/ui-core/offcanvas (#458 D10).
409
69
 
410
70
  /**
411
71
  * Generated bundle index. Do not edit.
412
72
  */
413
73
 
414
- export { BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasContentDirective, BsOffcanvasHostComponent, BsOffcanvasPushDirective, OFFCANVAS_TRANSITION_MS, OffcanvasBodyComponent, OffcanvasHeaderComponent };
74
+ export { BsOffcanvasComponent, BsOffcanvasHeaderDirective };
415
75
  //# sourceMappingURL=mintplayer-ng-bootstrap-offcanvas.mjs.map