@mintplayer/ng-bootstrap 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/README.md +7 -0
  2. package/bundles/mintplayer-ng-bootstrap.umd.js +1213 -0
  3. package/bundles/mintplayer-ng-bootstrap.umd.js.map +1 -0
  4. package/esm2015/index.js +3 -0
  5. package/esm2015/index.js.map +1 -0
  6. package/esm2015/lib/components/accordion/accordion/accordion.component.js +24 -0
  7. package/esm2015/lib/components/accordion/accordion/accordion.component.js.map +1 -0
  8. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js +32 -0
  9. package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js.map +1 -0
  10. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js +33 -0
  11. package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js.map +1 -0
  12. package/esm2015/lib/components/accordion/accordion.module.js +40 -0
  13. package/esm2015/lib/components/accordion/accordion.module.js.map +1 -0
  14. package/esm2015/lib/components/accordion/index.js +5 -0
  15. package/esm2015/lib/components/accordion/index.js.map +1 -0
  16. package/esm2015/lib/components/alert/alert/alert.component.js +25 -0
  17. package/esm2015/lib/components/alert/alert/alert.component.js.map +1 -0
  18. package/esm2015/lib/components/alert/alert-close/alert-close.component.js +19 -0
  19. package/esm2015/lib/components/alert/alert-close/alert-close.component.js.map +1 -0
  20. package/esm2015/lib/components/alert/alert.module.js +27 -0
  21. package/esm2015/lib/components/alert/alert.module.js.map +1 -0
  22. package/esm2015/lib/components/alert/index.js +4 -0
  23. package/esm2015/lib/components/alert/index.js.map +1 -0
  24. package/esm2015/lib/components/calendar/calendar.component.js +65 -0
  25. package/esm2015/lib/components/calendar/calendar.component.js.map +1 -0
  26. package/esm2015/lib/components/calendar/calendar.module.js +38 -0
  27. package/esm2015/lib/components/calendar/calendar.module.js.map +1 -0
  28. package/esm2015/lib/components/calendar/index.js +3 -0
  29. package/esm2015/lib/components/calendar/index.js.map +1 -0
  30. package/esm2015/lib/components/card/card/card.component.js +22 -0
  31. package/esm2015/lib/components/card/card/card.component.js.map +1 -0
  32. package/esm2015/lib/components/card/card-header/card-header.component.js +19 -0
  33. package/esm2015/lib/components/card/card-header/card-header.component.js.map +1 -0
  34. package/esm2015/lib/components/card/card.module.js +27 -0
  35. package/esm2015/lib/components/card/card.module.js.map +1 -0
  36. package/esm2015/lib/components/card/index.js +4 -0
  37. package/esm2015/lib/components/card/index.js.map +1 -0
  38. package/esm2015/lib/components/index.js +8 -0
  39. package/esm2015/lib/components/index.js.map +1 -0
  40. package/esm2015/lib/components/list-group/index.js +4 -0
  41. package/esm2015/lib/components/list-group/index.js.map +1 -0
  42. package/esm2015/lib/components/list-group/list-group/list-group.component.js +23 -0
  43. package/esm2015/lib/components/list-group/list-group/list-group.component.js.map +1 -0
  44. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js +19 -0
  45. package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js.map +1 -0
  46. package/esm2015/lib/components/list-group/list-group.module.js +27 -0
  47. package/esm2015/lib/components/list-group/list-group.module.js.map +1 -0
  48. package/esm2015/lib/components/navbar/index.js +6 -0
  49. package/esm2015/lib/components/navbar/index.js.map +1 -0
  50. package/esm2015/lib/components/navbar/navbar/navbar.component.js +22 -0
  51. package/esm2015/lib/components/navbar/navbar/navbar.component.js.map +1 -0
  52. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js +18 -0
  53. package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js.map +1 -0
  54. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js +18 -0
  55. package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js.map +1 -0
  56. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js +18 -0
  57. package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js.map +1 -0
  58. package/esm2015/lib/components/navbar/navbar.module.js +41 -0
  59. package/esm2015/lib/components/navbar/navbar.module.js.map +1 -0
  60. package/esm2015/lib/components/tab-control/index.js +4 -0
  61. package/esm2015/lib/components/tab-control/index.js.map +1 -0
  62. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js +31 -0
  63. package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js.map +1 -0
  64. package/esm2015/lib/components/tab-control/tab-control.module.js +31 -0
  65. package/esm2015/lib/components/tab-control/tab-control.module.js.map +1 -0
  66. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js +29 -0
  67. package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js.map +1 -0
  68. package/esm2015/lib/enums/color.enum.js +15 -0
  69. package/esm2015/lib/enums/color.enum.js.map +1 -0
  70. package/esm2015/lib/enums/index.js +2 -0
  71. package/esm2015/lib/enums/index.js.map +1 -0
  72. package/esm2015/lib/interfaces/date-day-of-month.js +2 -0
  73. package/esm2015/lib/interfaces/date-day-of-month.js.map +1 -0
  74. package/esm2015/lib/interfaces/first-and-last-date.js +2 -0
  75. package/esm2015/lib/interfaces/first-and-last-date.js.map +1 -0
  76. package/esm2015/lib/interfaces/week.js +2 -0
  77. package/esm2015/lib/interfaces/week.js.map +1 -0
  78. package/esm2015/lib/pipes/month-name/month-name.module.js +26 -0
  79. package/esm2015/lib/pipes/month-name/month-name.module.js.map +1 -0
  80. package/esm2015/lib/pipes/month-name/month-name.pipe.js +16 -0
  81. package/esm2015/lib/pipes/month-name/month-name.pipe.js.map +1 -0
  82. package/esm2015/lib/pipes/uc-first/uc-first.module.js +26 -0
  83. package/esm2015/lib/pipes/uc-first/uc-first.module.js.map +1 -0
  84. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js +16 -0
  85. package/esm2015/lib/pipes/uc-first/uc-first.pipe.js.map +1 -0
  86. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js +26 -0
  87. package/esm2015/lib/pipes/weekday-name/weekday-name.module.js.map +1 -0
  88. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js +16 -0
  89. package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js.map +1 -0
  90. package/esm2015/lib/services/calendar-month/calendar-month.service.js +83 -0
  91. package/esm2015/lib/services/calendar-month/calendar-month.service.js.map +1 -0
  92. package/esm2015/mintplayer-ng-bootstrap.js +5 -0
  93. package/esm2015/mintplayer-ng-bootstrap.js.map +1 -0
  94. package/fesm2015/mintplayer-ng-bootstrap.js +770 -0
  95. package/fesm2015/mintplayer-ng-bootstrap.js.map +1 -0
  96. package/index.d.ts +2 -0
  97. package/lib/components/accordion/accordion/accordion.component.d.ts +11 -0
  98. package/lib/components/accordion/accordion-tab/accordion-tab.component.d.ts +11 -0
  99. package/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.d.ts +13 -0
  100. package/lib/components/accordion/accordion.module.d.ts +11 -0
  101. package/lib/components/accordion/index.d.ts +4 -0
  102. package/lib/components/alert/alert/alert.component.d.ts +11 -0
  103. package/lib/components/alert/alert-close/alert-close.component.d.ts +8 -0
  104. package/lib/components/alert/alert.module.d.ts +9 -0
  105. package/lib/components/alert/index.d.ts +3 -0
  106. package/lib/components/calendar/calendar.component.d.ts +22 -0
  107. package/lib/components/calendar/calendar.module.d.ts +11 -0
  108. package/lib/components/calendar/index.d.ts +2 -0
  109. package/lib/components/card/card/card.component.d.ts +10 -0
  110. package/lib/components/card/card-header/card-header.component.d.ts +8 -0
  111. package/lib/components/card/card.module.d.ts +9 -0
  112. package/lib/components/card/index.d.ts +3 -0
  113. package/lib/components/index.d.ts +7 -0
  114. package/lib/components/list-group/index.d.ts +3 -0
  115. package/lib/components/list-group/list-group/list-group.component.d.ts +10 -0
  116. package/lib/components/list-group/list-group-item/list-group-item.component.d.ts +8 -0
  117. package/lib/components/list-group/list-group.module.d.ts +9 -0
  118. package/lib/components/navbar/index.d.ts +5 -0
  119. package/lib/components/navbar/navbar/navbar.component.d.ts +9 -0
  120. package/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.d.ts +8 -0
  121. package/lib/components/navbar/navbar-item/navbar-item.component.d.ts +8 -0
  122. package/lib/components/navbar/navbar-nav/navbar-nav.component.d.ts +8 -0
  123. package/lib/components/navbar/navbar.module.d.ts +11 -0
  124. package/lib/components/tab-control/index.d.ts +3 -0
  125. package/lib/components/tab-control/tab-control/tab-control.component.d.ts +12 -0
  126. package/lib/components/tab-control/tab-control.module.d.ts +9 -0
  127. package/lib/components/tab-control/tab-page/tab-page.component.d.ts +12 -0
  128. package/lib/enums/color.enum.d.ts +13 -0
  129. package/lib/enums/index.d.ts +1 -0
  130. package/lib/interfaces/date-day-of-month.d.ts +4 -0
  131. package/lib/interfaces/first-and-last-date.d.ts +4 -0
  132. package/lib/interfaces/week.d.ts +5 -0
  133. package/lib/pipes/month-name/month-name.module.d.ts +8 -0
  134. package/lib/pipes/month-name/month-name.pipe.d.ts +7 -0
  135. package/lib/pipes/uc-first/uc-first.module.d.ts +8 -0
  136. package/lib/pipes/uc-first/uc-first.pipe.d.ts +7 -0
  137. package/lib/pipes/weekday-name/weekday-name.module.d.ts +8 -0
  138. package/lib/pipes/weekday-name/weekday-name.pipe.d.ts +7 -0
  139. package/lib/services/calendar-month/calendar-month.service.d.ts +17 -0
  140. package/mintplayer-ng-bootstrap.d.ts +5 -0
  141. package/package.json +28 -0
@@ -0,0 +1,770 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, NgModule, Injectable, Pipe, ContentChildren, TemplateRef, ContentChild } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { SlideUpDownAnimation } from '@mintplayer/ng-animations';
6
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
7
+
8
+ var Color;
9
+ (function (Color) {
10
+ Color[Color["primary"] = 0] = "primary";
11
+ Color[Color["secondary"] = 1] = "secondary";
12
+ Color[Color["success"] = 2] = "success";
13
+ Color[Color["danger"] = 3] = "danger";
14
+ Color[Color["warning"] = 4] = "warning";
15
+ Color[Color["info"] = 5] = "info";
16
+ Color[Color["light"] = 6] = "light";
17
+ Color[Color["dark"] = 7] = "dark";
18
+ Color[Color["body"] = 8] = "body";
19
+ Color[Color["white"] = 9] = "white";
20
+ Color[Color["transparent"] = 10] = "transparent";
21
+ })(Color || (Color = {}));
22
+
23
+ class BsAlertComponent {
24
+ constructor() {
25
+ this.type = Color.primary;
26
+ this.colors = Color;
27
+ }
28
+ ngOnInit() {
29
+ }
30
+ }
31
+ BsAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
+ BsAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAlertComponent, selector: "bs-alert", inputs: { type: "type" }, ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n</div>", styles: [""], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertComponent, decorators: [{
34
+ type: Component,
35
+ args: [{
36
+ selector: 'bs-alert',
37
+ templateUrl: './alert.component.html',
38
+ styleUrls: ['./alert.component.scss']
39
+ }]
40
+ }], ctorParameters: function () { return []; }, propDecorators: { type: [{
41
+ type: Input
42
+ }] } });
43
+
44
+ class BsAlertCloseComponent {
45
+ constructor() {
46
+ }
47
+ ngOnInit() {
48
+ }
49
+ }
50
+ BsAlertCloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
51
+ BsAlertCloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAlertCloseComponent, selector: "bs-alert-close", ngImport: i0, template: "<button class=\"btn float-end\">\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"] });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertCloseComponent, decorators: [{
53
+ type: Component,
54
+ args: [{
55
+ selector: 'bs-alert-close',
56
+ templateUrl: './alert-close.component.html',
57
+ styleUrls: ['./alert-close.component.scss']
58
+ }]
59
+ }], ctorParameters: function () { return []; } });
60
+
61
+ class BsAlertModule {
62
+ }
63
+ BsAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
64
+ BsAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertModule, declarations: [BsAlertComponent,
65
+ BsAlertCloseComponent], imports: [CommonModule], exports: [BsAlertComponent,
66
+ BsAlertCloseComponent] });
67
+ BsAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertModule, imports: [[CommonModule]] });
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAlertModule, decorators: [{
69
+ type: NgModule,
70
+ args: [{
71
+ imports: [CommonModule],
72
+ declarations: [
73
+ BsAlertComponent,
74
+ BsAlertCloseComponent
75
+ ],
76
+ exports: [
77
+ BsAlertComponent,
78
+ BsAlertCloseComponent
79
+ ]
80
+ }]
81
+ }] });
82
+
83
+ class BsCardComponent {
84
+ constructor() {
85
+ }
86
+ ngOnInit() {
87
+ }
88
+ ngAfterViewInit() {
89
+ // console.log('header', this.header);
90
+ }
91
+ }
92
+ BsCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
93
+ BsCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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"] });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardComponent, decorators: [{
95
+ type: Component,
96
+ args: [{
97
+ selector: 'bs-card',
98
+ templateUrl: './card.component.html',
99
+ styleUrls: ['./card.component.scss']
100
+ }]
101
+ }], ctorParameters: function () { return []; } });
102
+
103
+ class BsCardHeaderComponent {
104
+ constructor() {
105
+ }
106
+ ngOnInit() {
107
+ }
108
+ }
109
+ BsCardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
110
+ BsCardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsCardHeaderComponent, selector: "bs-card-header", ngImport: i0, template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] });
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
112
+ type: Component,
113
+ args: [{
114
+ selector: 'bs-card-header',
115
+ templateUrl: './card-header.component.html',
116
+ styleUrls: ['./card-header.component.scss']
117
+ }]
118
+ }], ctorParameters: function () { return []; } });
119
+
120
+ class BsCardModule {
121
+ }
122
+ BsCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
123
+ BsCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardModule, declarations: [BsCardComponent,
124
+ BsCardHeaderComponent], imports: [CommonModule], exports: [BsCardComponent,
125
+ BsCardHeaderComponent] });
126
+ BsCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardModule, imports: [[CommonModule]] });
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCardModule, decorators: [{
128
+ type: NgModule,
129
+ args: [{
130
+ imports: [CommonModule],
131
+ declarations: [
132
+ BsCardComponent,
133
+ BsCardHeaderComponent
134
+ ],
135
+ exports: [
136
+ BsCardComponent,
137
+ BsCardHeaderComponent
138
+ ]
139
+ }]
140
+ }] });
141
+
142
+ class BsCalendarMonthService {
143
+ constructor() {
144
+ }
145
+ getWeeks(month) {
146
+ let firstAndLast = this.getFirstAndLastDayOfMonth(month);
147
+ let days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;
148
+ let allDays = [
149
+ ...this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(d => null),
150
+ ...this.generateList(days).map(d => {
151
+ return {
152
+ date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),
153
+ dayOfMonth: d + 1,
154
+ };
155
+ }),
156
+ ...this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(d => null),
157
+ ];
158
+ let weeks = this.chunk(allDays, 7);
159
+ let weeksMapped = weeks.map((w, i) => {
160
+ var _a;
161
+ return {
162
+ number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(d => d !== null)) === null || _a === void 0 ? void 0 : _a.dayOfMonth)),
163
+ week: w
164
+ };
165
+ });
166
+ return weeksMapped;
167
+ }
168
+ generateList(count) {
169
+ return [...Array(count).keys()];
170
+ }
171
+ dayOfWeekMondayBased(date) {
172
+ let d = date.getDay() - 1;
173
+ if (d < 0) {
174
+ return 6;
175
+ }
176
+ else {
177
+ return d;
178
+ }
179
+ }
180
+ weekOfYear(date) {
181
+ let dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
182
+ dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
183
+ let yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
184
+ let utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
185
+ return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
186
+ }
187
+ getFirstAndLastDayOfMonth(date) {
188
+ return {
189
+ first: new Date(date.getFullYear(), date.getMonth(), 1),
190
+ last: new Date(date.getFullYear(), date.getMonth() + 1, 0)
191
+ };
192
+ }
193
+ dateDiff(date1, date2) {
194
+ const utc1 = this.toUTC(date1);
195
+ const utc2 = this.toUTC(date2);
196
+ const msPerDay = 1000 * 60 * 60 * 24;
197
+ return Math.floor((utc2 - utc1) / msPerDay);
198
+ }
199
+ dayOfYear(date) {
200
+ const start = new Date(date.getFullYear(), 0, 0);
201
+ return this.dateDiff(start, date);
202
+ }
203
+ toUTC(date) {
204
+ return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
205
+ }
206
+ chunk(items, size) {
207
+ let result = [];
208
+ for (let i = 0; i < items.length; i += size) {
209
+ result.push(items.slice(i, i + size));
210
+ }
211
+ return result;
212
+ }
213
+ }
214
+ BsCalendarMonthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
215
+ BsCalendarMonthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' });
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, decorators: [{
217
+ type: Injectable,
218
+ args: [{
219
+ providedIn: 'root'
220
+ }]
221
+ }], ctorParameters: function () { return []; } });
222
+
223
+ class UcFirstPipe {
224
+ transform(value, ...args) {
225
+ return value[0].toUpperCase() + value.slice(1);
226
+ }
227
+ }
228
+ UcFirstPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
229
+ UcFirstPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, name: "ucFirst" });
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, decorators: [{
231
+ type: Pipe,
232
+ args: [{
233
+ name: 'ucFirst'
234
+ }]
235
+ }] });
236
+
237
+ class MonthNamePipe {
238
+ transform(date, ...args) {
239
+ return date.toLocaleString("default", { month: 'long' });
240
+ }
241
+ }
242
+ MonthNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
243
+ MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, name: "monthName" });
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, decorators: [{
245
+ type: Pipe,
246
+ args: [{
247
+ name: 'monthName'
248
+ }]
249
+ }] });
250
+
251
+ class BsCalendarComponent {
252
+ constructor(calendarMonthService) {
253
+ this.calendarMonthService = calendarMonthService;
254
+ this.daysOfWeek = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
255
+ //#region SelectedDate
256
+ this.selectedDate = new Date();
257
+ //#endregion
258
+ //#region Weeks
259
+ this._weeks = [];
260
+ }
261
+ ngOnInit() {
262
+ this.month = new Date();
263
+ }
264
+ get month() {
265
+ return this._month;
266
+ }
267
+ set month(value) {
268
+ this._month = value;
269
+ this.weeks = this.calendarMonthService.getWeeks(this.month);
270
+ }
271
+ get weeks() {
272
+ return this._weeks;
273
+ }
274
+ set weeks(value) {
275
+ this._weeks = value;
276
+ if (this._weeks.length > 1) {
277
+ this.daysOfWeek = this._weeks[1].week.map(d => {
278
+ let date = new Date(this.month.getFullYear(), this.month.getMonth(), d === null || d === void 0 ? void 0 : d.dayOfMonth);
279
+ return date.toLocaleString("default", { weekday: 'short' });
280
+ });
281
+ }
282
+ }
283
+ //#endregion
284
+ previousMonth() {
285
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() - 1, 1);
286
+ return false;
287
+ }
288
+ nextMonth() {
289
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);
290
+ return false;
291
+ }
292
+ isSameDate(date1, date2) {
293
+ return (date1.getFullYear() === date2.getFullYear())
294
+ && (date1.getMonth() === date2.getMonth())
295
+ && (date1.getDate() === date2.getDate());
296
+ }
297
+ }
298
+ BsCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }], target: i0.ɵɵFactoryTarget.Component });
299
+ BsCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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: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 } });
300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarComponent, decorators: [{
301
+ type: Component,
302
+ args: [{
303
+ selector: 'bs-calendar',
304
+ templateUrl: './calendar.component.html',
305
+ styleUrls: ['./calendar.component.scss']
306
+ }]
307
+ }], ctorParameters: function () { return [{ type: BsCalendarMonthService }]; } });
308
+
309
+ class BsMonthNamePipeModule {
310
+ }
311
+ BsMonthNamePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
312
+ BsMonthNamePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, declarations: [MonthNamePipe], imports: [CommonModule], exports: [MonthNamePipe] });
313
+ BsMonthNamePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, imports: [[
314
+ CommonModule
315
+ ]] });
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, decorators: [{
317
+ type: NgModule,
318
+ args: [{
319
+ declarations: [
320
+ MonthNamePipe
321
+ ],
322
+ imports: [
323
+ CommonModule
324
+ ],
325
+ exports: [
326
+ MonthNamePipe
327
+ ]
328
+ }]
329
+ }] });
330
+
331
+ class BsUcFirstPipeModule {
332
+ }
333
+ BsUcFirstPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
334
+ BsUcFirstPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, declarations: [UcFirstPipe], imports: [CommonModule], exports: [UcFirstPipe] });
335
+ BsUcFirstPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, imports: [[
336
+ CommonModule
337
+ ]] });
338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, decorators: [{
339
+ type: NgModule,
340
+ args: [{
341
+ declarations: [
342
+ UcFirstPipe
343
+ ],
344
+ imports: [
345
+ CommonModule
346
+ ],
347
+ exports: [
348
+ UcFirstPipe
349
+ ]
350
+ }]
351
+ }] });
352
+
353
+ class WeekdayNamePipe {
354
+ transform(date, ...args) {
355
+ return date.toLocaleString("default", { weekday: 'short' });
356
+ }
357
+ }
358
+ WeekdayNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
359
+ WeekdayNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, name: "weekdayName" });
360
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, decorators: [{
361
+ type: Pipe,
362
+ args: [{
363
+ name: 'weekdayName'
364
+ }]
365
+ }] });
366
+
367
+ class BsWeekdayNameModule {
368
+ }
369
+ BsWeekdayNameModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
370
+ BsWeekdayNameModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, declarations: [WeekdayNamePipe], imports: [CommonModule], exports: [WeekdayNamePipe] });
371
+ BsWeekdayNameModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, imports: [[
372
+ CommonModule
373
+ ]] });
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, decorators: [{
375
+ type: NgModule,
376
+ args: [{
377
+ declarations: [
378
+ WeekdayNamePipe
379
+ ],
380
+ imports: [
381
+ CommonModule
382
+ ],
383
+ exports: [
384
+ WeekdayNamePipe
385
+ ]
386
+ }]
387
+ }] });
388
+
389
+ class BsCalendarModule {
390
+ }
391
+ BsCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
392
+ BsCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarModule, declarations: [BsCalendarComponent], imports: [CommonModule,
393
+ BsUcFirstPipeModule,
394
+ BsMonthNamePipeModule,
395
+ BsWeekdayNameModule], exports: [BsCalendarComponent] });
396
+ BsCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarModule, imports: [[
397
+ CommonModule,
398
+ BsUcFirstPipeModule,
399
+ BsMonthNamePipeModule,
400
+ BsWeekdayNameModule
401
+ ]] });
402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarModule, decorators: [{
403
+ type: NgModule,
404
+ args: [{
405
+ declarations: [
406
+ BsCalendarComponent
407
+ ],
408
+ imports: [
409
+ CommonModule,
410
+ BsUcFirstPipeModule,
411
+ BsMonthNamePipeModule,
412
+ BsWeekdayNameModule
413
+ ],
414
+ exports: [
415
+ BsCalendarComponent
416
+ ]
417
+ }]
418
+ }] });
419
+
420
+ class BsListGroupItemComponent {
421
+ constructor() {
422
+ }
423
+ ngOnInit() {
424
+ }
425
+ }
426
+ BsListGroupItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
427
+ BsListGroupItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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"] });
428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupItemComponent, decorators: [{
429
+ type: Component,
430
+ args: [{
431
+ selector: 'bs-list-group-item',
432
+ templateUrl: './list-group-item.component.html',
433
+ styleUrls: ['./list-group-item.component.scss']
434
+ }]
435
+ }], ctorParameters: function () { return []; } });
436
+
437
+ class BsListGroupComponent {
438
+ constructor() {
439
+ }
440
+ ngOnInit() {
441
+ }
442
+ }
443
+ BsListGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
444
+ BsListGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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: [""] });
445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupComponent, decorators: [{
446
+ type: Component,
447
+ args: [{
448
+ selector: 'bs-list-group',
449
+ templateUrl: './list-group.component.html',
450
+ styleUrls: ['./list-group.component.scss']
451
+ }]
452
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
453
+ type: ContentChildren,
454
+ args: [BsListGroupItemComponent]
455
+ }] } });
456
+
457
+ class BsListGroupModule {
458
+ }
459
+ BsListGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
460
+ BsListGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupModule, declarations: [BsListGroupComponent,
461
+ BsListGroupItemComponent], imports: [CommonModule], exports: [BsListGroupComponent,
462
+ BsListGroupItemComponent] });
463
+ BsListGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupModule, imports: [[CommonModule]] });
464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsListGroupModule, decorators: [{
465
+ type: NgModule,
466
+ args: [{
467
+ imports: [CommonModule],
468
+ declarations: [
469
+ BsListGroupComponent,
470
+ BsListGroupItemComponent
471
+ ],
472
+ exports: [
473
+ BsListGroupComponent,
474
+ BsListGroupItemComponent
475
+ ]
476
+ }]
477
+ }] });
478
+
479
+ class BsNavbarComponent {
480
+ constructor() {
481
+ this.isExpanded = false;
482
+ }
483
+ ngOnInit() {
484
+ }
485
+ }
486
+ BsNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
487
+ BsNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarComponent, selector: "bs-navbar", ngImport: i0, template: "<nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <!-- <div class=\"w-100\"> -->\n <a class=\"navbar-brand mx-auto\" href=\"#\">Navbar 2</a>\n <button (click)=\"isExpanded = !isExpanded\" class=\"navbar-toggler align-self-end\" type=\"button\" data-toggle=\"collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <!-- </div> -->\n <div class=\"navbar-collapse collapse w-100 show\" [@slideUpDown]=\"isExpanded ? 'down' : 'up'\">\n <ul class=\"navbar-nav mr-auto\">\n <li class=\"nav-item active\">\n <a class=\"nav-link\" href=\"#\">Left</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"//codeply.com\">Codeply</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"#\">Link</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"#\">Link</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"#\">Link</a>\n </li>\n </ul>\n </div>\n <div class=\"navbar-collapse collapse justify-content-end w-100 show\" [@slideUpDown]=\"isExpanded ? 'down' : 'up'\">\n <ul class=\"navbar-nav ml-auto\">\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"#\">Right</a>\n </li>\n <li class=\"nav-item\">\n <a class=\"nav-link\" href=\"#\">Link</a>\n </li>\n </ul>\n </div>\n </div>\n</nav>", styles: [":host ::ng-deep+*{padding-top:56px}nav{left:0;top:0;right:0;z-index:1}\n"], animations: [SlideUpDownAnimation] });
488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarComponent, decorators: [{
489
+ type: Component,
490
+ args: [{
491
+ selector: 'bs-navbar',
492
+ templateUrl: './navbar.component.html',
493
+ styleUrls: ['./navbar.component.scss'],
494
+ animations: [SlideUpDownAnimation]
495
+ }]
496
+ }], ctorParameters: function () { return []; } });
497
+
498
+ class BsNavbarNavComponent {
499
+ constructor() { }
500
+ ngOnInit() {
501
+ }
502
+ }
503
+ BsNavbarNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
504
+ BsNavbarNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarNavComponent, selector: "bs-navbar-nav", ngImport: i0, template: "<p>navbar-nav works!</p>\n", styles: [""] });
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarNavComponent, decorators: [{
506
+ type: Component,
507
+ args: [{
508
+ selector: 'bs-navbar-nav',
509
+ templateUrl: './navbar-nav.component.html',
510
+ styleUrls: ['./navbar-nav.component.scss']
511
+ }]
512
+ }], ctorParameters: function () { return []; } });
513
+
514
+ class BsNavbarDropdownComponent {
515
+ constructor() { }
516
+ ngOnInit() {
517
+ }
518
+ }
519
+ BsNavbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
520
+ BsNavbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", ngImport: i0, template: "<p>navbar-dropdown works!</p>\n", styles: [""] });
521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarDropdownComponent, decorators: [{
522
+ type: Component,
523
+ args: [{
524
+ selector: 'bs-navbar-dropdown',
525
+ templateUrl: './navbar-dropdown.component.html',
526
+ styleUrls: ['./navbar-dropdown.component.scss']
527
+ }]
528
+ }], ctorParameters: function () { return []; } });
529
+
530
+ class BsNavbarItemComponent {
531
+ constructor() { }
532
+ ngOnInit() {
533
+ }
534
+ }
535
+ BsNavbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
536
+ BsNavbarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarItemComponent, selector: "bs-navbar-item", ngImport: i0, template: "<p>navbar-item works!</p>\n", styles: [""] });
537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarItemComponent, decorators: [{
538
+ type: Component,
539
+ args: [{
540
+ selector: 'bs-navbar-item',
541
+ templateUrl: './navbar-item.component.html',
542
+ styleUrls: ['./navbar-item.component.scss']
543
+ }]
544
+ }], ctorParameters: function () { return []; } });
545
+
546
+ class BsNavbarModule {
547
+ }
548
+ BsNavbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
549
+ BsNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarModule, declarations: [BsNavbarComponent,
550
+ BsNavbarNavComponent,
551
+ BsNavbarDropdownComponent,
552
+ BsNavbarItemComponent], imports: [CommonModule], exports: [BsNavbarComponent,
553
+ BsNavbarNavComponent,
554
+ BsNavbarDropdownComponent,
555
+ BsNavbarItemComponent] });
556
+ BsNavbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarModule, imports: [[
557
+ CommonModule
558
+ ]] });
559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsNavbarModule, decorators: [{
560
+ type: NgModule,
561
+ args: [{
562
+ declarations: [
563
+ BsNavbarComponent,
564
+ BsNavbarNavComponent,
565
+ BsNavbarDropdownComponent,
566
+ BsNavbarItemComponent
567
+ ],
568
+ imports: [
569
+ CommonModule
570
+ ],
571
+ exports: [
572
+ BsNavbarComponent,
573
+ BsNavbarNavComponent,
574
+ BsNavbarDropdownComponent,
575
+ BsNavbarItemComponent
576
+ ]
577
+ }]
578
+ }] });
579
+
580
+ class BsAccordionTabComponent {
581
+ constructor(accordion) {
582
+ this.accordion = accordion;
583
+ }
584
+ ngOnInit() {
585
+ }
586
+ headerClicked(event) {
587
+ if (this.accordion.activeTab === this) {
588
+ this.accordion.activeTab = null;
589
+ }
590
+ else {
591
+ this.accordion.activeTab = this;
592
+ }
593
+ }
594
+ }
595
+ BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
596
+ BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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] });
597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
598
+ type: Component,
599
+ args: [{
600
+ selector: 'bs-accordion-tab',
601
+ templateUrl: './accordion-tab.component.html',
602
+ styleUrls: ['./accordion-tab.component.scss'],
603
+ animations: [SlideUpDownAnimation]
604
+ }]
605
+ }], ctorParameters: function () { return [{ type: BsAccordionComponent }]; } });
606
+
607
+ class BsAccordionComponent {
608
+ constructor() {
609
+ this.activeTab = null;
610
+ }
611
+ ngOnInit() {
612
+ }
613
+ }
614
+ BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
615
+ BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionComponent, decorators: [{
617
+ type: Component,
618
+ args: [{
619
+ selector: 'bs-accordion',
620
+ templateUrl: './accordion.component.html',
621
+ styleUrls: ['./accordion.component.scss']
622
+ }]
623
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
624
+ type: ContentChildren,
625
+ args: [BsAccordionTabComponent]
626
+ }] } });
627
+
628
+ class BsAccordionTabHeaderComponent {
629
+ constructor(accordionTab, accordion) {
630
+ this.accordionTab = accordionTab;
631
+ this.accordion = accordion;
632
+ }
633
+ ngOnInit() {
634
+ }
635
+ headerClicked(event) {
636
+ if (this.accordion.activeTab === this.accordionTab) {
637
+ this.accordion.activeTab = null;
638
+ }
639
+ else {
640
+ this.accordion.activeTab = this.accordionTab;
641
+ }
642
+ }
643
+ }
644
+ BsAccordionTabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
645
+ BsAccordionTabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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: [""] });
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionTabHeaderComponent, decorators: [{
647
+ type: Component,
648
+ args: [{
649
+ selector: 'bs-accordion-tab-header',
650
+ templateUrl: './accordion-tab-header.component.html',
651
+ styleUrls: ['./accordion-tab-header.component.scss']
652
+ }]
653
+ }], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
654
+
655
+ class BsAccordionModule {
656
+ }
657
+ BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
658
+ BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
659
+ BsAccordionTabComponent,
660
+ BsAccordionTabHeaderComponent], imports: [CommonModule,
661
+ BrowserAnimationsModule], exports: [BsAccordionComponent,
662
+ BsAccordionTabComponent,
663
+ BsAccordionTabHeaderComponent] });
664
+ BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionModule, imports: [[
665
+ CommonModule,
666
+ BrowserAnimationsModule
667
+ ]] });
668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsAccordionModule, decorators: [{
669
+ type: NgModule,
670
+ args: [{
671
+ declarations: [
672
+ BsAccordionComponent,
673
+ BsAccordionTabComponent,
674
+ BsAccordionTabHeaderComponent
675
+ ],
676
+ imports: [
677
+ CommonModule,
678
+ BrowserAnimationsModule
679
+ ],
680
+ exports: [
681
+ BsAccordionComponent,
682
+ BsAccordionTabComponent,
683
+ BsAccordionTabHeaderComponent
684
+ ]
685
+ }]
686
+ }] });
687
+
688
+ class BsTabPageComponent {
689
+ constructor(tabControl) {
690
+ this.disabled = false;
691
+ this.tabControl = tabControl;
692
+ }
693
+ ngOnInit() {
694
+ }
695
+ }
696
+ BsTabPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabPageComponent, deps: [{ token: BsTabControlComponent }], target: i0.ɵɵFactoryTarget.Component });
697
+ BsTabPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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"] }] });
698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabPageComponent, decorators: [{
699
+ type: Component,
700
+ args: [{
701
+ selector: 'bs-tab-page',
702
+ templateUrl: './tab-page.component.html',
703
+ styleUrls: ['./tab-page.component.scss']
704
+ }]
705
+ }], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { headerTemplate: [{
706
+ type: ContentChild,
707
+ args: [TemplateRef]
708
+ }], disabled: [{
709
+ type: Input
710
+ }] } });
711
+
712
+ class BsTabControlComponent {
713
+ constructor() {
714
+ this.activeTab = null;
715
+ }
716
+ ngOnInit() {
717
+ }
718
+ setActiveTab(tab) {
719
+ if (!tab.disabled) {
720
+ this.activeTab = tab;
721
+ }
722
+ return false;
723
+ }
724
+ }
725
+ BsTabControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
726
+ BsTabControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.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"] }] });
727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlComponent, decorators: [{
728
+ type: Component,
729
+ args: [{
730
+ selector: 'bs-tab-control',
731
+ templateUrl: './tab-control.component.html',
732
+ styleUrls: ['./tab-control.component.scss']
733
+ }]
734
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
735
+ type: ContentChildren,
736
+ args: [BsTabPageComponent]
737
+ }] } });
738
+
739
+ class BsTabControlModule {
740
+ }
741
+ BsTabControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
742
+ BsTabControlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlModule, declarations: [BsTabControlComponent,
743
+ BsTabPageComponent], imports: [CommonModule], exports: [BsTabControlComponent,
744
+ BsTabPageComponent] });
745
+ BsTabControlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlModule, imports: [[
746
+ CommonModule
747
+ ]] });
748
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsTabControlModule, decorators: [{
749
+ type: NgModule,
750
+ args: [{
751
+ declarations: [
752
+ BsTabControlComponent,
753
+ BsTabPageComponent,
754
+ ],
755
+ imports: [
756
+ CommonModule
757
+ ],
758
+ exports: [
759
+ BsTabControlComponent,
760
+ BsTabPageComponent,
761
+ ]
762
+ }]
763
+ }] });
764
+
765
+ /**
766
+ * Generated bundle index. Do not edit.
767
+ */
768
+
769
+ export { BsAccordionComponent, BsAccordionModule, BsAccordionTabComponent, BsAccordionTabHeaderComponent, BsAlertCloseComponent, BsAlertComponent, BsAlertModule, BsCalendarComponent, BsCalendarModule, BsCardComponent, BsCardHeaderComponent, BsCardModule, BsListGroupComponent, BsListGroupItemComponent, BsListGroupModule, BsNavbarComponent, BsNavbarDropdownComponent, BsNavbarItemComponent, BsNavbarModule, BsNavbarNavComponent, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, Color };
770
+ //# sourceMappingURL=mintplayer-ng-bootstrap.js.map