@mintplayer/ng-bootstrap 14.8.0 → 14.9.0

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.
Files changed (71) hide show
  1. package/_bootstrap.scss +13 -4
  2. package/esm2020/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.mjs +3 -3
  3. package/esm2020/lib/components/card/card/card.component.mjs +3 -3
  4. package/esm2020/lib/components/context-menu/context-menu.directive.mjs +1 -6
  5. package/esm2020/lib/components/datatable/datatable/datatable.component.mjs +15 -5
  6. package/esm2020/lib/components/datatable/datatable.module.mjs +9 -1
  7. package/esm2020/lib/components/file-upload/component/file-upload.component.mjs +6 -4
  8. package/esm2020/lib/components/file-upload/file-upload.module.mjs +8 -4
  9. package/esm2020/lib/components/grid/component/grid.component.mjs +32 -0
  10. package/esm2020/lib/components/grid/directives/column/column.directive.mjs +56 -0
  11. package/esm2020/lib/components/grid/directives/index.mjs +3 -0
  12. package/esm2020/lib/components/grid/directives/row/row.directive.mjs +19 -0
  13. package/esm2020/lib/components/grid/grid.module.mjs +20 -0
  14. package/esm2020/lib/components/grid/index.mjs +4 -0
  15. package/esm2020/lib/components/index.mjs +4 -1
  16. package/esm2020/lib/components/navbar/navbar/navbar.component.mjs +2 -2
  17. package/esm2020/lib/components/offcanvas/components/offcanvas/offcanvas.component.mjs +1 -2
  18. package/esm2020/lib/components/placeholder/placeholder/placeholder.component.mjs +12 -6
  19. package/esm2020/lib/components/placeholder/placeholder-field/placeholder-field.directive.mjs +13 -4
  20. package/esm2020/lib/components/range/component/range.component.mjs +15 -0
  21. package/esm2020/lib/components/range/index.mjs +4 -0
  22. package/esm2020/lib/components/range/range.module.mjs +19 -0
  23. package/esm2020/lib/components/range/value-accessor/range-value-accessor.mjs +62 -0
  24. package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +3 -3
  25. package/esm2020/lib/components/table/component/table.component.mjs +47 -0
  26. package/esm2020/lib/components/table/index.mjs +3 -0
  27. package/esm2020/lib/components/table/table.module.mjs +18 -0
  28. package/esm2020/lib/components/toggle-button/component/toggle-button.component.mjs +162 -0
  29. package/esm2020/lib/components/toggle-button/directives/index.mjs +2 -0
  30. package/esm2020/lib/components/toggle-button/directives/toggle-button-group/toggle-button-group.directive.mjs +19 -0
  31. package/esm2020/lib/components/toggle-button/index.mjs +5 -2
  32. package/esm2020/lib/components/toggle-button/toggle-button.module.mjs +15 -5
  33. package/esm2020/lib/components/toggle-button/types/check-style.mjs +2 -0
  34. package/esm2020/lib/components/toggle-button/types/index.mjs +2 -0
  35. package/esm2020/lib/components/toggle-button/value-accessor/toggle-button-value-accessor.mjs +108 -0
  36. package/esm2020/lib/types/breakpoint.mjs +2 -0
  37. package/fesm2015/mintplayer-ng-bootstrap.mjs +605 -89
  38. package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
  39. package/fesm2020/mintplayer-ng-bootstrap.mjs +605 -89
  40. package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
  41. package/lib/components/datatable/datatable/datatable.component.d.ts +4 -1
  42. package/lib/components/datatable/datatable.module.d.ts +4 -2
  43. package/lib/components/file-upload/file-upload.module.d.ts +2 -1
  44. package/lib/components/grid/component/grid.component.d.ts +12 -0
  45. package/lib/components/grid/directives/column/column.directive.d.ts +12 -0
  46. package/lib/components/grid/directives/index.d.ts +2 -0
  47. package/lib/components/grid/directives/row/row.directive.d.ts +6 -0
  48. package/lib/components/grid/grid.module.d.ts +10 -0
  49. package/lib/components/grid/index.d.ts +3 -0
  50. package/lib/components/index.d.ts +3 -0
  51. package/lib/components/placeholder/placeholder/placeholder.component.d.ts +5 -2
  52. package/lib/components/placeholder/placeholder-field/placeholder-field.directive.d.ts +2 -0
  53. package/lib/components/range/component/range.component.d.ts +8 -0
  54. package/lib/components/range/index.d.ts +3 -0
  55. package/lib/components/range/range.module.d.ts +9 -0
  56. package/lib/components/range/value-accessor/range-value-accessor.d.ts +20 -0
  57. package/lib/components/table/component/table.component.d.ts +16 -0
  58. package/lib/components/table/index.d.ts +2 -0
  59. package/lib/components/table/table.module.d.ts +8 -0
  60. package/lib/components/toggle-button/component/toggle-button.component.d.ts +38 -0
  61. package/lib/components/toggle-button/directives/index.d.ts +1 -0
  62. package/lib/components/toggle-button/directives/toggle-button-group/toggle-button-group.directive.d.ts +9 -0
  63. package/lib/components/toggle-button/index.d.ts +4 -1
  64. package/lib/components/toggle-button/toggle-button.module.d.ts +5 -3
  65. package/lib/components/toggle-button/types/check-style.d.ts +1 -0
  66. package/lib/components/toggle-button/types/index.d.ts +1 -0
  67. package/lib/components/toggle-button/value-accessor/toggle-button-value-accessor.d.ts +20 -0
  68. package/lib/types/breakpoint.d.ts +1 -0
  69. package/package.json +1 -1
  70. package/esm2020/lib/components/toggle-button/toggle-button.component.mjs +0 -45
  71. package/lib/components/toggle-button/toggle-button.component.d.ts +0 -15
@@ -1,11 +1,14 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PaginationResponse } from '@mintplayer/ng-pagination';
3
+ import { BehaviorSubject, Observable } from 'rxjs';
3
4
  import { BsDatatableColumnDirective } from '../datatable-column/datatable-column.directive';
4
5
  import { DatatableSettings } from '../datatable-settings';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class BsDatatableComponent {
7
8
  constructor();
8
- columns: BsDatatableColumnDirective[];
9
+ columns$: BehaviorSubject<BsDatatableColumnDirective[]>;
10
+ numberOfColumns$: Observable<number>;
11
+ set columns(value: BsDatatableColumnDirective[]);
9
12
  settings: DatatableSettings;
10
13
  data?: PaginationResponse<any>;
11
14
  rowTemplate?: TemplateRef<any>;
@@ -3,9 +3,11 @@ import * as i1 from "./datatable/datatable.component";
3
3
  import * as i2 from "./row-template/row-template.directive";
4
4
  import * as i3 from "./datatable-column/datatable-column.directive";
5
5
  import * as i4 from "@angular/common";
6
- import * as i5 from "../pagination/pagination.module";
6
+ import * as i5 from "../grid/grid.module";
7
+ import * as i6 from "../table/table.module";
8
+ import * as i7 from "../pagination/pagination.module";
7
9
  export declare class BsDatatableModule {
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<BsDatatableModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<BsDatatableModule, [typeof i1.BsDatatableComponent, typeof i2.BsRowTemplateDirective, typeof i3.BsDatatableColumnDirective], [typeof i4.CommonModule, typeof i5.BsPaginationModule], [typeof i1.BsDatatableComponent, typeof i2.BsRowTemplateDirective, typeof i3.BsDatatableColumnDirective]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsDatatableModule, [typeof i1.BsDatatableComponent, typeof i2.BsRowTemplateDirective, typeof i3.BsDatatableColumnDirective], [typeof i4.CommonModule, typeof i5.BsGridModule, typeof i6.BsTableModule, typeof i7.BsPaginationModule], [typeof i1.BsDatatableComponent, typeof i2.BsRowTemplateDirective, typeof i3.BsDatatableColumnDirective]>;
10
12
  static ɵinj: i0.ɵɵInjectorDeclaration<BsDatatableModule>;
11
13
  }
@@ -5,8 +5,9 @@ import * as i3 from "@angular/common";
5
5
  import * as i4 from "../for/for.module";
6
6
  import * as i5 from "../../pipes/format-bytes/format-bytes.module";
7
7
  import * as i6 from "../progress-bar/progress-bar.module";
8
+ import * as i7 from "../list-group/list-group.module";
8
9
  export declare class BsFileUploadModule {
9
10
  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 ɵmod: i0.ɵɵNgModuleDeclaration<BsFileUploadModule, [typeof i1.BsFileUploadComponent, typeof i2.BsFileUploadTemplateDirective], [typeof i3.CommonModule, typeof i4.BsForModule, typeof i5.BsFormatBytesModule, typeof i6.BsProgressBarModule, typeof i7.BsListGroupModule], [typeof i1.BsFileUploadComponent, typeof i2.BsFileUploadTemplateDirective]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<BsFileUploadModule>;
12
13
  }
@@ -0,0 +1,12 @@
1
+ import { BehaviorSubject, Observable } from 'rxjs';
2
+ import { Breakpoint } from '../../../types/breakpoint';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsGridComponent {
5
+ constructor();
6
+ stopFullWidthAt$: BehaviorSubject<Breakpoint | "never">;
7
+ get stopFullWidthAt(): Breakpoint | 'never';
8
+ set stopFullWidthAt(value: Breakpoint | 'never');
9
+ containerClass$: Observable<string>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsGridComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsGridComponent, "bs-grid", never, { "stopFullWidthAt": "stopFullWidthAt"; }, {}, never, ["*"], false>;
12
+ }
@@ -0,0 +1,12 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsGridColumnDirective implements OnDestroy {
4
+ constructor();
5
+ private customColClasses$;
6
+ private destroyed$;
7
+ classList: string | null;
8
+ set bsColumn(value: object | '' | undefined);
9
+ ngOnDestroy(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsGridColumnDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsGridColumnDirective, "[bsColumn]", never, { "bsColumn": "bsColumn"; }, {}, never, never, false>;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './row/row.directive';
2
+ export * from './column/column.directive';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BsGridRowDirective {
3
+ rowClass: boolean;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsGridRowDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsGridRowDirective, "[bsRow]", never, {}, {}, never, never, false>;
6
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component/grid.component";
3
+ import * as i2 from "./directives/row/row.directive";
4
+ import * as i3 from "./directives/column/column.directive";
5
+ import * as i4 from "@angular/common";
6
+ export declare class BsGridModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsGridModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsGridModule, [typeof i1.BsGridComponent, typeof i2.BsGridRowDirective, typeof i3.BsGridColumnDirective], [typeof i4.CommonModule], [typeof i1.BsGridComponent, typeof i2.BsGridRowDirective, typeof i3.BsGridColumnDirective]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsGridModule>;
10
+ }
@@ -0,0 +1,3 @@
1
+ export * from './component/grid.component';
2
+ export * from './directives';
3
+ export * from './grid.module';
@@ -15,6 +15,7 @@ export * from './datepicker';
15
15
  export * from './dropdown';
16
16
  export * from './file-upload';
17
17
  export * from './for';
18
+ export * from './grid';
18
19
  export * from './scheduler';
19
20
  export * from './list-group';
20
21
  export * from './modal';
@@ -25,11 +26,13 @@ export * from './pagination';
25
26
  export * from './placeholder';
26
27
  export * from './popover';
27
28
  export * from './progress-bar';
29
+ export * from './range';
28
30
  export * from './rating';
29
31
  export * from './scrollspy';
30
32
  export * from './select2';
31
33
  export * from './snackbar';
32
34
  export * from './spinner';
35
+ export * from './table';
33
36
  export * from './tab-control';
34
37
  export * from './timepicker';
35
38
  export * from './toast';
@@ -1,8 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { BehaviorSubject } from 'rxjs';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class BsPlaceholderComponent {
4
5
  isLoading$: BehaviorSubject<boolean>;
5
- set bsPlaceholder(value: boolean);
6
+ isLoadingChange: EventEmitter<boolean>;
7
+ get isLoading(): boolean;
8
+ set isLoading(value: boolean);
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BsPlaceholderComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<BsPlaceholderComponent, "[bsPlaceholder]", never, { "bsPlaceholder": "bsPlaceholder"; }, {}, never, ["*"], false>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsPlaceholderComponent, "bs-placeholder", never, { "isLoading": "isLoading"; }, {}, never, ["*"], false>;
8
11
  }
@@ -5,6 +5,8 @@ import * as i0 from "@angular/core";
5
5
  export declare class BsPlaceholderFieldDirective implements OnDestroy {
6
6
  private placeholder;
7
7
  constructor(placeholder: BsPlaceholderComponent);
8
+ html?: string;
9
+ minWidth: number;
8
10
  marginBottom: number;
9
11
  placeholderClass: boolean;
10
12
  destroyed$: Subject<unknown>;
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsRangeComponent {
4
+ constructor();
5
+ slider: ElementRef<HTMLInputElement>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsRangeComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsRangeComponent, "bs-range", never, {}, {}, never, never, false>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './range.module';
2
+ export * from './component/range.component';
3
+ export * from './value-accessor/range-value-accessor';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component/range.component";
3
+ import * as i2 from "./value-accessor/range-value-accessor";
4
+ import * as i3 from "@angular/common";
5
+ export declare class BsRangeModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsRangeModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsRangeModule, [typeof i1.BsRangeComponent, typeof i2.BsRangeValueAccessor], [typeof i3.CommonModule], [typeof i1.BsRangeComponent, typeof i2.BsRangeValueAccessor]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsRangeModule>;
9
+ }
@@ -0,0 +1,20 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { BsRangeComponent } from '../component/range.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BsRangeValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {
7
+ private host;
8
+ constructor(host: BsRangeComponent);
9
+ destroyed$: Subject<unknown>;
10
+ onValueChange?: (value: number) => void;
11
+ onTouched?: () => void;
12
+ ngAfterViewInit(): void;
13
+ ngOnDestroy(): void;
14
+ registerOnChange(fn: (_: any) => void): void;
15
+ registerOnTouched(fn: () => void): void;
16
+ writeValue(value: number): void;
17
+ setDisabledState(isDisabled: boolean): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsRangeValueAccessor, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsRangeValueAccessor, "bs-range", never, {}, {}, never, never, false>;
20
+ }
@@ -0,0 +1,16 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BsTableComponent {
4
+ constructor();
5
+ isResponsive$: BehaviorSubject<boolean>;
6
+ get isResponsive(): boolean;
7
+ set isResponsive(value: boolean);
8
+ striped$: BehaviorSubject<boolean>;
9
+ get striped(): boolean;
10
+ set striped(value: boolean);
11
+ hover$: BehaviorSubject<boolean>;
12
+ get hover(): boolean;
13
+ set hover(value: boolean);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsTableComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsTableComponent, "bs-table", never, { "isResponsive": "isResponsive"; "striped": "striped"; "hover": "hover"; }, {}, never, ["*"], false>;
16
+ }
@@ -0,0 +1,2 @@
1
+ export * from './component/table.component';
2
+ export * from './table.module';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./component/table.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class BsTableModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsTableModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsTableModule, [typeof i1.BsTableComponent], [typeof i2.CommonModule], [typeof i1.BsTableComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<BsTableModule>;
8
+ }
@@ -0,0 +1,38 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import { BehaviorSubject, Observable } from 'rxjs';
3
+ import { BsToggleButtonGroupDirective } from '..';
4
+ import { BsCheckStyle } from '../types/check-style';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BsToggleButtonComponent implements AfterViewInit {
7
+ constructor();
8
+ checkbox: ElementRef<HTMLInputElement>;
9
+ disableAnimations: boolean;
10
+ mainCheckStyle$: Observable<string | null>;
11
+ isSwitch$: Observable<boolean>;
12
+ inputClass$: Observable<string>;
13
+ labelClass$: Observable<string>;
14
+ checkOrRadio$: Observable<'checkbox' | 'radio'>;
15
+ nameResult$: Observable<string | null>;
16
+ type$: BehaviorSubject<BsCheckStyle>;
17
+ get type(): BsCheckStyle;
18
+ set type(value: BsCheckStyle);
19
+ _isToggled: boolean | null;
20
+ change: EventEmitter<boolean | null>;
21
+ isToggledChange: EventEmitter<boolean | null>;
22
+ get isToggled(): boolean | null;
23
+ set isToggled(value: boolean | null);
24
+ disabled: boolean;
25
+ name$: BehaviorSubject<string | null>;
26
+ get name(): string | null;
27
+ set name(value: string | null);
28
+ value$: BehaviorSubject<string | null>;
29
+ get value(): string | null;
30
+ set value(value: string | null);
31
+ group$: BehaviorSubject<BsToggleButtonGroupDirective | null>;
32
+ get group(): BsToggleButtonGroupDirective | null;
33
+ set group(value: BsToggleButtonGroupDirective | null);
34
+ onChange(event: Event): void;
35
+ ngAfterViewInit(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleButtonComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<BsToggleButtonComponent, "bs-toggle-button", never, { "type": "type"; "isToggled": "isToggled"; "disabled": "disabled"; "name": "name"; "value": "value"; "group": "group"; }, { "change": "change"; "isToggledChange": "isToggledChange"; }, never, ["*"], false>;
38
+ }
@@ -0,0 +1 @@
1
+ export * from './toggle-button-group/toggle-button-group.directive';
@@ -0,0 +1,9 @@
1
+ import { QueryList } from '@angular/core';
2
+ import { BsToggleButtonComponent } from '../../component/toggle-button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BsToggleButtonGroupDirective {
5
+ constructor();
6
+ toggleButtons: QueryList<BsToggleButtonComponent>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleButtonGroupDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsToggleButtonGroupDirective, "[bsToggleButtonGroup]", ["bsToggleButtonGroup"], {}, {}, ["toggleButtons"], never, false>;
9
+ }
@@ -1,2 +1,5 @@
1
- export * from './toggle-button.component';
1
+ export * from './component/toggle-button.component';
2
+ export * from './directives';
3
+ export * from './value-accessor/toggle-button-value-accessor';
2
4
  export * from './toggle-button.module';
5
+ export * from './types';
@@ -1,8 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./toggle-button.component";
3
- import * as i2 from "@angular/common";
2
+ import * as i1 from "./component/toggle-button.component";
3
+ import * as i2 from "./value-accessor/toggle-button-value-accessor";
4
+ import * as i3 from "./directives/toggle-button-group/toggle-button-group.directive";
5
+ import * as i4 from "@angular/common";
4
6
  export declare class BsToggleButtonModule {
5
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BsToggleButtonModule, [typeof i1.BsToggleButtonComponent], [typeof i2.CommonModule], [typeof i1.BsToggleButtonComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BsToggleButtonModule, [typeof i1.BsToggleButtonComponent, typeof i2.BsToggleButtonValueAccessor, typeof i3.BsToggleButtonGroupDirective], [typeof i4.CommonModule], [typeof i1.BsToggleButtonComponent, typeof i2.BsToggleButtonValueAccessor, typeof i3.BsToggleButtonGroupDirective]>;
7
9
  static ɵinj: i0.ɵɵInjectorDeclaration<BsToggleButtonModule>;
8
10
  }
@@ -0,0 +1 @@
1
+ export declare type BsCheckStyle = 'checkbox' | 'radio' | 'switch' | 'toggle_button' | 'radio_toggle_button';
@@ -0,0 +1 @@
1
+ export * from './check-style';
@@ -0,0 +1,20 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { BsToggleButtonComponent } from '../component/toggle-button.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BsToggleButtonValueAccessor implements ControlValueAccessor, AfterViewInit, OnDestroy {
7
+ private host;
8
+ constructor(host: BsToggleButtonComponent);
9
+ destroyed$: Subject<unknown>;
10
+ onValueChange?: (value: boolean | string | string[]) => void;
11
+ onTouched?: () => void;
12
+ ngAfterViewInit(): void;
13
+ ngOnDestroy(): void;
14
+ registerOnChange(fn: (_: any) => void): void;
15
+ registerOnTouched(fn: () => void): void;
16
+ writeValue(value: boolean | string | string[]): void;
17
+ setDisabledState(isDisabled: boolean): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleButtonValueAccessor, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BsToggleButtonValueAccessor, "bs-toggle-button", never, {}, {}, never, never, false>;
20
+ }
@@ -0,0 +1 @@
1
+ export declare type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "14.8.0",
4
+ "version": "14.9.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap",
@@ -1,45 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class BsToggleButtonComponent {
4
- constructor() {
5
- this.disableAnimations = true;
6
- //#region isToggled
7
- this._isToggled = false;
8
- this.change = new EventEmitter();
9
- this.isToggledChange = new EventEmitter();
10
- //#endregion
11
- //#region disabled
12
- this.disabled = false;
13
- }
14
- get isToggled() {
15
- return this._isToggled;
16
- }
17
- set isToggled(value) {
18
- this._isToggled = value;
19
- this.isToggledChange.emit(this._isToggled);
20
- }
21
- //#endregion
22
- onChange(event) {
23
- const val = event.target.checked;
24
- this.isToggled = val;
25
- this.change.emit(val);
26
- }
27
- ngAfterViewInit() {
28
- this.disableAnimations = false;
29
- }
30
- }
31
- BsToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
- BsToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", 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: [""] });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: BsToggleButtonComponent, decorators: [{
34
- type: Component,
35
- args: [{ selector: 'bs-toggle-button', 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>" }]
36
- }], propDecorators: { change: [{
37
- type: Output
38
- }], isToggledChange: [{
39
- type: Output
40
- }], isToggled: [{
41
- type: Input
42
- }], disabled: [{
43
- type: Input
44
- }] } });
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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cImlzVG9nZ2xlZFwiIChjaGFuZ2UpPVwib25DaGFuZ2UoJGV2ZW50KVwiIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiPlxuICAgIDxzcGFuIGNsYXNzPVwiZm9ybS1jaGVjay1sYWJlbFwiPlxuICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgPC9zcGFuPlxuPC9sYWJlbD4iXX0=
@@ -1,15 +0,0 @@
1
- import { AfterViewInit, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BsToggleButtonComponent implements AfterViewInit {
4
- disableAnimations: boolean;
5
- _isToggled: boolean | null;
6
- change: EventEmitter<boolean | null>;
7
- isToggledChange: EventEmitter<boolean | null>;
8
- get isToggled(): boolean | null;
9
- set isToggled(value: boolean | null);
10
- disabled: boolean;
11
- onChange(event: Event): void;
12
- ngAfterViewInit(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleButtonComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<BsToggleButtonComponent, "bs-toggle-button", never, { "isToggled": "isToggled"; "disabled": "disabled"; }, { "change": "change"; "isToggledChange": "isToggledChange"; }, never, ["*"], false>;
15
- }