@mintplayer/ng-bootstrap 13.4.2 → 13.7.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 (162) 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 +3 -3
  7. package/esm2020/lib/components/accordion/from-overlay-id/from-overlay-id.directive.mjs +3 -3
  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 +3 -3
  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 +6 -6
  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/components/index.mjs +3 -0
  44. package/esm2020/lib/components/modal/components/modal/modal.component.mjs +21 -0
  45. package/esm2020/lib/components/modal/components/modal-host/modal-host.component.mjs +72 -0
  46. package/esm2020/lib/components/modal/directives/index.mjs +3 -1
  47. package/esm2020/lib/components/modal/directives/modal/modal.directive.mjs +18 -0
  48. package/esm2020/lib/components/modal/directives/modal-body/modal-body.directive.mjs +11 -10
  49. package/esm2020/lib/components/modal/directives/modal-close/modal-close.directive.mjs +24 -0
  50. package/esm2020/lib/components/modal/directives/modal-footer/modal-footer.directive.mjs +11 -10
  51. package/esm2020/lib/components/modal/directives/modal-header/modal-header.directive.mjs +11 -10
  52. package/esm2020/lib/components/modal/index.mjs +2 -3
  53. package/esm2020/lib/components/modal/modal.module.mjs +37 -12
  54. package/esm2020/lib/components/modal/providers/portal-factory.provider.mjs +3 -0
  55. package/esm2020/lib/components/multiselect/component/multiselect.component.mjs +3 -3
  56. package/esm2020/lib/components/multiselect/directives/button-template/button-template.directive.mjs +3 -3
  57. package/esm2020/lib/components/multiselect/directives/footer-template/footer-template.directive.mjs +3 -3
  58. package/esm2020/lib/components/multiselect/directives/header-template/header-template.directive.mjs +3 -3
  59. package/esm2020/lib/components/multiselect/multiselect.module.mjs +4 -4
  60. package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +3 -3
  61. package/esm2020/lib/components/navbar/expand-button/expand-button.directive.mjs +3 -3
  62. package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +3 -3
  63. package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +3 -3
  64. package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +3 -3
  65. package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +3 -3
  66. package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +4 -4
  67. package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +3 -3
  68. package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +3 -3
  69. package/esm2020/lib/components/navbar/navbar-toggler/navbar-toggler.component.mjs +3 -3
  70. package/esm2020/lib/components/navbar/navbar.module.mjs +4 -4
  71. package/esm2020/lib/components/offcanvas/components/offcanvas/offcanvas.component.mjs +3 -3
  72. package/esm2020/lib/components/offcanvas/components/offcanvas-body/offcanvas-body.component.mjs +3 -3
  73. package/esm2020/lib/components/offcanvas/components/offcanvas-header/offcanvas-header.component.mjs +3 -3
  74. package/esm2020/lib/components/offcanvas/components/offcanvas-host/offcanvas-host.component.mjs +3 -3
  75. package/esm2020/lib/components/offcanvas/directives/offcanvas-close/offcanvas-close.directive.mjs +3 -3
  76. package/esm2020/lib/components/offcanvas/directives/offcanvas-content/offcanvas-content.directive.mjs +3 -3
  77. package/esm2020/lib/components/offcanvas/offcanvas.module.mjs +4 -4
  78. package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +3 -3
  79. package/esm2020/lib/components/pagination/pagination.module.mjs +4 -4
  80. package/esm2020/lib/components/progress-bar/progress/progress.component.mjs +3 -3
  81. package/esm2020/lib/components/progress-bar/progress-bar/progress-bar.component.mjs +3 -3
  82. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +4 -4
  83. package/esm2020/lib/components/rating/rating.component.mjs +3 -3
  84. package/esm2020/lib/components/rating/rating.module.mjs +4 -4
  85. package/esm2020/lib/components/scheduler/components/resource-group-presenter/resource-group-presenter.component.mjs +3 -3
  86. package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +3 -3
  87. package/esm2020/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.mjs +3 -3
  88. package/esm2020/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.mjs +3 -3
  89. package/esm2020/lib/components/scheduler/pipes/date-offset/date-offset.pipe.mjs +3 -3
  90. package/esm2020/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.mjs +3 -3
  91. package/esm2020/lib/components/scheduler/scheduler.module.mjs +4 -4
  92. package/esm2020/lib/components/scheduler/services/timeline/timeline.service.mjs +3 -3
  93. package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +3 -3
  94. package/esm2020/lib/components/scrollspy/directives/scrollspy.directive.mjs +3 -3
  95. package/esm2020/lib/components/scrollspy/scrollspy.module.mjs +4 -4
  96. package/esm2020/lib/components/select2/component/select2.component.mjs +3 -3
  97. package/esm2020/lib/components/select2/directive/item-template.directive.mjs +3 -3
  98. package/esm2020/lib/components/select2/select2.module.mjs +4 -4
  99. package/esm2020/lib/components/snackbar/component/snackbar.component.mjs +3 -3
  100. package/esm2020/lib/components/snackbar/directives/snackbar-close/snackbar-close.directive.mjs +3 -3
  101. package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +3 -3
  102. package/esm2020/lib/components/snackbar/snackbar.module.mjs +4 -4
  103. package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +3 -3
  104. package/esm2020/lib/components/tab-control/tab-control.module.mjs +4 -4
  105. package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +3 -3
  106. package/esm2020/lib/components/timepicker/timepicker.component.mjs +3 -3
  107. package/esm2020/lib/components/timepicker/timepicker.module.mjs +4 -4
  108. package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  109. package/esm2020/lib/components/toggle-button/toggle-button.module.mjs +4 -4
  110. package/esm2020/lib/components/tooltip/component/tooltip.component.mjs +3 -3
  111. package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +3 -3
  112. package/esm2020/lib/components/tooltip/tooltip.module.mjs +4 -4
  113. package/esm2020/lib/components/typeahead/typeahead.component.mjs +3 -3
  114. package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
  115. package/esm2020/lib/directives/enhanced-paste/enhanced-paste.directive.mjs +3 -3
  116. package/esm2020/lib/directives/enhanced-paste/enhanced-paste.module.mjs +4 -4
  117. package/esm2020/lib/directives/index.mjs +2 -0
  118. package/esm2020/lib/pipes/font-color/font-color.module.mjs +4 -4
  119. package/esm2020/lib/pipes/font-color/font-color.pipe.mjs +3 -3
  120. package/esm2020/lib/pipes/format-bytes/format-bytes.module.mjs +4 -4
  121. package/esm2020/lib/pipes/format-bytes/format-bytes.pipe.mjs +3 -3
  122. package/esm2020/lib/pipes/in-list/in-list.module.mjs +4 -4
  123. package/esm2020/lib/pipes/in-list/in-list.pipe.mjs +3 -3
  124. package/esm2020/lib/pipes/month-name/month-name.module.mjs +4 -4
  125. package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +3 -3
  126. package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +4 -4
  127. package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +3 -3
  128. package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +4 -4
  129. package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +3 -3
  130. package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +3 -3
  131. package/esm2020/lib/services/scroll-offset/scroll-offset.service.mjs +3 -3
  132. package/fesm2015/mintplayer-ng-bootstrap.mjs +555 -492
  133. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
  134. package/fesm2020/mintplayer-ng-bootstrap.mjs +552 -490
  135. package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
  136. package/index.d.ts +1 -0
  137. package/lib/components/datatable/datatable/datatable.component.d.ts +1 -1
  138. package/lib/components/modal/components/index.d.ts +2 -0
  139. package/lib/components/modal/{component → components}/modal/modal.component.d.ts +5 -6
  140. package/lib/components/modal/components/modal-host/modal-host.component.d.ts +23 -0
  141. package/lib/components/modal/directives/index.d.ts +2 -0
  142. package/lib/components/modal/directives/modal/modal.directive.d.ts +8 -0
  143. package/lib/components/modal/directives/modal-body/modal-body.directive.d.ts +1 -3
  144. package/lib/components/modal/directives/modal-close/modal-close.directive.d.ts +9 -0
  145. package/lib/components/modal/directives/modal-footer/modal-footer.directive.d.ts +1 -3
  146. package/lib/components/modal/directives/modal-header/modal-header.directive.d.ts +1 -3
  147. package/lib/components/modal/index.d.ts +1 -2
  148. package/lib/components/modal/modal.module.d.ts +7 -5
  149. package/lib/components/modal/providers/portal-factory.provider.d.ts +3 -0
  150. package/lib/directives/index.d.ts +1 -0
  151. package/package.json +12 -12
  152. package/esm2020/lib/components/modal/component/index.mjs +0 -3
  153. package/esm2020/lib/components/modal/component/modal/modal.component.mjs +0 -13
  154. package/esm2020/lib/components/modal/component/modal-content/modal-content.component.mjs +0 -39
  155. package/esm2020/lib/components/modal/interfaces/index.mjs +0 -2
  156. package/esm2020/lib/components/modal/interfaces/modal-animation-meta.mjs +0 -2
  157. package/esm2020/lib/components/modal/service/modal.service.mjs +0 -52
  158. package/lib/components/modal/component/index.d.ts +0 -2
  159. package/lib/components/modal/component/modal-content/modal-content.component.d.ts +0 -15
  160. package/lib/components/modal/interfaces/index.d.ts +0 -1
  161. package/lib/components/modal/interfaces/modal-animation-meta.d.ts +0 -7
  162. package/lib/components/modal/service/modal.service.d.ts +0 -14
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/components';
2
+ export * from './lib/directives';
2
3
  export * from './lib/enums';
3
4
  export * from './lib/interfaces';
4
5
  export * from './lib/pipes';
@@ -9,7 +9,7 @@ export declare class BsDatatableComponent {
9
9
  settings: DatatableSettings;
10
10
  data?: PaginationResponse<any>;
11
11
  rowTemplate?: TemplateRef<any>;
12
- reloadData: EventEmitter<any>;
12
+ reloadData: EventEmitter<DatatableSettings>;
13
13
  columnHeaderClicked(column: BsDatatableColumnDirective): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<BsDatatableComponent, never>;
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<BsDatatableComponent, "bs-datatable", never, { "settings": "settings"; "data": "data"; }, { "reloadData": "reloadData"; }, ["columns"], never>;
@@ -0,0 +1,2 @@
1
+ export * from './modal/modal.component';
2
+ export * from './modal-host/modal-host.component';
@@ -1,10 +1,9 @@
1
- import { TemplateRef } from "@angular/core";
1
+ import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class BsModalComponent {
4
- constructor();
5
- header: TemplateRef<any>;
6
- body: TemplateRef<any>;
7
- footer: TemplateRef<any>;
4
+ constructor(template: TemplateRef<any>);
5
+ isOpen: boolean;
6
+ template: TemplateRef<any>;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BsModalComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<BsModalComponent, "bs-modal", never, {}, {}, never, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsModalComponent, "bs-modal-content", never, {}, {}, never, never>;
10
9
  }
@@ -0,0 +1,23 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { ComponentPortal } from '@angular/cdk/portal';
3
+ import { AfterViewInit, ComponentFactoryResolver, ComponentRef, EventEmitter, Injector, TemplateRef } from '@angular/core';
4
+ import { BsModalComponent } from '../modal/modal.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BsModalHostComponent implements AfterViewInit {
7
+ private overlay;
8
+ private parentInjector;
9
+ private portalFactory;
10
+ private componentFactoryResolver;
11
+ constructor(overlay: Overlay, parentInjector: Injector, portalFactory: (injector: Injector) => ComponentPortal<any>, componentFactoryResolver: ComponentFactoryResolver);
12
+ componentInstance?: ComponentRef<BsModalComponent>;
13
+ template: TemplateRef<any>;
14
+ private _isOpen;
15
+ get isOpen(): boolean;
16
+ set isOpen(value: boolean);
17
+ isOpenChange: EventEmitter<boolean>;
18
+ closeOnEscape: boolean;
19
+ ngAfterViewInit(): void;
20
+ private onKeyDown;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsModalHostComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsModalHostComponent, "bs-modal", never, { "isOpen": "isOpen"; "closeOnEscape": "closeOnEscape"; }, { "isOpenChange": "isOpenChange"; }, never, never>;
23
+ }
@@ -1,3 +1,5 @@
1
+ export * from './modal/modal.directive';
1
2
  export * from './modal-header/modal-header.directive';
2
3
  export * from './modal-body/modal-body.directive';
3
4
  export * from './modal-footer/modal-footer.directive';
5
+ export * from './modal-close/modal-close.directive';
@@ -0,0 +1,8 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { BsModalHostComponent } from '../../components/modal-host/modal-host.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsModalDirective {
5
+ constructor(template: TemplateRef<any>, host: BsModalHostComponent);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsModalDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalDirective, "[bsModal]", never, {}, {}, never>;
8
+ }
@@ -1,8 +1,6 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { BsModalComponent } from '../../component/modal/modal.component';
3
1
  import * as i0 from "@angular/core";
4
2
  export declare class BsModalBodyDirective {
5
- constructor(modal: BsModalComponent, template: TemplateRef<any>);
3
+ bodyClass: boolean;
6
4
  static ɵfac: i0.ɵɵFactoryDeclaration<BsModalBodyDirective, never>;
7
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalBodyDirective, "[bsModalBody]", never, {}, {}, never>;
8
6
  }
@@ -0,0 +1,9 @@
1
+ import { BsModalHostComponent } from '../../components/modal-host/modal-host.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsModalCloseDirective {
4
+ private host;
5
+ constructor(host: BsModalHostComponent);
6
+ onClick(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsModalCloseDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalCloseDirective, "[bsModalClose]", never, {}, {}, never>;
9
+ }
@@ -1,8 +1,6 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { BsModalComponent } from '../../component/modal/modal.component';
3
1
  import * as i0 from "@angular/core";
4
2
  export declare class BsModalFooterDirective {
5
- constructor(modal: BsModalComponent, template: TemplateRef<any>);
3
+ footerClass: boolean;
6
4
  static ɵfac: i0.ɵɵFactoryDeclaration<BsModalFooterDirective, never>;
7
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalFooterDirective, "[bsModalFooter]", never, {}, {}, never>;
8
6
  }
@@ -1,8 +1,6 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { BsModalComponent } from '../../component/modal/modal.component';
3
1
  import * as i0 from "@angular/core";
4
2
  export declare class BsModalHeaderDirective {
5
- constructor(modal: BsModalComponent, template: TemplateRef<any>);
3
+ headerClass: boolean;
6
4
  static ɵfac: i0.ɵɵFactoryDeclaration<BsModalHeaderDirective, never>;
7
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<BsModalHeaderDirective, "[bsModalHeader]", never, {}, {}, never>;
8
6
  }
@@ -1,4 +1,3 @@
1
- export * from './component';
1
+ export * from './components';
2
2
  export * from './directives';
3
3
  export * from './modal.module';
4
- export * from './service/modal.service';
@@ -2,12 +2,14 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./directives/modal-header/modal-header.directive";
3
3
  import * as i2 from "./directives/modal-body/modal-body.directive";
4
4
  import * as i3 from "./directives/modal-footer/modal-footer.directive";
5
- import * as i4 from "./component/modal/modal.component";
6
- import * as i5 from "./component/modal-content/modal-content.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@angular/cdk/overlay";
5
+ import * as i4 from "./directives/modal/modal.directive";
6
+ import * as i5 from "./directives/modal-close/modal-close.directive";
7
+ import * as i6 from "./components/modal/modal.component";
8
+ import * as i7 from "./components/modal-host/modal-host.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "@angular/cdk/overlay";
9
11
  export declare class BsModalModule {
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<BsModalModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<BsModalModule, [typeof i1.BsModalHeaderDirective, typeof i2.BsModalBodyDirective, typeof i3.BsModalFooterDirective, typeof i4.BsModalComponent, typeof i5.BsModalContentComponent], [typeof i6.CommonModule, typeof i7.OverlayModule], [typeof i1.BsModalHeaderDirective, typeof i2.BsModalBodyDirective, typeof i3.BsModalFooterDirective, typeof i4.BsModalComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsModalModule, [typeof i1.BsModalHeaderDirective, typeof i2.BsModalBodyDirective, typeof i3.BsModalFooterDirective, typeof i4.BsModalDirective, typeof i5.BsModalCloseDirective, typeof i6.BsModalComponent, typeof i7.BsModalHostComponent], [typeof i8.CommonModule, typeof i9.OverlayModule], [typeof i1.BsModalHeaderDirective, typeof i2.BsModalBodyDirective, typeof i3.BsModalFooterDirective, typeof i4.BsModalDirective, typeof i5.BsModalCloseDirective, typeof i6.BsModalComponent, typeof i7.BsModalHostComponent]>;
12
14
  static ɵinj: i0.ɵɵInjectorDeclaration<BsModalModule>;
13
15
  }
@@ -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 './enhanced-paste/enhanced-paste.directive';
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "13.4.2",
4
+ "version": "13.7.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/common": "^13.2.0",
11
- "@angular/core": "^13.2.0",
12
- "@angular/cdk": "^13.2.0",
10
+ "@angular/common": "^13.3.0",
11
+ "@angular/core": "^13.3.0",
12
+ "@angular/cdk": "^13.3.0",
13
13
  "rxjs": "^7.4.0",
14
14
  "bootstrap": "^5.1.3",
15
15
  "bootstrap-icons": "^1.7.2",
16
- "@mintplayer/ng-click-outside": "^13.2.0",
17
- "@mintplayer/ng-animations": "^13.2.0",
18
- "@mintplayer/ng-pagination": "^13.2.0",
19
- "@mintplayer/ng-focus-on-load": "^13.2.0",
20
- "@angular/animations": "~13.2.0",
21
- "@angular/platform-browser": "~13.2.0",
16
+ "@mintplayer/ng-click-outside": "^13.3.0",
17
+ "@mintplayer/ng-animations": "^13.3.0",
18
+ "@mintplayer/ng-pagination": "^13.3.0",
19
+ "@mintplayer/ng-focus-on-load": "^13.3.0",
20
+ "@angular/animations": "~13.3.0",
21
+ "@angular/platform-browser": "~13.3.0",
22
22
  "ngx-highlightjs": "~6.1.1",
23
- "@angular/router": "~13.2.0",
24
- "@angular/forms": "~13.2.0"
23
+ "@angular/router": "~13.3.0",
24
+ "@angular/forms": "~13.3.0"
25
25
  },
26
26
  "dependencies": {
27
27
  "tslib": "^2.3.0"
@@ -1,3 +0,0 @@
1
- export * from './modal/modal.component';
2
- export * from './modal-content/modal-content.component';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9tb2RhbC9jb21wb25lbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHlDQUF5QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tb2RhbC9tb2RhbC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9tb2RhbC1jb250ZW50L21vZGFsLWNvbnRlbnQuY29tcG9uZW50JzsiXX0=
@@ -1,13 +0,0 @@
1
- import { Component } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export class BsModalComponent {
5
- constructor() { }
6
- }
7
- BsModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8
- BsModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: BsModalComponent, selector: "bs-modal", ngImport: i0, template: "<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <div class=\"modal-body\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </div>\n</div>", styles: [""], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalComponent, decorators: [{
10
- type: Component,
11
- args: [{ selector: 'bs-modal', template: "<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <div class=\"modal-body\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </div>\n</div>", styles: [""] }]
12
- }], ctorParameters: function () { return []; } });
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9taW50cGxheWVyLW5nLWJvb3RzdHJhcC9zcmMvbGliL2NvbXBvbmVudHMvbW9kYWwvY29tcG9uZW50L21vZGFsL21vZGFsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbWludHBsYXllci1uZy1ib290c3RyYXAvc3JjL2xpYi9jb21wb25lbnRzL21vZGFsL2NvbXBvbmVudC9tb2RhbC9tb2RhbC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUE2QixNQUFNLGVBQWUsQ0FBQzs7O0FBT3JFLE1BQU0sT0FBTyxnQkFBZ0I7SUFFM0IsZ0JBQWUsQ0FBQzs7NkdBRkwsZ0JBQWdCO2lHQUFoQixnQkFBZ0IsZ0RDUDdCLDJjQVlNOzJGRExPLGdCQUFnQjtrQkFMNUIsU0FBUzsrQkFDRSxVQUFVIi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bjwvZGl2PiJdfQ==
@@ -1,39 +0,0 @@
1
- import { Component, EventEmitter, HostListener, Inject, TemplateRef } from '@angular/core';
2
- import { FadeInOutAnimation } from '@mintplayer/ng-animations';
3
- import { filter, take } from 'rxjs';
4
- import { MODAL_CONTENT } from '../../providers/modal-content.provider';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- export class BsModalContentComponent {
8
- constructor(content) {
9
- this.instance = null;
10
- this.closeOnEscape = false;
11
- //#region Monitor @fadeInOut hooks
12
- this.animationState = '';
13
- this.animationStateChanged = new EventEmitter();
14
- this.content = content;
15
- }
16
- onAnimationChanged(event) {
17
- this.animationStateChanged.emit(event);
18
- }
19
- //#endregion
20
- onKeyDown(ev) {
21
- if (this.closeOnEscape && ev.code === 'Escape') {
22
- this.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => this.instance?.overlay.dispose());
23
- this.animationState = 'void';
24
- }
25
- }
26
- }
27
- BsModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalContentComponent, deps: [{ token: MODAL_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
28
- BsModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: BsModalContentComponent, selector: "bs-modal-content", host: { listeners: { "keydown": "onKeyDown($event)" } }, ngImport: i0, template: "<div class=\"modal d-block\" tabindex=\"-1\"\n [@fadeInOut]=\"animationState\"\n (@fadeInOut.start)=\"onAnimationChanged($event)\"\n (@fadeInOut.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n\n</div>", styles: [""], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [FadeInOutAnimation] });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalContentComponent, decorators: [{
30
- type: Component,
31
- args: [{ selector: 'bs-modal-content', animations: [FadeInOutAnimation], template: "<div class=\"modal d-block\" tabindex=\"-1\"\n [@fadeInOut]=\"animationState\"\n (@fadeInOut.start)=\"onAnimationChanged($event)\"\n (@fadeInOut.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n\n</div>", styles: [""] }]
32
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
33
- type: Inject,
34
- args: [MODAL_CONTENT]
35
- }] }]; }, propDecorators: { onKeyDown: [{
36
- type: HostListener,
37
- args: ['keydown', ['$event']]
38
- }] } });
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9tb2RhbC9jb21wb25lbnQvbW9kYWwtY29udGVudC9tb2RhbC1jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbWludHBsYXllci1uZy1ib290c3RyYXAvc3JjL2xpYi9jb21wb25lbnRzL21vZGFsL2NvbXBvbmVudC9tb2RhbC1jb250ZW50L21vZGFsLWNvbnRlbnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFNBQVMsRUFBZ0IsWUFBWSxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pHLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDJCQUEyQ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bmUnICYmIGV2LnRvU3RhdGUgPT09ICd2b2lkJyksXG4gICAgICAgIHRha2UoMSlcbiAgICAgICkuc3Vic2NyaWJlKCgpID0+IHRoaXMuaW5zdGFuY2U/Lm92ZXJsYXkuZGlzcG9zZSgpKTtcbiAgXG4gICAgICB0aGlzLmFuaW1hdGlvblN0YXRlID0gJ3ZvaWQnO1xuICAgIH1cbiAgfVxufVxuIiwiPGRpdiBjbGFzcz1cIm1vZGFsIGQtYmxvY2tcIiB0YWJpbmRleD1cIi0xXCJcbiAgICAgW0BmYWRlSW5PdXRdPVwiYW5pbWF0aW9uU3RhdGVcIlxuICAgICAoQGZhZGVJbk91dC5zdGFydCk9XCJvbkFuaW1hdGlvbkNoYW5nZWQoJGV2ZW50KVwiXG4gICAgIChAZmFkZUluT3V0LmRvbmUpPVwib25BbmltYXRpb25DaGFuZ2VkKCRldmVudClcIj5cblxuICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjb250ZW50OyBjb250ZXh0OiB7ICRpbXBsaWNpdDogdGhpcyB9XCIgPjwvbmctY29udGFpbmVyPlxuXG48L2Rpdj4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './modal-animation-meta';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9tb2RhbC9pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21vZGFsLWFuaW1hdGlvbi1tZXRhJzsiXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYW5pbWF0aW9uLW1ldGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy9tb2RhbC9pbnRlcmZhY2VzL21vZGFsLWFuaW1hdGlvbi1tZXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPdmVybGF5UmVmIH0gZnJvbSBcIkBhbmd1bGFyL2Nkay9vdmVybGF5XCI7XG5pbXBvcnQgeyBDb21wb25lbnRSZWYgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuaW1wb3J0IHsgQnNNb2RhbENvbnRlbnRDb21wb25lbnQgfSBmcm9tIFwiLi4vY29tcG9uZW50L21vZGFsLWNvbnRlbnQvbW9kYWwtY29udGVudC5jb21wb25lbnRcIjtcblxuZXhwb3J0IGludGVyZmFjZSBNb2RhbEFuaW1hdGlvbk1ldGEge1xuICAgIGNvbXBvbmVudDogQ29tcG9uZW50UmVmPEJzTW9kYWxDb250ZW50Q29tcG9uZW50PjtcbiAgICBvdmVybGF5OiBPdmVybGF5UmVmO1xufSJdfQ==
@@ -1,52 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ComponentPortal } from '@angular/cdk/portal';
3
- import { ComponentFactoryResolver, Injectable, Injector } from '@angular/core';
4
- import { filter, take } from 'rxjs';
5
- import { BsModalModule } from '../modal.module';
6
- import { BsModalContentComponent } from '../component/modal-content/modal-content.component';
7
- import { MODAL_CONTENT } from '../providers/modal-content.provider';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/cdk/overlay";
10
- export class BsModalService {
11
- constructor(overlay, parentInjector, componentFactoryResolver) {
12
- this.overlay = overlay;
13
- this.parentInjector = parentInjector;
14
- this.componentFactoryResolver = componentFactoryResolver;
15
- }
16
- show(template, closeOnEscape = false) {
17
- const injector = Injector.create({
18
- providers: [{ provide: MODAL_CONTENT, useValue: template }],
19
- parent: this.parentInjector
20
- });
21
- const portal = new ComponentPortal(BsModalContentComponent, null, injector, this.componentFactoryResolver);
22
- const overlayRef = this.overlay.create({
23
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
24
- positionStrategy: this.overlay.position()
25
- .global().centerHorizontally().bottom('0').top('0').left('0').right('0'),
26
- width: '100%',
27
- hasBackdrop: true
28
- });
29
- const componentInstance = overlayRef.attach(portal);
30
- componentInstance.instance['instance'] = {
31
- component: componentInstance,
32
- overlay: overlayRef
33
- };
34
- componentInstance.instance.closeOnEscape = closeOnEscape;
35
- return componentInstance.instance;
36
- }
37
- hide(modal) {
38
- modal.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => {
39
- modal['instance']?.overlay.dispose();
40
- });
41
- modal.animationState = 'void';
42
- }
43
- }
44
- BsModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalService, deps: [{ token: i1.Overlay }, { token: i0.Injector }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
45
- BsModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalService, providedIn: BsModalModule });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: BsModalService, decorators: [{
47
- type: Injectable,
48
- args: [{
49
- providedIn: BsModalModule
50
- }]
51
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; } });
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwuc2VydmljZS5qcyIsInNvdXJjZVJv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
@@ -1,2 +0,0 @@
1
- export * from './modal/modal.component';
2
- export * from './modal-content/modal-content.component';
@@ -1,15 +0,0 @@
1
- import { AnimationEvent } from '@angular/animations';
2
- import { EventEmitter, TemplateRef } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export declare class BsModalContentComponent {
5
- constructor(content: TemplateRef<any>);
6
- content: TemplateRef<any>;
7
- private instance;
8
- closeOnEscape: boolean;
9
- animationState: string;
10
- animationStateChanged: EventEmitter<AnimationEvent>;
11
- onAnimationChanged(event: AnimationEvent): void;
12
- private onKeyDown;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<BsModalContentComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<BsModalContentComponent, "bs-modal-content", never, {}, {}, never, never>;
15
- }
@@ -1 +0,0 @@
1
- export * from './modal-animation-meta';
@@ -1,7 +0,0 @@
1
- import { OverlayRef } from "@angular/cdk/overlay";
2
- import { ComponentRef } from "@angular/core";
3
- import { BsModalContentComponent } from "../component/modal-content/modal-content.component";
4
- export interface ModalAnimationMeta {
5
- component: ComponentRef<BsModalContentComponent>;
6
- overlay: OverlayRef;
7
- }
@@ -1,14 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ComponentFactoryResolver, Injector, TemplateRef } from '@angular/core';
3
- import { BsModalContentComponent } from '../component/modal-content/modal-content.component';
4
- import * as i0 from "@angular/core";
5
- export declare class BsModalService {
6
- private overlay;
7
- private parentInjector;
8
- private componentFactoryResolver;
9
- constructor(overlay: Overlay, parentInjector: Injector, componentFactoryResolver: ComponentFactoryResolver);
10
- show(template: TemplateRef<any>, closeOnEscape?: boolean): BsModalContentComponent;
11
- hide(modal: BsModalContentComponent): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<BsModalService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<BsModalService>;
14
- }