@mintplayer/ng-bootstrap 13.1.9 → 13.1.14
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 +7 -0
- package/esm2020/lib/components/context-menu/context-menu.directive.mjs +34 -14
- package/esm2020/lib/components/dropdown/dropdown/dropdown.directive.mjs +10 -3
- package/esm2020/lib/components/dropdown/dropdown-menu/dropdown-menu.directive.mjs +3 -1
- package/esm2020/lib/components/file-upload/component/file-upload.component.mjs +85 -0
- package/esm2020/lib/components/file-upload/directive/file-upload-template.directive.mjs +18 -0
- package/esm2020/lib/components/file-upload/file-upload.mjs +2 -0
- package/esm2020/lib/components/file-upload/file-upload.module.mjs +43 -0
- package/esm2020/lib/components/file-upload/index.mjs +5 -0
- package/esm2020/lib/components/for/for.directive.mjs +32 -0
- package/esm2020/lib/components/for/for.module.mjs +26 -0
- package/esm2020/lib/components/for/index.mjs +3 -0
- package/esm2020/lib/components/index.mjs +3 -1
- package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +9 -6
- package/esm2020/lib/components/navbar/navbar-nav/navbar-nav.component.mjs +46 -9
- package/esm2020/lib/components/scrollspy/component/scrollspy.component.mjs +30 -6
- package/esm2020/lib/components/select2/directive/item-template.directive.mjs +1 -2
- package/esm2020/lib/components/snackbar/component/snackbar.component.mjs +1 -1
- package/esm2020/lib/components/snackbar/service/snackbar.service.mjs +1 -2
- package/esm2020/lib/components/tooltip/directive/tooltip.directive.mjs +10 -4
- package/esm2020/lib/pipes/format-bytes/format-bytes.module.mjs +26 -0
- package/esm2020/lib/pipes/format-bytes/format-bytes.pipe.mjs +23 -0
- package/esm2020/lib/pipes/index.mjs +1 -1
- package/fesm2015/mintplayer-ng-bootstrap.mjs +519 -203
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +519 -203
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/context-menu/context-menu.directive.d.ts +2 -0
- package/lib/components/dropdown/dropdown/dropdown.directive.d.ts +1 -0
- package/lib/components/file-upload/component/file-upload.component.d.ts +19 -0
- package/lib/components/file-upload/directive/file-upload-template.directive.d.ts +8 -0
- package/lib/components/file-upload/file-upload.d.ts +4 -0
- package/lib/components/file-upload/file-upload.module.d.ts +12 -0
- package/lib/components/file-upload/index.d.ts +4 -0
- package/lib/components/for/for.directive.d.ts +7 -0
- package/lib/components/for/for.module.d.ts +8 -0
- package/lib/components/for/index.d.ts +2 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/navbar/navbar/navbar.component.d.ts +3 -3
- package/lib/components/navbar/navbar-nav/navbar-nav.component.d.ts +10 -4
- package/lib/components/scrollspy/component/scrollspy.component.d.ts +11 -3
- package/lib/components/snackbar/component/snackbar.component.d.ts +1 -2
- package/lib/components/tooltip/directive/tooltip.directive.d.ts +1 -0
- package/lib/pipes/format-bytes/format-bytes.module.d.ts +8 -0
- package/lib/pipes/format-bytes/format-bytes.pipe.d.ts +7 -0
- package/package.json +1 -1
- package/src/assets/ic-upload-file.svg +7 -0
- package/src/styles/utilities/cursor.scss +14 -0
|
@@ -8,6 +8,8 @@ export declare class BsContextMenuDirective {
|
|
|
8
8
|
private element;
|
|
9
9
|
constructor(overlay: Overlay, templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, element: ElementRef);
|
|
10
10
|
clickAnywhere(ev: MouseEvent): void;
|
|
11
|
+
private onBlur;
|
|
12
|
+
private close;
|
|
11
13
|
private checkAndCloseExisting;
|
|
12
14
|
private overlayRef;
|
|
13
15
|
private templatePortal;
|
|
@@ -15,6 +15,7 @@ export declare class BsDropdownDirective {
|
|
|
15
15
|
get isOpen(): boolean;
|
|
16
16
|
isOpenChange: EventEmitter<boolean>;
|
|
17
17
|
set isOpen(value: boolean);
|
|
18
|
+
private onBlur;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownDirective, never>;
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownDirective, "[bsDropdown]", never, { "hasBackdrop": "hasBackdrop"; "sameWidth": "sameWidth"; "closeOnClickOutside": "closeOnClickOutside"; "isOpen": "isOpen"; }, { "isOpenChange": "isOpenChange"; }, ["menu", "toggle"]>;
|
|
20
21
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FileUpload } from '../file-upload';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BsFileUploadComponent {
|
|
5
|
+
dropFilesCaption: string;
|
|
6
|
+
browseFilesCaption: string;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
isDraggingFile: boolean;
|
|
9
|
+
fileTemplate?: TemplateRef<FileUpload>;
|
|
10
|
+
files: FileUpload[];
|
|
11
|
+
filesDropped: EventEmitter<FileUpload[]>;
|
|
12
|
+
onChange(event: Event): void;
|
|
13
|
+
onDragOver(event: DragEvent): void;
|
|
14
|
+
onDragLeave(event: DragEvent): void;
|
|
15
|
+
onDrop(event: DragEvent): void;
|
|
16
|
+
private processDroppedFiles;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFileUploadComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsFileUploadComponent, "bs-file-upload", never, { "dropFilesCaption": "dropFilesCaption"; "browseFilesCaption": "browseFilesCaption"; "placeholder": "placeholder"; "files": "files"; }, { "filesDropped": "filesDropped"; }, never, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { BsFileUploadComponent } from '../component/file-upload.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BsFileUploadTemplateDirective {
|
|
5
|
+
constructor(fileUploadComponent: BsFileUploadComponent, templateRef: TemplateRef<any>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFileUploadTemplateDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsFileUploadTemplateDirective, "[bsFileUploadTemplate]", never, {}, {}, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./component/file-upload.component";
|
|
3
|
+
import * as i2 from "./directive/file-upload-template.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../for/for.module";
|
|
6
|
+
import * as i5 from "../../pipes/format-bytes/format-bytes.module";
|
|
7
|
+
import * as i6 from "../progress-bar/progress-bar.module";
|
|
8
|
+
export declare class BsFileUploadModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFileUploadModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsFileUploadModule, [typeof i1.BsFileUploadComponent, typeof i2.BsFileUploadTemplateDirective], [typeof i3.CommonModule, typeof i4.BsForModule, typeof i5.BsFormatBytesModule, typeof i6.BsProgressBarModule], [typeof i1.BsFileUploadComponent, typeof i2.BsFileUploadTemplateDirective]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BsFileUploadModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class BsForDirective {
|
|
3
|
+
bsFor: any;
|
|
4
|
+
onMouseClick(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsForDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsForDirective, "[bsFor]", never, { "bsFor": "bsFor"; }, {}, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./for.directive";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class BsForModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsForModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsForModule, [typeof i1.BsForDirective], [typeof i2.CommonModule], [typeof i1.BsForDirective]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BsForModule>;
|
|
8
|
+
}
|
|
@@ -7,6 +7,8 @@ export * from './context-menu';
|
|
|
7
7
|
export * from './datatable';
|
|
8
8
|
export * from './datepicker';
|
|
9
9
|
export * from './dropdown';
|
|
10
|
+
export * from './file-upload';
|
|
11
|
+
export * from './for';
|
|
10
12
|
export * from './list-group';
|
|
11
13
|
export * from './multiselect';
|
|
12
14
|
export * from './navbar';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BsNavbarComponent {
|
|
4
|
-
constructor();
|
|
5
|
-
isExpanded: boolean;
|
|
6
|
-
toggleExpanded(): void;
|
|
7
5
|
nav: ElementRef;
|
|
6
|
+
isExpanded$: BehaviorSubject<boolean>;
|
|
7
|
+
toggleExpanded(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsNavbarComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsNavbarComponent, "bs-navbar", never, {}, {}, never, ["*"]>;
|
|
10
10
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { BsNavbarComponent } from '../navbar/navbar.component';
|
|
3
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BsNavbarNavComponent implements
|
|
5
|
+
export declare class BsNavbarNavComponent implements OnDestroy {
|
|
5
6
|
constructor(bsNavbar: BsNavbarComponent);
|
|
6
|
-
ngOnInit(): void;
|
|
7
7
|
bsNavbar: BsNavbarComponent;
|
|
8
|
-
|
|
8
|
+
collapse$: BehaviorSubject<boolean>;
|
|
9
|
+
windowWidth$: BehaviorSubject<number | null>;
|
|
10
|
+
showNavs$: Observable<boolean>;
|
|
11
|
+
isResizing$: BehaviorSubject<boolean>;
|
|
12
|
+
destroyed$: Subject<unknown>;
|
|
13
|
+
ngOnDestroy(): void;
|
|
9
14
|
set collapse(value: boolean);
|
|
10
15
|
get collapse(): boolean;
|
|
16
|
+
onWindowResize(): void;
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsNavbarNavComponent, never>;
|
|
12
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsNavbarNavComponent, "bs-navbar-nav", never, { "collapse": "collapse"; }, {}, never, ["*"]>;
|
|
13
19
|
}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, NgZone, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { BsScrollOffsetService } from '../../../services/scroll-offset/scroll-offset.service';
|
|
3
3
|
import { BsScrollspyDirective } from '../directives/scrollspy.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BsScrollspyComponent implements AfterViewInit {
|
|
5
|
+
export declare class BsScrollspyComponent implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
6
6
|
private scrollOffsetService;
|
|
7
|
-
|
|
7
|
+
private zone;
|
|
8
|
+
constructor(scrollOffsetService: BsScrollOffsetService, document: any, zone: NgZone);
|
|
9
|
+
private destroyed$;
|
|
10
|
+
private viewInit$;
|
|
11
|
+
private contentInit$;
|
|
8
12
|
directives: QueryList<BsScrollspyDirective>;
|
|
9
13
|
anchors: QueryList<ElementRef<HTMLSpanElement>>;
|
|
10
14
|
doc: Document;
|
|
11
15
|
activeDirective: BsScrollspyDirective | null;
|
|
12
16
|
ngAfterViewInit(): void;
|
|
17
|
+
ngAfterContentInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
13
19
|
onWindowScroll(): void;
|
|
20
|
+
setActiveDirective(): void;
|
|
21
|
+
scrollToCurrentInSpy(): void;
|
|
14
22
|
scrollToHeader(directive: BsScrollspyDirective): void;
|
|
15
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsScrollspyComponent, never>;
|
|
16
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsScrollspyComponent, "bs-scrollspy", never, {}, {}, ["directives"], ["*"]>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
-
import { SnackbarAnimationMeta } from '../interfaces/snackbar-animation-meta';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class BsSnackbarComponent {
|
|
6
5
|
constructor(content: TemplateRef<any>);
|
|
7
6
|
displayBlock: boolean;
|
|
8
7
|
width100: boolean;
|
|
9
8
|
content: TemplateRef<any>;
|
|
10
|
-
|
|
9
|
+
private instance;
|
|
11
10
|
animationState: string;
|
|
12
11
|
animationStateChanged: EventEmitter<AnimationEvent>;
|
|
13
12
|
onAnimationChanged(event: AnimationEvent): void;
|
|
@@ -8,6 +8,7 @@ export declare class BsTooltipDirective {
|
|
|
8
8
|
private parentInjector;
|
|
9
9
|
private parent;
|
|
10
10
|
constructor(overlay: Overlay, templateRef: TemplateRef<any>, componentFactoryResolver: ComponentFactoryResolver, parentInjector: Injector, parent: ElementRef);
|
|
11
|
+
private onBlur;
|
|
11
12
|
bsTooltip: Position;
|
|
12
13
|
private injector;
|
|
13
14
|
private portal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./format-bytes.pipe";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class BsFormatBytesModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFormatBytesModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsFormatBytesModule, [typeof i1.BsFormatBytesPipe], [typeof i2.CommonModule], [typeof i1.BsFormatBytesPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BsFormatBytesModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BsFormatBytesPipe implements PipeTransform {
|
|
4
|
+
transform(value: number, decimals?: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsFormatBytesPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BsFormatBytesPipe, "bsFormatBytes">;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="63" height="64" viewBox="0 0 63 64">
|
|
2
|
+
<g fill="#3B454F" fill-rule="nonzero">
|
|
3
|
+
<path d="M42.656 15.135a1.953 1.953 0 0 1-1.391-.578L31.5 4.795l-9.765 9.762a1.97 1.97 0 1 1-2.785-2.785L30.106.616a1.97 1.97 0 0 1 2.785 0l11.157 11.156a1.97 1.97 0 0 1-1.392 3.363z"/>
|
|
4
|
+
<path d="M31.5 36.791a1.97 1.97 0 0 1-1.969-1.969V2.01a1.97 1.97 0 0 1 3.938 0v32.812a1.97 1.97 0 0 1-1.969 1.969z"/>
|
|
5
|
+
<path d="M55.781 63.041H7.22A7.225 7.225 0 0 1 0 55.822V41.385a4.599 4.599 0 0 1 4.594-4.594h7.234a4.567 4.567 0 0 1 4.402 3.276l2.814 9.382a.658.658 0 0 0 .628.467h23.656a.658.658 0 0 0 .628-.467l2.814-9.385a4.572 4.572 0 0 1 4.402-3.273h7.234A4.599 4.599 0 0 1 63 41.385v14.437a7.225 7.225 0 0 1-7.219 7.219zM4.594 40.729a.656.656 0 0 0-.657.656v14.437a3.286 3.286 0 0 0 3.282 3.282H55.78a3.286 3.286 0 0 0 3.282-3.282V41.385a.656.656 0 0 0-.657-.656h-7.234a.65.65 0 0 0-.628.467L47.73 50.58a4.628 4.628 0 0 1-4.402 3.274H19.672a4.567 4.567 0 0 1-4.402-3.276l-2.814-9.382a.65.65 0 0 0-.628-.467H4.594z"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import "~bootstrap/scss/bootstrap-utilities.scss";
|
|
2
|
+
|
|
3
|
+
//Generate utilites for Cursor
|
|
4
|
+
$utilities: map-merge(
|
|
5
|
+
$utilities,
|
|
6
|
+
(
|
|
7
|
+
"cursor": (
|
|
8
|
+
property: cursor,
|
|
9
|
+
values: auto default pointer wait text move help not-allowed
|
|
10
|
+
),
|
|
11
|
+
)
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
@import "~bootstrap/scss/bootstrap.scss";
|