@mintplayer/ng-bootstrap 13.3.11 → 13.4.1
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.
- package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +6 -25
- package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +37 -6
- package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +5 -10
- package/esm2020/lib/components/accordion/accordion.module.mjs +19 -9
- package/esm2020/lib/components/accordion/from-overlay/from-overlay.directive.mjs +62 -0
- package/esm2020/lib/components/accordion/from-overlay-id/from-overlay-id.directive.mjs +46 -0
- package/esm2020/lib/components/accordion/index.mjs +3 -1
- package/esm2020/lib/components/alert/alert/alert.component.mjs +3 -3
- package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +3 -3
- package/esm2020/lib/components/alert/alert.module.mjs +4 -4
- package/esm2020/lib/components/calendar/calendar.component.mjs +3 -3
- package/esm2020/lib/components/calendar/calendar.module.mjs +4 -4
- package/esm2020/lib/components/card/card/card.component.mjs +3 -3
- package/esm2020/lib/components/card/card-header/card-header.component.mjs +3 -3
- package/esm2020/lib/components/card/card.module.mjs +4 -4
- package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +3 -3
- package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +3 -3
- package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
- package/esm2020/lib/components/code-snippet/code-snippet.component.mjs +3 -3
- package/esm2020/lib/components/code-snippet/code-snippet.module.mjs +4 -4
- package/esm2020/lib/components/context-menu/context-menu.directive.mjs +7 -7
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +4 -4
- package/esm2020/lib/components/copy/copy.directive.mjs +3 -3
- package/esm2020/lib/components/copy/copy.module.mjs +4 -4
- package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +3 -3
- package/esm2020/lib/components/datatable/datatable-column/datatable-column.directive.mjs +3 -3
- package/esm2020/lib/components/datatable/datatable.module.mjs +4 -4
- package/esm2020/lib/components/datatable/row-template/row-template.directive.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.component.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.module.mjs +4 -4
- package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +3 -3
- package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +3 -3
- package/esm2020/lib/components/dropdown/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
- package/esm2020/lib/components/dropdown/dropdown.module.mjs +4 -4
- package/esm2020/lib/components/file-upload/component/file-upload.component.mjs +3 -3
- package/esm2020/lib/components/file-upload/directive/file-upload-template.directive.mjs +3 -3
- package/esm2020/lib/components/file-upload/file-upload.module.mjs +4 -4
- package/esm2020/lib/components/for/for.directive.mjs +3 -3
- package/esm2020/lib/components/for/for.module.mjs +4 -4
- package/esm2020/lib/components/list-group/list-group/list-group.component.mjs +3 -3
- package/esm2020/lib/components/list-group/list-group-item/list-group-item.component.mjs +3 -3
- package/esm2020/lib/components/list-group/list-group.module.mjs +4 -4
- package/esm2020/lib/components/modal/component/modal/modal.component.mjs +4 -4
- package/esm2020/lib/components/modal/component/modal-content/modal-content.component.mjs +19 -7
- package/esm2020/lib/components/modal/directives/modal-body/modal-body.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-footer/modal-footer.directive.mjs +3 -3
- package/esm2020/lib/components/modal/directives/modal-header/modal-header.directive.mjs +3 -3
- package/esm2020/lib/components/modal/modal.module.mjs +4 -4
- package/esm2020/lib/components/modal/service/modal.service.mjs +6 -5
- package/esm2020/lib/components/multiselect/component/multiselect.component.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/button-template/button-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/footer-template/footer-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/directives/header-template/header-template.directive.mjs +3 -3
- package/esm2020/lib/components/multiselect/multiselect.module.mjs +4 -4
- package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/expand-button/expand-button.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-toggler/navbar-toggler.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar.module.mjs +4 -4
- package/esm2020/lib/components/offcanvas/components/index.mjs +3 -2
- package/esm2020/lib/components/offcanvas/components/offcanvas/offcanvas.component.mjs +80 -36
- package/esm2020/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.mjs +13 -9
- package/esm2020/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.mjs +6 -6
- package/esm2020/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.mjs +133 -0
- package/esm2020/lib/components/offcanvas/directives/index.mjs +2 -1
- package/esm2020/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.mjs +11 -14
- package/esm2020/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.mjs +18 -0
- package/esm2020/lib/components/offcanvas/index.mjs +2 -2
- package/esm2020/lib/components/offcanvas/offcanvas.module.mjs +43 -20
- package/esm2020/lib/components/offcanvas/providers/portal-factory.provider.mjs +3 -0
- package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +3 -3
- package/esm2020/lib/components/pagination/pagination.module.mjs +4 -4
- package/esm2020/lib/components/progress-bar/progress/progress.component.mjs +3 -3
- package/esm2020/lib/components/progress-bar/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2020/lib/components/rating/rating.component.mjs +3 -3
- package/esm2020/lib/components/rating/rating.module.mjs +4 -4
- package/esm2020/lib/components/scheduler/components/resource-group-presenter/resource-group-presenter.component.mjs +3 -3
- package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/date-offset/date-offset.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.mjs +3 -3
- package/esm2020/lib/components/scheduler/scheduler.module.mjs +4 -4
- package/esm2020/lib/components/scheduler/services/timeline/timeline.service.mjs +3 -3
- package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +3 -3
- package/esm2020/lib/components/scrollspy/directives/scrollspy.directive.mjs +3 -3
- package/esm2020/lib/components/scrollspy/scrollspy.module.mjs +4 -4
- package/esm2020/lib/components/select2/component/select2.component.mjs +3 -3
- package/esm2020/lib/components/select2/directive/item-template.directive.mjs +3 -3
- package/esm2020/lib/components/select2/select2.module.mjs +4 -4
- package/esm2020/lib/components/snackbar/component/snackbar.component.mjs +3 -3
- package/esm2020/lib/components/snackbar/directives/snackbar-close/snackbar-close.directive.mjs +3 -3
- package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +3 -3
- package/esm2020/lib/components/snackbar/snackbar.module.mjs +4 -4
- package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +3 -3
- package/esm2020/lib/components/tab-control/tab-control.module.mjs +4 -4
- package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +3 -3
- package/esm2020/lib/components/timepicker/timepicker.component.mjs +3 -3
- package/esm2020/lib/components/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +5 -6
- package/esm2020/lib/components/toggle-button/toggle-button.module.mjs +4 -4
- package/esm2020/lib/components/tooltip/component/tooltip.component.mjs +3 -3
- package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +3 -3
- package/esm2020/lib/components/tooltip/tooltip.module.mjs +4 -4
- package/esm2020/lib/components/typeahead/typeahead.component.mjs +3 -3
- package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
- package/esm2020/lib/directives/enhanced-paste/enhanced-paste.directive.mjs +3 -3
- package/esm2020/lib/directives/enhanced-paste/enhanced-paste.module.mjs +4 -4
- package/esm2020/lib/pipes/font-color/font-color.module.mjs +4 -4
- package/esm2020/lib/pipes/font-color/font-color.pipe.mjs +3 -3
- package/esm2020/lib/pipes/format-bytes/format-bytes.module.mjs +4 -4
- package/esm2020/lib/pipes/format-bytes/format-bytes.pipe.mjs +3 -3
- package/esm2020/lib/pipes/in-list/in-list.module.mjs +4 -4
- package/esm2020/lib/pipes/in-list/in-list.pipe.mjs +3 -3
- package/esm2020/lib/pipes/month-name/month-name.module.mjs +4 -4
- package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +3 -3
- package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +4 -4
- package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +3 -3
- package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +4 -4
- package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +3 -3
- package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +3 -3
- package/esm2020/lib/services/scroll-offset/scroll-offset.service.mjs +3 -3
- package/fesm2015/mintplayer-ng-bootstrap.mjs +835 -567
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +833 -567
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/accordion/accordion/accordion.component.d.ts +4 -7
- package/lib/components/accordion/accordion-tab/accordion-tab.component.d.ts +7 -2
- package/lib/components/accordion/accordion.module.d.ts +4 -2
- package/lib/components/accordion/from-overlay/from-overlay.directive.d.ts +21 -0
- package/lib/components/accordion/from-overlay-id/from-overlay-id.directive.d.ts +17 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/modal/component/modal-content/modal-content.component.d.ts +2 -0
- package/lib/components/modal/service/modal.service.d.ts +1 -1
- package/lib/components/offcanvas/components/index.d.ts +2 -1
- package/lib/components/offcanvas/components/offcanvas/offcanvas.component.d.ts +24 -14
- package/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.d.ts +4 -3
- package/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.d.ts +3 -3
- package/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.d.ts +35 -0
- package/lib/components/offcanvas/directives/index.d.ts +1 -0
- package/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.d.ts +4 -6
- package/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.d.ts +8 -0
- package/lib/components/offcanvas/index.d.ts +0 -1
- package/lib/components/offcanvas/offcanvas.module.d.ts +7 -5
- package/lib/components/offcanvas/providers/portal-factory.provider.d.ts +3 -0
- package/package.json +1 -1
- package/esm2020/lib/components/offcanvas/services/index.mjs +0 -2
- package/esm2020/lib/components/offcanvas/services/offcanvas/offcanvas.service.mjs +0 -72
- package/lib/components/offcanvas/services/index.d.ts +0 -1
- package/lib/components/offcanvas/services/offcanvas/offcanvas.service.d.ts +0 -13
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
2
|
import { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BsAccordionComponent {
|
|
5
|
-
tabPages: BsAccordionTabComponent
|
|
6
|
-
|
|
7
|
-
private _activeTab;
|
|
8
|
-
get activeTab(): BsAccordionTabComponent | null;
|
|
9
|
-
set activeTab(value: BsAccordionTabComponent | null);
|
|
5
|
+
tabPages: QueryList<BsAccordionTabComponent>;
|
|
6
|
+
disableAnimations: boolean;
|
|
10
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, {}, {}, ["tabPages"], ["*"]>;
|
|
12
9
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { QueryList } from '@angular/core';
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
2
|
import { BsAccordionComponent } from '../accordion/accordion.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BsAccordionTabComponent {
|
|
5
5
|
accordion: BsAccordionComponent;
|
|
6
6
|
childAccordions: QueryList<BsAccordionComponent>;
|
|
7
7
|
constructor(accordion: BsAccordionComponent);
|
|
8
|
+
private tabOverlayIdentifier;
|
|
9
|
+
isActiveChange: EventEmitter<boolean>;
|
|
10
|
+
private _isActive;
|
|
11
|
+
get isActive(): boolean;
|
|
12
|
+
set isActive(value: boolean);
|
|
8
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionTabComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, {}, {}, ["childAccordions"], ["bs-accordion-tab-header", "*"]>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": "isActive"; }, { "isActiveChange": "isActiveChange"; }, ["childAccordions"], ["bs-accordion-tab-header", "*"]>;
|
|
10
15
|
}
|
|
@@ -2,9 +2,11 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./accordion/accordion.component";
|
|
3
3
|
import * as i2 from "./accordion-tab/accordion-tab.component";
|
|
4
4
|
import * as i3 from "./accordion-tab-header/accordion-tab-header.component";
|
|
5
|
-
import * as i4 from "
|
|
5
|
+
import * as i4 from "./from-overlay/from-overlay.directive";
|
|
6
|
+
import * as i5 from "./from-overlay-id/from-overlay-id.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
6
8
|
export declare class BsAccordionModule {
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsAccordionModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BsAccordionModule, [typeof i1.BsAccordionComponent, typeof i2.BsAccordionTabComponent, typeof i3.BsAccordionTabHeaderComponent], [typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsAccordionModule, [typeof i1.BsAccordionComponent, typeof i2.BsAccordionTabComponent, typeof i3.BsAccordionTabHeaderComponent, typeof i4.BsFromOverlayDirective, typeof i5.BsFromOverlayIdDirective], [typeof i6.CommonModule], [typeof i1.BsAccordionComponent, typeof i2.BsAccordionTabComponent, typeof i3.BsAccordionTabHeaderComponent, typeof i4.BsFromOverlayDirective, typeof i5.BsFromOverlayIdDirective]>;
|
|
9
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<BsAccordionModule>;
|
|
10
12
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { BsAccordionTabComponent } from '..';
|
|
3
|
+
import { BsAccordionComponent } from '../accordion/accordion.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsFromOverlayDirective implements AfterContentInit, OnDestroy {
|
|
6
|
+
private accordion;
|
|
7
|
+
constructor(accordion: BsAccordionComponent);
|
|
8
|
+
private readonly inited$;
|
|
9
|
+
private readonly destroyed$;
|
|
10
|
+
private readonly activeOverlayIdentifier$;
|
|
11
|
+
bsFromOverlayChange: EventEmitter<string | null>;
|
|
12
|
+
private _bsFromOverlay;
|
|
13
|
+
/** Binds the active tab of an accordion to a field, in case the accordion is rendered in an overlay. */
|
|
14
|
+
get bsFromOverlay(): string | null;
|
|
15
|
+
set bsFromOverlay(value: string | null);
|
|
16
|
+
tabPages: QueryList<ElementRef<BsAccordionTabComponent>>;
|
|
17
|
+
ngAfterContentInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFromOverlayDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsFromOverlayDirective, "bs-accordion[bsFromOverlay]", never, { "bsFromOverlay": "bsFromOverlay"; }, { "bsFromOverlayChange": "bsFromOverlayChange"; }, ["tabPages"]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';
|
|
3
|
+
import { BsFromOverlayDirective } from '../from-overlay/from-overlay.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsFromOverlayIdDirective implements OnDestroy {
|
|
6
|
+
private accordionTab;
|
|
7
|
+
private bsFromOverlay;
|
|
8
|
+
constructor(accordionTab: BsAccordionTabComponent, bsFromOverlay: BsFromOverlayDirective);
|
|
9
|
+
private destroyed$;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
private _bsFromOverlayId;
|
|
12
|
+
/** String value containing the accordion tab identifier. */
|
|
13
|
+
get bsFromOverlayId(): string;
|
|
14
|
+
set bsFromOverlayId(value: string);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFromOverlayIdDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsFromOverlayIdDirective, "bs-accordion-tab[bsFromOverlayId]", never, { "bsFromOverlayId": "bsFromOverlayId"; }, {}, never>;
|
|
17
|
+
}
|
|
@@ -2,3 +2,5 @@ export * from './accordion.module';
|
|
|
2
2
|
export * from './accordion/accordion.component';
|
|
3
3
|
export * from './accordion-tab/accordion-tab.component';
|
|
4
4
|
export * from './accordion-tab-header/accordion-tab-header.component';
|
|
5
|
+
export * from './from-overlay/from-overlay.directive';
|
|
6
|
+
export * from './from-overlay-id/from-overlay-id.directive';
|
|
@@ -5,9 +5,11 @@ export declare class BsModalContentComponent {
|
|
|
5
5
|
constructor(content: TemplateRef<any>);
|
|
6
6
|
content: TemplateRef<any>;
|
|
7
7
|
private instance;
|
|
8
|
+
closeOnEscape: boolean;
|
|
8
9
|
animationState: string;
|
|
9
10
|
animationStateChanged: EventEmitter<AnimationEvent>;
|
|
10
11
|
onAnimationChanged(event: AnimationEvent): void;
|
|
12
|
+
private onKeyDown;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsModalContentComponent, never>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsModalContentComponent, "bs-modal-content", never, {}, {}, never, never>;
|
|
13
15
|
}
|
|
@@ -7,7 +7,7 @@ export declare class BsModalService {
|
|
|
7
7
|
private parentInjector;
|
|
8
8
|
private componentFactoryResolver;
|
|
9
9
|
constructor(overlay: Overlay, parentInjector: Injector, componentFactoryResolver: ComponentFactoryResolver);
|
|
10
|
-
show(template: TemplateRef<any
|
|
10
|
+
show(template: TemplateRef<any>, closeOnEscape?: boolean): BsModalContentComponent;
|
|
11
11
|
hide(modal: BsModalContentComponent): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsModalService, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<BsModalService>;
|
|
@@ -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,31 @@
|
|
|
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
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BsOffcanvasComponent {
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
export declare class BsOffcanvasComponent implements OnDestroy {
|
|
6
|
+
constructor(contentTemplate: TemplateRef<any>);
|
|
7
|
+
contentTemplate: TemplateRef<any>;
|
|
8
|
+
destroyed$: Subject<unknown>;
|
|
9
|
+
visibility$: Observable<string>;
|
|
10
|
+
disableTransition$: BehaviorSubject<boolean>;
|
|
11
|
+
offcanvasClass$: BehaviorSubject<string | null>;
|
|
12
|
+
width$: Observable<number | null>;
|
|
13
|
+
height$: Observable<number | null>;
|
|
14
|
+
hasBackdrop$: BehaviorSubject<boolean>;
|
|
15
|
+
showBackdrop$: Observable<boolean>;
|
|
14
16
|
position$: BehaviorSubject<OffcanvasPosition>;
|
|
15
|
-
offcanvasClass$: Observable<string>;
|
|
16
|
-
offcanvasHeight100$: Observable<boolean>;
|
|
17
17
|
set position(value: OffcanvasPosition);
|
|
18
18
|
get position(): OffcanvasPosition;
|
|
19
|
+
size$: BehaviorSubject<number | null>;
|
|
20
|
+
set size(value: number | null);
|
|
21
|
+
get size(): number | null;
|
|
22
|
+
show$: BehaviorSubject<boolean>;
|
|
23
|
+
showChange: EventEmitter<boolean>;
|
|
24
|
+
set show(value: boolean);
|
|
25
|
+
get show(): boolean;
|
|
26
|
+
backdropClick: EventEmitter<MouseEvent>;
|
|
27
|
+
onBackdropClick(ev: MouseEvent): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
19
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasComponent, "bs-offcanvas", never, { "size": "size"; }, {}, never, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasComponent, "bs-offcanvas-holder", never, { "position": "position"; "size": "size"; "show": "show"; }, { "showChange": "showChange"; "backdropClick": "backdropClick"; }, never, never>;
|
|
21
31
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class OffcanvasBodyComponent implements OnInit {
|
|
4
4
|
constructor();
|
|
5
|
+
noPadding: boolean;
|
|
5
6
|
ngOnInit(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasBodyComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasBodyComponent, "bs-offcanvas-body", never, { "noPadding": "noPadding"; }, {}, never, ["*"]>;
|
|
8
9
|
}
|
package/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class OffcanvasHeaderComponent implements OnInit {
|
|
4
4
|
constructor();
|
|
5
5
|
ngOnInit(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasHeaderComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OffcanvasHeaderComponent, "bs-offcanvas-header", never, {}, {}, never, ["*"]>;
|
|
8
8
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { BehaviorSubject, Subject } from 'rxjs';
|
|
5
|
+
import { OffcanvasPosition } from '../../types/position';
|
|
6
|
+
import { BsOffcanvasComponent } from '../offcanvas/offcanvas.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BsOffcanvasHostComponent implements AfterViewInit, OnDestroy {
|
|
9
|
+
private overlayService;
|
|
10
|
+
private rootInjector;
|
|
11
|
+
private portalFactory;
|
|
12
|
+
constructor(overlayService: Overlay, rootInjector: Injector, portalFactory: (injector: Injector) => ComponentPortal<any>);
|
|
13
|
+
content: TemplateRef<any>;
|
|
14
|
+
component: ComponentRef<BsOffcanvasComponent>;
|
|
15
|
+
viewInited$: BehaviorSubject<boolean>;
|
|
16
|
+
show$: BehaviorSubject<boolean>;
|
|
17
|
+
size$: BehaviorSubject<number | null>;
|
|
18
|
+
position$: BehaviorSubject<OffcanvasPosition>;
|
|
19
|
+
hasBackdrop$: BehaviorSubject<boolean>;
|
|
20
|
+
destroyed$: Subject<unknown>;
|
|
21
|
+
backdropClick: EventEmitter<MouseEvent>;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
showChange: EventEmitter<boolean>;
|
|
25
|
+
set show(value: boolean);
|
|
26
|
+
get show(): boolean;
|
|
27
|
+
set position(value: OffcanvasPosition);
|
|
28
|
+
get position(): OffcanvasPosition;
|
|
29
|
+
set size(value: number | null);
|
|
30
|
+
get size(): number | null;
|
|
31
|
+
set hasBackdrop(value: boolean);
|
|
32
|
+
get hasBackdrop(): boolean;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsOffcanvasHostComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsOffcanvasHostComponent, "bs-offcanvas", never, { "show": "show"; "position": "position"; "size": "size"; "hasBackdrop": "hasBackdrop"; }, { "backdropClick": "backdropClick"; "showChange": "showChange"; }, never, never>;
|
|
35
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
6
|
-
constructor(
|
|
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, {
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsOffcanvasCloseDirective, "[bsOffcanvasClose]", never, {}, {}, never>;
|
|
11
9
|
}
|
package/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.d.ts
ADDED
|
@@ -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,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 "./
|
|
4
|
-
import * as i3 from "./components/offcanvas-
|
|
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 "
|
|
7
|
-
import * as i6 from "
|
|
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.
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZmY2FudmFzLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9vZmZjYW52YXMvc2VydmljZXMvb2ZmY2FudmFzL29mZmNhbnZhcy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQWlCLE1BQU0sc0JBQXNCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFlLE1BQU0sZUFBZSxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzNELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGdEQUFnRCxDQUFDO0FBRXR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iAgXG4gICAgY29uc3QgcG9zaXRpb25pbmcgPSB0aGlzLm92ZXJsYXkucG9zaXRpb24oKS5nbG9iYWwoKTtcbiAgICBjb25zdCBjb25maWc6IE92ZXJsYXlDb25maWcgPSB7XG4gICAgICBzY3JvbGxTdHJhdGVneTogdGhpcy5vdmVybGF5LnNjcm9sbFN0cmF0ZWdpZXMucmVwb3NpdGlvbigpLFxuICAgICAgcG9zaXRpb25TdHJhdGVneTogcG9zaXRpb25pbmcsXG4gICAgICBoYXNCYWNrZHJvcCxcbiAgICB9O1xuXG4gICAgc3dpdGNoIChwb3NpdGlvbikge1xuICAgICAgY2FzZSAnYm90dG9tJzpcbiAgICAgICAgcG9zaXRpb25pbmcuY2VudGVySG9yaXpvbnRhbGx5KCkuYm90dG9tKCcwJyk7XG4gICAgICAgIGNvbmZpZy53aWR0aCA9ICcxMDAlJztcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICd0b3AnOlxuICAgICAgICBwb3NpdGlvbmluZy5jZW50ZXJIb3Jpem9udGFsbHkoKS50b3AoJzAnKTtcbiAgICAgICAgY29uZmlnLndpZHRoID0gJzEwMCUnO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3N0YXJ0JzpcbiAgICAgICAgcG9zaXRpb25pbmcuY2VudGVyVmVydGljYWxseSgpLmxlZnQoJzAnKTtcbiAgICAgICAgY29uZmlnLmhlaWdodCA9ICcxMDAlJztcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdlbmQnOlxuICAgICAgICBwb3NpdGlvbmluZy5jZW50ZXJWZXJ0aWNhbGx5KCkucmlnaHQoJzAnKTtcbiAgICAgICAgY29uZmlnLmhlaWdodCA9ICcxMDAlJztcbiAgICAgICAgYnJlYWs7XG4gICAgICAgICAgXG4gICAgICBkZWZhdWx0OlxuICAgICAgICB0aHJvdyAnSW52YWxpZCB2YWx1ZSBmb3IgcG9zaXRpb24nO1xuICAgIH1cblxuICAgIGNvbnN0IG92ZXJsYXlSZWYgPSB0aGlzLm92ZXJsYXkuY3JlYXRlKGNvbmZpZyk7XG4gIFxuICAgIGNvbnN0IGNvbXBvbmVudEluc3RhbmNlID0gb3ZlcmxheVJlZi5hdHRhY2g8QnNPZmZjYW52YXNDb21wb25lbnQ+KHBvcnRhbCk7XG4gICAgY29tcG9uZW50SW5zdGFuY2UuaW5zdGFuY2UucG9zaXRpb24gPSBwb3NpdGlvbjtcbiAgICBzZXRUaW1lb3V0KCgpID0+IGNvbXBvbmVudEluc3RhbmNlLmluc3RhbmNlLnNob3ckLm5leHQodHJ1ZSkpO1xuICAgIFxuICAgIGNvbXBvbmVudEluc3RhbmNlLmluc3RhbmNlWydpbnN0YW5jZSddID0gPE9mZmNhbnZhc0FuaW1hdGlvbk1ldGE+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
|
-
}
|