@mintplayer/ng-bootstrap 12.0.3 → 13.1.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.
Files changed (167) hide show
  1. package/esm2020/index.mjs +3 -0
  2. package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +20 -0
  3. package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +27 -0
  4. package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +29 -0
  5. package/esm2020/lib/components/accordion/accordion.module.mjs +40 -0
  6. package/esm2020/lib/components/accordion/index.mjs +5 -0
  7. package/esm2020/lib/components/alert/alert/alert.component.mjs +23 -0
  8. package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +21 -0
  9. package/esm2020/lib/components/alert/alert.module.mjs +27 -0
  10. package/esm2020/lib/components/alert/index.mjs +4 -0
  11. package/esm2020/lib/components/calendar/calendar.component.mjs +61 -0
  12. package/esm2020/lib/components/calendar/calendar.module.mjs +38 -0
  13. package/esm2020/lib/components/calendar/index.mjs +3 -0
  14. package/esm2020/lib/components/card/card/card.component.mjs +18 -0
  15. package/esm2020/lib/components/card/card-header/card-header.component.mjs +15 -0
  16. package/esm2020/lib/components/card/card.module.mjs +27 -0
  17. package/esm2020/lib/components/card/index.mjs +4 -0
  18. package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +61 -0
  19. package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +14 -0
  20. package/esm2020/lib/components/carousel/carousel.module.mjs +31 -0
  21. package/esm2020/lib/components/carousel/index.mjs +4 -0
  22. package/esm2020/lib/components/index.mjs +9 -0
  23. package/esm2020/lib/components/list-group/index.mjs +4 -0
  24. package/esm2020/lib/components/list-group/list-group/list-group.component.mjs +19 -0
  25. package/esm2020/lib/components/list-group/list-group-item/list-group-item.component.mjs +15 -0
  26. package/esm2020/lib/components/list-group/list-group.module.mjs +27 -0
  27. package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +38 -0
  28. package/esm2020/lib/components/navbar/index.mjs +10 -0
  29. package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +29 -0
  30. package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +20 -0
  31. package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +33 -0
  32. package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +38 -0
  33. package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +47 -0
  34. package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +29 -0
  35. package/esm2020/lib/components/navbar/navbar.module.mjs +64 -0
  36. package/esm2020/lib/components/tab-control/index.mjs +4 -0
  37. package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +27 -0
  38. package/esm2020/lib/components/tab-control/tab-control.module.mjs +31 -0
  39. package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +25 -0
  40. package/esm2020/lib/enums/color.enum.mjs +15 -0
  41. package/esm2020/lib/enums/index.mjs +2 -0
  42. package/esm2020/lib/interfaces/date-day-of-month.mjs +2 -0
  43. package/esm2020/lib/interfaces/first-and-last-date.mjs +2 -0
  44. package/esm2020/lib/interfaces/week.mjs +2 -0
  45. package/esm2020/lib/pipes/month-name/month-name.module.mjs +26 -0
  46. package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +16 -0
  47. package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +26 -0
  48. package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +16 -0
  49. package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +26 -0
  50. package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +16 -0
  51. package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +82 -0
  52. package/esm2020/mintplayer-ng-bootstrap.mjs +5 -0
  53. package/fesm2015/mintplayer-ng-bootstrap.mjs +987 -0
  54. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -0
  55. package/{fesm2015/mintplayer-ng-bootstrap.js → fesm2020/mintplayer-ng-bootstrap.mjs} +169 -237
  56. package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -0
  57. package/lib/components/alert/alert/alert.component.d.ts +1 -0
  58. package/lib/components/alert/alert-close/alert-close.component.d.ts +4 -1
  59. package/lib/components/carousel/carousel/carousel.component.d.ts +2 -1
  60. package/package.json +31 -18
  61. package/bundles/mintplayer-ng-bootstrap.umd.js +0 -1518
  62. package/bundles/mintplayer-ng-bootstrap.umd.js.map +0 -1
  63. package/esm2015/index.js +0 -3
  64. package/esm2015/index.js.map +0 -1
  65. package/esm2015/lib/components/accordion/accordion/accordion.component.js +0 -24
  66. package/esm2015/lib/components/accordion/accordion/accordion.component.js.map +0 -1
  67. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js +0 -32
  68. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js.map +0 -1
  69. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js +0 -33
  70. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js.map +0 -1
  71. package/esm2015/lib/components/accordion/accordion.module.js +0 -40
  72. package/esm2015/lib/components/accordion/accordion.module.js.map +0 -1
  73. package/esm2015/lib/components/accordion/index.js +0 -5
  74. package/esm2015/lib/components/accordion/index.js.map +0 -1
  75. package/esm2015/lib/components/alert/alert/alert.component.js +0 -25
  76. package/esm2015/lib/components/alert/alert/alert.component.js.map +0 -1
  77. package/esm2015/lib/components/alert/alert-close/alert-close.component.js +0 -19
  78. package/esm2015/lib/components/alert/alert-close/alert-close.component.js.map +0 -1
  79. package/esm2015/lib/components/alert/alert.module.js +0 -27
  80. package/esm2015/lib/components/alert/alert.module.js.map +0 -1
  81. package/esm2015/lib/components/alert/index.js +0 -4
  82. package/esm2015/lib/components/alert/index.js.map +0 -1
  83. package/esm2015/lib/components/calendar/calendar.component.js +0 -65
  84. package/esm2015/lib/components/calendar/calendar.component.js.map +0 -1
  85. package/esm2015/lib/components/calendar/calendar.module.js +0 -38
  86. package/esm2015/lib/components/calendar/calendar.module.js.map +0 -1
  87. package/esm2015/lib/components/calendar/index.js +0 -3
  88. package/esm2015/lib/components/calendar/index.js.map +0 -1
  89. package/esm2015/lib/components/card/card/card.component.js +0 -22
  90. package/esm2015/lib/components/card/card/card.component.js.map +0 -1
  91. package/esm2015/lib/components/card/card-header/card-header.component.js +0 -19
  92. package/esm2015/lib/components/card/card-header/card-header.component.js.map +0 -1
  93. package/esm2015/lib/components/card/card.module.js +0 -27
  94. package/esm2015/lib/components/card/card.module.js.map +0 -1
  95. package/esm2015/lib/components/card/index.js +0 -4
  96. package/esm2015/lib/components/card/index.js.map +0 -1
  97. package/esm2015/lib/components/carousel/carousel/carousel.component.js +0 -70
  98. package/esm2015/lib/components/carousel/carousel/carousel.component.js.map +0 -1
  99. package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js +0 -14
  100. package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js.map +0 -1
  101. package/esm2015/lib/components/carousel/carousel.module.js +0 -31
  102. package/esm2015/lib/components/carousel/carousel.module.js.map +0 -1
  103. package/esm2015/lib/components/carousel/index.js +0 -4
  104. package/esm2015/lib/components/carousel/index.js.map +0 -1
  105. package/esm2015/lib/components/index.js +0 -9
  106. package/esm2015/lib/components/index.js.map +0 -1
  107. package/esm2015/lib/components/list-group/index.js +0 -4
  108. package/esm2015/lib/components/list-group/index.js.map +0 -1
  109. package/esm2015/lib/components/list-group/list-group/list-group.component.js +0 -23
  110. package/esm2015/lib/components/list-group/list-group/list-group.component.js.map +0 -1
  111. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js +0 -19
  112. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js.map +0 -1
  113. package/esm2015/lib/components/list-group/list-group.module.js +0 -27
  114. package/esm2015/lib/components/list-group/list-group.module.js.map +0 -1
  115. package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js +0 -38
  116. package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js.map +0 -1
  117. package/esm2015/lib/components/navbar/index.js +0 -10
  118. package/esm2015/lib/components/navbar/index.js.map +0 -1
  119. package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js +0 -29
  120. package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js.map +0 -1
  121. package/esm2015/lib/components/navbar/navbar/navbar.component.js +0 -24
  122. package/esm2015/lib/components/navbar/navbar/navbar.component.js.map +0 -1
  123. package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js +0 -33
  124. package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js.map +0 -1
  125. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js +0 -39
  126. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js.map +0 -1
  127. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js +0 -51
  128. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js.map +0 -1
  129. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js +0 -34
  130. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js.map +0 -1
  131. package/esm2015/lib/components/navbar/navbar.module.js +0 -64
  132. package/esm2015/lib/components/navbar/navbar.module.js.map +0 -1
  133. package/esm2015/lib/components/tab-control/index.js +0 -4
  134. package/esm2015/lib/components/tab-control/index.js.map +0 -1
  135. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js +0 -31
  136. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js.map +0 -1
  137. package/esm2015/lib/components/tab-control/tab-control.module.js +0 -31
  138. package/esm2015/lib/components/tab-control/tab-control.module.js.map +0 -1
  139. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js +0 -29
  140. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js.map +0 -1
  141. package/esm2015/lib/enums/color.enum.js +0 -15
  142. package/esm2015/lib/enums/color.enum.js.map +0 -1
  143. package/esm2015/lib/enums/index.js +0 -2
  144. package/esm2015/lib/enums/index.js.map +0 -1
  145. package/esm2015/lib/interfaces/date-day-of-month.js +0 -2
  146. package/esm2015/lib/interfaces/date-day-of-month.js.map +0 -1
  147. package/esm2015/lib/interfaces/first-and-last-date.js +0 -2
  148. package/esm2015/lib/interfaces/first-and-last-date.js.map +0 -1
  149. package/esm2015/lib/interfaces/week.js +0 -2
  150. package/esm2015/lib/interfaces/week.js.map +0 -1
  151. package/esm2015/lib/pipes/month-name/month-name.module.js +0 -26
  152. package/esm2015/lib/pipes/month-name/month-name.module.js.map +0 -1
  153. package/esm2015/lib/pipes/month-name/month-name.pipe.js +0 -16
  154. package/esm2015/lib/pipes/month-name/month-name.pipe.js.map +0 -1
  155. package/esm2015/lib/pipes/uc-first/uc-first.module.js +0 -26
  156. package/esm2015/lib/pipes/uc-first/uc-first.module.js.map +0 -1
  157. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js +0 -16
  158. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js.map +0 -1
  159. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js +0 -26
  160. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js.map +0 -1
  161. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js +0 -16
  162. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js.map +0 -1
  163. package/esm2015/lib/services/calendar-month/calendar-month.service.js +0 -83
  164. package/esm2015/lib/services/calendar-month/calendar-month.service.js.map +0 -1
  165. package/esm2015/mintplayer-ng-bootstrap.js +0 -5
  166. package/esm2015/mintplayer-ng-bootstrap.js.map +0 -1
  167. package/fesm2015/mintplayer-ng-bootstrap.js.map +0 -1
@@ -0,0 +1,987 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, NgModule, Injectable, Pipe, Directive, ElementRef, ContentChildren, ViewChild, Optional, forwardRef, SkipSelf, Host, Inject, TemplateRef, ContentChild } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { SlideUpDownAnimation, FadeInOutAnimation, CarouselSlideAnimation } from '@mintplayer/ng-animations';
6
+ import { Subject, BehaviorSubject } from 'rxjs';
7
+ import { map, takeUntil, take } from 'rxjs/operators';
8
+ import { RouterModule } from '@angular/router';
9
+ import * as i1$1 from '@mintplayer/ng-click-outside';
10
+ import { ClickOutsideModule } from '@mintplayer/ng-click-outside';
11
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
12
+
13
+ var Color;
14
+ (function (Color) {
15
+ Color[Color["primary"] = 0] = "primary";
16
+ Color[Color["secondary"] = 1] = "secondary";
17
+ Color[Color["success"] = 2] = "success";
18
+ Color[Color["danger"] = 3] = "danger";
19
+ Color[Color["warning"] = 4] = "warning";
20
+ Color[Color["info"] = 5] = "info";
21
+ Color[Color["light"] = 6] = "light";
22
+ Color[Color["dark"] = 7] = "dark";
23
+ Color[Color["body"] = 8] = "body";
24
+ Color[Color["white"] = 9] = "white";
25
+ Color[Color["transparent"] = 10] = "transparent";
26
+ })(Color || (Color = {}));
27
+
28
+ class BsAlertComponent {
29
+ constructor() {
30
+ this.type = Color.primary;
31
+ this.colors = Color;
32
+ this.isVisible = true;
33
+ }
34
+ ngOnInit() {
35
+ }
36
+ }
37
+ BsAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
+ BsAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAlertComponent, selector: "bs-alert", inputs: { type: "type" }, ngImport: i0, template: "<div class=\"mb-3 overflow-hidden\" *ngIf=\"isVisible\" [@fadeInOut]>\n <div class=\"alert mb-0\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n </div>\n</div>", styles: ["::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [SlideUpDownAnimation, FadeInOutAnimation] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertComponent, decorators: [{
40
+ type: Component,
41
+ args: [{ selector: 'bs-alert', animations: [SlideUpDownAnimation, FadeInOutAnimation], template: "<div class=\"mb-3 overflow-hidden\" *ngIf=\"isVisible\" [@fadeInOut]>\n <div class=\"alert mb-0\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n </div>\n</div>", styles: ["::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"] }]
42
+ }], ctorParameters: function () { return []; }, propDecorators: { type: [{
43
+ type: Input
44
+ }] } });
45
+
46
+ class BsAlertCloseComponent {
47
+ constructor(alert) {
48
+ this.alert = alert;
49
+ }
50
+ ngOnInit() {
51
+ }
52
+ closeAlert() {
53
+ this.alert.isVisible = false;
54
+ }
55
+ }
56
+ BsAlertCloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertCloseComponent, deps: [{ token: BsAlertComponent }], target: i0.ɵɵFactoryTarget.Component });
57
+ BsAlertCloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAlertCloseComponent, selector: "bs-alert-close", ngImport: i0, template: "<button class=\"btn float-end\" (click)=\"closeAlert()\">\n <span class=\"text-dark\">\u00D7</span>\n</button>", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"] });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertCloseComponent, decorators: [{
59
+ type: Component,
60
+ args: [{ selector: 'bs-alert-close', template: "<button class=\"btn float-end\" (click)=\"closeAlert()\">\n <span class=\"text-dark\">\u00D7</span>\n</button>", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"] }]
61
+ }], ctorParameters: function () { return [{ type: BsAlertComponent }]; } });
62
+
63
+ class BsAlertModule {
64
+ }
65
+ BsAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
66
+ BsAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertModule, declarations: [BsAlertComponent,
67
+ BsAlertCloseComponent], imports: [CommonModule], exports: [BsAlertComponent,
68
+ BsAlertCloseComponent] });
69
+ BsAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertModule, imports: [[CommonModule]] });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertModule, decorators: [{
71
+ type: NgModule,
72
+ args: [{
73
+ imports: [CommonModule],
74
+ declarations: [
75
+ BsAlertComponent,
76
+ BsAlertCloseComponent
77
+ ],
78
+ exports: [
79
+ BsAlertComponent,
80
+ BsAlertCloseComponent
81
+ ]
82
+ }]
83
+ }] });
84
+
85
+ class BsCardComponent {
86
+ constructor() {
87
+ }
88
+ ngOnInit() {
89
+ }
90
+ ngAfterViewInit() {
91
+ // console.log('header', this.header);
92
+ }
93
+ }
94
+ BsCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
95
+ BsCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCardComponent, selector: "bs-card", ngImport: i0, template: "<div class=\"card\" style=\"width: 18rem;\">\n <ng-content select=\"bs-card-header\"></ng-content>\n <div class=\"card-block\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card-block{margin:-1px}\n"] });
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardComponent, decorators: [{
97
+ type: Component,
98
+ args: [{ selector: 'bs-card', template: "<div class=\"card\" style=\"width: 18rem;\">\n <ng-content select=\"bs-card-header\"></ng-content>\n <div class=\"card-block\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card-block{margin:-1px}\n"] }]
99
+ }], ctorParameters: function () { return []; } });
100
+
101
+ class BsCardHeaderComponent {
102
+ constructor() {
103
+ }
104
+ ngOnInit() {
105
+ }
106
+ }
107
+ BsCardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
108
+ BsCardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCardHeaderComponent, selector: "bs-card-header", ngImport: i0, template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
110
+ type: Component,
111
+ args: [{ selector: 'bs-card-header', template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
112
+ }], ctorParameters: function () { return []; } });
113
+
114
+ class BsCardModule {
115
+ }
116
+ BsCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
117
+ BsCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardModule, declarations: [BsCardComponent,
118
+ BsCardHeaderComponent], imports: [CommonModule], exports: [BsCardComponent,
119
+ BsCardHeaderComponent] });
120
+ BsCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardModule, imports: [[CommonModule]] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardModule, decorators: [{
122
+ type: NgModule,
123
+ args: [{
124
+ imports: [CommonModule],
125
+ declarations: [
126
+ BsCardComponent,
127
+ BsCardHeaderComponent
128
+ ],
129
+ exports: [
130
+ BsCardComponent,
131
+ BsCardHeaderComponent
132
+ ]
133
+ }]
134
+ }] });
135
+
136
+ class BsCalendarMonthService {
137
+ constructor() {
138
+ }
139
+ getWeeks(month) {
140
+ let firstAndLast = this.getFirstAndLastDayOfMonth(month);
141
+ let days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;
142
+ let allDays = [
143
+ ...this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(d => null),
144
+ ...this.generateList(days).map(d => {
145
+ return {
146
+ date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),
147
+ dayOfMonth: d + 1,
148
+ };
149
+ }),
150
+ ...this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(d => null),
151
+ ];
152
+ let weeks = this.chunk(allDays, 7);
153
+ let weeksMapped = weeks.map((w, i) => {
154
+ var _a;
155
+ return {
156
+ number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(d => d !== null)) === null || _a === void 0 ? void 0 : _a.dayOfMonth)),
157
+ week: w
158
+ };
159
+ });
160
+ return weeksMapped;
161
+ }
162
+ generateList(count) {
163
+ return [...Array(count).keys()];
164
+ }
165
+ dayOfWeekMondayBased(date) {
166
+ let d = date.getDay() - 1;
167
+ if (d < 0) {
168
+ return 6;
169
+ }
170
+ else {
171
+ return d;
172
+ }
173
+ }
174
+ weekOfYear(date) {
175
+ let dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
176
+ dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
177
+ let yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
178
+ let utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
179
+ return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
180
+ }
181
+ getFirstAndLastDayOfMonth(date) {
182
+ return {
183
+ first: new Date(date.getFullYear(), date.getMonth(), 1),
184
+ last: new Date(date.getFullYear(), date.getMonth() + 1, 0)
185
+ };
186
+ }
187
+ dateDiff(date1, date2) {
188
+ const utc1 = this.toUTC(date1);
189
+ const utc2 = this.toUTC(date2);
190
+ const msPerDay = 1000 * 60 * 60 * 24;
191
+ return Math.floor((utc2 - utc1) / msPerDay);
192
+ }
193
+ dayOfYear(date) {
194
+ const start = new Date(date.getFullYear(), 0, 0);
195
+ return this.dateDiff(start, date);
196
+ }
197
+ toUTC(date) {
198
+ return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
199
+ }
200
+ chunk(items, size) {
201
+ let result = [];
202
+ for (let i = 0; i < items.length; i += size) {
203
+ result.push(items.slice(i, i + size));
204
+ }
205
+ return result;
206
+ }
207
+ }
208
+ BsCalendarMonthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
209
+ BsCalendarMonthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' });
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarMonthService, decorators: [{
211
+ type: Injectable,
212
+ args: [{
213
+ providedIn: 'root'
214
+ }]
215
+ }], ctorParameters: function () { return []; } });
216
+
217
+ class UcFirstPipe {
218
+ transform(value, ...args) {
219
+ return value[0].toUpperCase() + value.slice(1);
220
+ }
221
+ }
222
+ UcFirstPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UcFirstPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
223
+ UcFirstPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UcFirstPipe, name: "ucFirst" });
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: UcFirstPipe, decorators: [{
225
+ type: Pipe,
226
+ args: [{
227
+ name: 'ucFirst'
228
+ }]
229
+ }] });
230
+
231
+ class MonthNamePipe {
232
+ transform(date, ...args) {
233
+ return date.toLocaleString("default", { month: 'long' });
234
+ }
235
+ }
236
+ MonthNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
237
+ MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonthNamePipe, name: "monthName" });
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonthNamePipe, decorators: [{
239
+ type: Pipe,
240
+ args: [{
241
+ name: 'monthName'
242
+ }]
243
+ }] });
244
+
245
+ class BsCalendarComponent {
246
+ constructor(calendarMonthService) {
247
+ this.calendarMonthService = calendarMonthService;
248
+ this.daysOfWeek = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
249
+ //#region SelectedDate
250
+ this.selectedDate = new Date();
251
+ //#endregion
252
+ //#region Weeks
253
+ this._weeks = [];
254
+ }
255
+ ngOnInit() {
256
+ this.month = new Date();
257
+ }
258
+ get month() {
259
+ return this._month;
260
+ }
261
+ set month(value) {
262
+ this._month = value;
263
+ this.weeks = this.calendarMonthService.getWeeks(this.month);
264
+ }
265
+ get weeks() {
266
+ return this._weeks;
267
+ }
268
+ set weeks(value) {
269
+ this._weeks = value;
270
+ if (this._weeks.length > 1) {
271
+ this.daysOfWeek = this._weeks[1].week.map(d => {
272
+ let date = new Date(this.month.getFullYear(), this.month.getMonth(), d === null || d === void 0 ? void 0 : d.dayOfMonth);
273
+ return date.toLocaleString("default", { weekday: 'short' });
274
+ });
275
+ }
276
+ }
277
+ //#endregion
278
+ previousMonth() {
279
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() - 1, 1);
280
+ return false;
281
+ }
282
+ nextMonth() {
283
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);
284
+ return false;
285
+ }
286
+ isSameDate(date1, date2) {
287
+ return (date1.getFullYear() === date2.getFullYear())
288
+ && (date1.getMonth() === date2.getMonth())
289
+ && (date1.getDate() === date2.getDate());
290
+ }
291
+ }
292
+ BsCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }], target: i0.ɵɵFactoryTarget.Component });
293
+ BsCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCalendarComponent, selector: "bs-calendar", ngImport: i0, template: "<table class=\"table w-auto\">\n <tr>\n <td>\n <button class=\"btn btn-default\" (click)=\"previousMonth()\">\n <i class=\"bi bi-chevron-left fw-bolder\"></i>\n </button>\n </td>\n <td colspan=\"6\" class=\"fw-bolder\">\n {{ month | monthName | ucFirst }}\n {{ month.getFullYear() }}\n </td>\n <td>\n <button class=\"btn btn-default border-bottom-0\" (click)=\"nextMonth()\">\n <i class=\"bi bi-chevron-right fw-bolder\"></i>\n </button>\n </td>\n </tr>\n <tr>\n <th></th>\n <th *ngFor=\"let dayOfWeek of daysOfWeek\">\n {{ dayOfWeek }}\n </th>\n </tr>\n <tr *ngFor=\"let week of weeks\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate, day.date)\" *ngFor=\"let day of week.week\" (click)=\"day && selectedDate = day.date\">\n <span *ngIf=\"day !== null\">{{ day.dayOfMonth }}</span>\n </td>\n </tr>\n</table>", styles: ["table{border-collapse:collapse;border:1px solid rgba(0,0,0,.125)}table td,table th{width:40px;height:40px;text-align:center}table td span,table th span{cursor:pointer;white-space:nowrap}table td.selected{background-color:#0d6efd;color:#fff}table th{background-color:#f8f9fa}table tr{border-top:none}table tr:first-child>td{border-bottom:1px solid rgba(0,0,0,.125)}table tr:nth-of-type(2)>th:not(:nth-of-type(1)){border-bottom:1px solid rgba(0,0,0,.125)}table tr:not(:nth-of-type(2))>th:nth-of-type(1){border-right:1px solid rgba(0,0,0,.125)}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "ucFirst": UcFirstPipe, "monthName": MonthNamePipe } });
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarComponent, decorators: [{
295
+ type: Component,
296
+ args: [{ selector: 'bs-calendar', template: "<table class=\"table w-auto\">\n <tr>\n <td>\n <button class=\"btn btn-default\" (click)=\"previousMonth()\">\n <i class=\"bi bi-chevron-left fw-bolder\"></i>\n </button>\n </td>\n <td colspan=\"6\" class=\"fw-bolder\">\n {{ month | monthName | ucFirst }}\n {{ month.getFullYear() }}\n </td>\n <td>\n <button class=\"btn btn-default border-bottom-0\" (click)=\"nextMonth()\">\n <i class=\"bi bi-chevron-right fw-bolder\"></i>\n </button>\n </td>\n </tr>\n <tr>\n <th></th>\n <th *ngFor=\"let dayOfWeek of daysOfWeek\">\n {{ dayOfWeek }}\n </th>\n </tr>\n <tr *ngFor=\"let week of weeks\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate, day.date)\" *ngFor=\"let day of week.week\" (click)=\"day && selectedDate = day.date\">\n <span *ngIf=\"day !== null\">{{ day.dayOfMonth }}</span>\n </td>\n </tr>\n</table>", styles: ["table{border-collapse:collapse;border:1px solid rgba(0,0,0,.125)}table td,table th{width:40px;height:40px;text-align:center}table td span,table th span{cursor:pointer;white-space:nowrap}table td.selected{background-color:#0d6efd;color:#fff}table th{background-color:#f8f9fa}table tr{border-top:none}table tr:first-child>td{border-bottom:1px solid rgba(0,0,0,.125)}table tr:nth-of-type(2)>th:not(:nth-of-type(1)){border-bottom:1px solid rgba(0,0,0,.125)}table tr:not(:nth-of-type(2))>th:nth-of-type(1){border-right:1px solid rgba(0,0,0,.125)}\n"] }]
297
+ }], ctorParameters: function () { return [{ type: BsCalendarMonthService }]; } });
298
+
299
+ class BsMonthNamePipeModule {
300
+ }
301
+ BsMonthNamePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMonthNamePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
302
+ BsMonthNamePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMonthNamePipeModule, declarations: [MonthNamePipe], imports: [CommonModule], exports: [MonthNamePipe] });
303
+ BsMonthNamePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMonthNamePipeModule, imports: [[
304
+ CommonModule
305
+ ]] });
306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMonthNamePipeModule, decorators: [{
307
+ type: NgModule,
308
+ args: [{
309
+ declarations: [
310
+ MonthNamePipe
311
+ ],
312
+ imports: [
313
+ CommonModule
314
+ ],
315
+ exports: [
316
+ MonthNamePipe
317
+ ]
318
+ }]
319
+ }] });
320
+
321
+ class BsUcFirstPipeModule {
322
+ }
323
+ BsUcFirstPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsUcFirstPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
324
+ BsUcFirstPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsUcFirstPipeModule, declarations: [UcFirstPipe], imports: [CommonModule], exports: [UcFirstPipe] });
325
+ BsUcFirstPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsUcFirstPipeModule, imports: [[
326
+ CommonModule
327
+ ]] });
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsUcFirstPipeModule, decorators: [{
329
+ type: NgModule,
330
+ args: [{
331
+ declarations: [
332
+ UcFirstPipe
333
+ ],
334
+ imports: [
335
+ CommonModule
336
+ ],
337
+ exports: [
338
+ UcFirstPipe
339
+ ]
340
+ }]
341
+ }] });
342
+
343
+ class WeekdayNamePipe {
344
+ transform(date, ...args) {
345
+ return date.toLocaleString("default", { weekday: 'short' });
346
+ }
347
+ }
348
+ WeekdayNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: WeekdayNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
349
+ WeekdayNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: WeekdayNamePipe, name: "weekdayName" });
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: WeekdayNamePipe, decorators: [{
351
+ type: Pipe,
352
+ args: [{
353
+ name: 'weekdayName'
354
+ }]
355
+ }] });
356
+
357
+ class BsWeekdayNameModule {
358
+ }
359
+ BsWeekdayNameModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsWeekdayNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
360
+ BsWeekdayNameModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsWeekdayNameModule, declarations: [WeekdayNamePipe], imports: [CommonModule], exports: [WeekdayNamePipe] });
361
+ BsWeekdayNameModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsWeekdayNameModule, imports: [[
362
+ CommonModule
363
+ ]] });
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsWeekdayNameModule, decorators: [{
365
+ type: NgModule,
366
+ args: [{
367
+ declarations: [
368
+ WeekdayNamePipe
369
+ ],
370
+ imports: [
371
+ CommonModule
372
+ ],
373
+ exports: [
374
+ WeekdayNamePipe
375
+ ]
376
+ }]
377
+ }] });
378
+
379
+ class BsCalendarModule {
380
+ }
381
+ BsCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
382
+ BsCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarModule, declarations: [BsCalendarComponent], imports: [CommonModule,
383
+ BsUcFirstPipeModule,
384
+ BsMonthNamePipeModule,
385
+ BsWeekdayNameModule], exports: [BsCalendarComponent] });
386
+ BsCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarModule, imports: [[
387
+ CommonModule,
388
+ BsUcFirstPipeModule,
389
+ BsMonthNamePipeModule,
390
+ BsWeekdayNameModule
391
+ ]] });
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarModule, decorators: [{
393
+ type: NgModule,
394
+ args: [{
395
+ declarations: [
396
+ BsCalendarComponent
397
+ ],
398
+ imports: [
399
+ CommonModule,
400
+ BsUcFirstPipeModule,
401
+ BsMonthNamePipeModule,
402
+ BsWeekdayNameModule
403
+ ],
404
+ exports: [
405
+ BsCalendarComponent
406
+ ]
407
+ }]
408
+ }] });
409
+
410
+ class BsCarouselImageDirective {
411
+ constructor() { }
412
+ }
413
+ BsCarouselImageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
414
+ BsCarouselImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsCarouselImageDirective, selector: "img[bsCarouselImage]", ngImport: i0 });
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselImageDirective, decorators: [{
416
+ type: Directive,
417
+ args: [{
418
+ selector: 'img[bsCarouselImage]'
419
+ }]
420
+ }], ctorParameters: function () { return []; } });
421
+
422
+ class BsCarouselComponent {
423
+ constructor() {
424
+ this.destroyed$ = new Subject();
425
+ this.currentImageCounter$ = new BehaviorSubject(-1);
426
+ this.currentImageIndex$ = this.currentImageCounter$
427
+ .pipe(map((counter) => {
428
+ const l = this.images.length;
429
+ return ((counter % l) + l) % l;
430
+ }))
431
+ .pipe(takeUntil(this.destroyed$));
432
+ this.currentImage$ = this.currentImageIndex$
433
+ .pipe(map((index) => { var _a; return (_a = this.images.get(index)) !== null && _a !== void 0 ? _a : null; }))
434
+ .pipe(takeUntil(this.destroyed$));
435
+ }
436
+ ngOnInit() { }
437
+ ngOnDestroy() {
438
+ this.destroyed$.next(true);
439
+ }
440
+ ngAfterContentInit() {
441
+ if (this.images.length > 0) {
442
+ this.currentImageCounter$.next(0);
443
+ }
444
+ else {
445
+ this.currentImageCounter$.next(-1);
446
+ }
447
+ }
448
+ previousImage() {
449
+ this.currentImageCounter$
450
+ .pipe(take(1))
451
+ .subscribe((currentImageCounter) => {
452
+ this.currentImageCounter$.next(currentImageCounter - 1);
453
+ });
454
+ }
455
+ nextImage() {
456
+ this.currentImageCounter$
457
+ .pipe(take(1))
458
+ .subscribe((currentImageCounter) => {
459
+ this.currentImageCounter$.next(currentImageCounter + 1);
460
+ });
461
+ }
462
+ setCurrentImage(index) {
463
+ this.currentImageCounter$.next(index);
464
+ }
465
+ }
466
+ BsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
467
+ BsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCarouselComponent, selector: "bs-carousel", queries: [{ propertyName: "images", predicate: BsCarouselImageDirective, read: ElementRef }], ngImport: i0, template: "<div class=\"carousel slide\">\n <div class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\" data-bs-target\n [class.active]=\"(currentImageIndex$ | async) === i\"\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <!-- @fadeInOut -->\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <img [src]=\"image.nativeElement.src\" class=\"d-block\" [attr.alt]=\"image.nativeElement.alt\" [class.w-100]=\"true\">\n </div>\n </ng-container>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe }, animations: [FadeInOutAnimation, CarouselSlideAnimation] });
468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselComponent, decorators: [{
469
+ type: Component,
470
+ args: [{ selector: 'bs-carousel', animations: [FadeInOutAnimation, CarouselSlideAnimation], template: "<div class=\"carousel slide\">\n <div class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\" data-bs-target\n [class.active]=\"(currentImageIndex$ | async) === i\"\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <!-- @fadeInOut -->\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <img [src]=\"image.nativeElement.src\" class=\"d-block\" [attr.alt]=\"image.nativeElement.alt\" [class.w-100]=\"true\">\n </div>\n </ng-container>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"] }]
471
+ }], ctorParameters: function () { return []; }, propDecorators: { images: [{
472
+ type: ContentChildren,
473
+ args: [BsCarouselImageDirective, { read: ElementRef }]
474
+ }] } });
475
+
476
+ class BsCarouselModule {
477
+ }
478
+ BsCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
479
+ BsCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselModule, declarations: [BsCarouselComponent,
480
+ BsCarouselImageDirective], imports: [CommonModule], exports: [BsCarouselComponent,
481
+ BsCarouselImageDirective] });
482
+ BsCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselModule, imports: [[
483
+ CommonModule
484
+ ]] });
485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselModule, decorators: [{
486
+ type: NgModule,
487
+ args: [{
488
+ declarations: [
489
+ BsCarouselComponent,
490
+ BsCarouselImageDirective
491
+ ],
492
+ imports: [
493
+ CommonModule
494
+ ],
495
+ exports: [
496
+ BsCarouselComponent,
497
+ BsCarouselImageDirective
498
+ ]
499
+ }]
500
+ }] });
501
+
502
+ class BsListGroupItemComponent {
503
+ constructor() {
504
+ }
505
+ ngOnInit() {
506
+ }
507
+ }
508
+ BsListGroupItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
509
+ BsListGroupItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsListGroupItemComponent, selector: "bs-list-group-item", ngImport: i0, template: "<li class=\"list-group-item\">\n <ng-content></ng-content>\n</li>", styles: [".list-group-item{margin-bottom:-1px}\n"] });
510
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupItemComponent, decorators: [{
511
+ type: Component,
512
+ args: [{ selector: 'bs-list-group-item', template: "<li class=\"list-group-item\">\n <ng-content></ng-content>\n</li>", styles: [".list-group-item{margin-bottom:-1px}\n"] }]
513
+ }], ctorParameters: function () { return []; } });
514
+
515
+ class BsListGroupComponent {
516
+ constructor() {
517
+ }
518
+ ngOnInit() {
519
+ }
520
+ }
521
+ BsListGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
522
+ BsListGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsListGroupComponent, selector: "bs-list-group", queries: [{ propertyName: "items", predicate: BsListGroupItemComponent }], ngImport: i0, template: "<ul class=\"list-group mt-0\">\n <ng-content></ng-content>\n</ul>", styles: [""] });
523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupComponent, decorators: [{
524
+ type: Component,
525
+ args: [{ selector: 'bs-list-group', template: "<ul class=\"list-group mt-0\">\n <ng-content></ng-content>\n</ul>", styles: [""] }]
526
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
527
+ type: ContentChildren,
528
+ args: [BsListGroupItemComponent]
529
+ }] } });
530
+
531
+ class BsListGroupModule {
532
+ }
533
+ BsListGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
534
+ BsListGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupModule, declarations: [BsListGroupComponent,
535
+ BsListGroupItemComponent], imports: [CommonModule], exports: [BsListGroupComponent,
536
+ BsListGroupItemComponent] });
537
+ BsListGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupModule, imports: [[CommonModule]] });
538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsListGroupModule, decorators: [{
539
+ type: NgModule,
540
+ args: [{
541
+ imports: [CommonModule],
542
+ declarations: [
543
+ BsListGroupComponent,
544
+ BsListGroupItemComponent
545
+ ],
546
+ exports: [
547
+ BsListGroupComponent,
548
+ BsListGroupItemComponent
549
+ ]
550
+ }]
551
+ }] });
552
+
553
+ class BsNavbarComponent {
554
+ constructor() {
555
+ this.isExpanded = false;
556
+ }
557
+ toggleExpanded() {
558
+ this.isExpanded = !this.isExpanded;
559
+ }
560
+ }
561
+ BsNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
562
+ BsNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarComponent, selector: "bs-navbar", viewQueries: [{ propertyName: "nav", first: true, predicate: ["nav"], descendants: true }], ngImport: i0, template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <a class=\"navbar-brand mx-auto mx-md-unset\" href=\"#\">Navbar 2</a>\n <button (click)=\"toggleExpanded()\" class=\"navbar-toggler align-self-end\" type=\"button\" data-toggle=\"collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n </div>\n <ng-content></ng-content>\n </div>\n</nav>", styles: [":host ::ng-deep+*{padding-top:56px}nav{left:0;top:0;right:0;z-index:1}@media (min-width: 768px){.mx-md-unset{margin-left:0!important;margin-right:0!important}.w-md-auto{width:auto!important}}\n"] });
563
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarComponent, decorators: [{
564
+ type: Component,
565
+ args: [{ selector: 'bs-navbar', template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <a class=\"navbar-brand mx-auto mx-md-unset\" href=\"#\">Navbar 2</a>\n <button (click)=\"toggleExpanded()\" class=\"navbar-toggler align-self-end\" type=\"button\" data-toggle=\"collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n </div>\n <ng-content></ng-content>\n </div>\n</nav>", styles: [":host ::ng-deep+*{padding-top:56px}nav{left:0;top:0;right:0;z-index:1}@media (min-width: 768px){.mx-md-unset{margin-left:0!important;margin-right:0!important}.w-md-auto{width:auto!important}}\n"] }]
566
+ }], ctorParameters: function () { return []; }, propDecorators: { nav: [{
567
+ type: ViewChild,
568
+ args: ['nav']
569
+ }] } });
570
+
571
+ class BsNavbarNavComponent {
572
+ constructor(bsNavbar) {
573
+ //#region collapse
574
+ this._collapse = true;
575
+ this.bsNavbar = bsNavbar;
576
+ }
577
+ ngOnInit() {
578
+ }
579
+ set collapse(value) {
580
+ this._collapse = value;
581
+ }
582
+ get collapse() {
583
+ return this._collapse;
584
+ }
585
+ }
586
+ BsNavbarNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarNavComponent, deps: [{ token: BsNavbarComponent }], target: i0.ɵɵFactoryTarget.Component });
587
+ BsNavbarNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarNavComponent, selector: "bs-navbar-nav", inputs: { collapse: "collapse" }, ngImport: i0, template: "<div class=\"navbar-collapse collapse w-100 show\" [@slideUpDown]=\"bsNavbar.isExpanded ? 'down' : 'up'\">\n <ul class=\"navbar-nav mr-auto\">\n <ng-content></ng-content>\n </ul>\n</div>", styles: [":host{margin-right:auto}@media screen and (max-width: 767px){:host{width:100%!important}.navbar-collapse.collapse{overflow:hidden}}\n"], animations: [SlideUpDownAnimation] });
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarNavComponent, decorators: [{
589
+ type: Component,
590
+ args: [{ selector: 'bs-navbar-nav', animations: [SlideUpDownAnimation], template: "<div class=\"navbar-collapse collapse w-100 show\" [@slideUpDown]=\"bsNavbar.isExpanded ? 'down' : 'up'\">\n <ul class=\"navbar-nav mr-auto\">\n <ng-content></ng-content>\n </ul>\n</div>", styles: [":host{margin-right:auto}@media screen and (max-width: 767px){:host{width:100%!important}.navbar-collapse.collapse{overflow:hidden}}\n"] }]
591
+ }], ctorParameters: function () { return [{ type: BsNavbarComponent }]; }, propDecorators: { collapse: [{
592
+ type: Input
593
+ }] } });
594
+
595
+ class BsNavbarItemComponent {
596
+ constructor(parentDropdown, element) {
597
+ this.element = element;
598
+ this.hasDropdown = false;
599
+ this.anchorTag = null;
600
+ this.parentDropdown = parentDropdown;
601
+ }
602
+ ngOnInit() {
603
+ }
604
+ ngAfterContentChecked() {
605
+ if (this.hasDropdown) {
606
+ window.element = this.element.nativeElement;
607
+ this.anchorTag = this.element.nativeElement.querySelector('li a');
608
+ (this.anchorTag) && this.anchorTag.classList.add('dropdown-toggle');
609
+ if (this.anchorTag && !this.anchorTag.onclick) {
610
+ this.anchorTag.onclick = (ev) => {
611
+ ev.preventDefault();
612
+ // Normally there should be only one dropdown in this list
613
+ this.dropdowns.forEach((dropdown) => {
614
+ if (!(dropdown.isVisible = !dropdown.isVisible)) {
615
+ dropdown.childDropdowns.forEach((child) => {
616
+ child.isVisible = false;
617
+ });
618
+ }
619
+ });
620
+ return false;
621
+ };
622
+ }
623
+ }
624
+ }
625
+ }
626
+ BsNavbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarItemComponent, deps: [{ token: BsNavbarDropdownComponent, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
627
+ BsNavbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarItemComponent, selector: "bs-navbar-item", queries: [{ propertyName: "dropdowns", predicate: i0.forwardRef(function () { return BsNavbarDropdownComponent; }) }], ngImport: i0, template: "<li [class.nav-item]=\"parentDropdown === null\" [class.dropdown]=\"(dropdowns.length > 0) && (parentDropdown === null)\" [class.dropend]=\"(dropdowns.length > 0) && (parentDropdown !== null)\">\n <ng-content></ng-content>\n</li>", styles: ["li.dropend ::ng-deep a.dropdown-toggle{padding-right:1.5rem}li.dropend ::ng-deep a.dropdown-toggle:after{position:absolute;right:.5rem;top:.75rem}\n"] });
628
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarItemComponent, decorators: [{
629
+ type: Component,
630
+ args: [{ selector: 'bs-navbar-item', template: "<li [class.nav-item]=\"parentDropdown === null\" [class.dropdown]=\"(dropdowns.length > 0) && (parentDropdown === null)\" [class.dropend]=\"(dropdowns.length > 0) && (parentDropdown !== null)\">\n <ng-content></ng-content>\n</li>", styles: ["li.dropend ::ng-deep a.dropdown-toggle{padding-right:1.5rem}li.dropend ::ng-deep a.dropdown-toggle:after{position:absolute;right:.5rem;top:.75rem}\n"] }]
631
+ }], ctorParameters: function () {
632
+ return [{ type: BsNavbarDropdownComponent, decorators: [{
633
+ type: Optional
634
+ }] }, { type: i0.ElementRef }];
635
+ }, propDecorators: { dropdowns: [{
636
+ type: ContentChildren,
637
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
638
+ }] } });
639
+
640
+ class BsNavbarDropdownComponent {
641
+ constructor(parentDropdown, navbarItem) {
642
+ this.isVisible = false;
643
+ this.parentDropdown = parentDropdown;
644
+ this.navbarItem = navbarItem;
645
+ }
646
+ get elementsToExclude() {
647
+ return [this.navbarItem.anchorTag].filter((a) => a).map((a) => a);
648
+ }
649
+ ngOnInit() {
650
+ }
651
+ }
652
+ BsNavbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarDropdownComponent, deps: [{ token: BsNavbarDropdownComponent, host: true, optional: true, skipSelf: true }, { token: forwardRef(() => BsNavbarItemComponent), host: true }], target: i0.ɵɵFactoryTarget.Component });
653
+ BsNavbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", queries: [{ propertyName: "childDropdowns", predicate: i0.forwardRef(function () { return BsNavbarDropdownComponent; }), descendants: true }], ngImport: i0, template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"], directives: [{ type: i1$1.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
654
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarDropdownComponent, decorators: [{
655
+ type: Component,
656
+ args: [{ selector: 'bs-navbar-dropdown', template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"] }]
657
+ }], ctorParameters: function () {
658
+ return [{ type: BsNavbarDropdownComponent, decorators: [{
659
+ type: SkipSelf
660
+ }, {
661
+ type: Host
662
+ }, {
663
+ type: Optional
664
+ }] }, { type: BsNavbarItemComponent, decorators: [{
665
+ type: Host
666
+ }, {
667
+ type: Inject,
668
+ args: [forwardRef(() => BsNavbarItemComponent)]
669
+ }] }];
670
+ }, propDecorators: { childDropdowns: [{
671
+ type: ContentChildren,
672
+ args: [forwardRef(() => BsNavbarDropdownComponent), { descendants: true }]
673
+ }] } });
674
+
675
+ class DropdownToggleDirective {
676
+ constructor(elementRef, bsNavbarItem, parentDropdown) {
677
+ this.elementRef = elementRef;
678
+ this.bsNavbarItem = bsNavbarItem;
679
+ }
680
+ ngAfterContentInit() {
681
+ if (this.bsNavbarItem.dropdowns.length > 0) {
682
+ this.bsNavbarItem.hasDropdown = true;
683
+ }
684
+ }
685
+ }
686
+ DropdownToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DropdownToggleDirective, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => BsNavbarItemComponent) }, { token: forwardRef(() => BsNavbarDropdownComponent), optional: true }], target: i0.ɵɵFactoryTarget.Directive });
687
+ DropdownToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: DropdownToggleDirective, selector: "bs-navbar-item", queries: [{ propertyName: "childDropdowns", predicate: BsNavbarDropdownComponent }], ngImport: i0 });
688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DropdownToggleDirective, decorators: [{
689
+ type: Directive,
690
+ args: [{
691
+ // selector: 'bs-navbar-item > a[routerLink]',
692
+ selector: 'bs-navbar-item',
693
+ queries: {
694
+ childDropdowns: new ContentChildren(BsNavbarDropdownComponent)
695
+ }
696
+ }]
697
+ }], ctorParameters: function () {
698
+ return [{ type: i0.ElementRef }, { type: BsNavbarItemComponent, decorators: [{
699
+ type: Inject,
700
+ args: [forwardRef(() => BsNavbarItemComponent)]
701
+ }] }, { type: BsNavbarDropdownComponent, decorators: [{
702
+ type: Optional
703
+ }, {
704
+ type: Inject,
705
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
706
+ }] }];
707
+ } });
708
+
709
+ class NavLinkDirective {
710
+ constructor(elementRef, parentDropdown) {
711
+ this.elementRef = elementRef;
712
+ if (parentDropdown == null) {
713
+ this.elementRef.nativeElement.classList.add('nav-link');
714
+ }
715
+ else {
716
+ this.elementRef.nativeElement.classList.add('dropdown-item');
717
+ }
718
+ }
719
+ }
720
+ NavLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NavLinkDirective, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => BsNavbarDropdownComponent), optional: true }], target: i0.ɵɵFactoryTarget.Directive });
721
+ NavLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: NavLinkDirective, selector: "bs-navbar-item > a[routerLink]", ngImport: i0 });
722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NavLinkDirective, decorators: [{
723
+ type: Directive,
724
+ args: [{
725
+ selector: 'bs-navbar-item > a[routerLink]'
726
+ }]
727
+ }], ctorParameters: function () {
728
+ return [{ type: i0.ElementRef }, { type: BsNavbarDropdownComponent, decorators: [{
729
+ type: Optional
730
+ }, {
731
+ type: Inject,
732
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
733
+ }] }];
734
+ } });
735
+
736
+ class NavbarContentDirective {
737
+ constructor(element) {
738
+ this.element = element;
739
+ this.initialPadding = 0;
740
+ this.resizeObserver = new ResizeObserver((entries) => {
741
+ let height = entries[0].contentRect.height;
742
+ this.element.nativeElement.style.paddingTop = (this.initialPadding + height) + 'px';
743
+ });
744
+ }
745
+ ngAfterViewInit() {
746
+ let p = parseInt(this.element.nativeElement.style.paddingTop.replace(/px$/, ''));
747
+ this.initialPadding = isNaN(p) ? 0 : p;
748
+ this.resizeObserver.observe(this.navbar.nav.nativeElement);
749
+ }
750
+ ngOnDestroy() {
751
+ this.resizeObserver.unobserve(this.navbar.nav.nativeElement);
752
+ }
753
+ }
754
+ NavbarContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NavbarContentDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
755
+ NavbarContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: NavbarContentDirective, selector: "[navbarContent]", inputs: { navbar: ["navbarContent", "navbar"] }, ngImport: i0 });
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NavbarContentDirective, decorators: [{
757
+ type: Directive,
758
+ args: [{
759
+ selector: '[navbarContent]'
760
+ }]
761
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { navbar: [{
762
+ type: Input,
763
+ args: ['navbarContent']
764
+ }] } });
765
+
766
+ class BsNavbarModule {
767
+ }
768
+ BsNavbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
769
+ BsNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, declarations: [BsNavbarComponent,
770
+ BsNavbarNavComponent,
771
+ BsNavbarDropdownComponent,
772
+ BsNavbarItemComponent,
773
+ DropdownToggleDirective,
774
+ NavLinkDirective,
775
+ NavbarContentDirective], imports: [CommonModule,
776
+ RouterModule,
777
+ ClickOutsideModule], exports: [BsNavbarComponent,
778
+ BsNavbarNavComponent,
779
+ BsNavbarDropdownComponent,
780
+ BsNavbarItemComponent,
781
+ DropdownToggleDirective,
782
+ NavLinkDirective,
783
+ NavbarContentDirective] });
784
+ BsNavbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, imports: [[
785
+ CommonModule,
786
+ RouterModule,
787
+ ClickOutsideModule
788
+ ]] });
789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, decorators: [{
790
+ type: NgModule,
791
+ args: [{
792
+ declarations: [
793
+ BsNavbarComponent,
794
+ BsNavbarNavComponent,
795
+ BsNavbarDropdownComponent,
796
+ BsNavbarItemComponent,
797
+ DropdownToggleDirective,
798
+ NavLinkDirective,
799
+ NavbarContentDirective
800
+ ],
801
+ imports: [
802
+ CommonModule,
803
+ RouterModule,
804
+ ClickOutsideModule
805
+ ],
806
+ exports: [
807
+ BsNavbarComponent,
808
+ BsNavbarNavComponent,
809
+ BsNavbarDropdownComponent,
810
+ BsNavbarItemComponent,
811
+ DropdownToggleDirective,
812
+ NavLinkDirective,
813
+ NavbarContentDirective
814
+ ]
815
+ }]
816
+ }] });
817
+
818
+ class BsAccordionTabComponent {
819
+ constructor(accordion) {
820
+ this.accordion = accordion;
821
+ }
822
+ ngOnInit() {
823
+ }
824
+ headerClicked(event) {
825
+ if (this.accordion.activeTab === this) {
826
+ this.accordion.activeTab = null;
827
+ }
828
+ else {
829
+ this.accordion.activeTab = this;
830
+ }
831
+ }
832
+ }
833
+ BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
834
+ BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionTabComponent, selector: "bs-accordion-tab", ngImport: i0, template: "<div class=\"card\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown]=\"(accordion.activeTab === this) ? 'down' : 'up'\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card,.card-header,.card-block{border-radius:0}.card{margin-bottom:-1px}\n"], animations: [SlideUpDownAnimation] });
835
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
836
+ type: Component,
837
+ args: [{ selector: 'bs-accordion-tab', animations: [SlideUpDownAnimation], template: "<div class=\"card\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown]=\"(accordion.activeTab === this) ? 'down' : 'up'\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card,.card-header,.card-block{border-radius:0}.card{margin-bottom:-1px}\n"] }]
838
+ }], ctorParameters: function () { return [{ type: BsAccordionComponent }]; } });
839
+
840
+ class BsAccordionComponent {
841
+ constructor() {
842
+ this.activeTab = null;
843
+ }
844
+ ngOnInit() {
845
+ }
846
+ }
847
+ BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
848
+ BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionComponent, decorators: [{
850
+ type: Component,
851
+ args: [{ selector: 'bs-accordion', template: "<ng-content></ng-content>", styles: [""] }]
852
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
853
+ type: ContentChildren,
854
+ args: [BsAccordionTabComponent]
855
+ }] } });
856
+
857
+ class BsAccordionTabHeaderComponent {
858
+ constructor(accordionTab, accordion) {
859
+ this.accordionTab = accordionTab;
860
+ this.accordion = accordion;
861
+ }
862
+ ngOnInit() {
863
+ }
864
+ headerClicked(event) {
865
+ if (this.accordion.activeTab === this.accordionTab) {
866
+ this.accordion.activeTab = null;
867
+ }
868
+ else {
869
+ this.accordion.activeTab = this.accordionTab;
870
+ }
871
+ }
872
+ }
873
+ BsAccordionTabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
874
+ BsAccordionTabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionTabHeaderComponent, selector: "bs-accordion-tab-header", ngImport: i0, template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] });
875
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabHeaderComponent, decorators: [{
876
+ type: Component,
877
+ args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
878
+ }], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
879
+
880
+ class BsAccordionModule {
881
+ }
882
+ BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
883
+ BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
884
+ BsAccordionTabComponent,
885
+ BsAccordionTabHeaderComponent], imports: [CommonModule,
886
+ BrowserAnimationsModule], exports: [BsAccordionComponent,
887
+ BsAccordionTabComponent,
888
+ BsAccordionTabHeaderComponent] });
889
+ BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, imports: [[
890
+ CommonModule,
891
+ BrowserAnimationsModule
892
+ ]] });
893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, decorators: [{
894
+ type: NgModule,
895
+ args: [{
896
+ declarations: [
897
+ BsAccordionComponent,
898
+ BsAccordionTabComponent,
899
+ BsAccordionTabHeaderComponent
900
+ ],
901
+ imports: [
902
+ CommonModule,
903
+ BrowserAnimationsModule
904
+ ],
905
+ exports: [
906
+ BsAccordionComponent,
907
+ BsAccordionTabComponent,
908
+ BsAccordionTabHeaderComponent
909
+ ]
910
+ }]
911
+ }] });
912
+
913
+ class BsTabPageComponent {
914
+ constructor(tabControl) {
915
+ this.disabled = false;
916
+ this.tabControl = tabControl;
917
+ }
918
+ ngOnInit() {
919
+ }
920
+ }
921
+ BsTabPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabPageComponent, deps: [{ token: BsTabControlComponent }], target: i0.ɵɵFactoryTarget.Component });
922
+ BsTabPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTabPageComponent, selector: "bs-tab-page", inputs: { disabled: "disabled" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabPageComponent, decorators: [{
924
+ type: Component,
925
+ args: [{ selector: 'bs-tab-page', template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""] }]
926
+ }], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { headerTemplate: [{
927
+ type: ContentChild,
928
+ args: [TemplateRef]
929
+ }], disabled: [{
930
+ type: Input
931
+ }] } });
932
+
933
+ class BsTabControlComponent {
934
+ constructor() {
935
+ this.activeTab = null;
936
+ }
937
+ ngOnInit() {
938
+ }
939
+ setActiveTab(tab) {
940
+ if (!tab.disabled) {
941
+ this.activeTab = tab;
942
+ }
943
+ return false;
944
+ }
945
+ }
946
+ BsTabControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
947
+ BsTabControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTabControlComponent, selector: "bs-tab-control", queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent }], ngImport: i0, template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n<!-- <div class=\"container\"> -->\n <ng-content></ng-content>\n<!-- </div> -->", styles: [""], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlComponent, decorators: [{
949
+ type: Component,
950
+ args: [{ selector: 'bs-tab-control', template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n<!-- <div class=\"container\"> -->\n <ng-content></ng-content>\n<!-- </div> -->", styles: [""] }]
951
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
952
+ type: ContentChildren,
953
+ args: [BsTabPageComponent]
954
+ }] } });
955
+
956
+ class BsTabControlModule {
957
+ }
958
+ BsTabControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
959
+ BsTabControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlModule, declarations: [BsTabControlComponent,
960
+ BsTabPageComponent], imports: [CommonModule], exports: [BsTabControlComponent,
961
+ BsTabPageComponent] });
962
+ BsTabControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlModule, imports: [[
963
+ CommonModule
964
+ ]] });
965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlModule, decorators: [{
966
+ type: NgModule,
967
+ args: [{
968
+ declarations: [
969
+ BsTabControlComponent,
970
+ BsTabPageComponent,
971
+ ],
972
+ imports: [
973
+ CommonModule
974
+ ],
975
+ exports: [
976
+ BsTabControlComponent,
977
+ BsTabPageComponent,
978
+ ]
979
+ }]
980
+ }] });
981
+
982
+ /**
983
+ * Generated bundle index. Do not edit.
984
+ */
985
+
986
+ export { BsAccordionComponent, BsAccordionModule, BsAccordionTabComponent, BsAccordionTabHeaderComponent, BsAlertCloseComponent, BsAlertComponent, BsAlertModule, BsCalendarComponent, BsCalendarModule, BsCardComponent, BsCardHeaderComponent, BsCardModule, BsCarouselComponent, BsCarouselImageDirective, BsCarouselModule, BsListGroupComponent, BsListGroupItemComponent, BsListGroupModule, BsNavbarComponent, BsNavbarDropdownComponent, BsNavbarItemComponent, BsNavbarModule, BsNavbarNavComponent, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, Color, DropdownToggleDirective, NavLinkDirective, NavbarContentDirective };
987
+ //# sourceMappingURL=mintplayer-ng-bootstrap.mjs.map