@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 * as i1$1 from '@angular/cdk/overlay';
|
|
9
9
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
@@ -21,51 +21,63 @@ import { FormsModule } from '@angular/forms';
|
|
|
21
21
|
|
|
22
22
|
class BsAccordionTabComponent {
|
|
23
23
|
constructor(accordion) {
|
|
24
|
+
this.tabOverlayIdentifier = null;
|
|
25
|
+
//#region IsActive
|
|
26
|
+
this.isActiveChange = new EventEmitter();
|
|
27
|
+
this._isActive = false;
|
|
24
28
|
this.accordion = accordion;
|
|
25
29
|
}
|
|
30
|
+
get isActive() {
|
|
31
|
+
return this._isActive;
|
|
32
|
+
}
|
|
33
|
+
set isActive(value) {
|
|
34
|
+
if (this._isActive !== value) {
|
|
35
|
+
this._isActive = value;
|
|
36
|
+
if (this._isActive) {
|
|
37
|
+
this.accordion.tabPages.filter((tab) => {
|
|
38
|
+
return tab !== this;
|
|
39
|
+
}).forEach((tab) => {
|
|
40
|
+
tab.isActive = false;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.childAccordions.forEach((accordion) => {
|
|
45
|
+
accordion.tabPages.forEach((tab) => {
|
|
46
|
+
tab.isActive = false;
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
this.isActiveChange.emit(value);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
26
53
|
}
|
|
27
54
|
BsAccordionTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionTabComponent, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
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=\"
|
|
55
|
+
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] });
|
|
29
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
|
|
30
57
|
type: Component,
|
|
31
|
-
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=\"
|
|
58
|
+
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"] }]
|
|
32
59
|
}], ctorParameters: function () { return [{ type: BsAccordionComponent }]; }, propDecorators: { childAccordions: [{
|
|
33
60
|
type: ContentChildren,
|
|
34
61
|
args: [forwardRef(() => BsAccordionComponent)]
|
|
62
|
+
}], isActiveChange: [{
|
|
63
|
+
type: Output
|
|
64
|
+
}], isActive: [{
|
|
65
|
+
type: Input
|
|
35
66
|
}] } });
|
|
36
67
|
|
|
37
68
|
class BsAccordionComponent {
|
|
38
69
|
constructor() {
|
|
39
|
-
|
|
40
|
-
this.activeTabChange = new EventEmitter();
|
|
41
|
-
this._activeTab = null;
|
|
42
|
-
}
|
|
43
|
-
get activeTab() {
|
|
44
|
-
return this._activeTab;
|
|
45
|
-
}
|
|
46
|
-
set activeTab(value) {
|
|
47
|
-
this._activeTab = value;
|
|
48
|
-
this.tabPages.filter((tab) => tab !== value).forEach((tab) => {
|
|
49
|
-
console.log('children', tab.childAccordions);
|
|
50
|
-
tab.childAccordions.forEach((acc) => {
|
|
51
|
-
acc.activeTab = null;
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
this.activeTabChange.emit(value);
|
|
70
|
+
this.disableAnimations = false;
|
|
55
71
|
}
|
|
56
72
|
}
|
|
57
73
|
BsAccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
58
|
-
BsAccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: BsAccordionComponent, selector: "bs-accordion",
|
|
74
|
+
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: [""] });
|
|
59
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionComponent, decorators: [{
|
|
60
76
|
type: Component,
|
|
61
77
|
args: [{ selector: 'bs-accordion', template: "<ng-content></ng-content>", styles: [""] }]
|
|
62
78
|
}], propDecorators: { tabPages: [{
|
|
63
79
|
type: ContentChildren,
|
|
64
80
|
args: [BsAccordionTabComponent]
|
|
65
|
-
}], activeTabChange: [{
|
|
66
|
-
type: Output
|
|
67
|
-
}], activeTab: [{
|
|
68
|
-
type: Input
|
|
69
81
|
}] } });
|
|
70
82
|
|
|
71
83
|
class BsAccordionTabHeaderComponent {
|
|
@@ -75,12 +87,7 @@ class BsAccordionTabHeaderComponent {
|
|
|
75
87
|
}
|
|
76
88
|
headerClicked(event) {
|
|
77
89
|
event.preventDefault();
|
|
78
|
-
|
|
79
|
-
this.accordion.activeTab = null;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
this.accordion.activeTab = this.accordionTab;
|
|
83
|
-
}
|
|
90
|
+
this.accordionTab.isActive = !this.accordionTab.isActive;
|
|
84
91
|
}
|
|
85
92
|
}
|
|
86
93
|
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 });
|
|
@@ -90,14 +97,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
90
97
|
args: [{ selector: 'bs-accordion-tab-header', template: "<div class=\"card-header cursor-pointer\" (click)=\"headerClicked($event)\">\n <ng-content></ng-content>\n</div>", styles: [""] }]
|
|
91
98
|
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsAccordionComponent }]; } });
|
|
92
99
|
|
|
100
|
+
class BsFromOverlayIdDirective {
|
|
101
|
+
constructor(accordionTab, bsFromOverlay) {
|
|
102
|
+
this.accordionTab = accordionTab;
|
|
103
|
+
this.bsFromOverlay = bsFromOverlay;
|
|
104
|
+
this.destroyed$ = new Subject();
|
|
105
|
+
this.accordionTab.isActiveChange
|
|
106
|
+
.pipe(takeUntil(this.destroyed$))
|
|
107
|
+
.subscribe((isActive) => {
|
|
108
|
+
if (isActive) {
|
|
109
|
+
bsFromOverlay.bsFromOverlay = this.bsFromOverlayId;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
bsFromOverlay.bsFromOverlay = null;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
ngOnDestroy() {
|
|
117
|
+
this.destroyed$.next(true);
|
|
118
|
+
}
|
|
119
|
+
get bsFromOverlayId() {
|
|
120
|
+
return this._bsFromOverlayId;
|
|
121
|
+
}
|
|
122
|
+
set bsFromOverlayId(value) {
|
|
123
|
+
this._bsFromOverlayId = value;
|
|
124
|
+
this.accordionTab['tabOverlayIdentifier'] = value;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
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 });
|
|
128
|
+
BsFromOverlayIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: BsFromOverlayIdDirective, selector: "bs-accordion-tab[bsFromOverlayId]", inputs: { bsFromOverlayId: "bsFromOverlayId" }, ngImport: i0 });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayIdDirective, decorators: [{
|
|
130
|
+
type: Directive,
|
|
131
|
+
args: [{
|
|
132
|
+
selector: 'bs-accordion-tab[bsFromOverlayId]'
|
|
133
|
+
}]
|
|
134
|
+
}], ctorParameters: function () { return [{ type: BsAccordionTabComponent }, { type: BsFromOverlayDirective }]; }, propDecorators: { bsFromOverlayId: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}] } });
|
|
137
|
+
|
|
138
|
+
class BsFromOverlayDirective {
|
|
139
|
+
constructor(accordion) {
|
|
140
|
+
this.accordion = accordion;
|
|
141
|
+
this.inited$ = new BehaviorSubject(false);
|
|
142
|
+
this.destroyed$ = new Subject();
|
|
143
|
+
this.activeOverlayIdentifier$ = new BehaviorSubject(null);
|
|
144
|
+
this.bsFromOverlayChange = new EventEmitter();
|
|
145
|
+
this._bsFromOverlay = null;
|
|
146
|
+
this.accordion.disableAnimations = true;
|
|
147
|
+
combineLatest([this.inited$, this.activeOverlayIdentifier$])
|
|
148
|
+
.pipe(filter(([inited, activeOverlayIdentifier]) => {
|
|
149
|
+
return inited;
|
|
150
|
+
}))
|
|
151
|
+
// .pipe(debounceTime(5))
|
|
152
|
+
.pipe(takeUntil(this.destroyed$))
|
|
153
|
+
.subscribe(([inited, activeOverlayIdentifier]) => {
|
|
154
|
+
this.bsFromOverlayChange.emit(activeOverlayIdentifier);
|
|
155
|
+
this.accordion.tabPages.forEach((tab) => {
|
|
156
|
+
tab.isActive = (tab["tabOverlayIdentifier"] == activeOverlayIdentifier);
|
|
157
|
+
});
|
|
158
|
+
setTimeout(() => this.accordion.disableAnimations = false, 30);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
get bsFromOverlay() {
|
|
162
|
+
return this._bsFromOverlay;
|
|
163
|
+
}
|
|
164
|
+
set bsFromOverlay(value) {
|
|
165
|
+
if (this._bsFromOverlay != value) {
|
|
166
|
+
this._bsFromOverlay = value;
|
|
167
|
+
this.activeOverlayIdentifier$.next(value);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
ngAfterContentInit() {
|
|
171
|
+
this.inited$.next(true);
|
|
172
|
+
}
|
|
173
|
+
ngOnDestroy() {
|
|
174
|
+
this.destroyed$.next(true);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
BsFromOverlayDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayDirective, deps: [{ token: BsAccordionComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
178
|
+
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 });
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsFromOverlayDirective, decorators: [{
|
|
180
|
+
type: Directive,
|
|
181
|
+
args: [{
|
|
182
|
+
selector: 'bs-accordion[bsFromOverlay]'
|
|
183
|
+
}]
|
|
184
|
+
}], ctorParameters: function () { return [{ type: BsAccordionComponent }]; }, propDecorators: { bsFromOverlayChange: [{
|
|
185
|
+
type: Output
|
|
186
|
+
}], bsFromOverlay: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], tabPages: [{
|
|
189
|
+
type: ContentChildren,
|
|
190
|
+
args: [BsFromOverlayIdDirective, { read: ElementRef }]
|
|
191
|
+
}] } });
|
|
192
|
+
|
|
93
193
|
class BsAccordionModule {
|
|
94
194
|
}
|
|
95
195
|
BsAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
96
196
|
BsAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, declarations: [BsAccordionComponent,
|
|
97
197
|
BsAccordionTabComponent,
|
|
98
|
-
BsAccordionTabHeaderComponent
|
|
198
|
+
BsAccordionTabHeaderComponent,
|
|
199
|
+
BsFromOverlayDirective,
|
|
200
|
+
BsFromOverlayIdDirective], imports: [CommonModule], exports: [BsAccordionComponent,
|
|
99
201
|
BsAccordionTabComponent,
|
|
100
|
-
BsAccordionTabHeaderComponent
|
|
202
|
+
BsAccordionTabHeaderComponent,
|
|
203
|
+
BsFromOverlayDirective,
|
|
204
|
+
BsFromOverlayIdDirective] });
|
|
101
205
|
BsAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsAccordionModule, imports: [[
|
|
102
206
|
CommonModule
|
|
103
207
|
]] });
|
|
@@ -107,7 +211,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
107
211
|
declarations: [
|
|
108
212
|
BsAccordionComponent,
|
|
109
213
|
BsAccordionTabComponent,
|
|
110
|
-
BsAccordionTabHeaderComponent
|
|
214
|
+
BsAccordionTabHeaderComponent,
|
|
215
|
+
BsFromOverlayDirective,
|
|
216
|
+
BsFromOverlayIdDirective
|
|
111
217
|
],
|
|
112
218
|
imports: [
|
|
113
219
|
CommonModule
|
|
@@ -115,7 +221,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
115
221
|
exports: [
|
|
116
222
|
BsAccordionComponent,
|
|
117
223
|
BsAccordionTabComponent,
|
|
118
|
-
BsAccordionTabHeaderComponent
|
|
224
|
+
BsAccordionTabHeaderComponent,
|
|
225
|
+
BsFromOverlayDirective,
|
|
226
|
+
BsFromOverlayIdDirective
|
|
119
227
|
]
|
|
120
228
|
}]
|
|
121
229
|
}] });
|
|
@@ -2884,7 +2992,8 @@ const MODAL_CONTENT = new InjectionToken('ModalContent');
|
|
|
2884
2992
|
class BsModalContentComponent {
|
|
2885
2993
|
constructor(content) {
|
|
2886
2994
|
this.instance = null;
|
|
2887
|
-
|
|
2995
|
+
this.closeOnEscape = false;
|
|
2996
|
+
//#region Monitor @fadeInOut hooks
|
|
2888
2997
|
this.animationState = '';
|
|
2889
2998
|
this.animationStateChanged = new EventEmitter();
|
|
2890
2999
|
this.content = content;
|
|
@@ -2892,16 +3001,26 @@ class BsModalContentComponent {
|
|
|
2892
3001
|
onAnimationChanged(event) {
|
|
2893
3002
|
this.animationStateChanged.emit(event);
|
|
2894
3003
|
}
|
|
3004
|
+
//#endregion
|
|
3005
|
+
onKeyDown(ev) {
|
|
3006
|
+
if (this.closeOnEscape && ev.code === 'Escape') {
|
|
3007
|
+
this.animationStateChanged.pipe(filter(ev => ev.phaseName === 'done' && ev.toState === 'void'), take(1)).subscribe(() => this.instance?.overlay.dispose());
|
|
3008
|
+
this.animationState = 'void';
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
2895
3011
|
}
|
|
2896
3012
|
BsModalContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsModalContentComponent, deps: [{ token: MODAL_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
2897
|
-
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] });
|
|
3013
|
+
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] });
|
|
2898
3014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: BsModalContentComponent, decorators: [{
|
|
2899
3015
|
type: Component,
|
|
2900
3016
|
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: [""] }]
|
|
2901
3017
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
2902
3018
|
type: Inject,
|
|
2903
3019
|
args: [MODAL_CONTENT]
|
|
2904
|
-
}] }]; }
|
|
3020
|
+
}] }]; }, propDecorators: { onKeyDown: [{
|
|
3021
|
+
type: HostListener,
|
|
3022
|
+
args: ['keydown', ['$event']]
|
|
3023
|
+
}] } });
|
|
2905
3024
|
|
|
2906
3025
|
class BsModalHeaderDirective {
|
|
2907
3026
|
constructor(modal, template) {
|
|
@@ -2990,7 +3109,7 @@ class BsModalService {
|
|
|
2990
3109
|
this.parentInjector = parentInjector;
|
|
2991
3110
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
2992
3111
|
}
|
|
2993
|
-
show(template) {
|
|
3112
|
+
show(template, closeOnEscape = false) {
|
|
2994
3113
|
const injector = Injector.create({
|
|
2995
3114
|
providers: [{ provide: MODAL_CONTENT, useValue: template }],
|
|
2996
3115
|
parent: this.parentInjector
|
|
@@ -3008,6 +3127,7 @@ class BsModalService {
|
|
|
3008
3127
|
component: componentInstance,
|
|
3009
3128
|
overlay: overlayRef
|
|
3010
3129
|
};
|
|
3130
|
+
componentInstance.instance.closeOnEscape = closeOnEscape;
|
|
3011
3131
|
return componentInstance.instance;
|
|
3012
3132
|
}
|
|
3013
3133
|
hide(modal) {
|
|
@@ -4848,5 +4968,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
4848
4968
|
* Generated bundle index. Do not edit.
|
|
4849
4969
|
*/
|
|
4850
4970
|
|
|
4851
|
-
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 };
|
|
4971
|
+
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 };
|
|
4852
4972
|
//# sourceMappingURL=mintplayer-ng-bootstrap.mjs.map
|