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