@mintplayer/ng-bootstrap 14.9.0 → 14.10.1
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 +1 -1
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/components/navbar/navbar-brand/navbar-brand.component.mjs +3 -5
- package/esm2020/lib/components/navbar/navbar.module.mjs +1 -5
- package/esm2020/lib/components/select/component/select.component.mjs +85 -0
- package/esm2020/lib/components/select/index.mjs +5 -0
- package/esm2020/lib/components/select/select.module.mjs +31 -0
- package/esm2020/lib/components/select/types/index.mjs +2 -0
- package/esm2020/lib/components/select/types/select-size.mjs +2 -0
- package/esm2020/lib/components/select/value-accessors/index.mjs +2 -0
- package/esm2020/lib/components/select/value-accessors/select-value-accessor.mjs +171 -0
- package/fesm2015/mintplayer-ng-bootstrap.mjs +276 -8
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +274 -8
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/navbar/navbar.module.d.ts +2 -3
- package/lib/components/select/component/select.component.d.ts +26 -0
- package/lib/components/select/index.d.ts +4 -0
- package/lib/components/select/select.module.d.ts +9 -0
- package/lib/components/select/types/index.d.ts +1 -0
- package/lib/components/select/types/select-size.d.ts +1 -0
- package/lib/components/select/value-accessors/index.d.ts +1 -0
- package/lib/components/select/value-accessors/select-value-accessor.d.ts +44 -0
- package/package.json +1 -1
|
@@ -10,10 +10,9 @@ import * as i8 from "./navbar-brand/navbar-brand.component";
|
|
|
10
10
|
import * as i9 from "./expand-button/expand-button.directive";
|
|
11
11
|
import * as i10 from "./navbar-toggler/navbar-toggler.component";
|
|
12
12
|
import * as i11 from "@angular/common";
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@mintplayer/ng-click-outside";
|
|
13
|
+
import * as i12 from "@mintplayer/ng-click-outside";
|
|
15
14
|
export declare class BsNavbarModule {
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsNavbarModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BsNavbarModule, [typeof i1.BsNavbarComponent, typeof i2.BsNavbarNavComponent, typeof i3.BsNavbarDropdownComponent, typeof i4.BsNavbarItemComponent, typeof i5.DropdownToggleDirective, typeof i6.NavLinkDirective, typeof i7.NavbarContentDirective, typeof i8.BsNavbarBrandComponent, typeof i9.BsExpandButtonDirective, typeof i10.BsNavbarTogglerComponent], [typeof i11.CommonModule, typeof i12.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsNavbarModule, [typeof i1.BsNavbarComponent, typeof i2.BsNavbarNavComponent, typeof i3.BsNavbarDropdownComponent, typeof i4.BsNavbarItemComponent, typeof i5.DropdownToggleDirective, typeof i6.NavLinkDirective, typeof i7.NavbarContentDirective, typeof i8.BsNavbarBrandComponent, typeof i9.BsExpandButtonDirective, typeof i10.BsNavbarTogglerComponent], [typeof i11.CommonModule, typeof i12.ClickOutsideModule], [typeof i1.BsNavbarComponent, typeof i2.BsNavbarNavComponent, typeof i3.BsNavbarDropdownComponent, typeof i4.BsNavbarItemComponent, typeof i5.DropdownToggleDirective, typeof i6.NavLinkDirective, typeof i7.NavbarContentDirective, typeof i8.BsNavbarBrandComponent, typeof i9.BsExpandButtonDirective, typeof i10.BsNavbarTogglerComponent]>;
|
|
18
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<BsNavbarModule>;
|
|
19
18
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { BsSelectSize } from '../types/select-size';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsSelectComponent implements OnInit {
|
|
6
|
+
private renderer;
|
|
7
|
+
constructor(renderer: Renderer2);
|
|
8
|
+
identifier: number;
|
|
9
|
+
selectBox: ElementRef<HTMLSelectElement>;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
size$: BehaviorSubject<BsSelectSize>;
|
|
12
|
+
get size(): BsSelectSize;
|
|
13
|
+
set size(value: BsSelectSize);
|
|
14
|
+
multiple$: BehaviorSubject<boolean>;
|
|
15
|
+
get multiple(): boolean;
|
|
16
|
+
set multiple(value: boolean);
|
|
17
|
+
numberVisible$: BehaviorSubject<number | null>;
|
|
18
|
+
get numberVisible(): number | null;
|
|
19
|
+
set numberVisible(value: number | null);
|
|
20
|
+
get disabled(): boolean;
|
|
21
|
+
set disabled(value: boolean);
|
|
22
|
+
sizeClass$: Observable<string | null>;
|
|
23
|
+
multipleValue$: Observable<boolean | null>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSelectComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsSelectComponent, "bs-select", never, { "identifier": "identifier"; "size": "size"; "multiple": "multiple"; "numberVisible": "numberVisible"; "disabled": "disabled"; }, {}, never, ["*"], false>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./component/select.component";
|
|
3
|
+
import * as i2 from "./value-accessors/select-value-accessor";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class BsSelectModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSelectModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsSelectModule, [typeof i1.BsSelectComponent, typeof i2.BsSelectValueAccessor, typeof i2.BsSelectOption], [typeof i3.CommonModule], [typeof i1.BsSelectComponent, typeof i2.BsSelectValueAccessor, typeof i2.BsSelectOption]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BsSelectModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-size';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type BsSelectSize = 'sm' | 'md' | 'lg';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-value-accessor';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, Renderer2 } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
import { BsSelectComponent } from "../component/select.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsSelectValueAccessor implements ControlValueAccessor {
|
|
6
|
+
private _renderer;
|
|
7
|
+
private _elementRef;
|
|
8
|
+
private selectBox;
|
|
9
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef, selectBox: BsSelectComponent);
|
|
10
|
+
onChange: (_: any) => void;
|
|
11
|
+
onTouched: () => void;
|
|
12
|
+
registerOnTouched(fn: () => void): void;
|
|
13
|
+
registerOnChange(fn: (p: any) => {}): void;
|
|
14
|
+
setDisabledState(isDisabled: boolean): void;
|
|
15
|
+
protected setProperty(key: string, value: any): void;
|
|
16
|
+
hostOnChange(ev: InputEvent): void;
|
|
17
|
+
hostBlur(ev: Event): void;
|
|
18
|
+
value: any;
|
|
19
|
+
optionMap: Map<string, any>;
|
|
20
|
+
idCounter: number;
|
|
21
|
+
private compareWithFunction;
|
|
22
|
+
set compareWith(value: (value1: any, value2: any) => boolean);
|
|
23
|
+
buildValueString(id: string | null, value: any): string;
|
|
24
|
+
extractId(valueString: string): string;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
registerOption(): string;
|
|
27
|
+
getOptionId(value: any): string | null;
|
|
28
|
+
getOptionValue(valueString: string): any;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSelectValueAccessor, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsSelectValueAccessor, "bs-select", never, { "compareWith": "compareWith"; }, {}, never, never, false>;
|
|
31
|
+
}
|
|
32
|
+
export declare class BsSelectOption implements OnDestroy {
|
|
33
|
+
private element;
|
|
34
|
+
private renderer;
|
|
35
|
+
private select;
|
|
36
|
+
constructor(element: ElementRef, renderer: Renderer2, select: BsSelectValueAccessor);
|
|
37
|
+
id: string;
|
|
38
|
+
set ngValue(value: any);
|
|
39
|
+
set value(value: any);
|
|
40
|
+
setElementValue(value: string): void;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSelectOption, [null, null, { optional: true; host: true; }]>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsSelectOption, "option", never, { "ngValue": "ngValue"; "value": "value"; }, {}, never, never, false>;
|
|
44
|
+
}
|