@nova-ui/bits 16.0.1 → 16.0.3

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.
@@ -31,9 +31,10 @@ export declare class SelectorService {
31
31
  * You may need to obtain the set of items that are selected given selection object and some set of items.
32
32
  * @param {ISelection} selection
33
33
  * @param {any[]} items
34
+ * @param comparator
34
35
  * @returns {any[]} Set of items
35
36
  */
36
- getSelectedItems(selection: ISelection, items: any[]): any[];
37
+ getSelectedItems(selection: ISelection, items: any[], comparator?: (a: any, b: any) => boolean): any[];
37
38
  /**
38
39
  * Allows to react on changes of selected items (for selector).
39
40
  * If user selects some items directly in a list, selector state may change
package/package.json CHANGED
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "schematics": "./sdk/schematics/collection.json",
65
65
  "typings": "index.d.ts",
66
- "version": "16.0.1",
66
+ "version": "16.0.3",
67
67
  "packageManager": "yarn@1.22.18",
68
68
  "module": "fesm2022/nova-ui-bits.mjs",
69
69
  "sideEffects": false,
@@ -1,13 +1,15 @@
1
- import { RendererFactory2 } from "@angular/core";
1
+ import { OnDestroy, RendererFactory2 } from "@angular/core";
2
2
  import { EventBus } from "./event-bus";
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Service to share events among components in nova
6
6
  * @ignore
7
7
  */
8
- export declare class EventBusService extends EventBus<Event> {
8
+ export declare class EventBusService extends EventBus<Event> implements OnDestroy {
9
9
  private renderer;
10
+ private listenerUnsubscriber?;
10
11
  constructor(rendererFactory: RendererFactory2);
12
+ ngOnDestroy(): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<EventBusService, never>;
12
14
  static ɵprov: i0.ɵɵInjectableDeclaration<EventBusService>;
13
15
  }