@mintplayer/ng-bootstrap 22.32.0 → 22.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  3. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  5. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  7. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
  12. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  13. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +5 -9
  14. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  15. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
  16. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  17. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +7 -9
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +12 -14
  20. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  21. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  22. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +8 -8
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  25. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
  26. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
  28. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  29. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +7 -7
  30. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  31. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  32. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  33. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  34. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +15 -27
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +6 -10
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +7 -9
  40. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  41. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  42. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  43. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  44. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  45. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
  46. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  47. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  48. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
  50. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
  52. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  53. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
  54. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  55. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
  56. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  57. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
  58. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  59. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +201 -18
  60. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  62. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  63. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
  64. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +13 -15
  66. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  67. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
  68. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
  69. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
  70. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
  72. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  73. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
  74. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
  76. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  77. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
  78. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  79. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  80. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  81. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
  82. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
  84. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  86. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  87. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
  88. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  90. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
  92. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  93. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +8 -16
  94. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
  96. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
  98. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  100. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  101. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  102. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  103. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +49 -65
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -24
  106. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  107. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
  108. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  109. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -9
  110. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  111. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  112. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  113. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +7 -9
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +7 -7
  116. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  117. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
  118. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  119. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
  120. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  121. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
  122. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  123. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  125. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  126. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  127. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  128. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  129. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +13 -17
  130. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  131. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
  132. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
  134. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  135. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +10 -12
  136. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  137. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  138. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  139. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
  140. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  141. package/package.json +2 -22
  142. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
  143. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  144. package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
  145. package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
  146. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
  147. package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
  148. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  149. package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
  150. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  151. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  152. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  153. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  154. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
  155. package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
  156. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  157. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  158. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  159. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  160. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
  161. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
  162. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  163. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  164. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  165. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  166. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  167. package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
  168. package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
  169. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  170. package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
  171. package/types/mintplayer-ng-bootstrap-machine.d.ts +101 -4
  172. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  173. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
  174. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  175. package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
  176. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
  177. package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
  178. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  179. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
  180. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
  181. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  182. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
  183. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
  184. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  185. package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
  186. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  187. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
  188. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  189. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  190. package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
  191. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  192. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  193. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  194. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  195. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
  196. package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
  197. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  198. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
  199. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  200. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
  201. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  202. package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
  203. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  204. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  205. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
  206. package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
  207. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  208. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  209. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  210. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  211. package/calendar-month/package.json +0 -4
  212. package/dropdown-divider/package.json +0 -4
  213. package/dropdown-menu/package.json +0 -4
  214. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  215. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  216. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
  217. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  218. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
  219. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  220. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  221. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  222. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  223. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  224. package/has-overlay/package.json +0 -4
  225. package/no-noscript/package.json +0 -4
  226. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  227. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
  228. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  229. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  230. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,424 +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 { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
5
- import { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';
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';
6
8
  import { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';
7
- import { FadeInOutAnimation } from '@mintplayer/ng-animations';
8
- import { BsOverlayFocusDirective, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
9
- import { Overlay } from '@angular/cdk/overlay';
10
- import { ComponentPortal } from '@angular/cdk/portal';
11
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
12
- import { AnimationBuilder, style, animate } from '@angular/animations';
13
9
 
14
- const OFFCANVAS_CONTENT = new InjectionToken('OffcanvasContent');
15
-
16
- /**
17
- * Component-scoped state shared between BsOffcanvasComponent (the dialog renderer)
18
- * and the bs-offcanvas-header / bs-offcanvas-body components inside the user's
19
- * template. Provides the ids for aria-labelledby and aria-describedby.
20
- */
21
- 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 {
22
13
  constructor() {
23
- this.headerId = signal(null, /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
25
- this.bodyId = signal(null, /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "bodyId" }] : /* istanbul ignore next */ []));
14
+ this.templateRef = inject(TemplateRef);
27
15
  }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
29
- 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 }); }
30
18
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContextService, decorators: [{
32
- 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]' }]
33
22
  }] });
34
-
35
- /** Duration of the panel's slide transition (Bootstrap's $offcanvas-transition-duration). */
36
- 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
+ */
37
28
  class BsOffcanvasComponent {
29
+ #core;
38
30
  constructor() {
39
- this.contentTemplate = inject(OFFCANVAS_CONTENT);
40
- this.platformId = inject(PLATFORM_ID);
41
- this.context = inject(BsOffcanvasContextService);
42
- this.injector = inject(Injector);
43
- // Core state signals
44
- 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 */
45
36
  ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
46
- this.size = signal(null, /* @ts-ignore */
47
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
48
- this.isVisible = signal(false, /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
50
- this.hasBackdrop = signal(false, /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "hasBackdrop" }] : /* istanbul ignore next */ []));
52
- // Internal state signals
53
- this.disableTransition = signal(false, /* @ts-ignore */
54
- ...(ngDevMode ? [{ debugName: "disableTransition" }] : /* istanbul ignore next */ []));
55
- this.offcanvasClass = signal(null, /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "offcanvasClass" }] : /* istanbul ignore next */ []));
57
- this.visibility = signal('hidden', /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "visibility" }] : /* istanbul ignore next */ []));
59
- this.show = signal(false, /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
61
- // Computed signals
62
- this.width = computed(() => {
63
- const position = this.position();
64
- const size = this.size();
65
- return ['start', 'end'].includes(position) ? size : null;
66
- }, /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
68
- this.height = computed(() => {
69
- const position = this.position();
70
- const size = this.size();
71
- return ['top', 'bottom'].includes(position) ? size : null;
72
- }, /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
74
- this.overflowClass = computed(() => {
75
- const position = this.position();
76
- return ['top', 'bottom'].includes(position) ? 'overflow-y-hidden' : 'overflow-x-hidden';
77
- }, /* @ts-ignore */
78
- ...(ngDevMode ? [{ debugName: "overflowClass" }] : /* istanbul ignore next */ []));
79
- this.showBackdrop = computed(() => {
80
- return this.hasBackdrop() && this.isVisible();
81
- }, /* @ts-ignore */
82
- ...(ngDevMode ? [{ debugName: "showBackdrop" }] : /* istanbul ignore next */ []));
83
- // Outputs
84
- this.isVisibleChange = output();
85
- this.backdropClick = output();
86
- // #452: the modal and offcanvas partials ship with this component, scoped to the elements it stamps (data-mps="offcanvas").
87
- useBootstrap(bootstrapModal, bootstrapOffcanvas);
88
- // Effect to handle position changes - disable transition temporarily
89
- effect(() => {
90
- const position = this.position();
91
- // Use untracked to avoid creating dependency on disableTransition
92
- untracked(() => {
93
- this.disableTransition.set(true);
94
- this.offcanvasClass.set(`offcanvas-${position}`);
95
- // Re-enable transitions after browser has processed position change
96
- if (!isPlatformServer(this.platformId)) {
97
- requestAnimationFrame(() => {
98
- this.disableTransition.set(false);
99
- });
100
- }
101
- });
102
- });
103
- // Effect to handle visibility changes
104
- effect(() => {
105
- const isVisible = this.isVisible();
106
- untracked(() => {
107
- if (isVisible) {
108
- // When showing: set visibility immediately, then add .show class after position is applied
109
- this.visibility.set('visible');
110
- // Delay adding .show class to allow position to be applied first
111
- if (!isPlatformServer(this.platformId)) {
112
- requestAnimationFrame(() => {
113
- requestAnimationFrame(() => {
114
- this.show.set(true);
115
- });
116
- });
117
- }
118
- }
119
- else {
120
- // When hiding: remove .show class immediately, delay visibility for animation
121
- this.show.set(false);
122
- setTimeout(() => {
123
- if (!this.isVisible()) {
124
- this.visibility.set('hidden');
125
- }
126
- }, OFFCANVAS_TRANSITION_MS);
127
- }
128
- });
129
- });
130
- }
131
- onBackdropClick(ev) {
132
- this.backdropClick.emit(ev);
133
- }
134
- /**
135
- * Escape closes — the dialog pattern's universal exit, and the panel traps
136
- * focus while open (bsOverlayFocus), so without this a keyboard user had no
137
- * way out at all.
138
- */
139
- onEscape() {
140
- if (!this.isVisible())
141
- return;
142
- this.isVisible.set(false);
143
- this.isVisibleChange.emit(false);
37
+ this.size = input(null, { ...(ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? null : 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);
144
57
  }
145
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
146
- 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 data-mps=\"offcanvas\" [@fadeInOut]=\"{value: ':leave', params: {duration: '300ms'} }\">\n <div data-mps=\"offcanvas\" class=\"modal-backdrop show\" (click)=\"onBackdropClick($event)\" aria-hidden=\"true\"></div>\n </div>\n}\n<div data-mps=\"offcanvas\" 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: [".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 }); }
147
60
  }
148
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasComponent, decorators: [{
149
62
  type: Component,
150
- args: [{ selector: 'bs-offcanvas-holder', host: {
151
- '(document:keydown.escape)': 'onEscape()',
152
- }, imports: [NgTemplateOutlet, BsOverlayFocusDirective], animations: [FadeInOutAnimation], changeDetection: ChangeDetectionStrategy.OnPush, providers: [BsOffcanvasContextService], template: "@if (showBackdrop()) {\n <div data-mps=\"offcanvas\" [@fadeInOut]=\"{value: ':leave', params: {duration: '300ms'} }\">\n <div data-mps=\"offcanvas\" class=\"modal-backdrop show\" (click)=\"onBackdropClick($event)\" aria-hidden=\"true\"></div>\n </div>\n}\n<div data-mps=\"offcanvas\" 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: [".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"] }]
153
- }], ctorParameters: () => [], propDecorators: { isVisibleChange: [{ type: i0.Output, args: ["isVisibleChange"] }], backdropClick: [{ type: i0.Output, args: ["backdropClick"] }] } });
154
-
155
- class OffcanvasHeaderComponent {
156
- constructor() {
157
- this.el = inject(ElementRef);
158
- this.ids = inject(BsIdService);
159
- this.context = inject(BsOffcanvasContextService, { optional: true });
160
- // #452: the offcanvas partial ships with this component, scoped to the elements it stamps (data-mps="offcanvas").
161
- useBootstrap(bootstrapOffcanvas);
162
- afterNextRender(() => {
163
- const headerDiv = this.el.nativeElement.querySelector('.offcanvas-header');
164
- let id = headerDiv.id;
165
- if (!id) {
166
- id = this.ids.next('bs-offcanvas-header');
167
- headerDiv.id = id;
168
- }
169
- this.context?.headerId.set(id);
170
- });
171
- }
172
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
173
- 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 data-mps=\"offcanvas\" class=\"offcanvas-header\">\n <ng-content></ng-content>\n</div>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
174
- }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasHeaderComponent, decorators: [{
176
- type: Component,
177
- args: [{ selector: 'bs-offcanvas-header', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div data-mps=\"offcanvas\" class=\"offcanvas-header\">\n <ng-content></ng-content>\n</div>" }]
178
- }], 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 }] }] } });
179
65
 
180
- class OffcanvasBodyComponent {
181
- constructor() {
182
- this.el = inject(ElementRef);
183
- this.ids = inject(BsIdService);
184
- this.context = inject(BsOffcanvasContextService, { optional: true });
185
- this.noPadding = input(false, /* @ts-ignore */
186
- ...(ngDevMode ? [{ debugName: "noPadding" }] : /* istanbul ignore next */ []));
187
- // #452: the offcanvas partial ships with this component, scoped to the elements it stamps (data-mps="offcanvas").
188
- useBootstrap(bootstrapOffcanvas);
189
- afterNextRender(() => {
190
- const bodyDiv = this.el.nativeElement.querySelector('.offcanvas-body');
191
- let id = bodyDiv.id;
192
- if (!id) {
193
- id = this.ids.next('bs-offcanvas-body');
194
- bodyDiv.id = id;
195
- }
196
- this.context?.bodyId.set(id);
197
- });
198
- }
199
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
200
- 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 data-mps=\"offcanvas\" class=\"offcanvas-body\" [class.p-0]=\"noPadding()\">\n <ng-content></ng-content>\n</div>", styles: [".offcanvas-body{overflow:unset}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
201
- }
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: OffcanvasBodyComponent, decorators: [{
203
- type: Component,
204
- args: [{ selector: 'bs-offcanvas-body', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div data-mps=\"offcanvas\" class=\"offcanvas-body\" [class.p-0]=\"noPadding()\">\n <ng-content></ng-content>\n</div>", styles: [".offcanvas-body{overflow:unset}\n"] }]
205
- }], ctorParameters: () => [], propDecorators: { noPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "noPadding", required: false }] }] } });
206
-
207
- const PORTAL_FACTORY = new InjectionToken('OffcanvasPortalFactory');
66
+ // GENERATED from the offcanvas manifest by @mintplayer/nx-component-compiler. Do not edit.
208
67
 
209
- class BsOffcanvasHostComponent {
210
- constructor() {
211
- this.overlayService = inject(Overlay);
212
- this.rootInjector = inject(Injector);
213
- this.appRef = inject(ApplicationRef);
214
- this.portalFactory = inject(PORTAL_FACTORY);
215
- // Signals
216
- this.viewInited = signal(false, /* @ts-ignore */
217
- ...(ngDevMode ? [{ debugName: "viewInited" }] : /* istanbul ignore next */ []));
218
- this.isVisible = model(false, /* @ts-ignore */
219
- ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
220
- this.size = model(null, /* @ts-ignore */
221
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
222
- this.position = model('bottom', /* @ts-ignore */
223
- ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
224
- this.hasBackdrop = model(false, /* @ts-ignore */
225
- ...(ngDevMode ? [{ debugName: "hasBackdrop" }] : /* istanbul ignore next */ []));
226
- this.backdropClick = output();
227
- // Effect to sync isVisible with the inner component
228
- effect(() => {
229
- const isVisible = this.isVisible();
230
- if (this.component) {
231
- this.component.instance.isVisible.set(isVisible);
232
- }
233
- });
234
- // Effect to sync position with the inner component
235
- effect(() => {
236
- const position = this.position();
237
- if (this.component && this.viewInited()) {
238
- this.component.instance.position.set(position);
239
- }
240
- });
241
- // Effect to sync size with the inner component
242
- effect(() => {
243
- const size = this.size();
244
- if (this.component && this.viewInited()) {
245
- this.component.instance.size.set(size);
246
- }
247
- });
248
- // Effect to sync hasBackdrop with the inner component
249
- effect(() => {
250
- const hasBackdrop = this.hasBackdrop();
251
- if (this.component && this.viewInited()) {
252
- this.component.instance.hasBackdrop.set(hasBackdrop);
253
- }
254
- });
255
- }
256
- ngAfterViewInit() {
257
- const injector = Injector.create({
258
- providers: [
259
- { provide: OFFCANVAS_CONTENT, useValue: this.content },
260
- ],
261
- parent: this.rootInjector,
262
- });
263
- const portal = this.portalFactory(injector);
264
- this.overlayRef = this.overlayService.create({
265
- scrollStrategy: this.overlayService.scrollStrategies.reposition(),
266
- positionStrategy: this.overlayService.position().global()
267
- .top('0').left('0').bottom('0').right('0'),
268
- hasBackdrop: false
269
- });
270
- this.component = this.overlayRef.attach(portal);
271
- this.backdropClickSubscription = this.component.instance.backdropClick.subscribe((ev) => this.backdropClick.emit(ev));
272
- // Initialize the inner component with current values
273
- this.component.instance.isVisible.set(this.isVisible());
274
- this.component.instance.position.set(this.position());
275
- this.component.instance.size.set(this.size());
276
- this.component.instance.hasBackdrop.set(this.hasBackdrop());
277
- this.viewInited.set(true);
278
- }
279
- /**
280
- * Plays the panel's hide transition, then disposes the overlay. The hide is written to the
281
- * panel directly: this host's sync effects are destroyed with it and would never deliver it.
282
- * If the application is torn down before the transition ends, the pending dispose is
283
- * cancelled and runs at once, so no timer outlives the app.
284
- */
285
- ngOnDestroy() {
286
- this.backdropClickSubscription?.unsubscribe();
287
- if (!this.overlayRef)
288
- return;
289
- const overlayRef = this.overlayRef;
290
- this.component.instance.isVisible.set(false);
291
- const dispose = () => {
292
- clearTimeout(timer);
293
- unregister();
294
- overlayRef.dispose();
295
- };
296
- const timer = setTimeout(dispose, OFFCANVAS_TRANSITION_MS);
297
- const unregister = this.appRef.onDestroy(dispose);
298
- }
299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
300
- 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: [{
301
- provide: PORTAL_FACTORY,
302
- useValue: (injector) => {
303
- return new ComponentPortal(BsOffcanvasComponent, null, injector);
304
- }
305
- }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n", styles: [""], dependencies: [{ kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
306
- }
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasHostComponent, decorators: [{
308
- type: Component,
309
- args: [{ selector: 'bs-offcanvas', imports: [BsHasOverlayComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
310
- provide: PORTAL_FACTORY,
311
- useValue: (injector) => {
312
- return new ComponentPortal(BsOffcanvasComponent, null, injector);
313
- }
314
- }], template: "<bs-has-overlay></bs-has-overlay>\n" }]
315
- }], 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"] }] } });
316
-
317
- class BsOffcanvasCloseDirective {
318
- constructor() {
319
- this.offcanvas = inject(BsOffcanvasHostComponent);
320
- }
321
- onClick() {
322
- this.offcanvas.isVisible.set(false);
323
- }
324
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
325
- 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 }); }
326
- }
327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasCloseDirective, decorators: [{
328
- type: Directive,
329
- args: [{
330
- selector: '[bsOffcanvasClose]',
331
- host: {
332
- '[attr.aria-label]': '"Close"',
333
- '(click)': 'onClick()',
334
- },
335
- }]
336
- }] });
337
-
338
- class BsOffcanvasContentDirective {
339
- constructor() {
340
- const offcanvasHost = inject(BsOffcanvasHostComponent);
341
- const template = inject(TemplateRef);
342
- offcanvasHost.content = template;
343
- }
344
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
345
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsOffcanvasContentDirective, isStandalone: true, selector: "[bsOffcanvasContent]", ngImport: i0 }); }
346
- }
347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasContentDirective, decorators: [{
348
- type: Directive,
349
- args: [{
350
- selector: '[bsOffcanvasContent]',
351
- }]
352
- }], ctorParameters: () => [] });
353
-
354
- class BsOffcanvasPushDirective {
355
- constructor() {
356
- this.element = inject(ElementRef);
357
- this.builder = inject(AnimationBuilder);
358
- this.offcanvas = input(null, { ...(ngDevMode ? { debugName: "offcanvas" } : /* istanbul ignore next */ {}), alias: 'bsOffcanvasPush' });
359
- let previousIsVisible = null;
360
- effect(() => {
361
- const offcanvas = this.offcanvas();
362
- if (!offcanvas)
363
- return;
364
- const isVisible = offcanvas.isVisible();
365
- // Skip the first run (initial state)
366
- if (previousIsVisible === null) {
367
- previousIsVisible = isVisible;
368
- return;
369
- }
370
- // Skip if no change
371
- if (previousIsVisible === isVisible)
372
- return;
373
- previousIsVisible = isVisible;
374
- let data;
375
- if (isVisible) {
376
- data = [
377
- style({ 'margin-left': '0', 'margin-right': '0' }),
378
- animate('250ms', style({ 'margin-left': '400px', 'margin-right': '-400px' })),
379
- ];
380
- let el = this.element.nativeElement;
381
- while (el.parentElement && !['scroll', 'visible'].includes(el.parentElement.style.overflowX)) {
382
- el = el.parentElement;
383
- }
384
- if (this.element.nativeElement.parentElement) {
385
- // Remember the value of the element that is clipped, which is only the direct
386
- // parent when the walk stopped immediately.
387
- this.initialOverflowX = { value: el.style.overflowX, element: el };
388
- el.style.overflowX = 'hidden';
389
- }
390
- }
391
- else {
392
- data = [
393
- style({ 'margin-left': '400px', 'margin-right': '-400px' }),
394
- animate('250ms', style({ 'margin-left': '0', 'margin-right': '0' })),
395
- ];
396
- }
397
- const b = this.builder.build(data);
398
- const player = b.create(this.element.nativeElement, {});
399
- if (!isVisible) {
400
- player.onDone(() => {
401
- if (this.element.nativeElement.parentElement && this.initialOverflowX) {
402
- this.initialOverflowX.element.style.overflowX = this.initialOverflowX.value;
403
- }
404
- });
405
- }
406
- player.play();
407
- });
408
- }
409
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasPushDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
410
- 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 }); }
411
- }
412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsOffcanvasPushDirective, decorators: [{
413
- type: Directive,
414
- args: [{
415
- selector: '[bsOffcanvasPush]',
416
- }]
417
- }], ctorParameters: () => [], propDecorators: { offcanvas: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsOffcanvasPush", required: false }] }] } });
68
+ // Generated from @mintplayer/ui-core/offcanvas (#458 D10).
418
69
 
419
70
  /**
420
71
  * Generated bundle index. Do not edit.
421
72
  */
422
73
 
423
- export { BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasContentDirective, BsOffcanvasHostComponent, BsOffcanvasPushDirective, OFFCANVAS_TRANSITION_MS, OffcanvasBodyComponent, OffcanvasHeaderComponent };
74
+ export { BsOffcanvasComponent, BsOffcanvasHeaderDirective };
424
75
  //# sourceMappingURL=mintplayer-ng-bootstrap-offcanvas.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-offcanvas.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/providers/offcanvas-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/services/offcanvas-context.service.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas/offcanvas.component.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas/offcanvas.component.html","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-header/offcanvas-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-header/offcanvas-header.component.html","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-body/offcanvas-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-body/offcanvas-body.component.html","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-host/offcanvas-host.component.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/components/offcanvas-host/offcanvas-host.component.html","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/directives/offcanvas-close/offcanvas-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/directives/offcanvas-content/offcanvas-content.directive.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/directives/offcanvas-push/offcanvas-push.directive.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/mintplayer-ng-bootstrap-offcanvas.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const OFFCANVAS_CONTENT = new InjectionToken<TemplateRef<any>>('OffcanvasContent');","import { Injectable, signal } from '@angular/core';\n\n/**\n * Component-scoped state shared between BsOffcanvasComponent (the dialog renderer)\n * and the bs-offcanvas-header / bs-offcanvas-body components inside the user's\n * template. Provides the ids for aria-labelledby and aria-describedby.\n */\n@Injectable()\nexport class BsOffcanvasContextService {\n readonly headerId = signal<string | null>(null);\n readonly bodyId = signal<string | null>(null);\n}\n","import { isPlatformServer, NgTemplateOutlet } from '@angular/common';\nimport { Component, computed, effect, inject, Injector, output, PLATFORM_ID, signal, TemplateRef, untracked, ChangeDetectionStrategy } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\nimport { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';\nimport { FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { BsOverlayFocusDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { OFFCANVAS_CONTENT } from '../../providers/offcanvas-content.provider';\nimport { BsOffcanvasContextService } from '../../services/offcanvas-context.service';\n\n/** Duration of the panel's slide transition (Bootstrap's $offcanvas-transition-duration). */\nexport const OFFCANVAS_TRANSITION_MS = 300;\n\n@Component({\n selector: 'bs-offcanvas-holder',\n host: {\n '(document:keydown.escape)': 'onEscape()',\n },\n templateUrl: './offcanvas.component.html',\n styleUrls: ['./offcanvas.component.scss'],\n imports: [NgTemplateOutlet, BsOverlayFocusDirective],\n animations: [FadeInOutAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [BsOffcanvasContextService],\n})\nexport class BsOffcanvasComponent {\n\n contentTemplate = inject<TemplateRef<any>>(OFFCANVAS_CONTENT);\n private platformId = inject(PLATFORM_ID);\n context = inject(BsOffcanvasContextService);\n injector = inject(Injector);\n\n constructor() {\n // #452: the modal and offcanvas partials ship with this component, scoped to the elements it stamps (data-mps=\"offcanvas\").\n useBootstrap(bootstrapModal, bootstrapOffcanvas);\n // Effect to handle position changes - disable transition temporarily\n effect(() => {\n const position = this.position();\n // Use untracked to avoid creating dependency on disableTransition\n untracked(() => {\n this.disableTransition.set(true);\n this.offcanvasClass.set(`offcanvas-${position}`);\n // Re-enable transitions after browser has processed position change\n if (!isPlatformServer(this.platformId)) {\n requestAnimationFrame(() => {\n this.disableTransition.set(false);\n });\n }\n });\n });\n\n // Effect to handle visibility changes\n effect(() => {\n const isVisible = this.isVisible();\n untracked(() => {\n if (isVisible) {\n // When showing: set visibility immediately, then add .show class after position is applied\n this.visibility.set('visible');\n // Delay adding .show class to allow position to be applied first\n if (!isPlatformServer(this.platformId)) {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.show.set(true);\n });\n });\n }\n } else {\n // When hiding: remove .show class immediately, delay visibility for animation\n this.show.set(false);\n setTimeout(() => {\n if (!this.isVisible()) {\n this.visibility.set('hidden');\n }\n }, OFFCANVAS_TRANSITION_MS);\n }\n });\n });\n }\n\n // Core state signals\n position = signal<Position>('bottom');\n size = signal<number | null>(null);\n isVisible = signal<boolean>(false);\n hasBackdrop = signal<boolean>(false);\n\n // Internal state signals\n disableTransition = signal<boolean>(false);\n offcanvasClass = signal<string | null>(null);\n visibility = signal<string>('hidden');\n show = signal<boolean>(false);\n\n // Computed signals\n width = computed(() => {\n const position = this.position();\n const size = this.size();\n return ['start', 'end'].includes(position) ? size : null;\n });\n\n height = computed(() => {\n const position = this.position();\n const size = this.size();\n return ['top', 'bottom'].includes(position) ? size : null;\n });\n\n overflowClass = computed(() => {\n const position = this.position();\n return ['top', 'bottom'].includes(position) ? 'overflow-y-hidden' : 'overflow-x-hidden';\n });\n\n showBackdrop = computed(() => {\n return this.hasBackdrop() && this.isVisible();\n });\n\n // Outputs\n isVisibleChange = output<boolean>();\n backdropClick = output<MouseEvent>();\n\n onBackdropClick(ev: MouseEvent) {\n this.backdropClick.emit(ev);\n }\n\n /**\n * Escape closes — the dialog pattern's universal exit, and the panel traps\n * focus while open (bsOverlayFocus), so without this a keyboard user had no\n * way out at all.\n */\n onEscape() {\n if (!this.isVisible()) return;\n this.isVisible.set(false);\n this.isVisibleChange.emit(false);\n }\n\n}\n","@if (showBackdrop()) {\n <div data-mps=\"offcanvas\" [@fadeInOut]=\"{value: ':leave', params: {duration: '300ms'} }\">\n <div data-mps=\"offcanvas\" class=\"modal-backdrop show\" (click)=\"onBackdropClick($event)\" aria-hidden=\"true\"></div>\n </div>\n}\n<div data-mps=\"offcanvas\" 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","import { afterNextRender, Component, ElementRef, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsOffcanvasContextService } from '../../services/offcanvas-context.service';\n\n@Component({\n selector: 'bs-offcanvas-header',\n templateUrl: './offcanvas-header.component.html',\n styleUrls: ['./offcanvas-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OffcanvasHeaderComponent {\n private el = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n private context = inject(BsOffcanvasContextService, { optional: true });\n\n constructor() {\n // #452: the offcanvas partial ships with this component, scoped to the elements it stamps (data-mps=\"offcanvas\").\n useBootstrap(bootstrapOffcanvas);\n afterNextRender(() => {\n const headerDiv = this.el.nativeElement.querySelector<HTMLElement>('.offcanvas-header')!;\n let id = headerDiv.id;\n if (!id) {\n id = this.ids.next('bs-offcanvas-header');\n headerDiv.id = id;\n }\n this.context?.headerId.set(id);\n });\n }\n}\n","<div data-mps=\"offcanvas\" class=\"offcanvas-header\">\n <ng-content></ng-content>\n</div>","import { afterNextRender, Component, ElementRef, inject, input, ChangeDetectionStrategy } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsOffcanvasContextService } from '../../services/offcanvas-context.service';\n\n@Component({\n selector: 'bs-offcanvas-body',\n templateUrl: './offcanvas-body.component.html',\n styleUrls: ['./offcanvas-body.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OffcanvasBodyComponent {\n private el = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n private context = inject(BsOffcanvasContextService, { optional: true });\n\n readonly noPadding = input(false);\n\n constructor() {\n // #452: the offcanvas partial ships with this component, scoped to the elements it stamps (data-mps=\"offcanvas\").\n useBootstrap(bootstrapOffcanvas);\n afterNextRender(() => {\n const bodyDiv = this.el.nativeElement.querySelector<HTMLElement>('.offcanvas-body')!;\n let id = bodyDiv.id;\n if (!id) {\n id = this.ids.next('bs-offcanvas-body');\n bodyDiv.id = id;\n }\n this.context?.bodyId.set(id);\n });\n }\n}\n","<div data-mps=\"offcanvas\" class=\"offcanvas-body\" [class.p-0]=\"noPadding()\">\n <ng-content></ng-content>\n</div>","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { InjectionToken, Injector } from \"@angular/core\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('OffcanvasPortalFactory');","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, ApplicationRef, Component, ComponentRef, effect, inject, Injector, model, OnDestroy, output, OutputRefSubscription, signal, TemplateRef, ChangeDetectionStrategy} from '@angular/core';\nimport { Position } from '@mintplayer/ng-bootstrap';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { OFFCANVAS_CONTENT } from '../../providers/offcanvas-content.provider';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\nimport { BsOffcanvasComponent, OFFCANVAS_TRANSITION_MS } from '../offcanvas/offcanvas.component';\n\n@Component({\n selector: 'bs-offcanvas',\n templateUrl: './offcanvas-host.component.html',\n styleUrls: ['./offcanvas-host.component.scss'],\n imports: [BsHasOverlayComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsOffcanvasComponent, null, injector);\n }\n }],\n})\nexport class BsOffcanvasHostComponent implements AfterViewInit, OnDestroy {\n private overlayService = inject(Overlay);\n private rootInjector = inject(Injector);\n private appRef = inject(ApplicationRef);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<any>>(PORTAL_FACTORY);\n\n constructor() {\n // Effect to sync isVisible with the inner component\n effect(() => {\n const isVisible = this.isVisible();\n if (this.component) {\n this.component.instance.isVisible.set(isVisible);\n }\n });\n\n // Effect to sync position with the inner component\n effect(() => {\n const position = this.position();\n if (this.component && this.viewInited()) {\n this.component.instance.position.set(position);\n }\n });\n\n // Effect to sync size with the inner component\n effect(() => {\n const size = this.size();\n if (this.component && this.viewInited()) {\n this.component.instance.size.set(size);\n }\n });\n\n // Effect to sync hasBackdrop with the inner component\n effect(() => {\n const hasBackdrop = this.hasBackdrop();\n if (this.component && this.viewInited()) {\n this.component.instance.hasBackdrop.set(hasBackdrop);\n }\n });\n }\n\n content!: TemplateRef<any>;\n overlayRef!: OverlayRef;\n component!: ComponentRef<BsOffcanvasComponent>;\n private backdropClickSubscription?: OutputRefSubscription;\n\n // Signals\n viewInited = signal<boolean>(false);\n isVisible = model<boolean>(false);\n size = model<number | null>(null);\n position = model<Position>('bottom');\n hasBackdrop = model<boolean>(false);\n\n backdropClick = output<MouseEvent>();\n\n ngAfterViewInit() {\n const injector = Injector.create({\n providers: [\n { provide: OFFCANVAS_CONTENT, useValue: this.content },\n ],\n parent: this.rootInjector,\n });\n\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlayService.create({\n scrollStrategy: this.overlayService.scrollStrategies.reposition(),\n positionStrategy: this.overlayService.position().global()\n .top('0').left('0').bottom('0').right('0'),\n hasBackdrop: false\n });\n\n this.component = this.overlayRef.attach<BsOffcanvasComponent>(portal);\n\n this.backdropClickSubscription = this.component.instance.backdropClick.subscribe((ev) => this.backdropClick.emit(ev));\n\n // Initialize the inner component with current values\n this.component.instance.isVisible.set(this.isVisible());\n this.component.instance.position.set(this.position());\n this.component.instance.size.set(this.size());\n this.component.instance.hasBackdrop.set(this.hasBackdrop());\n\n this.viewInited.set(true);\n }\n\n /**\n * Plays the panel's hide transition, then disposes the overlay. The hide is written to the\n * panel directly: this host's sync effects are destroyed with it and would never deliver it.\n * If the application is torn down before the transition ends, the pending dispose is\n * cancelled and runs at once, so no timer outlives the app.\n */\n ngOnDestroy() {\n this.backdropClickSubscription?.unsubscribe();\n if (!this.overlayRef) return;\n const overlayRef = this.overlayRef;\n this.component.instance.isVisible.set(false);\n const dispose = () => {\n clearTimeout(timer);\n unregister();\n overlayRef.dispose();\n };\n const timer = setTimeout(dispose, OFFCANVAS_TRANSITION_MS);\n const unregister = this.appRef.onDestroy(dispose);\n }\n\n}\n","<bs-has-overlay></bs-has-overlay>\n","import { Directive, inject } from '@angular/core';\nimport { BsOffcanvasHostComponent } from '../../components/offcanvas-host/offcanvas-host.component';\n\n@Directive({\n selector: '[bsOffcanvasClose]',\n host: {\n '[attr.aria-label]': '\"Close\"',\n '(click)': 'onClick()',\n },\n})\nexport class BsOffcanvasCloseDirective {\n private offcanvas = inject(BsOffcanvasHostComponent);\n\n onClick() {\n this.offcanvas.isVisible.set(false);\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { BsOffcanvasHostComponent } from '../../components/offcanvas-host/offcanvas-host.component';\n\n@Directive({\n selector: '[bsOffcanvasContent]',\n})\nexport class BsOffcanvasContentDirective {\n constructor() {\n const offcanvasHost = inject(BsOffcanvasHostComponent);\n const template = inject(TemplateRef);\n offcanvasHost.content = template;\n }\n}\n","import { animate, AnimationBuilder, AnimationMetadata, style } from '@angular/animations';\nimport { Directive, effect, ElementRef, inject, input } from '@angular/core';\nimport { BsOffcanvasHostComponent } from '../../components';\n\n@Directive({\n selector: '[bsOffcanvasPush]',\n})\nexport class BsOffcanvasPushDirective {\n private element = inject<ElementRef<HTMLElement>>(ElementRef);\n private builder = inject(AnimationBuilder);\n\n constructor() {\n let previousIsVisible: boolean | null = null;\n\n effect(() => {\n const offcanvas = this.offcanvas();\n if (!offcanvas) return;\n\n const isVisible = offcanvas.isVisible();\n\n // Skip the first run (initial state)\n if (previousIsVisible === null) {\n previousIsVisible = isVisible;\n return;\n }\n\n // Skip if no change\n if (previousIsVisible === isVisible) return;\n\n previousIsVisible = isVisible;\n\n let data: AnimationMetadata[];\n if (isVisible) {\n data = [\n style({ 'margin-left': '0', 'margin-right': '0' }),\n animate('250ms', style({ 'margin-left': '400px', 'margin-right': '-400px' })),\n ];\n let el = this.element.nativeElement;\n while (el.parentElement && !['scroll', 'visible'].includes(el.parentElement.style.overflowX)) {\n el = el.parentElement;\n }\n if (this.element.nativeElement.parentElement) {\n // Remember the value of the element that is clipped, which is only the direct\n // parent when the walk stopped immediately.\n this.initialOverflowX = { value: el.style.overflowX, element: el };\n el.style.overflowX = 'hidden';\n }\n } else {\n data = [\n style({ 'margin-left': '400px', 'margin-right': '-400px' }),\n animate('250ms', style({ 'margin-left': '0', 'margin-right': '0' })),\n ];\n }\n const b = this.builder.build(data);\n const player = b.create(this.element.nativeElement, { });\n\n if (!isVisible) {\n player.onDone(() => {\n if (this.element.nativeElement.parentElement && this.initialOverflowX) {\n this.initialOverflowX.element.style.overflowX = this.initialOverflowX.value;\n }\n });\n }\n\n player.play();\n });\n }\n\n private initialOverflowX?: {element: HTMLElement, value: string};\n\n offcanvas = input<BsOffcanvasHostComponent | null>(null, { alias: 'bsOffcanvasPush' });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAEO,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAAmB,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C,IAAI,EAAE;AACf,QAAA,CAAC,CAAC;IACJ;8GA3DW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-offcanvas.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/generated/offcanvas.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/generated/offcanvas.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/offcanvas/mintplayer-ng-bootstrap-offcanvas.ts"],"sourcesContent":["// GENERATED from the offcanvas manifest (offcanvas) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpBodyTeleportDirective, MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { offcanvasCore, type OffcanvasInputs, offcanvasScopedStyles } from '@mintplayer/ui-core/offcanvas';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapOffcanvas } from '@mintplayer/ui-core/bootstrap/offcanvas';\n\n/** The `header` slot of `<bs-offcanvas>`: `<ng-template bsOffcanvasHeader>` or `*bsOffcanvasHeader`. */\n@Directive({ selector: '[bsOffcanvasHeader]' })\nexport class BsOffcanvasHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * Bootstrap's offcanvas panel, rendered at the end of `<body>`. `open` is two-way; `position` picks the edge.\n * With `backdrop` it is modal. The `header` slot names it; any element inside with\n * `data-bs-dismiss=\"offcanvas\"` closes it.\n */\n@Component({\n selector: 'bs-offcanvas',\n templateUrl: './offcanvas.view.generated.html',\n imports: [MpBodyTeleportDirective, MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsOffcanvasComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly open = model<OffcanvasInputs['open']>(false);\n readonly position = input<OffcanvasInputs['position']>('start');\n readonly size = input<OffcanvasInputs['size'], unknown>(null, { transform: (v: unknown) => (v == null || v === '' ? null : numberAttribute(v)) as OffcanvasInputs['size'] });\n readonly backdrop = input<OffcanvasInputs['backdrop'], unknown>(true, { transform: booleanAttribute });\n readonly closeOnBackdrop = input<OffcanvasInputs['closeOnBackdrop'], unknown>(true, { transform: booleanAttribute });\n readonly closeOnEscape = input<OffcanvasInputs['closeOnEscape'], unknown>(true, { transform: booleanAttribute });\n readonly closeButton = input<OffcanvasInputs['closeButton'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<OffcanvasInputs['closeLabel']>('Close');\n readonly noPadding = input<OffcanvasInputs['noPadding'], unknown>(false, { transform: booleanAttribute });\n\n private readonly headerSlot = contentChild(BsOffcanvasHeaderDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ header: this.headerSlot()?.templateRef }));\n readonly #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 } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapOffcanvas.key, bootstrapOffcanvas.css, { order: bootstrapOffcanvas.order }); useScopedStyles('offcanvas', offcanvasScopedStyles);\n }\n}\n","<!-- 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","// GENERATED from the offcanvas manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsOffcanvasComponent, BsOffcanvasHeaderDirective } from './offcanvas.component.generated';\n","// Generated from @mintplayer/ui-core/offcanvas (#458 D10).\nexport * from './generated';\nexport type { OffcanvasInputs, OffcanvasPosition } from '@mintplayer/ui-core/offcanvas';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AASA;MAEa,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,IAAA;8GAFY,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,SAAS;mBAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE;;AAK9C;;;;AAIG;MAOU,oBAAoB,CAAA;AAiBtB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAnBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAA0B,KAAK;iFAAC;QAC5C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAA8B,OAAO;qFAAC;AACtD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmC,IAAI,4EAAI,SAAS,EAAE,CAAC,CAAU,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAA4B,GAAG;QACnK,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAuC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC7F,IAAA,CAAA,eAAe,GAAG,KAAK,CAA8C,IAAI,uFAAI,SAAS,EAAE,gBAAgB,EA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