@coreui/angular-pro 5.3.3 → 5.3.5

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 (56) hide show
  1. package/fesm2022/coreui-angular-pro.mjs +1950 -1363
  2. package/fesm2022/coreui-angular-pro.mjs.map +1 -1
  3. package/lib/breadcrumb/breadcrumb-router/breadcrumb-router.component.d.ts +1 -2
  4. package/lib/breadcrumb/breadcrumb-router/breadcrumb-router.service.d.ts +1 -4
  5. package/lib/carousel/carousel-control/carousel-control.component.d.ts +2 -6
  6. package/lib/carousel/carousel-indicators/carousel-indicators.component.d.ts +1 -6
  7. package/lib/carousel/carousel-inner/carousel-inner.component.d.ts +1 -4
  8. package/lib/carousel/carousel-item/carousel-item.component.d.ts +2 -7
  9. package/lib/carousel/carousel-state.d.ts +1 -3
  10. package/lib/dropdown/dropdown-close/dropdown-close.directive.d.ts +3 -5
  11. package/lib/dropdown/dropdown-item/dropdown-item.directive.d.ts +2 -5
  12. package/lib/form/form-check/form-check-input.directive.d.ts +1 -4
  13. package/lib/form/form-control/form-control.directive.d.ts +2 -3
  14. package/lib/form/form-floating/form-floating.directive.d.ts +5 -4
  15. package/lib/header/header-toggler/header-toggler.directive.d.ts +2 -5
  16. package/lib/modal/modal/modal.component.d.ts +1 -9
  17. package/lib/modal/modal-dismiss/modal-toggle.directive.d.ts +1 -3
  18. package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +1 -12
  19. package/lib/offcanvas/offcanvas-toggle/offcanvas-toggle.directive.d.ts +1 -3
  20. package/lib/pagination/page-item/page-item.directive.d.ts +2 -3
  21. package/lib/popover/popover.directive.d.ts +5 -13
  22. package/lib/range-slider/index.d.ts +1 -0
  23. package/lib/range-slider/public_api.d.ts +3 -0
  24. package/lib/range-slider/range-slider-label-class.pipe.d.ts +9 -0
  25. package/lib/range-slider/range-slider-label-style.pipe.d.ts +8 -0
  26. package/lib/range-slider/range-slider-tooltip-position-style.pipe.d.ts +8 -0
  27. package/lib/range-slider/range-slider-track.pipe.d.ts +7 -0
  28. package/lib/range-slider/range-slider.component.d.ts +116 -0
  29. package/lib/range-slider/range-slider.module.d.ts +7 -0
  30. package/lib/range-slider/range-slider.type.d.ts +11 -0
  31. package/lib/range-slider/range-slider.utils.d.ts +38 -0
  32. package/lib/services/class-toggle.service.d.ts +2 -5
  33. package/lib/services/public_api.d.ts +2 -0
  34. package/lib/services/rtl.service.d.ts +7 -0
  35. package/lib/services/uid.service.d.ts +7 -0
  36. package/lib/sidebar/sidebar/sidebar.component.d.ts +3 -10
  37. package/lib/sidebar/sidebar-backdrop/sidebar-backdrop.service.d.ts +1 -6
  38. package/lib/sidebar/sidebar-nav/sidebar-nav-item-class.pipe.d.ts +1 -2
  39. package/lib/sidebar/sidebar-nav/sidebar-nav-label.component.d.ts +1 -2
  40. package/lib/sidebar/sidebar-nav/sidebar-nav-link.component.d.ts +3 -4
  41. package/lib/sidebar/sidebar-nav/sidebar-nav-title.component.d.ts +2 -4
  42. package/lib/sidebar/sidebar-nav/sidebar-nav.component.d.ts +9 -17
  43. package/lib/sidebar/sidebar-toggle/sidebar-toggle.directive.d.ts +1 -3
  44. package/lib/table/table.directive.d.ts +2 -4
  45. package/lib/tabs/tab-content/tab-content.component.d.ts +2 -7
  46. package/lib/tabs/tab-content-ref.directive.d.ts +3 -8
  47. package/lib/tabs/tab-pane/tab-pane.component.d.ts +3 -7
  48. package/lib/toast/toast/toast.component.d.ts +5 -6
  49. package/lib/toast/toast-body/toast-body.component.d.ts +2 -3
  50. package/lib/toast/toast-close.directive.d.ts +1 -3
  51. package/lib/toast/toast-header/toast-header.component.d.ts +2 -3
  52. package/lib/toast/toaster/toaster-host.directive.d.ts +1 -2
  53. package/lib/toast/toaster/toaster.component.d.ts +2 -6
  54. package/lib/tooltip/tooltip.directive.d.ts +5 -13
  55. package/package.json +2 -2
  56. package/public-api.d.ts +1 -0
@@ -4,8 +4,7 @@ import { IBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item';
4
4
  import { BreadcrumbRouterService } from './breadcrumb-router.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BreadcrumbRouterComponent implements OnChanges, OnDestroy, OnInit {
7
- service: BreadcrumbRouterService;
8
- constructor(service: BreadcrumbRouterService);
7
+ readonly service: BreadcrumbRouterService;
9
8
  /**
10
9
  * Optional array of IBreadcrumbItem to override default BreadcrumbRouter behavior. [docs]
11
10
  * @type IBreadcrumbItem[]
@@ -1,14 +1,11 @@
1
- import { ActivatedRoute, Router } from '@angular/router';
2
1
  import { Observable } from 'rxjs';
3
2
  import { IBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class BreadcrumbRouterService {
6
5
  #private;
7
- private router;
8
- private route;
9
6
  outlet: string;
10
7
  readonly breadcrumbs$: Observable<IBreadcrumbItem[]>;
11
- constructor(router: Router, route: ActivatedRoute);
8
+ constructor();
12
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbRouterService, never>;
13
10
  static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbRouterService>;
14
11
  }
@@ -1,11 +1,7 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
- import { CarouselState } from '../carousel-state';
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class CarouselControlComponent implements AfterViewInit {
5
- private changeDetectorRef;
6
- private carouselState;
7
- constructor(changeDetectorRef: ChangeDetectorRef, carouselState: CarouselState);
8
- private _caption?;
4
+ #private;
9
5
  /**
10
6
  * Carousel control caption. [docs]
11
7
  * @type string
@@ -1,14 +1,9 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { CarouselState } from '../carousel-state';
3
- import { CarouselService } from '../carousel.service';
4
2
  import * as i0 from "@angular/core";
5
3
  export declare class CarouselIndicatorsComponent implements OnInit, OnDestroy {
6
- private carouselService;
7
- private carouselState;
8
- constructor(carouselService: CarouselService, carouselState: CarouselState);
4
+ #private;
9
5
  items: (number | undefined)[];
10
6
  active: number;
11
- private carouselIndexSubscription?;
12
7
  ngOnInit(): void;
13
8
  ngOnDestroy(): void;
14
9
  onClick(index: number): void;
@@ -1,9 +1,7 @@
1
1
  import { AfterContentChecked, AfterContentInit } from '@angular/core';
2
- import { CarouselState } from '../carousel-state';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class CarouselInnerComponent implements AfterContentInit, AfterContentChecked {
5
- private carouselState;
6
- constructor(carouselState: CarouselState);
4
+ #private;
7
5
  carouselInnerClass: boolean;
8
6
  activeIndex?: number;
9
7
  animate?: boolean;
@@ -12,7 +10,6 @@ export declare class CarouselInnerComponent implements AfterContentInit, AfterCo
12
10
  };
13
11
  transition: string;
14
12
  private contentItems;
15
- private prevContentItems;
16
13
  ngAfterContentInit(): void;
17
14
  ngAfterContentChecked(): void;
18
15
  setItems(): void;
@@ -1,17 +1,13 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
2
- import { CarouselService } from '../carousel.service';
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class CarouselItemComponent implements OnDestroy, AfterViewInit {
5
- private carouselService;
6
- private changeDetectorRef;
4
+ #private;
7
5
  index?: number;
8
- private carouselIndexSubscription?;
9
6
  /**
10
7
  * @ignore
11
8
  */
12
9
  set active(value: boolean);
13
10
  get active(): boolean;
14
- private _active;
15
11
  /**
16
12
  * Time delay before cycling to next item. If -1, uses carousel interval value.
17
13
  * @type number
@@ -19,7 +15,6 @@ export declare class CarouselItemComponent implements OnDestroy, AfterViewInit {
19
15
  */
20
16
  interval: number;
21
17
  get hostClasses(): any;
22
- constructor(carouselService: CarouselService, changeDetectorRef: ChangeDetectorRef);
23
18
  ngOnDestroy(): void;
24
19
  ngAfterViewInit(): void;
25
20
  private carouselStateSubscribe;
@@ -1,10 +1,8 @@
1
1
  import { ICarouselState } from './carousel-state.type';
2
- import { CarouselService } from './carousel.service';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class CarouselState {
5
- private carouselService;
4
+ #private;
6
5
  private _state;
7
- constructor(carouselService: CarouselService);
8
6
  get state(): ICarouselState;
9
7
  set state(state: ICarouselState);
10
8
  setItems(newItems: any): void;
@@ -1,11 +1,9 @@
1
1
  import { AfterViewInit } from '@angular/core';
2
- import { DropdownService } from '../dropdown.service';
3
2
  import { DropdownComponent } from '../dropdown/dropdown.component';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class DropdownCloseDirective implements AfterViewInit {
6
- private dropdownService;
7
- dropdown?: DropdownComponent | undefined;
8
- constructor(dropdownService: DropdownService, dropdown?: DropdownComponent | undefined);
5
+ #private;
6
+ dropdown?: DropdownComponent | null | undefined;
9
7
  /**
10
8
  * Disables a dropdown-close directive.
11
9
  * @type boolean
@@ -21,6 +19,6 @@ export declare class DropdownCloseDirective implements AfterViewInit {
21
19
  get isDisabled(): boolean | null;
22
20
  private onClick;
23
21
  private onKeyUp;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownCloseDirective, [null, { optional: true; }]>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownCloseDirective, never>;
25
23
  static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownCloseDirective, "[cDropdownClose]", ["cDropdownClose"], { "disabled": { "alias": "disabled"; "required": false; }; "dropdownComponent": { "alias": "dropdownComponent"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
26
24
  }
@@ -1,11 +1,9 @@
1
1
  import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
2
- import { DropdownService } from '../dropdown.service';
3
2
  import { DropdownComponent } from '../dropdown/dropdown.component';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class DropdownItemDirective implements FocusableOption {
6
5
  #private;
7
- private dropdownService;
8
- dropdown?: DropdownComponent | undefined;
6
+ dropdown?: DropdownComponent | null | undefined;
9
7
  /**
10
8
  * Set active state to a dropdown-item.
11
9
  * @type boolean
@@ -24,7 +22,6 @@ export declare class DropdownItemDirective implements FocusableOption {
24
22
  * @default undefined
25
23
  */
26
24
  disabled?: boolean;
27
- constructor(dropdownService: DropdownService, dropdown?: DropdownComponent | undefined);
28
25
  focus(origin?: FocusOrigin | undefined): void;
29
26
  getLabel?(): string;
30
27
  get ariaCurrent(): string | null;
@@ -35,6 +32,6 @@ export declare class DropdownItemDirective implements FocusableOption {
35
32
  get isDisabled(): boolean | null;
36
33
  private onClick;
37
34
  private onKeyUp;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemDirective, [null, { optional: true; }]>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemDirective, never>;
39
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownItemDirective, "[cDropdownItem]", ["cDropdownItem"], { "active": { "alias": "active"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
40
37
  }
@@ -1,8 +1,6 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class FormCheckInputDirective {
4
- private renderer;
5
- private hostElement;
3
+ #private;
6
4
  /**
7
5
  * Specifies the type of component.
8
6
  * @type {'checkbox' | 'radio'}
@@ -26,7 +24,6 @@ export declare class FormCheckInputDirective {
26
24
  get hostClasses(): any;
27
25
  set checked(value: boolean);
28
26
  get checked(): boolean;
29
- constructor(renderer: Renderer2, hostElement: ElementRef);
30
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckInputDirective, never>;
31
28
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormCheckInputDirective, "input[cFormCheckInput]", never, { "type": { "alias": "type"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "valid": { "alias": "valid"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, {}, never, never, true, never>;
32
29
  static ngAcceptInputType_indeterminate: unknown;
@@ -1,9 +1,8 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
2
  import { InputType } from '../../coreui.types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FormControlDirective implements OnInit {
5
- private hostElement;
6
- constructor(hostElement: ElementRef);
5
+ #private;
7
6
  /**
8
7
  * Size the component small or large.
9
8
  * @type {'sm' | 'lg'}
@@ -4,9 +4,10 @@ export declare class FormFloatingDirective {
4
4
  * Enable floating labels
5
5
  * @type boolean
6
6
  */
7
- floating: string | boolean;
8
- get hostClasses(): any;
7
+ readonly floating: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
+ readonly hostClasses: import("@angular/core").Signal<{
9
+ 'form-floating': boolean;
10
+ }>;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFloatingDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[cFormFloating]", never, { "floating": { "alias": "cFormFloating"; "required": false; }; }, {}, never, never, true, never>;
11
- static ngAcceptInputType_floating: unknown;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFloatingDirective, "[cFormFloating]", never, { "floating": { "alias": "cFormFloating"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
13
  }
@@ -1,8 +1,7 @@
1
- import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
1
+ import { AfterContentInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class HeaderTogglerDirective implements AfterContentInit {
4
- private renderer;
5
- private hostElement;
4
+ #private;
6
5
  headerToggler: boolean;
7
6
  /**
8
7
  * Default role for header-toggler. [docs]
@@ -16,8 +15,6 @@ export declare class HeaderTogglerDirective implements AfterContentInit {
16
15
  * @default 'Toggle navigation'
17
16
  */
18
17
  ariaLabel: string;
19
- private hasContent;
20
- constructor(renderer: Renderer2, hostElement: ElementRef);
21
18
  addDefaultIcon(): void;
22
19
  ngAfterContentInit(): void;
23
20
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTogglerDirective, never>;
@@ -1,16 +1,8 @@
1
1
  import { AnimationEvent } from '@angular/animations';
2
- import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
3
- import { ModalService } from '../modal.service';
4
- import { BackdropService } from '../../backdrop/backdrop.service';
2
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class ModalComponent implements OnInit, OnDestroy, AfterViewInit {
7
5
  #private;
8
- private document;
9
- private renderer;
10
- private hostElement;
11
- private modalService;
12
- private backdropService;
13
- constructor(document: Document, renderer: Renderer2, hostElement: ElementRef, modalService: ModalService, backdropService: BackdropService);
14
6
  /**
15
7
  * Align the modal in the center or top of the screen.
16
8
  * @type {'top' | 'center'}
@@ -1,12 +1,10 @@
1
- import { ModalService } from '../modal.service';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class ModalToggleDirective {
4
- private modalService;
3
+ #private;
5
4
  /**
6
5
  * Html id attr of modal to dismiss.
7
6
  */
8
7
  id: string | undefined;
9
- constructor(modalService: ModalService);
10
8
  dismiss($event: any): void;
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalToggleDirective, never>;
12
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<ModalToggleDirective, "[cModalToggle]", never, { "id": { "alias": "cModalToggle"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,20 +1,9 @@
1
1
  import { AnimationEvent } from '@angular/animations';
2
- import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
3
- import { BreakpointObserver } from '@angular/cdk/layout';
4
- import { BackdropService } from '../../backdrop/backdrop.service';
5
- import { OffcanvasService } from '../offcanvas.service';
2
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
6
3
  import * as i0 from "@angular/core";
7
4
  import * as i1 from "../../shared/theme.directive";
8
5
  export declare class OffcanvasComponent implements OnInit, OnDestroy {
9
6
  #private;
10
- private document;
11
- private platformId;
12
- private renderer;
13
- private hostElement;
14
- private offcanvasService;
15
- private backdropService;
16
- private breakpointObserver;
17
- constructor(document: Document, platformId: any, renderer: Renderer2, hostElement: ElementRef, offcanvasService: OffcanvasService, backdropService: BackdropService, breakpointObserver: BreakpointObserver);
18
7
  /**
19
8
  * Apply a backdrop on body while offcanvas is open.
20
9
  * @type boolean | 'static'
@@ -1,13 +1,11 @@
1
- import { OffcanvasService } from '../offcanvas.service';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class OffcanvasToggleDirective {
4
- private offcanvasService;
3
+ #private;
5
4
  /**
6
5
  * Html id attr of offcanvas to toggle.
7
6
  * @type string
8
7
  */
9
8
  id?: string;
10
- constructor(offcanvasService: OffcanvasService);
11
9
  toggleOpen($event: any): void;
12
10
  static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasToggleDirective, never>;
13
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<OffcanvasToggleDirective, "[cOffcanvasToggle]", never, { "id": { "alias": "cOffcanvasToggle"; "required": false; }; }, {}, never, never, true, never>;
@@ -1,7 +1,7 @@
1
- import { AfterContentInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
1
+ import { AfterContentInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PageItemDirective implements AfterContentInit, OnChanges {
4
- private renderer;
4
+ #private;
5
5
  /**
6
6
  * Toggle the active state for the component.
7
7
  * @type boolean
@@ -15,7 +15,6 @@ export declare class PageItemDirective implements AfterContentInit, OnChanges {
15
15
  get ariaCurrent(): string | null;
16
16
  get hostClasses(): any;
17
17
  pageLinkElementRef: ElementRef;
18
- constructor(renderer: Renderer2);
19
18
  ngAfterContentInit(): void;
20
19
  ngOnChanges(changes: SimpleChanges): void;
21
20
  setAttributes(): void;
@@ -1,30 +1,23 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import { Options } from '@popperjs/core';
3
3
  import { Triggers } from '../coreui.types';
4
- import { IntersectionService, ListenersService } from '../services';
5
4
  import { ElementRefDirective } from '../shared';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class PopoverDirective implements OnDestroy, OnInit, AfterViewInit {
8
7
  #private;
9
- private renderer;
10
- private hostElement;
11
- private viewContainerRef;
12
- private listenersService;
13
- private changeDetectorRef;
14
- private intersectionService;
15
8
  /**
16
9
  * Content of popover
17
10
  * @type {string | TemplateRef}
18
11
  */
19
12
  readonly content: import("@angular/core").InputSignal<string | TemplateRef<any> | undefined>;
20
- contentEffect: import("@angular/core").EffectRef;
13
+ readonly contentEffect: import("@angular/core").EffectRef;
21
14
  /**
22
15
  * Optional popper Options object, takes precedence over cPopoverPlacement prop
23
16
  * @type Partial<Options>
24
17
  */
25
18
  readonly popperOptions: import("@angular/core").InputSignal<Partial<Options>>;
26
- popperOptionsEffect: import("@angular/core").EffectRef;
27
- popperOptionsComputed: import("@angular/core").Signal<{
19
+ readonly popperOptionsEffect: import("@angular/core").EffectRef;
20
+ readonly popperOptionsComputed: import("@angular/core").Signal<{
28
21
  placement: import("@popperjs/core").Placement;
29
22
  modifiers?: Partial<import("@popperjs/core").Modifier<any, any>>[] | undefined;
30
23
  strategy?: import("@popperjs/core").PositioningStrategy | undefined;
@@ -53,14 +46,13 @@ export declare class PopoverDirective implements OnDestroy, OnInit, AfterViewIni
53
46
  * @type boolean
54
47
  */
55
48
  readonly visible: import("@angular/core").ModelSignal<boolean>;
56
- visibleEffect: import("@angular/core").EffectRef;
49
+ readonly visibleEffect: import("@angular/core").EffectRef;
57
50
  get ariaDescribedBy(): string | null;
58
51
  private tooltip;
59
52
  private tooltipId;
60
53
  private tooltipRef;
61
54
  private popperInstance;
62
55
  private _popperOptions;
63
- constructor(renderer: Renderer2, hostElement: ElementRef, viewContainerRef: ViewContainerRef, listenersService: ListenersService, changeDetectorRef: ChangeDetectorRef, intersectionService: IntersectionService);
64
56
  ngAfterViewInit(): void;
65
57
  ngOnDestroy(): void;
66
58
  ngOnInit(): void;
@@ -0,0 +1 @@
1
+ export * from './public_api';
@@ -0,0 +1,3 @@
1
+ export { Label, ThumbSize } from './range-slider.type';
2
+ export { RangeSliderComponent } from './range-slider.component';
3
+ export { RangeSliderModule } from './range-slider.module';
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Label } from './range-slider.type';
3
+ import { NgCssClass } from '../coreui.types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RangeSliderLabelClassPipe implements PipeTransform {
6
+ transform(label: Label, clickableLabels: boolean): NgCssClass;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderLabelClassPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderLabelClassPipe, "rangeSliderLabelClass", true>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Label } from './range-slider.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RangeSliderLabelStylePipe implements PipeTransform {
5
+ transform(label: Label, min: number, max: number, vertical: boolean, labels: Label[], index: number, isRTL?: boolean): Record<string, any>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderLabelStylePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderLabelStylePipe, "rangeSliderLabelStyle", true>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ThumbSize } from './range-slider.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RangeSliderTooltipPositionStylePipe implements PipeTransform {
5
+ transform(value: number, min: number, max: number, vertical: boolean, thumbSize: ThumbSize | null, rtl?: boolean): Record<string, any> | null;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderTooltipPositionStylePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderTooltipPositionStylePipe, "rangeSliderTooltipPositionStyle", true>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RangeSliderTrackPipe implements PipeTransform {
4
+ transform(value: number[], min: number, max: number, vertical: boolean, rtl?: boolean): Record<string, any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderTrackPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<RangeSliderTrackPipe, "rangeSliderTrack", true>;
7
+ }
@@ -0,0 +1,116 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Label, ThumbSize } from './range-slider.type';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RangeSliderComponent implements ControlValueAccessor, OnInit {
6
+ #private;
7
+ /**
8
+ * Enable or disable clickable labels in the Angular Range Slider.
9
+ * When set to `true`, users can click on labels to adjust the slider's value directly, enhancing interactivity and user experience.
10
+ * @default true
11
+ */
12
+ readonly clickableLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
13
+ /**
14
+ * Control the interactive state of the Angular Range Slider with the `disabled` prop.
15
+ * Setting it to `true` will disable all slider functionalities, preventing user interaction and visually indicating a non-interactive state.
16
+ * @default false
17
+ */
18
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
19
+ readonly disabledState: import("@angular/core").WritableSignal<boolean>;
20
+ /**
21
+ * Define the minimum distance between slider handles using the `distance` prop in the Angular Range Slider.
22
+ * This ensures that the handles maintain a specified separation, preventing overlap and maintaining clear value distinctions.
23
+ * @default 0
24
+ */
25
+ readonly distance: import("@angular/core").InputSignalWithTransform<number, unknown>;
26
+ /**
27
+ * Add descriptive labels to your Angular Range Slider by providing an array of `labels`.
28
+ * These labels enhance the slider's usability by clearly indicating key values and providing contextual information to users.
29
+ */
30
+ readonly labels: import("@angular/core").InputSignal<Label[]>;
31
+ /**
32
+ * Specify the maximum value for the Angular Range Slider with the `max` prop.
33
+ * This determines the upper limit of the slider's range, enabling precise control over the highest selectable value.
34
+ * @default 100
35
+ */
36
+ readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
37
+ /**
38
+ * Set the minimum value for the Angular Range Slider using the `min` prop.
39
+ * This defines the lower bound of the slider's range, allowing you to control the starting point of user selection.
40
+ * @default 0
41
+ */
42
+ readonly min: import("@angular/core").InputSignalWithTransform<number, unknown>;
43
+ /**
44
+ * Default role for c-range-slider.
45
+ * @default 'slider'
46
+ */
47
+ readonly role: import("@angular/core").InputSignal<string>;
48
+ /**
49
+ * Control the granularity of the Angular Range Slider by setting the `step` prop.
50
+ * This defines the increment intervals between selectable values, allowing for precise adjustments based on your application's requirements.
51
+ * @default 1
52
+ */
53
+ readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
54
+ /**
55
+ * Toggle the visibility of tooltips in the Angular Range Slider with the `tooltips` prop.
56
+ * When enabled, tooltips display the current value of the slider handles, providing real-time feedback to users.
57
+ * @default true
58
+ */
59
+ readonly tooltips: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
60
+ /**
61
+ * Customize the display format of tooltips in the Angular Range Slider using the `tooltipsFormat` function.
62
+ * This allows you to format the tooltip values according to your specific requirements, enhancing the clarity and presentation of information.
63
+ */
64
+ readonly tooltipsFormat: import("@angular/core").InputSignal<((value: number) => string) | undefined>;
65
+ /**
66
+ * Controls the visual representation of the slider's track. When set to `'fill'`, the track is dynamically filled based on the slider's value(s).
67
+ * Setting it to `false` disables the filled track.
68
+ * @default 'fill'
69
+ */
70
+ readonly track: import("@angular/core").InputSignal<boolean | "fill">;
71
+ /**
72
+ * Set the current value(s) of the Angular Range Slider using the `value` prop.
73
+ * Whether you're using a single value or an array for multi-handle sliders, this prop controls the slider's position and ensures it reflects the desired state.
74
+ */
75
+ readonly value: import("@angular/core").ModelSignal<number | number[]>;
76
+ readonly valueChange: import("@angular/core").OutputEmitterRef<number | number[]>;
77
+ readonly currentValue: import("@angular/core").Signal<number[]>;
78
+ readonly valueEffect: import("@angular/core").EffectRef;
79
+ readonly valueNow: import("@angular/core").Signal<number | number[]>;
80
+ readonly inputIds: import("@angular/core").WritableSignal<string[]>;
81
+ readonly inputIdsEffect: import("@angular/core").EffectRef;
82
+ /**
83
+ * Orient the Angular Range Slider vertically by setting the `vertical` prop to `true`.
84
+ * This changes the slider's layout from horizontal to vertical, providing a different aesthetic and fitting various UI designs.
85
+ */
86
+ readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
87
+ readonly hostClasses: import("@angular/core").Signal<{
88
+ 'range-slider': boolean;
89
+ 'range-slider-vertical': boolean;
90
+ disabled: boolean;
91
+ }>;
92
+ readonly inputRefs: import("@angular/core").Signal<readonly ElementRef<any>[]>;
93
+ readonly trackRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
94
+ readonly isDragging: import("@angular/core").WritableSignal<boolean>;
95
+ readonly dragIndex: import("@angular/core").WritableSignal<number>;
96
+ readonly thumbSize: import("@angular/core").WritableSignal<ThumbSize | null>;
97
+ readonly isDraggingEffect: import("@angular/core").EffectRef;
98
+ constructor();
99
+ ngOnInit(): void;
100
+ onChange: (value: number | number[]) => void;
101
+ onTouched: () => void;
102
+ registerOnChange(fn: any): void;
103
+ registerOnTouched(fn: any): void;
104
+ setDisabledState(isDisabled: boolean): void;
105
+ writeValue(value: number | number[]): void;
106
+ get isRtl(): boolean;
107
+ updateNearestValue: (value: number) => void;
108
+ handleInputChange(value: number, index: number): void;
109
+ handleInputsContainerMouseDown($event: MouseEvent): void;
110
+ handleLabelClick($event: MouseEvent, label: Label): void;
111
+ getLabel(label: Label): string | number;
112
+ handleMouseMove($event: MouseEvent): void;
113
+ handleMouseUp(): void;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderComponent, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<RangeSliderComponent, "c-range-slider", never, { "clickableLabels": { "alias": "clickableLabels"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "distance": { "alias": "distance"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "tooltipsFormat": { "alias": "tooltipsFormat"; "required": false; "isSignal": true; }; "track": { "alias": "track"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
116
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./range-slider.component";
3
+ export declare class RangeSliderModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<RangeSliderModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RangeSliderModule, never, [typeof i1.RangeSliderComponent], [typeof i1.RangeSliderComponent]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<RangeSliderModule>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { NgCssClass } from '../coreui.types';
2
+ export type Label = {
3
+ label: number | string;
4
+ value: number;
5
+ class?: NgCssClass;
6
+ style?: Partial<CSSStyleDeclaration>;
7
+ } | string;
8
+ export type ThumbSize = {
9
+ value: number;
10
+ unit: string | null;
11
+ };
@@ -0,0 +1,38 @@
1
+ import { Label, ThumbSize } from './range-slider.type';
2
+ export declare const calculateClickValue: (event: MouseEvent, container: HTMLDivElement, min: number, max: number, step: number, vertical: boolean, rtl: boolean) => number;
3
+ export declare const calculateMoveValue: (event: MouseEvent, container: HTMLDivElement, min: number, max: number, step: number, vertical: boolean, rtl: boolean) => number;
4
+ export declare const calculateVerticalPosition: (mouseY: number, rect: DOMRect) => number | "max" | "min";
5
+ export declare const calculateHorizontalPosition: (mouseX: number, rect: DOMRect, rtl: boolean) => number | "max" | "min";
6
+ export declare const calculateLabelPosition: (min: number, max: number, labels: Label[], label: Label, index: number) => string;
7
+ export declare const calculateTooltipPosition: (min: number, max: number, value: number, thumbSize: ThumbSize, vertical: boolean, rtl: boolean) => {
8
+ bottom: string;
9
+ marginBottom: string;
10
+ right?: undefined;
11
+ marginRight?: undefined;
12
+ left?: undefined;
13
+ marginLeft?: undefined;
14
+ } | {
15
+ right: string;
16
+ marginRight: string;
17
+ bottom?: undefined;
18
+ marginBottom?: undefined;
19
+ left?: undefined;
20
+ marginLeft?: undefined;
21
+ } | {
22
+ left: string;
23
+ marginLeft: string;
24
+ bottom?: undefined;
25
+ marginBottom?: undefined;
26
+ right?: undefined;
27
+ marginRight?: undefined;
28
+ };
29
+ export declare const getClickPosition: (event: MouseEvent, container: HTMLDivElement, vertical: boolean, rtl: boolean) => number;
30
+ export declare const getLabelValue: (min: number, max: number, labels: Label[], label: Label, index: number) => number;
31
+ export declare const getNearestValueIndex: (value: number, values: number[]) => number;
32
+ export declare const roundToStep: (number: number, step: number) => number;
33
+ export declare const updateGradient: (min: number, max: number, values: number[], vertical: boolean, rtl: boolean) => {
34
+ backgroundImage: string;
35
+ };
36
+ export declare const updateValue: (value: number, values: number[], distance: number, index: number) => number[];
37
+ export declare const validateValue: (value: number, values: number[], distance: number, index: number) => number;
38
+ export declare const equalArrays: <T>(a: T[], b: T[]) => boolean;
@@ -1,10 +1,7 @@
1
- import { RendererFactory2 } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class ClassToggleService {
4
- private document;
5
- private rendererFactory;
6
- private renderer;
7
- constructor(document: Document, rendererFactory: RendererFactory2);
3
+ #private;
4
+ constructor();
8
5
  toggle(selector: any, className: string): void;
9
6
  static ɵfac: i0.ɵɵFactoryDeclaration<ClassToggleService, never>;
10
7
  static ɵprov: i0.ɵɵInjectableDeclaration<ClassToggleService>;
@@ -4,3 +4,5 @@ export { ClassToggleService } from './class-toggle.service';
4
4
  export { LocalStorageService } from './local-storage.service';
5
5
  export { InMemoryStorageService } from './in-memory-storage.service';
6
6
  export { ColorModeService, ColorMode } from './color-mode.service';
7
+ export { UIDService } from './uid.service';
8
+ export { RtlService } from './rtl.service';