@mintplayer/ng-bootstrap 13.3.11 → 13.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/accordion/accordion/accordion.component.mjs +4 -23
- package/esm2020/lib/components/accordion/accordion-tab/accordion-tab.component.mjs +35 -4
- package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +2 -7
- package/esm2020/lib/components/accordion/accordion.module.mjs +15 -5
- package/esm2020/lib/components/accordion/from-overlay/from-overlay.directive.mjs +61 -0
- package/esm2020/lib/components/accordion/from-overlay-id/from-overlay-id.directive.mjs +45 -0
- package/esm2020/lib/components/accordion/index.mjs +3 -1
- package/esm2020/lib/components/modal/component/modal/modal.component.mjs +1 -1
- package/esm2020/lib/components/modal/component/modal-content/modal-content.component.mjs +17 -5
- package/esm2020/lib/components/modal/service/modal.service.mjs +3 -2
- package/fesm2015/mintplayer-ng-bootstrap.mjs +160 -40
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +160 -40
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/accordion/accordion/accordion.component.d.ts +4 -7
- package/lib/components/accordion/accordion-tab/accordion-tab.component.d.ts +7 -2
- package/lib/components/accordion/accordion.module.d.ts +4 -2
- package/lib/components/accordion/from-overlay/from-overlay.directive.d.ts +20 -0
- package/lib/components/accordion/from-overlay-id/from-overlay-id.directive.d.ts +16 -0
- package/lib/components/accordion/index.d.ts +2 -0
- package/lib/components/modal/component/modal-content/modal-content.component.d.ts +2 -0
- package/lib/components/modal/service/modal.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ContentChildren, forwardRef,
|
|
2
|
+
import { EventEmitter, Component, ContentChildren, forwardRef, Output, Input, Directive, ElementRef, NgModule, Injectable, Pipe, HostBinding, InjectionToken, Inject, HostListener, Injector, ViewChild, Host, SkipSelf, PLATFORM_ID, ContentChild, ViewChildren, Optional, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DOCUMENT, isPlatformServer } from '@angular/common';
|
|
5
5
|
import { SlideUpDownAnimation, FadeInOutAnimation, CarouselSlideAnimation, ColorTransitionAnimation } from '@mintplayer/ng-animations';
|
|
6
|
-
import { Subject,
|
|
6
|
+
import { Subject, takeUntil, BehaviorSubject, combineLatest, filter, map, take, Observable, debounceTime } from 'rxjs';
|
|
7
7
|
import { map as map$1, takeUntil as takeUntil$1, take as take$1 } from 'rxjs/operators';
|
|
8
8
|
import { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
9
9
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
@@ -20,51 +20,63 @@ import { FormsModule } from '@angular/forms';
|
|
|
20
20
|
|
|
21
21
|
class BsAccordionTabComponent {
|
|
22
22
|
constructor(accordion) {
|
|
23
|
+
this.tabOverlayIdentifier = null;
|
|
24
|
+
//#region IsActive
|
|
25
|
+
this.isActiveChange = new EventEmitter();
|
|
26
|
+
this._isActive = false;
|
|
23
27
|
this.accordion = accordion;
|
|
24
28
|
}
|
|
29
|
+
get isActive() {
|
|
30
|
+
return this._isActive;
|
|
31
|
+
}
|
|
32
|
+
set isActive(value) {
|
|
33
|
+
if (this._isActive !== value) {
|
|
34
|
+
this._isActive = value;
|
|
35
|
+
if (this._isActive) {
|
|
36
|
+
this.accordion.tabPages.filter((tab) => {
|
|
37
|
+
return tab !== this;
|
|
38
|
+
}).forEach((tab) => {
|
|
39
|
+
tab.isActive = false;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.childAccordions.forEach((accordion) => {
|
|
44
|
+
accordion.tabPages.forEach((tab) => {
|
|
45
|
+
tab.isActive = false;
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
this.isActiveChange.emit(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
25
52
|
}
|
|
26
53
|
BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsAccordionTabComponent, selector: "bs-accordion-tab", queries: [{ propertyName: "childAccordions", predicate: i0.forwardRef(function () { return BsAccordionComponent; }) }], 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=\"
|
|
54
|
+
BsAccordionTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsAccordionTabComponent, selector: "bs-accordion-tab", inputs: { isActive: "isActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "childAccordions", predicate: i0.forwardRef(function () { return BsAccordionComponent; }) }], ngImport: i0, template: "<div class=\"card\" [@.disabled]=\"accordion.disableAnimations\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown] *ngIf=\"isActive\">\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] });
|
|
28
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
|
|
29
56
|
type: Component,
|
|
30
|
-
args: [{ selector: 'bs-accordion-tab', animations: [SlideUpDownAnimation], template: "<div class=\"card\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown] *ngIf=\"
|
|
57
|
+
args: [{ selector: 'bs-accordion-tab', animations: [SlideUpDownAnimation], template: "<div class=\"card\" [@.disabled]=\"accordion.disableAnimations\">\n <ng-content select=\"bs-accordion-tab-header\"></ng-content>\n <div class=\"card-block overflow-hidden\" [@slideUpDown] *ngIf=\"isActive\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".card,.card-header,.card-block{border-radius:0}.card{margin-bottom:-1px}\n"] }]
|
|
31
58
|
}], ctorParameters: function () { return [{ type: BsAccordionComponent }]; }, propDecorators: { childAccordions: [{
|
|
32
59
|
type: ContentChildren,
|
|
33
60
|
args: [forwardRef(() => BsAccordionComponent)]
|
|
61
|
+
}], isActiveChange: [{
|
|
62
|
+
type: Output
|
|
63
|
+
}], isActive: [{
|
|
64
|
+
type: Input
|
|
34
65
|
}] } });
|
|
35
66
|
|
|
36
67
|
class BsAccordionComponent {
|
|
37
68
|
constructor() {
|
|
38
|
-
|
|
39
|
-
this.activeTabChange = new EventEmitter();
|
|
40
|
-
this._activeTab = null;
|
|
41
|
-
}
|
|
42
|
-
get activeTab() {
|
|
43
|
-
return this._activeTab;
|
|
44
|
-
}
|
|
45
|
-
set activeTab(value) {
|
|
46
|
-
this._activeTab = value;
|
|
47
|
-
this.tabPages.filter((tab) => tab !== value).forEach((tab) => {
|
|
48
|
-
console.log('children', tab.childAccordions);
|
|
49
|
-
tab.childAccordions.forEach((acc) => {
|
|
50
|
-
acc.activeTab = null;
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
this.activeTabChange.emit(value);
|
|
69
|
+
this.disableAnimations = false;
|
|
54
70
|
}
|
|
55
71
|
}
|
|
56
72
|
BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
-
BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsAccordionComponent, selector: "bs-accordion",
|
|
73
|
+
BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsAccordionComponent, selector: "bs-accordion", queries: [{ propertyName: "tabPages", predicate: BsAccordionTabComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""] });
|
|
58
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionComponent, decorators: [{
|
|
59
75
|
type: Component,
|
|
60
76
|
args: [{ selector: 'bs-accordion', template: "<ng-content></ng-content>", styles: [""] }]
|
|
61
77
|
}], propDecorators: { tabPages: [{
|
|
62
78
|
type: ContentChildren,
|
|
63
79
|
args: [BsAccordionTabComponent]
|
|
64
|
-
}], activeTabChange: [{
|
|
65
|
-
type: Output
|
|
66
|
-
}], activeTab: [{
|
|
67
|
-
type: Input
|
|
68
80
|
}] } });
|
|
69
81
|
|
|
70
82
|
class BsAccordionTabHeaderComponent {
|
|
@@ -74,12 +86,7 @@ class BsAccordionTabHeaderComponent {
|
|
|
74
86
|
}
|
|
75
87
|
headerClicked(event) {
|
|
76
88
|
event.preventDefault();
|
|
77
|
-
|
|
78
|
-
this.accordion.activeTab = null;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
this.accordion.activeTab = this.accordionTab;
|
|
82
|
-
}
|
|
89
|
+
this.accordionTab.isActive = !this.accordionTab.isActive;
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
BsAccordionTabHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionTabHeaderComponent, deps: [{ token: BsAccordionTabComponent }, { token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -89,14 +96,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
89
96
|
args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
|
|
90
97
|
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
|
|
91
98
|
|
|
99
|
+
class BsFromOverlayIdDirective {
|
|
100
|
+
constructor(accordionTab, bsFromOverlay) {
|
|
101
|
+
this.accordionTab = accordionTab;
|
|
102
|
+
this.bsFromOverlay = bsFromOverlay;
|
|
103
|
+
this.destroyed$ = new Subject();
|
|
104
|
+
this.accordionTab.isActiveChange
|
|
105
|
+
.pipe(takeUntil(this.destroyed$))
|
|
106
|
+
.subscribe((isActive) => {
|
|
107
|
+
if (isActive) {
|
|
108
|
+
bsFromOverlay.bsFromOverlay = this.bsFromOverlayId;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
bsFromOverlay.bsFromOverlay = null;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
ngOnDestroy() {
|
|
116
|
+
this.destroyed$.next(true);
|
|
117
|
+
}
|
|
118
|
+
get bsFromOverlayId() {
|
|
119
|
+
return this._bsFromOverlayId;
|
|
120
|
+
}
|
|
121
|
+
set bsFromOverlayId(value) {
|
|
122
|
+
this._bsFromOverlayId = value;
|
|
123
|
+
this.accordionTab['tabOverlayIdentifier'] = value;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
BsFromOverlayIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayIdDirective, deps: [{ token: BsAccordionTabComponent }, { token: BsFromOverlayDirective }], target: i0.ɵɵFactoryTarget.Directive });
|
|
127
|
+
BsFromOverlayIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: BsFromOverlayIdDirective, selector: "bs-accordion-tab[bsFromOverlayId]", inputs: { bsFromOverlayId: "bsFromOverlayId" }, ngImport: i0 });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayIdDirective, decorators: [{
|
|
129
|
+
type: Directive,
|
|
130
|
+
args: [{
|
|
131
|
+
selector: 'bs-accordion-tab[bsFromOverlayId]'
|
|
132
|
+
}]
|
|
133
|
+
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsFromOverlayDirective }]; }, propDecorators: { bsFromOverlayId: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}] } });
|
|
136
|
+
|
|
137
|
+
class BsFromOverlayDirective {
|
|
138
|
+
constructor(accordion) {
|
|
139
|
+
this.accordion = accordion;
|
|
140
|
+
this.inited$ = new BehaviorSubject(false);
|
|
141
|
+
this.destroyed$ = new Subject();
|
|
142
|
+
this.activeOverlayIdentifier$ = new BehaviorSubject(null);
|
|
143
|
+
this.bsFromOverlayChange = new EventEmitter();
|
|
144
|
+
this._bsFromOverlay = null;
|
|
145
|
+
this.accordion.disableAnimations = true;
|
|
146
|
+
combineLatest([this.inited$, this.activeOverlayIdentifier$])
|
|
147
|
+
.pipe(filter(([inited, activeOverlayIdentifier]) => {
|
|
148
|
+
return inited;
|
|
149
|
+
}))
|
|
150
|
+
// .pipe(debounceTime(5))
|
|
151
|
+
.pipe(takeUntil(this.destroyed$))
|
|
152
|
+
.subscribe(([inited, activeOverlayIdentifier]) => {
|
|
153
|
+
this.bsFromOverlayChange.emit(activeOverlayIdentifier);
|
|
154
|
+
this.accordion.tabPages.forEach((tab) => {
|
|
155
|
+
tab.isActive = (tab["tabOverlayIdentifier"] == activeOverlayIdentifier);
|
|
156
|
+
});
|
|
157
|
+
setTimeout(() => this.accordion.disableAnimations = false, 30);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
get bsFromOverlay() {
|
|
161
|
+
return this._bsFromOverlay;
|
|
162
|
+
}
|
|
163
|
+
set bsFromOverlay(value) {
|
|
164
|
+
if (this._bsFromOverlay != value) {
|
|
165
|
+
this._bsFromOverlay = value;
|
|
166
|
+
this.activeOverlayIdentifier$.next(value);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
ngAfterContentInit() {
|
|
170
|
+
this.inited$.next(true);
|
|
171
|
+
}
|
|
172
|
+
ngOnDestroy() {
|
|
173
|
+
this.destroyed$.next(true);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
BsFromOverlayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayDirective, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
177
|
+
BsFromOverlayDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: BsFromOverlayDirective, selector: "bs-accordion[bsFromOverlay]", inputs: { bsFromOverlay: "bsFromOverlay" }, outputs: { bsFromOverlayChange: "bsFromOverlayChange" }, queries: [{ propertyName: "tabPages", predicate: BsFromOverlayIdDirective, read: ElementRef }], ngImport: i0 });
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayDirective, decorators: [{
|
|
179
|
+
type: Directive,
|
|
180
|
+
args: [{
|
|
181
|
+
selector: 'bs-accordion[bsFromOverlay]'
|
|
182
|
+
}]
|
|
183
|
+
}], ctorParameters: function () { return [{ type: BsAccordionComponent }]; }, propDecorators: { bsFromOverlayChange: [{
|
|
184
|
+
type: Output
|
|
185
|
+
}], bsFromOverlay: [{
|
|
186
|
+
type: Input
|
|
187
|
+
}], tabPages: [{
|
|
188
|
+
type: ContentChildren,
|
|
189
|
+
args: [BsFromOverlayIdDirective, { read: ElementRef }]
|
|
190
|
+
}] } });
|
|
191
|
+
|
|
92
192
|
class BsAccordionModule {
|
|
93
193
|
}
|
|
94
194
|
BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
95
195
|
BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
|
|
96
196
|
BsAccordionTabComponent,
|
|
97
|
-
BsAccordionTabHeaderComponent
|
|
197
|
+
BsAccordionTabHeaderComponent,
|
|
198
|
+
BsFromOverlayDirective,
|
|
199
|
+
BsFromOverlayIdDirective], imports: [CommonModule], exports: [BsAccordionComponent,
|
|
98
200
|
BsAccordionTabComponent,
|
|
99
|
-
BsAccordionTabHeaderComponent
|
|
201
|
+
BsAccordionTabHeaderComponent,
|
|
202
|
+
BsFromOverlayDirective,
|
|
203
|
+
BsFromOverlayIdDirective] });
|
|
100
204
|
BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, imports: [[
|
|
101
205
|
CommonModule
|
|
102
206
|
]] });
|
|
@@ -106,7 +210,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
106
210
|
declarations: [
|
|
107
211
|
BsAccordionComponent,
|
|
108
212
|
BsAccordionTabComponent,
|
|
109
|
-
BsAccordionTabHeaderComponent
|
|
213
|
+
BsAccordionTabHeaderComponent,
|
|
214
|
+
BsFromOverlayDirective,
|
|
215
|
+
BsFromOverlayIdDirective
|
|
110
216
|
],
|
|
111
217
|
imports: [
|
|
112
218
|
CommonModule
|
|
@@ -114,7 +220,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
114
220
|
exports: [
|
|
115
221
|
BsAccordionComponent,
|
|
116
222
|
BsAccordionTabComponent,
|
|
117
|
-
BsAccordionTabHeaderComponent
|
|
223
|
+
BsAccordionTabHeaderComponent,
|
|
224
|
+
BsFromOverlayDirective,
|
|
225
|
+
BsFromOverlayIdDirective
|
|
118
226
|
]
|
|
119
227
|
}]
|
|
120
228
|
}] });
|
|
@@ -2897,7 +3005,8 @@ const MODAL_CONTENT = new InjectionToken('ModalContent');
|
|
|
2897
3005
|
class BsModalContentComponent {
|
|
2898
3006
|
constructor(content) {
|
|
2899
3007
|
this.instance = null;
|
|
2900
|
-
|
|
3008
|
+
this.closeOnEscape = false;
|
|
3009
|
+
//#region Monitor @fadeInOut hooks
|
|
2901
3010
|
this.animationState = '';
|
|
2902
3011
|
this.animationStateChanged = new EventEmitter();
|
|
2903
3012
|
this.content = content;
|
|
@@ -2905,9 +3014,16 @@ class BsModalContentComponent {
|
|
|
2905
3014
|
onAnimationChanged(event) {
|
|
2906
3015
|
this.animationStateChanged.emit(event);
|
|
2907
3016
|
}
|
|
3017
|
+
//#endregion
|
|
3018
|
+
onKeyDown(ev) {
|
|
3019
|
+
if (this.closeOnEscape && ev.code === 'Escape') {
|
|
3020
|
+
this.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => { var _a; return (_a = this.instance) === null || _a === void 0 ? void 0 : _a.overlay.dispose(); });
|
|
3021
|
+
this.animationState = 'void';
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
2908
3024
|
}
|
|
2909
3025
|
BsModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsModalContentComponent, deps: [{ token: MODAL_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
2910
|
-
BsModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", 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] });
|
|
3026
|
+
BsModalContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsModalContentComponent, selector: "bs-modal-content", host: { listeners: { "keydown": "onKeyDown($event)" } }, 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] });
|
|
2911
3027
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsModalContentComponent, decorators: [{
|
|
2912
3028
|
type: Component,
|
|
2913
3029
|
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: [""] }]
|
|
@@ -2916,7 +3032,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
2916
3032
|
type: Inject,
|
|
2917
3033
|
args: [MODAL_CONTENT]
|
|
2918
3034
|
}] }];
|
|
2919
|
-
}
|
|
3035
|
+
}, propDecorators: { onKeyDown: [{
|
|
3036
|
+
type: HostListener,
|
|
3037
|
+
args: ['keydown', ['$event']]
|
|
3038
|
+
}] } });
|
|
2920
3039
|
|
|
2921
3040
|
class BsModalHeaderDirective {
|
|
2922
3041
|
constructor(modal, template) {
|
|
@@ -3005,7 +3124,7 @@ class BsModalService {
|
|
|
3005
3124
|
this.parentInjector = parentInjector;
|
|
3006
3125
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
3007
3126
|
}
|
|
3008
|
-
show(template) {
|
|
3127
|
+
show(template, closeOnEscape = false) {
|
|
3009
3128
|
const injector = Injector.create({
|
|
3010
3129
|
providers: [{ provide: MODAL_CONTENT, useValue: template }],
|
|
3011
3130
|
parent: this.parentInjector
|
|
@@ -3023,6 +3142,7 @@ class BsModalService {
|
|
|
3023
3142
|
component: componentInstance,
|
|
3024
3143
|
overlay: overlayRef
|
|
3025
3144
|
};
|
|
3145
|
+
componentInstance.instance.closeOnEscape = closeOnEscape;
|
|
3026
3146
|
return componentInstance.instance;
|
|
3027
3147
|
}
|
|
3028
3148
|
hide(modal) {
|
|
@@ -4886,5 +5006,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
4886
5006
|
* Generated bundle index. Do not edit.
|
|
4887
5007
|
*/
|
|
4888
5008
|
|
|
4889
|
-
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, BsExpandButtonDirective, 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, BsNavbarTogglerComponent, BsOffcanvasBodyComponent, BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasHeaderComponent, BsOffcanvasModule, BsOffcanvasService, BsPaginationComponent, BsPaginationModule, BsProgressBarComponent, BsProgressBarModule, BsProgressComponent, BsRatingComponent, BsRatingModule, BsRowTemplateDirective, BsSchedulerComponent, BsSchedulerModule, BsScrollspyComponent, BsScrollspyDirective, BsScrollspyModule, BsSelect2Component, BsSelect2Module, BsSnackbarCloseDirective, BsSnackbarComponent, BsSnackbarModule, BsSnackbarService, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, BsTimepickerComponent, BsTimepickerModule, BsToggleButtonComponent, BsToggleButtonModule, BsTooltipDirective, BsTooltipModule, BsTypeaheadComponent, BsTypeaheadModule, Color, DatatableSettings, DropdownToggleDirective, ESchedulerMode, NavLinkDirective, NavbarContentDirective, Position, ResourceGroupPresenterComponent, availableScales };
|
|
5009
|
+
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, BsExpandButtonDirective, BsFileUploadComponent, BsFileUploadModule, BsFileUploadTemplateDirective, BsFontColorPipe, BsFontColorPipeModule, BsFooterTemplateDirective, BsForDirective, BsForModule, BsFormatBytesModule, BsFormatBytesPipe, BsFromOverlayDirective, BsFromOverlayIdDirective, BsHeaderTemplateDirective, BsItemTemplateDirective, BsListGroupComponent, BsListGroupItemComponent, BsListGroupModule, BsModalBodyDirective, BsModalComponent, BsModalContentComponent, BsModalFooterDirective, BsModalHeaderDirective, BsModalModule, BsModalService, BsMultiselectComponent, BsMultiselectModule, BsNavbarBrandComponent, BsNavbarComponent, BsNavbarDropdownComponent, BsNavbarItemComponent, BsNavbarModule, BsNavbarNavComponent, BsNavbarTogglerComponent, BsOffcanvasBodyComponent, BsOffcanvasCloseDirective, BsOffcanvasComponent, BsOffcanvasHeaderComponent, BsOffcanvasModule, BsOffcanvasService, BsPaginationComponent, BsPaginationModule, BsProgressBarComponent, BsProgressBarModule, BsProgressComponent, BsRatingComponent, BsRatingModule, BsRowTemplateDirective, BsSchedulerComponent, BsSchedulerModule, BsScrollspyComponent, BsScrollspyDirective, BsScrollspyModule, BsSelect2Component, BsSelect2Module, BsSnackbarCloseDirective, BsSnackbarComponent, BsSnackbarModule, BsSnackbarService, BsTabControlComponent, BsTabControlModule, BsTabPageComponent, BsTimepickerComponent, BsTimepickerModule, BsToggleButtonComponent, BsToggleButtonModule, BsTooltipDirective, BsTooltipModule, BsTypeaheadComponent, BsTypeaheadModule, Color, DatatableSettings, DropdownToggleDirective, ESchedulerMode, NavLinkDirective, NavbarContentDirective, Position, ResourceGroupPresenterComponent, availableScales };
|
|
4890
5010
|
//# sourceMappingURL=mintplayer-ng-bootstrap.mjs.map
|