@mintplayer/ng-bootstrap 13.1.2 → 13.1.7

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 (74) hide show
  1. package/esm2020/index.mjs +2 -1
  2. package/esm2020/lib/components/calendar/calendar.component.mjs +77 -34
  3. package/esm2020/lib/components/card/card/card.component.mjs +1 -2
  4. package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +11 -7
  5. package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +10 -7
  6. package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +51 -0
  7. package/esm2020/lib/components/datatable/datatable-column/datatable-column-metadata.mjs +2 -0
  8. package/esm2020/lib/components/datatable/datatable-column/datatable-column.directive.mjs +19 -0
  9. package/esm2020/lib/components/datatable/datatable-settings.mjs +37 -0
  10. package/esm2020/lib/components/datatable/datatable.module.mjs +40 -0
  11. package/esm2020/lib/components/datatable/index.mjs +6 -0
  12. package/esm2020/lib/components/datatable/row-template/row-template.directive.mjs +19 -0
  13. package/esm2020/lib/components/datepicker/datepicker.component.mjs +22 -0
  14. package/esm2020/lib/components/datepicker/datepicker.module.mjs +34 -0
  15. package/esm2020/lib/components/datepicker/index.mjs +3 -0
  16. package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +31 -0
  17. package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +64 -0
  18. package/esm2020/lib/components/dropdown/dropdown-toggle/dropdown-toggle.directive.mjs +29 -0
  19. package/esm2020/lib/components/dropdown/dropdown.module.mjs +40 -0
  20. package/esm2020/lib/components/dropdown/index.mjs +5 -0
  21. package/esm2020/lib/components/index.mjs +6 -1
  22. package/esm2020/lib/components/multiselect/index.mjs +3 -0
  23. package/esm2020/lib/components/multiselect/multiselect.component.mjs +33 -0
  24. package/esm2020/lib/components/multiselect/multiselect.module.mjs +30 -0
  25. package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +1 -1
  26. package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +2 -2
  27. package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +146 -0
  28. package/esm2020/lib/components/pagination/pagination.module.mjs +26 -0
  29. package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +48 -0
  30. package/esm2020/lib/components/scrollspy/directives/scrollspy.directive.mjs +16 -0
  31. package/esm2020/lib/components/scrollspy/index.mjs +4 -0
  32. package/esm2020/lib/components/scrollspy/scrollspy.module.mjs +31 -0
  33. package/esm2020/lib/interfaces/index.mjs +2 -0
  34. package/esm2020/lib/interfaces/page-with-selection.mjs +2 -0
  35. package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +7 -2
  36. package/esm2020/lib/types/page-number.type.mjs +2 -0
  37. package/fesm2015/mintplayer-ng-bootstrap.mjs +743 -56
  38. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
  39. package/fesm2020/mintplayer-ng-bootstrap.mjs +739 -56
  40. package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
  41. package/index.d.ts +1 -0
  42. package/lib/components/calendar/calendar.component.d.ts +21 -13
  43. package/lib/components/carousel/carousel/carousel.component.d.ts +4 -3
  44. package/lib/components/carousel/carousel-image/carousel-image.directive.d.ts +5 -2
  45. package/lib/components/datatable/datatable/datatable.component.d.ts +17 -0
  46. package/lib/components/datatable/datatable-column/datatable-column-metadata.d.ts +4 -0
  47. package/lib/components/datatable/datatable-column/datatable-column.directive.d.ts +10 -0
  48. package/lib/components/datatable/datatable-settings.d.ts +15 -0
  49. package/lib/components/datatable/datatable.module.d.ts +11 -0
  50. package/lib/components/datatable/index.d.ts +5 -0
  51. package/lib/components/datatable/row-template/row-template.directive.d.ts +9 -0
  52. package/lib/components/datepicker/datepicker.component.d.ts +10 -0
  53. package/lib/components/datepicker/datepicker.module.d.ts +10 -0
  54. package/lib/components/datepicker/index.d.ts +2 -0
  55. package/lib/components/dropdown/dropdown/dropdown.directive.d.ts +13 -0
  56. package/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +17 -0
  57. package/lib/components/dropdown/dropdown-toggle/dropdown-toggle.directive.d.ts +11 -0
  58. package/lib/components/dropdown/dropdown.module.d.ts +11 -0
  59. package/lib/components/dropdown/index.d.ts +4 -0
  60. package/lib/components/index.d.ts +5 -0
  61. package/lib/components/multiselect/index.d.ts +2 -0
  62. package/lib/components/multiselect/multiselect.component.d.ts +11 -0
  63. package/lib/components/multiselect/multiselect.module.d.ts +9 -0
  64. package/lib/components/pagination/pagination/pagination.component.d.ts +45 -0
  65. package/lib/components/pagination/pagination.module.d.ts +8 -0
  66. package/lib/components/scrollspy/component/scrollspy.component.d.ts +15 -0
  67. package/lib/components/scrollspy/directives/scrollspy.directive.d.ts +8 -0
  68. package/lib/components/scrollspy/index.d.ts +3 -0
  69. package/lib/components/scrollspy/scrollspy.module.d.ts +9 -0
  70. package/lib/interfaces/index.d.ts +1 -0
  71. package/lib/interfaces/page-with-selection.d.ts +5 -0
  72. package/lib/pipes/month-name/month-name.pipe.d.ts +1 -1
  73. package/lib/types/page-number.type.d.ts +1 -0
  74. package/package.json +3 -1
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./datepicker.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../calendar/calendar.module";
5
+ import * as i4 from "../dropdown/dropdown.module";
6
+ export declare class BsDatepickerModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsDatepickerModule, [typeof i1.BsDatepickerComponent], [typeof i2.CommonModule, typeof i3.BsCalendarModule, typeof i4.BsDropdownModule], [typeof i1.BsDatepickerComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsDatepickerModule>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export * from './datepicker.component';
2
+ export * from './datepicker.module';
@@ -0,0 +1,13 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { BsDropdownMenuDirective } from '../dropdown-menu/dropdown-menu.directive';
3
+ import { BsDropdownToggleDirective } from '../dropdown-toggle/dropdown-toggle.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BsDropdownDirective {
6
+ isOpen$: BehaviorSubject<boolean>;
7
+ menu: BsDropdownMenuDirective;
8
+ toggle: BsDropdownToggleDirective;
9
+ hasBackdrop: boolean;
10
+ closeOnClickOutside: boolean;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownDirective, "[bsDropdown]", never, { "hasBackdrop": "hasBackdrop"; "closeOnClickOutside": "closeOnClickOutside"; }, {}, ["menu", "toggle"]>;
13
+ }
@@ -0,0 +1,17 @@
1
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { Overlay } from '@angular/cdk/overlay';
3
+ import { BsDropdownDirective } from '../dropdown/dropdown.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BsDropdownMenuDirective {
6
+ private dropdown;
7
+ private viewContainerRef;
8
+ private templateRef;
9
+ private overlay;
10
+ constructor(dropdown: BsDropdownDirective, document: any, viewContainerRef: ViewContainerRef, templateRef: TemplateRef<any>, overlay: Overlay);
11
+ private document;
12
+ private destroyed$;
13
+ private overlayRef;
14
+ private templatePortal;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownMenuDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownMenuDirective, "[bsDropdownMenu]", never, {}, {}, never>;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { BsDropdownDirective } from '../dropdown/dropdown.directive';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsDropdownToggleDirective {
5
+ private dropdown;
6
+ constructor(dropdown: BsDropdownDirective, toggleButton: ElementRef);
7
+ toggleButton: ElementRef;
8
+ onClick(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownToggleDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownToggleDirective, "[bsDropdownToggle]", never, {}, {}, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dropdown/dropdown.directive";
3
+ import * as i2 from "./dropdown-toggle/dropdown-toggle.directive";
4
+ import * as i3 from "./dropdown-menu/dropdown-menu.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/cdk/overlay";
7
+ export declare class BsDropdownModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsDropdownModule, [typeof i1.BsDropdownDirective, typeof i2.BsDropdownToggleDirective, typeof i3.BsDropdownMenuDirective], [typeof i4.CommonModule, typeof i5.OverlayModule], [typeof i1.BsDropdownDirective, typeof i2.BsDropdownToggleDirective, typeof i3.BsDropdownMenuDirective]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsDropdownModule>;
11
+ }
@@ -0,0 +1,4 @@
1
+ export * from './dropdown/dropdown.directive';
2
+ export * from './dropdown-menu/dropdown-menu.directive';
3
+ export * from './dropdown-toggle/dropdown-toggle.directive';
4
+ export * from './dropdown.module';
@@ -2,7 +2,12 @@ export * from './alert';
2
2
  export * from './card';
3
3
  export * from './calendar';
4
4
  export * from './carousel';
5
+ export * from './datatable';
5
6
  export * from './list-group';
6
7
  export * from './navbar';
7
8
  export * from './accordion';
8
9
  export * from './tab-control';
10
+ export * from './scrollspy';
11
+ export * from './dropdown';
12
+ export * from './datepicker';
13
+ export * from './multiselect';
@@ -0,0 +1,2 @@
1
+ export * from './multiselect.component';
2
+ export * from './multiselect.module';
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsMultiselectComponent implements OnInit {
4
+ constructor();
5
+ items: any[];
6
+ selectedItems: any[];
7
+ itemChange(item: any, event: Event): void;
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsMultiselectComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsMultiselectComponent, "bs-multiselect", never, { "items": "items"; "selectedItems": "selectedItems"; }, {}, never, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./multiselect.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../dropdown/dropdown.module";
5
+ export declare class BsMultiselectModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsMultiselectModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsMultiselectModule, [typeof i1.BsMultiselectComponent], [typeof i2.CommonModule, typeof i3.BsDropdownModule], [typeof i1.BsMultiselectComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsMultiselectModule>;
9
+ }
@@ -0,0 +1,45 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { BehaviorSubject, Observable } from 'rxjs';
3
+ import { PageWithSelection } from '../../../interfaces/page-with-selection';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BsPaginationComponent implements OnInit, OnDestroy {
6
+ constructor();
7
+ ngOnInit(): void;
8
+ ngOnDestroy(): void;
9
+ onSelectPage(event: MouseEvent, page: number): boolean;
10
+ onPrevious(): boolean;
11
+ onNext(): boolean;
12
+ /** All page numbers. */
13
+ pageNumbers$: BehaviorSubject<number[]>;
14
+ /** Page numbers to be displayed to the user. */
15
+ shownPageNumbers$: Observable<PageWithSelection[]>;
16
+ /** Selected number. */
17
+ selectedPageNumber$: BehaviorSubject<number>;
18
+ /** Number of boxes. */
19
+ numberOfBoxes$: BehaviorSubject<number>;
20
+ /** Display previous/next arrows. */
21
+ showArrows$: BehaviorSubject<boolean>;
22
+ /** Indicates if first value is selected. */
23
+ isFirstPage$: Observable<boolean>;
24
+ /** Indicates if last value is selected. */
25
+ isLastPage$: Observable<boolean>;
26
+ /** The number of boxes (excluding arrows) that's being shown on the pagination component. */
27
+ visibleNumberOfNumberBoxes$: Observable<number>;
28
+ /** Monitor OnDestroyed hook. */
29
+ private destroyed$;
30
+ private _selectedPageNumber;
31
+ selectedPageNumberChange: EventEmitter<number>;
32
+ set selectedPageNumber(value: number);
33
+ get selectedPageNumber(): number;
34
+ private _numberOfBoxes;
35
+ set numberOfBoxes(value: number);
36
+ get numberOfBoxes(): number;
37
+ private _pageNumbers;
38
+ set pageNumbers(value: number[]);
39
+ get pageNumbers(): number[];
40
+ private _showArrows;
41
+ set showArrows(value: boolean);
42
+ get showArrows(): boolean;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsPaginationComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsPaginationComponent, "bs-pagination", never, { "selectedPageNumber": "selectedPageNumber"; "numberOfBoxes": "numberOfBoxes"; "pageNumbers": "pageNumbers"; "showArrows": "showArrows"; }, { "selectedPageNumberChange": "selectedPageNumberChange"; }, never, never>;
45
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./pagination/pagination.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class BsPaginationModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsPaginationModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsPaginationModule, [typeof i1.BsPaginationComponent], [typeof i2.CommonModule], [typeof i1.BsPaginationComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsPaginationModule>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { AfterViewInit, OnInit, QueryList } from '@angular/core';
2
+ import { BsScrollspyDirective } from '../directives/scrollspy.directive';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsScrollspyComponent implements OnInit, AfterViewInit {
5
+ constructor(document: any);
6
+ directives: QueryList<BsScrollspyDirective>;
7
+ doc: Document;
8
+ activeDirective: BsScrollspyDirective | null;
9
+ ngOnInit(): void;
10
+ ngAfterViewInit(): void;
11
+ onWindowScroll(): void;
12
+ scrollToHeader(directive: BsScrollspyDirective): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsScrollspyComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsScrollspyComponent, "bs-scrollspy", never, {}, {}, ["directives"], ["*"]>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsScrollspyDirective {
4
+ constructor(element: ElementRef);
5
+ element: ElementRef;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsScrollspyDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsScrollspyDirective, "[bsScrollspy]", never, {}, {}, never>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './component/scrollspy.component';
2
+ export * from './directives/scrollspy.directive';
3
+ export * from './scrollspy.module';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component/scrollspy.component";
3
+ import * as i2 from "./directives/scrollspy.directive";
4
+ import * as i3 from "@angular/common";
5
+ export declare class BsScrollspyModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsScrollspyModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsScrollspyModule, [typeof i1.BsScrollspyComponent, typeof i2.BsScrollspyDirective], [typeof i3.CommonModule], [typeof i1.BsScrollspyComponent, typeof i2.BsScrollspyDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsScrollspyModule>;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './page-with-selection';
@@ -0,0 +1,5 @@
1
+ import { PageNumberType } from "../types/page-number.type";
2
+ export interface PageWithSelection {
3
+ page: PageNumberType;
4
+ selected: boolean;
5
+ }
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MonthNamePipe implements PipeTransform {
4
- transform(date: Date, ...args: any[]): string;
4
+ transform(date: Date | null, ...args: any[]): string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MonthNamePipe, never>;
6
6
  static ɵpipe: i0.ɵɵPipeDeclaration<MonthNamePipe, "monthName">;
7
7
  }
@@ -0,0 +1 @@
1
+ export declare type PageNumberType = number | '...';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "13.1.2",
4
+ "version": "13.1.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap"
@@ -9,10 +9,12 @@
9
9
  "peerDependencies": {
10
10
  "@angular/common": "^13.0.0",
11
11
  "@angular/core": "^13.0.0",
12
+ "@angular/cdk": "^13.0.0",
12
13
  "bootstrap": "^5.1.3",
13
14
  "bootstrap-icons": "^1.7.2",
14
15
  "@mintplayer/ng-click-outside": "^13.0.0",
15
16
  "@mintplayer/ng-animations": "^13.0.0",
17
+ "@mintplayer/ng-pagination": "^13.1.0",
16
18
  "@angular/animations": "13.1.1",
17
19
  "@angular/platform-browser": "13.1.1",
18
20
  "rxjs": "~7.4.0",