@mintplayer/ng-bootstrap 12.0.4 → 13.1.2
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.
- package/esm2020/index.mjs +3 -0
- package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +20 -0
- package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +27 -0
- package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +29 -0
- package/esm2020/lib/components/accordion/accordion.module.mjs +40 -0
- package/esm2020/lib/components/accordion/index.mjs +5 -0
- package/esm2020/lib/components/alert/alert/alert.component.mjs +23 -0
- package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +21 -0
- package/esm2020/lib/components/alert/alert.module.mjs +27 -0
- package/esm2020/lib/components/alert/index.mjs +4 -0
- package/esm2020/lib/components/calendar/calendar.component.mjs +61 -0
- package/esm2020/lib/components/calendar/calendar.module.mjs +38 -0
- package/esm2020/lib/components/calendar/index.mjs +3 -0
- package/esm2020/lib/components/card/card/card.component.mjs +18 -0
- package/esm2020/lib/components/card/card-header/card-header.component.mjs +15 -0
- package/esm2020/lib/components/card/card.module.mjs +27 -0
- package/esm2020/lib/components/card/index.mjs +4 -0
- package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +66 -0
- package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +14 -0
- package/esm2020/lib/components/carousel/carousel.module.mjs +31 -0
- package/esm2020/lib/components/carousel/index.mjs +4 -0
- package/esm2020/lib/components/index.mjs +9 -0
- package/esm2020/lib/components/list-group/index.mjs +4 -0
- package/esm2020/lib/components/list-group/list-group/list-group.component.mjs +19 -0
- package/esm2020/lib/components/list-group/list-group-item/list-group-item.component.mjs +15 -0
- package/esm2020/lib/components/list-group/list-group.module.mjs +27 -0
- package/esm2020/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.mjs +38 -0
- package/esm2020/lib/components/navbar/index.mjs +10 -0
- package/esm2020/lib/components/navbar/nav-link/nav-link.directive.mjs +29 -0
- package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +20 -0
- package/esm2020/lib/components/navbar/navbar-content/navbar-content.directive.mjs +33 -0
- package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +38 -0
- package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +47 -0
- package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +29 -0
- package/esm2020/lib/components/navbar/navbar.module.mjs +64 -0
- package/esm2020/lib/components/tab-control/index.mjs +4 -0
- package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +27 -0
- package/esm2020/lib/components/tab-control/tab-control.module.mjs +31 -0
- package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +25 -0
- package/esm2020/lib/enums/color.enum.mjs +15 -0
- package/esm2020/lib/enums/index.mjs +2 -0
- package/esm2020/lib/interfaces/date-day-of-month.mjs +2 -0
- package/esm2020/lib/interfaces/first-and-last-date.mjs +2 -0
- package/esm2020/lib/interfaces/week.mjs +2 -0
- package/esm2020/lib/pipes/month-name/month-name.module.mjs +26 -0
- package/esm2020/lib/pipes/month-name/month-name.pipe.mjs +16 -0
- package/esm2020/lib/pipes/uc-first/uc-first.module.mjs +26 -0
- package/esm2020/lib/pipes/uc-first/uc-first.pipe.mjs +16 -0
- package/esm2020/lib/pipes/weekday-name/weekday-name.module.mjs +26 -0
- package/esm2020/lib/pipes/weekday-name/weekday-name.pipe.mjs +16 -0
- package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +82 -0
- package/esm2020/mintplayer-ng-bootstrap.mjs +5 -0
- package/fesm2015/mintplayer-ng-bootstrap.mjs +992 -0
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -0
- package/{fesm2015/mintplayer-ng-bootstrap.js → fesm2020/mintplayer-ng-bootstrap.mjs} +170 -236
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -0
- package/lib/components/alert/alert/alert.component.d.ts +1 -0
- package/lib/components/alert/alert-close/alert-close.component.d.ts +4 -1
- package/lib/components/carousel/carousel/carousel.component.d.ts +4 -2
- package/package.json +31 -18
- package/bundles/mintplayer-ng-bootstrap.umd.js +0 -1521
- package/bundles/mintplayer-ng-bootstrap.umd.js.map +0 -1
- package/esm2015/index.js +0 -3
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/components/accordion/accordion/accordion.component.js +0 -24
- package/esm2015/lib/components/accordion/accordion/accordion.component.js.map +0 -1
- package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js +0 -32
- package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js.map +0 -1
- package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js +0 -33
- package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js.map +0 -1
- package/esm2015/lib/components/accordion/accordion.module.js +0 -40
- package/esm2015/lib/components/accordion/accordion.module.js.map +0 -1
- package/esm2015/lib/components/accordion/index.js +0 -5
- package/esm2015/lib/components/accordion/index.js.map +0 -1
- package/esm2015/lib/components/alert/alert/alert.component.js +0 -25
- package/esm2015/lib/components/alert/alert/alert.component.js.map +0 -1
- package/esm2015/lib/components/alert/alert-close/alert-close.component.js +0 -19
- package/esm2015/lib/components/alert/alert-close/alert-close.component.js.map +0 -1
- package/esm2015/lib/components/alert/alert.module.js +0 -27
- package/esm2015/lib/components/alert/alert.module.js.map +0 -1
- package/esm2015/lib/components/alert/index.js +0 -4
- package/esm2015/lib/components/alert/index.js.map +0 -1
- package/esm2015/lib/components/calendar/calendar.component.js +0 -65
- package/esm2015/lib/components/calendar/calendar.component.js.map +0 -1
- package/esm2015/lib/components/calendar/calendar.module.js +0 -38
- package/esm2015/lib/components/calendar/calendar.module.js.map +0 -1
- package/esm2015/lib/components/calendar/index.js +0 -3
- package/esm2015/lib/components/calendar/index.js.map +0 -1
- package/esm2015/lib/components/card/card/card.component.js +0 -22
- package/esm2015/lib/components/card/card/card.component.js.map +0 -1
- package/esm2015/lib/components/card/card-header/card-header.component.js +0 -19
- package/esm2015/lib/components/card/card-header/card-header.component.js.map +0 -1
- package/esm2015/lib/components/card/card.module.js +0 -27
- package/esm2015/lib/components/card/card.module.js.map +0 -1
- package/esm2015/lib/components/card/index.js +0 -4
- package/esm2015/lib/components/card/index.js.map +0 -1
- package/esm2015/lib/components/carousel/carousel/carousel.component.js +0 -70
- package/esm2015/lib/components/carousel/carousel/carousel.component.js.map +0 -1
- package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js +0 -14
- package/esm2015/lib/components/carousel/carousel-image/carousel-image.directive.js.map +0 -1
- package/esm2015/lib/components/carousel/carousel.module.js +0 -31
- package/esm2015/lib/components/carousel/carousel.module.js.map +0 -1
- package/esm2015/lib/components/carousel/index.js +0 -4
- package/esm2015/lib/components/carousel/index.js.map +0 -1
- package/esm2015/lib/components/index.js +0 -9
- package/esm2015/lib/components/index.js.map +0 -1
- package/esm2015/lib/components/list-group/index.js +0 -4
- package/esm2015/lib/components/list-group/index.js.map +0 -1
- package/esm2015/lib/components/list-group/list-group/list-group.component.js +0 -23
- package/esm2015/lib/components/list-group/list-group/list-group.component.js.map +0 -1
- package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js +0 -19
- package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js.map +0 -1
- package/esm2015/lib/components/list-group/list-group.module.js +0 -27
- package/esm2015/lib/components/list-group/list-group.module.js.map +0 -1
- package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js +0 -38
- package/esm2015/lib/components/navbar/dropdown-toggle/dropdown-toggle.directive.js.map +0 -1
- package/esm2015/lib/components/navbar/index.js +0 -10
- package/esm2015/lib/components/navbar/index.js.map +0 -1
- package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js +0 -29
- package/esm2015/lib/components/navbar/nav-link/nav-link.directive.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar/navbar.component.js +0 -24
- package/esm2015/lib/components/navbar/navbar/navbar.component.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js +0 -33
- package/esm2015/lib/components/navbar/navbar-content/navbar-content.directive.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js +0 -42
- package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js +0 -51
- package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js +0 -34
- package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js.map +0 -1
- package/esm2015/lib/components/navbar/navbar.module.js +0 -64
- package/esm2015/lib/components/navbar/navbar.module.js.map +0 -1
- package/esm2015/lib/components/tab-control/index.js +0 -4
- package/esm2015/lib/components/tab-control/index.js.map +0 -1
- package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js +0 -31
- package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js.map +0 -1
- package/esm2015/lib/components/tab-control/tab-control.module.js +0 -31
- package/esm2015/lib/components/tab-control/tab-control.module.js.map +0 -1
- package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js +0 -29
- package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js.map +0 -1
- package/esm2015/lib/enums/color.enum.js +0 -15
- package/esm2015/lib/enums/color.enum.js.map +0 -1
- package/esm2015/lib/enums/index.js +0 -2
- package/esm2015/lib/enums/index.js.map +0 -1
- package/esm2015/lib/interfaces/date-day-of-month.js +0 -2
- package/esm2015/lib/interfaces/date-day-of-month.js.map +0 -1
- package/esm2015/lib/interfaces/first-and-last-date.js +0 -2
- package/esm2015/lib/interfaces/first-and-last-date.js.map +0 -1
- package/esm2015/lib/interfaces/week.js +0 -2
- package/esm2015/lib/interfaces/week.js.map +0 -1
- package/esm2015/lib/pipes/month-name/month-name.module.js +0 -26
- package/esm2015/lib/pipes/month-name/month-name.module.js.map +0 -1
- package/esm2015/lib/pipes/month-name/month-name.pipe.js +0 -16
- package/esm2015/lib/pipes/month-name/month-name.pipe.js.map +0 -1
- package/esm2015/lib/pipes/uc-first/uc-first.module.js +0 -26
- package/esm2015/lib/pipes/uc-first/uc-first.module.js.map +0 -1
- package/esm2015/lib/pipes/uc-first/uc-first.pipe.js +0 -16
- package/esm2015/lib/pipes/uc-first/uc-first.pipe.js.map +0 -1
- package/esm2015/lib/pipes/weekday-name/weekday-name.module.js +0 -26
- package/esm2015/lib/pipes/weekday-name/weekday-name.module.js.map +0 -1
- package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js +0 -16
- package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js.map +0 -1
- package/esm2015/lib/services/calendar-month/calendar-month.service.js +0 -83
- package/esm2015/lib/services/calendar-month/calendar-month.service.js.map +0 -1
- package/esm2015/mintplayer-ng-bootstrap.js +0 -5
- package/esm2015/mintplayer-ng-bootstrap.js.map +0 -1
- package/fesm2015/mintplayer-ng-bootstrap.js.map +0 -1
|
@@ -1,1521 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@mintplayer/ng-animations'), require('rxjs'), require('rxjs/operators'), require('@angular/router'), require('@mintplayer/ng-click-outside'), require('@angular/platform-browser/animations')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@mintplayer/ng-bootstrap', ['exports', '@angular/core', '@angular/common', '@mintplayer/ng-animations', 'rxjs', 'rxjs/operators', '@angular/router', '@mintplayer/ng-click-outside', '@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.rxjs, global.rxjs.operators, global.ng.router, global.i1$1, global.ng.platformBrowser.animations));
|
|
5
|
-
}(this, (function (exports, i0, i1, ngAnimations, rxjs, operators, router, i1$1, 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
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
30
|
-
|
|
31
|
-
exports.Color = void 0;
|
|
32
|
-
(function (Color) {
|
|
33
|
-
Color[Color["primary"] = 0] = "primary";
|
|
34
|
-
Color[Color["secondary"] = 1] = "secondary";
|
|
35
|
-
Color[Color["success"] = 2] = "success";
|
|
36
|
-
Color[Color["danger"] = 3] = "danger";
|
|
37
|
-
Color[Color["warning"] = 4] = "warning";
|
|
38
|
-
Color[Color["info"] = 5] = "info";
|
|
39
|
-
Color[Color["light"] = 6] = "light";
|
|
40
|
-
Color[Color["dark"] = 7] = "dark";
|
|
41
|
-
Color[Color["body"] = 8] = "body";
|
|
42
|
-
Color[Color["white"] = 9] = "white";
|
|
43
|
-
Color[Color["transparent"] = 10] = "transparent";
|
|
44
|
-
})(exports.Color || (exports.Color = {}));
|
|
45
|
-
|
|
46
|
-
var BsAlertComponent = /** @class */ (function () {
|
|
47
|
-
function BsAlertComponent() {
|
|
48
|
-
this.type = exports.Color.primary;
|
|
49
|
-
this.colors = exports.Color;
|
|
50
|
-
}
|
|
51
|
-
BsAlertComponent.prototype.ngOnInit = function () {
|
|
52
|
-
};
|
|
53
|
-
return BsAlertComponent;
|
|
54
|
-
}());
|
|
55
|
-
BsAlertComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
56
|
-
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"] }] });
|
|
57
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertComponent, decorators: [{
|
|
58
|
-
type: i0.Component,
|
|
59
|
-
args: [{
|
|
60
|
-
selector: 'bs-alert',
|
|
61
|
-
templateUrl: './alert.component.html',
|
|
62
|
-
styleUrls: ['./alert.component.scss']
|
|
63
|
-
}]
|
|
64
|
-
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
65
|
-
type: i0.Input
|
|
66
|
-
}] } });
|
|
67
|
-
|
|
68
|
-
var BsAlertCloseComponent = /** @class */ (function () {
|
|
69
|
-
function BsAlertCloseComponent() {
|
|
70
|
-
}
|
|
71
|
-
BsAlertCloseComponent.prototype.ngOnInit = function () {
|
|
72
|
-
};
|
|
73
|
-
return BsAlertCloseComponent;
|
|
74
|
-
}());
|
|
75
|
-
BsAlertCloseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertCloseComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
76
|
-
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"] });
|
|
77
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertCloseComponent, decorators: [{
|
|
78
|
-
type: i0.Component,
|
|
79
|
-
args: [{
|
|
80
|
-
selector: 'bs-alert-close',
|
|
81
|
-
templateUrl: './alert-close.component.html',
|
|
82
|
-
styleUrls: ['./alert-close.component.scss']
|
|
83
|
-
}]
|
|
84
|
-
}], ctorParameters: function () { return []; } });
|
|
85
|
-
|
|
86
|
-
var BsAlertModule = /** @class */ (function () {
|
|
87
|
-
function BsAlertModule() {
|
|
88
|
-
}
|
|
89
|
-
return BsAlertModule;
|
|
90
|
-
}());
|
|
91
|
-
BsAlertModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
92
|
-
BsAlertModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, declarations: [BsAlertComponent,
|
|
93
|
-
BsAlertCloseComponent], imports: [i1.CommonModule], exports: [BsAlertComponent,
|
|
94
|
-
BsAlertCloseComponent] });
|
|
95
|
-
BsAlertModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, imports: [[i1.CommonModule]] });
|
|
96
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAlertModule, decorators: [{
|
|
97
|
-
type: i0.NgModule,
|
|
98
|
-
args: [{
|
|
99
|
-
imports: [i1.CommonModule],
|
|
100
|
-
declarations: [
|
|
101
|
-
BsAlertComponent,
|
|
102
|
-
BsAlertCloseComponent
|
|
103
|
-
],
|
|
104
|
-
exports: [
|
|
105
|
-
BsAlertComponent,
|
|
106
|
-
BsAlertCloseComponent
|
|
107
|
-
]
|
|
108
|
-
}]
|
|
109
|
-
}] });
|
|
110
|
-
|
|
111
|
-
var BsCardComponent = /** @class */ (function () {
|
|
112
|
-
function BsCardComponent() {
|
|
113
|
-
}
|
|
114
|
-
BsCardComponent.prototype.ngOnInit = function () {
|
|
115
|
-
};
|
|
116
|
-
BsCardComponent.prototype.ngAfterViewInit = function () {
|
|
117
|
-
// console.log('header', this.header);
|
|
118
|
-
};
|
|
119
|
-
return BsCardComponent;
|
|
120
|
-
}());
|
|
121
|
-
BsCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
122
|
-
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"] });
|
|
123
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardComponent, decorators: [{
|
|
124
|
-
type: i0.Component,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: 'bs-card',
|
|
127
|
-
templateUrl: './card.component.html',
|
|
128
|
-
styleUrls: ['./card.component.scss']
|
|
129
|
-
}]
|
|
130
|
-
}], ctorParameters: function () { return []; } });
|
|
131
|
-
|
|
132
|
-
var BsCardHeaderComponent = /** @class */ (function () {
|
|
133
|
-
function BsCardHeaderComponent() {
|
|
134
|
-
}
|
|
135
|
-
BsCardHeaderComponent.prototype.ngOnInit = function () {
|
|
136
|
-
};
|
|
137
|
-
return BsCardHeaderComponent;
|
|
138
|
-
}());
|
|
139
|
-
BsCardHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
140
|
-
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: [""] });
|
|
141
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardHeaderComponent, decorators: [{
|
|
142
|
-
type: i0.Component,
|
|
143
|
-
args: [{
|
|
144
|
-
selector: 'bs-card-header',
|
|
145
|
-
templateUrl: './card-header.component.html',
|
|
146
|
-
styleUrls: ['./card-header.component.scss']
|
|
147
|
-
}]
|
|
148
|
-
}], ctorParameters: function () { return []; } });
|
|
149
|
-
|
|
150
|
-
var BsCardModule = /** @class */ (function () {
|
|
151
|
-
function BsCardModule() {
|
|
152
|
-
}
|
|
153
|
-
return BsCardModule;
|
|
154
|
-
}());
|
|
155
|
-
BsCardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
156
|
-
BsCardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, declarations: [BsCardComponent,
|
|
157
|
-
BsCardHeaderComponent], imports: [i1.CommonModule], exports: [BsCardComponent,
|
|
158
|
-
BsCardHeaderComponent] });
|
|
159
|
-
BsCardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, imports: [[i1.CommonModule]] });
|
|
160
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCardModule, decorators: [{
|
|
161
|
-
type: i0.NgModule,
|
|
162
|
-
args: [{
|
|
163
|
-
imports: [i1.CommonModule],
|
|
164
|
-
declarations: [
|
|
165
|
-
BsCardComponent,
|
|
166
|
-
BsCardHeaderComponent
|
|
167
|
-
],
|
|
168
|
-
exports: [
|
|
169
|
-
BsCardComponent,
|
|
170
|
-
BsCardHeaderComponent
|
|
171
|
-
]
|
|
172
|
-
}]
|
|
173
|
-
}] });
|
|
174
|
-
|
|
175
|
-
/*! *****************************************************************************
|
|
176
|
-
Copyright (c) Microsoft Corporation.
|
|
177
|
-
|
|
178
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
179
|
-
purpose with or without fee is hereby granted.
|
|
180
|
-
|
|
181
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
182
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
183
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
184
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
185
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
186
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
187
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
188
|
-
***************************************************************************** */
|
|
189
|
-
/* global Reflect, Promise */
|
|
190
|
-
var extendStatics = function (d, b) {
|
|
191
|
-
extendStatics = Object.setPrototypeOf ||
|
|
192
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
193
|
-
function (d, b) { for (var p in b)
|
|
194
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
195
|
-
d[p] = b[p]; };
|
|
196
|
-
return extendStatics(d, b);
|
|
197
|
-
};
|
|
198
|
-
function __extends(d, b) {
|
|
199
|
-
if (typeof b !== "function" && b !== null)
|
|
200
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
201
|
-
extendStatics(d, b);
|
|
202
|
-
function __() { this.constructor = d; }
|
|
203
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
204
|
-
}
|
|
205
|
-
var __assign = function () {
|
|
206
|
-
__assign = Object.assign || function __assign(t) {
|
|
207
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
208
|
-
s = arguments[i];
|
|
209
|
-
for (var p in s)
|
|
210
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
211
|
-
t[p] = s[p];
|
|
212
|
-
}
|
|
213
|
-
return t;
|
|
214
|
-
};
|
|
215
|
-
return __assign.apply(this, arguments);
|
|
216
|
-
};
|
|
217
|
-
function __rest(s, e) {
|
|
218
|
-
var t = {};
|
|
219
|
-
for (var p in s)
|
|
220
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
221
|
-
t[p] = s[p];
|
|
222
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
223
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
224
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
225
|
-
t[p[i]] = s[p[i]];
|
|
226
|
-
}
|
|
227
|
-
return t;
|
|
228
|
-
}
|
|
229
|
-
function __decorate(decorators, target, key, desc) {
|
|
230
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
231
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
232
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
233
|
-
else
|
|
234
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
235
|
-
if (d = decorators[i])
|
|
236
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
237
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
238
|
-
}
|
|
239
|
-
function __param(paramIndex, decorator) {
|
|
240
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
241
|
-
}
|
|
242
|
-
function __metadata(metadataKey, metadataValue) {
|
|
243
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
244
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
245
|
-
}
|
|
246
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
247
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
248
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
249
|
-
function fulfilled(value) { try {
|
|
250
|
-
step(generator.next(value));
|
|
251
|
-
}
|
|
252
|
-
catch (e) {
|
|
253
|
-
reject(e);
|
|
254
|
-
} }
|
|
255
|
-
function rejected(value) { try {
|
|
256
|
-
step(generator["throw"](value));
|
|
257
|
-
}
|
|
258
|
-
catch (e) {
|
|
259
|
-
reject(e);
|
|
260
|
-
} }
|
|
261
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
262
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function __generator(thisArg, body) {
|
|
266
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
267
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
268
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
269
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
270
|
-
function step(op) {
|
|
271
|
-
if (f)
|
|
272
|
-
throw new TypeError("Generator is already executing.");
|
|
273
|
-
while (_)
|
|
274
|
-
try {
|
|
275
|
-
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)
|
|
276
|
-
return t;
|
|
277
|
-
if (y = 0, t)
|
|
278
|
-
op = [op[0] & 2, t.value];
|
|
279
|
-
switch (op[0]) {
|
|
280
|
-
case 0:
|
|
281
|
-
case 1:
|
|
282
|
-
t = op;
|
|
283
|
-
break;
|
|
284
|
-
case 4:
|
|
285
|
-
_.label++;
|
|
286
|
-
return { value: op[1], done: false };
|
|
287
|
-
case 5:
|
|
288
|
-
_.label++;
|
|
289
|
-
y = op[1];
|
|
290
|
-
op = [0];
|
|
291
|
-
continue;
|
|
292
|
-
case 7:
|
|
293
|
-
op = _.ops.pop();
|
|
294
|
-
_.trys.pop();
|
|
295
|
-
continue;
|
|
296
|
-
default:
|
|
297
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
298
|
-
_ = 0;
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
302
|
-
_.label = op[1];
|
|
303
|
-
break;
|
|
304
|
-
}
|
|
305
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
306
|
-
_.label = t[1];
|
|
307
|
-
t = op;
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
if (t && _.label < t[2]) {
|
|
311
|
-
_.label = t[2];
|
|
312
|
-
_.ops.push(op);
|
|
313
|
-
break;
|
|
314
|
-
}
|
|
315
|
-
if (t[2])
|
|
316
|
-
_.ops.pop();
|
|
317
|
-
_.trys.pop();
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
op = body.call(thisArg, _);
|
|
321
|
-
}
|
|
322
|
-
catch (e) {
|
|
323
|
-
op = [6, e];
|
|
324
|
-
y = 0;
|
|
325
|
-
}
|
|
326
|
-
finally {
|
|
327
|
-
f = t = 0;
|
|
328
|
-
}
|
|
329
|
-
if (op[0] & 5)
|
|
330
|
-
throw op[1];
|
|
331
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
335
|
-
if (k2 === undefined)
|
|
336
|
-
k2 = k;
|
|
337
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
338
|
-
}) : (function (o, m, k, k2) {
|
|
339
|
-
if (k2 === undefined)
|
|
340
|
-
k2 = k;
|
|
341
|
-
o[k2] = m[k];
|
|
342
|
-
});
|
|
343
|
-
function __exportStar(m, o) {
|
|
344
|
-
for (var p in m)
|
|
345
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
346
|
-
__createBinding(o, m, p);
|
|
347
|
-
}
|
|
348
|
-
function __values(o) {
|
|
349
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
350
|
-
if (m)
|
|
351
|
-
return m.call(o);
|
|
352
|
-
if (o && typeof o.length === "number")
|
|
353
|
-
return {
|
|
354
|
-
next: function () {
|
|
355
|
-
if (o && i >= o.length)
|
|
356
|
-
o = void 0;
|
|
357
|
-
return { value: o && o[i++], done: !o };
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
361
|
-
}
|
|
362
|
-
function __read(o, n) {
|
|
363
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
364
|
-
if (!m)
|
|
365
|
-
return o;
|
|
366
|
-
var i = m.call(o), r, ar = [], e;
|
|
367
|
-
try {
|
|
368
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
369
|
-
ar.push(r.value);
|
|
370
|
-
}
|
|
371
|
-
catch (error) {
|
|
372
|
-
e = { error: error };
|
|
373
|
-
}
|
|
374
|
-
finally {
|
|
375
|
-
try {
|
|
376
|
-
if (r && !r.done && (m = i["return"]))
|
|
377
|
-
m.call(i);
|
|
378
|
-
}
|
|
379
|
-
finally {
|
|
380
|
-
if (e)
|
|
381
|
-
throw e.error;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
return ar;
|
|
385
|
-
}
|
|
386
|
-
/** @deprecated */
|
|
387
|
-
function __spread() {
|
|
388
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
389
|
-
ar = ar.concat(__read(arguments[i]));
|
|
390
|
-
return ar;
|
|
391
|
-
}
|
|
392
|
-
/** @deprecated */
|
|
393
|
-
function __spreadArrays() {
|
|
394
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
395
|
-
s += arguments[i].length;
|
|
396
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
397
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
398
|
-
r[k] = a[j];
|
|
399
|
-
return r;
|
|
400
|
-
}
|
|
401
|
-
function __spreadArray(to, from, pack) {
|
|
402
|
-
if (pack || arguments.length === 2)
|
|
403
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
404
|
-
if (ar || !(i in from)) {
|
|
405
|
-
if (!ar)
|
|
406
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
407
|
-
ar[i] = from[i];
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
return to.concat(ar || from);
|
|
411
|
-
}
|
|
412
|
-
function __await(v) {
|
|
413
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
414
|
-
}
|
|
415
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
416
|
-
if (!Symbol.asyncIterator)
|
|
417
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
418
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
419
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
420
|
-
function verb(n) { if (g[n])
|
|
421
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
422
|
-
function resume(n, v) { try {
|
|
423
|
-
step(g[n](v));
|
|
424
|
-
}
|
|
425
|
-
catch (e) {
|
|
426
|
-
settle(q[0][3], e);
|
|
427
|
-
} }
|
|
428
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
429
|
-
function fulfill(value) { resume("next", value); }
|
|
430
|
-
function reject(value) { resume("throw", value); }
|
|
431
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
432
|
-
resume(q[0][0], q[0][1]); }
|
|
433
|
-
}
|
|
434
|
-
function __asyncDelegator(o) {
|
|
435
|
-
var i, p;
|
|
436
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
437
|
-
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; }
|
|
438
|
-
}
|
|
439
|
-
function __asyncValues(o) {
|
|
440
|
-
if (!Symbol.asyncIterator)
|
|
441
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
442
|
-
var m = o[Symbol.asyncIterator], i;
|
|
443
|
-
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);
|
|
444
|
-
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); }); }; }
|
|
445
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
446
|
-
}
|
|
447
|
-
function __makeTemplateObject(cooked, raw) {
|
|
448
|
-
if (Object.defineProperty) {
|
|
449
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
cooked.raw = raw;
|
|
453
|
-
}
|
|
454
|
-
return cooked;
|
|
455
|
-
}
|
|
456
|
-
;
|
|
457
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
458
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
459
|
-
}) : function (o, v) {
|
|
460
|
-
o["default"] = v;
|
|
461
|
-
};
|
|
462
|
-
function __importStar(mod) {
|
|
463
|
-
if (mod && mod.__esModule)
|
|
464
|
-
return mod;
|
|
465
|
-
var result = {};
|
|
466
|
-
if (mod != null)
|
|
467
|
-
for (var k in mod)
|
|
468
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
469
|
-
__createBinding(result, mod, k);
|
|
470
|
-
__setModuleDefault(result, mod);
|
|
471
|
-
return result;
|
|
472
|
-
}
|
|
473
|
-
function __importDefault(mod) {
|
|
474
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
475
|
-
}
|
|
476
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
477
|
-
if (kind === "a" && !f)
|
|
478
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
479
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
480
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
481
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
482
|
-
}
|
|
483
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
484
|
-
if (kind === "m")
|
|
485
|
-
throw new TypeError("Private method is not writable");
|
|
486
|
-
if (kind === "a" && !f)
|
|
487
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
488
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
489
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
490
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
var BsCalendarMonthService = /** @class */ (function () {
|
|
494
|
-
function BsCalendarMonthService() {
|
|
495
|
-
}
|
|
496
|
-
BsCalendarMonthService.prototype.getWeeks = function (month) {
|
|
497
|
-
var _this = this;
|
|
498
|
-
var firstAndLast = this.getFirstAndLastDayOfMonth(month);
|
|
499
|
-
var days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;
|
|
500
|
-
var allDays = __spreadArray(__spreadArray(__spreadArray([], __read(this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(function (d) { return null; }))), __read(this.generateList(days).map(function (d) {
|
|
501
|
-
return {
|
|
502
|
-
date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),
|
|
503
|
-
dayOfMonth: d + 1,
|
|
504
|
-
};
|
|
505
|
-
}))), __read(this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(function (d) { return null; })));
|
|
506
|
-
var weeks = this.chunk(allDays, 7);
|
|
507
|
-
var weeksMapped = weeks.map(function (w, i) {
|
|
508
|
-
var _a;
|
|
509
|
-
return {
|
|
510
|
-
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)),
|
|
511
|
-
week: w
|
|
512
|
-
};
|
|
513
|
-
});
|
|
514
|
-
return weeksMapped;
|
|
515
|
-
};
|
|
516
|
-
BsCalendarMonthService.prototype.generateList = function (count) {
|
|
517
|
-
return __spreadArray([], __read(Array(count).keys()));
|
|
518
|
-
};
|
|
519
|
-
BsCalendarMonthService.prototype.dayOfWeekMondayBased = function (date) {
|
|
520
|
-
var d = date.getDay() - 1;
|
|
521
|
-
if (d < 0) {
|
|
522
|
-
return 6;
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
return d;
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
BsCalendarMonthService.prototype.weekOfYear = function (date) {
|
|
529
|
-
var dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
530
|
-
dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
|
|
531
|
-
var yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
|
|
532
|
-
var utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
|
|
533
|
-
return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
|
|
534
|
-
};
|
|
535
|
-
BsCalendarMonthService.prototype.getFirstAndLastDayOfMonth = function (date) {
|
|
536
|
-
return {
|
|
537
|
-
first: new Date(date.getFullYear(), date.getMonth(), 1),
|
|
538
|
-
last: new Date(date.getFullYear(), date.getMonth() + 1, 0)
|
|
539
|
-
};
|
|
540
|
-
};
|
|
541
|
-
BsCalendarMonthService.prototype.dateDiff = function (date1, date2) {
|
|
542
|
-
var utc1 = this.toUTC(date1);
|
|
543
|
-
var utc2 = this.toUTC(date2);
|
|
544
|
-
var msPerDay = 1000 * 60 * 60 * 24;
|
|
545
|
-
return Math.floor((utc2 - utc1) / msPerDay);
|
|
546
|
-
};
|
|
547
|
-
BsCalendarMonthService.prototype.dayOfYear = function (date) {
|
|
548
|
-
var start = new Date(date.getFullYear(), 0, 0);
|
|
549
|
-
return this.dateDiff(start, date);
|
|
550
|
-
};
|
|
551
|
-
BsCalendarMonthService.prototype.toUTC = function (date) {
|
|
552
|
-
return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
|
|
553
|
-
};
|
|
554
|
-
BsCalendarMonthService.prototype.chunk = function (items, size) {
|
|
555
|
-
var result = [];
|
|
556
|
-
for (var i = 0; i < items.length; i += size) {
|
|
557
|
-
result.push(items.slice(i, i + size));
|
|
558
|
-
}
|
|
559
|
-
return result;
|
|
560
|
-
};
|
|
561
|
-
return BsCalendarMonthService;
|
|
562
|
-
}());
|
|
563
|
-
BsCalendarMonthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
564
|
-
BsCalendarMonthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, providedIn: 'root' });
|
|
565
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarMonthService, decorators: [{
|
|
566
|
-
type: i0.Injectable,
|
|
567
|
-
args: [{
|
|
568
|
-
providedIn: 'root'
|
|
569
|
-
}]
|
|
570
|
-
}], ctorParameters: function () { return []; } });
|
|
571
|
-
|
|
572
|
-
var UcFirstPipe = /** @class */ (function () {
|
|
573
|
-
function UcFirstPipe() {
|
|
574
|
-
}
|
|
575
|
-
UcFirstPipe.prototype.transform = function (value) {
|
|
576
|
-
var args = [];
|
|
577
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
578
|
-
args[_i - 1] = arguments[_i];
|
|
579
|
-
}
|
|
580
|
-
return value[0].toUpperCase() + value.slice(1);
|
|
581
|
-
};
|
|
582
|
-
return UcFirstPipe;
|
|
583
|
-
}());
|
|
584
|
-
UcFirstPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
585
|
-
UcFirstPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, name: "ucFirst" });
|
|
586
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: UcFirstPipe, decorators: [{
|
|
587
|
-
type: i0.Pipe,
|
|
588
|
-
args: [{
|
|
589
|
-
name: 'ucFirst'
|
|
590
|
-
}]
|
|
591
|
-
}] });
|
|
592
|
-
|
|
593
|
-
var MonthNamePipe = /** @class */ (function () {
|
|
594
|
-
function MonthNamePipe() {
|
|
595
|
-
}
|
|
596
|
-
MonthNamePipe.prototype.transform = function (date) {
|
|
597
|
-
var args = [];
|
|
598
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
599
|
-
args[_i - 1] = arguments[_i];
|
|
600
|
-
}
|
|
601
|
-
return date.toLocaleString("default", { month: 'long' });
|
|
602
|
-
};
|
|
603
|
-
return MonthNamePipe;
|
|
604
|
-
}());
|
|
605
|
-
MonthNamePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
606
|
-
MonthNamePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, name: "monthName" });
|
|
607
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: MonthNamePipe, decorators: [{
|
|
608
|
-
type: i0.Pipe,
|
|
609
|
-
args: [{
|
|
610
|
-
name: 'monthName'
|
|
611
|
-
}]
|
|
612
|
-
}] });
|
|
613
|
-
|
|
614
|
-
var BsCalendarComponent = /** @class */ (function () {
|
|
615
|
-
function BsCalendarComponent(calendarMonthService) {
|
|
616
|
-
this.calendarMonthService = calendarMonthService;
|
|
617
|
-
this.daysOfWeek = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
|
|
618
|
-
//#region SelectedDate
|
|
619
|
-
this.selectedDate = new Date();
|
|
620
|
-
//#endregion
|
|
621
|
-
//#region Weeks
|
|
622
|
-
this._weeks = [];
|
|
623
|
-
}
|
|
624
|
-
BsCalendarComponent.prototype.ngOnInit = function () {
|
|
625
|
-
this.month = new Date();
|
|
626
|
-
};
|
|
627
|
-
Object.defineProperty(BsCalendarComponent.prototype, "month", {
|
|
628
|
-
get: function () {
|
|
629
|
-
return this._month;
|
|
630
|
-
},
|
|
631
|
-
set: function (value) {
|
|
632
|
-
this._month = value;
|
|
633
|
-
this.weeks = this.calendarMonthService.getWeeks(this.month);
|
|
634
|
-
},
|
|
635
|
-
enumerable: false,
|
|
636
|
-
configurable: true
|
|
637
|
-
});
|
|
638
|
-
Object.defineProperty(BsCalendarComponent.prototype, "weeks", {
|
|
639
|
-
get: function () {
|
|
640
|
-
return this._weeks;
|
|
641
|
-
},
|
|
642
|
-
set: function (value) {
|
|
643
|
-
var _this = this;
|
|
644
|
-
this._weeks = value;
|
|
645
|
-
if (this._weeks.length > 1) {
|
|
646
|
-
this.daysOfWeek = this._weeks[1].week.map(function (d) {
|
|
647
|
-
var date = new Date(_this.month.getFullYear(), _this.month.getMonth(), d === null || d === void 0 ? void 0 : d.dayOfMonth);
|
|
648
|
-
return date.toLocaleString("default", { weekday: 'short' });
|
|
649
|
-
});
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
enumerable: false,
|
|
653
|
-
configurable: true
|
|
654
|
-
});
|
|
655
|
-
//#endregion
|
|
656
|
-
BsCalendarComponent.prototype.previousMonth = function () {
|
|
657
|
-
this.month = new Date(this.month.getFullYear(), this.month.getMonth() - 1, 1);
|
|
658
|
-
return false;
|
|
659
|
-
};
|
|
660
|
-
BsCalendarComponent.prototype.nextMonth = function () {
|
|
661
|
-
this.month = new Date(this.month.getFullYear(), this.month.getMonth() + 1, 1);
|
|
662
|
-
return false;
|
|
663
|
-
};
|
|
664
|
-
BsCalendarComponent.prototype.isSameDate = function (date1, date2) {
|
|
665
|
-
return (date1.getFullYear() === date2.getFullYear())
|
|
666
|
-
&& (date1.getMonth() === date2.getMonth())
|
|
667
|
-
&& (date1.getDate() === date2.getDate());
|
|
668
|
-
};
|
|
669
|
-
return BsCalendarComponent;
|
|
670
|
-
}());
|
|
671
|
-
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 });
|
|
672
|
-
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 } });
|
|
673
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarComponent, decorators: [{
|
|
674
|
-
type: i0.Component,
|
|
675
|
-
args: [{
|
|
676
|
-
selector: 'bs-calendar',
|
|
677
|
-
templateUrl: './calendar.component.html',
|
|
678
|
-
styleUrls: ['./calendar.component.scss']
|
|
679
|
-
}]
|
|
680
|
-
}], ctorParameters: function () { return [{ type: BsCalendarMonthService }]; } });
|
|
681
|
-
|
|
682
|
-
var BsMonthNamePipeModule = /** @class */ (function () {
|
|
683
|
-
function BsMonthNamePipeModule() {
|
|
684
|
-
}
|
|
685
|
-
return BsMonthNamePipeModule;
|
|
686
|
-
}());
|
|
687
|
-
BsMonthNamePipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
688
|
-
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] });
|
|
689
|
-
BsMonthNamePipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, imports: [[
|
|
690
|
-
i1.CommonModule
|
|
691
|
-
]] });
|
|
692
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsMonthNamePipeModule, decorators: [{
|
|
693
|
-
type: i0.NgModule,
|
|
694
|
-
args: [{
|
|
695
|
-
declarations: [
|
|
696
|
-
MonthNamePipe
|
|
697
|
-
],
|
|
698
|
-
imports: [
|
|
699
|
-
i1.CommonModule
|
|
700
|
-
],
|
|
701
|
-
exports: [
|
|
702
|
-
MonthNamePipe
|
|
703
|
-
]
|
|
704
|
-
}]
|
|
705
|
-
}] });
|
|
706
|
-
|
|
707
|
-
var BsUcFirstPipeModule = /** @class */ (function () {
|
|
708
|
-
function BsUcFirstPipeModule() {
|
|
709
|
-
}
|
|
710
|
-
return BsUcFirstPipeModule;
|
|
711
|
-
}());
|
|
712
|
-
BsUcFirstPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
713
|
-
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] });
|
|
714
|
-
BsUcFirstPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, imports: [[
|
|
715
|
-
i1.CommonModule
|
|
716
|
-
]] });
|
|
717
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsUcFirstPipeModule, decorators: [{
|
|
718
|
-
type: i0.NgModule,
|
|
719
|
-
args: [{
|
|
720
|
-
declarations: [
|
|
721
|
-
UcFirstPipe
|
|
722
|
-
],
|
|
723
|
-
imports: [
|
|
724
|
-
i1.CommonModule
|
|
725
|
-
],
|
|
726
|
-
exports: [
|
|
727
|
-
UcFirstPipe
|
|
728
|
-
]
|
|
729
|
-
}]
|
|
730
|
-
}] });
|
|
731
|
-
|
|
732
|
-
var WeekdayNamePipe = /** @class */ (function () {
|
|
733
|
-
function WeekdayNamePipe() {
|
|
734
|
-
}
|
|
735
|
-
WeekdayNamePipe.prototype.transform = function (date) {
|
|
736
|
-
var args = [];
|
|
737
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
738
|
-
args[_i - 1] = arguments[_i];
|
|
739
|
-
}
|
|
740
|
-
return date.toLocaleString("default", { weekday: 'short' });
|
|
741
|
-
};
|
|
742
|
-
return WeekdayNamePipe;
|
|
743
|
-
}());
|
|
744
|
-
WeekdayNamePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
745
|
-
WeekdayNamePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, name: "weekdayName" });
|
|
746
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: WeekdayNamePipe, decorators: [{
|
|
747
|
-
type: i0.Pipe,
|
|
748
|
-
args: [{
|
|
749
|
-
name: 'weekdayName'
|
|
750
|
-
}]
|
|
751
|
-
}] });
|
|
752
|
-
|
|
753
|
-
var BsWeekdayNameModule = /** @class */ (function () {
|
|
754
|
-
function BsWeekdayNameModule() {
|
|
755
|
-
}
|
|
756
|
-
return BsWeekdayNameModule;
|
|
757
|
-
}());
|
|
758
|
-
BsWeekdayNameModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
759
|
-
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] });
|
|
760
|
-
BsWeekdayNameModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, imports: [[
|
|
761
|
-
i1.CommonModule
|
|
762
|
-
]] });
|
|
763
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsWeekdayNameModule, decorators: [{
|
|
764
|
-
type: i0.NgModule,
|
|
765
|
-
args: [{
|
|
766
|
-
declarations: [
|
|
767
|
-
WeekdayNamePipe
|
|
768
|
-
],
|
|
769
|
-
imports: [
|
|
770
|
-
i1.CommonModule
|
|
771
|
-
],
|
|
772
|
-
exports: [
|
|
773
|
-
WeekdayNamePipe
|
|
774
|
-
]
|
|
775
|
-
}]
|
|
776
|
-
}] });
|
|
777
|
-
|
|
778
|
-
var BsCalendarModule = /** @class */ (function () {
|
|
779
|
-
function BsCalendarModule() {
|
|
780
|
-
}
|
|
781
|
-
return BsCalendarModule;
|
|
782
|
-
}());
|
|
783
|
-
BsCalendarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
784
|
-
BsCalendarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, declarations: [BsCalendarComponent], imports: [i1.CommonModule,
|
|
785
|
-
BsUcFirstPipeModule,
|
|
786
|
-
BsMonthNamePipeModule,
|
|
787
|
-
BsWeekdayNameModule], exports: [BsCalendarComponent] });
|
|
788
|
-
BsCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, imports: [[
|
|
789
|
-
i1.CommonModule,
|
|
790
|
-
BsUcFirstPipeModule,
|
|
791
|
-
BsMonthNamePipeModule,
|
|
792
|
-
BsWeekdayNameModule
|
|
793
|
-
]] });
|
|
794
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCalendarModule, decorators: [{
|
|
795
|
-
type: i0.NgModule,
|
|
796
|
-
args: [{
|
|
797
|
-
declarations: [
|
|
798
|
-
BsCalendarComponent
|
|
799
|
-
],
|
|
800
|
-
imports: [
|
|
801
|
-
i1.CommonModule,
|
|
802
|
-
BsUcFirstPipeModule,
|
|
803
|
-
BsMonthNamePipeModule,
|
|
804
|
-
BsWeekdayNameModule
|
|
805
|
-
],
|
|
806
|
-
exports: [
|
|
807
|
-
BsCalendarComponent
|
|
808
|
-
]
|
|
809
|
-
}]
|
|
810
|
-
}] });
|
|
811
|
-
|
|
812
|
-
var BsCarouselImageDirective = /** @class */ (function () {
|
|
813
|
-
function BsCarouselImageDirective() {
|
|
814
|
-
}
|
|
815
|
-
return BsCarouselImageDirective;
|
|
816
|
-
}());
|
|
817
|
-
BsCarouselImageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselImageDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
818
|
-
BsCarouselImageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: BsCarouselImageDirective, selector: "img[bsCarouselImage]", ngImport: i0__namespace });
|
|
819
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselImageDirective, decorators: [{
|
|
820
|
-
type: i0.Directive,
|
|
821
|
-
args: [{
|
|
822
|
-
selector: 'img[bsCarouselImage]'
|
|
823
|
-
}]
|
|
824
|
-
}], ctorParameters: function () { return []; } });
|
|
825
|
-
|
|
826
|
-
var BsCarouselComponent = /** @class */ (function () {
|
|
827
|
-
function BsCarouselComponent() {
|
|
828
|
-
var _this = this;
|
|
829
|
-
this.destroyed$ = new rxjs.Subject();
|
|
830
|
-
this.currentImageIndex$ = new rxjs.BehaviorSubject(-1);
|
|
831
|
-
this.currentImage$ = this.currentImageIndex$
|
|
832
|
-
.pipe(operators.map(function (index) { var _a; return (_a = _this.images.get(index)) !== null && _a !== void 0 ? _a : null; }))
|
|
833
|
-
.pipe(operators.takeUntil(this.destroyed$));
|
|
834
|
-
}
|
|
835
|
-
BsCarouselComponent.prototype.ngOnInit = function () { };
|
|
836
|
-
BsCarouselComponent.prototype.ngOnDestroy = function () {
|
|
837
|
-
this.destroyed$.next(true);
|
|
838
|
-
};
|
|
839
|
-
BsCarouselComponent.prototype.ngAfterContentInit = function () {
|
|
840
|
-
if (this.images.length > 0) {
|
|
841
|
-
this.currentImageIndex$.next(0);
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
this.currentImageIndex$.next(-1);
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
|
-
BsCarouselComponent.prototype.previousImage = function () {
|
|
848
|
-
var _this = this;
|
|
849
|
-
this.currentImageIndex$
|
|
850
|
-
.pipe(operators.take(1))
|
|
851
|
-
.subscribe(function (currentImageIndex) {
|
|
852
|
-
if (currentImageIndex === 0) {
|
|
853
|
-
_this.currentImageIndex$.next(_this.images.length - 1);
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
_this.currentImageIndex$.next(currentImageIndex - 1);
|
|
857
|
-
}
|
|
858
|
-
});
|
|
859
|
-
};
|
|
860
|
-
BsCarouselComponent.prototype.nextImage = function () {
|
|
861
|
-
var _this = this;
|
|
862
|
-
this.currentImageIndex$
|
|
863
|
-
.pipe(operators.take(1))
|
|
864
|
-
.subscribe(function (currentImageIndex) {
|
|
865
|
-
if (currentImageIndex >= _this.images.length - 1) {
|
|
866
|
-
_this.currentImageIndex$.next(0);
|
|
867
|
-
}
|
|
868
|
-
else {
|
|
869
|
-
_this.currentImageIndex$.next(currentImageIndex + 1);
|
|
870
|
-
}
|
|
871
|
-
});
|
|
872
|
-
};
|
|
873
|
-
BsCarouselComponent.prototype.setCurrentImage = function (index) {
|
|
874
|
-
this.currentImageIndex$.next(index);
|
|
875
|
-
};
|
|
876
|
-
return BsCarouselComponent;
|
|
877
|
-
}());
|
|
878
|
-
BsCarouselComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
879
|
-
BsCarouselComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsCarouselComponent, selector: "bs-carousel", queries: [{ propertyName: "images", predicate: BsCarouselImageDirective, read: i0.ElementRef }], ngImport: i0__namespace, template: "<div class=\"carousel slide\">\n <div class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\" data-bs-target\n [class.active]=\"(currentImageIndex$ | async) === i\"\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageIndex$ | async\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <!-- @fadeInOut -->\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <img [src]=\"image.nativeElement.src\" class=\"d-block\" [attr.alt]=\"image.nativeElement.alt\" [class.w-100]=\"true\">\n </div>\n </ng-container>\n </div>\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [""], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1__namespace.AsyncPipe }, animations: [ngAnimations.FadeInOutAnimation, ngAnimations.CarouselSlideAnimation] });
|
|
880
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselComponent, decorators: [{
|
|
881
|
-
type: i0.Component,
|
|
882
|
-
args: [{
|
|
883
|
-
selector: 'bs-carousel',
|
|
884
|
-
templateUrl: './carousel.component.html',
|
|
885
|
-
styleUrls: ['./carousel.component.scss'],
|
|
886
|
-
animations: [ngAnimations.FadeInOutAnimation, ngAnimations.CarouselSlideAnimation]
|
|
887
|
-
}]
|
|
888
|
-
}], ctorParameters: function () { return []; }, propDecorators: { images: [{
|
|
889
|
-
type: i0.ContentChildren,
|
|
890
|
-
args: [BsCarouselImageDirective, { read: i0.ElementRef }]
|
|
891
|
-
}] } });
|
|
892
|
-
|
|
893
|
-
var BsCarouselModule = /** @class */ (function () {
|
|
894
|
-
function BsCarouselModule() {
|
|
895
|
-
}
|
|
896
|
-
return BsCarouselModule;
|
|
897
|
-
}());
|
|
898
|
-
BsCarouselModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
899
|
-
BsCarouselModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselModule, declarations: [BsCarouselComponent,
|
|
900
|
-
BsCarouselImageDirective], imports: [i1.CommonModule], exports: [BsCarouselComponent,
|
|
901
|
-
BsCarouselImageDirective] });
|
|
902
|
-
BsCarouselModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselModule, imports: [[
|
|
903
|
-
i1.CommonModule
|
|
904
|
-
]] });
|
|
905
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsCarouselModule, decorators: [{
|
|
906
|
-
type: i0.NgModule,
|
|
907
|
-
args: [{
|
|
908
|
-
declarations: [
|
|
909
|
-
BsCarouselComponent,
|
|
910
|
-
BsCarouselImageDirective
|
|
911
|
-
],
|
|
912
|
-
imports: [
|
|
913
|
-
i1.CommonModule
|
|
914
|
-
],
|
|
915
|
-
exports: [
|
|
916
|
-
BsCarouselComponent,
|
|
917
|
-
BsCarouselImageDirective
|
|
918
|
-
]
|
|
919
|
-
}]
|
|
920
|
-
}] });
|
|
921
|
-
|
|
922
|
-
var BsListGroupItemComponent = /** @class */ (function () {
|
|
923
|
-
function BsListGroupItemComponent() {
|
|
924
|
-
}
|
|
925
|
-
BsListGroupItemComponent.prototype.ngOnInit = function () {
|
|
926
|
-
};
|
|
927
|
-
return BsListGroupItemComponent;
|
|
928
|
-
}());
|
|
929
|
-
BsListGroupItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
930
|
-
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"] });
|
|
931
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupItemComponent, decorators: [{
|
|
932
|
-
type: i0.Component,
|
|
933
|
-
args: [{
|
|
934
|
-
selector: 'bs-list-group-item',
|
|
935
|
-
templateUrl: './list-group-item.component.html',
|
|
936
|
-
styleUrls: ['./list-group-item.component.scss']
|
|
937
|
-
}]
|
|
938
|
-
}], ctorParameters: function () { return []; } });
|
|
939
|
-
|
|
940
|
-
var BsListGroupComponent = /** @class */ (function () {
|
|
941
|
-
function BsListGroupComponent() {
|
|
942
|
-
}
|
|
943
|
-
BsListGroupComponent.prototype.ngOnInit = function () {
|
|
944
|
-
};
|
|
945
|
-
return BsListGroupComponent;
|
|
946
|
-
}());
|
|
947
|
-
BsListGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
948
|
-
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: [""] });
|
|
949
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupComponent, decorators: [{
|
|
950
|
-
type: i0.Component,
|
|
951
|
-
args: [{
|
|
952
|
-
selector: 'bs-list-group',
|
|
953
|
-
templateUrl: './list-group.component.html',
|
|
954
|
-
styleUrls: ['./list-group.component.scss']
|
|
955
|
-
}]
|
|
956
|
-
}], ctorParameters: function () { return []; }, propDecorators: { items: [{
|
|
957
|
-
type: i0.ContentChildren,
|
|
958
|
-
args: [BsListGroupItemComponent]
|
|
959
|
-
}] } });
|
|
960
|
-
|
|
961
|
-
var BsListGroupModule = /** @class */ (function () {
|
|
962
|
-
function BsListGroupModule() {
|
|
963
|
-
}
|
|
964
|
-
return BsListGroupModule;
|
|
965
|
-
}());
|
|
966
|
-
BsListGroupModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
967
|
-
BsListGroupModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, declarations: [BsListGroupComponent,
|
|
968
|
-
BsListGroupItemComponent], imports: [i1.CommonModule], exports: [BsListGroupComponent,
|
|
969
|
-
BsListGroupItemComponent] });
|
|
970
|
-
BsListGroupModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, imports: [[i1.CommonModule]] });
|
|
971
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsListGroupModule, decorators: [{
|
|
972
|
-
type: i0.NgModule,
|
|
973
|
-
args: [{
|
|
974
|
-
imports: [i1.CommonModule],
|
|
975
|
-
declarations: [
|
|
976
|
-
BsListGroupComponent,
|
|
977
|
-
BsListGroupItemComponent
|
|
978
|
-
],
|
|
979
|
-
exports: [
|
|
980
|
-
BsListGroupComponent,
|
|
981
|
-
BsListGroupItemComponent
|
|
982
|
-
]
|
|
983
|
-
}]
|
|
984
|
-
}] });
|
|
985
|
-
|
|
986
|
-
var BsNavbarComponent = /** @class */ (function () {
|
|
987
|
-
function BsNavbarComponent() {
|
|
988
|
-
this.isExpanded = false;
|
|
989
|
-
}
|
|
990
|
-
BsNavbarComponent.prototype.toggleExpanded = function () {
|
|
991
|
-
this.isExpanded = !this.isExpanded;
|
|
992
|
-
};
|
|
993
|
-
return BsNavbarComponent;
|
|
994
|
-
}());
|
|
995
|
-
BsNavbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
996
|
-
BsNavbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarComponent, selector: "bs-navbar", viewQueries: [{ propertyName: "nav", first: true, predicate: ["nav"], descendants: true }], ngImport: i0__namespace, template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <a class=\"navbar-brand mx-auto mx-md-unset\" href=\"#\">Navbar 2</a>\n <button (click)=\"toggleExpanded()\" class=\"navbar-toggler align-self-end\" type=\"button\" data-toggle=\"collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n </div>\n <ng-content></ng-content>\n </div>\n</nav>", styles: [":host ::ng-deep+*{padding-top:56px}nav{left:0;top:0;right:0;z-index:1}@media (min-width: 768px){.mx-md-unset{margin-left:0!important;margin-right:0!important}.w-md-auto{width:auto!important}}\n"] });
|
|
997
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarComponent, decorators: [{
|
|
998
|
-
type: i0.Component,
|
|
999
|
-
args: [{
|
|
1000
|
-
selector: 'bs-navbar',
|
|
1001
|
-
templateUrl: './navbar.component.html',
|
|
1002
|
-
styleUrls: ['./navbar.component.scss'],
|
|
1003
|
-
}]
|
|
1004
|
-
}], ctorParameters: function () { return []; }, propDecorators: { nav: [{
|
|
1005
|
-
type: i0.ViewChild,
|
|
1006
|
-
args: ['nav']
|
|
1007
|
-
}] } });
|
|
1008
|
-
|
|
1009
|
-
var BsNavbarNavComponent = /** @class */ (function () {
|
|
1010
|
-
function BsNavbarNavComponent(bsNavbar) {
|
|
1011
|
-
//#region collapse
|
|
1012
|
-
this._collapse = true;
|
|
1013
|
-
this.bsNavbar = bsNavbar;
|
|
1014
|
-
}
|
|
1015
|
-
BsNavbarNavComponent.prototype.ngOnInit = function () {
|
|
1016
|
-
};
|
|
1017
|
-
Object.defineProperty(BsNavbarNavComponent.prototype, "collapse", {
|
|
1018
|
-
get: function () {
|
|
1019
|
-
return this._collapse;
|
|
1020
|
-
},
|
|
1021
|
-
set: function (value) {
|
|
1022
|
-
this._collapse = value;
|
|
1023
|
-
},
|
|
1024
|
-
enumerable: false,
|
|
1025
|
-
configurable: true
|
|
1026
|
-
});
|
|
1027
|
-
return BsNavbarNavComponent;
|
|
1028
|
-
}());
|
|
1029
|
-
BsNavbarNavComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarNavComponent, deps: [{ token: BsNavbarComponent }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1030
|
-
BsNavbarNavComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarNavComponent, selector: "bs-navbar-nav", inputs: { collapse: "collapse" }, ngImport: i0__namespace, template: "<div class=\"navbar-collapse collapse w-100 show\" [@slideUpDown]=\"bsNavbar.isExpanded ? 'down' : 'up'\">\n <ul class=\"navbar-nav mr-auto\">\n <ng-content></ng-content>\n </ul>\n</div>", styles: [":host{margin-right:auto}@media screen and (max-width: 767px){:host{width:100%!important}.navbar-collapse.collapse{overflow:hidden}}\n"], animations: [ngAnimations.SlideUpDownAnimation] });
|
|
1031
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarNavComponent, decorators: [{
|
|
1032
|
-
type: i0.Component,
|
|
1033
|
-
args: [{
|
|
1034
|
-
selector: 'bs-navbar-nav',
|
|
1035
|
-
templateUrl: './navbar-nav.component.html',
|
|
1036
|
-
styleUrls: ['./navbar-nav.component.scss'],
|
|
1037
|
-
animations: [ngAnimations.SlideUpDownAnimation]
|
|
1038
|
-
}]
|
|
1039
|
-
}], ctorParameters: function () { return [{ type: BsNavbarComponent }]; }, propDecorators: { collapse: [{
|
|
1040
|
-
type: i0.Input
|
|
1041
|
-
}] } });
|
|
1042
|
-
|
|
1043
|
-
var BsNavbarItemComponent = /** @class */ (function () {
|
|
1044
|
-
function BsNavbarItemComponent(parentDropdown, element) {
|
|
1045
|
-
this.element = element;
|
|
1046
|
-
this.hasDropdown = false;
|
|
1047
|
-
this.anchorTag = null;
|
|
1048
|
-
this.parentDropdown = parentDropdown;
|
|
1049
|
-
}
|
|
1050
|
-
BsNavbarItemComponent.prototype.ngOnInit = function () {
|
|
1051
|
-
};
|
|
1052
|
-
BsNavbarItemComponent.prototype.ngAfterContentChecked = function () {
|
|
1053
|
-
var _this = this;
|
|
1054
|
-
if (this.hasDropdown) {
|
|
1055
|
-
window.element = this.element.nativeElement;
|
|
1056
|
-
this.anchorTag = this.element.nativeElement.querySelector('li a');
|
|
1057
|
-
(this.anchorTag) && this.anchorTag.classList.add('dropdown-toggle');
|
|
1058
|
-
if (this.anchorTag && !this.anchorTag.onclick) {
|
|
1059
|
-
this.anchorTag.onclick = function (ev) {
|
|
1060
|
-
ev.preventDefault();
|
|
1061
|
-
// Normally there should be only one dropdown in this list
|
|
1062
|
-
_this.dropdowns.forEach(function (dropdown) {
|
|
1063
|
-
if (!(dropdown.isVisible = !dropdown.isVisible)) {
|
|
1064
|
-
dropdown.childDropdowns.forEach(function (child) {
|
|
1065
|
-
child.isVisible = false;
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
return false;
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
return BsNavbarItemComponent;
|
|
1075
|
-
}());
|
|
1076
|
-
BsNavbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarItemComponent, deps: [{ token: BsNavbarDropdownComponent, optional: true }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1077
|
-
BsNavbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarItemComponent, selector: "bs-navbar-item", queries: [{ propertyName: "dropdowns", predicate: BsNavbarDropdownComponent }], ngImport: i0__namespace, template: "<li [class.nav-item]=\"parentDropdown === null\" [class.dropdown]=\"(dropdowns.length > 0) && (parentDropdown === null)\" [class.dropend]=\"(dropdowns.length > 0) && (parentDropdown !== null)\">\n <ng-content></ng-content>\n</li>", styles: ["li.dropend ::ng-deep a.dropdown-toggle{padding-right:1.5rem}li.dropend ::ng-deep a.dropdown-toggle:after{position:absolute;right:.5rem;top:.75rem}\n"] });
|
|
1078
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarItemComponent, decorators: [{
|
|
1079
|
-
type: i0.Component,
|
|
1080
|
-
args: [{
|
|
1081
|
-
selector: 'bs-navbar-item',
|
|
1082
|
-
templateUrl: './navbar-item.component.html',
|
|
1083
|
-
styleUrls: ['./navbar-item.component.scss']
|
|
1084
|
-
}]
|
|
1085
|
-
}], ctorParameters: function () {
|
|
1086
|
-
return [{ type: BsNavbarDropdownComponent, decorators: [{
|
|
1087
|
-
type: i0.Optional
|
|
1088
|
-
}] }, { type: i0__namespace.ElementRef }];
|
|
1089
|
-
}, propDecorators: { dropdowns: [{
|
|
1090
|
-
type: i0.ContentChildren,
|
|
1091
|
-
args: [i0.forwardRef(function () { return BsNavbarDropdownComponent; })]
|
|
1092
|
-
}] } });
|
|
1093
|
-
|
|
1094
|
-
var BsNavbarDropdownComponent = /** @class */ (function () {
|
|
1095
|
-
function BsNavbarDropdownComponent(parentDropdown, navbarItem) {
|
|
1096
|
-
this.isVisible = false;
|
|
1097
|
-
this.parentDropdown = parentDropdown;
|
|
1098
|
-
this.navbarItem = navbarItem;
|
|
1099
|
-
}
|
|
1100
|
-
Object.defineProperty(BsNavbarDropdownComponent.prototype, "elementsToExclude", {
|
|
1101
|
-
get: function () {
|
|
1102
|
-
return [this.navbarItem.anchorTag].filter(function (a) { return a; }).map(function (a) { return a; });
|
|
1103
|
-
},
|
|
1104
|
-
enumerable: false,
|
|
1105
|
-
configurable: true
|
|
1106
|
-
});
|
|
1107
|
-
BsNavbarDropdownComponent.prototype.ngOnInit = function () {
|
|
1108
|
-
};
|
|
1109
|
-
return BsNavbarDropdownComponent;
|
|
1110
|
-
}());
|
|
1111
|
-
BsNavbarDropdownComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarDropdownComponent, deps: [{ token: BsNavbarDropdownComponent, host: true, optional: true, skipSelf: true }, { token: i0.forwardRef(function () { return BsNavbarItemComponent; }), host: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1112
|
-
BsNavbarDropdownComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", queries: [{ propertyName: "childDropdowns", predicate: BsNavbarDropdownComponent, descendants: true }], ngImport: i0__namespace, template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"], directives: [{ type: i1__namespace$1.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
|
|
1113
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarDropdownComponent, decorators: [{
|
|
1114
|
-
type: i0.Component,
|
|
1115
|
-
args: [{
|
|
1116
|
-
selector: 'bs-navbar-dropdown',
|
|
1117
|
-
templateUrl: './navbar-dropdown.component.html',
|
|
1118
|
-
styleUrls: ['./navbar-dropdown.component.scss']
|
|
1119
|
-
}]
|
|
1120
|
-
}], ctorParameters: function () {
|
|
1121
|
-
return [{ type: BsNavbarDropdownComponent, decorators: [{
|
|
1122
|
-
type: i0.SkipSelf
|
|
1123
|
-
}, {
|
|
1124
|
-
type: i0.Host
|
|
1125
|
-
}, {
|
|
1126
|
-
type: i0.Optional
|
|
1127
|
-
}] }, { type: BsNavbarItemComponent, decorators: [{
|
|
1128
|
-
type: i0.Host
|
|
1129
|
-
}, {
|
|
1130
|
-
type: i0.Inject,
|
|
1131
|
-
args: [i0.forwardRef(function () { return BsNavbarItemComponent; })]
|
|
1132
|
-
}] }];
|
|
1133
|
-
}, propDecorators: { childDropdowns: [{
|
|
1134
|
-
type: i0.ContentChildren,
|
|
1135
|
-
args: [i0.forwardRef(function () { return BsNavbarDropdownComponent; }), { descendants: true }]
|
|
1136
|
-
}] } });
|
|
1137
|
-
|
|
1138
|
-
var DropdownToggleDirective = /** @class */ (function () {
|
|
1139
|
-
function DropdownToggleDirective(elementRef, bsNavbarItem, parentDropdown) {
|
|
1140
|
-
this.elementRef = elementRef;
|
|
1141
|
-
this.bsNavbarItem = bsNavbarItem;
|
|
1142
|
-
}
|
|
1143
|
-
DropdownToggleDirective.prototype.ngAfterContentInit = function () {
|
|
1144
|
-
if (this.bsNavbarItem.dropdowns.length > 0) {
|
|
1145
|
-
this.bsNavbarItem.hasDropdown = true;
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
return DropdownToggleDirective;
|
|
1149
|
-
}());
|
|
1150
|
-
DropdownToggleDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: DropdownToggleDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0.forwardRef(function () { return BsNavbarItemComponent; }) }, { token: i0.forwardRef(function () { return BsNavbarDropdownComponent; }), optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1151
|
-
DropdownToggleDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: DropdownToggleDirective, selector: "bs-navbar-item", queries: [{ propertyName: "childDropdowns", predicate: BsNavbarDropdownComponent }], ngImport: i0__namespace });
|
|
1152
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: DropdownToggleDirective, decorators: [{
|
|
1153
|
-
type: i0.Directive,
|
|
1154
|
-
args: [{
|
|
1155
|
-
// selector: 'bs-navbar-item > a[routerLink]',
|
|
1156
|
-
selector: 'bs-navbar-item',
|
|
1157
|
-
queries: {
|
|
1158
|
-
childDropdowns: new i0.ContentChildren(BsNavbarDropdownComponent)
|
|
1159
|
-
}
|
|
1160
|
-
}]
|
|
1161
|
-
}], ctorParameters: function () {
|
|
1162
|
-
return [{ type: i0__namespace.ElementRef }, { type: BsNavbarItemComponent, decorators: [{
|
|
1163
|
-
type: i0.Inject,
|
|
1164
|
-
args: [i0.forwardRef(function () { return BsNavbarItemComponent; })]
|
|
1165
|
-
}] }, { type: BsNavbarDropdownComponent, decorators: [{
|
|
1166
|
-
type: i0.Optional
|
|
1167
|
-
}, {
|
|
1168
|
-
type: i0.Inject,
|
|
1169
|
-
args: [i0.forwardRef(function () { return BsNavbarDropdownComponent; })]
|
|
1170
|
-
}] }];
|
|
1171
|
-
} });
|
|
1172
|
-
|
|
1173
|
-
var NavLinkDirective = /** @class */ (function () {
|
|
1174
|
-
function NavLinkDirective(elementRef, parentDropdown) {
|
|
1175
|
-
this.elementRef = elementRef;
|
|
1176
|
-
if (parentDropdown == null) {
|
|
1177
|
-
this.elementRef.nativeElement.classList.add('nav-link');
|
|
1178
|
-
}
|
|
1179
|
-
else {
|
|
1180
|
-
this.elementRef.nativeElement.classList.add('dropdown-item');
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
return NavLinkDirective;
|
|
1184
|
-
}());
|
|
1185
|
-
NavLinkDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: NavLinkDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0.forwardRef(function () { return BsNavbarDropdownComponent; }), optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1186
|
-
NavLinkDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: NavLinkDirective, selector: "bs-navbar-item > a[routerLink]", ngImport: i0__namespace });
|
|
1187
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: NavLinkDirective, decorators: [{
|
|
1188
|
-
type: i0.Directive,
|
|
1189
|
-
args: [{
|
|
1190
|
-
selector: 'bs-navbar-item > a[routerLink]'
|
|
1191
|
-
}]
|
|
1192
|
-
}], ctorParameters: function () {
|
|
1193
|
-
return [{ type: i0__namespace.ElementRef }, { type: BsNavbarDropdownComponent, decorators: [{
|
|
1194
|
-
type: i0.Optional
|
|
1195
|
-
}, {
|
|
1196
|
-
type: i0.Inject,
|
|
1197
|
-
args: [i0.forwardRef(function () { return BsNavbarDropdownComponent; })]
|
|
1198
|
-
}] }];
|
|
1199
|
-
} });
|
|
1200
|
-
|
|
1201
|
-
var NavbarContentDirective = /** @class */ (function () {
|
|
1202
|
-
function NavbarContentDirective(element) {
|
|
1203
|
-
var _this = this;
|
|
1204
|
-
this.element = element;
|
|
1205
|
-
this.initialPadding = 0;
|
|
1206
|
-
this.resizeObserver = new ResizeObserver(function (entries) {
|
|
1207
|
-
var height = entries[0].contentRect.height;
|
|
1208
|
-
_this.element.nativeElement.style.paddingTop = (_this.initialPadding + height) + 'px';
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
NavbarContentDirective.prototype.ngAfterViewInit = function () {
|
|
1212
|
-
var p = parseInt(this.element.nativeElement.style.paddingTop.replace(/px$/, ''));
|
|
1213
|
-
this.initialPadding = isNaN(p) ? 0 : p;
|
|
1214
|
-
this.resizeObserver.observe(this.navbar.nav.nativeElement);
|
|
1215
|
-
};
|
|
1216
|
-
NavbarContentDirective.prototype.ngOnDestroy = function () {
|
|
1217
|
-
this.resizeObserver.unobserve(this.navbar.nav.nativeElement);
|
|
1218
|
-
};
|
|
1219
|
-
return NavbarContentDirective;
|
|
1220
|
-
}());
|
|
1221
|
-
NavbarContentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: NavbarContentDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1222
|
-
NavbarContentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.0", type: NavbarContentDirective, selector: "[navbarContent]", inputs: { navbar: ["navbarContent", "navbar"] }, ngImport: i0__namespace });
|
|
1223
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: NavbarContentDirective, decorators: [{
|
|
1224
|
-
type: i0.Directive,
|
|
1225
|
-
args: [{
|
|
1226
|
-
selector: '[navbarContent]'
|
|
1227
|
-
}]
|
|
1228
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { navbar: [{
|
|
1229
|
-
type: i0.Input,
|
|
1230
|
-
args: ['navbarContent']
|
|
1231
|
-
}] } });
|
|
1232
|
-
|
|
1233
|
-
var BsNavbarModule = /** @class */ (function () {
|
|
1234
|
-
function BsNavbarModule() {
|
|
1235
|
-
}
|
|
1236
|
-
return BsNavbarModule;
|
|
1237
|
-
}());
|
|
1238
|
-
BsNavbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1239
|
-
BsNavbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, declarations: [BsNavbarComponent,
|
|
1240
|
-
BsNavbarNavComponent,
|
|
1241
|
-
BsNavbarDropdownComponent,
|
|
1242
|
-
BsNavbarItemComponent,
|
|
1243
|
-
DropdownToggleDirective,
|
|
1244
|
-
NavLinkDirective,
|
|
1245
|
-
NavbarContentDirective], imports: [i1.CommonModule,
|
|
1246
|
-
router.RouterModule,
|
|
1247
|
-
i1$1.ClickOutsideModule], exports: [BsNavbarComponent,
|
|
1248
|
-
BsNavbarNavComponent,
|
|
1249
|
-
BsNavbarDropdownComponent,
|
|
1250
|
-
BsNavbarItemComponent,
|
|
1251
|
-
DropdownToggleDirective,
|
|
1252
|
-
NavLinkDirective,
|
|
1253
|
-
NavbarContentDirective] });
|
|
1254
|
-
BsNavbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, imports: [[
|
|
1255
|
-
i1.CommonModule,
|
|
1256
|
-
router.RouterModule,
|
|
1257
|
-
i1$1.ClickOutsideModule
|
|
1258
|
-
]] });
|
|
1259
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsNavbarModule, decorators: [{
|
|
1260
|
-
type: i0.NgModule,
|
|
1261
|
-
args: [{
|
|
1262
|
-
declarations: [
|
|
1263
|
-
BsNavbarComponent,
|
|
1264
|
-
BsNavbarNavComponent,
|
|
1265
|
-
BsNavbarDropdownComponent,
|
|
1266
|
-
BsNavbarItemComponent,
|
|
1267
|
-
DropdownToggleDirective,
|
|
1268
|
-
NavLinkDirective,
|
|
1269
|
-
NavbarContentDirective
|
|
1270
|
-
],
|
|
1271
|
-
imports: [
|
|
1272
|
-
i1.CommonModule,
|
|
1273
|
-
router.RouterModule,
|
|
1274
|
-
i1$1.ClickOutsideModule
|
|
1275
|
-
],
|
|
1276
|
-
exports: [
|
|
1277
|
-
BsNavbarComponent,
|
|
1278
|
-
BsNavbarNavComponent,
|
|
1279
|
-
BsNavbarDropdownComponent,
|
|
1280
|
-
BsNavbarItemComponent,
|
|
1281
|
-
DropdownToggleDirective,
|
|
1282
|
-
NavLinkDirective,
|
|
1283
|
-
NavbarContentDirective
|
|
1284
|
-
]
|
|
1285
|
-
}]
|
|
1286
|
-
}] });
|
|
1287
|
-
|
|
1288
|
-
var BsAccordionTabComponent = /** @class */ (function () {
|
|
1289
|
-
function BsAccordionTabComponent(accordion) {
|
|
1290
|
-
this.accordion = accordion;
|
|
1291
|
-
}
|
|
1292
|
-
BsAccordionTabComponent.prototype.ngOnInit = function () {
|
|
1293
|
-
};
|
|
1294
|
-
BsAccordionTabComponent.prototype.headerClicked = function (event) {
|
|
1295
|
-
if (this.accordion.activeTab === this) {
|
|
1296
|
-
this.accordion.activeTab = null;
|
|
1297
|
-
}
|
|
1298
|
-
else {
|
|
1299
|
-
this.accordion.activeTab = this;
|
|
1300
|
-
}
|
|
1301
|
-
};
|
|
1302
|
-
return BsAccordionTabComponent;
|
|
1303
|
-
}());
|
|
1304
|
-
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 });
|
|
1305
|
-
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] });
|
|
1306
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabComponent, decorators: [{
|
|
1307
|
-
type: i0.Component,
|
|
1308
|
-
args: [{
|
|
1309
|
-
selector: 'bs-accordion-tab',
|
|
1310
|
-
templateUrl: './accordion-tab.component.html',
|
|
1311
|
-
styleUrls: ['./accordion-tab.component.scss'],
|
|
1312
|
-
animations: [ngAnimations.SlideUpDownAnimation]
|
|
1313
|
-
}]
|
|
1314
|
-
}], ctorParameters: function () { return [{ type: BsAccordionComponent }]; } });
|
|
1315
|
-
|
|
1316
|
-
var BsAccordionComponent = /** @class */ (function () {
|
|
1317
|
-
function BsAccordionComponent() {
|
|
1318
|
-
this.activeTab = null;
|
|
1319
|
-
}
|
|
1320
|
-
BsAccordionComponent.prototype.ngOnInit = function () {
|
|
1321
|
-
};
|
|
1322
|
-
return BsAccordionComponent;
|
|
1323
|
-
}());
|
|
1324
|
-
BsAccordionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1325
|
-
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: [""] });
|
|
1326
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionComponent, decorators: [{
|
|
1327
|
-
type: i0.Component,
|
|
1328
|
-
args: [{
|
|
1329
|
-
selector: 'bs-accordion',
|
|
1330
|
-
templateUrl: './accordion.component.html',
|
|
1331
|
-
styleUrls: ['./accordion.component.scss']
|
|
1332
|
-
}]
|
|
1333
|
-
}], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
|
|
1334
|
-
type: i0.ContentChildren,
|
|
1335
|
-
args: [BsAccordionTabComponent]
|
|
1336
|
-
}] } });
|
|
1337
|
-
|
|
1338
|
-
var BsAccordionTabHeaderComponent = /** @class */ (function () {
|
|
1339
|
-
function BsAccordionTabHeaderComponent(accordionTab, accordion) {
|
|
1340
|
-
this.accordionTab = accordionTab;
|
|
1341
|
-
this.accordion = accordion;
|
|
1342
|
-
}
|
|
1343
|
-
BsAccordionTabHeaderComponent.prototype.ngOnInit = function () {
|
|
1344
|
-
};
|
|
1345
|
-
BsAccordionTabHeaderComponent.prototype.headerClicked = function (event) {
|
|
1346
|
-
if (this.accordion.activeTab === this.accordionTab) {
|
|
1347
|
-
this.accordion.activeTab = null;
|
|
1348
|
-
}
|
|
1349
|
-
else {
|
|
1350
|
-
this.accordion.activeTab = this.accordionTab;
|
|
1351
|
-
}
|
|
1352
|
-
};
|
|
1353
|
-
return BsAccordionTabHeaderComponent;
|
|
1354
|
-
}());
|
|
1355
|
-
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 });
|
|
1356
|
-
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: [""] });
|
|
1357
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionTabHeaderComponent, decorators: [{
|
|
1358
|
-
type: i0.Component,
|
|
1359
|
-
args: [{
|
|
1360
|
-
selector: 'bs-accordion-tab-header',
|
|
1361
|
-
templateUrl: './accordion-tab-header.component.html',
|
|
1362
|
-
styleUrls: ['./accordion-tab-header.component.scss']
|
|
1363
|
-
}]
|
|
1364
|
-
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
|
|
1365
|
-
|
|
1366
|
-
var BsAccordionModule = /** @class */ (function () {
|
|
1367
|
-
function BsAccordionModule() {
|
|
1368
|
-
}
|
|
1369
|
-
return BsAccordionModule;
|
|
1370
|
-
}());
|
|
1371
|
-
BsAccordionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1372
|
-
BsAccordionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, declarations: [BsAccordionComponent,
|
|
1373
|
-
BsAccordionTabComponent,
|
|
1374
|
-
BsAccordionTabHeaderComponent], imports: [i1.CommonModule,
|
|
1375
|
-
animations.BrowserAnimationsModule], exports: [BsAccordionComponent,
|
|
1376
|
-
BsAccordionTabComponent,
|
|
1377
|
-
BsAccordionTabHeaderComponent] });
|
|
1378
|
-
BsAccordionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, imports: [[
|
|
1379
|
-
i1.CommonModule,
|
|
1380
|
-
animations.BrowserAnimationsModule
|
|
1381
|
-
]] });
|
|
1382
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsAccordionModule, decorators: [{
|
|
1383
|
-
type: i0.NgModule,
|
|
1384
|
-
args: [{
|
|
1385
|
-
declarations: [
|
|
1386
|
-
BsAccordionComponent,
|
|
1387
|
-
BsAccordionTabComponent,
|
|
1388
|
-
BsAccordionTabHeaderComponent
|
|
1389
|
-
],
|
|
1390
|
-
imports: [
|
|
1391
|
-
i1.CommonModule,
|
|
1392
|
-
animations.BrowserAnimationsModule
|
|
1393
|
-
],
|
|
1394
|
-
exports: [
|
|
1395
|
-
BsAccordionComponent,
|
|
1396
|
-
BsAccordionTabComponent,
|
|
1397
|
-
BsAccordionTabHeaderComponent
|
|
1398
|
-
]
|
|
1399
|
-
}]
|
|
1400
|
-
}] });
|
|
1401
|
-
|
|
1402
|
-
var BsTabPageComponent = /** @class */ (function () {
|
|
1403
|
-
function BsTabPageComponent(tabControl) {
|
|
1404
|
-
this.disabled = false;
|
|
1405
|
-
this.tabControl = tabControl;
|
|
1406
|
-
}
|
|
1407
|
-
BsTabPageComponent.prototype.ngOnInit = function () {
|
|
1408
|
-
};
|
|
1409
|
-
return BsTabPageComponent;
|
|
1410
|
-
}());
|
|
1411
|
-
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 });
|
|
1412
|
-
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"] }] });
|
|
1413
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabPageComponent, decorators: [{
|
|
1414
|
-
type: i0.Component,
|
|
1415
|
-
args: [{
|
|
1416
|
-
selector: 'bs-tab-page',
|
|
1417
|
-
templateUrl: './tab-page.component.html',
|
|
1418
|
-
styleUrls: ['./tab-page.component.scss']
|
|
1419
|
-
}]
|
|
1420
|
-
}], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { headerTemplate: [{
|
|
1421
|
-
type: i0.ContentChild,
|
|
1422
|
-
args: [i0.TemplateRef]
|
|
1423
|
-
}], disabled: [{
|
|
1424
|
-
type: i0.Input
|
|
1425
|
-
}] } });
|
|
1426
|
-
|
|
1427
|
-
var BsTabControlComponent = /** @class */ (function () {
|
|
1428
|
-
function BsTabControlComponent() {
|
|
1429
|
-
this.activeTab = null;
|
|
1430
|
-
}
|
|
1431
|
-
BsTabControlComponent.prototype.ngOnInit = function () {
|
|
1432
|
-
};
|
|
1433
|
-
BsTabControlComponent.prototype.setActiveTab = function (tab) {
|
|
1434
|
-
if (!tab.disabled) {
|
|
1435
|
-
this.activeTab = tab;
|
|
1436
|
-
}
|
|
1437
|
-
return false;
|
|
1438
|
-
};
|
|
1439
|
-
return BsTabControlComponent;
|
|
1440
|
-
}());
|
|
1441
|
-
BsTabControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1442
|
-
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"] }] });
|
|
1443
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlComponent, decorators: [{
|
|
1444
|
-
type: i0.Component,
|
|
1445
|
-
args: [{
|
|
1446
|
-
selector: 'bs-tab-control',
|
|
1447
|
-
templateUrl: './tab-control.component.html',
|
|
1448
|
-
styleUrls: ['./tab-control.component.scss']
|
|
1449
|
-
}]
|
|
1450
|
-
}], ctorParameters: function () { return []; }, propDecorators: { tabPages: [{
|
|
1451
|
-
type: i0.ContentChildren,
|
|
1452
|
-
args: [BsTabPageComponent]
|
|
1453
|
-
}] } });
|
|
1454
|
-
|
|
1455
|
-
var BsTabControlModule = /** @class */ (function () {
|
|
1456
|
-
function BsTabControlModule() {
|
|
1457
|
-
}
|
|
1458
|
-
return BsTabControlModule;
|
|
1459
|
-
}());
|
|
1460
|
-
BsTabControlModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1461
|
-
BsTabControlModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, declarations: [BsTabControlComponent,
|
|
1462
|
-
BsTabPageComponent], imports: [i1.CommonModule], exports: [BsTabControlComponent,
|
|
1463
|
-
BsTabPageComponent] });
|
|
1464
|
-
BsTabControlModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, imports: [[
|
|
1465
|
-
i1.CommonModule
|
|
1466
|
-
]] });
|
|
1467
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0__namespace, type: BsTabControlModule, decorators: [{
|
|
1468
|
-
type: i0.NgModule,
|
|
1469
|
-
args: [{
|
|
1470
|
-
declarations: [
|
|
1471
|
-
BsTabControlComponent,
|
|
1472
|
-
BsTabPageComponent,
|
|
1473
|
-
],
|
|
1474
|
-
imports: [
|
|
1475
|
-
i1.CommonModule
|
|
1476
|
-
],
|
|
1477
|
-
exports: [
|
|
1478
|
-
BsTabControlComponent,
|
|
1479
|
-
BsTabPageComponent,
|
|
1480
|
-
]
|
|
1481
|
-
}]
|
|
1482
|
-
}] });
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* Generated bundle index. Do not edit.
|
|
1486
|
-
*/
|
|
1487
|
-
|
|
1488
|
-
exports.BsAccordionComponent = BsAccordionComponent;
|
|
1489
|
-
exports.BsAccordionModule = BsAccordionModule;
|
|
1490
|
-
exports.BsAccordionTabComponent = BsAccordionTabComponent;
|
|
1491
|
-
exports.BsAccordionTabHeaderComponent = BsAccordionTabHeaderComponent;
|
|
1492
|
-
exports.BsAlertCloseComponent = BsAlertCloseComponent;
|
|
1493
|
-
exports.BsAlertComponent = BsAlertComponent;
|
|
1494
|
-
exports.BsAlertModule = BsAlertModule;
|
|
1495
|
-
exports.BsCalendarComponent = BsCalendarComponent;
|
|
1496
|
-
exports.BsCalendarModule = BsCalendarModule;
|
|
1497
|
-
exports.BsCardComponent = BsCardComponent;
|
|
1498
|
-
exports.BsCardHeaderComponent = BsCardHeaderComponent;
|
|
1499
|
-
exports.BsCardModule = BsCardModule;
|
|
1500
|
-
exports.BsCarouselComponent = BsCarouselComponent;
|
|
1501
|
-
exports.BsCarouselImageDirective = BsCarouselImageDirective;
|
|
1502
|
-
exports.BsCarouselModule = BsCarouselModule;
|
|
1503
|
-
exports.BsListGroupComponent = BsListGroupComponent;
|
|
1504
|
-
exports.BsListGroupItemComponent = BsListGroupItemComponent;
|
|
1505
|
-
exports.BsListGroupModule = BsListGroupModule;
|
|
1506
|
-
exports.BsNavbarComponent = BsNavbarComponent;
|
|
1507
|
-
exports.BsNavbarDropdownComponent = BsNavbarDropdownComponent;
|
|
1508
|
-
exports.BsNavbarItemComponent = BsNavbarItemComponent;
|
|
1509
|
-
exports.BsNavbarModule = BsNavbarModule;
|
|
1510
|
-
exports.BsNavbarNavComponent = BsNavbarNavComponent;
|
|
1511
|
-
exports.BsTabControlComponent = BsTabControlComponent;
|
|
1512
|
-
exports.BsTabControlModule = BsTabControlModule;
|
|
1513
|
-
exports.BsTabPageComponent = BsTabPageComponent;
|
|
1514
|
-
exports.DropdownToggleDirective = DropdownToggleDirective;
|
|
1515
|
-
exports.NavLinkDirective = NavLinkDirective;
|
|
1516
|
-
exports.NavbarContentDirective = NavbarContentDirective;
|
|
1517
|
-
|
|
1518
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1519
|
-
|
|
1520
|
-
})));
|
|
1521
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap.umd.js.map
|