@mintplayer/ng-bootstrap 13.3.12 → 13.4.2

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 (157) hide show
  1. package/esm2020/index.mjs +2 -1
  2. package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +3 -3
  3. package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +3 -3
  4. package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +3 -3
  5. package/esm2020/lib/components/accordion/accordion.module.mjs +4 -4
  6. package/esm2020/lib/components/accordion/from-overlay/from-overlay.directive.mjs +5 -4
  7. package/esm2020/lib/components/accordion/from-overlay-id/from-overlay-id.directive.mjs +5 -4
  8. package/esm2020/lib/components/alert/alert/alert.component.mjs +3 -3
  9. package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +3 -3
  10. package/esm2020/lib/components/alert/alert.module.mjs +4 -4
  11. package/esm2020/lib/components/calendar/calendar.component.mjs +3 -3
  12. package/esm2020/lib/components/calendar/calendar.module.mjs +4 -4
  13. package/esm2020/lib/components/card/card/card.component.mjs +3 -3
  14. package/esm2020/lib/components/card/card-header/card-header.component.mjs +3 -3
  15. package/esm2020/lib/components/card/card.module.mjs +4 -4
  16. package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +3 -3
  17. package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +3 -3
  18. package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
  19. package/esm2020/lib/components/code-snippet/code-snippet.component.mjs +3 -3
  20. package/esm2020/lib/components/code-snippet/code-snippet.module.mjs +4 -4
  21. package/esm2020/lib/components/context-menu/context-menu.directive.mjs +7 -7
  22. package/esm2020/lib/components/context-menu/context-menu.module.mjs +4 -4
  23. package/esm2020/lib/components/copy/copy.directive.mjs +3 -3
  24. package/esm2020/lib/components/copy/copy.module.mjs +4 -4
  25. package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +3 -3
  26. package/esm2020/lib/components/datatable/datatable-column/datatable-column.directive.mjs +3 -3
  27. package/esm2020/lib/components/datatable/datatable.module.mjs +4 -4
  28. package/esm2020/lib/components/datatable/row-template/row-template.directive.mjs +3 -3
  29. package/esm2020/lib/components/datepicker/datepicker.component.mjs +3 -3
  30. package/esm2020/lib/components/datepicker/datepicker.module.mjs +4 -4
  31. package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +3 -3
  32. package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +3 -3
  33. package/esm2020/lib/components/dropdown/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
  34. package/esm2020/lib/components/dropdown/dropdown.module.mjs +4 -4
  35. package/esm2020/lib/components/file-upload/component/file-upload.component.mjs +3 -3
  36. package/esm2020/lib/components/file-upload/directive/file-upload-template.directive.mjs +3 -3
  37. package/esm2020/lib/components/file-upload/file-upload.module.mjs +4 -4
  38. package/esm2020/lib/components/for/for.directive.mjs +3 -3
  39. package/esm2020/lib/components/for/for.module.mjs +4 -4
  40. package/esm2020/lib/components/list-group/list-group/list-group.component.mjs +3 -3
  41. package/esm2020/lib/components/list-group/list-group-item/list-group-item.component.mjs +3 -3
  42. package/esm2020/lib/components/list-group/list-group.module.mjs +4 -4
  43. package/esm2020/lib/components/modal/component/modal/modal.component.mjs +3 -3
  44. package/esm2020/lib/components/modal/component/modal-content/modal-content.component.mjs +3 -3
  45. package/esm2020/lib/components/modal/directives/modal-body/modal-body.directive.mjs +3 -3
  46. package/esm2020/lib/components/modal/directives/modal-footer/modal-footer.directive.mjs +3 -3
  47. package/esm2020/lib/components/modal/directives/modal-header/modal-header.directive.mjs +3 -3
  48. package/esm2020/lib/components/modal/modal.module.mjs +4 -4
  49. package/esm2020/lib/components/modal/service/modal.service.mjs +3 -3
  50. package/esm2020/lib/components/multiselect/component/multiselect.component.mjs +3 -3
  51. package/esm2020/lib/components/multiselect/directives/button-template/button-template.directive.mjs +3 -3
  52. package/esm2020/lib/components/multiselect/directives/footer-template/footer-template.directive.mjs +3 -3
  53. package/esm2020/lib/components/multiselect/directives/header-template/header-template.directive.mjs +3 -3
  54. package/esm2020/lib/components/multiselect/multiselect.module.mjs +4 -4
  55. package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
  56. package/esm2020/lib/components/navbar/expand-button/expand-button.directive.mjs +3 -3
  57. package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +3 -3
  58. package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +3 -3
  59. package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +3 -3
  60. package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +3 -3
  61. package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +3 -3
  62. package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +3 -3
  63. package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
  64. package/esm2020/lib/components/navbar/navbar-toggler/navbar-toggler.component.mjs +5 -5
  65. package/esm2020/lib/components/navbar/navbar.module.mjs +4 -4
  66. package/esm2020/lib/components/offcanvas/components/index.mjs +3 -2
  67. package/esm2020/lib/components/offcanvas/components/offcanvas/offcanvas.component.mjs +82 -36
  68. package/esm2020/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.mjs +13 -9
  69. package/esm2020/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.mjs +6 -6
  70. package/esm2020/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.mjs +133 -0
  71. package/esm2020/lib/components/offcanvas/directives/index.mjs +2 -1
  72. package/esm2020/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.mjs +11 -14
  73. package/esm2020/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.mjs +18 -0
  74. package/esm2020/lib/components/offcanvas/index.mjs +2 -2
  75. package/esm2020/lib/components/offcanvas/offcanvas.module.mjs +43 -20
  76. package/esm2020/lib/components/offcanvas/providers/portal-factory.provider.mjs +3 -0
  77. package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +3 -3
  78. package/esm2020/lib/components/pagination/pagination.module.mjs +4 -4
  79. package/esm2020/lib/components/progress-bar/progress/progress.component.mjs +3 -3
  80. package/esm2020/lib/components/progress-bar/progress-bar/progress-bar.component.mjs +3 -3
  81. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +4 -4
  82. package/esm2020/lib/components/rating/rating.component.mjs +3 -3
  83. package/esm2020/lib/components/rating/rating.module.mjs +4 -4
  84. package/esm2020/lib/components/scheduler/components/resource-group-presenter/resource-group-presenter.component.mjs +3 -3
  85. package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +3 -3
  86. package/esm2020/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.mjs +3 -3
  87. package/esm2020/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.mjs +3 -3
  88. package/esm2020/lib/components/scheduler/pipes/date-offset/date-offset.pipe.mjs +3 -3
  89. package/esm2020/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.mjs +3 -3
  90. package/esm2020/lib/components/scheduler/scheduler.module.mjs +4 -4
  91. package/esm2020/lib/components/scheduler/services/timeline/timeline.service.mjs +3 -3
  92. package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +3 -3
  93. package/esm2020/lib/components/scrollspy/directives/scrollspy.directive.mjs +3 -3
  94. package/esm2020/lib/components/scrollspy/scrollspy.module.mjs +4 -4
  95. package/esm2020/lib/components/select2/component/select2.component.mjs +3 -3
  96. package/esm2020/lib/components/select2/directive/item-template.directive.mjs +3 -3
  97. package/esm2020/lib/components/select2/select2.module.mjs +4 -4
  98. package/esm2020/lib/components/snackbar/component/snackbar.component.mjs +3 -3
  99. package/esm2020/lib/components/snackbar/directives/snackbar-close/snackbar-close.directive.mjs +3 -3
  100. package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +3 -3
  101. package/esm2020/lib/components/snackbar/snackbar.module.mjs +4 -4
  102. package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +3 -3
  103. package/esm2020/lib/components/tab-control/tab-control.module.mjs +4 -4
  104. package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +3 -3
  105. package/esm2020/lib/components/timepicker/timepicker.component.mjs +3 -3
  106. package/esm2020/lib/components/timepicker/timepicker.module.mjs +4 -4
  107. package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +5 -6
  108. package/esm2020/lib/components/toggle-button/toggle-button.module.mjs +4 -4
  109. package/esm2020/lib/components/tooltip/component/tooltip.component.mjs +3 -3
  110. package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +3 -3
  111. package/esm2020/lib/components/tooltip/tooltip.module.mjs +4 -4
  112. package/esm2020/lib/components/typeahead/typeahead.component.mjs +3 -3
  113. package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
  114. package/esm2020/lib/directives/enhanced-paste/enhanced-paste.directive.mjs +3 -3
  115. package/esm2020/lib/directives/enhanced-paste/enhanced-paste.module.mjs +4 -4
  116. package/esm2020/lib/pipes/font-color/font-color.module.mjs +4 -4
  117. package/esm2020/lib/pipes/font-color/font-color.pipe.mjs +3 -3
  118. package/esm2020/lib/pipes/format-bytes/format-bytes.module.mjs +4 -4
  119. package/esm2020/lib/pipes/format-bytes/format-bytes.pipe.mjs +3 -3
  120. package/esm2020/lib/pipes/in-list/in-list.module.mjs +4 -4
  121. package/esm2020/lib/pipes/in-list/in-list.pipe.mjs +3 -3
  122. package/esm2020/lib/pipes/month-name/month-name.module.mjs +4 -4
  123. package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +3 -3
  124. package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +4 -4
  125. package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +3 -3
  126. package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +4 -4
  127. package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +3 -3
  128. package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +3 -3
  129. package/esm2020/lib/services/scroll-offset/scroll-offset.service.mjs +3 -3
  130. package/esm2020/lib/types/index.mjs +2 -0
  131. package/esm2020/lib/types/view-state.type.mjs +2 -0
  132. package/fesm2015/mintplayer-ng-bootstrap.mjs +689 -539
  133. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
  134. package/fesm2020/mintplayer-ng-bootstrap.mjs +687 -539
  135. package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
  136. package/index.d.ts +1 -0
  137. package/lib/components/accordion/from-overlay/from-overlay.directive.d.ts +1 -0
  138. package/lib/components/accordion/from-overlay-id/from-overlay-id.directive.d.ts +1 -0
  139. package/lib/components/navbar/navbar-toggler/navbar-toggler.component.d.ts +5 -4
  140. package/lib/components/offcanvas/components/index.d.ts +2 -1
  141. package/lib/components/offcanvas/components/offcanvas/offcanvas.component.d.ts +26 -14
  142. package/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.d.ts +4 -3
  143. package/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.d.ts +3 -3
  144. package/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.d.ts +36 -0
  145. package/lib/components/offcanvas/directives/index.d.ts +1 -0
  146. package/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.d.ts +4 -6
  147. package/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.d.ts +8 -0
  148. package/lib/components/offcanvas/index.d.ts +0 -1
  149. package/lib/components/offcanvas/offcanvas.module.d.ts +7 -5
  150. package/lib/components/offcanvas/providers/portal-factory.provider.d.ts +3 -0
  151. package/lib/types/index.d.ts +1 -0
  152. package/lib/types/view-state.type.d.ts +1 -0
  153. package/package.json +1 -1
  154. package/esm2020/lib/components/offcanvas/services/index.mjs +0 -2
  155. package/esm2020/lib/components/offcanvas/services/offcanvas/offcanvas.service.mjs +0 -72
  156. package/lib/components/offcanvas/services/index.d.ts +0 -1
  157. package/lib/components/offcanvas/services/offcanvas/offcanvas.service.d.ts +0 -13
package/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './lib/components';
2
2
  export * from './lib/enums';
3
3
  export * from './lib/interfaces';
4
4
  export * from './lib/pipes';
5
+ export * from './lib/types';
@@ -10,6 +10,7 @@ export declare class BsFromOverlayDirective implements AfterContentInit, OnDestr
10
10
  private readonly activeOverlayIdentifier$;
11
11
  bsFromOverlayChange: EventEmitter<string | null>;
12
12
  private _bsFromOverlay;
13
+ /** Binds the active tab of an accordion to a field, in case the accordion is rendered in an overlay. */
13
14
  get bsFromOverlay(): string | null;
14
15
  set bsFromOverlay(value: string | null);
15
16
  tabPages: QueryList<ElementRef<BsAccordionTabComponent>>;
@@ -9,6 +9,7 @@ export declare class BsFromOverlayIdDirective implements OnDestroy {
9
9
  private destroyed$;
10
10
  ngOnDestroy(): void;
11
11
  private _bsFromOverlayId;
12
+ /** String value containing the accordion tab identifier. */
12
13
  get bsFromOverlayId(): string;
13
14
  set bsFromOverlayId(value: string);
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BsFromOverlayIdDirective, never>;
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { BsViewState } from '../../../types/view-state.type';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class BsNavbarTogglerComponent {
4
- _state: 'open' | 'closed';
5
- stateChange: EventEmitter<"open" | "closed">;
6
- get state(): 'open' | 'closed';
7
- set state(value: 'open' | 'closed');
5
+ _state: BsViewState;
6
+ stateChange: EventEmitter<BsViewState>;
7
+ get state(): BsViewState;
8
+ set state(value: BsViewState);
8
9
  toggleOnClick: boolean;
9
10
  toggleState(ev: MouseEvent): void;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<BsNavbarTogglerComponent, never>;
@@ -1,3 +1,4 @@
1
1
  export * from './offcanvas/offcanvas.component';
2
- export * from './offcanvas-body/offcanvas-body.component';
3
2
  export * from './offcanvas-header/offcanvas-header.component';
3
+ export * from './offcanvas-body/offcanvas-body.component';
4
+ export * from './offcanvas-host/offcanvas-host.component';
@@ -1,21 +1,33 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import { EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
3
3
  import { OffcanvasPosition } from '../../types/position';
4
+ import { BsViewState } from '../../../../types/view-state.type';
4
5
  import * as i0 from "@angular/core";
5
- export declare class BsOffcanvasComponent {
6
- constructor(content: TemplateRef<any>);
7
- size: number | null;
8
- displayBlock: boolean;
9
- positionAbsolute: boolean;
10
- width100: boolean;
11
- content: TemplateRef<any>;
12
- private instance;
13
- show$: BehaviorSubject<boolean>;
6
+ export declare class BsOffcanvasComponent implements OnDestroy {
7
+ constructor(contentTemplate: TemplateRef<any>);
8
+ contentTemplate: TemplateRef<any>;
9
+ destroyed$: Subject<unknown>;
10
+ visibility$: Observable<string>;
11
+ disableTransition$: BehaviorSubject<boolean>;
12
+ offcanvasClass$: BehaviorSubject<string | null>;
13
+ width$: Observable<number | null>;
14
+ height$: Observable<number | null>;
15
+ hasBackdrop$: BehaviorSubject<boolean>;
16
+ show$: Observable<boolean>;
17
+ showBackdrop$: Observable<boolean>;
14
18
  position$: BehaviorSubject<OffcanvasPosition>;
15
- offcanvasClass$: Observable<string>;
16
- offcanvasHeight100$: Observable<boolean>;
17
19
  set position(value: OffcanvasPosition);
18
20
  get position(): OffcanvasPosition;
21
+ size$: BehaviorSubject<number | null>;
22
+ set size(value: number | null);
23
+ get size(): number | null;
24
+ state$: BehaviorSubject<BsViewState>;
25
+ stateChange: EventEmitter<boolean>;
26
+ set state(value: BsViewState);
27
+ get state(): BsViewState;
28
+ backdropClick: EventEmitter<MouseEvent>;
29
+ onBackdropClick(ev: MouseEvent): void;
30
+ ngOnDestroy(): void;
19
31
  static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasComponent, "bs-offcanvas", never, { "size": "size"; }, {}, never, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasComponent, "bs-offcanvas-holder", never, { "position": "position"; "size": "size"; "state": "state"; }, { "stateChange": "stateChange"; "backdropClick": "backdropClick"; }, never, never>;
21
33
  }
@@ -1,8 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class BsOffcanvasBodyComponent implements OnInit {
3
+ export declare class OffcanvasBodyComponent implements OnInit {
4
4
  constructor();
5
+ noPadding: boolean;
5
6
  ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasBodyComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasBodyComponent, "bs-offcanvas-body", never, {}, {}, never, ["*"]>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasBodyComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasBodyComponent, "bs-offcanvas-body", never, { "noPadding": "noPadding"; }, {}, never, ["*"]>;
8
9
  }
@@ -1,8 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class BsOffcanvasHeaderComponent implements OnInit {
3
+ export declare class OffcanvasHeaderComponent implements OnInit {
4
4
  constructor();
5
5
  ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasHeaderComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasHeaderComponent, "bs-offcanvas-header", never, {}, {}, never, ["*"]>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasHeaderComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasHeaderComponent, "bs-offcanvas-header", never, {}, {}, never, ["*"]>;
8
8
  }
@@ -0,0 +1,36 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { ComponentPortal } from '@angular/cdk/portal';
3
+ import { AfterViewInit, ComponentRef, EventEmitter, Injector, OnDestroy, TemplateRef } from '@angular/core';
4
+ import { BsViewState } from '../../../../types/view-state.type';
5
+ import { BehaviorSubject, Subject } from 'rxjs';
6
+ import { OffcanvasPosition } from '../../types/position';
7
+ import { BsOffcanvasComponent } from '../offcanvas/offcanvas.component';
8
+ import * as i0 from "@angular/core";
9
+ export declare class BsOffcanvasHostComponent implements AfterViewInit, OnDestroy {
10
+ private overlayService;
11
+ private rootInjector;
12
+ private portalFactory;
13
+ constructor(overlayService: Overlay, rootInjector: Injector, portalFactory: (injector: Injector) => ComponentPortal<any>);
14
+ content: TemplateRef<any>;
15
+ component: ComponentRef<BsOffcanvasComponent>;
16
+ viewInited$: BehaviorSubject<boolean>;
17
+ state$: BehaviorSubject<BsViewState>;
18
+ size$: BehaviorSubject<number | null>;
19
+ position$: BehaviorSubject<OffcanvasPosition>;
20
+ hasBackdrop$: BehaviorSubject<boolean>;
21
+ destroyed$: Subject<unknown>;
22
+ backdropClick: EventEmitter<MouseEvent>;
23
+ ngAfterViewInit(): void;
24
+ ngOnDestroy(): void;
25
+ stateChange: EventEmitter<BsViewState>;
26
+ set state(value: BsViewState);
27
+ get state(): BsViewState;
28
+ set position(value: OffcanvasPosition);
29
+ get position(): OffcanvasPosition;
30
+ set size(value: number | null);
31
+ get size(): number | null;
32
+ set hasBackdrop(value: boolean);
33
+ get hasBackdrop(): boolean;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasHostComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasHostComponent, "bs-offcanvas", never, { "state": "state"; "position": "position"; "size": "size"; "hasBackdrop": "hasBackdrop"; }, { "backdropClick": "backdropClick"; "stateChange": "stateChange"; }, never, never>;
36
+ }
@@ -1 +1,2 @@
1
1
  export * from './offcanvas-close/offcanvas-close.directive';
2
+ export * from './offcanvas-content/offcanvas-content.directive';
@@ -1,11 +1,9 @@
1
- import { BsOffcanvasComponent } from '../../components/offcanvas/offcanvas.component';
2
- import { BsOffcanvasService } from '../../services/offcanvas/offcanvas.service';
1
+ import { BsOffcanvasHostComponent } from '../../components/offcanvas-host/offcanvas-host.component';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class BsOffcanvasCloseDirective {
5
- private offcanvasService;
6
- constructor(offcanvasService: BsOffcanvasService);
7
- bsOffcanvasClose: BsOffcanvasComponent;
4
+ private offcanvas;
5
+ constructor(offcanvas: BsOffcanvasHostComponent);
8
6
  onClick(): void;
9
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasCloseDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<BsOffcanvasCloseDirective, "[bsOffcanvasClose]", never, { "bsOffcanvasClose": "bsOffcanvasClose"; }, {}, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsOffcanvasCloseDirective, "[bsOffcanvasClose]", never, {}, {}, never>;
11
9
  }
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { BsOffcanvasHostComponent } from '../../components/offcanvas-host/offcanvas-host.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsOffcanvasContentDirective {
5
+ constructor(offcanvasHost: BsOffcanvasHostComponent, template: TemplateRef<any>);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasContentDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsOffcanvasContentDirective, "[bsOffcanvasContent]", never, {}, {}, never>;
8
+ }
@@ -1,4 +1,3 @@
1
- export * from './services';
2
1
  export * from './offcanvas.module';
3
2
  export * from './components';
4
3
  export * from './interfaces';
@@ -1,12 +1,14 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./components/offcanvas/offcanvas.component";
3
- import * as i2 from "./components/offcanvas-header/offcanvas-header.component";
4
- import * as i3 from "./components/offcanvas-body/offcanvas-body.component";
3
+ import * as i2 from "./directives/offcanvas-content/offcanvas-content.directive";
4
+ import * as i3 from "./components/offcanvas-host/offcanvas-host.component";
5
5
  import * as i4 from "./directives/offcanvas-close/offcanvas-close.directive";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/cdk/overlay";
6
+ import * as i5 from "./components/offcanvas-header/offcanvas-header.component";
7
+ import * as i6 from "./components/offcanvas-body/offcanvas-body.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@angular/cdk/overlay";
8
10
  export declare class BsOffcanvasModule {
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<BsOffcanvasModule, [typeof i1.BsOffcanvasComponent, typeof i2.BsOffcanvasHeaderComponent, typeof i3.BsOffcanvasBodyComponent, typeof i4.BsOffcanvasCloseDirective], [typeof i5.CommonModule, typeof i6.OverlayModule], [typeof i1.BsOffcanvasComponent, typeof i2.BsOffcanvasHeaderComponent, typeof i3.BsOffcanvasBodyComponent, typeof i4.BsOffcanvasCloseDirective]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsOffcanvasModule, [typeof i1.BsOffcanvasComponent, typeof i2.BsOffcanvasContentDirective, typeof i3.BsOffcanvasHostComponent, typeof i4.BsOffcanvasCloseDirective, typeof i5.OffcanvasHeaderComponent, typeof i6.OffcanvasBodyComponent], [typeof i7.CommonModule, typeof i8.OverlayModule], [typeof i1.BsOffcanvasComponent, typeof i2.BsOffcanvasContentDirective, typeof i3.BsOffcanvasHostComponent, typeof i4.BsOffcanvasCloseDirective, typeof i5.OffcanvasHeaderComponent, typeof i6.OffcanvasBodyComponent]>;
11
13
  static ɵinj: i0.ɵɵInjectorDeclaration<BsOffcanvasModule>;
12
14
  }
@@ -0,0 +1,3 @@
1
+ import { ComponentPortal } from "@angular/cdk/portal";
2
+ import { InjectionToken, Injector } from "@angular/core";
3
+ export declare const PORTAL_FACTORY: InjectionToken<(injector: Injector) => ComponentPortal<any>>;
@@ -0,0 +1 @@
1
+ export * from './view-state.type';
@@ -0,0 +1 @@
1
+ export declare type BsViewState = 'open' | 'closed';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "13.3.12",
4
+ "version": "13.4.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap"
@@ -1,2 +0,0 @@
1
- export * from './offcanvas/offcanvas.service';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9vZmZjYW52YXMvc2VydmljZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vb2ZmY2FudmFzL29mZmNhbnZhcy5zZXJ2aWNlJztcbiJdfQ==
@@ -1,72 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ComponentPortal } from '@angular/cdk/portal';
3
- import { Injectable, Injector } from '@angular/core';
4
- import { BsOffcanvasModule } from '../../offcanvas.module';
5
- import { BsOffcanvasComponent } from '../../components/offcanvas/offcanvas.component';
6
- import { OFFCANVAS_CONTENT } from '../../providers/offcanvas-content.provider';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/cdk/overlay";
9
- export class BsOffcanvasService {
10
- constructor(overlay, parentInjector) {
11
- this.overlay = overlay;
12
- this.parentInjector = parentInjector;
13
- }
14
- show(template, position, hasBackdrop = false, backdropClick = null) {
15
- const injector = Injector.create({
16
- providers: [{ provide: OFFCANVAS_CONTENT, useValue: template }],
17
- parent: this.parentInjector
18
- });
19
- const portal = new ComponentPortal(BsOffcanvasComponent, null, injector);
20
- const positioning = this.overlay.position().global();
21
- const config = {
22
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
23
- positionStrategy: positioning,
24
- hasBackdrop,
25
- };
26
- switch (position) {
27
- case 'bottom':
28
- positioning.centerHorizontally().bottom('0');
29
- config.width = '100%';
30
- break;
31
- case 'top':
32
- positioning.centerHorizontally().top('0');
33
- config.width = '100%';
34
- break;
35
- case 'start':
36
- positioning.centerVertically().left('0');
37
- config.height = '100%';
38
- break;
39
- case 'end':
40
- positioning.centerVertically().right('0');
41
- config.height = '100%';
42
- break;
43
- default:
44
- throw 'Invalid value for position';
45
- }
46
- const overlayRef = this.overlay.create(config);
47
- const componentInstance = overlayRef.attach(portal);
48
- componentInstance.instance.position = position;
49
- setTimeout(() => componentInstance.instance.show$.next(true));
50
- componentInstance.instance['instance'] = {
51
- component: componentInstance,
52
- overlay: overlayRef
53
- };
54
- if (hasBackdrop && backdropClick) {
55
- overlayRef.backdropClick().subscribe(() => backdropClick(componentInstance.instance));
56
- }
57
- return componentInstance.instance;
58
- }
59
- hide(offcanvas) {
60
- offcanvas.show$.next(false);
61
- setTimeout(() => offcanvas['instance']?.overlay.dispose(), 300);
62
- }
63
- }
64
- BsOffcanvasService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsOffcanvasService, deps: [{ token: i1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
65
- BsOffcanvasService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsOffcanvasService, providedIn: BsOffcanvasModule });
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsOffcanvasService, decorators: [{
67
- type: Injectable,
68
- args: [{
69
- providedIn: BsOffcanvasModule
70
- }]
71
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }]; } });
72
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZmY2FudmFzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9vZmZjYW52YXMvc2VydmljZXMvb2ZmY2FudmFzL29mZmNhbnZhcy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQWlCLE1BQU0sc0JBQXNCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFlLE1BQU0sZUFBZSxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzNELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBRXRGLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDRDQUE0QyxDQUFDOzs7QUFLL0UsTUFBTSxPQUFPLGtCQUFrQjtJQUU3QixZQUNVLE9BQWdCLEVBQ2hCLGNBQXdCO1FBRHhCLFlBQU8sR0FBUCxPQUFPLENBQVM7UUFDaEIsbUJBQWMsR0FBZCxjQUFjLENBQVU7SUFDOUIsQ0FBQztJQUVFLElBQUksQ0FBQyxRQUEwQixFQUFFLFFBQTRDLEVBQUUsV0FBVyxHQUFHLEtBQUssRUFBRSxnQkFBb0UsSUFBSTtRQUNqTCxNQUFNLFFBQVEsR0FBRyxRQUFRLENBQUMsTUFBTSx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WydpbnN0YW5jZSddID0gPE9mZmNhbnZhc0FuaW1hdGlvbk1ldGE+e1xuICAgICAgY29tcG9uZW50OiBjb21wb25lbnRJbnN0YW5jZSxcbiAgICAgIG92ZXJsYXk6IG92ZXJsYXlSZWZcbiAgICB9O1xuXG4gICAgaWYgKGhhc0JhY2tkcm9wICYmIGJhY2tkcm9wQ2xpY2spIHtcbiAgICAgIG92ZXJsYXlSZWYuYmFja2Ryb3BDbGljaygpLnN1YnNjcmliZSgoKSA9PiBiYWNrZHJvcENsaWNrKGNvbXBvbmVudEluc3RhbmNlLmluc3RhbmNlKSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGNvbXBvbmVudEluc3RhbmNlLmluc3RhbmNlO1xuICB9XG5cbiAgcHVibGljIGhpZGUob2ZmY2FudmFzOiBCc09mZmNhbnZhc0NvbXBvbmVudCkge1xuICAgIG9mZmNhbnZhcy5zaG93JC5uZXh0KGZhbHNlKTtcbiAgICBzZXRUaW1lb3V0KCgpID0+IG9mZmNhbnZhc1snaW5zdGFuY2UnXT8ub3ZlcmxheS5kaXNwb3NlKCksIDMwMCk7XG4gIH1cblxufVxuIl19
@@ -1 +0,0 @@
1
- export * from './offcanvas/offcanvas.service';
@@ -1,13 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { Injector, TemplateRef } from '@angular/core';
3
- import { BsOffcanvasComponent } from '../../components/offcanvas/offcanvas.component';
4
- import * as i0 from "@angular/core";
5
- export declare class BsOffcanvasService {
6
- private overlay;
7
- private parentInjector;
8
- constructor(overlay: Overlay, parentInjector: Injector);
9
- show(template: TemplateRef<any>, position: 'top' | 'bottom' | 'start' | 'end', hasBackdrop?: boolean, backdropClick?: ((offcanvas: BsOffcanvasComponent) => void) | null): BsOffcanvasComponent;
10
- hide(offcanvas: BsOffcanvasComponent): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<BsOffcanvasService>;
13
- }