@mintplayer/ng-bootstrap 13.1.14 → 13.1.15
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/_bootstrap.scss +9 -2
- package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +2 -4
- package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +1 -11
- package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +3 -8
- package/esm2020/lib/components/accordion/accordion.module.mjs +4 -8
- package/esm2020/lib/components/alert/alert/alert.component.mjs +2 -4
- package/esm2020/lib/components/alert/alert-close/alert-close.component.mjs +1 -3
- package/esm2020/lib/components/calendar/calendar.component.mjs +16 -15
- package/esm2020/lib/components/card/card/card.component.mjs +4 -10
- package/esm2020/lib/components/card/card-header/card-header.component.mjs +2 -6
- package/esm2020/lib/components/carousel/carousel/carousel.component.mjs +9 -7
- package/esm2020/lib/components/carousel/carousel-image/carousel-image.directive.mjs +1 -1
- package/esm2020/lib/components/code-snippet/code-snippet.component.mjs +28 -0
- package/esm2020/lib/components/code-snippet/code-snippet.module.mjs +34 -0
- package/esm2020/lib/components/code-snippet/index.mjs +3 -0
- package/esm2020/lib/components/context-menu/context-menu.directive.mjs +1 -1
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +8 -4
- package/esm2020/lib/components/copy/copy.directive.mjs +45 -0
- package/esm2020/lib/components/copy/copy.module.mjs +26 -0
- package/esm2020/lib/components/copy/index.mjs +3 -0
- package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +6 -8
- package/esm2020/lib/components/datatable/datatable-settings.mjs +1 -1
- package/esm2020/lib/components/datatable/datatable.module.mjs +1 -1
- package/esm2020/lib/components/datatable/row-template/row-template.directive.mjs +3 -3
- package/esm2020/lib/components/datepicker/datepicker.component.mjs +32 -7
- package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +1 -1
- package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +12 -16
- package/esm2020/lib/components/for/for.directive.mjs +10 -4
- package/esm2020/lib/components/index.mjs +5 -1
- package/esm2020/lib/components/modal/component/index.mjs +3 -0
- package/esm2020/lib/components/modal/component/modal/modal.component.mjs +13 -0
- package/esm2020/lib/components/modal/component/modal-content/modal-content.component.mjs +27 -0
- package/esm2020/lib/components/modal/directives/index.mjs +4 -0
- package/esm2020/lib/components/modal/directives/modal-body/modal-body.directive.mjs +18 -0
- package/esm2020/lib/components/modal/directives/modal-footer/modal-footer.directive.mjs +18 -0
- package/esm2020/lib/components/modal/directives/modal-header/modal-header.directive.mjs +18 -0
- package/esm2020/lib/components/modal/index.mjs +5 -0
- package/esm2020/lib/components/modal/interfaces/index.mjs +2 -0
- package/esm2020/lib/components/modal/interfaces/modal-animation-meta.mjs +2 -0
- package/esm2020/lib/components/modal/modal.module.mjs +48 -0
- package/esm2020/lib/components/modal/providers/modal-content.provider.mjs +3 -0
- package/esm2020/lib/components/modal/service/modal.service.mjs +52 -0
- package/esm2020/lib/components/multiselect/component/multiselect.component.mjs +34 -0
- package/esm2020/lib/components/multiselect/directives/button-template/button-template.directive.mjs +18 -0
- package/esm2020/lib/components/multiselect/directives/footer-template/footer-template.directive.mjs +18 -0
- package/esm2020/lib/components/multiselect/directives/header-template/header-template.directive.mjs +18 -0
- package/esm2020/lib/components/multiselect/directives/index.mjs +4 -0
- package/esm2020/lib/components/multiselect/index.mjs +3 -2
- package/esm2020/lib/components/multiselect/multiselect.module.mjs +21 -6
- package/esm2020/lib/components/navbar/index.mjs +2 -1
- package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +3 -3
- package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +18 -0
- package/esm2020/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.mjs +7 -6
- package/esm2020/lib/components/navbar/navbar-item/navbar-item.component.mjs +16 -5
- package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +1 -1
- package/esm2020/lib/components/navbar/navbar.module.mjs +10 -5
- package/esm2020/lib/components/pagination/pagination/pagination.component.mjs +88 -71
- package/esm2020/lib/components/rating/index.mjs +3 -0
- package/esm2020/lib/components/rating/rating.component.mjs +72 -0
- package/esm2020/lib/components/rating/rating.module.mjs +26 -0
- package/esm2020/lib/components/select2/component/select2.component.mjs +7 -9
- package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +4 -3
- package/esm2020/lib/components/snackbar/snackbar.module.mjs +8 -4
- package/esm2020/lib/components/tab-control/tab-control/tab-control.component.mjs +8 -7
- package/esm2020/lib/components/tab-control/tab-page/tab-page.component.mjs +4 -6
- package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +19 -15
- package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +4 -4
- package/esm2020/lib/components/tooltip/tooltip.module.mjs +8 -4
- package/esm2020/lib/interfaces/date-day-of-month.mjs +1 -1
- package/esm2020/lib/interfaces/index.mjs +2 -1
- package/esm2020/lib/interfaces/week.mjs +1 -1
- package/esm2020/lib/interfaces/weekday.mjs +2 -0
- package/esm2020/lib/pipes/format-bytes/index.mjs +3 -0
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +34 -18
- package/fesm2015/mintplayer-ng-bootstrap.mjs +874 -384
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +865 -381
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/accordion/accordion/accordion.component.d.ts +1 -4
- package/lib/components/accordion/accordion-tab/accordion-tab.component.d.ts +1 -4
- package/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.d.ts +1 -4
- package/lib/components/accordion/accordion.module.d.ts +1 -2
- package/lib/components/alert/alert/alert.component.d.ts +1 -4
- package/lib/components/alert/alert-close/alert-close.component.d.ts +1 -3
- package/lib/components/calendar/calendar.component.d.ts +4 -5
- package/lib/components/card/card/card.component.d.ts +1 -6
- package/lib/components/card/card-header/card-header.component.d.ts +1 -4
- package/lib/components/carousel/carousel/carousel.component.d.ts +9 -9
- package/lib/components/code-snippet/code-snippet.component.d.ts +12 -0
- package/lib/components/code-snippet/code-snippet.module.d.ts +10 -0
- package/lib/components/code-snippet/index.d.ts +2 -0
- package/lib/components/context-menu/context-menu.directive.d.ts +2 -2
- package/lib/components/context-menu/context-menu.module.d.ts +2 -1
- package/lib/components/copy/copy.directive.d.ts +11 -0
- package/lib/components/copy/copy.module.d.ts +8 -0
- package/lib/components/copy/index.d.ts +2 -0
- package/lib/components/datatable/datatable/datatable.component.d.ts +4 -5
- package/lib/components/datatable/row-template/row-template.directive.d.ts +1 -1
- package/lib/components/datepicker/datepicker.component.d.ts +11 -7
- package/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.d.ts +3 -3
- package/lib/components/for/for.directive.d.ts +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/modal/component/index.d.ts +2 -0
- package/lib/components/modal/component/modal/modal.component.d.ts +10 -0
- package/lib/components/modal/component/modal-content/modal-content.component.d.ts +13 -0
- package/lib/components/modal/directives/index.d.ts +3 -0
- package/lib/components/modal/directives/modal-body/modal-body.directive.d.ts +8 -0
- package/lib/components/modal/directives/modal-footer/modal-footer.directive.d.ts +8 -0
- package/lib/components/modal/directives/modal-header/modal-header.directive.d.ts +8 -0
- package/lib/components/modal/index.d.ts +4 -0
- package/lib/components/modal/interfaces/index.d.ts +1 -0
- package/lib/components/modal/interfaces/modal-animation-meta.d.ts +7 -0
- package/lib/components/modal/modal.module.d.ts +13 -0
- package/lib/components/modal/providers/modal-content.provider.d.ts +2 -0
- package/lib/components/modal/service/modal.service.d.ts +14 -0
- package/lib/components/multiselect/{multiselect.component.d.ts → component/multiselect.component.d.ts} +7 -6
- package/lib/components/multiselect/directives/button-template/button-template.directive.d.ts +8 -0
- package/lib/components/multiselect/directives/footer-template/footer-template.directive.d.ts +8 -0
- package/lib/components/multiselect/directives/header-template/header-template.directive.d.ts +8 -0
- package/lib/components/multiselect/directives/index.d.ts +3 -0
- package/lib/components/multiselect/index.d.ts +2 -1
- package/lib/components/multiselect/multiselect.module.d.ts +8 -5
- package/lib/components/navbar/index.d.ts +1 -0
- package/lib/components/navbar/navbar/navbar.component.d.ts +1 -1
- package/lib/components/navbar/navbar-brand/navbar-brand.component.d.ts +6 -0
- package/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.d.ts +4 -4
- package/lib/components/navbar/navbar-item/navbar-item.component.d.ts +3 -4
- package/lib/components/navbar/navbar.module.d.ts +5 -4
- package/lib/components/pagination/pagination/pagination.component.d.ts +9 -10
- package/lib/components/rating/index.d.ts +2 -0
- package/lib/components/rating/rating.component.d.ts +22 -0
- package/lib/components/rating/rating.module.d.ts +8 -0
- package/lib/components/select2/component/select2.component.d.ts +4 -6
- package/lib/components/snackbar/snackbar.module.d.ts +2 -1
- package/lib/components/tab-control/tab-control/tab-control.component.d.ts +4 -6
- package/lib/components/tab-control/tab-page/tab-page.component.d.ts +3 -4
- package/lib/components/toggle-button/toggle-button.component.d.ts +5 -5
- package/lib/components/tooltip/directive/tooltip.directive.d.ts +1 -1
- package/lib/components/tooltip/tooltip.module.d.ts +2 -1
- package/lib/interfaces/date-day-of-month.d.ts +1 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/week.d.ts +1 -1
- package/lib/interfaces/weekday.d.ts +4 -0
- package/lib/pipes/format-bytes/index.d.ts +2 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/services/calendar-month/calendar-month.service.d.ts +2 -0
- package/package.json +3 -2
- package/src/styles/custom.scss +12 -0
- package/src/styles/ngx-highlight-themes/solarized-dark.scss +89 -0
- package/src/styles/utilities/cursor.scss +2 -6
- package/src/styles/utilities/white-space.scss +10 -0
- package/esm2020/lib/components/multiselect/multiselect.component.mjs +0 -36
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ContentChildren, NgModule, Input, Injectable, Pipe, EventEmitter, Output, Directive, HostBinding,
|
|
2
|
+
import { Component, ContentChildren, NgModule, Input, Injectable, Pipe, EventEmitter, Output, Directive, HostBinding, InjectionToken, Inject, HostListener, Injector, ViewChild, Host, SkipSelf, forwardRef, PLATFORM_ID, ContentChild, Optional, ViewChildren, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
5
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
6
5
|
import { SlideUpDownAnimation, FadeInOutAnimation, CarouselSlideAnimation, ColorTransitionAnimation } from '@mintplayer/ng-animations';
|
|
7
6
|
import { Subject, BehaviorSubject, map, takeUntil, filter, take, Observable, combineLatest, debounceTime } from 'rxjs';
|
|
8
7
|
import { map as map$1, takeUntil as takeUntil$1, take as take$1 } from 'rxjs/operators';
|
|
9
|
-
import {
|
|
8
|
+
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
10
9
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
11
10
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
11
|
+
import * as i3 from 'ngx-highlightjs';
|
|
12
|
+
import { HighlightModule } from 'ngx-highlightjs';
|
|
12
13
|
import * as i1$2 from '@mintplayer/ng-click-outside';
|
|
13
14
|
import { ClickOutsideDirective, ClickOutsideModule } from '@mintplayer/ng-click-outside';
|
|
14
15
|
import { FocusOnLoadModule } from '@mintplayer/ng-focus-on-load';
|
|
16
|
+
import * as i1$3 from '@angular/router';
|
|
15
17
|
import { RouterModule, ROUTER_CONFIGURATION } from '@angular/router';
|
|
16
|
-
import * as i3 from '@angular/forms';
|
|
18
|
+
import * as i3$1 from '@angular/forms';
|
|
17
19
|
import { FormsModule } from '@angular/forms';
|
|
18
20
|
|
|
19
21
|
class BsAccordionTabComponent {
|
|
20
22
|
constructor(accordion) {
|
|
21
23
|
this.accordion = accordion;
|
|
22
24
|
}
|
|
23
|
-
ngOnInit() {
|
|
24
|
-
}
|
|
25
|
-
headerClicked(event) {
|
|
26
|
-
if (this.accordion.activeTab === this) {
|
|
27
|
-
this.accordion.activeTab = null;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this.accordion.activeTab = this;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
25
|
}
|
|
34
26
|
BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
27
|
BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionTabComponent, selector: "bs-accordion-tab", ngImport: i0, template: "<div class=\"card\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown] *ngIf=\"accordion.activeTab === this\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card,.card-header,.card-block{border-radius:0}.card{margin-bottom:-1px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [SlideUpDownAnimation] });
|
|
@@ -42,15 +34,13 @@ class BsAccordionComponent {
|
|
|
42
34
|
constructor() {
|
|
43
35
|
this.activeTab = null;
|
|
44
36
|
}
|
|
45
|
-
ngOnInit() {
|
|
46
|
-
}
|
|
47
37
|
}
|
|
48
38
|
BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
39
|
BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
|
|
50
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionComponent, decorators: [{
|
|
51
41
|
type: Component,
|
|
52
42
|
args: [{ selector: 'bs-accordion', template: "<ng-content></ng-content>", styles: [""] }]
|
|
53
|
-
}],
|
|
43
|
+
}], propDecorators: { tabPages: [{
|
|
54
44
|
type: ContentChildren,
|
|
55
45
|
args: [BsAccordionTabComponent]
|
|
56
46
|
}] } });
|
|
@@ -60,8 +50,6 @@ class BsAccordionTabHeaderComponent {
|
|
|
60
50
|
this.accordionTab = accordionTab;
|
|
61
51
|
this.accordion = accordion;
|
|
62
52
|
}
|
|
63
|
-
ngOnInit() {
|
|
64
|
-
}
|
|
65
53
|
headerClicked(event) {
|
|
66
54
|
event.preventDefault();
|
|
67
55
|
if (this.accordion.activeTab === this.accordionTab) {
|
|
@@ -71,15 +59,12 @@ class BsAccordionTabHeaderComponent {
|
|
|
71
59
|
this.accordion.activeTab = this.accordionTab;
|
|
72
60
|
}
|
|
73
61
|
}
|
|
74
|
-
foo(event) {
|
|
75
|
-
event.preventDefault();
|
|
76
|
-
}
|
|
77
62
|
}
|
|
78
63
|
BsAccordionTabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
-
BsAccordionTabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionTabHeaderComponent, selector: "bs-accordion-tab-header", ngImport: i0, template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\"
|
|
64
|
+
BsAccordionTabHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAccordionTabHeaderComponent, selector: "bs-accordion-tab-header", ngImport: i0, template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] });
|
|
80
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionTabHeaderComponent, decorators: [{
|
|
81
66
|
type: Component,
|
|
82
|
-
args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\"
|
|
67
|
+
args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
|
|
83
68
|
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
|
|
84
69
|
|
|
85
70
|
class BsAccordionModule {
|
|
@@ -87,13 +72,11 @@ class BsAccordionModule {
|
|
|
87
72
|
BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
73
|
BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
|
|
89
74
|
BsAccordionTabComponent,
|
|
90
|
-
BsAccordionTabHeaderComponent], imports: [CommonModule,
|
|
91
|
-
BrowserAnimationsModule], exports: [BsAccordionComponent,
|
|
75
|
+
BsAccordionTabHeaderComponent], imports: [CommonModule], exports: [BsAccordionComponent,
|
|
92
76
|
BsAccordionTabComponent,
|
|
93
77
|
BsAccordionTabHeaderComponent] });
|
|
94
78
|
BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, imports: [[
|
|
95
|
-
CommonModule
|
|
96
|
-
BrowserAnimationsModule
|
|
79
|
+
CommonModule
|
|
97
80
|
]] });
|
|
98
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAccordionModule, decorators: [{
|
|
99
82
|
type: NgModule,
|
|
@@ -104,8 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
104
87
|
BsAccordionTabHeaderComponent
|
|
105
88
|
],
|
|
106
89
|
imports: [
|
|
107
|
-
CommonModule
|
|
108
|
-
BrowserAnimationsModule
|
|
90
|
+
CommonModule
|
|
109
91
|
],
|
|
110
92
|
exports: [
|
|
111
93
|
BsAccordionComponent,
|
|
@@ -144,15 +126,13 @@ class BsAlertComponent {
|
|
|
144
126
|
this.colors = Color;
|
|
145
127
|
this.isVisible = true;
|
|
146
128
|
}
|
|
147
|
-
ngOnInit() {
|
|
148
|
-
}
|
|
149
129
|
}
|
|
150
130
|
BsAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
151
131
|
BsAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsAlertComponent, selector: "bs-alert", inputs: { type: "type" }, ngImport: i0, template: "<div class=\"mb-3 overflow-hidden\" *ngIf=\"isVisible\" [@fadeInOut]>\n <div class=\"alert mb-0\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n </div>\n</div>", styles: ["::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [FadeInOutAnimation] });
|
|
152
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsAlertComponent, decorators: [{
|
|
153
133
|
type: Component,
|
|
154
134
|
args: [{ selector: 'bs-alert', animations: [FadeInOutAnimation], template: "<div class=\"mb-3 overflow-hidden\" *ngIf=\"isVisible\" [@fadeInOut]>\n <div class=\"alert mb-0\" [ngClass]=\"'alert-' + colors[type]\">\n <ng-content></ng-content>\n </div>\n</div>", styles: ["::ng-deep .alert .btn{bottom:0;display:inline-flex;align-items:center}\n"] }]
|
|
155
|
-
}],
|
|
135
|
+
}], propDecorators: { type: [{
|
|
156
136
|
type: Input
|
|
157
137
|
}] } });
|
|
158
138
|
|
|
@@ -160,8 +140,6 @@ class BsAlertCloseComponent {
|
|
|
160
140
|
constructor(alert) {
|
|
161
141
|
this.alert = alert;
|
|
162
142
|
}
|
|
163
|
-
ngOnInit() {
|
|
164
|
-
}
|
|
165
143
|
closeAlert() {
|
|
166
144
|
this.alert.isVisible = false;
|
|
167
145
|
}
|
|
@@ -198,23 +176,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
198
176
|
class BsCalendarMonthService {
|
|
199
177
|
getWeeks(month) {
|
|
200
178
|
const firstAndLast = this.getFirstAndLastDayOfMonth(month);
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
179
|
+
const firstOfMonth = this.getMondayBefore(firstAndLast.first);
|
|
180
|
+
const lastOfMonth = this.getSundayAfter(firstAndLast.last);
|
|
181
|
+
const days = this.dateDiff(firstOfMonth, lastOfMonth) + 1;
|
|
182
|
+
const firstDayOffset = (firstAndLast.first.getDay() + 7 - 1) % 7;
|
|
183
|
+
const allDays = this.generateList(days).map(d => d - firstDayOffset).map(d => {
|
|
184
|
+
const wrongDate = new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d);
|
|
185
|
+
const correctDate = new Date(wrongDate.getFullYear(), wrongDate.getMonth(), wrongDate.getDate());
|
|
186
|
+
return {
|
|
187
|
+
date: correctDate,
|
|
188
|
+
dayOfMonth: correctDate.getDate(),
|
|
189
|
+
isInMonth: (correctDate.getFullYear() === month.getFullYear()) && (correctDate.getMonth() === month.getMonth())
|
|
190
|
+
};
|
|
191
|
+
});
|
|
212
192
|
const weeks = this.chunk(allDays, 7);
|
|
213
193
|
const weeksMapped = weeks.map((w, i) => {
|
|
214
194
|
var _a;
|
|
215
195
|
return {
|
|
216
|
-
number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(d => d
|
|
217
|
-
|
|
196
|
+
number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(d => d.isInMonth)) === null || _a === void 0 ? void 0 : _a.dayOfMonth)),
|
|
197
|
+
days: w
|
|
218
198
|
};
|
|
219
199
|
});
|
|
220
200
|
return weeksMapped;
|
|
@@ -239,10 +219,9 @@ class BsCalendarMonthService {
|
|
|
239
219
|
return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
|
|
240
220
|
}
|
|
241
221
|
getFirstAndLastDayOfMonth(date) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
};
|
|
222
|
+
const first = new Date(date.getFullYear(), date.getMonth(), 1);
|
|
223
|
+
const last = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
224
|
+
return { first, last };
|
|
246
225
|
}
|
|
247
226
|
dateDiff(date1, date2) {
|
|
248
227
|
const utc1 = this.toUTC(date1);
|
|
@@ -264,6 +243,21 @@ class BsCalendarMonthService {
|
|
|
264
243
|
}
|
|
265
244
|
return result;
|
|
266
245
|
}
|
|
246
|
+
getMondayBefore(date) {
|
|
247
|
+
const day = date.getDay(), diff = date.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday
|
|
248
|
+
const monday = new Date(date);
|
|
249
|
+
monday.setDate(diff);
|
|
250
|
+
return monday;
|
|
251
|
+
}
|
|
252
|
+
getSundayAfter(date) {
|
|
253
|
+
const day = date.getDay();
|
|
254
|
+
const sunday = new Date(date);
|
|
255
|
+
if (day !== 0) {
|
|
256
|
+
const diff = date.getDate() + 7 - day;
|
|
257
|
+
sunday.setDate(diff);
|
|
258
|
+
}
|
|
259
|
+
return sunday;
|
|
260
|
+
}
|
|
267
261
|
}
|
|
268
262
|
BsCalendarMonthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
269
263
|
BsCalendarMonthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' });
|
|
@@ -308,9 +302,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
308
302
|
}] });
|
|
309
303
|
|
|
310
304
|
class BsCalendarComponent {
|
|
311
|
-
constructor(calendarMonthService
|
|
305
|
+
constructor(calendarMonthService) {
|
|
312
306
|
this.calendarMonthService = calendarMonthService;
|
|
313
|
-
this.ref = ref;
|
|
314
307
|
this.destroyed$ = new Subject();
|
|
315
308
|
//#region CurrentMonth
|
|
316
309
|
this.currentMonth$ = new BehaviorSubject(new Date());
|
|
@@ -319,20 +312,21 @@ class BsCalendarComponent {
|
|
|
319
312
|
//#region SelectedDate
|
|
320
313
|
this.selectedDate$ = new BehaviorSubject(new Date());
|
|
321
314
|
this.selectedDateChange = new EventEmitter();
|
|
322
|
-
//#endregion
|
|
323
|
-
this.daysOfWeek = ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'];
|
|
324
315
|
this.weeks$ = this.currentMonth$
|
|
325
316
|
.pipe(map((month) => this.calendarMonthService.getWeeks(month)))
|
|
326
317
|
.pipe(takeUntil(this.destroyed$));
|
|
327
318
|
this.daysOfWeek$ = this.weeks$
|
|
328
319
|
.pipe(filter((weeks) => weeks.length > 1))
|
|
329
|
-
.pipe(map((weeks) => weeks[1].
|
|
330
|
-
.pipe(map((
|
|
331
|
-
const firstDay =
|
|
320
|
+
.pipe(map((weeks) => weeks[1].days))
|
|
321
|
+
.pipe(map((days) => {
|
|
322
|
+
const firstDay = days[0];
|
|
332
323
|
if (firstDay) {
|
|
333
|
-
return
|
|
324
|
+
return days.map((d) => {
|
|
334
325
|
const date = new Date(firstDay.date.getFullYear(), firstDay.date.getMonth(), d === null || d === void 0 ? void 0 : d.dayOfMonth);
|
|
335
|
-
return
|
|
326
|
+
return {
|
|
327
|
+
short: date.toLocaleString('default', { weekday: 'short' }),
|
|
328
|
+
long: date.toLocaleString('default', { weekday: 'long' })
|
|
329
|
+
};
|
|
336
330
|
});
|
|
337
331
|
}
|
|
338
332
|
else {
|
|
@@ -358,6 +352,7 @@ class BsCalendarComponent {
|
|
|
358
352
|
set selectedDate(value) {
|
|
359
353
|
this.selectedDate$.next(value);
|
|
360
354
|
}
|
|
355
|
+
//#endregion
|
|
361
356
|
ngOnDestroy() {
|
|
362
357
|
this.destroyed$.next(true);
|
|
363
358
|
}
|
|
@@ -388,12 +383,12 @@ class BsCalendarComponent {
|
|
|
388
383
|
}
|
|
389
384
|
}
|
|
390
385
|
}
|
|
391
|
-
BsCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }
|
|
392
|
-
BsCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCalendarComponent, selector: "bs-calendar", inputs: { currentMonth: "currentMonth", selectedDate: "selectedDate" }, outputs: { currentMonthChange: "currentMonthChange", selectedDateChange: "selectedDateChange" }, ngImport: i0, template: "<table class=\"table w-auto mb-0\">\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 {{ currentMonth$ | async | monthName | ucFirst }}\n {{ (currentMonth$ | async)?.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$ | async)\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate$ | async, day.date)\" *ngFor=\"let day of week.
|
|
386
|
+
BsCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarComponent, deps: [{ token: BsCalendarMonthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
387
|
+
BsCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCalendarComponent, selector: "bs-calendar", inputs: { currentMonth: "currentMonth", selectedDate: "selectedDate" }, outputs: { currentMonthChange: "currentMonthChange", selectedDateChange: "selectedDateChange" }, ngImport: i0, template: "<table class=\"table w-auto mb-0\">\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 {{ currentMonth$ | async | monthName | ucFirst }}\n {{ (currentMonth$ | async)?.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$ | async\" [title]=\"dayOfWeek.long\">\n {{ dayOfWeek.short }}\n </th>\n </tr>\n <tr *ngFor=\"let week of (weeks$ | async)\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate$ | async, day.date)\" *ngFor=\"let day of week.days\" (click)=\"goto(day)\">\n <span *ngIf=\"day !== null\" [class.text-muted]=\"!day.isInMonth\">{{ day.dayOfMonth }}</span>\n </td>\n </tr>\n</table>", styles: [".text-muted{color:#9ea7af!important}table{border-collapse:collapse;border:1px solid rgba(0,0,0,.125);background:#fff}table td,table th{width:40px;height:40px;text-align:center}table td span,table th span{cursor:pointer;white-space:nowrap}table td.selected{background-color:#0d6efd;color:#fff}table th{background-color:#f8f9fa}table tr{border-top:none}table tr:first-child>td{border-bottom:1px solid rgba(0,0,0,.125)}table tr:nth-of-type(2)>th:not(:nth-of-type(1)){border-bottom:1px solid rgba(0,0,0,.125)}table tr:not(:nth-of-type(2))>th:nth-of-type(1){border-right:1px solid rgba(0,0,0,.125)}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "ucFirst": UcFirstPipe, "monthName": MonthNamePipe, "async": i1.AsyncPipe } });
|
|
393
388
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCalendarComponent, decorators: [{
|
|
394
389
|
type: Component,
|
|
395
|
-
args: [{ selector: 'bs-calendar', template: "<table class=\"table w-auto mb-0\">\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 {{ currentMonth$ | async | monthName | ucFirst }}\n {{ (currentMonth$ | async)?.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$ | async)\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate$ | async, day.date)\" *ngFor=\"let day of week.
|
|
396
|
-
}], ctorParameters: function () { return [{ type: BsCalendarMonthService }
|
|
390
|
+
args: [{ selector: 'bs-calendar', template: "<table class=\"table w-auto mb-0\">\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 {{ currentMonth$ | async | monthName | ucFirst }}\n {{ (currentMonth$ | async)?.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$ | async\" [title]=\"dayOfWeek.long\">\n {{ dayOfWeek.short }}\n </th>\n </tr>\n <tr *ngFor=\"let week of (weeks$ | async)\">\n <th>\n {{ week.number }}\n </th>\n <td [class.selected]=\"day === null ? false : isSameDate(selectedDate$ | async, day.date)\" *ngFor=\"let day of week.days\" (click)=\"goto(day)\">\n <span *ngIf=\"day !== null\" [class.text-muted]=\"!day.isInMonth\">{{ day.dayOfMonth }}</span>\n </td>\n </tr>\n</table>", styles: [".text-muted{color:#9ea7af!important}table{border-collapse:collapse;border:1px solid rgba(0,0,0,.125);background:#fff}table td,table th{width:40px;height:40px;text-align:center}table td span,table th span{cursor:pointer;white-space:nowrap}table td.selected{background-color:#0d6efd;color:#fff}table th{background-color:#f8f9fa}table tr{border-top:none}table tr:first-child>td{border-bottom:1px solid rgba(0,0,0,.125)}table tr:nth-of-type(2)>th:not(:nth-of-type(1)){border-bottom:1px solid rgba(0,0,0,.125)}table tr:not(:nth-of-type(2))>th:nth-of-type(1){border-right:1px solid rgba(0,0,0,.125)}\n"] }]
|
|
391
|
+
}], ctorParameters: function () { return [{ type: BsCalendarMonthService }]; }, propDecorators: { currentMonthChange: [{
|
|
397
392
|
type: Output
|
|
398
393
|
}], currentMonth: [{
|
|
399
394
|
type: Input
|
|
@@ -515,32 +510,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
515
510
|
}] });
|
|
516
511
|
|
|
517
512
|
class BsCardComponent {
|
|
518
|
-
constructor() {
|
|
519
|
-
}
|
|
520
|
-
ngOnInit() {
|
|
521
|
-
}
|
|
522
|
-
ngAfterViewInit() {
|
|
523
|
-
}
|
|
524
513
|
}
|
|
525
514
|
BsCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
526
|
-
BsCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCardComponent, selector: "bs-card", ngImport: i0, template: "<div class=\"card\"
|
|
515
|
+
BsCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCardComponent, selector: "bs-card", ngImport: i0, template: "<div class=\"card\">\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"] });
|
|
527
516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardComponent, decorators: [{
|
|
528
517
|
type: Component,
|
|
529
|
-
args: [{ selector: 'bs-card', template: "<div class=\"card\"
|
|
530
|
-
}]
|
|
518
|
+
args: [{ selector: 'bs-card', template: "<div class=\"card\">\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"] }]
|
|
519
|
+
}] });
|
|
531
520
|
|
|
532
521
|
class BsCardHeaderComponent {
|
|
533
|
-
constructor() {
|
|
534
|
-
}
|
|
535
|
-
ngOnInit() {
|
|
536
|
-
}
|
|
537
522
|
}
|
|
538
523
|
BsCardHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
539
524
|
BsCardHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCardHeaderComponent, selector: "bs-card-header", ngImport: i0, template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] });
|
|
540
525
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
|
|
541
526
|
type: Component,
|
|
542
527
|
args: [{ selector: 'bs-card-header', template: "<div class=\"card-header\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
|
|
543
|
-
}]
|
|
528
|
+
}] });
|
|
544
529
|
|
|
545
530
|
class BsCardModule {
|
|
546
531
|
}
|
|
@@ -582,9 +567,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
582
567
|
class BsCarouselComponent {
|
|
583
568
|
constructor() {
|
|
584
569
|
this.animationsDisabled = false;
|
|
585
|
-
|
|
570
|
+
this.indicators = true;
|
|
586
571
|
this._animation = 'slide';
|
|
587
|
-
//#endregion
|
|
588
572
|
this.destroyed$ = new Subject();
|
|
589
573
|
this.currentImageCounter$ = new BehaviorSubject(-1);
|
|
590
574
|
this.currentImageIndex$ = this.currentImageCounter$
|
|
@@ -597,7 +581,6 @@ class BsCarouselComponent {
|
|
|
597
581
|
.pipe(map$1((index) => { var _a, _b; return (_b = (_a = this.images.get(index)) === null || _a === void 0 ? void 0 : _a.itemTemplate) !== null && _b !== void 0 ? _b : null; }))
|
|
598
582
|
.pipe(takeUntil$1(this.destroyed$));
|
|
599
583
|
}
|
|
600
|
-
ngOnInit() { }
|
|
601
584
|
ngOnDestroy() {
|
|
602
585
|
this.destroyed$.next(true);
|
|
603
586
|
}
|
|
@@ -609,6 +592,7 @@ class BsCarouselComponent {
|
|
|
609
592
|
this.currentImageCounter$.next(-1);
|
|
610
593
|
}
|
|
611
594
|
}
|
|
595
|
+
//#region Animation
|
|
612
596
|
set animation(value) {
|
|
613
597
|
this.animationsDisabled = true;
|
|
614
598
|
this._animation = value;
|
|
@@ -619,6 +603,7 @@ class BsCarouselComponent {
|
|
|
619
603
|
get animation() {
|
|
620
604
|
return this._animation;
|
|
621
605
|
}
|
|
606
|
+
//#endregion
|
|
622
607
|
previousImage() {
|
|
623
608
|
this.currentImageCounter$
|
|
624
609
|
.pipe(take$1(1))
|
|
@@ -642,18 +627,20 @@ class BsCarouselComponent {
|
|
|
642
627
|
}
|
|
643
628
|
}
|
|
644
629
|
BsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
645
|
-
BsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCarouselComponent, selector: "bs-carousel", inputs: { animation: "animation" }, host: { properties: { "@.disabled": "this.animationsDisabled" } }, queries: [{ propertyName: "images", predicate: BsCarouselImageDirective }], ngImport: i0, template: "<div class=\"carousel slide\">\n <div class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\"\n [class.active]=\"(currentImageIndex$ | async) === i\" data-bs-target\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\" *ngIf=\"animation === 'slide'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n <div class=\"carousel-inner\" *ngIf=\"animation === 'fade'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" @fadeInOut *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"], directives: [{ type: i1.
|
|
630
|
+
BsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCarouselComponent, selector: "bs-carousel", inputs: { indicators: "indicators", animation: "animation" }, host: { properties: { "@.disabled": "this.animationsDisabled" } }, queries: [{ propertyName: "images", predicate: BsCarouselImageDirective }], ngImport: i0, template: "<div class=\"carousel slide\">\n <div *ngIf=\"indicators\" class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\"\n [class.active]=\"(currentImageIndex$ | async) === i\" data-bs-target\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\" *ngIf=\"animation === 'slide'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n <div class=\"carousel-inner\" *ngIf=\"animation === 'fade'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" @fadeInOut *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i1.AsyncPipe }, animations: [FadeInOutAnimation, CarouselSlideAnimation] });
|
|
646
631
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCarouselComponent, decorators: [{
|
|
647
632
|
type: Component,
|
|
648
|
-
args: [{ selector: 'bs-carousel', animations: [FadeInOutAnimation, CarouselSlideAnimation], template: "<div class=\"carousel slide\">\n <div class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\"\n [class.active]=\"(currentImageIndex$ | async) === i\" data-bs-target\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\" *ngIf=\"animation === 'slide'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n <div class=\"carousel-inner\" *ngIf=\"animation === 'fade'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" @fadeInOut *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"] }]
|
|
633
|
+
args: [{ selector: 'bs-carousel', animations: [FadeInOutAnimation, CarouselSlideAnimation], template: "<div class=\"carousel slide\">\n <div *ngIf=\"indicators\" class=\"carousel-indicators\">\n <button *ngFor=\"let image of images; let i = index\" type=\"button\" (click)=\"setCurrentImage(i)\"\n [class.active]=\"(currentImageIndex$ | async) === i\" data-bs-target\n [attr.aria-current]=\"(currentImageIndex$ | async) === i ? true : null\"\n [attr.aria-label]=\"'Slide ' + i\"></button>\n </div>\n\n <div class=\"carousel-inner\" [@carouselSlide]=\"currentImageCounter$ | async\" *ngIf=\"animation === 'slide'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n <div class=\"carousel-inner\" *ngIf=\"animation === 'fade'\">\n <ng-container *ngFor=\"let image of images; let i = index\">\n <div class=\"carousel-item\" [class.active]=\"true\" @fadeInOut *ngIf=\"(currentImageIndex$ | async) === i\">\n <ng-container [ngTemplateOutlet]=\"image.itemTemplate\"></ng-container> \n </div>\n </ng-container>\n </div>\n\n <button class=\"carousel-control-prev\" type=\"button\" (click)=\"previousImage()\">\n <span class=\"carousel-control-prev-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Previous</span>\n </button>\n <button class=\"carousel-control-next\" type=\"button\" (click)=\"nextImage()\">\n <span class=\"carousel-control-next-icon\" aria-hidden=\"true\"></span>\n <span class=\"visually-hidden\">Next</span>\n </button>\n</div>", styles: [".carousel{min-height:100px}\n"] }]
|
|
649
634
|
}], ctorParameters: function () { return []; }, propDecorators: { animationsDisabled: [{
|
|
650
635
|
type: HostBinding,
|
|
651
636
|
args: ['@.disabled']
|
|
652
|
-
}],
|
|
637
|
+
}], indicators: [{
|
|
653
638
|
type: Input
|
|
654
639
|
}], images: [{
|
|
655
640
|
type: ContentChildren,
|
|
656
641
|
args: [BsCarouselImageDirective]
|
|
642
|
+
}], animation: [{
|
|
643
|
+
type: Input
|
|
657
644
|
}] } });
|
|
658
645
|
|
|
659
646
|
class BsCarouselModule {
|
|
@@ -682,6 +669,257 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
682
669
|
}]
|
|
683
670
|
}] });
|
|
684
671
|
|
|
672
|
+
const SNACKBAR_CONTENT = new InjectionToken('SnackbarContent');
|
|
673
|
+
|
|
674
|
+
class BsSnackbarComponent {
|
|
675
|
+
constructor(content) {
|
|
676
|
+
this.displayBlock = true;
|
|
677
|
+
this.width100 = true;
|
|
678
|
+
this.instance = null;
|
|
679
|
+
//#region Monitor @slideUpDown hooks
|
|
680
|
+
this.animationState = '';
|
|
681
|
+
this.animationStateChanged = new EventEmitter();
|
|
682
|
+
this.content = content;
|
|
683
|
+
}
|
|
684
|
+
onAnimationChanged(event) {
|
|
685
|
+
this.animationStateChanged.emit(event);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
BsSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarComponent, deps: [{ token: SNACKBAR_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
689
|
+
BsSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsSnackbarComponent, selector: "bs-snackbar", host: { properties: { "class.d-block": "this.displayBlock", "class.w-100": "this.width100" } }, ngImport: i0, template: "<div [@slideUpDown]=\"animationState\"\n (@slideUpDown.start)=\"onAnimationChanged($event)\"\n (@slideUpDown.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [":host{background:#232323;color:rgba(var(--bs-light-rgb))}\n"], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [SlideUpDownAnimation] });
|
|
690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarComponent, decorators: [{
|
|
691
|
+
type: Component,
|
|
692
|
+
args: [{ selector: 'bs-snackbar', animations: [SlideUpDownAnimation], template: "<div [@slideUpDown]=\"animationState\"\n (@slideUpDown.start)=\"onAnimationChanged($event)\"\n (@slideUpDown.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [":host{background:#232323;color:rgba(var(--bs-light-rgb))}\n"] }]
|
|
693
|
+
}], ctorParameters: function () {
|
|
694
|
+
return [{ type: i0.TemplateRef, decorators: [{
|
|
695
|
+
type: Inject,
|
|
696
|
+
args: [SNACKBAR_CONTENT]
|
|
697
|
+
}] }];
|
|
698
|
+
}, propDecorators: { displayBlock: [{
|
|
699
|
+
type: HostBinding,
|
|
700
|
+
args: ['class.d-block']
|
|
701
|
+
}], width100: [{
|
|
702
|
+
type: HostBinding,
|
|
703
|
+
args: ['class.w-100']
|
|
704
|
+
}] } });
|
|
705
|
+
|
|
706
|
+
class BsSnackbarCloseDirective {
|
|
707
|
+
constructor(snackbarService) {
|
|
708
|
+
this.snackbarService = snackbarService;
|
|
709
|
+
}
|
|
710
|
+
onClick() {
|
|
711
|
+
this.snackbarService.hide(this.bsSnackbarClose);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
BsSnackbarCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarCloseDirective, deps: [{ token: BsSnackbarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
715
|
+
BsSnackbarCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsSnackbarCloseDirective, selector: "[bsSnackbarClose]", inputs: { bsSnackbarClose: "bsSnackbarClose" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarCloseDirective, decorators: [{
|
|
717
|
+
type: Directive,
|
|
718
|
+
args: [{
|
|
719
|
+
selector: '[bsSnackbarClose]'
|
|
720
|
+
}]
|
|
721
|
+
}], ctorParameters: function () { return [{ type: BsSnackbarService }]; }, propDecorators: { bsSnackbarClose: [{
|
|
722
|
+
type: Input
|
|
723
|
+
}], onClick: [{
|
|
724
|
+
type: HostListener,
|
|
725
|
+
args: ['click']
|
|
726
|
+
}] } });
|
|
727
|
+
|
|
728
|
+
class BsSnackbarModule {
|
|
729
|
+
}
|
|
730
|
+
BsSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
731
|
+
BsSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, declarations: [BsSnackbarComponent,
|
|
732
|
+
BsSnackbarCloseDirective], imports: [CommonModule,
|
|
733
|
+
OverlayModule], exports: [BsSnackbarComponent,
|
|
734
|
+
BsSnackbarCloseDirective] });
|
|
735
|
+
BsSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, providers: [
|
|
736
|
+
// { provide: BsSnackbarComponent, useExisting: forwardRef(() => BsSnackbarComponent) }
|
|
737
|
+
// { provide: BsSnackbarComponent, useClass: BsSnackbarComponent }
|
|
738
|
+
], imports: [[
|
|
739
|
+
CommonModule,
|
|
740
|
+
OverlayModule
|
|
741
|
+
]] });
|
|
742
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, decorators: [{
|
|
743
|
+
type: NgModule,
|
|
744
|
+
args: [{
|
|
745
|
+
declarations: [
|
|
746
|
+
BsSnackbarComponent,
|
|
747
|
+
BsSnackbarCloseDirective
|
|
748
|
+
],
|
|
749
|
+
imports: [
|
|
750
|
+
CommonModule,
|
|
751
|
+
OverlayModule
|
|
752
|
+
],
|
|
753
|
+
exports: [
|
|
754
|
+
BsSnackbarComponent,
|
|
755
|
+
BsSnackbarCloseDirective
|
|
756
|
+
],
|
|
757
|
+
providers: [
|
|
758
|
+
// { provide: BsSnackbarComponent, useExisting: forwardRef(() => BsSnackbarComponent) }
|
|
759
|
+
// { provide: BsSnackbarComponent, useClass: BsSnackbarComponent }
|
|
760
|
+
]
|
|
761
|
+
}]
|
|
762
|
+
}] });
|
|
763
|
+
|
|
764
|
+
class BsSnackbarService {
|
|
765
|
+
constructor(overlay, parentInjector, componentFactoryResolver) {
|
|
766
|
+
this.overlay = overlay;
|
|
767
|
+
this.parentInjector = parentInjector;
|
|
768
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
769
|
+
}
|
|
770
|
+
show(template) {
|
|
771
|
+
const injector = Injector.create({
|
|
772
|
+
providers: [{ provide: SNACKBAR_CONTENT, useValue: template }],
|
|
773
|
+
parent: this.parentInjector
|
|
774
|
+
});
|
|
775
|
+
const portal = new ComponentPortal(BsSnackbarComponent, null, injector, this.componentFactoryResolver);
|
|
776
|
+
const overlayRef = this.overlay.create({
|
|
777
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
778
|
+
positionStrategy: this.overlay.position()
|
|
779
|
+
.global().centerHorizontally().bottom('0'),
|
|
780
|
+
width: '100%'
|
|
781
|
+
});
|
|
782
|
+
const componentInstance = overlayRef.attach(portal);
|
|
783
|
+
componentInstance.instance['instance'] = {
|
|
784
|
+
component: componentInstance,
|
|
785
|
+
overlay: overlayRef
|
|
786
|
+
};
|
|
787
|
+
return componentInstance.instance;
|
|
788
|
+
}
|
|
789
|
+
hide(snackbar) {
|
|
790
|
+
snackbar.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => {
|
|
791
|
+
var _a;
|
|
792
|
+
(_a = snackbar['instance']) === null || _a === void 0 ? void 0 : _a.overlay.dispose();
|
|
793
|
+
});
|
|
794
|
+
snackbar.animationState = 'void';
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
BsSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
798
|
+
BsSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, providedIn: BsSnackbarModule });
|
|
799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, decorators: [{
|
|
800
|
+
type: Injectable,
|
|
801
|
+
args: [{
|
|
802
|
+
providedIn: BsSnackbarModule
|
|
803
|
+
}]
|
|
804
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; } });
|
|
805
|
+
|
|
806
|
+
class BsCopyDirective {
|
|
807
|
+
constructor(doc) {
|
|
808
|
+
this.bsCopy = null;
|
|
809
|
+
this.bsCopied = new EventEmitter();
|
|
810
|
+
this.doc = doc;
|
|
811
|
+
}
|
|
812
|
+
click(event) {
|
|
813
|
+
event.preventDefault();
|
|
814
|
+
const listener = (e) => {
|
|
815
|
+
var _a;
|
|
816
|
+
if (!!this.bsCopy && !!window) {
|
|
817
|
+
const clipboard = e.clipboardData || window['clipboardData'] || null;
|
|
818
|
+
if (clipboard) {
|
|
819
|
+
clipboard.setData('text', (_a = this.bsCopy) === null || _a === void 0 ? void 0 : _a.toString());
|
|
820
|
+
e.preventDefault();
|
|
821
|
+
this.bsCopied.emit(this.bsCopy);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
this.doc.addEventListener('copy', listener, false);
|
|
826
|
+
this.doc.execCommand('copy');
|
|
827
|
+
this.doc.removeEventListener('copy', listener, false);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
BsCopyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyDirective, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
831
|
+
BsCopyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsCopyDirective, selector: "[bsCopy]", inputs: { bsCopy: "bsCopy" }, outputs: { bsCopied: "bsCopied" }, host: { listeners: { "click": "click($event)" } }, ngImport: i0 });
|
|
832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyDirective, decorators: [{
|
|
833
|
+
type: Directive,
|
|
834
|
+
args: [{
|
|
835
|
+
selector: '[bsCopy]',
|
|
836
|
+
}]
|
|
837
|
+
}], ctorParameters: function () {
|
|
838
|
+
return [{ type: undefined, decorators: [{
|
|
839
|
+
type: Inject,
|
|
840
|
+
args: [DOCUMENT]
|
|
841
|
+
}] }];
|
|
842
|
+
}, propDecorators: { bsCopy: [{
|
|
843
|
+
type: Input
|
|
844
|
+
}], bsCopied: [{
|
|
845
|
+
type: Output
|
|
846
|
+
}], click: [{
|
|
847
|
+
type: HostListener,
|
|
848
|
+
args: ['click', ['$event']]
|
|
849
|
+
}] } });
|
|
850
|
+
|
|
851
|
+
class BsCodeSnippetComponent {
|
|
852
|
+
constructor(snackbarService) {
|
|
853
|
+
this.snackbarService = snackbarService;
|
|
854
|
+
this.htmlToCopy = '';
|
|
855
|
+
}
|
|
856
|
+
copiedHtml() {
|
|
857
|
+
const snackbar = this.snackbarService.show(this.copiedTemplate);
|
|
858
|
+
setTimeout(() => this.snackbarService.hide(snackbar), 3000);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
BsCodeSnippetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetComponent, deps: [{ token: BsSnackbarService }], target: i0.ɵɵFactoryTarget.Component });
|
|
862
|
+
BsCodeSnippetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsCodeSnippetComponent, selector: "bs-code-snippet", inputs: { htmlToCopy: "htmlToCopy" }, viewQueries: [{ propertyName: "copiedTemplate", first: true, predicate: ["copiedTemplate"], descendants: true }], ngImport: i0, template: "<div class=\"position-relative\">\n <button #copyBtn [bsCopy]=\"htmlToCopy\" (bsCopied)=\"copiedHtml()\" class=\"btn btn-link rounded-0 text-light position-absolute copy-btn\">\n Copy html\n </button>\n <pre class=\"white-space-normal\">\n <code class=\"d-block white-space-pre\" [highlight]=\"htmlToCopy\"></code>\n </pre>\n <ng-template #copiedTemplate>\n <div class=\"p-3\">Copied!</div>\n </ng-template>\n</div>", styles: [".copy-btn{right:0}\n"], directives: [{ type: BsCopyDirective, selector: "[bsCopy]", inputs: ["bsCopy"], outputs: ["bsCopied"] }, { type: i3.Highlight, selector: "[highlight]", inputs: ["highlight", "languages", "lineNumbers"], outputs: ["highlighted"] }] });
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
|
|
864
|
+
type: Component,
|
|
865
|
+
args: [{ selector: 'bs-code-snippet', template: "<div class=\"position-relative\">\n <button #copyBtn [bsCopy]=\"htmlToCopy\" (bsCopied)=\"copiedHtml()\" class=\"btn btn-link rounded-0 text-light position-absolute copy-btn\">\n Copy html\n </button>\n <pre class=\"white-space-normal\">\n <code class=\"d-block white-space-pre\" [highlight]=\"htmlToCopy\"></code>\n </pre>\n <ng-template #copiedTemplate>\n <div class=\"p-3\">Copied!</div>\n </ng-template>\n</div>", styles: [".copy-btn{right:0}\n"] }]
|
|
866
|
+
}], ctorParameters: function () { return [{ type: BsSnackbarService }]; }, propDecorators: { htmlToCopy: [{
|
|
867
|
+
type: Input
|
|
868
|
+
}], copiedTemplate: [{
|
|
869
|
+
type: ViewChild,
|
|
870
|
+
args: ['copiedTemplate']
|
|
871
|
+
}] } });
|
|
872
|
+
|
|
873
|
+
class BsCopyModule {
|
|
874
|
+
}
|
|
875
|
+
BsCopyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
876
|
+
BsCopyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyModule, declarations: [BsCopyDirective], imports: [CommonModule], exports: [BsCopyDirective] });
|
|
877
|
+
BsCopyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyModule, imports: [[
|
|
878
|
+
CommonModule
|
|
879
|
+
]] });
|
|
880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCopyModule, decorators: [{
|
|
881
|
+
type: NgModule,
|
|
882
|
+
args: [{
|
|
883
|
+
declarations: [
|
|
884
|
+
BsCopyDirective
|
|
885
|
+
],
|
|
886
|
+
imports: [
|
|
887
|
+
CommonModule
|
|
888
|
+
],
|
|
889
|
+
exports: [
|
|
890
|
+
BsCopyDirective
|
|
891
|
+
]
|
|
892
|
+
}]
|
|
893
|
+
}] });
|
|
894
|
+
|
|
895
|
+
class BsCodeSnippetModule {
|
|
896
|
+
}
|
|
897
|
+
BsCodeSnippetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
898
|
+
BsCodeSnippetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetModule, declarations: [BsCodeSnippetComponent], imports: [CommonModule,
|
|
899
|
+
BsCopyModule,
|
|
900
|
+
HighlightModule], exports: [BsCodeSnippetComponent] });
|
|
901
|
+
BsCodeSnippetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetModule, imports: [[
|
|
902
|
+
CommonModule,
|
|
903
|
+
BsCopyModule,
|
|
904
|
+
HighlightModule
|
|
905
|
+
]] });
|
|
906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsCodeSnippetModule, decorators: [{
|
|
907
|
+
type: NgModule,
|
|
908
|
+
args: [{
|
|
909
|
+
declarations: [
|
|
910
|
+
BsCodeSnippetComponent
|
|
911
|
+
],
|
|
912
|
+
imports: [
|
|
913
|
+
CommonModule,
|
|
914
|
+
BsCopyModule,
|
|
915
|
+
HighlightModule
|
|
916
|
+
],
|
|
917
|
+
exports: [
|
|
918
|
+
BsCodeSnippetComponent
|
|
919
|
+
]
|
|
920
|
+
}]
|
|
921
|
+
}] });
|
|
922
|
+
|
|
685
923
|
class BsContextMenuDirective {
|
|
686
924
|
constructor(overlay, templateRef, viewContainerRef, element) {
|
|
687
925
|
this.overlay = overlay;
|
|
@@ -759,9 +997,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
759
997
|
class BsContextMenuModule {
|
|
760
998
|
}
|
|
761
999
|
BsContextMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsContextMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
762
|
-
BsContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsContextMenuModule, declarations: [BsContextMenuDirective], imports: [CommonModule
|
|
1000
|
+
BsContextMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsContextMenuModule, declarations: [BsContextMenuDirective], imports: [CommonModule,
|
|
1001
|
+
OverlayModule], exports: [BsContextMenuDirective] });
|
|
763
1002
|
BsContextMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsContextMenuModule, imports: [[
|
|
764
|
-
CommonModule
|
|
1003
|
+
CommonModule,
|
|
1004
|
+
OverlayModule
|
|
765
1005
|
]] });
|
|
766
1006
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsContextMenuModule, decorators: [{
|
|
767
1007
|
type: NgModule,
|
|
@@ -770,7 +1010,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
770
1010
|
BsContextMenuDirective
|
|
771
1011
|
],
|
|
772
1012
|
imports: [
|
|
773
|
-
CommonModule
|
|
1013
|
+
CommonModule,
|
|
1014
|
+
OverlayModule
|
|
774
1015
|
],
|
|
775
1016
|
exports: [
|
|
776
1017
|
BsContextMenuDirective
|
|
@@ -849,85 +1090,80 @@ class BsPaginationComponent {
|
|
|
849
1090
|
/** The number of boxes (excluding arrows) that's being shown on the pagination component. */
|
|
850
1091
|
this.visibleNumberOfNumberBoxes$ = new Observable();
|
|
851
1092
|
this._selectedPageNumber = 0;
|
|
852
|
-
this.selectedPageNumberChange = new EventEmitter();
|
|
853
1093
|
this._numberOfBoxes = 0;
|
|
854
1094
|
this._pageNumbers = [];
|
|
855
1095
|
this._showArrows = true;
|
|
1096
|
+
//#region SelectedPageNumber
|
|
1097
|
+
this.selectedPageNumberChange = new EventEmitter();
|
|
856
1098
|
this.destroyed$ = new Subject();
|
|
857
|
-
this.visibleNumberOfNumberBoxes$ =
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
.
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
}));
|
|
902
|
-
this.isLastPage$ =
|
|
903
|
-
combineLatest([this.pageNumbers$, this.selectedPageNumber$])
|
|
904
|
-
.pipe(takeUntil(this.destroyed$))
|
|
905
|
-
.pipe(map(([pageNumbers, selectedPageNumber]) => {
|
|
906
|
-
return pageNumbers.indexOf(selectedPageNumber) === (pageNumbers.length - 1);
|
|
1099
|
+
this.visibleNumberOfNumberBoxes$ = combineLatest([
|
|
1100
|
+
this.numberOfBoxes$,
|
|
1101
|
+
this.pageNumbers$,
|
|
1102
|
+
this.showArrows$,
|
|
1103
|
+
])
|
|
1104
|
+
.pipe(takeUntil(this.destroyed$))
|
|
1105
|
+
.pipe(map(([numberOfBoxes, pageNumbers, showArrows]) => {
|
|
1106
|
+
if (numberOfBoxes <= 0) {
|
|
1107
|
+
return pageNumbers.length;
|
|
1108
|
+
}
|
|
1109
|
+
else if (!showArrows) {
|
|
1110
|
+
return Math.min(numberOfBoxes, pageNumbers.length);
|
|
1111
|
+
}
|
|
1112
|
+
else if (numberOfBoxes <= 2) {
|
|
1113
|
+
return Math.min(1, pageNumbers.length);
|
|
1114
|
+
}
|
|
1115
|
+
else {
|
|
1116
|
+
return Math.min(numberOfBoxes - 2, pageNumbers.length);
|
|
1117
|
+
}
|
|
1118
|
+
}));
|
|
1119
|
+
this.shownPageNumbers$ = combineLatest([
|
|
1120
|
+
this.pageNumbers$,
|
|
1121
|
+
this.selectedPageNumber$,
|
|
1122
|
+
this.visibleNumberOfNumberBoxes$,
|
|
1123
|
+
])
|
|
1124
|
+
.pipe(takeUntil(this.destroyed$))
|
|
1125
|
+
.pipe(map(([pageNumbers, selectedPageNumber, visibleNumberOfNumberBoxes]) => {
|
|
1126
|
+
let startIndex = 0;
|
|
1127
|
+
const half = Math.round((visibleNumberOfNumberBoxes - 1) / 2);
|
|
1128
|
+
if (pageNumbers.indexOf(selectedPageNumber) < half) {
|
|
1129
|
+
startIndex = 0;
|
|
1130
|
+
}
|
|
1131
|
+
else if (pageNumbers.indexOf(selectedPageNumber) >=
|
|
1132
|
+
pageNumbers.length - half) {
|
|
1133
|
+
startIndex = pageNumbers.length - visibleNumberOfNumberBoxes;
|
|
1134
|
+
}
|
|
1135
|
+
else {
|
|
1136
|
+
startIndex = pageNumbers.indexOf(selectedPageNumber) - half;
|
|
1137
|
+
}
|
|
1138
|
+
return [...Array(visibleNumberOfNumberBoxes).keys()]
|
|
1139
|
+
.map((p) => p + startIndex)
|
|
1140
|
+
.map((p) => ({
|
|
1141
|
+
page: pageNumbers[p],
|
|
1142
|
+
selected: pageNumbers[p] === selectedPageNumber,
|
|
907
1143
|
}));
|
|
1144
|
+
}));
|
|
1145
|
+
this.isFirstPage$ = combineLatest([
|
|
1146
|
+
this.pageNumbers$,
|
|
1147
|
+
this.selectedPageNumber$,
|
|
1148
|
+
])
|
|
1149
|
+
.pipe(takeUntil(this.destroyed$))
|
|
1150
|
+
.pipe(map(([pageNumbers, selectedPageNumber]) => {
|
|
1151
|
+
return pageNumbers.indexOf(selectedPageNumber) === 0;
|
|
1152
|
+
}));
|
|
1153
|
+
this.isLastPage$ = combineLatest([
|
|
1154
|
+
this.pageNumbers$,
|
|
1155
|
+
this.selectedPageNumber$,
|
|
1156
|
+
])
|
|
1157
|
+
.pipe(takeUntil(this.destroyed$))
|
|
1158
|
+
.pipe(map(([pageNumbers, selectedPageNumber]) => {
|
|
1159
|
+
return (pageNumbers.indexOf(selectedPageNumber) === pageNumbers.length - 1);
|
|
1160
|
+
}));
|
|
908
1161
|
this.selectedPageNumber$
|
|
909
1162
|
.pipe(takeUntil(this.destroyed$))
|
|
910
1163
|
.subscribe((selectedPageNumber) => {
|
|
911
1164
|
this.selectedPageNumberChange.emit(selectedPageNumber);
|
|
912
1165
|
});
|
|
913
1166
|
}
|
|
914
|
-
ngOnInit() {
|
|
915
|
-
}
|
|
916
|
-
ngOnDestroy() {
|
|
917
|
-
this.destroyed$.next(true);
|
|
918
|
-
}
|
|
919
|
-
onSelectPage(event, page) {
|
|
920
|
-
this.selectedPageNumber$.next(page);
|
|
921
|
-
return false;
|
|
922
|
-
}
|
|
923
|
-
onPrevious() {
|
|
924
|
-
this.selectedPageNumber$.next(this.selectedPageNumber$.value - 1);
|
|
925
|
-
return false;
|
|
926
|
-
}
|
|
927
|
-
onNext() {
|
|
928
|
-
this.selectedPageNumber$.next(this.selectedPageNumber$.value + 1);
|
|
929
|
-
return false;
|
|
930
|
-
}
|
|
931
1167
|
set selectedPageNumber(value) {
|
|
932
1168
|
this._selectedPageNumber = value;
|
|
933
1169
|
this.selectedPageNumber$.next(value);
|
|
@@ -935,6 +1171,8 @@ class BsPaginationComponent {
|
|
|
935
1171
|
get selectedPageNumber() {
|
|
936
1172
|
return this._selectedPageNumber;
|
|
937
1173
|
}
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region NumberOfBoxes
|
|
938
1176
|
set numberOfBoxes(value) {
|
|
939
1177
|
this._numberOfBoxes = value;
|
|
940
1178
|
this.numberOfBoxes$.next(value);
|
|
@@ -942,6 +1180,8 @@ class BsPaginationComponent {
|
|
|
942
1180
|
get numberOfBoxes() {
|
|
943
1181
|
return this._numberOfBoxes;
|
|
944
1182
|
}
|
|
1183
|
+
//#endregion
|
|
1184
|
+
//#region PageNumbers
|
|
945
1185
|
set pageNumbers(value) {
|
|
946
1186
|
this._pageNumbers = value;
|
|
947
1187
|
this.pageNumbers$.next(value);
|
|
@@ -949,6 +1189,8 @@ class BsPaginationComponent {
|
|
|
949
1189
|
get pageNumbers() {
|
|
950
1190
|
return this._pageNumbers;
|
|
951
1191
|
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region ShowArrows
|
|
952
1194
|
set showArrows(value) {
|
|
953
1195
|
this._showArrows = value;
|
|
954
1196
|
this.showArrows$.next(value);
|
|
@@ -956,6 +1198,22 @@ class BsPaginationComponent {
|
|
|
956
1198
|
get showArrows() {
|
|
957
1199
|
return this._showArrows;
|
|
958
1200
|
}
|
|
1201
|
+
//#endregion
|
|
1202
|
+
ngOnDestroy() {
|
|
1203
|
+
this.destroyed$.next(true);
|
|
1204
|
+
}
|
|
1205
|
+
onSelectPage(event, page) {
|
|
1206
|
+
this.selectedPageNumber$.next(page);
|
|
1207
|
+
return false;
|
|
1208
|
+
}
|
|
1209
|
+
onPrevious() {
|
|
1210
|
+
this.selectedPageNumber$.next(this.selectedPageNumber$.value - 1);
|
|
1211
|
+
return false;
|
|
1212
|
+
}
|
|
1213
|
+
onNext() {
|
|
1214
|
+
this.selectedPageNumber$.next(this.selectedPageNumber$.value + 1);
|
|
1215
|
+
return false;
|
|
1216
|
+
}
|
|
959
1217
|
}
|
|
960
1218
|
BsPaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsPaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
961
1219
|
BsPaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsPaginationComponent, selector: "bs-pagination", inputs: { selectedPageNumber: "selectedPageNumber", numberOfBoxes: "numberOfBoxes", pageNumbers: "pageNumbers", showArrows: "showArrows" }, outputs: { selectedPageNumberChange: "selectedPageNumberChange" }, ngImport: i0, template: "<ul class=\"pagination\">\n <li class=\"page-item\" *ngIf=\"showArrows$ | async\" [class.disabled]=\"isFirstPage$ | async\">\n <a class=\"page-link\" href=\"\" (click)=\"onPrevious()\" aria-label=\"Previous\">\n <span aria-hidden=\"true\">«</span>\n <span class=\"visually-hidden\">Previous</span>\n </a>\n </li>\n <li *ngFor=\"let pageNumber of (shownPageNumbers$ | async)\" class=\"page-item\"\n [ngClass]=\"{ 'active': pageNumber.selected }\">\n <a class=\"page-link\" href=\"\" (click)=\"onSelectPage($event, pageNumber.page)\" *ngIf=\"pageNumber.page != '...'\">\n {{ pageNumber.page }}\n <span class=\"visually-hidden\" *ngIf=\"pageNumber.selected\">(current)</span>\n </a>\n </li>\n <li class=\"page-item\" *ngIf=\"showArrows$ | async\" [class.disabled]=\"isLastPage$ | async\">\n <a class=\"page-link\" href=\"\" (click)=\"onNext()\" aria-label=\"Next\">\n <span aria-hidden=\"true\">»</span>\n <span class=\"visually-hidden\">Next</span>\n </a>\n </li>\n</ul>", styles: [":host{display:inline-block}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1.AsyncPipe } });
|
|
@@ -977,7 +1235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
977
1235
|
class BsDatatableComponent {
|
|
978
1236
|
constructor() {
|
|
979
1237
|
this.columns = [];
|
|
980
|
-
this.
|
|
1238
|
+
this.reloadData = new EventEmitter();
|
|
981
1239
|
this.settings = new DatatableSettings();
|
|
982
1240
|
this.settings.sortProperty = '';
|
|
983
1241
|
this.settings.sortDirection = 'ascending';
|
|
@@ -996,17 +1254,15 @@ class BsDatatableComponent {
|
|
|
996
1254
|
else {
|
|
997
1255
|
this.settings.sortDirection = 'descending';
|
|
998
1256
|
}
|
|
999
|
-
this.
|
|
1257
|
+
this.reloadData.emit();
|
|
1000
1258
|
}
|
|
1001
1259
|
}
|
|
1002
|
-
ngOnInit() {
|
|
1003
|
-
}
|
|
1004
1260
|
}
|
|
1005
1261
|
BsDatatableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatatableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1006
|
-
BsDatatableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsDatatableComponent, selector: "bs-datatable", inputs: { settings: "settings", data: "data" }, outputs: {
|
|
1262
|
+
BsDatatableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsDatatableComponent, selector: "bs-datatable", inputs: { settings: "settings", data: "data" }, outputs: { reloadData: "reloadData" }, queries: [{ propertyName: "columns", predicate: BsDatatableColumnDirective }], ngImport: i0, template: "<div class=\"table-responsive overflow-y-hidden mb-3\">\n <table class=\"table table-striped table-hover w-100 mb-0\" cellspacing=\"0\" role=\"grid\">\n <thead>\n <tr>\n <th *ngFor=\"let column of columns\" class=\"text-nowrap\"\n [class.sort]=\"column.bsDatatableColumn.sortable\"\n [class.sort-asc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'ascending')\"\n [class.sort-desc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'descending')\"\n (click)=\"columnHeaderClicked(column)\">\n <ng-container *ngTemplateOutlet=\"column.templateRef\"></ng-container>\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"!!data && !!rowTemplate\">\n <ng-container *ngFor=\"let item of data.data\">\n <ng-container *ngTemplateOutlet=\"rowTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n<div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <bs-pagination class=\"float-start\" [pageNumbers]=\"settings.perPage.values\"\n [(selectedPageNumber)]=\"settings.perPage.selected\" (selectedPageNumberChange)=\"reloadData.emit()\"\n [showArrows]=\"false\"></bs-pagination>\n <bs-pagination class=\"float-end\" [pageNumbers]=\"settings.page.values\"\n [(selectedPageNumber)]=\"settings.page.selected\" (selectedPageNumberChange)=\"reloadData.emit()\"\n [showArrows]=\"true\"></bs-pagination>\n </div>\n </div>\n</div>", styles: ["@charset \"UTF-8\";.overflow-y-hidden{overflow-y:hidden}.table thead th.sort{position:relative;cursor:pointer}.table thead th.sort:before,.table thead th.sort:after{position:absolute;display:block;opacity:.3;bottom:.5em}.table thead th.sort:before{content:\"\\2191\";right:1em}.table thead th.sort:after{content:\"\\2193\";right:.5em}.table thead th.sort.sort-asc:after{opacity:1}.table thead th.sort.sort-desc:before{opacity:1}\n"], components: [{ type: BsPaginationComponent, selector: "bs-pagination", inputs: ["selectedPageNumber", "numberOfBoxes", "pageNumbers", "showArrows"], outputs: ["selectedPageNumberChange"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1007
1263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatatableComponent, decorators: [{
|
|
1008
1264
|
type: Component,
|
|
1009
|
-
args: [{ selector: 'bs-datatable', template: "<div class=\"table-responsive overflow-y-hidden mb-3\">\n <table class=\"table table-striped table-hover w-100 mb-0\" cellspacing=\"0\" role=\"grid\">\n <thead>\n <tr>\n <th *ngFor=\"let column of columns\" class=\"text-nowrap\"\n [class.sort]=\"column.bsDatatableColumn.sortable\"\n [class.sort-asc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'ascending')\"\n [class.sort-desc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'descending')\"\n (click)=\"columnHeaderClicked(column)\">\n <ng-container *ngTemplateOutlet=\"column.templateRef\"></ng-container>\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"!!data && !!rowTemplate\">\n <ng-container *ngFor=\"let item of data.data\">\n <ng-container *ngTemplateOutlet=\"rowTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n<div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <bs-pagination class=\"float-start\" [pageNumbers]=\"settings.perPage.values\"\n [(selectedPageNumber)]=\"settings.perPage.selected\" (selectedPageNumberChange)=\"
|
|
1265
|
+
args: [{ selector: 'bs-datatable', template: "<div class=\"table-responsive overflow-y-hidden mb-3\">\n <table class=\"table table-striped table-hover w-100 mb-0\" cellspacing=\"0\" role=\"grid\">\n <thead>\n <tr>\n <th *ngFor=\"let column of columns\" class=\"text-nowrap\"\n [class.sort]=\"column.bsDatatableColumn.sortable\"\n [class.sort-asc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'ascending')\"\n [class.sort-desc]=\"column.bsDatatableColumn.sortable && (settings.sortProperty === column.bsDatatableColumn.name) && (settings.sortDirection === 'descending')\"\n (click)=\"columnHeaderClicked(column)\">\n <ng-container *ngTemplateOutlet=\"column.templateRef\"></ng-container>\n </th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf=\"!!data && !!rowTemplate\">\n <ng-container *ngFor=\"let item of data.data\">\n <ng-container *ngTemplateOutlet=\"rowTemplate; context: { $implicit: item }\"></ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n</div>\n<div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-md-12\">\n <bs-pagination class=\"float-start\" [pageNumbers]=\"settings.perPage.values\"\n [(selectedPageNumber)]=\"settings.perPage.selected\" (selectedPageNumberChange)=\"reloadData.emit()\"\n [showArrows]=\"false\"></bs-pagination>\n <bs-pagination class=\"float-end\" [pageNumbers]=\"settings.page.values\"\n [(selectedPageNumber)]=\"settings.page.selected\" (selectedPageNumberChange)=\"reloadData.emit()\"\n [showArrows]=\"true\"></bs-pagination>\n </div>\n </div>\n</div>", styles: ["@charset \"UTF-8\";.overflow-y-hidden{overflow-y:hidden}.table thead th.sort{position:relative;cursor:pointer}.table thead th.sort:before,.table thead th.sort:after{position:absolute;display:block;opacity:.3;bottom:.5em}.table thead th.sort:before{content:\"\\2191\";right:1em}.table thead th.sort:after{content:\"\\2193\";right:.5em}.table thead th.sort.sort-asc:after{opacity:1}.table thead th.sort.sort-desc:before{opacity:1}\n"] }]
|
|
1010
1266
|
}], ctorParameters: function () { return []; }, propDecorators: { columns: [{
|
|
1011
1267
|
type: ContentChildren,
|
|
1012
1268
|
args: [BsDatatableColumnDirective]
|
|
@@ -1014,7 +1270,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1014
1270
|
type: Input
|
|
1015
1271
|
}], data: [{
|
|
1016
1272
|
type: Input
|
|
1017
|
-
}],
|
|
1273
|
+
}], reloadData: [{
|
|
1018
1274
|
type: Output
|
|
1019
1275
|
}] } });
|
|
1020
1276
|
|
|
@@ -1025,11 +1281,11 @@ class BsRowTemplateDirective {
|
|
|
1025
1281
|
}
|
|
1026
1282
|
}
|
|
1027
1283
|
BsRowTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRowTemplateDirective, deps: [{ token: BsDatatableComponent }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1028
|
-
BsRowTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsRowTemplateDirective, selector: "[
|
|
1284
|
+
BsRowTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsRowTemplateDirective, selector: "[bsRowTemplate]", ngImport: i0 });
|
|
1029
1285
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRowTemplateDirective, decorators: [{
|
|
1030
1286
|
type: Directive,
|
|
1031
1287
|
args: [{
|
|
1032
|
-
selector: '[
|
|
1288
|
+
selector: '[bsRowTemplate]'
|
|
1033
1289
|
}]
|
|
1034
1290
|
}], ctorParameters: function () { return [{ type: BsDatatableComponent }, { type: i0.TemplateRef }]; } });
|
|
1035
1291
|
|
|
@@ -1089,7 +1345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1089
1345
|
}] });
|
|
1090
1346
|
|
|
1091
1347
|
class BsDropdownMenuDirective extends ClickOutsideDirective {
|
|
1092
|
-
constructor(dropdown,
|
|
1348
|
+
constructor(dropdown, viewContainerRef, templateRef, overlay, elementRef, zone, platformId) {
|
|
1093
1349
|
super(elementRef, zone, platformId);
|
|
1094
1350
|
this.dropdown = dropdown;
|
|
1095
1351
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -1099,7 +1355,6 @@ class BsDropdownMenuDirective extends ClickOutsideDirective {
|
|
|
1099
1355
|
this.destroyed$ = new Subject();
|
|
1100
1356
|
this.overlayRef = null;
|
|
1101
1357
|
this.templatePortal = null;
|
|
1102
|
-
this.document = document;
|
|
1103
1358
|
this.dropdown.isOpen$
|
|
1104
1359
|
.pipe(takeUntil(this.destroyed$))
|
|
1105
1360
|
.subscribe((isOpen) => {
|
|
@@ -1135,6 +1390,7 @@ class BsDropdownMenuDirective extends ClickOutsideDirective {
|
|
|
1135
1390
|
}
|
|
1136
1391
|
});
|
|
1137
1392
|
}
|
|
1393
|
+
get show() { return this.dropdown.isOpen; }
|
|
1138
1394
|
clickedOutside(ev) {
|
|
1139
1395
|
var _a;
|
|
1140
1396
|
if (!this.wait) {
|
|
@@ -1148,28 +1404,25 @@ class BsDropdownMenuDirective extends ClickOutsideDirective {
|
|
|
1148
1404
|
}
|
|
1149
1405
|
}
|
|
1150
1406
|
}
|
|
1151
|
-
BsDropdownMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDropdownMenuDirective, deps: [{ token: forwardRef(() => BsDropdownDirective) }, { token:
|
|
1152
|
-
BsDropdownMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]", host: { listeners: { "clickOutside": "clickedOutside($event)" }, properties: { "class.show": "
|
|
1407
|
+
BsDropdownMenuDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDropdownMenuDirective, deps: [{ token: forwardRef(() => BsDropdownDirective) }, { token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1408
|
+
BsDropdownMenuDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]", host: { listeners: { "clickOutside": "clickedOutside($event)" }, properties: { "class.show": "this.show" } }, usesInheritance: true, ngImport: i0 });
|
|
1153
1409
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDropdownMenuDirective, decorators: [{
|
|
1154
1410
|
type: Directive,
|
|
1155
1411
|
args: [{
|
|
1156
|
-
selector: '[bsDropdownMenu]'
|
|
1157
|
-
host: {
|
|
1158
|
-
'[class.show]': 'dropdown.isOpen',
|
|
1159
|
-
},
|
|
1412
|
+
selector: '[bsDropdownMenu]'
|
|
1160
1413
|
}]
|
|
1161
1414
|
}], ctorParameters: function () {
|
|
1162
1415
|
return [{ type: BsDropdownDirective, decorators: [{
|
|
1163
1416
|
type: Inject,
|
|
1164
1417
|
args: [forwardRef(() => BsDropdownDirective)]
|
|
1165
|
-
}] }, { type: undefined, decorators: [{
|
|
1166
|
-
type: Inject,
|
|
1167
|
-
args: [DOCUMENT]
|
|
1168
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: Object, decorators: [{
|
|
1418
|
+
}] }, { type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
1169
1419
|
type: Inject,
|
|
1170
1420
|
args: [PLATFORM_ID]
|
|
1171
1421
|
}] }];
|
|
1172
|
-
}, propDecorators: {
|
|
1422
|
+
}, propDecorators: { show: [{
|
|
1423
|
+
type: HostBinding,
|
|
1424
|
+
args: ['class.show']
|
|
1425
|
+
}], clickedOutside: [{
|
|
1173
1426
|
type: HostListener,
|
|
1174
1427
|
args: ['clickOutside', ['$event']]
|
|
1175
1428
|
}] } });
|
|
@@ -1252,18 +1505,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1252
1505
|
|
|
1253
1506
|
class BsDatepickerComponent {
|
|
1254
1507
|
constructor() {
|
|
1255
|
-
|
|
1256
|
-
this.
|
|
1508
|
+
//#region SelectedDate
|
|
1509
|
+
this._selectedDate = new Date();
|
|
1510
|
+
this.selectedDateChange = new EventEmitter();
|
|
1511
|
+
//#endregion
|
|
1512
|
+
//#region CurrentMonth
|
|
1513
|
+
this._currentMonth = new Date();
|
|
1514
|
+
this.currentMonthChange = new EventEmitter();
|
|
1257
1515
|
}
|
|
1258
|
-
|
|
1516
|
+
get selectedDate() {
|
|
1517
|
+
return this._selectedDate;
|
|
1518
|
+
}
|
|
1519
|
+
set selectedDate(value) {
|
|
1520
|
+
this._selectedDate = value;
|
|
1521
|
+
this.selectedDateChange.emit(value);
|
|
1522
|
+
}
|
|
1523
|
+
get currentMonth() {
|
|
1524
|
+
return this._currentMonth;
|
|
1525
|
+
}
|
|
1526
|
+
set currentMonth(value) {
|
|
1527
|
+
this._currentMonth = value;
|
|
1528
|
+
this.currentMonthChange.emit(value);
|
|
1259
1529
|
}
|
|
1260
1530
|
}
|
|
1261
1531
|
BsDatepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1262
|
-
BsDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsDatepickerComponent, selector: "bs-datepicker", ngImport: i0, template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\">{{ selectedDate | date }}</button>\n <div *bsDropdownMenu>\n <bs-calendar [(selectedDate)]=\"selectedDate\" [(currentMonth)]=\"currentMonth\"></bs-calendar>\n </div>\n</div>", styles: [""], components: [{ type: BsCalendarComponent, selector: "bs-calendar", inputs: ["currentMonth", "selectedDate"], outputs: ["currentMonthChange", "selectedDateChange"] }], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: BsDropdownToggleDirective, selector: "[bsDropdownToggle]" }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }], pipes: { "date": i1.DatePipe } });
|
|
1532
|
+
BsDatepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsDatepickerComponent, selector: "bs-datepicker", inputs: { selectedDate: "selectedDate", currentMonth: "currentMonth" }, outputs: { selectedDateChange: "selectedDateChange", currentMonthChange: "currentMonthChange" }, ngImport: i0, template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\">{{ selectedDate | date }}</button>\n <div *bsDropdownMenu>\n <bs-calendar [(selectedDate)]=\"selectedDate\" [(currentMonth)]=\"currentMonth\"></bs-calendar>\n </div>\n</div>", styles: [""], components: [{ type: BsCalendarComponent, selector: "bs-calendar", inputs: ["currentMonth", "selectedDate"], outputs: ["currentMonthChange", "selectedDateChange"] }], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: BsDropdownToggleDirective, selector: "[bsDropdownToggle]" }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }], pipes: { "date": i1.DatePipe } });
|
|
1263
1533
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsDatepickerComponent, decorators: [{
|
|
1264
1534
|
type: Component,
|
|
1265
1535
|
args: [{ selector: 'bs-datepicker', template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\">{{ selectedDate | date }}</button>\n <div *bsDropdownMenu>\n <bs-calendar [(selectedDate)]=\"selectedDate\" [(currentMonth)]=\"currentMonth\"></bs-calendar>\n </div>\n</div>", styles: [""] }]
|
|
1266
|
-
}],
|
|
1536
|
+
}], propDecorators: { selectedDateChange: [{
|
|
1537
|
+
type: Output
|
|
1538
|
+
}], selectedDate: [{
|
|
1539
|
+
type: Input
|
|
1540
|
+
}], currentMonthChange: [{
|
|
1541
|
+
type: Output
|
|
1542
|
+
}], currentMonth: [{
|
|
1543
|
+
type: Input
|
|
1544
|
+
}] } });
|
|
1267
1545
|
|
|
1268
1546
|
class BsDropdownModule {
|
|
1269
1547
|
}
|
|
@@ -1471,6 +1749,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1471
1749
|
}] } });
|
|
1472
1750
|
|
|
1473
1751
|
class BsForDirective {
|
|
1752
|
+
constructor() {
|
|
1753
|
+
this.defaultCursor = true;
|
|
1754
|
+
}
|
|
1474
1755
|
onMouseClick() {
|
|
1475
1756
|
if (!('tagName' in this.bsFor)) {
|
|
1476
1757
|
this.bsFor.focus();
|
|
@@ -1487,13 +1768,16 @@ class BsForDirective {
|
|
|
1487
1768
|
}
|
|
1488
1769
|
}
|
|
1489
1770
|
BsForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsForDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1490
|
-
BsForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsForDirective, selector: "[bsFor]", inputs: { bsFor: "bsFor" }, host: { listeners: { "click": "onMouseClick()" } }, ngImport: i0 });
|
|
1771
|
+
BsForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsForDirective, selector: "[bsFor]", inputs: { bsFor: "bsFor" }, host: { listeners: { "click": "onMouseClick()" }, properties: { "class.cursor-default": "this.defaultCursor" } }, ngImport: i0 });
|
|
1491
1772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsForDirective, decorators: [{
|
|
1492
1773
|
type: Directive,
|
|
1493
1774
|
args: [{
|
|
1494
1775
|
selector: '[bsFor]'
|
|
1495
1776
|
}]
|
|
1496
|
-
}], propDecorators: {
|
|
1777
|
+
}], propDecorators: { defaultCursor: [{
|
|
1778
|
+
type: HostBinding,
|
|
1779
|
+
args: ['class.cursor-default']
|
|
1780
|
+
}], bsFor: [{
|
|
1497
1781
|
type: Input
|
|
1498
1782
|
}], onMouseClick: [{
|
|
1499
1783
|
type: HostListener,
|
|
@@ -1767,7 +2051,168 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1767
2051
|
BsListGroupItemComponent
|
|
1768
2052
|
]
|
|
1769
2053
|
}]
|
|
1770
|
-
}] });
|
|
2054
|
+
}] });
|
|
2055
|
+
|
|
2056
|
+
class BsModalComponent {
|
|
2057
|
+
constructor() { }
|
|
2058
|
+
}
|
|
2059
|
+
BsModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2060
|
+
BsModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsModalComponent, selector: "bs-modal", ngImport: i0, template: "<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <div class=\"modal-body\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </div>\n</div>", styles: [""], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalComponent, decorators: [{
|
|
2062
|
+
type: Component,
|
|
2063
|
+
args: [{ selector: 'bs-modal', template: "<div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"header\"></ng-container>\n </div>\n <div class=\"modal-body\">\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </div>\n</div>", styles: [""] }]
|
|
2064
|
+
}], ctorParameters: function () { return []; } });
|
|
2065
|
+
|
|
2066
|
+
const MODAL_CONTENT = new InjectionToken('ModalContent');
|
|
2067
|
+
|
|
2068
|
+
class BsModalContentComponent {
|
|
2069
|
+
constructor(content) {
|
|
2070
|
+
this.instance = null;
|
|
2071
|
+
//#region Monitor @slideUpDown hooks
|
|
2072
|
+
this.animationState = '';
|
|
2073
|
+
this.animationStateChanged = new EventEmitter();
|
|
2074
|
+
this.content = content;
|
|
2075
|
+
}
|
|
2076
|
+
onAnimationChanged(event) {
|
|
2077
|
+
this.animationStateChanged.emit(event);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
BsModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalContentComponent, deps: [{ token: MODAL_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
2081
|
+
BsModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsModalContentComponent, selector: "bs-modal-content", ngImport: i0, template: "<div class=\"modal d-block\" tabindex=\"-1\"\n [@fadeInOut]=\"animationState\"\n (@fadeInOut.start)=\"onAnimationChanged($event)\"\n (@fadeInOut.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n\n</div>", styles: [""], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [FadeInOutAnimation] });
|
|
2082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalContentComponent, decorators: [{
|
|
2083
|
+
type: Component,
|
|
2084
|
+
args: [{ selector: 'bs-modal-content', animations: [FadeInOutAnimation], template: "<div class=\"modal d-block\" tabindex=\"-1\"\n [@fadeInOut]=\"animationState\"\n (@fadeInOut.start)=\"onAnimationChanged($event)\"\n (@fadeInOut.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n\n</div>", styles: [""] }]
|
|
2085
|
+
}], ctorParameters: function () {
|
|
2086
|
+
return [{ type: i0.TemplateRef, decorators: [{
|
|
2087
|
+
type: Inject,
|
|
2088
|
+
args: [MODAL_CONTENT]
|
|
2089
|
+
}] }];
|
|
2090
|
+
} });
|
|
2091
|
+
|
|
2092
|
+
class BsModalHeaderDirective {
|
|
2093
|
+
constructor(modal, template) {
|
|
2094
|
+
modal.header = template;
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
BsModalHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalHeaderDirective, deps: [{ token: BsModalComponent }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2098
|
+
BsModalHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsModalHeaderDirective, selector: "[bsModalHeader]", ngImport: i0 });
|
|
2099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalHeaderDirective, decorators: [{
|
|
2100
|
+
type: Directive,
|
|
2101
|
+
args: [{
|
|
2102
|
+
selector: '[bsModalHeader]'
|
|
2103
|
+
}]
|
|
2104
|
+
}], ctorParameters: function () { return [{ type: BsModalComponent }, { type: i0.TemplateRef }]; } });
|
|
2105
|
+
|
|
2106
|
+
class BsModalBodyDirective {
|
|
2107
|
+
constructor(modal, template) {
|
|
2108
|
+
modal.body = template;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
BsModalBodyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalBodyDirective, deps: [{ token: BsModalComponent }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2112
|
+
BsModalBodyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsModalBodyDirective, selector: "[bsModalBody]", ngImport: i0 });
|
|
2113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalBodyDirective, decorators: [{
|
|
2114
|
+
type: Directive,
|
|
2115
|
+
args: [{
|
|
2116
|
+
selector: '[bsModalBody]'
|
|
2117
|
+
}]
|
|
2118
|
+
}], ctorParameters: function () { return [{ type: BsModalComponent }, { type: i0.TemplateRef }]; } });
|
|
2119
|
+
|
|
2120
|
+
class BsModalFooterDirective {
|
|
2121
|
+
constructor(modal, template) {
|
|
2122
|
+
modal.footer = template;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
BsModalFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalFooterDirective, deps: [{ token: BsModalComponent }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2126
|
+
BsModalFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsModalFooterDirective, selector: "[bsModalFooter]", ngImport: i0 });
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalFooterDirective, decorators: [{
|
|
2128
|
+
type: Directive,
|
|
2129
|
+
args: [{
|
|
2130
|
+
selector: '[bsModalFooter]'
|
|
2131
|
+
}]
|
|
2132
|
+
}], ctorParameters: function () { return [{ type: BsModalComponent }, { type: i0.TemplateRef }]; } });
|
|
2133
|
+
|
|
2134
|
+
class BsModalModule {
|
|
2135
|
+
}
|
|
2136
|
+
BsModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2137
|
+
BsModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalModule, declarations: [BsModalHeaderDirective,
|
|
2138
|
+
BsModalBodyDirective,
|
|
2139
|
+
BsModalFooterDirective,
|
|
2140
|
+
BsModalComponent,
|
|
2141
|
+
BsModalContentComponent], imports: [CommonModule,
|
|
2142
|
+
OverlayModule], exports: [BsModalHeaderDirective,
|
|
2143
|
+
BsModalBodyDirective,
|
|
2144
|
+
BsModalFooterDirective,
|
|
2145
|
+
BsModalComponent] });
|
|
2146
|
+
BsModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalModule, imports: [[
|
|
2147
|
+
CommonModule,
|
|
2148
|
+
OverlayModule
|
|
2149
|
+
]] });
|
|
2150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalModule, decorators: [{
|
|
2151
|
+
type: NgModule,
|
|
2152
|
+
args: [{
|
|
2153
|
+
declarations: [
|
|
2154
|
+
BsModalHeaderDirective,
|
|
2155
|
+
BsModalBodyDirective,
|
|
2156
|
+
BsModalFooterDirective,
|
|
2157
|
+
BsModalComponent,
|
|
2158
|
+
BsModalContentComponent
|
|
2159
|
+
],
|
|
2160
|
+
imports: [
|
|
2161
|
+
CommonModule,
|
|
2162
|
+
OverlayModule
|
|
2163
|
+
],
|
|
2164
|
+
exports: [
|
|
2165
|
+
BsModalHeaderDirective,
|
|
2166
|
+
BsModalBodyDirective,
|
|
2167
|
+
BsModalFooterDirective,
|
|
2168
|
+
BsModalComponent
|
|
2169
|
+
]
|
|
2170
|
+
}]
|
|
2171
|
+
}] });
|
|
2172
|
+
|
|
2173
|
+
class BsModalService {
|
|
2174
|
+
constructor(overlay, parentInjector, componentFactoryResolver) {
|
|
2175
|
+
this.overlay = overlay;
|
|
2176
|
+
this.parentInjector = parentInjector;
|
|
2177
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
2178
|
+
}
|
|
2179
|
+
show(template) {
|
|
2180
|
+
const injector = Injector.create({
|
|
2181
|
+
providers: [{ provide: MODAL_CONTENT, useValue: template }],
|
|
2182
|
+
parent: this.parentInjector
|
|
2183
|
+
});
|
|
2184
|
+
const portal = new ComponentPortal(BsModalContentComponent, null, injector, this.componentFactoryResolver);
|
|
2185
|
+
const overlayRef = this.overlay.create({
|
|
2186
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
2187
|
+
positionStrategy: this.overlay.position()
|
|
2188
|
+
.global().centerHorizontally().bottom('0').top('0').left('0').right('0'),
|
|
2189
|
+
width: '100%',
|
|
2190
|
+
hasBackdrop: true
|
|
2191
|
+
});
|
|
2192
|
+
const componentInstance = overlayRef.attach(portal);
|
|
2193
|
+
console.log('instance', componentInstance);
|
|
2194
|
+
componentInstance.instance['instance'] = {
|
|
2195
|
+
component: componentInstance,
|
|
2196
|
+
overlay: overlayRef
|
|
2197
|
+
};
|
|
2198
|
+
return componentInstance.instance;
|
|
2199
|
+
}
|
|
2200
|
+
hide(modal) {
|
|
2201
|
+
modal.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => {
|
|
2202
|
+
var _a;
|
|
2203
|
+
(_a = modal['instance']) === null || _a === void 0 ? void 0 : _a.overlay.dispose();
|
|
2204
|
+
});
|
|
2205
|
+
modal.animationState = 'void';
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
BsModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2209
|
+
BsModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalService, providedIn: BsModalModule });
|
|
2210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsModalService, decorators: [{
|
|
2211
|
+
type: Injectable,
|
|
2212
|
+
args: [{
|
|
2213
|
+
providedIn: BsModalModule
|
|
2214
|
+
}]
|
|
2215
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; } });
|
|
1771
2216
|
|
|
1772
2217
|
class BsMultiselectComponent {
|
|
1773
2218
|
constructor() {
|
|
@@ -1775,36 +2220,82 @@ class BsMultiselectComponent {
|
|
|
1775
2220
|
this.selectedItems = [];
|
|
1776
2221
|
}
|
|
1777
2222
|
itemChange(item, event) {
|
|
1778
|
-
if (
|
|
2223
|
+
if (event.target.checked) {
|
|
1779
2224
|
this.selectedItems.push(item);
|
|
1780
2225
|
}
|
|
1781
2226
|
else {
|
|
1782
2227
|
this.selectedItems.splice(this.selectedItems.findIndex((i) => i === item), 1);
|
|
1783
2228
|
}
|
|
1784
2229
|
}
|
|
1785
|
-
ngOnInit() {
|
|
1786
|
-
}
|
|
1787
2230
|
}
|
|
1788
2231
|
BsMultiselectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1789
|
-
BsMultiselectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsMultiselectComponent, selector: "bs-multiselect", inputs: { items: "items", selectedItems: "selectedItems" },
|
|
2232
|
+
BsMultiselectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsMultiselectComponent, selector: "bs-multiselect", inputs: { items: "items", selectedItems: "selectedItems" }, viewQueries: [{ propertyName: "defaultButtonTemplate", first: true, predicate: ["defaultButtonTemplate"], descendants: true }], ngImport: i0, template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\">\n <ng-container *ngTemplateOutlet=\"buttonTemplate ?? defaultButtonTemplate; context: { $implicit: selectedItems.length }\"></ng-container>\n </button>\n <div *bsDropdownMenu class=\"bg-white mw-250px p-3 border rounded shadow\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n <hr class=\"my-2\" *ngIf=\"headerTemplate\">\n <label *ngFor=\"let item of items\" class=\"form-check\">\n <input type=\"checkbox\" [checked]=\"selectedItems.indexOf(item) > -1\" (change)=\"itemChange(item, $event)\" class=\"form-check-input\">\n <span class=\"form-check-label\">{{ item }}</span>\n </label>\n <hr class=\"my-2\" *ngIf=\"footerTemplate\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n</div>\n<ng-template #defaultButtonTemplate let-count>\n {{ count }} selected\n</ng-template>", styles: [".mw-250px{min-width:250px}\n"], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: BsDropdownToggleDirective, selector: "[bsDropdownToggle]" }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1790
2233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectComponent, decorators: [{
|
|
1791
2234
|
type: Component,
|
|
1792
|
-
args: [{ selector: 'bs-multiselect', template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\"
|
|
1793
|
-
}],
|
|
1794
|
-
type: ContentChild,
|
|
1795
|
-
args: [TemplateRef]
|
|
1796
|
-
}], items: [{
|
|
2235
|
+
args: [{ selector: 'bs-multiselect', template: "<div bsDropdown [hasBackdrop]=\"true\" [closeOnClickOutside]=\"true\">\n <button bsDropdownToggle class=\"btn btn-primary\">\n <ng-container *ngTemplateOutlet=\"buttonTemplate ?? defaultButtonTemplate; context: { $implicit: selectedItems.length }\"></ng-container>\n </button>\n <div *bsDropdownMenu class=\"bg-white mw-250px p-3 border rounded shadow\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n <hr class=\"my-2\" *ngIf=\"headerTemplate\">\n <label *ngFor=\"let item of items\" class=\"form-check\">\n <input type=\"checkbox\" [checked]=\"selectedItems.indexOf(item) > -1\" (change)=\"itemChange(item, $event)\" class=\"form-check-input\">\n <span class=\"form-check-label\">{{ item }}</span>\n </label>\n <hr class=\"my-2\" *ngIf=\"footerTemplate\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n</div>\n<ng-template #defaultButtonTemplate let-count>\n {{ count }} selected\n</ng-template>", styles: [".mw-250px{min-width:250px}\n"] }]
|
|
2236
|
+
}], propDecorators: { items: [{
|
|
1797
2237
|
type: Input
|
|
1798
2238
|
}], selectedItems: [{
|
|
1799
2239
|
type: Input
|
|
2240
|
+
}], defaultButtonTemplate: [{
|
|
2241
|
+
type: ViewChild,
|
|
2242
|
+
args: ['defaultButtonTemplate']
|
|
1800
2243
|
}] } });
|
|
1801
2244
|
|
|
2245
|
+
class BsHeaderTemplateDirective {
|
|
2246
|
+
constructor(template, multiselect) {
|
|
2247
|
+
multiselect.headerTemplate = template;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
BsHeaderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsHeaderTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: BsMultiselectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2251
|
+
BsHeaderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsHeaderTemplateDirective, selector: "[bsHeaderTemplate]", ngImport: i0 });
|
|
2252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsHeaderTemplateDirective, decorators: [{
|
|
2253
|
+
type: Directive,
|
|
2254
|
+
args: [{
|
|
2255
|
+
selector: '[bsHeaderTemplate]'
|
|
2256
|
+
}]
|
|
2257
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: BsMultiselectComponent }]; } });
|
|
2258
|
+
|
|
2259
|
+
class BsFooterTemplateDirective {
|
|
2260
|
+
constructor(template, multiselect) {
|
|
2261
|
+
multiselect.footerTemplate = template;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
BsFooterTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsFooterTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: BsMultiselectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2265
|
+
BsFooterTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsFooterTemplateDirective, selector: "[bsFooterTemplate]", ngImport: i0 });
|
|
2266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsFooterTemplateDirective, decorators: [{
|
|
2267
|
+
type: Directive,
|
|
2268
|
+
args: [{
|
|
2269
|
+
selector: '[bsFooterTemplate]'
|
|
2270
|
+
}]
|
|
2271
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: BsMultiselectComponent }]; } });
|
|
2272
|
+
|
|
2273
|
+
class BsButtonTemplateDirective {
|
|
2274
|
+
constructor(template, multiselect) {
|
|
2275
|
+
multiselect.buttonTemplate = template;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
BsButtonTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsButtonTemplateDirective, deps: [{ token: i0.TemplateRef }, { token: BsMultiselectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2279
|
+
BsButtonTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsButtonTemplateDirective, selector: "[bsButtonTemplate]", ngImport: i0 });
|
|
2280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsButtonTemplateDirective, decorators: [{
|
|
2281
|
+
type: Directive,
|
|
2282
|
+
args: [{
|
|
2283
|
+
selector: '[bsButtonTemplate]'
|
|
2284
|
+
}]
|
|
2285
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: BsMultiselectComponent }]; } });
|
|
2286
|
+
|
|
1802
2287
|
class BsMultiselectModule {
|
|
1803
2288
|
}
|
|
1804
2289
|
BsMultiselectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1805
|
-
BsMultiselectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectModule, declarations: [BsMultiselectComponent
|
|
2290
|
+
BsMultiselectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectModule, declarations: [BsMultiselectComponent,
|
|
2291
|
+
BsHeaderTemplateDirective,
|
|
2292
|
+
BsFooterTemplateDirective,
|
|
2293
|
+
BsButtonTemplateDirective], imports: [CommonModule,
|
|
1806
2294
|
BsDropdownModule,
|
|
1807
|
-
FocusOnLoadModule], exports: [BsMultiselectComponent
|
|
2295
|
+
FocusOnLoadModule], exports: [BsMultiselectComponent,
|
|
2296
|
+
BsHeaderTemplateDirective,
|
|
2297
|
+
BsFooterTemplateDirective,
|
|
2298
|
+
BsButtonTemplateDirective] });
|
|
1808
2299
|
BsMultiselectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsMultiselectModule, imports: [[
|
|
1809
2300
|
CommonModule,
|
|
1810
2301
|
BsDropdownModule,
|
|
@@ -1814,7 +2305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1814
2305
|
type: NgModule,
|
|
1815
2306
|
args: [{
|
|
1816
2307
|
declarations: [
|
|
1817
|
-
BsMultiselectComponent
|
|
2308
|
+
BsMultiselectComponent,
|
|
2309
|
+
BsHeaderTemplateDirective,
|
|
2310
|
+
BsFooterTemplateDirective,
|
|
2311
|
+
BsButtonTemplateDirective
|
|
1818
2312
|
],
|
|
1819
2313
|
imports: [
|
|
1820
2314
|
CommonModule,
|
|
@@ -1822,7 +2316,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1822
2316
|
FocusOnLoadModule,
|
|
1823
2317
|
],
|
|
1824
2318
|
exports: [
|
|
1825
|
-
BsMultiselectComponent
|
|
2319
|
+
BsMultiselectComponent,
|
|
2320
|
+
BsHeaderTemplateDirective,
|
|
2321
|
+
BsFooterTemplateDirective,
|
|
2322
|
+
BsButtonTemplateDirective
|
|
1826
2323
|
]
|
|
1827
2324
|
}]
|
|
1828
2325
|
}] });
|
|
@@ -1838,10 +2335,10 @@ class BsNavbarComponent {
|
|
|
1838
2335
|
}
|
|
1839
2336
|
}
|
|
1840
2337
|
BsNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1841
|
-
BsNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarComponent, selector: "bs-navbar", viewQueries: [{ propertyName: "nav", first: true, predicate: ["nav"], descendants: true }], ngImport: i0, template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <
|
|
2338
|
+
BsNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarComponent, selector: "bs-navbar", viewQueries: [{ propertyName: "nav", first: true, predicate: ["nav"], descendants: true }], ngImport: i0, template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <ng-content select=\"bs-navbar-brand\"></ng-content>\n <button (click)=\"toggleExpanded()\" class=\"navbar-toggler align-self-end\" type=\"button\">\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:10}@media (min-width: 768px){.mx-md-unset{margin-left:0!important;margin-right:0!important}.w-md-auto{width:auto!important}}\n"] });
|
|
1842
2339
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarComponent, decorators: [{
|
|
1843
2340
|
type: Component,
|
|
1844
|
-
args: [{ selector: 'bs-navbar', template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <
|
|
2341
|
+
args: [{ selector: 'bs-navbar', template: "<nav #nav class=\"navbar navbar-expand-md position-fixed navbar-dark bg-dark\">\n <div class=\"container-fluid\">\n <div class=\"d-flex w-100 w-md-auto\">\n <ng-content select=\"bs-navbar-brand\"></ng-content>\n <button (click)=\"toggleExpanded()\" class=\"navbar-toggler align-self-end\" type=\"button\">\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:10}@media (min-width: 768px){.mx-md-unset{margin-left:0!important;margin-right:0!important}.w-md-auto{width:auto!important}}\n"] }]
|
|
1845
2342
|
}], propDecorators: { nav: [{
|
|
1846
2343
|
type: ViewChild,
|
|
1847
2344
|
args: ['nav']
|
|
@@ -1914,12 +2411,9 @@ class BsNavbarItemComponent {
|
|
|
1914
2411
|
this.anchorTag = null;
|
|
1915
2412
|
this.parentDropdown = parentDropdown;
|
|
1916
2413
|
}
|
|
1917
|
-
ngOnInit() {
|
|
1918
|
-
}
|
|
1919
2414
|
ngAfterContentChecked() {
|
|
2415
|
+
this.anchorTag = this.element.nativeElement.querySelector('li a');
|
|
1920
2416
|
if (this.hasDropdown) {
|
|
1921
|
-
window.element = this.element.nativeElement;
|
|
1922
|
-
this.anchorTag = this.element.nativeElement.querySelector('li a');
|
|
1923
2417
|
(this.anchorTag) && this.anchorTag.classList.add('dropdown-toggle');
|
|
1924
2418
|
if (this.anchorTag && !this.anchorTag.onclick) {
|
|
1925
2419
|
this.anchorTag.onclick = (ev) => {
|
|
@@ -1936,6 +2430,20 @@ class BsNavbarItemComponent {
|
|
|
1936
2430
|
};
|
|
1937
2431
|
}
|
|
1938
2432
|
}
|
|
2433
|
+
else {
|
|
2434
|
+
// Close if this is a link
|
|
2435
|
+
if (this.parentDropdown && this.dropdowns.length === 0) {
|
|
2436
|
+
if (this.anchorTag && !this.anchorTag.onclick) {
|
|
2437
|
+
this.anchorTag.onclick = (ev) => {
|
|
2438
|
+
let d = this.parentDropdown;
|
|
2439
|
+
while (d && d.autoclose) {
|
|
2440
|
+
d.isVisible = false;
|
|
2441
|
+
d = d.parentDropdown;
|
|
2442
|
+
}
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
1939
2447
|
}
|
|
1940
2448
|
}
|
|
1941
2449
|
BsNavbarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarItemComponent, deps: [{ token: BsNavbarDropdownComponent, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1954,6 +2462,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1954
2462
|
|
|
1955
2463
|
class BsNavbarDropdownComponent {
|
|
1956
2464
|
constructor(parentDropdown, navbarItem) {
|
|
2465
|
+
this.autoclose = true;
|
|
1957
2466
|
this.isVisible = false;
|
|
1958
2467
|
this.parentDropdown = parentDropdown;
|
|
1959
2468
|
this.navbarItem = navbarItem;
|
|
@@ -1961,11 +2470,9 @@ class BsNavbarDropdownComponent {
|
|
|
1961
2470
|
get elementsToExclude() {
|
|
1962
2471
|
return [this.navbarItem.anchorTag].filter((a) => a).map((a) => a);
|
|
1963
2472
|
}
|
|
1964
|
-
ngOnInit() {
|
|
1965
|
-
}
|
|
1966
2473
|
}
|
|
1967
2474
|
BsNavbarDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarDropdownComponent, deps: [{ token: BsNavbarDropdownComponent, host: true, optional: true, skipSelf: true }, { token: forwardRef(() => BsNavbarItemComponent), host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1968
|
-
BsNavbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", queries: [{ propertyName: "childDropdowns", predicate: i0.forwardRef(function () { return BsNavbarDropdownComponent; }), descendants: true }], ngImport: i0, template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"], directives: [{ type: i1$2.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
|
|
2475
|
+
BsNavbarDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarDropdownComponent, selector: "bs-navbar-dropdown", inputs: { autoclose: "autoclose" }, queries: [{ propertyName: "childDropdowns", predicate: i0.forwardRef(function () { return BsNavbarDropdownComponent; }), descendants: true }], ngImport: i0, template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"], directives: [{ type: i1$2.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }] });
|
|
1969
2476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarDropdownComponent, decorators: [{
|
|
1970
2477
|
type: Component,
|
|
1971
2478
|
args: [{ selector: 'bs-navbar-dropdown', template: "<ul class=\"dropdown-menu\" [class.show]=\"isVisible\" [class.submenu]=\"!!parentDropdown\" (clickOutside)=\"isVisible = false\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>", styles: ["@media (max-width: 767px){.submenu{margin-left:.5rem;margin-right:.5rem}}@media (min-width: 768px){.submenu{position:absolute;left:100%;top:-1px}}\n"] }]
|
|
@@ -1982,7 +2489,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1982
2489
|
type: Inject,
|
|
1983
2490
|
args: [forwardRef(() => BsNavbarItemComponent)]
|
|
1984
2491
|
}] }];
|
|
1985
|
-
}, propDecorators: {
|
|
2492
|
+
}, propDecorators: { autoclose: [{
|
|
2493
|
+
type: Input
|
|
2494
|
+
}], childDropdowns: [{
|
|
1986
2495
|
type: ContentChildren,
|
|
1987
2496
|
args: [forwardRef(() => BsNavbarDropdownComponent), { descendants: true }]
|
|
1988
2497
|
}] } });
|
|
@@ -2078,6 +2587,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2078
2587
|
args: ['navbarContent']
|
|
2079
2588
|
}] } });
|
|
2080
2589
|
|
|
2590
|
+
class BsNavbarBrandComponent {
|
|
2591
|
+
constructor() {
|
|
2592
|
+
this.routerLink = [];
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
BsNavbarBrandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarBrandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2596
|
+
BsNavbarBrandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsNavbarBrandComponent, selector: "bs-navbar-brand", inputs: { routerLink: "routerLink" }, ngImport: i0, template: "<a class=\"navbar-brand mx-auto mx-md-unset\" [routerLink]=\"routerLink\">\n <ng-content></ng-content>\n</a>", styles: [""], directives: [{ type: i1$3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: NavLinkDirective, selector: "bs-navbar-item > a[routerLink]" }] });
|
|
2597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarBrandComponent, decorators: [{
|
|
2598
|
+
type: Component,
|
|
2599
|
+
args: [{ selector: 'bs-navbar-brand', template: "<a class=\"navbar-brand mx-auto mx-md-unset\" [routerLink]=\"routerLink\">\n <ng-content></ng-content>\n</a>", styles: [""] }]
|
|
2600
|
+
}], propDecorators: { routerLink: [{
|
|
2601
|
+
type: Input
|
|
2602
|
+
}] } });
|
|
2603
|
+
|
|
2081
2604
|
class BsNavbarModule {
|
|
2082
2605
|
}
|
|
2083
2606
|
BsNavbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2087,7 +2610,8 @@ BsNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2087
2610
|
BsNavbarItemComponent,
|
|
2088
2611
|
DropdownToggleDirective,
|
|
2089
2612
|
NavLinkDirective,
|
|
2090
|
-
NavbarContentDirective
|
|
2613
|
+
NavbarContentDirective,
|
|
2614
|
+
BsNavbarBrandComponent], imports: [CommonModule,
|
|
2091
2615
|
RouterModule,
|
|
2092
2616
|
ClickOutsideModule], exports: [BsNavbarComponent,
|
|
2093
2617
|
BsNavbarNavComponent,
|
|
@@ -2095,7 +2619,8 @@ BsNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2095
2619
|
BsNavbarItemComponent,
|
|
2096
2620
|
DropdownToggleDirective,
|
|
2097
2621
|
NavLinkDirective,
|
|
2098
|
-
NavbarContentDirective
|
|
2622
|
+
NavbarContentDirective,
|
|
2623
|
+
BsNavbarBrandComponent] });
|
|
2099
2624
|
BsNavbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsNavbarModule, imports: [[
|
|
2100
2625
|
CommonModule,
|
|
2101
2626
|
RouterModule,
|
|
@@ -2111,7 +2636,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2111
2636
|
BsNavbarItemComponent,
|
|
2112
2637
|
DropdownToggleDirective,
|
|
2113
2638
|
NavLinkDirective,
|
|
2114
|
-
NavbarContentDirective
|
|
2639
|
+
NavbarContentDirective,
|
|
2640
|
+
BsNavbarBrandComponent
|
|
2115
2641
|
],
|
|
2116
2642
|
imports: [
|
|
2117
2643
|
CommonModule,
|
|
@@ -2125,7 +2651,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2125
2651
|
BsNavbarItemComponent,
|
|
2126
2652
|
DropdownToggleDirective,
|
|
2127
2653
|
NavLinkDirective,
|
|
2128
|
-
NavbarContentDirective
|
|
2654
|
+
NavbarContentDirective,
|
|
2655
|
+
BsNavbarBrandComponent
|
|
2656
|
+
]
|
|
2657
|
+
}]
|
|
2658
|
+
}] });
|
|
2659
|
+
|
|
2660
|
+
class BsRatingComponent {
|
|
2661
|
+
constructor() {
|
|
2662
|
+
this.destroyed$ = new Subject();
|
|
2663
|
+
this.maximum$ = new BehaviorSubject(5);
|
|
2664
|
+
this.value$ = new BehaviorSubject(3);
|
|
2665
|
+
this.previewValue$ = new BehaviorSubject(null);
|
|
2666
|
+
//#endregion
|
|
2667
|
+
//#region Value
|
|
2668
|
+
this.valueChange = new EventEmitter();
|
|
2669
|
+
this.starsChange = new EventEmitter();
|
|
2670
|
+
this.stars$ = combineLatest([this.maximum$, this.previewValue$, this.value$])
|
|
2671
|
+
.pipe(map(([maximum, previewValue, value]) => {
|
|
2672
|
+
const v = previewValue !== null && previewValue !== void 0 ? previewValue : value;
|
|
2673
|
+
return [
|
|
2674
|
+
...[...Array(v).keys()].map(i => true),
|
|
2675
|
+
...[...Array(maximum - v).keys()].map(i => false)
|
|
2676
|
+
];
|
|
2677
|
+
}));
|
|
2678
|
+
combineLatest([this.previewValue$, this.value$])
|
|
2679
|
+
.pipe(takeUntil(this.destroyed$))
|
|
2680
|
+
.subscribe(([previewValue, value]) => {
|
|
2681
|
+
const v = previewValue !== null && previewValue !== void 0 ? previewValue : value;
|
|
2682
|
+
this.starsChange.emit(v);
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2685
|
+
//#region Maximum
|
|
2686
|
+
set maximum(value) {
|
|
2687
|
+
this.maximum$.next(value);
|
|
2688
|
+
}
|
|
2689
|
+
get value() {
|
|
2690
|
+
return this.value$.value;
|
|
2691
|
+
}
|
|
2692
|
+
set value(value) {
|
|
2693
|
+
this.value$.next(value);
|
|
2694
|
+
this.valueChange.emit(value);
|
|
2695
|
+
}
|
|
2696
|
+
//#endregion
|
|
2697
|
+
ngOnDestroy() {
|
|
2698
|
+
this.destroyed$.next(true);
|
|
2699
|
+
}
|
|
2700
|
+
hoverValue(index) {
|
|
2701
|
+
this.previewValue$.next(index + 1);
|
|
2702
|
+
}
|
|
2703
|
+
selectValue(index) {
|
|
2704
|
+
this.value = index + 1;
|
|
2705
|
+
}
|
|
2706
|
+
onMouseLeave() {
|
|
2707
|
+
this.previewValue$.next(null);
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
BsRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2711
|
+
BsRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsRatingComponent, selector: "bs-rating", inputs: { maximum: "maximum", value: "value" }, outputs: { valueChange: "valueChange", starsChange: "starsChange" }, host: { listeners: { "mouseleave": "onMouseLeave()" } }, ngImport: i0, template: "<span class=\"cursor-pointer\" *ngFor=\"let star of (stars$ | async), let i = index\" (mouseenter)=\"hoverValue(i)\" (click)=\"selectValue(i)\">\n {{ star ? '★' : '☆' }}\n</span>", styles: [""], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe } });
|
|
2712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingComponent, decorators: [{
|
|
2713
|
+
type: Component,
|
|
2714
|
+
args: [{ selector: 'bs-rating', template: "<span class=\"cursor-pointer\" *ngFor=\"let star of (stars$ | async), let i = index\" (mouseenter)=\"hoverValue(i)\" (click)=\"selectValue(i)\">\n {{ star ? '★' : '☆' }}\n</span>", styles: [""] }]
|
|
2715
|
+
}], ctorParameters: function () { return []; }, propDecorators: { maximum: [{
|
|
2716
|
+
type: Input
|
|
2717
|
+
}], valueChange: [{
|
|
2718
|
+
type: Output
|
|
2719
|
+
}], starsChange: [{
|
|
2720
|
+
type: Output
|
|
2721
|
+
}], value: [{
|
|
2722
|
+
type: Input
|
|
2723
|
+
}], onMouseLeave: [{
|
|
2724
|
+
type: HostListener,
|
|
2725
|
+
args: ['mouseleave']
|
|
2726
|
+
}] } });
|
|
2727
|
+
|
|
2728
|
+
class BsRatingModule {
|
|
2729
|
+
}
|
|
2730
|
+
BsRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2731
|
+
BsRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingModule, declarations: [BsRatingComponent], imports: [CommonModule], exports: [BsRatingComponent] });
|
|
2732
|
+
BsRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingModule, imports: [[
|
|
2733
|
+
CommonModule
|
|
2734
|
+
]] });
|
|
2735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsRatingModule, decorators: [{
|
|
2736
|
+
type: NgModule,
|
|
2737
|
+
args: [{
|
|
2738
|
+
declarations: [
|
|
2739
|
+
BsRatingComponent
|
|
2740
|
+
],
|
|
2741
|
+
imports: [
|
|
2742
|
+
CommonModule
|
|
2743
|
+
],
|
|
2744
|
+
exports: [
|
|
2745
|
+
BsRatingComponent
|
|
2129
2746
|
]
|
|
2130
2747
|
}]
|
|
2131
2748
|
}] });
|
|
@@ -2343,8 +2960,6 @@ class BsSelect2Component {
|
|
|
2343
2960
|
this.selectedItems.splice(this.selectedItems.indexOf(item), 1);
|
|
2344
2961
|
this.focus();
|
|
2345
2962
|
}
|
|
2346
|
-
ngOnInit() {
|
|
2347
|
-
}
|
|
2348
2963
|
onResize() {
|
|
2349
2964
|
this.hostWidth$.next(this.itemsBox.nativeElement.offsetWidth);
|
|
2350
2965
|
}
|
|
@@ -2353,11 +2968,14 @@ class BsSelect2Component {
|
|
|
2353
2968
|
}
|
|
2354
2969
|
}
|
|
2355
2970
|
BsSelect2Component.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSelect2Component, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2356
|
-
BsSelect2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsSelect2Component, selector: "bs-select2", inputs: { searchterm: "searchterm", suggestions: "suggestions", selectedItems: "selectedItems" }, outputs: { provideSuggestions: "provideSuggestions" }, host: { listeners: { "window:resize": "onResize()", "click": "focus()" }, properties: { "class.focus": "this.isFocused" } }, viewQueries: [{ propertyName: "
|
|
2971
|
+
BsSelect2Component.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsSelect2Component, selector: "bs-select2", inputs: { searchterm: "searchterm", suggestions: "suggestions", selectedItems: "selectedItems" }, outputs: { provideSuggestions: "provideSuggestions" }, host: { listeners: { "window:resize": "onResize()", "click": "focus()" }, properties: { "class.focus": "this.isFocused" } }, viewQueries: [{ propertyName: "defaultItemTemplate", first: true, predicate: ["defaultItemTemplate"], descendants: true, static: true }, { propertyName: "searchBox", first: true, predicate: ["searchBox"], descendants: true }, { propertyName: "itemsBox", first: true, predicate: ["itemsBox"], descendants: true }], ngImport: i0, template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\" #itemsBox class=\"items-box text-wrap\">\n <ng-container *ngFor=\"let item of selectedItems\">\n <ng-container *ngTemplateOutlet=\"itemTemplate ?? defaultItemTemplate; context: { item: item, select2: this }\"></ng-container>\n </ng-container>\n\n <input type=\"text\" autocomplete=\"off\"\n [(ngModel)]=\"searchterm\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n (focus)=\"isFocused=true\"\n (blur)=\"isFocused=false\"\n [style.width.px]=\"searchWidth\"\n #searchBox />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static p-0\" [style.width.px]=\"hostWidth$ | async\">\n <li *ngFor=\"let suggestion of suggestions\" (click)=\"onSuggestionClicked(suggestion)\" [class.selected]=\"selectedItems | inList:suggestion.id\">{{ suggestion.text }}</li>\n </ul>\n </div>\n</div>\n\n<ng-template #defaultItemTemplate let-item=\"item\" let-select2=\"select2\">\n <span class=\"select2-item\">\n <span (click)=\"select2.onRemoveItem(item,$event)\">\u00D7</span>\n {{ item.text }}\n </span>\n</ng-template>\n", styles: [".items-box{display:block;position:relative;width:100%;min-height:38px;padding:0 5px 3px;cursor:text;border:1px solid #ccc}.items-box .select2-item{display:inline-block;background-color:#e4e4e4;color:#1a1a1a;border:1px solid #aaa;border-radius:4px;margin-top:5px;margin-right:5px;padding:0 5px;cursor:default;user-select:none;-webkit-user-select:none}.items-box .select2-item>span{cursor:pointer;color:#999}.items-box .select2-item>span:hover{color:#333}.items-box input{border:none;outline:0;margin:5px 0 2px;background:none}:host{display:block;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}:host.focus{color:#495057;background-color:#fff;border-color:#80bdff!important;outline:0;box-shadow:0 0 0 .2rem #007bff40}ul{max-height:200px;overflow-y:auto}ul>li{padding:10px;cursor:pointer}ul>li.selected{background:#ddd}ul>li:hover{color:#fff;background-color:#5897fb}\n"], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }], pipes: { "async": i1.AsyncPipe, "inList": BsInListPipe } });
|
|
2357
2972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSelect2Component, decorators: [{
|
|
2358
2973
|
type: Component,
|
|
2359
|
-
args: [{ selector: 'bs-select2', template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\" #itemsBox class=\"items-box\">\n <ng-container *ngFor=\"let item of selectedItems\">\n <ng-container *ngTemplateOutlet=\"itemTemplate ?? defaultItemTemplate; context: { item: item, select2: this }\"></ng-container>\n </ng-container>\n\n <input type=\"text\" autocomplete=\"off\"\n [(ngModel)]=\"searchterm\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n (focus)=\"isFocused=true\"\n (blur)=\"isFocused=false\"\n [style.width.px]=\"searchWidth\"\n #searchBox />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static p-0\" [style.width.px]=\"hostWidth$ | async\">\n <li *ngFor=\"let suggestion of suggestions\" (click)=\"onSuggestionClicked(suggestion)\" [class.selected]=\"selectedItems | inList:suggestion.id\">{{ suggestion.text }}</li>\n </ul>\n </div>\n</div>\n\n<ng-template #defaultItemTemplate let-item=\"item\" let-select2=\"select2\">\n <span class=\"select2-item\">\n <span (click)=\"select2.onRemoveItem(item,$event)\">\u00D7</span>\n {{ item.text }}\n </span>\n</ng-template>\n", styles: [".items-box{display:block;position:relative;width:100%;min-height:38px;padding:0 5px 3px;cursor:text;border:1px solid #ccc}.items-box .select2-item{display:inline-block;background-color:#e4e4e4;color:#1a1a1a;border:1px solid #aaa;border-radius:4px;margin-top:5px;margin-right:5px;padding:0 5px;cursor:default;user-select:none;-webkit-user-select:none}.items-box .select2-item>span{cursor:pointer;color:#999}.items-box .select2-item>span:hover{color:#333}.items-box input{border:none;outline:0;margin:5px 0 2px;background:none}:host{display:block;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}:host.focus{color:#495057;background-color:#fff;border-color:#80bdff!important;outline:0;box-shadow:0 0 0 .2rem #007bff40}ul{max-height:200px;overflow-y:auto}ul>li{padding:10px;cursor:pointer}ul>li.selected{background:#ddd}ul>li:hover{color:#fff;background-color:#5897fb}\n"] }]
|
|
2360
|
-
}],
|
|
2974
|
+
args: [{ selector: 'bs-select2', template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\" #itemsBox class=\"items-box text-wrap\">\n <ng-container *ngFor=\"let item of selectedItems\">\n <ng-container *ngTemplateOutlet=\"itemTemplate ?? defaultItemTemplate; context: { item: item, select2: this }\"></ng-container>\n </ng-container>\n\n <input type=\"text\" autocomplete=\"off\"\n [(ngModel)]=\"searchterm\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n (focus)=\"isFocused=true\"\n (blur)=\"isFocused=false\"\n [style.width.px]=\"searchWidth\"\n #searchBox />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static p-0\" [style.width.px]=\"hostWidth$ | async\">\n <li *ngFor=\"let suggestion of suggestions\" (click)=\"onSuggestionClicked(suggestion)\" [class.selected]=\"selectedItems | inList:suggestion.id\">{{ suggestion.text }}</li>\n </ul>\n </div>\n</div>\n\n<ng-template #defaultItemTemplate let-item=\"item\" let-select2=\"select2\">\n <span class=\"select2-item\">\n <span (click)=\"select2.onRemoveItem(item,$event)\">\u00D7</span>\n {{ item.text }}\n </span>\n</ng-template>\n", styles: [".items-box{display:block;position:relative;width:100%;min-height:38px;padding:0 5px 3px;cursor:text;border:1px solid #ccc}.items-box .select2-item{display:inline-block;background-color:#e4e4e4;color:#1a1a1a;border:1px solid #aaa;border-radius:4px;margin-top:5px;margin-right:5px;padding:0 5px;cursor:default;user-select:none;-webkit-user-select:none}.items-box .select2-item>span{cursor:pointer;color:#999}.items-box .select2-item>span:hover{color:#333}.items-box input{border:none;outline:0;margin:5px 0 2px;background:none}:host{display:block;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}:host.focus{color:#495057;background-color:#fff;border-color:#80bdff!important;outline:0;box-shadow:0 0 0 .2rem #007bff40}ul{max-height:200px;overflow-y:auto}ul>li{padding:10px;cursor:pointer}ul>li.selected{background:#ddd}ul>li:hover{color:#fff;background-color:#5897fb}\n"] }]
|
|
2975
|
+
}], propDecorators: { defaultItemTemplate: [{
|
|
2976
|
+
type: ViewChild,
|
|
2977
|
+
args: ['defaultItemTemplate', { static: true }]
|
|
2978
|
+
}], searchBox: [{
|
|
2361
2979
|
type: ViewChild,
|
|
2362
2980
|
args: ['searchBox']
|
|
2363
2981
|
}], itemsBox: [{
|
|
@@ -2380,9 +2998,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2380
2998
|
}], focus: [{
|
|
2381
2999
|
type: HostListener,
|
|
2382
3000
|
args: ['click']
|
|
2383
|
-
}], defaultItemTemplate: [{
|
|
2384
|
-
type: ViewChild,
|
|
2385
|
-
args: ['defaultItemTemplate', { static: true }]
|
|
2386
3001
|
}] } });
|
|
2387
3002
|
|
|
2388
3003
|
class BsItemTemplateDirective {
|
|
@@ -2457,163 +3072,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2457
3072
|
}]
|
|
2458
3073
|
}] });
|
|
2459
3074
|
|
|
2460
|
-
const SNACKBAR_CONTENT = new InjectionToken('SnackbarContent');
|
|
2461
|
-
|
|
2462
|
-
class BsSnackbarComponent {
|
|
2463
|
-
constructor(content) {
|
|
2464
|
-
this.displayBlock = true;
|
|
2465
|
-
this.width100 = true;
|
|
2466
|
-
this.instance = null;
|
|
2467
|
-
//#region Monitor @slideUpDown hooks
|
|
2468
|
-
this.animationState = '';
|
|
2469
|
-
this.animationStateChanged = new EventEmitter();
|
|
2470
|
-
this.content = content;
|
|
2471
|
-
}
|
|
2472
|
-
onAnimationChanged(event) {
|
|
2473
|
-
this.animationStateChanged.emit(event);
|
|
2474
|
-
}
|
|
2475
|
-
}
|
|
2476
|
-
BsSnackbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarComponent, deps: [{ token: SNACKBAR_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
2477
|
-
BsSnackbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsSnackbarComponent, selector: "bs-snackbar", host: { properties: { "class.d-block": "this.displayBlock", "class.w-100": "this.width100" } }, ngImport: i0, template: "<div [@slideUpDown]=\"animationState\"\n (@slideUpDown.start)=\"onAnimationChanged($event)\"\n (@slideUpDown.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [":host{background:#232323;color:rgba(var(--bs-light-rgb))}\n"], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [SlideUpDownAnimation] });
|
|
2478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarComponent, decorators: [{
|
|
2479
|
-
type: Component,
|
|
2480
|
-
args: [{ selector: 'bs-snackbar', animations: [SlideUpDownAnimation], template: "<div [@slideUpDown]=\"animationState\"\n (@slideUpDown.start)=\"onAnimationChanged($event)\"\n (@slideUpDown.done)=\"onAnimationChanged($event)\">\n\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [":host{background:#232323;color:rgba(var(--bs-light-rgb))}\n"] }]
|
|
2481
|
-
}], ctorParameters: function () {
|
|
2482
|
-
return [{ type: i0.TemplateRef, decorators: [{
|
|
2483
|
-
type: Inject,
|
|
2484
|
-
args: [SNACKBAR_CONTENT]
|
|
2485
|
-
}] }];
|
|
2486
|
-
}, propDecorators: { displayBlock: [{
|
|
2487
|
-
type: HostBinding,
|
|
2488
|
-
args: ['class.d-block']
|
|
2489
|
-
}], width100: [{
|
|
2490
|
-
type: HostBinding,
|
|
2491
|
-
args: ['class.w-100']
|
|
2492
|
-
}] } });
|
|
2493
|
-
|
|
2494
|
-
class BsSnackbarService {
|
|
2495
|
-
constructor(overlay, parentInjector, componentFactoryResolver) {
|
|
2496
|
-
this.overlay = overlay;
|
|
2497
|
-
this.parentInjector = parentInjector;
|
|
2498
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
2499
|
-
}
|
|
2500
|
-
show(template) {
|
|
2501
|
-
const injector = Injector.create({
|
|
2502
|
-
providers: [{ provide: SNACKBAR_CONTENT, useValue: template }],
|
|
2503
|
-
parent: this.parentInjector
|
|
2504
|
-
});
|
|
2505
|
-
const portal = new ComponentPortal(BsSnackbarComponent, null, injector, this.componentFactoryResolver);
|
|
2506
|
-
const overlayRef = this.overlay.create({
|
|
2507
|
-
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
2508
|
-
positionStrategy: this.overlay.position()
|
|
2509
|
-
.global().centerHorizontally().bottom('0'),
|
|
2510
|
-
width: '100%'
|
|
2511
|
-
});
|
|
2512
|
-
const componentInstance = overlayRef.attach(portal);
|
|
2513
|
-
componentInstance.instance['instance'] = {
|
|
2514
|
-
component: componentInstance,
|
|
2515
|
-
overlay: overlayRef
|
|
2516
|
-
};
|
|
2517
|
-
return componentInstance.instance;
|
|
2518
|
-
}
|
|
2519
|
-
hide(snackbar) {
|
|
2520
|
-
snackbar.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => {
|
|
2521
|
-
var _a;
|
|
2522
|
-
(_a = snackbar['instance']) === null || _a === void 0 ? void 0 : _a.overlay.dispose();
|
|
2523
|
-
});
|
|
2524
|
-
snackbar.animationState = 'void';
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
BsSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2528
|
-
BsSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, providedIn: 'root' });
|
|
2529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarService, decorators: [{
|
|
2530
|
-
type: Injectable,
|
|
2531
|
-
args: [{
|
|
2532
|
-
providedIn: 'root'
|
|
2533
|
-
}]
|
|
2534
|
-
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }]; } });
|
|
2535
|
-
|
|
2536
|
-
class BsSnackbarCloseDirective {
|
|
2537
|
-
constructor(snackbarService) {
|
|
2538
|
-
this.snackbarService = snackbarService;
|
|
2539
|
-
}
|
|
2540
|
-
onClick() {
|
|
2541
|
-
this.snackbarService.hide(this.bsSnackbarClose);
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2544
|
-
BsSnackbarCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarCloseDirective, deps: [{ token: BsSnackbarService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2545
|
-
BsSnackbarCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BsSnackbarCloseDirective, selector: "[bsSnackbarClose]", inputs: { bsSnackbarClose: "bsSnackbarClose" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
2546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarCloseDirective, decorators: [{
|
|
2547
|
-
type: Directive,
|
|
2548
|
-
args: [{
|
|
2549
|
-
selector: '[bsSnackbarClose]'
|
|
2550
|
-
}]
|
|
2551
|
-
}], ctorParameters: function () { return [{ type: BsSnackbarService }]; }, propDecorators: { bsSnackbarClose: [{
|
|
2552
|
-
type: Input
|
|
2553
|
-
}], onClick: [{
|
|
2554
|
-
type: HostListener,
|
|
2555
|
-
args: ['click']
|
|
2556
|
-
}] } });
|
|
2557
|
-
|
|
2558
|
-
class BsSnackbarModule {
|
|
2559
|
-
}
|
|
2560
|
-
BsSnackbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2561
|
-
BsSnackbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, declarations: [BsSnackbarComponent,
|
|
2562
|
-
BsSnackbarCloseDirective], imports: [CommonModule], exports: [BsSnackbarComponent,
|
|
2563
|
-
BsSnackbarCloseDirective] });
|
|
2564
|
-
BsSnackbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, providers: [
|
|
2565
|
-
// { provide: BsSnackbarComponent, useExisting: forwardRef(() => BsSnackbarComponent) }
|
|
2566
|
-
// { provide: BsSnackbarComponent, useClass: BsSnackbarComponent }
|
|
2567
|
-
], imports: [[
|
|
2568
|
-
CommonModule
|
|
2569
|
-
]] });
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsSnackbarModule, decorators: [{
|
|
2571
|
-
type: NgModule,
|
|
2572
|
-
args: [{
|
|
2573
|
-
declarations: [
|
|
2574
|
-
BsSnackbarComponent,
|
|
2575
|
-
BsSnackbarCloseDirective
|
|
2576
|
-
],
|
|
2577
|
-
imports: [
|
|
2578
|
-
CommonModule
|
|
2579
|
-
],
|
|
2580
|
-
exports: [
|
|
2581
|
-
BsSnackbarComponent,
|
|
2582
|
-
BsSnackbarCloseDirective
|
|
2583
|
-
],
|
|
2584
|
-
providers: [
|
|
2585
|
-
// { provide: BsSnackbarComponent, useExisting: forwardRef(() => BsSnackbarComponent) }
|
|
2586
|
-
// { provide: BsSnackbarComponent, useClass: BsSnackbarComponent }
|
|
2587
|
-
]
|
|
2588
|
-
}]
|
|
2589
|
-
}] });
|
|
2590
|
-
|
|
2591
3075
|
class BsTabPageComponent {
|
|
2592
3076
|
constructor(tabControl) {
|
|
2593
3077
|
this.disabled = false;
|
|
2594
3078
|
this.tabControl = tabControl;
|
|
2595
3079
|
}
|
|
2596
|
-
ngOnInit() {
|
|
2597
|
-
}
|
|
2598
3080
|
}
|
|
2599
3081
|
BsTabPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabPageComponent, deps: [{ token: BsTabControlComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
2600
3082
|
BsTabPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTabPageComponent, selector: "bs-tab-page", inputs: { disabled: "disabled" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2601
3083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabPageComponent, decorators: [{
|
|
2602
3084
|
type: Component,
|
|
2603
3085
|
args: [{ selector: 'bs-tab-page', template: "<ng-content *ngIf=\"tabControl.activeTab === this\"></ng-content>", styles: [""] }]
|
|
2604
|
-
}], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: {
|
|
3086
|
+
}], ctorParameters: function () { return [{ type: BsTabControlComponent }]; }, propDecorators: { disabled: [{
|
|
3087
|
+
type: Input
|
|
3088
|
+
}], headerTemplate: [{
|
|
2605
3089
|
type: ContentChild,
|
|
2606
3090
|
args: [TemplateRef]
|
|
2607
|
-
}], disabled: [{
|
|
2608
|
-
type: Input
|
|
2609
3091
|
}] } });
|
|
2610
3092
|
|
|
2611
3093
|
class BsTabControlComponent {
|
|
2612
3094
|
constructor() {
|
|
3095
|
+
this.border = true;
|
|
2613
3096
|
this.activeTab = null;
|
|
2614
3097
|
}
|
|
2615
|
-
ngOnInit() {
|
|
2616
|
-
}
|
|
2617
3098
|
setActiveTab(tab) {
|
|
2618
3099
|
if (!tab.disabled) {
|
|
2619
3100
|
this.activeTab = tab;
|
|
@@ -2622,13 +3103,15 @@ class BsTabControlComponent {
|
|
|
2622
3103
|
}
|
|
2623
3104
|
}
|
|
2624
3105
|
BsTabControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2625
|
-
BsTabControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTabControlComponent, selector: "bs-tab-control", queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent }], ngImport: i0, template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n
|
|
3106
|
+
BsTabControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTabControlComponent, selector: "bs-tab-control", inputs: { border: "border" }, queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent }], ngImport: i0, template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n<div class=\"tab-content\" [class.border]=\"border && activeTab\">\n <ng-content></ng-content>\n</div>", styles: [".tab-content{margin-top:-1px}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
2626
3107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTabControlComponent, decorators: [{
|
|
2627
3108
|
type: Component,
|
|
2628
|
-
args: [{ selector: 'bs-tab-control', template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n
|
|
2629
|
-
}],
|
|
3109
|
+
args: [{ selector: 'bs-tab-control', template: "<ul class=\"nav nav-tabs\">\n <ng-container *ngFor=\"let tab of tabPages\">\n <li class=\"nav-item\" (click)=\"setActiveTab(tab)\" *ngIf=\"!!tab.headerTemplate\">\n <a class=\"nav-link\" [class.active]=\"activeTab === tab\" [class.disabled]=\"tab.disabled\" [attr.aria-current]=\"activeTab === tab ? 'page' : null\" [attr.aria-disabled]=\"tab.disabled\" href=\"\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate\"></ng-container>\n </a>\n </li>\n </ng-container>\n</ul>\n<div class=\"tab-content\" [class.border]=\"border && activeTab\">\n <ng-content></ng-content>\n</div>", styles: [".tab-content{margin-top:-1px}\n"] }]
|
|
3110
|
+
}], propDecorators: { tabPages: [{
|
|
2630
3111
|
type: ContentChildren,
|
|
2631
3112
|
args: [BsTabPageComponent]
|
|
3113
|
+
}], border: [{
|
|
3114
|
+
type: Input
|
|
2632
3115
|
}] } });
|
|
2633
3116
|
|
|
2634
3117
|
class BsTabControlModule {
|
|
@@ -2662,14 +3145,11 @@ class BsToggleButtonComponent {
|
|
|
2662
3145
|
this.disableAnimations = true;
|
|
2663
3146
|
//#region isToggled
|
|
2664
3147
|
this._isToggled = false;
|
|
3148
|
+
this.change = new EventEmitter();
|
|
2665
3149
|
this.isToggledChange = new EventEmitter();
|
|
2666
3150
|
//#endregion
|
|
2667
|
-
|
|
2668
|
-
this.
|
|
2669
|
-
this.round = true;
|
|
2670
|
-
}
|
|
2671
|
-
ngAfterViewInit() {
|
|
2672
|
-
this.disableAnimations = false;
|
|
3151
|
+
//#region disabled
|
|
3152
|
+
this.disabled = false;
|
|
2673
3153
|
}
|
|
2674
3154
|
get isToggled() {
|
|
2675
3155
|
return this._isToggled;
|
|
@@ -2678,21 +3158,28 @@ class BsToggleButtonComponent {
|
|
|
2678
3158
|
this._isToggled = value;
|
|
2679
3159
|
this.isToggledChange.emit(this._isToggled);
|
|
2680
3160
|
}
|
|
3161
|
+
//#endregion
|
|
3162
|
+
onChange(event) {
|
|
3163
|
+
const val = event.target.checked;
|
|
3164
|
+
this.isToggled = val;
|
|
3165
|
+
this.change.emit(val);
|
|
3166
|
+
}
|
|
3167
|
+
ngAfterViewInit() {
|
|
3168
|
+
this.disableAnimations = false;
|
|
3169
|
+
}
|
|
2681
3170
|
}
|
|
2682
3171
|
BsToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2683
|
-
BsToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsToggleButtonComponent, selector: "bs-toggle-button", inputs: { isToggled: "isToggled",
|
|
3172
|
+
BsToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsToggleButtonComponent, selector: "bs-toggle-button", inputs: { isToggled: "isToggled", disabled: "disabled" }, outputs: { change: "change", isToggledChange: "isToggledChange" }, ngImport: i0, template: "<label class=\"form-check form-switch\">\n <input class=\"form-check-input\" type=\"checkbox\" [checked]=\"isToggled\" (change)=\"onChange($event)\" [disabled]=\"disabled\">\n <span class=\"form-check-label\">\n <ng-content></ng-content>\n </span>\n</label>", styles: [""], animations: [ColorTransitionAnimation] });
|
|
2684
3173
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsToggleButtonComponent, decorators: [{
|
|
2685
3174
|
type: Component,
|
|
2686
|
-
args: [{ selector: 'bs-toggle-button', animations: [ColorTransitionAnimation], template: "<label
|
|
2687
|
-
}], propDecorators: {
|
|
3175
|
+
args: [{ selector: 'bs-toggle-button', animations: [ColorTransitionAnimation], template: "<label class=\"form-check form-switch\">\n <input class=\"form-check-input\" type=\"checkbox\" [checked]=\"isToggled\" (change)=\"onChange($event)\" [disabled]=\"disabled\">\n <span class=\"form-check-label\">\n <ng-content></ng-content>\n </span>\n</label>", styles: [""] }]
|
|
3176
|
+
}], propDecorators: { change: [{
|
|
3177
|
+
type: Output
|
|
3178
|
+
}], isToggledChange: [{
|
|
2688
3179
|
type: Output
|
|
2689
3180
|
}], isToggled: [{
|
|
2690
3181
|
type: Input
|
|
2691
|
-
}],
|
|
2692
|
-
type: Input
|
|
2693
|
-
}], onColor: [{
|
|
2694
|
-
type: Input
|
|
2695
|
-
}], round: [{
|
|
3182
|
+
}], disabled: [{
|
|
2696
3183
|
type: Input
|
|
2697
3184
|
}] } });
|
|
2698
3185
|
|
|
@@ -2838,20 +3325,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2838
3325
|
}, {
|
|
2839
3326
|
type: SkipSelf
|
|
2840
3327
|
}] }];
|
|
2841
|
-
}, propDecorators: {
|
|
3328
|
+
}, propDecorators: { bsTooltip: [{
|
|
3329
|
+
type: Input
|
|
3330
|
+
}], onBlur: [{
|
|
2842
3331
|
type: HostListener,
|
|
2843
3332
|
args: ['window:blur']
|
|
2844
|
-
}], bsTooltip: [{
|
|
2845
|
-
type: Input
|
|
2846
3333
|
}] } });
|
|
2847
3334
|
|
|
2848
3335
|
class BsTooltipModule {
|
|
2849
3336
|
}
|
|
2850
3337
|
BsTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2851
3338
|
BsTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTooltipModule, declarations: [BsTooltipDirective,
|
|
2852
|
-
BsTooltipComponent], imports: [CommonModule
|
|
3339
|
+
BsTooltipComponent], imports: [CommonModule,
|
|
3340
|
+
OverlayModule], exports: [BsTooltipDirective] });
|
|
2853
3341
|
BsTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTooltipModule, imports: [[
|
|
2854
|
-
CommonModule
|
|
3342
|
+
CommonModule,
|
|
3343
|
+
OverlayModule
|
|
2855
3344
|
]] });
|
|
2856
3345
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTooltipModule, decorators: [{
|
|
2857
3346
|
type: NgModule,
|
|
@@ -2861,7 +3350,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2861
3350
|
BsTooltipComponent
|
|
2862
3351
|
],
|
|
2863
3352
|
imports: [
|
|
2864
|
-
CommonModule
|
|
3353
|
+
CommonModule,
|
|
3354
|
+
OverlayModule
|
|
2865
3355
|
],
|
|
2866
3356
|
exports: [
|
|
2867
3357
|
BsTooltipDirective
|
|
@@ -2923,7 +3413,7 @@ class BsTypeaheadComponent {
|
|
|
2923
3413
|
}
|
|
2924
3414
|
}
|
|
2925
3415
|
BsTypeaheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTypeaheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2926
|
-
BsTypeaheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTypeaheadComponent, selector: "bs-typeahead", inputs: { searchterm: "searchterm", isLoadingText: "isLoadingText", noSuggestionsText: "noSuggestionsText", suggestions: "suggestions" }, outputs: { provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", searchtermChange: "searchtermChange", submitted: "submitted" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], ngImport: i0, template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\">\n <input type=\"text\" class=\"form-control\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static\" [style.width.px]=\"hostWidth$ | async\">\n <bs-progress *ngIf=\"isLoading$ | async\" [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li *ngIf=\"isLoading$ | async\">\n <a class=\"dropdown-item disabled\">{{ isLoadingText }}</a>\n </li>\n <ng-container *ngIf=\"(isLoading$ | async) === false\">\n <li *ngIf=\"showNoSuggestions$ | async\">\n <a class=\"dropdown-item disabled\">{{ noSuggestionsText }}</a>\n </li>\n <li *ngFor=\"let suggestion of (suggestions$ | async)\" (click)=\"suggestionClicked(suggestion)\">\n <a class=\"dropdown-item cursor-pointer\">{{ suggestion.text }}</a>\n </li>\n </ng-container>\n </ul>\n </div>\n</div>", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"], components: [{ type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate"] }], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe } });
|
|
3416
|
+
BsTypeaheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BsTypeaheadComponent, selector: "bs-typeahead", inputs: { searchterm: "searchterm", isLoadingText: "isLoadingText", noSuggestionsText: "noSuggestionsText", suggestions: "suggestions" }, outputs: { provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", searchtermChange: "searchtermChange", submitted: "submitted" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true }], ngImport: i0, template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\">\n <input type=\"text\" class=\"form-control\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static\" [style.width.px]=\"hostWidth$ | async\">\n <bs-progress *ngIf=\"isLoading$ | async\" [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li *ngIf=\"isLoading$ | async\">\n <a class=\"dropdown-item disabled\">{{ isLoadingText }}</a>\n </li>\n <ng-container *ngIf=\"(isLoading$ | async) === false\">\n <li *ngIf=\"showNoSuggestions$ | async\">\n <a class=\"dropdown-item disabled\">{{ noSuggestionsText }}</a>\n </li>\n <li *ngFor=\"let suggestion of (suggestions$ | async)\" (click)=\"suggestionClicked(suggestion)\">\n <a class=\"dropdown-item cursor-pointer\">{{ suggestion.text }}</a>\n </li>\n </ng-container>\n </ul>\n </div>\n</div>", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"], components: [{ type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate"] }], directives: [{ type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "isOpen"], outputs: ["isOpenChange"] }, { type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe } });
|
|
2927
3417
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BsTypeaheadComponent, decorators: [{
|
|
2928
3418
|
type: Component,
|
|
2929
3419
|
args: [{ selector: 'bs-typeahead', template: "<div bsDropdown [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [closeOnClickOutside]=\"true\">\n <input type=\"text\" class=\"form-control\" #textbox [(ngModel)]=\"searchterm\" (ngModelChange)=\"onProvideSuggestions($event)\" (keyup.enter)=\"onSubmit()\" />\n <div *bsDropdownMenu>\n <ul class=\"dropdown-menu d-block position-static\" [style.width.px]=\"hostWidth$ | async\">\n <bs-progress *ngIf=\"isLoading$ | async\" [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li *ngIf=\"isLoading$ | async\">\n <a class=\"dropdown-item disabled\">{{ isLoadingText }}</a>\n </li>\n <ng-container *ngIf=\"(isLoading$ | async) === false\">\n <li *ngIf=\"showNoSuggestions$ | async\">\n <a class=\"dropdown-item disabled\">{{ noSuggestionsText }}</a>\n </li>\n <li *ngFor=\"let suggestion of (suggestions$ | async)\" (click)=\"suggestionClicked(suggestion)\">\n <a class=\"dropdown-item cursor-pointer\">{{ suggestion.text }}</a>\n </li>\n </ng-container>\n </ul>\n </div>\n</div>", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}\n"] }]
|
|
@@ -3032,5 +3522,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3032
3522
|
* Generated bundle index. Do not edit.
|
|
3033
3523
|
*/
|
|
3034
3524
|
|
|
3035
|
-
export { BsAccordionComponent, BsAccordionModule, BsAccordionTabComponent, BsAccordionTabHeaderComponent, BsAlertCloseComponent, BsAlertComponent, BsAlertModule, BsCalendarComponent, BsCalendarModule, BsCardComponent, BsCardHeaderComponent, BsCardModule, BsCarouselComponent, BsCarouselImageDirective, BsCarouselModule, BsContextMenuDirective, BsContextMenuModule, BsDatatableColumnDirective, BsDatatableComponent, BsDatatableModule, BsDatepickerComponent, BsDatepickerModule, BsDropdownDirective, BsDropdownMenuDirective, BsDropdownModule, BsDropdownToggleDirective, BsFileUploadComponent, BsFileUploadModule, BsFileUploadTemplateDirective, BsFontColorPipe, BsFontColorPipeModule, BsForDirective, BsForModule, BsItemTemplateDirective, BsListGroupComponent, BsListGroupItemComponent, BsListGroupModule, BsMultiselectComponent, BsMultiselectModule, BsNavbarComponent, BsNavbarDropdownComponent, BsNavbarItemComponent, BsNavbarModule, BsNavbarNavComponent, BsPaginationComponent, BsPaginationModule, BsProgressBarComponent, BsProgressBarModule, BsProgressComponent, BsRowTemplateDirective, BsScrollspyComponent, BsScrollspyDirective, BsScrollspyModule, BsSelect2Component, BsSelect2Module, BsSnackbarCloseDirective, BsSnackbarComponent, BsSnackbarModule, BsSnackbarService, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, BsToggleButtonComponent, BsToggleButtonModule, BsTooltipDirective, BsTooltipModule, BsTypeaheadComponent, BsTypeaheadModule, Color, DatatableSettings, DropdownToggleDirective, NavLinkDirective, NavbarContentDirective, Position };
|
|
3525
|
+
export { BsAccordionComponent, BsAccordionModule, BsAccordionTabComponent, BsAccordionTabHeaderComponent, BsAlertCloseComponent, BsAlertComponent, BsAlertModule, BsButtonTemplateDirective, BsCalendarComponent, BsCalendarModule, BsCardComponent, BsCardHeaderComponent, BsCardModule, BsCarouselComponent, BsCarouselImageDirective, BsCarouselModule, BsCodeSnippetComponent, BsCodeSnippetModule, BsContextMenuDirective, BsContextMenuModule, BsCopyDirective, BsCopyModule, BsDatatableColumnDirective, BsDatatableComponent, BsDatatableModule, BsDatepickerComponent, BsDatepickerModule, BsDropdownDirective, BsDropdownMenuDirective, BsDropdownModule, BsDropdownToggleDirective, BsFileUploadComponent, BsFileUploadModule, BsFileUploadTemplateDirective, BsFontColorPipe, BsFontColorPipeModule, BsFooterTemplateDirective, BsForDirective, BsForModule, BsFormatBytesModule, BsFormatBytesPipe, BsHeaderTemplateDirective, BsItemTemplateDirective, BsListGroupComponent, BsListGroupItemComponent, BsListGroupModule, BsModalBodyDirective, BsModalComponent, BsModalContentComponent, BsModalFooterDirective, BsModalHeaderDirective, BsModalModule, BsModalService, BsMultiselectComponent, BsMultiselectModule, BsNavbarBrandComponent, BsNavbarComponent, BsNavbarDropdownComponent, BsNavbarItemComponent, BsNavbarModule, BsNavbarNavComponent, BsPaginationComponent, BsPaginationModule, BsProgressBarComponent, BsProgressBarModule, BsProgressComponent, BsRatingComponent, BsRatingModule, BsRowTemplateDirective, BsScrollspyComponent, BsScrollspyDirective, BsScrollspyModule, BsSelect2Component, BsSelect2Module, BsSnackbarCloseDirective, BsSnackbarComponent, BsSnackbarModule, BsSnackbarService, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, BsToggleButtonComponent, BsToggleButtonModule, BsTooltipDirective, BsTooltipModule, BsTypeaheadComponent, BsTypeaheadModule, Color, DatatableSettings, DropdownToggleDirective, NavLinkDirective, NavbarContentDirective, Position };
|
|
3036
3526
|
//# sourceMappingURL=mintplayer-ng-bootstrap.mjs.map
|