@mintplayer/ng-bootstrap 12.0.4 → 13.0.5

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 (166) 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 +65 -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 +991 -0
  54. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -0
  55. package/{fesm2015/mintplayer-ng-bootstrap.js → fesm2020/mintplayer-ng-bootstrap.mjs} +148 -215
  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/package.json +31 -18
  60. package/bundles/mintplayer-ng-bootstrap.umd.js +0 -1521
  61. package/bundles/mintplayer-ng-bootstrap.umd.js.map +0 -1
  62. package/esm2015/index.js +0 -3
  63. package/esm2015/index.js.map +0 -1
  64. package/esm2015/lib/components/accordion/accordion/accordion.component.js +0 -24
  65. package/esm2015/lib/components/accordion/accordion/accordion.component.js.map +0 -1
  66. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js +0 -32
  67. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js.map +0 -1
  68. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js +0 -33
  69. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js.map +0 -1
  70. package/esm2015/lib/components/accordion/accordion.module.js +0 -40
  71. package/esm2015/lib/components/accordion/accordion.module.js.map +0 -1
  72. package/esm2015/lib/components/accordion/index.js +0 -5
  73. package/esm2015/lib/components/accordion/index.js.map +0 -1
  74. package/esm2015/lib/components/alert/alert/alert.component.js +0 -25
  75. package/esm2015/lib/components/alert/alert/alert.component.js.map +0 -1
  76. package/esm2015/lib/components/alert/alert-close/alert-close.component.js +0 -19
  77. package/esm2015/lib/components/alert/alert-close/alert-close.component.js.map +0 -1
  78. package/esm2015/lib/components/alert/alert.module.js +0 -27
  79. package/esm2015/lib/components/alert/alert.module.js.map +0 -1
  80. package/esm2015/lib/components/alert/index.js +0 -4
  81. package/esm2015/lib/components/alert/index.js.map +0 -1
  82. package/esm2015/lib/components/calendar/calendar.component.js +0 -65
  83. package/esm2015/lib/components/calendar/calendar.component.js.map +0 -1
  84. package/esm2015/lib/components/calendar/calendar.module.js +0 -38
  85. package/esm2015/lib/components/calendar/calendar.module.js.map +0 -1
  86. package/esm2015/lib/components/calendar/index.js +0 -3
  87. package/esm2015/lib/components/calendar/index.js.map +0 -1
  88. package/esm2015/lib/components/card/card/card.component.js +0 -22
  89. package/esm2015/lib/components/card/card/card.component.js.map +0 -1
  90. package/esm2015/lib/components/card/card-header/card-header.component.js +0 -19
  91. package/esm2015/lib/components/card/card-header/card-header.component.js.map +0 -1
  92. package/esm2015/lib/components/card/card.module.js +0 -27
  93. package/esm2015/lib/components/card/card.module.js.map +0 -1
  94. package/esm2015/lib/components/card/index.js +0 -4
  95. package/esm2015/lib/components/card/index.js.map +0 -1
  96. package/esm2015/lib/components/carousel/carousel/carousel.component.js +0 -70
  97. package/esm2015/lib/components/carousel/carousel/carousel.component.js.map +0 -1
  98. package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js +0 -14
  99. package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js.map +0 -1
  100. package/esm2015/lib/components/carousel/carousel.module.js +0 -31
  101. package/esm2015/lib/components/carousel/carousel.module.js.map +0 -1
  102. package/esm2015/lib/components/carousel/index.js +0 -4
  103. package/esm2015/lib/components/carousel/index.js.map +0 -1
  104. package/esm2015/lib/components/index.js +0 -9
  105. package/esm2015/lib/components/index.js.map +0 -1
  106. package/esm2015/lib/components/list-group/index.js +0 -4
  107. package/esm2015/lib/components/list-group/index.js.map +0 -1
  108. package/esm2015/lib/components/list-group/list-group/list-group.component.js +0 -23
  109. package/esm2015/lib/components/list-group/list-group/list-group.component.js.map +0 -1
  110. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js +0 -19
  111. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js.map +0 -1
  112. package/esm2015/lib/components/list-group/list-group.module.js +0 -27
  113. package/esm2015/lib/components/list-group/list-group.module.js.map +0 -1
  114. package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js +0 -38
  115. package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js.map +0 -1
  116. package/esm2015/lib/components/navbar/index.js +0 -10
  117. package/esm2015/lib/components/navbar/index.js.map +0 -1
  118. package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js +0 -29
  119. package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js.map +0 -1
  120. package/esm2015/lib/components/navbar/navbar/navbar.component.js +0 -24
  121. package/esm2015/lib/components/navbar/navbar/navbar.component.js.map +0 -1
  122. package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js +0 -33
  123. package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js.map +0 -1
  124. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js +0 -42
  125. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js.map +0 -1
  126. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js +0 -51
  127. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js.map +0 -1
  128. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js +0 -34
  129. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js.map +0 -1
  130. package/esm2015/lib/components/navbar/navbar.module.js +0 -64
  131. package/esm2015/lib/components/navbar/navbar.module.js.map +0 -1
  132. package/esm2015/lib/components/tab-control/index.js +0 -4
  133. package/esm2015/lib/components/tab-control/index.js.map +0 -1
  134. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js +0 -31
  135. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js.map +0 -1
  136. package/esm2015/lib/components/tab-control/tab-control.module.js +0 -31
  137. package/esm2015/lib/components/tab-control/tab-control.module.js.map +0 -1
  138. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js +0 -29
  139. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js.map +0 -1
  140. package/esm2015/lib/enums/color.enum.js +0 -15
  141. package/esm2015/lib/enums/color.enum.js.map +0 -1
  142. package/esm2015/lib/enums/index.js +0 -2
  143. package/esm2015/lib/enums/index.js.map +0 -1
  144. package/esm2015/lib/interfaces/date-day-of-month.js +0 -2
  145. package/esm2015/lib/interfaces/date-day-of-month.js.map +0 -1
  146. package/esm2015/lib/interfaces/first-and-last-date.js +0 -2
  147. package/esm2015/lib/interfaces/first-and-last-date.js.map +0 -1
  148. package/esm2015/lib/interfaces/week.js +0 -2
  149. package/esm2015/lib/interfaces/week.js.map +0 -1
  150. package/esm2015/lib/pipes/month-name/month-name.module.js +0 -26
  151. package/esm2015/lib/pipes/month-name/month-name.module.js.map +0 -1
  152. package/esm2015/lib/pipes/month-name/month-name.pipe.js +0 -16
  153. package/esm2015/lib/pipes/month-name/month-name.pipe.js.map +0 -1
  154. package/esm2015/lib/pipes/uc-first/uc-first.module.js +0 -26
  155. package/esm2015/lib/pipes/uc-first/uc-first.module.js.map +0 -1
  156. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js +0 -16
  157. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js.map +0 -1
  158. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js +0 -26
  159. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js.map +0 -1
  160. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js +0 -16
  161. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js.map +0 -1
  162. package/esm2015/lib/services/calendar-month/calendar-month.service.js +0 -83
  163. package/esm2015/lib/services/calendar-month/calendar-month.service.js.map +0 -1
  164. package/esm2015/mintplayer-ng-bootstrap.js +0 -5
  165. package/esm2015/mintplayer-ng-bootstrap.js.map +0 -1
  166. package/fesm2015/mintplayer-ng-bootstrap.js.map +0 -1
@@ -0,0 +1,991 @@
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.0", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
+ BsAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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.0", 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.0", ngImport: i0, type: BsAlertCloseComponent, deps: [{ token: BsAlertComponent }], target: i0.ɵɵFactoryTarget.Component });
57
+ BsAlertCloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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.0", 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.0", ngImport: i0, type: BsAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
66
+ BsAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsAlertModule, imports: [[CommonModule]] });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
95
+ BsCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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.0", 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.0", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
108
+ BsCardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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.0", 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.0", ngImport: i0, type: BsCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
117
+ BsCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCardModule, imports: [[CommonModule]] });
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
209
+ BsCalendarMonthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' });
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: UcFirstPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
223
+ UcFirstPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: UcFirstPipe, name: "ucFirst" });
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
237
+ MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MonthNamePipe, name: "monthName" });
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }], target: i0.ɵɵFactoryTarget.Component });
293
+ BsCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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.0", 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.0", ngImport: i0, type: BsMonthNamePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
302
+ BsMonthNamePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsMonthNamePipeModule, declarations: [MonthNamePipe], imports: [CommonModule], exports: [MonthNamePipe] });
303
+ BsMonthNamePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsMonthNamePipeModule, imports: [[
304
+ CommonModule
305
+ ]] });
306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsUcFirstPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
324
+ BsUcFirstPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsUcFirstPipeModule, declarations: [UcFirstPipe], imports: [CommonModule], exports: [UcFirstPipe] });
325
+ BsUcFirstPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsUcFirstPipeModule, imports: [[
326
+ CommonModule
327
+ ]] });
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: WeekdayNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
349
+ WeekdayNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: WeekdayNamePipe, name: "weekdayName" });
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsWeekdayNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
360
+ BsWeekdayNameModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsWeekdayNameModule, declarations: [WeekdayNamePipe], imports: [CommonModule], exports: [WeekdayNamePipe] });
361
+ BsWeekdayNameModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsWeekdayNameModule, imports: [[
362
+ CommonModule
363
+ ]] });
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
382
+ BsCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCalendarModule, imports: [[
387
+ CommonModule,
388
+ BsUcFirstPipeModule,
389
+ BsMonthNamePipeModule,
390
+ BsWeekdayNameModule
391
+ ]] });
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.0", ngImport: i0, type: BsCarouselImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
414
+ BsCarouselImageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: BsCarouselImageDirective, selector: "img[bsCarouselImage]", ngImport: i0 });
415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", 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.currentImageIndex$ = new BehaviorSubject(-1);
426
+ this.currentImage$ = this.currentImageIndex$
427
+ .pipe(map((index) => { var _a; return (_a = this.images.get(index)) !== null && _a !== void 0 ? _a : null; }))
428
+ .pipe(takeUntil(this.destroyed$));
429
+ }
430
+ ngOnInit() { }
431
+ ngOnDestroy() {
432
+ this.destroyed$.next(true);
433
+ }
434
+ ngAfterContentInit() {
435
+ if (this.images.length > 0) {
436
+ this.currentImageIndex$.next(0);
437
+ }
438
+ else {
439
+ this.currentImageIndex$.next(-1);
440
+ }
441
+ }
442
+ previousImage() {
443
+ this.currentImageIndex$
444
+ .pipe(take(1))
445
+ .subscribe((currentImageIndex) => {
446
+ if (currentImageIndex === 0) {
447
+ this.currentImageIndex$.next(this.images.length - 1);
448
+ }
449
+ else {
450
+ this.currentImageIndex$.next(currentImageIndex - 1);
451
+ }
452
+ });
453
+ }
454
+ nextImage() {
455
+ this.currentImageIndex$
456
+ .pipe(take(1))
457
+ .subscribe((currentImageIndex) => {
458
+ if (currentImageIndex >= this.images.length - 1) {
459
+ this.currentImageIndex$.next(0);
460
+ }
461
+ else {
462
+ this.currentImageIndex$.next(currentImageIndex + 1);
463
+ }
464
+ });
465
+ }
466
+ setCurrentImage(index) {
467
+ this.currentImageIndex$.next(index);
468
+ }
469
+ }
470
+ BsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
471
+ BsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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]=\"currentImageIndex$ | 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] });
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselComponent, decorators: [{
473
+ type: Component,
474
+ 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]=\"currentImageIndex$ | 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"] }]
475
+ }], ctorParameters: function () { return []; }, propDecorators: { images: [{
476
+ type: ContentChildren,
477
+ args: [BsCarouselImageDirective, { read: ElementRef }]
478
+ }] } });
479
+
480
+ class BsCarouselModule {
481
+ }
482
+ BsCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
483
+ BsCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselModule, declarations: [BsCarouselComponent,
484
+ BsCarouselImageDirective], imports: [CommonModule], exports: [BsCarouselComponent,
485
+ BsCarouselImageDirective] });
486
+ BsCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselModule, imports: [[
487
+ CommonModule
488
+ ]] });
489
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsCarouselModule, decorators: [{
490
+ type: NgModule,
491
+ args: [{
492
+ declarations: [
493
+ BsCarouselComponent,
494
+ BsCarouselImageDirective
495
+ ],
496
+ imports: [
497
+ CommonModule
498
+ ],
499
+ exports: [
500
+ BsCarouselComponent,
501
+ BsCarouselImageDirective
502
+ ]
503
+ }]
504
+ }] });
505
+
506
+ class BsListGroupItemComponent {
507
+ constructor() {
508
+ }
509
+ ngOnInit() {
510
+ }
511
+ }
512
+ BsListGroupItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
513
+ BsListGroupItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] });
514
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupItemComponent, decorators: [{
515
+ type: Component,
516
+ 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"] }]
517
+ }], ctorParameters: function () { return []; } });
518
+
519
+ class BsListGroupComponent {
520
+ constructor() {
521
+ }
522
+ ngOnInit() {
523
+ }
524
+ }
525
+ BsListGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
526
+ BsListGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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: [""] });
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupComponent, decorators: [{
528
+ type: Component,
529
+ args: [{ selector: 'bs-list-group', template: "<ul class=\"list-group mt-0\">\n <ng-content></ng-content>\n</ul>", styles: [""] }]
530
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
531
+ type: ContentChildren,
532
+ args: [BsListGroupItemComponent]
533
+ }] } });
534
+
535
+ class BsListGroupModule {
536
+ }
537
+ BsListGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
538
+ BsListGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupModule, declarations: [BsListGroupComponent,
539
+ BsListGroupItemComponent], imports: [CommonModule], exports: [BsListGroupComponent,
540
+ BsListGroupItemComponent] });
541
+ BsListGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupModule, imports: [[CommonModule]] });
542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsListGroupModule, decorators: [{
543
+ type: NgModule,
544
+ args: [{
545
+ imports: [CommonModule],
546
+ declarations: [
547
+ BsListGroupComponent,
548
+ BsListGroupItemComponent
549
+ ],
550
+ exports: [
551
+ BsListGroupComponent,
552
+ BsListGroupItemComponent
553
+ ]
554
+ }]
555
+ }] });
556
+
557
+ class BsNavbarComponent {
558
+ constructor() {
559
+ this.isExpanded = false;
560
+ }
561
+ toggleExpanded() {
562
+ this.isExpanded = !this.isExpanded;
563
+ }
564
+ }
565
+ BsNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
566
+ BsNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] });
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarComponent, decorators: [{
568
+ type: Component,
569
+ 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"] }]
570
+ }], ctorParameters: function () { return []; }, propDecorators: { nav: [{
571
+ type: ViewChild,
572
+ args: ['nav']
573
+ }] } });
574
+
575
+ class BsNavbarNavComponent {
576
+ constructor(bsNavbar) {
577
+ //#region collapse
578
+ this._collapse = true;
579
+ this.bsNavbar = bsNavbar;
580
+ }
581
+ ngOnInit() {
582
+ }
583
+ set collapse(value) {
584
+ this._collapse = value;
585
+ }
586
+ get collapse() {
587
+ return this._collapse;
588
+ }
589
+ }
590
+ BsNavbarNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarNavComponent, deps: [{ token: BsNavbarComponent }], target: i0.ɵɵFactoryTarget.Component });
591
+ BsNavbarNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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] });
592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarNavComponent, decorators: [{
593
+ type: Component,
594
+ 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"] }]
595
+ }], ctorParameters: function () { return [{ type: BsNavbarComponent }]; }, propDecorators: { collapse: [{
596
+ type: Input
597
+ }] } });
598
+
599
+ class BsNavbarItemComponent {
600
+ constructor(parentDropdown, element) {
601
+ this.element = element;
602
+ this.hasDropdown = false;
603
+ this.anchorTag = null;
604
+ this.parentDropdown = parentDropdown;
605
+ }
606
+ ngOnInit() {
607
+ }
608
+ ngAfterContentChecked() {
609
+ if (this.hasDropdown) {
610
+ window.element = this.element.nativeElement;
611
+ this.anchorTag = this.element.nativeElement.querySelector('li a');
612
+ (this.anchorTag) && this.anchorTag.classList.add('dropdown-toggle');
613
+ if (this.anchorTag && !this.anchorTag.onclick) {
614
+ this.anchorTag.onclick = (ev) => {
615
+ ev.preventDefault();
616
+ // Normally there should be only one dropdown in this list
617
+ this.dropdowns.forEach((dropdown) => {
618
+ if (!(dropdown.isVisible = !dropdown.isVisible)) {
619
+ dropdown.childDropdowns.forEach((child) => {
620
+ child.isVisible = false;
621
+ });
622
+ }
623
+ });
624
+ return false;
625
+ };
626
+ }
627
+ }
628
+ }
629
+ }
630
+ BsNavbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarItemComponent, deps: [{ token: BsNavbarDropdownComponent, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
631
+ BsNavbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] });
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarItemComponent, decorators: [{
633
+ type: Component,
634
+ 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"] }]
635
+ }], ctorParameters: function () {
636
+ return [{ type: BsNavbarDropdownComponent, decorators: [{
637
+ type: Optional
638
+ }] }, { type: i0.ElementRef }];
639
+ }, propDecorators: { dropdowns: [{
640
+ type: ContentChildren,
641
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
642
+ }] } });
643
+
644
+ class BsNavbarDropdownComponent {
645
+ constructor(parentDropdown, navbarItem) {
646
+ this.isVisible = false;
647
+ this.parentDropdown = parentDropdown;
648
+ this.navbarItem = navbarItem;
649
+ }
650
+ get elementsToExclude() {
651
+ return [this.navbarItem.anchorTag].filter((a) => a).map((a) => a);
652
+ }
653
+ ngOnInit() {
654
+ }
655
+ }
656
+ BsNavbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarDropdownComponent, deps: [{ token: BsNavbarDropdownComponent, host: true, optional: true, skipSelf: true }, { token: forwardRef(() => BsNavbarItemComponent), host: true }], target: i0.ɵɵFactoryTarget.Component });
657
+ BsNavbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] }] });
658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarDropdownComponent, decorators: [{
659
+ type: Component,
660
+ 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"] }]
661
+ }], ctorParameters: function () {
662
+ return [{ type: BsNavbarDropdownComponent, decorators: [{
663
+ type: SkipSelf
664
+ }, {
665
+ type: Host
666
+ }, {
667
+ type: Optional
668
+ }] }, { type: BsNavbarItemComponent, decorators: [{
669
+ type: Host
670
+ }, {
671
+ type: Inject,
672
+ args: [forwardRef(() => BsNavbarItemComponent)]
673
+ }] }];
674
+ }, propDecorators: { childDropdowns: [{
675
+ type: ContentChildren,
676
+ args: [forwardRef(() => BsNavbarDropdownComponent), { descendants: true }]
677
+ }] } });
678
+
679
+ class DropdownToggleDirective {
680
+ constructor(elementRef, bsNavbarItem, parentDropdown) {
681
+ this.elementRef = elementRef;
682
+ this.bsNavbarItem = bsNavbarItem;
683
+ }
684
+ ngAfterContentInit() {
685
+ if (this.bsNavbarItem.dropdowns.length > 0) {
686
+ this.bsNavbarItem.hasDropdown = true;
687
+ }
688
+ }
689
+ }
690
+ DropdownToggleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DropdownToggleDirective, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => BsNavbarItemComponent) }, { token: forwardRef(() => BsNavbarDropdownComponent), optional: true }], target: i0.ɵɵFactoryTarget.Directive });
691
+ DropdownToggleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: DropdownToggleDirective, selector: "bs-navbar-item", queries: [{ propertyName: "childDropdowns", predicate: BsNavbarDropdownComponent }], ngImport: i0 });
692
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: DropdownToggleDirective, decorators: [{
693
+ type: Directive,
694
+ args: [{
695
+ // selector: 'bs-navbar-item > a[routerLink]',
696
+ selector: 'bs-navbar-item',
697
+ queries: {
698
+ childDropdowns: new ContentChildren(BsNavbarDropdownComponent)
699
+ }
700
+ }]
701
+ }], ctorParameters: function () {
702
+ return [{ type: i0.ElementRef }, { type: BsNavbarItemComponent, decorators: [{
703
+ type: Inject,
704
+ args: [forwardRef(() => BsNavbarItemComponent)]
705
+ }] }, { type: BsNavbarDropdownComponent, decorators: [{
706
+ type: Optional
707
+ }, {
708
+ type: Inject,
709
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
710
+ }] }];
711
+ } });
712
+
713
+ class NavLinkDirective {
714
+ constructor(elementRef, parentDropdown) {
715
+ this.elementRef = elementRef;
716
+ if (parentDropdown == null) {
717
+ this.elementRef.nativeElement.classList.add('nav-link');
718
+ }
719
+ else {
720
+ this.elementRef.nativeElement.classList.add('dropdown-item');
721
+ }
722
+ }
723
+ }
724
+ NavLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: NavLinkDirective, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => BsNavbarDropdownComponent), optional: true }], target: i0.ɵɵFactoryTarget.Directive });
725
+ NavLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: NavLinkDirective, selector: "bs-navbar-item > a[routerLink]", ngImport: i0 });
726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: NavLinkDirective, decorators: [{
727
+ type: Directive,
728
+ args: [{
729
+ selector: 'bs-navbar-item > a[routerLink]'
730
+ }]
731
+ }], ctorParameters: function () {
732
+ return [{ type: i0.ElementRef }, { type: BsNavbarDropdownComponent, decorators: [{
733
+ type: Optional
734
+ }, {
735
+ type: Inject,
736
+ args: [forwardRef(() => BsNavbarDropdownComponent)]
737
+ }] }];
738
+ } });
739
+
740
+ class NavbarContentDirective {
741
+ constructor(element) {
742
+ this.element = element;
743
+ this.initialPadding = 0;
744
+ this.resizeObserver = new ResizeObserver((entries) => {
745
+ let height = entries[0].contentRect.height;
746
+ this.element.nativeElement.style.paddingTop = (this.initialPadding + height) + 'px';
747
+ });
748
+ }
749
+ ngAfterViewInit() {
750
+ let p = parseInt(this.element.nativeElement.style.paddingTop.replace(/px$/, ''));
751
+ this.initialPadding = isNaN(p) ? 0 : p;
752
+ this.resizeObserver.observe(this.navbar.nav.nativeElement);
753
+ }
754
+ ngOnDestroy() {
755
+ this.resizeObserver.unobserve(this.navbar.nav.nativeElement);
756
+ }
757
+ }
758
+ NavbarContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: NavbarContentDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
759
+ NavbarContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: NavbarContentDirective, selector: "[navbarContent]", inputs: { navbar: ["navbarContent", "navbar"] }, ngImport: i0 });
760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: NavbarContentDirective, decorators: [{
761
+ type: Directive,
762
+ args: [{
763
+ selector: '[navbarContent]'
764
+ }]
765
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { navbar: [{
766
+ type: Input,
767
+ args: ['navbarContent']
768
+ }] } });
769
+
770
+ class BsNavbarModule {
771
+ }
772
+ BsNavbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
773
+ BsNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarModule, declarations: [BsNavbarComponent,
774
+ BsNavbarNavComponent,
775
+ BsNavbarDropdownComponent,
776
+ BsNavbarItemComponent,
777
+ DropdownToggleDirective,
778
+ NavLinkDirective,
779
+ NavbarContentDirective], imports: [CommonModule,
780
+ RouterModule,
781
+ ClickOutsideModule], exports: [BsNavbarComponent,
782
+ BsNavbarNavComponent,
783
+ BsNavbarDropdownComponent,
784
+ BsNavbarItemComponent,
785
+ DropdownToggleDirective,
786
+ NavLinkDirective,
787
+ NavbarContentDirective] });
788
+ BsNavbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarModule, imports: [[
789
+ CommonModule,
790
+ RouterModule,
791
+ ClickOutsideModule
792
+ ]] });
793
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsNavbarModule, decorators: [{
794
+ type: NgModule,
795
+ args: [{
796
+ declarations: [
797
+ BsNavbarComponent,
798
+ BsNavbarNavComponent,
799
+ BsNavbarDropdownComponent,
800
+ BsNavbarItemComponent,
801
+ DropdownToggleDirective,
802
+ NavLinkDirective,
803
+ NavbarContentDirective
804
+ ],
805
+ imports: [
806
+ CommonModule,
807
+ RouterModule,
808
+ ClickOutsideModule
809
+ ],
810
+ exports: [
811
+ BsNavbarComponent,
812
+ BsNavbarNavComponent,
813
+ BsNavbarDropdownComponent,
814
+ BsNavbarItemComponent,
815
+ DropdownToggleDirective,
816
+ NavLinkDirective,
817
+ NavbarContentDirective
818
+ ]
819
+ }]
820
+ }] });
821
+
822
+ class BsAccordionTabComponent {
823
+ constructor(accordion) {
824
+ this.accordion = accordion;
825
+ }
826
+ ngOnInit() {
827
+ }
828
+ headerClicked(event) {
829
+ if (this.accordion.activeTab === this) {
830
+ this.accordion.activeTab = null;
831
+ }
832
+ else {
833
+ this.accordion.activeTab = this;
834
+ }
835
+ }
836
+ }
837
+ BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
838
+ BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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] });
839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
840
+ type: Component,
841
+ 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"] }]
842
+ }], ctorParameters: function () { return [{ type: BsAccordionComponent }]; } });
843
+
844
+ class BsAccordionComponent {
845
+ constructor() {
846
+ this.activeTab = null;
847
+ }
848
+ ngOnInit() {
849
+ }
850
+ }
851
+ BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
852
+ BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionComponent, decorators: [{
854
+ type: Component,
855
+ args: [{ selector: 'bs-accordion', template: "<ng-content></ng-content>", styles: [""] }]
856
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
857
+ type: ContentChildren,
858
+ args: [BsAccordionTabComponent]
859
+ }] } });
860
+
861
+ class BsAccordionTabHeaderComponent {
862
+ constructor(accordionTab, accordion) {
863
+ this.accordionTab = accordionTab;
864
+ this.accordion = accordion;
865
+ }
866
+ ngOnInit() {
867
+ }
868
+ headerClicked(event) {
869
+ if (this.accordion.activeTab === this.accordionTab) {
870
+ this.accordion.activeTab = null;
871
+ }
872
+ else {
873
+ this.accordion.activeTab = this.accordionTab;
874
+ }
875
+ }
876
+ }
877
+ BsAccordionTabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
878
+ BsAccordionTabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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: [""] });
879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionTabHeaderComponent, decorators: [{
880
+ type: Component,
881
+ args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
882
+ }], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
883
+
884
+ class BsAccordionModule {
885
+ }
886
+ BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
887
+ BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
888
+ BsAccordionTabComponent,
889
+ BsAccordionTabHeaderComponent], imports: [CommonModule,
890
+ BrowserAnimationsModule], exports: [BsAccordionComponent,
891
+ BsAccordionTabComponent,
892
+ BsAccordionTabHeaderComponent] });
893
+ BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionModule, imports: [[
894
+ CommonModule,
895
+ BrowserAnimationsModule
896
+ ]] });
897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsAccordionModule, decorators: [{
898
+ type: NgModule,
899
+ args: [{
900
+ declarations: [
901
+ BsAccordionComponent,
902
+ BsAccordionTabComponent,
903
+ BsAccordionTabHeaderComponent
904
+ ],
905
+ imports: [
906
+ CommonModule,
907
+ BrowserAnimationsModule
908
+ ],
909
+ exports: [
910
+ BsAccordionComponent,
911
+ BsAccordionTabComponent,
912
+ BsAccordionTabHeaderComponent
913
+ ]
914
+ }]
915
+ }] });
916
+
917
+ class BsTabPageComponent {
918
+ constructor(tabControl) {
919
+ this.disabled = false;
920
+ this.tabControl = tabControl;
921
+ }
922
+ ngOnInit() {
923
+ }
924
+ }
925
+ BsTabPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabPageComponent, deps: [{ token: BsTabControlComponent }], target: i0.ɵɵFactoryTarget.Component });
926
+ BsTabPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] }] });
927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabPageComponent, decorators: [{
928
+ type: Component,
929
+ args: [{ selector: 'bs-tab-page', template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""] }]
930
+ }], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { headerTemplate: [{
931
+ type: ContentChild,
932
+ args: [TemplateRef]
933
+ }], disabled: [{
934
+ type: Input
935
+ }] } });
936
+
937
+ class BsTabControlComponent {
938
+ constructor() {
939
+ this.activeTab = null;
940
+ }
941
+ ngOnInit() {
942
+ }
943
+ setActiveTab(tab) {
944
+ if (!tab.disabled) {
945
+ this.activeTab = tab;
946
+ }
947
+ return false;
948
+ }
949
+ }
950
+ BsTabControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
951
+ BsTabControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", 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"] }] });
952
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlComponent, decorators: [{
953
+ type: Component,
954
+ 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: [""] }]
955
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
956
+ type: ContentChildren,
957
+ args: [BsTabPageComponent]
958
+ }] } });
959
+
960
+ class BsTabControlModule {
961
+ }
962
+ BsTabControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
963
+ BsTabControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlModule, declarations: [BsTabControlComponent,
964
+ BsTabPageComponent], imports: [CommonModule], exports: [BsTabControlComponent,
965
+ BsTabPageComponent] });
966
+ BsTabControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlModule, imports: [[
967
+ CommonModule
968
+ ]] });
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: BsTabControlModule, decorators: [{
970
+ type: NgModule,
971
+ args: [{
972
+ declarations: [
973
+ BsTabControlComponent,
974
+ BsTabPageComponent,
975
+ ],
976
+ imports: [
977
+ CommonModule
978
+ ],
979
+ exports: [
980
+ BsTabControlComponent,
981
+ BsTabPageComponent,
982
+ ]
983
+ }]
984
+ }] });
985
+
986
+ /**
987
+ * Generated bundle index. Do not edit.
988
+ */
989
+
990
+ 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 };
991
+ //# sourceMappingURL=mintplayer-ng-bootstrap.mjs.map