@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,1213 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@mintplayer/ng-animations'), require('@angular/platform-browser/animations')) :
3
+ typeof define === 'function' && define.amd ? define('@mintplayer/ng-bootstrap', ['exports', '@angular/core', '@angular/common', '@mintplayer/ng-animations', '@angular/platform-browser/animations'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.mintplayer = global.mintplayer || {}, global.mintplayer['ng-bootstrap'] = {}), global.ng.core, global.ng.common, global.ngAnimations, global.ng.platformBrowser.animations));
5
+ }(this, (function (exports, i0, i1, ngAnimations, animations) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return e[k];
18
+ }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n['default'] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+
30
+ exports.Color = void 0;
31
+ (function (Color) {
32
+ Color[Color["primary"] = 0] = "primary";
33
+ Color[Color["secondary"] = 1] = "secondary";
34
+ Color[Color["success"] = 2] = "success";
35
+ Color[Color["danger"] = 3] = "danger";
36
+ Color[Color["warning"] = 4] = "warning";
37
+ Color[Color["info"] = 5] = "info";
38
+ Color[Color["light"] = 6] = "light";
39
+ Color[Color["dark"] = 7] = "dark";
40
+ Color[Color["body"] = 8] = "body";
41
+ Color[Color["white"] = 9] = "white";
42
+ Color[Color["transparent"] = 10] = "transparent";
43
+ })(exports.Color || (exports.Color = {}));
44
+
45
+ var BsAlertComponent = /** @class */ (function () {
46
+ function BsAlertComponent() {
47
+ this.type = exports.Color.primary;
48
+ this.colors = exports.Color;
49
+ }
50
+ BsAlertComponent.prototype.ngOnInit = function () {
51
+ };
52
+ return BsAlertComponent;
53
+ }());
54
+ BsAlertComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
55
+ BsAlertComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAlertComponent, selector: "bs-alert", inputs: { type: "type" }, ngImport: i0__namespace, template: "<div class=\"alert\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n</div>", styles: [""], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
56
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertComponent, decorators: [{
57
+ type: i0.Component,
58
+ args: [{
59
+ selector: 'bs-alert',
60
+ templateUrl: './alert.component.html',
61
+ styleUrls: ['./alert.component.scss']
62
+ }]
63
+ }], ctorParameters: function () { return []; }, propDecorators: { type: [{
64
+ type: i0.Input
65
+ }] } });
66
+
67
+ var BsAlertCloseComponent = /** @class */ (function () {
68
+ function BsAlertCloseComponent() {
69
+ }
70
+ BsAlertCloseComponent.prototype.ngOnInit = function () {
71
+ };
72
+ return BsAlertCloseComponent;
73
+ }());
74
+ BsAlertCloseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertCloseComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
75
+ BsAlertCloseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAlertCloseComponent, selector: "bs-alert-close", ngImport: i0__namespace, 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"] });
76
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertCloseComponent, decorators: [{
77
+ type: i0.Component,
78
+ args: [{
79
+ selector: 'bs-alert-close',
80
+ templateUrl: './alert-close.component.html',
81
+ styleUrls: ['./alert-close.component.scss']
82
+ }]
83
+ }], ctorParameters: function () { return []; } });
84
+
85
+ var BsAlertModule = /** @class */ (function () {
86
+ function BsAlertModule() {
87
+ }
88
+ return BsAlertModule;
89
+ }());
90
+ BsAlertModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
91
+ BsAlertModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, declarations: [BsAlertComponent,
92
+ BsAlertCloseComponent], imports: [i1.CommonModule], exports: [BsAlertComponent,
93
+ BsAlertCloseComponent] });
94
+ BsAlertModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, imports: [[i1.CommonModule]] });
95
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, decorators: [{
96
+ type: i0.NgModule,
97
+ args: [{
98
+ imports: [i1.CommonModule],
99
+ declarations: [
100
+ BsAlertComponent,
101
+ BsAlertCloseComponent
102
+ ],
103
+ exports: [
104
+ BsAlertComponent,
105
+ BsAlertCloseComponent
106
+ ]
107
+ }]
108
+ }] });
109
+
110
+ var BsCardComponent = /** @class */ (function () {
111
+ function BsCardComponent() {
112
+ }
113
+ BsCardComponent.prototype.ngOnInit = function () {
114
+ };
115
+ BsCardComponent.prototype.ngAfterViewInit = function () {
116
+ // console.log('header', this.header);
117
+ };
118
+ return BsCardComponent;
119
+ }());
120
+ BsCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
121
+ BsCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsCardComponent, selector: "bs-card", ngImport: i0__namespace, 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"] });
122
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardComponent, decorators: [{
123
+ type: i0.Component,
124
+ args: [{
125
+ selector: 'bs-card',
126
+ templateUrl: './card.component.html',
127
+ styleUrls: ['./card.component.scss']
128
+ }]
129
+ }], ctorParameters: function () { return []; } });
130
+
131
+ var BsCardHeaderComponent = /** @class */ (function () {
132
+ function BsCardHeaderComponent() {
133
+ }
134
+ BsCardHeaderComponent.prototype.ngOnInit = function () {
135
+ };
136
+ return BsCardHeaderComponent;
137
+ }());
138
+ BsCardHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
139
+ BsCardHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsCardHeaderComponent, selector: "bs-card-header", ngImport: i0__namespace, template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] });
140
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardHeaderComponent, decorators: [{
141
+ type: i0.Component,
142
+ args: [{
143
+ selector: 'bs-card-header',
144
+ templateUrl: './card-header.component.html',
145
+ styleUrls: ['./card-header.component.scss']
146
+ }]
147
+ }], ctorParameters: function () { return []; } });
148
+
149
+ var BsCardModule = /** @class */ (function () {
150
+ function BsCardModule() {
151
+ }
152
+ return BsCardModule;
153
+ }());
154
+ BsCardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
155
+ BsCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, declarations: [BsCardComponent,
156
+ BsCardHeaderComponent], imports: [i1.CommonModule], exports: [BsCardComponent,
157
+ BsCardHeaderComponent] });
158
+ BsCardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, imports: [[i1.CommonModule]] });
159
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, decorators: [{
160
+ type: i0.NgModule,
161
+ args: [{
162
+ imports: [i1.CommonModule],
163
+ declarations: [
164
+ BsCardComponent,
165
+ BsCardHeaderComponent
166
+ ],
167
+ exports: [
168
+ BsCardComponent,
169
+ BsCardHeaderComponent
170
+ ]
171
+ }]
172
+ }] });
173
+
174
+ /*! *****************************************************************************
175
+ Copyright (c) Microsoft Corporation.
176
+
177
+ Permission to use, copy, modify, and/or distribute this software for any
178
+ purpose with or without fee is hereby granted.
179
+
180
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
181
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
182
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
183
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
184
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
185
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
186
+ PERFORMANCE OF THIS SOFTWARE.
187
+ ***************************************************************************** */
188
+ /* global Reflect, Promise */
189
+ var extendStatics = function (d, b) {
190
+ extendStatics = Object.setPrototypeOf ||
191
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
192
+ function (d, b) { for (var p in b)
193
+ if (Object.prototype.hasOwnProperty.call(b, p))
194
+ d[p] = b[p]; };
195
+ return extendStatics(d, b);
196
+ };
197
+ function __extends(d, b) {
198
+ if (typeof b !== "function" && b !== null)
199
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
200
+ extendStatics(d, b);
201
+ function __() { this.constructor = d; }
202
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
203
+ }
204
+ var __assign = function () {
205
+ __assign = Object.assign || function __assign(t) {
206
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
207
+ s = arguments[i];
208
+ for (var p in s)
209
+ if (Object.prototype.hasOwnProperty.call(s, p))
210
+ t[p] = s[p];
211
+ }
212
+ return t;
213
+ };
214
+ return __assign.apply(this, arguments);
215
+ };
216
+ function __rest(s, e) {
217
+ var t = {};
218
+ for (var p in s)
219
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
220
+ t[p] = s[p];
221
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
222
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
223
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
224
+ t[p[i]] = s[p[i]];
225
+ }
226
+ return t;
227
+ }
228
+ function __decorate(decorators, target, key, desc) {
229
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
230
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
231
+ r = Reflect.decorate(decorators, target, key, desc);
232
+ else
233
+ for (var i = decorators.length - 1; i >= 0; i--)
234
+ if (d = decorators[i])
235
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
236
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
237
+ }
238
+ function __param(paramIndex, decorator) {
239
+ return function (target, key) { decorator(target, key, paramIndex); };
240
+ }
241
+ function __metadata(metadataKey, metadataValue) {
242
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
243
+ return Reflect.metadata(metadataKey, metadataValue);
244
+ }
245
+ function __awaiter(thisArg, _arguments, P, generator) {
246
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
247
+ return new (P || (P = Promise))(function (resolve, reject) {
248
+ function fulfilled(value) { try {
249
+ step(generator.next(value));
250
+ }
251
+ catch (e) {
252
+ reject(e);
253
+ } }
254
+ function rejected(value) { try {
255
+ step(generator["throw"](value));
256
+ }
257
+ catch (e) {
258
+ reject(e);
259
+ } }
260
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
261
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
262
+ });
263
+ }
264
+ function __generator(thisArg, body) {
265
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
266
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
267
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
268
+ function verb(n) { return function (v) { return step([n, v]); }; }
269
+ function step(op) {
270
+ if (f)
271
+ throw new TypeError("Generator is already executing.");
272
+ while (_)
273
+ try {
274
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
275
+ return t;
276
+ if (y = 0, t)
277
+ op = [op[0] & 2, t.value];
278
+ switch (op[0]) {
279
+ case 0:
280
+ case 1:
281
+ t = op;
282
+ break;
283
+ case 4:
284
+ _.label++;
285
+ return { value: op[1], done: false };
286
+ case 5:
287
+ _.label++;
288
+ y = op[1];
289
+ op = [0];
290
+ continue;
291
+ case 7:
292
+ op = _.ops.pop();
293
+ _.trys.pop();
294
+ continue;
295
+ default:
296
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
297
+ _ = 0;
298
+ continue;
299
+ }
300
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
301
+ _.label = op[1];
302
+ break;
303
+ }
304
+ if (op[0] === 6 && _.label < t[1]) {
305
+ _.label = t[1];
306
+ t = op;
307
+ break;
308
+ }
309
+ if (t && _.label < t[2]) {
310
+ _.label = t[2];
311
+ _.ops.push(op);
312
+ break;
313
+ }
314
+ if (t[2])
315
+ _.ops.pop();
316
+ _.trys.pop();
317
+ continue;
318
+ }
319
+ op = body.call(thisArg, _);
320
+ }
321
+ catch (e) {
322
+ op = [6, e];
323
+ y = 0;
324
+ }
325
+ finally {
326
+ f = t = 0;
327
+ }
328
+ if (op[0] & 5)
329
+ throw op[1];
330
+ return { value: op[0] ? op[1] : void 0, done: true };
331
+ }
332
+ }
333
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
334
+ if (k2 === undefined)
335
+ k2 = k;
336
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
337
+ }) : (function (o, m, k, k2) {
338
+ if (k2 === undefined)
339
+ k2 = k;
340
+ o[k2] = m[k];
341
+ });
342
+ function __exportStar(m, o) {
343
+ for (var p in m)
344
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
345
+ __createBinding(o, m, p);
346
+ }
347
+ function __values(o) {
348
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
349
+ if (m)
350
+ return m.call(o);
351
+ if (o && typeof o.length === "number")
352
+ return {
353
+ next: function () {
354
+ if (o && i >= o.length)
355
+ o = void 0;
356
+ return { value: o && o[i++], done: !o };
357
+ }
358
+ };
359
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
360
+ }
361
+ function __read(o, n) {
362
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
363
+ if (!m)
364
+ return o;
365
+ var i = m.call(o), r, ar = [], e;
366
+ try {
367
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
368
+ ar.push(r.value);
369
+ }
370
+ catch (error) {
371
+ e = { error: error };
372
+ }
373
+ finally {
374
+ try {
375
+ if (r && !r.done && (m = i["return"]))
376
+ m.call(i);
377
+ }
378
+ finally {
379
+ if (e)
380
+ throw e.error;
381
+ }
382
+ }
383
+ return ar;
384
+ }
385
+ /** @deprecated */
386
+ function __spread() {
387
+ for (var ar = [], i = 0; i < arguments.length; i++)
388
+ ar = ar.concat(__read(arguments[i]));
389
+ return ar;
390
+ }
391
+ /** @deprecated */
392
+ function __spreadArrays() {
393
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
394
+ s += arguments[i].length;
395
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
396
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
397
+ r[k] = a[j];
398
+ return r;
399
+ }
400
+ function __spreadArray(to, from, pack) {
401
+ if (pack || arguments.length === 2)
402
+ for (var i = 0, l = from.length, ar; i < l; i++) {
403
+ if (ar || !(i in from)) {
404
+ if (!ar)
405
+ ar = Array.prototype.slice.call(from, 0, i);
406
+ ar[i] = from[i];
407
+ }
408
+ }
409
+ return to.concat(ar || from);
410
+ }
411
+ function __await(v) {
412
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
413
+ }
414
+ function __asyncGenerator(thisArg, _arguments, generator) {
415
+ if (!Symbol.asyncIterator)
416
+ throw new TypeError("Symbol.asyncIterator is not defined.");
417
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
418
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
419
+ function verb(n) { if (g[n])
420
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
421
+ function resume(n, v) { try {
422
+ step(g[n](v));
423
+ }
424
+ catch (e) {
425
+ settle(q[0][3], e);
426
+ } }
427
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
428
+ function fulfill(value) { resume("next", value); }
429
+ function reject(value) { resume("throw", value); }
430
+ function settle(f, v) { if (f(v), q.shift(), q.length)
431
+ resume(q[0][0], q[0][1]); }
432
+ }
433
+ function __asyncDelegator(o) {
434
+ var i, p;
435
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
436
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
437
+ }
438
+ function __asyncValues(o) {
439
+ if (!Symbol.asyncIterator)
440
+ throw new TypeError("Symbol.asyncIterator is not defined.");
441
+ var m = o[Symbol.asyncIterator], i;
442
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
443
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
444
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
445
+ }
446
+ function __makeTemplateObject(cooked, raw) {
447
+ if (Object.defineProperty) {
448
+ Object.defineProperty(cooked, "raw", { value: raw });
449
+ }
450
+ else {
451
+ cooked.raw = raw;
452
+ }
453
+ return cooked;
454
+ }
455
+ ;
456
+ var __setModuleDefault = Object.create ? (function (o, v) {
457
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
458
+ }) : function (o, v) {
459
+ o["default"] = v;
460
+ };
461
+ function __importStar(mod) {
462
+ if (mod && mod.__esModule)
463
+ return mod;
464
+ var result = {};
465
+ if (mod != null)
466
+ for (var k in mod)
467
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
468
+ __createBinding(result, mod, k);
469
+ __setModuleDefault(result, mod);
470
+ return result;
471
+ }
472
+ function __importDefault(mod) {
473
+ return (mod && mod.__esModule) ? mod : { default: mod };
474
+ }
475
+ function __classPrivateFieldGet(receiver, state, kind, f) {
476
+ if (kind === "a" && !f)
477
+ throw new TypeError("Private accessor was defined without a getter");
478
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
479
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
480
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
481
+ }
482
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
483
+ if (kind === "m")
484
+ throw new TypeError("Private method is not writable");
485
+ if (kind === "a" && !f)
486
+ throw new TypeError("Private accessor was defined without a setter");
487
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
488
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
489
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
490
+ }
491
+
492
+ var BsCalendarMonthService = /** @class */ (function () {
493
+ function BsCalendarMonthService() {
494
+ }
495
+ BsCalendarMonthService.prototype.getWeeks = function (month) {
496
+ var _this = this;
497
+ var firstAndLast = this.getFirstAndLastDayOfMonth(month);
498
+ var days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;
499
+ var allDays = __spreadArray(__spreadArray(__spreadArray([], __read(this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(function (d) { return null; }))), __read(this.generateList(days).map(function (d) {
500
+ return {
501
+ date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),
502
+ dayOfMonth: d + 1,
503
+ };
504
+ }))), __read(this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(function (d) { return null; })));
505
+ var weeks = this.chunk(allDays, 7);
506
+ var weeksMapped = weeks.map(function (w, i) {
507
+ var _a;
508
+ return {
509
+ number: _this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(function (d) { return d !== null; })) === null || _a === void 0 ? void 0 : _a.dayOfMonth)),
510
+ week: w
511
+ };
512
+ });
513
+ return weeksMapped;
514
+ };
515
+ BsCalendarMonthService.prototype.generateList = function (count) {
516
+ return __spreadArray([], __read(Array(count).keys()));
517
+ };
518
+ BsCalendarMonthService.prototype.dayOfWeekMondayBased = function (date) {
519
+ var d = date.getDay() - 1;
520
+ if (d < 0) {
521
+ return 6;
522
+ }
523
+ else {
524
+ return d;
525
+ }
526
+ };
527
+ BsCalendarMonthService.prototype.weekOfYear = function (date) {
528
+ var dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
529
+ dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
530
+ var yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
531
+ var utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
532
+ return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
533
+ };
534
+ BsCalendarMonthService.prototype.getFirstAndLastDayOfMonth = function (date) {
535
+ return {
536
+ first: new Date(date.getFullYear(), date.getMonth(), 1),
537
+ last: new Date(date.getFullYear(), date.getMonth() + 1, 0)
538
+ };
539
+ };
540
+ BsCalendarMonthService.prototype.dateDiff = function (date1, date2) {
541
+ var utc1 = this.toUTC(date1);
542
+ var utc2 = this.toUTC(date2);
543
+ var msPerDay = 1000 * 60 * 60 * 24;
544
+ return Math.floor((utc2 - utc1) / msPerDay);
545
+ };
546
+ BsCalendarMonthService.prototype.dayOfYear = function (date) {
547
+ var start = new Date(date.getFullYear(), 0, 0);
548
+ return this.dateDiff(start, date);
549
+ };
550
+ BsCalendarMonthService.prototype.toUTC = function (date) {
551
+ return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
552
+ };
553
+ BsCalendarMonthService.prototype.chunk = function (items, size) {
554
+ var result = [];
555
+ for (var i = 0; i < items.length; i += size) {
556
+ result.push(items.slice(i, i + size));
557
+ }
558
+ return result;
559
+ };
560
+ return BsCalendarMonthService;
561
+ }());
562
+ BsCalendarMonthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
563
+ BsCalendarMonthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, providedIn: 'root' });
564
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, decorators: [{
565
+ type: i0.Injectable,
566
+ args: [{
567
+ providedIn: 'root'
568
+ }]
569
+ }], ctorParameters: function () { return []; } });
570
+
571
+ var UcFirstPipe = /** @class */ (function () {
572
+ function UcFirstPipe() {
573
+ }
574
+ UcFirstPipe.prototype.transform = function (value) {
575
+ var args = [];
576
+ for (var _i = 1; _i < arguments.length; _i++) {
577
+ args[_i - 1] = arguments[_i];
578
+ }
579
+ return value[0].toUpperCase() + value.slice(1);
580
+ };
581
+ return UcFirstPipe;
582
+ }());
583
+ UcFirstPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
584
+ UcFirstPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, name: "ucFirst" });
585
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, decorators: [{
586
+ type: i0.Pipe,
587
+ args: [{
588
+ name: 'ucFirst'
589
+ }]
590
+ }] });
591
+
592
+ var MonthNamePipe = /** @class */ (function () {
593
+ function MonthNamePipe() {
594
+ }
595
+ MonthNamePipe.prototype.transform = function (date) {
596
+ var args = [];
597
+ for (var _i = 1; _i < arguments.length; _i++) {
598
+ args[_i - 1] = arguments[_i];
599
+ }
600
+ return date.toLocaleString("default", { month: 'long' });
601
+ };
602
+ return MonthNamePipe;
603
+ }());
604
+ MonthNamePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
605
+ MonthNamePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, name: "monthName" });
606
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, decorators: [{
607
+ type: i0.Pipe,
608
+ args: [{
609
+ name: 'monthName'
610
+ }]
611
+ }] });
612
+
613
+ var BsCalendarComponent = /** @class */ (function () {
614
+ function BsCalendarComponent(calendarMonthService) {
615
+ this.calendarMonthService = calendarMonthService;
616
+ this.daysOfWeek = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
617
+ //#region SelectedDate
618
+ this.selectedDate = new Date();
619
+ //#endregion
620
+ //#region Weeks
621
+ this._weeks = [];
622
+ }
623
+ BsCalendarComponent.prototype.ngOnInit = function () {
624
+ this.month = new Date();
625
+ };
626
+ Object.defineProperty(BsCalendarComponent.prototype, "month", {
627
+ get: function () {
628
+ return this._month;
629
+ },
630
+ set: function (value) {
631
+ this._month = value;
632
+ this.weeks = this.calendarMonthService.getWeeks(this.month);
633
+ },
634
+ enumerable: false,
635
+ configurable: true
636
+ });
637
+ Object.defineProperty(BsCalendarComponent.prototype, "weeks", {
638
+ get: function () {
639
+ return this._weeks;
640
+ },
641
+ set: function (value) {
642
+ var _this = this;
643
+ this._weeks = value;
644
+ if (this._weeks.length > 1) {
645
+ this.daysOfWeek = this._weeks[1].week.map(function (d) {
646
+ var date = new Date(_this.month.getFullYear(), _this.month.getMonth(), d === null || d === void 0 ? void 0 : d.dayOfMonth);
647
+ return date.toLocaleString("default", { weekday: 'short' });
648
+ });
649
+ }
650
+ },
651
+ enumerable: false,
652
+ configurable: true
653
+ });
654
+ //#endregion
655
+ BsCalendarComponent.prototype.previousMonth = function () {
656
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() - 1, 1);
657
+ return false;
658
+ };
659
+ BsCalendarComponent.prototype.nextMonth = function () {
660
+ this.month = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);
661
+ return false;
662
+ };
663
+ BsCalendarComponent.prototype.isSameDate = function (date1, date2) {
664
+ return (date1.getFullYear() === date2.getFullYear())
665
+ && (date1.getMonth() === date2.getMonth())
666
+ && (date1.getDate() === date2.getDate());
667
+ };
668
+ return BsCalendarComponent;
669
+ }());
670
+ BsCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }], target: i0__namespace.ɵɵFactoryTarget.Component });
671
+ BsCalendarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsCalendarComponent, selector: "bs-calendar", ngImport: i0__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "ucFirst": UcFirstPipe, "monthName": MonthNamePipe } });
672
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarComponent, decorators: [{
673
+ type: i0.Component,
674
+ args: [{
675
+ selector: 'bs-calendar',
676
+ templateUrl: './calendar.component.html',
677
+ styleUrls: ['./calendar.component.scss']
678
+ }]
679
+ }], ctorParameters: function () { return [{ type: BsCalendarMonthService }]; } });
680
+
681
+ var BsMonthNamePipeModule = /** @class */ (function () {
682
+ function BsMonthNamePipeModule() {
683
+ }
684
+ return BsMonthNamePipeModule;
685
+ }());
686
+ BsMonthNamePipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
687
+ BsMonthNamePipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, declarations: [MonthNamePipe], imports: [i1.CommonModule], exports: [MonthNamePipe] });
688
+ BsMonthNamePipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, imports: [[
689
+ i1.CommonModule
690
+ ]] });
691
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, decorators: [{
692
+ type: i0.NgModule,
693
+ args: [{
694
+ declarations: [
695
+ MonthNamePipe
696
+ ],
697
+ imports: [
698
+ i1.CommonModule
699
+ ],
700
+ exports: [
701
+ MonthNamePipe
702
+ ]
703
+ }]
704
+ }] });
705
+
706
+ var BsUcFirstPipeModule = /** @class */ (function () {
707
+ function BsUcFirstPipeModule() {
708
+ }
709
+ return BsUcFirstPipeModule;
710
+ }());
711
+ BsUcFirstPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
712
+ BsUcFirstPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, declarations: [UcFirstPipe], imports: [i1.CommonModule], exports: [UcFirstPipe] });
713
+ BsUcFirstPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, imports: [[
714
+ i1.CommonModule
715
+ ]] });
716
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, decorators: [{
717
+ type: i0.NgModule,
718
+ args: [{
719
+ declarations: [
720
+ UcFirstPipe
721
+ ],
722
+ imports: [
723
+ i1.CommonModule
724
+ ],
725
+ exports: [
726
+ UcFirstPipe
727
+ ]
728
+ }]
729
+ }] });
730
+
731
+ var WeekdayNamePipe = /** @class */ (function () {
732
+ function WeekdayNamePipe() {
733
+ }
734
+ WeekdayNamePipe.prototype.transform = function (date) {
735
+ var args = [];
736
+ for (var _i = 1; _i < arguments.length; _i++) {
737
+ args[_i - 1] = arguments[_i];
738
+ }
739
+ return date.toLocaleString("default", { weekday: 'short' });
740
+ };
741
+ return WeekdayNamePipe;
742
+ }());
743
+ WeekdayNamePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
744
+ WeekdayNamePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, name: "weekdayName" });
745
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, decorators: [{
746
+ type: i0.Pipe,
747
+ args: [{
748
+ name: 'weekdayName'
749
+ }]
750
+ }] });
751
+
752
+ var BsWeekdayNameModule = /** @class */ (function () {
753
+ function BsWeekdayNameModule() {
754
+ }
755
+ return BsWeekdayNameModule;
756
+ }());
757
+ BsWeekdayNameModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
758
+ BsWeekdayNameModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, declarations: [WeekdayNamePipe], imports: [i1.CommonModule], exports: [WeekdayNamePipe] });
759
+ BsWeekdayNameModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, imports: [[
760
+ i1.CommonModule
761
+ ]] });
762
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, decorators: [{
763
+ type: i0.NgModule,
764
+ args: [{
765
+ declarations: [
766
+ WeekdayNamePipe
767
+ ],
768
+ imports: [
769
+ i1.CommonModule
770
+ ],
771
+ exports: [
772
+ WeekdayNamePipe
773
+ ]
774
+ }]
775
+ }] });
776
+
777
+ var BsCalendarModule = /** @class */ (function () {
778
+ function BsCalendarModule() {
779
+ }
780
+ return BsCalendarModule;
781
+ }());
782
+ BsCalendarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
783
+ BsCalendarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, declarations: [BsCalendarComponent], imports: [i1.CommonModule,
784
+ BsUcFirstPipeModule,
785
+ BsMonthNamePipeModule,
786
+ BsWeekdayNameModule], exports: [BsCalendarComponent] });
787
+ BsCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, imports: [[
788
+ i1.CommonModule,
789
+ BsUcFirstPipeModule,
790
+ BsMonthNamePipeModule,
791
+ BsWeekdayNameModule
792
+ ]] });
793
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, decorators: [{
794
+ type: i0.NgModule,
795
+ args: [{
796
+ declarations: [
797
+ BsCalendarComponent
798
+ ],
799
+ imports: [
800
+ i1.CommonModule,
801
+ BsUcFirstPipeModule,
802
+ BsMonthNamePipeModule,
803
+ BsWeekdayNameModule
804
+ ],
805
+ exports: [
806
+ BsCalendarComponent
807
+ ]
808
+ }]
809
+ }] });
810
+
811
+ var BsListGroupItemComponent = /** @class */ (function () {
812
+ function BsListGroupItemComponent() {
813
+ }
814
+ BsListGroupItemComponent.prototype.ngOnInit = function () {
815
+ };
816
+ return BsListGroupItemComponent;
817
+ }());
818
+ BsListGroupItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
819
+ BsListGroupItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsListGroupItemComponent, selector: "bs-list-group-item", ngImport: i0__namespace, template: "<li class=\"list-group-item\">\n <ng-content></ng-content>\n</li>", styles: [".list-group-item{margin-bottom:-1px}\n"] });
820
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupItemComponent, decorators: [{
821
+ type: i0.Component,
822
+ args: [{
823
+ selector: 'bs-list-group-item',
824
+ templateUrl: './list-group-item.component.html',
825
+ styleUrls: ['./list-group-item.component.scss']
826
+ }]
827
+ }], ctorParameters: function () { return []; } });
828
+
829
+ var BsListGroupComponent = /** @class */ (function () {
830
+ function BsListGroupComponent() {
831
+ }
832
+ BsListGroupComponent.prototype.ngOnInit = function () {
833
+ };
834
+ return BsListGroupComponent;
835
+ }());
836
+ BsListGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
837
+ BsListGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsListGroupComponent, selector: "bs-list-group", queries: [{ propertyName: "items", predicate: BsListGroupItemComponent }], ngImport: i0__namespace, template: "<ul class=\"list-group mt-0\">\n <ng-content></ng-content>\n</ul>", styles: [""] });
838
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupComponent, decorators: [{
839
+ type: i0.Component,
840
+ args: [{
841
+ selector: 'bs-list-group',
842
+ templateUrl: './list-group.component.html',
843
+ styleUrls: ['./list-group.component.scss']
844
+ }]
845
+ }], ctorParameters: function () { return []; }, propDecorators: { items: [{
846
+ type: i0.ContentChildren,
847
+ args: [BsListGroupItemComponent]
848
+ }] } });
849
+
850
+ var BsListGroupModule = /** @class */ (function () {
851
+ function BsListGroupModule() {
852
+ }
853
+ return BsListGroupModule;
854
+ }());
855
+ BsListGroupModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
856
+ BsListGroupModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, declarations: [BsListGroupComponent,
857
+ BsListGroupItemComponent], imports: [i1.CommonModule], exports: [BsListGroupComponent,
858
+ BsListGroupItemComponent] });
859
+ BsListGroupModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, imports: [[i1.CommonModule]] });
860
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, decorators: [{
861
+ type: i0.NgModule,
862
+ args: [{
863
+ imports: [i1.CommonModule],
864
+ declarations: [
865
+ BsListGroupComponent,
866
+ BsListGroupItemComponent
867
+ ],
868
+ exports: [
869
+ BsListGroupComponent,
870
+ BsListGroupItemComponent
871
+ ]
872
+ }]
873
+ }] });
874
+
875
+ var BsNavbarComponent = /** @class */ (function () {
876
+ function BsNavbarComponent() {
877
+ this.isExpanded = false;
878
+ }
879
+ BsNavbarComponent.prototype.ngOnInit = function () {
880
+ };
881
+ return BsNavbarComponent;
882
+ }());
883
+ BsNavbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
884
+ BsNavbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarComponent, selector: "bs-navbar", ngImport: i0__namespace, 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: [ngAnimations.SlideUpDownAnimation] });
885
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarComponent, decorators: [{
886
+ type: i0.Component,
887
+ args: [{
888
+ selector: 'bs-navbar',
889
+ templateUrl: './navbar.component.html',
890
+ styleUrls: ['./navbar.component.scss'],
891
+ animations: [ngAnimations.SlideUpDownAnimation]
892
+ }]
893
+ }], ctorParameters: function () { return []; } });
894
+
895
+ var BsNavbarNavComponent = /** @class */ (function () {
896
+ function BsNavbarNavComponent() {
897
+ }
898
+ BsNavbarNavComponent.prototype.ngOnInit = function () {
899
+ };
900
+ return BsNavbarNavComponent;
901
+ }());
902
+ BsNavbarNavComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarNavComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
903
+ BsNavbarNavComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarNavComponent, selector: "bs-navbar-nav", ngImport: i0__namespace, template: "<p>navbar-nav works!</p>\n", styles: [""] });
904
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarNavComponent, decorators: [{
905
+ type: i0.Component,
906
+ args: [{
907
+ selector: 'bs-navbar-nav',
908
+ templateUrl: './navbar-nav.component.html',
909
+ styleUrls: ['./navbar-nav.component.scss']
910
+ }]
911
+ }], ctorParameters: function () { return []; } });
912
+
913
+ var BsNavbarDropdownComponent = /** @class */ (function () {
914
+ function BsNavbarDropdownComponent() {
915
+ }
916
+ BsNavbarDropdownComponent.prototype.ngOnInit = function () {
917
+ };
918
+ return BsNavbarDropdownComponent;
919
+ }());
920
+ BsNavbarDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarDropdownComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
921
+ BsNavbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", ngImport: i0__namespace, template: "<p>navbar-dropdown works!</p>\n", styles: [""] });
922
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarDropdownComponent, decorators: [{
923
+ type: i0.Component,
924
+ args: [{
925
+ selector: 'bs-navbar-dropdown',
926
+ templateUrl: './navbar-dropdown.component.html',
927
+ styleUrls: ['./navbar-dropdown.component.scss']
928
+ }]
929
+ }], ctorParameters: function () { return []; } });
930
+
931
+ var BsNavbarItemComponent = /** @class */ (function () {
932
+ function BsNavbarItemComponent() {
933
+ }
934
+ BsNavbarItemComponent.prototype.ngOnInit = function () {
935
+ };
936
+ return BsNavbarItemComponent;
937
+ }());
938
+ BsNavbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
939
+ BsNavbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarItemComponent, selector: "bs-navbar-item", ngImport: i0__namespace, template: "<p>navbar-item works!</p>\n", styles: [""] });
940
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarItemComponent, decorators: [{
941
+ type: i0.Component,
942
+ args: [{
943
+ selector: 'bs-navbar-item',
944
+ templateUrl: './navbar-item.component.html',
945
+ styleUrls: ['./navbar-item.component.scss']
946
+ }]
947
+ }], ctorParameters: function () { return []; } });
948
+
949
+ var BsNavbarModule = /** @class */ (function () {
950
+ function BsNavbarModule() {
951
+ }
952
+ return BsNavbarModule;
953
+ }());
954
+ BsNavbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
955
+ BsNavbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, declarations: [BsNavbarComponent,
956
+ BsNavbarNavComponent,
957
+ BsNavbarDropdownComponent,
958
+ BsNavbarItemComponent], imports: [i1.CommonModule], exports: [BsNavbarComponent,
959
+ BsNavbarNavComponent,
960
+ BsNavbarDropdownComponent,
961
+ BsNavbarItemComponent] });
962
+ BsNavbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, imports: [[
963
+ i1.CommonModule
964
+ ]] });
965
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, decorators: [{
966
+ type: i0.NgModule,
967
+ args: [{
968
+ declarations: [
969
+ BsNavbarComponent,
970
+ BsNavbarNavComponent,
971
+ BsNavbarDropdownComponent,
972
+ BsNavbarItemComponent
973
+ ],
974
+ imports: [
975
+ i1.CommonModule
976
+ ],
977
+ exports: [
978
+ BsNavbarComponent,
979
+ BsNavbarNavComponent,
980
+ BsNavbarDropdownComponent,
981
+ BsNavbarItemComponent
982
+ ]
983
+ }]
984
+ }] });
985
+
986
+ var BsAccordionTabComponent = /** @class */ (function () {
987
+ function BsAccordionTabComponent(accordion) {
988
+ this.accordion = accordion;
989
+ }
990
+ BsAccordionTabComponent.prototype.ngOnInit = function () {
991
+ };
992
+ BsAccordionTabComponent.prototype.headerClicked = function (event) {
993
+ if (this.accordion.activeTab === this) {
994
+ this.accordion.activeTab = null;
995
+ }
996
+ else {
997
+ this.accordion.activeTab = this;
998
+ }
999
+ };
1000
+ return BsAccordionTabComponent;
1001
+ }());
1002
+ BsAccordionTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
1003
+ BsAccordionTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAccordionTabComponent, selector: "bs-accordion-tab", ngImport: i0__namespace, 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: [ngAnimations.SlideUpDownAnimation] });
1004
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabComponent, decorators: [{
1005
+ type: i0.Component,
1006
+ args: [{
1007
+ selector: 'bs-accordion-tab',
1008
+ templateUrl: './accordion-tab.component.html',
1009
+ styleUrls: ['./accordion-tab.component.scss'],
1010
+ animations: [ngAnimations.SlideUpDownAnimation]
1011
+ }]
1012
+ }], ctorParameters: function () { return [{ type: BsAccordionComponent }]; } });
1013
+
1014
+ var BsAccordionComponent = /** @class */ (function () {
1015
+ function BsAccordionComponent() {
1016
+ this.activeTab = null;
1017
+ }
1018
+ BsAccordionComponent.prototype.ngOnInit = function () {
1019
+ };
1020
+ return BsAccordionComponent;
1021
+ }());
1022
+ BsAccordionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1023
+ BsAccordionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0__namespace, template: "<ng-content></ng-content>", styles: [""] });
1024
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionComponent, decorators: [{
1025
+ type: i0.Component,
1026
+ args: [{
1027
+ selector: 'bs-accordion',
1028
+ templateUrl: './accordion.component.html',
1029
+ styleUrls: ['./accordion.component.scss']
1030
+ }]
1031
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
1032
+ type: i0.ContentChildren,
1033
+ args: [BsAccordionTabComponent]
1034
+ }] } });
1035
+
1036
+ var BsAccordionTabHeaderComponent = /** @class */ (function () {
1037
+ function BsAccordionTabHeaderComponent(accordionTab, accordion) {
1038
+ this.accordionTab = accordionTab;
1039
+ this.accordion = accordion;
1040
+ }
1041
+ BsAccordionTabHeaderComponent.prototype.ngOnInit = function () {
1042
+ };
1043
+ BsAccordionTabHeaderComponent.prototype.headerClicked = function (event) {
1044
+ if (this.accordion.activeTab === this.accordionTab) {
1045
+ this.accordion.activeTab = null;
1046
+ }
1047
+ else {
1048
+ this.accordion.activeTab = this.accordionTab;
1049
+ }
1050
+ };
1051
+ return BsAccordionTabHeaderComponent;
1052
+ }());
1053
+ BsAccordionTabHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
1054
+ BsAccordionTabHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsAccordionTabHeaderComponent, selector: "bs-accordion-tab-header", ngImport: i0__namespace, template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] });
1055
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabHeaderComponent, decorators: [{
1056
+ type: i0.Component,
1057
+ args: [{
1058
+ selector: 'bs-accordion-tab-header',
1059
+ templateUrl: './accordion-tab-header.component.html',
1060
+ styleUrls: ['./accordion-tab-header.component.scss']
1061
+ }]
1062
+ }], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
1063
+
1064
+ var BsAccordionModule = /** @class */ (function () {
1065
+ function BsAccordionModule() {
1066
+ }
1067
+ return BsAccordionModule;
1068
+ }());
1069
+ BsAccordionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1070
+ BsAccordionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, declarations: [BsAccordionComponent,
1071
+ BsAccordionTabComponent,
1072
+ BsAccordionTabHeaderComponent], imports: [i1.CommonModule,
1073
+ animations.BrowserAnimationsModule], exports: [BsAccordionComponent,
1074
+ BsAccordionTabComponent,
1075
+ BsAccordionTabHeaderComponent] });
1076
+ BsAccordionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, imports: [[
1077
+ i1.CommonModule,
1078
+ animations.BrowserAnimationsModule
1079
+ ]] });
1080
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, decorators: [{
1081
+ type: i0.NgModule,
1082
+ args: [{
1083
+ declarations: [
1084
+ BsAccordionComponent,
1085
+ BsAccordionTabComponent,
1086
+ BsAccordionTabHeaderComponent
1087
+ ],
1088
+ imports: [
1089
+ i1.CommonModule,
1090
+ animations.BrowserAnimationsModule
1091
+ ],
1092
+ exports: [
1093
+ BsAccordionComponent,
1094
+ BsAccordionTabComponent,
1095
+ BsAccordionTabHeaderComponent
1096
+ ]
1097
+ }]
1098
+ }] });
1099
+
1100
+ var BsTabPageComponent = /** @class */ (function () {
1101
+ function BsTabPageComponent(tabControl) {
1102
+ this.disabled = false;
1103
+ this.tabControl = tabControl;
1104
+ }
1105
+ BsTabPageComponent.prototype.ngOnInit = function () {
1106
+ };
1107
+ return BsTabPageComponent;
1108
+ }());
1109
+ BsTabPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabPageComponent, deps: [{ token: BsTabControlComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
1110
+ BsTabPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsTabPageComponent, selector: "bs-tab-page", inputs: { disabled: "disabled" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: i0.TemplateRef, descendants: true }], ngImport: i0__namespace, template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1111
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabPageComponent, decorators: [{
1112
+ type: i0.Component,
1113
+ args: [{
1114
+ selector: 'bs-tab-page',
1115
+ templateUrl: './tab-page.component.html',
1116
+ styleUrls: ['./tab-page.component.scss']
1117
+ }]
1118
+ }], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { headerTemplate: [{
1119
+ type: i0.ContentChild,
1120
+ args: [i0.TemplateRef]
1121
+ }], disabled: [{
1122
+ type: i0.Input
1123
+ }] } });
1124
+
1125
+ var BsTabControlComponent = /** @class */ (function () {
1126
+ function BsTabControlComponent() {
1127
+ this.activeTab = null;
1128
+ }
1129
+ BsTabControlComponent.prototype.ngOnInit = function () {
1130
+ };
1131
+ BsTabControlComponent.prototype.setActiveTab = function (tab) {
1132
+ if (!tab.disabled) {
1133
+ this.activeTab = tab;
1134
+ }
1135
+ return false;
1136
+ };
1137
+ return BsTabControlComponent;
1138
+ }());
1139
+ BsTabControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1140
+ BsTabControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsTabControlComponent, selector: "bs-tab-control", queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent }], ngImport: i0__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1141
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlComponent, decorators: [{
1142
+ type: i0.Component,
1143
+ args: [{
1144
+ selector: 'bs-tab-control',
1145
+ templateUrl: './tab-control.component.html',
1146
+ styleUrls: ['./tab-control.component.scss']
1147
+ }]
1148
+ }], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
1149
+ type: i0.ContentChildren,
1150
+ args: [BsTabPageComponent]
1151
+ }] } });
1152
+
1153
+ var BsTabControlModule = /** @class */ (function () {
1154
+ function BsTabControlModule() {
1155
+ }
1156
+ return BsTabControlModule;
1157
+ }());
1158
+ BsTabControlModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1159
+ BsTabControlModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, declarations: [BsTabControlComponent,
1160
+ BsTabPageComponent], imports: [i1.CommonModule], exports: [BsTabControlComponent,
1161
+ BsTabPageComponent] });
1162
+ BsTabControlModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, imports: [[
1163
+ i1.CommonModule
1164
+ ]] });
1165
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, decorators: [{
1166
+ type: i0.NgModule,
1167
+ args: [{
1168
+ declarations: [
1169
+ BsTabControlComponent,
1170
+ BsTabPageComponent,
1171
+ ],
1172
+ imports: [
1173
+ i1.CommonModule
1174
+ ],
1175
+ exports: [
1176
+ BsTabControlComponent,
1177
+ BsTabPageComponent,
1178
+ ]
1179
+ }]
1180
+ }] });
1181
+
1182
+ /**
1183
+ * Generated bundle index. Do not edit.
1184
+ */
1185
+
1186
+ exports.BsAccordionComponent = BsAccordionComponent;
1187
+ exports.BsAccordionModule = BsAccordionModule;
1188
+ exports.BsAccordionTabComponent = BsAccordionTabComponent;
1189
+ exports.BsAccordionTabHeaderComponent = BsAccordionTabHeaderComponent;
1190
+ exports.BsAlertCloseComponent = BsAlertCloseComponent;
1191
+ exports.BsAlertComponent = BsAlertComponent;
1192
+ exports.BsAlertModule = BsAlertModule;
1193
+ exports.BsCalendarComponent = BsCalendarComponent;
1194
+ exports.BsCalendarModule = BsCalendarModule;
1195
+ exports.BsCardComponent = BsCardComponent;
1196
+ exports.BsCardHeaderComponent = BsCardHeaderComponent;
1197
+ exports.BsCardModule = BsCardModule;
1198
+ exports.BsListGroupComponent = BsListGroupComponent;
1199
+ exports.BsListGroupItemComponent = BsListGroupItemComponent;
1200
+ exports.BsListGroupModule = BsListGroupModule;
1201
+ exports.BsNavbarComponent = BsNavbarComponent;
1202
+ exports.BsNavbarDropdownComponent = BsNavbarDropdownComponent;
1203
+ exports.BsNavbarItemComponent = BsNavbarItemComponent;
1204
+ exports.BsNavbarModule = BsNavbarModule;
1205
+ exports.BsNavbarNavComponent = BsNavbarNavComponent;
1206
+ exports.BsTabControlComponent = BsTabControlComponent;
1207
+ exports.BsTabControlModule = BsTabControlModule;
1208
+ exports.BsTabPageComponent = BsTabPageComponent;
1209
+
1210
+ Object.defineProperty(exports, '__esModule', { value: true });
1211
+
1212
+ })));
1213
+ //# sourceMappingURL=mintplayer-ng-bootstrap.umd.js.map