@coreui/angular-pro 5.0.0-alpha.5 → 5.0.0-alpha.6

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.
@@ -1,6 +1,6 @@
1
1
  import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { IntersectionService } from '../../services/intersection.service';
3
- import { ListenersService } from '../../services/listeners.service';
2
+ import { IntersectionService } from '../../services';
3
+ import { ListenersService } from '../../services';
4
4
  import { Triggers } from '../../coreui.types';
5
5
  import { CarouselState } from '../carousel-state';
6
6
  import { CarouselService } from '../carousel.service';
@@ -8,6 +8,7 @@ import { CarouselConfig } from '../carousel.config';
8
8
  import * as i0 from "@angular/core";
9
9
  import * as i1 from "../../shared/theme.directive";
10
10
  export declare class CarouselComponent implements OnInit, OnDestroy, AfterContentInit {
11
+ #private;
11
12
  private config;
12
13
  private hostElement;
13
14
  private carouselService;
@@ -64,22 +65,20 @@ export declare class CarouselComponent implements OnInit, OnDestroy, AfterConten
64
65
  * @type number
65
66
  */
66
67
  itemChange: EventEmitter<number>;
67
- private carouselIndexSubscription?;
68
+ get hostClasses(): any;
68
69
  private timerId;
69
- private intersectingSubscription?;
70
70
  private activeItemInterval;
71
71
  private swipeSubscription?;
72
- get hostClasses(): any;
73
- private _visible;
74
- get visible(): boolean;
75
- set visible(value: boolean);
76
72
  ngOnInit(): void;
77
73
  ngOnDestroy(): void;
78
74
  ngAfterContentInit(): void;
79
- setTimer(): void;
80
- resetTimer(): void;
81
75
  private setListeners;
82
76
  private clearListeners;
77
+ set visible(value: boolean);
78
+ get visible(): boolean;
79
+ private _visible;
80
+ setTimer(): void;
81
+ resetTimer(): void;
83
82
  private carouselStateSubscribe;
84
83
  private intersectionServiceSubscribe;
85
84
  private swipeSubscribe;
@@ -13,7 +13,7 @@ interface IPluralMap {
13
13
  [k: string]: string;
14
14
  }
15
15
  export declare const observeReferenceModifier: Modifier<string, any>;
16
- export declare class MultiSelectComponent<T extends string | number> implements IMultiSelect<T>, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy, OnInit {
16
+ export declare class MultiSelectComponent<TValue extends string | number> implements IMultiSelect<TValue>, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy, OnInit {
17
17
  #private;
18
18
  private elementRef;
19
19
  private renderer;
@@ -29,10 +29,10 @@ export declare class MultiSelectComponent<T extends string | number> implements
29
29
  readonly userOptionsArray$: BehaviorSubject<IOption[]>;
30
30
  readonly optionsSelected$: BehaviorSubject<IOption[]>;
31
31
  readonly optionsSelected: Map<any, IOption>;
32
- readonly value$: BehaviorSubject<T[]>;
32
+ readonly value$: BehaviorSubject<TValue[]>;
33
33
  onChange: (value: any) => void;
34
34
  onTouched: () => void;
35
- writeValue(value: T | T[]): void;
35
+ writeValue(value: TValue | TValue[]): void;
36
36
  registerOnChange(fn: any): void;
37
37
  registerOnTouched(fn: any): void;
38
38
  setDisabledState(isDisabled: boolean): void;
@@ -185,15 +185,15 @@ export declare class MultiSelectComponent<T extends string | number> implements
185
185
  size?: 'sm' | 'lg';
186
186
  /**
187
187
  * Initial value of multi-select
188
- * @type T | T[]
188
+ * @type TValue | TValue[]
189
189
  */
190
- set value(value: T | T[]);
191
- get value(): T | T[];
190
+ set value(value: TValue | TValue[]);
191
+ get value(): TValue | TValue[];
192
192
  /**
193
193
  * Emits valueChange
194
- * @type T | T[]
194
+ * @type TValue | TValue[]
195
195
  */
196
- readonly valueChange: EventEmitter<T | T[]>;
196
+ readonly valueChange: EventEmitter<TValue | TValue[]>;
197
197
  /**
198
198
  * Toggle visual validation feedback.
199
199
  * @type boolean | undefined
@@ -5,6 +5,7 @@ import { ListenersService } from '../services/listeners.service';
5
5
  import { IntersectionService } from '../services';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class PopoverDirective implements OnChanges, OnDestroy, OnInit, AfterViewInit {
8
+ #private;
8
9
  private document;
9
10
  private renderer;
10
11
  private hostElement;
@@ -44,7 +45,6 @@ export declare class PopoverDirective implements OnChanges, OnDestroy, OnInit, A
44
45
  private popoverRef;
45
46
  private popperInstance;
46
47
  private _popperOptions;
47
- private intersectingSubscription?;
48
48
  constructor(document: Document, renderer: Renderer2, hostElement: ElementRef, viewContainerRef: ViewContainerRef, listenersService: ListenersService, changeDetectorRef: ChangeDetectorRef, intersectionService: IntersectionService);
49
49
  ngAfterViewInit(): void;
50
50
  ngOnChanges(changes: SimpleChanges): void;
@@ -1,4 +1,4 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export interface IIntersectionObserverInit {
4
4
  root?: Element | null;
@@ -6,15 +6,13 @@ export interface IIntersectionObserverInit {
6
6
  threshold?: number | number[];
7
7
  }
8
8
  export declare class IntersectionService implements OnDestroy {
9
- constructor();
10
- private intersecting;
11
- intersecting$: import("rxjs").Observable<boolean>;
12
- private intersectionObserver;
13
- private hostElement;
9
+ #private;
10
+ platformId: Object;
11
+ readonly intersecting$: import("rxjs").Observable<any>;
14
12
  private defaultObserverOptions;
15
- createIntersectionObserver(hostElement: {
16
- nativeElement: Element;
17
- }, observerOptions?: IIntersectionObserverInit): void;
13
+ hostElementRefs: Map<ElementRef, IntersectionObserver | null>;
14
+ createIntersectionObserver(hostElement: ElementRef, observerOptions?: IIntersectionObserverInit): void;
15
+ unobserve(elementRef: ElementRef): void;
18
16
  ngOnDestroy(): void;
19
17
  static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionService, never>;
20
18
  static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionService>;
@@ -5,5 +5,5 @@ export { SidebarToggleDirective } from './sidebar-toggle/sidebar-toggle.directiv
5
5
  export { SidebarTogglerComponent } from './sidebar-toggler/sidebar-toggler.component';
6
6
  export { SidebarHeaderComponent } from './sidebar-header/sidebar-header.component';
7
7
  export { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
8
- export { SidebarNavComponent, INavData } from './sidebar-nav';
8
+ export { SidebarNavComponent, INavData, SidebarNavHelper } from './sidebar-nav';
9
9
  export { SidebarModule } from './sidebar.module';
@@ -248,6 +248,8 @@ export interface IGroup {
248
248
  _class?: NgCssClass;
249
249
  _props?: ITableHeaderCellProps;
250
250
  _style?: Partial<CSSStyleDeclaration>;
251
+ _labelTemplateId?: string;
252
+ _data?: any;
251
253
  }
252
254
  export interface ITableHeaderCellProps {
253
255
  /**
@@ -47,7 +47,7 @@ export declare class ToastComponent implements OnInit, OnDestroy {
47
47
  index?: number;
48
48
  /**
49
49
  * Event emitted on visibility change. [docs]
50
- * @type boolean
50
+ * @type EventEmitter<boolean>
51
51
  */
52
52
  visibleChange: EventEmitter<boolean>;
53
53
  /**
@@ -5,6 +5,7 @@ import { ListenersService } from '../services/listeners.service';
5
5
  import { IntersectionService } from '../services';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class TooltipDirective implements OnChanges, OnDestroy, OnInit, AfterViewInit {
8
+ #private;
8
9
  private document;
9
10
  private renderer;
10
11
  private hostElement;
@@ -44,7 +45,6 @@ export declare class TooltipDirective implements OnChanges, OnDestroy, OnInit, A
44
45
  private tooltipRef;
45
46
  private popperInstance;
46
47
  private _popperOptions;
47
- private intersectingSubscription?;
48
48
  constructor(document: Document, renderer: Renderer2, hostElement: ElementRef, viewContainerRef: ViewContainerRef, listenersService: ListenersService, changeDetectorRef: ChangeDetectorRef, intersectionService: IntersectionService);
49
49
  ngAfterViewInit(): void;
50
50
  ngOnChanges(changes: SimpleChanges): void;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@coreui/angular-pro",
3
- "version": "5.0.0-alpha.5",
3
+ "version": "5.0.0-alpha.6",
4
4
  "description": "CoreUI Pro Components Library for Angular",
5
- "copyright": "Copyright 2023 creativeLabs Łukasz Holeczek",
5
+ "copyright": "Copyright 2024 creativeLabs Łukasz Holeczek",
6
6
  "homepage": "https://coreui.io/angular",
7
7
  "author": {
8
8
  "name": "creativeLabs Łukasz Holeczek",