@trudb/tru-common-lib 0.0.186 → 0.0.188
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/esm2020/lib/base-classes/tru-component-config-base.mjs +4 -0
- package/esm2020/lib/base-classes/tru-control-component-config-base.mjs +4 -0
- package/esm2020/lib/base-classes/tru-search-config-base.mjs +4 -0
- package/esm2020/lib/base-views/detail/tru-detail-view-base-module.mjs +19 -0
- package/esm2020/lib/base-views/detail/tru-detail-view-base.mjs +12 -0
- package/esm2020/lib/base-views/search/services/tru-search-view-event-handler.mjs +41 -0
- package/esm2020/lib/base-views/search/tru-search-view-base-module.mjs +19 -0
- package/esm2020/lib/base-views/search/tru-search-view-base.mjs +65 -0
- package/esm2020/lib/components/data-grid/tru-data-grid.mjs +2 -2
- package/esm2020/lib/components/desktop/services/tru-desktop-manager.mjs +81 -0
- package/esm2020/public-api.mjs +13 -7
- package/fesm2015/trudb-tru-common-lib.mjs +312 -140
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +312 -140
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-classes/tru-component-config-base.d.ts +3 -0
- package/lib/base-classes/tru-control-component-config-base.d.ts +19 -0
- package/lib/base-classes/tru-search-config-base.d.ts +9 -0
- package/lib/base-views/detail/tru-detail-view-base-module.d.ts +9 -0
- package/lib/base-views/detail/tru-detail-view-base.d.ts +6 -0
- package/lib/{event-handlers/tru-search-group-event-handler.d.ts → base-views/search/services/tru-search-view-event-handler.d.ts} +3 -3
- package/lib/base-views/search/tru-search-view-base-module.d.ts +9 -0
- package/lib/base-views/search/tru-search-view-base.d.ts +35 -0
- package/lib/components/data-grid/tru-data-grid.d.ts +1 -1
- package/lib/components/desktop/services/tru-desktop-manager.d.ts +29 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -3
- package/esm2020/lib/event-handlers/tru-search-group-event-handler.mjs +0 -41
- package/esm2020/lib/event-handlers/tru-search-view-event-handler.mjs +0 -20
- package/lib/event-handlers/tru-search-view-event-handler.d.ts +0 -8
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TruPropertyConfigBase } from './tru-property-config-base';
|
|
3
|
+
import { TruEntityBase } from './tru-entity-base';
|
|
4
|
+
export declare abstract class TruControlComponentConfigBase {
|
|
5
|
+
abstract label: string | undefined;
|
|
6
|
+
abstract propertyName: string | undefined;
|
|
7
|
+
abstract rootTable: string | undefined;
|
|
8
|
+
abstract propertyPath: string | undefined;
|
|
9
|
+
abstract get property(): TruPropertyConfigBase;
|
|
10
|
+
abstract value: (entity: any) => {};
|
|
11
|
+
constructor();
|
|
12
|
+
protected hid?(entity: TruEntityBase): string | null | undefined;
|
|
13
|
+
protected choices?(): Observable<{
|
|
14
|
+
label: string;
|
|
15
|
+
value: {
|
|
16
|
+
$: any;
|
|
17
|
+
};
|
|
18
|
+
}[]>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TruControlComponentConfigBase } from "./tru-control-component-config-base";
|
|
2
|
+
export declare abstract class TruSearchConfigBase {
|
|
3
|
+
abstract name: string;
|
|
4
|
+
abstract noControls: boolean;
|
|
5
|
+
abstract controls: Array<[string, string]> | undefined;
|
|
6
|
+
abstract controlConfigs: Record<string, TruControlComponentConfigBase>;
|
|
7
|
+
abstract setupQuery: (query: any, predicateMap: any) => {};
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-detail-view-base";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class DetailViewModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailViewModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DetailViewModule, [typeof i1.TruDetailViewBase], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruDetailViewBase]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DetailViewModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TruDetailViewBase {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDetailViewBase, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDetailViewBase, "tru-detail-view-base", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class TruSearchViewEventHandler {
|
|
5
5
|
private search$;
|
|
6
6
|
private filter$;
|
|
7
7
|
private clear$;
|
|
@@ -14,6 +14,6 @@ export declare class TruSearchGroupEventHandler {
|
|
|
14
14
|
filter(entityQuery: any): void;
|
|
15
15
|
clearValues(): void;
|
|
16
16
|
setDefaults(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewEventHandler, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruSearchViewEventHandler>;
|
|
19
19
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-search-view-base";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruSearchViewBaseModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewBaseModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruSearchViewBaseModule, [typeof i1.TruSearchViewBase], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruSearchViewBase]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruSearchViewBaseModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TruDesktopManager } from '../../components/desktop/services/tru-desktop-manager';
|
|
3
|
+
import { TruWindowEventHandler } from '../../components/desktop/services/tru-window-event-handler';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TruSearchViewBase implements OnInit {
|
|
6
|
+
private desktopManager;
|
|
7
|
+
private truWindowEventHandler;
|
|
8
|
+
view: any;
|
|
9
|
+
protected tableName: string;
|
|
10
|
+
protected tablePluralName: string;
|
|
11
|
+
protected tablePluralLabel: string;
|
|
12
|
+
protected pkeyName: string;
|
|
13
|
+
protected windowTitle: any;
|
|
14
|
+
protected windowConfig: any;
|
|
15
|
+
protected unsubscribes: never[];
|
|
16
|
+
protected expands: never[];
|
|
17
|
+
protected contextFilters: any;
|
|
18
|
+
protected isSearching: boolean;
|
|
19
|
+
protected entities: never[];
|
|
20
|
+
protected hasDetailView: boolean;
|
|
21
|
+
searchPanelConfig: {
|
|
22
|
+
side: string;
|
|
23
|
+
active: boolean;
|
|
24
|
+
open: boolean;
|
|
25
|
+
modKeyLabel: string;
|
|
26
|
+
size: number;
|
|
27
|
+
pinned: boolean;
|
|
28
|
+
};
|
|
29
|
+
constructor(desktopManager: TruDesktopManager, truWindowEventHandler: TruWindowEventHandler);
|
|
30
|
+
setWindowTitle: () => void;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
onPkeyCellDoubleClicked: (gridConfig: any) => void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewBase, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruSearchViewBase, "tru-search-view-base", never, { "view": "view"; }, {}, never, never, false, never>;
|
|
35
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnChanges, AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { TruAppEnvironment } from '../../services/tru-app-environment';
|
|
3
|
-
import { TruSearchViewEventHandler } from '../../
|
|
3
|
+
import { TruSearchViewEventHandler } from '../../base-views/search/services/tru-search-view-event-handler';
|
|
4
4
|
import { TruDataContext } from '../../services/tru-data-context';
|
|
5
5
|
import { TruUiNotification } from '../../services/tru-ui-notification';
|
|
6
6
|
import { ITruDataGridConfig } from './classes/tru-data-grid-config';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TruWindowEventHandler } from './tru-window-event-handler';
|
|
2
|
+
import { TruWindowEventArgs } from './tru-window-event-args';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruDesktopManager {
|
|
5
|
+
private truWindowEventHandler;
|
|
6
|
+
constructor(truWindowEventHandler: TruWindowEventHandler);
|
|
7
|
+
getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, data: any) => TruWindowEventArgs;
|
|
8
|
+
/**
|
|
9
|
+
* Opens a window for a directive.
|
|
10
|
+
* @param {string} directiveName - name of the view directive.
|
|
11
|
+
* @param {object} data - values to pass to the view.
|
|
12
|
+
* @param {optional bool} showIfExists - if true and a view already exists for the
|
|
13
|
+
* directive, then shows its window instead of creating a new one.
|
|
14
|
+
*/
|
|
15
|
+
addWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, data?: any, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
16
|
+
windowTitlesByBaseText: any;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a unique string for the base name of a window. At first, returns the input.
|
|
19
|
+
* For second call with same base name, returns the name plus ' - 2' and so on. When
|
|
20
|
+
* all of the titles for the base name are released, then the next title will have no
|
|
21
|
+
* suffix.
|
|
22
|
+
* @param {string} text - base name of a window.
|
|
23
|
+
* @returns {object} - text: the unique text and release(): releases the name for
|
|
24
|
+
* future windows.
|
|
25
|
+
*/
|
|
26
|
+
getUniqueTitle: (text: string) => any;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopManager, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopManager>;
|
|
29
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './lib/base-classes/tru-component-config-base';
|
|
2
|
+
export * from './lib/base-classes/tru-control-component-config-base';
|
|
2
3
|
export * from './lib/base-classes/tru-entity-base';
|
|
3
4
|
export * from './lib/base-classes/tru-property-config-base';
|
|
4
5
|
export * from './lib/base-classes/tru-search-component-base';
|
|
5
6
|
export * from './lib/base-classes/tru-search-component-config-base';
|
|
7
|
+
export * from './lib/base-classes/tru-search-config-base';
|
|
6
8
|
export * from './lib/base-classes/tru-table-config-base';
|
|
9
|
+
export * from './lib/base-views/detail/tru-detail-view-base';
|
|
10
|
+
export * from './lib/base-views/detail/tru-detail-view-base-module';
|
|
11
|
+
export * from './lib/base-views/search/tru-search-view-base';
|
|
12
|
+
export * from './lib/base-views/search/tru-search-view-base-module';
|
|
13
|
+
export * from './lib/base-views/search/services/tru-search-view-event-handler';
|
|
7
14
|
export * from './lib/classes/tru-formula-eval';
|
|
8
15
|
export * from './lib/classes/tru-predicate';
|
|
9
16
|
export * from './lib/classes/tru-property-config-cloud-file';
|
|
@@ -26,6 +33,7 @@ export * from './lib/components/data-grid/tru-data-grid';
|
|
|
26
33
|
export * from './lib/components/data-grid/tru-data-grid-module';
|
|
27
34
|
export * from './lib/components/desktop/tru-desktop';
|
|
28
35
|
export * from './lib/components/desktop/tru-desktop-module';
|
|
36
|
+
export * from './lib/components/desktop/services/tru-desktop-manager';
|
|
29
37
|
export * from './lib/components/desktop/services/tru-window-action-event-handler';
|
|
30
38
|
export * from './lib/components/desktop/services/tru-window-add-view-event-args';
|
|
31
39
|
export * from './lib/components/desktop/services/tru-window-event-args';
|
|
@@ -56,8 +64,6 @@ export * from './lib/components/toolbar/text/tru-toolbar-text';
|
|
|
56
64
|
export * from './lib/components/toolbar/text/tru-toolbar-text-module';
|
|
57
65
|
export * from './lib/directives/search-panel-position-manager/tru-search-panel-position-manager';
|
|
58
66
|
export * from './lib/directives/search-panel-position-manager/tru-search-panel-position-manager-module';
|
|
59
|
-
export * from './lib/event-handlers/tru-search-group-event-handler';
|
|
60
|
-
export * from './lib/event-handlers/tru-search-view-event-handler';
|
|
61
67
|
export * from './lib/services/tru-app-environment';
|
|
62
68
|
export * from './lib/services/tru-breeze-context-factory';
|
|
63
69
|
export * from './lib/services/tru-breeze-metadata-provider';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Injectable, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TruSearchGroupEventHandler {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.search$ = new EventEmitter();
|
|
7
|
-
this.filter$ = new EventEmitter();
|
|
8
|
-
this.clear$ = new BehaviorSubject(null);
|
|
9
|
-
this.default$ = new BehaviorSubject(null);
|
|
10
|
-
}
|
|
11
|
-
onSearch() {
|
|
12
|
-
return this.search$;
|
|
13
|
-
}
|
|
14
|
-
onFilter() {
|
|
15
|
-
return this.filter$;
|
|
16
|
-
}
|
|
17
|
-
onClearValues() {
|
|
18
|
-
return this.clear$;
|
|
19
|
-
}
|
|
20
|
-
onSetDefaults() {
|
|
21
|
-
return this.default$;
|
|
22
|
-
}
|
|
23
|
-
search(entityQuery) {
|
|
24
|
-
this.search$.emit(entityQuery);
|
|
25
|
-
}
|
|
26
|
-
filter(entityQuery) {
|
|
27
|
-
this.filter$.emit(entityQuery);
|
|
28
|
-
}
|
|
29
|
-
clearValues() {
|
|
30
|
-
this.clear$.next(null);
|
|
31
|
-
}
|
|
32
|
-
setDefaults() {
|
|
33
|
-
this.default$.next(null);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
TruSearchGroupEventHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchGroupEventHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
-
TruSearchGroupEventHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchGroupEventHandler });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchGroupEventHandler, decorators: [{
|
|
39
|
-
type: Injectable
|
|
40
|
-
}] });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1LXNlYXJjaC1ncm91cC1ldmVudC1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJ1LWNvbW1vbi1saWIvc3JjL2xpYi9ldmVudC1oYW5kbGVycy90cnUtc2VhcmNoLWdyb3VwLWV2ZW50LWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFHdkMsTUFBTSxPQUFPLDBCQUEwQjtJQUR2QztRQUVVLFlBQU8sR0FBc0IsSUFBSSxZQUFZLEVBQU8sQ0FBQztRQUNyRCxZQUFPLEdBQXNCLElBQUksWUFBWSxFQUFPLENBQUM7UUFDckQsV0FBTSxHQUFHLElBQUksZUF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l19
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Injectable } from "@angular/core";
|
|
2
|
-
import { BehaviorSubject } from "rxjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TruSearchViewEventHandler {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.search$ = new BehaviorSubject(null);
|
|
7
|
-
}
|
|
8
|
-
search(query) {
|
|
9
|
-
this.search$.next(query);
|
|
10
|
-
}
|
|
11
|
-
onSearch() {
|
|
12
|
-
return this.search$.asObservable();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
TruSearchViewEventHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchViewEventHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
-
TruSearchViewEventHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchViewEventHandler });
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruSearchViewEventHandler, decorators: [{
|
|
18
|
-
type: Injectable
|
|
19
|
-
}] });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1LXNlYXJjaC12aWV3LWV2ZW50LWhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90cnUtY29tbW9uLWxpYi9zcmMvbGliL2V2ZW50LWhhbmRsZXJzL3RydS1zZWFyY2gtdmlldy1ldmVudC1oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFHdkMsTUFBTSxPQUFPLHlCQUF5QjtJQUR0QztRQUdVLFlBQU8sR0FBRyxJQUFJLGVBQWUsQ0FBTSxJQUFJLENBQUMsQ0FBQztLQVNsRDtJQVBDLE1BQU0sQ0FBQyxLQUFVO1FBQ2YsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDMUIsQ0FBQztJQUVELFFBQVE7UUFDTixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsWUFBWSxFQUFFLENBQUM7SUFDckMsQ0FBQzs7c0hBVlUseUJBQXlCOzBIQUF6Qix5QkFBeUI7MkZBQXpCLHlCQUF5QjtrQkFEckMsVUFBVSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5pbXBvcnQgeyBCZWhhdmlvclN1YmplY3QgfSBmcm9tIFwicnhqc1wiO1xyXG5cclxuQEluamVjdGFibGUoKVxyXG5leHBvcnQgY2xhc3MgVHJ1U2VhcmNoVmlld0V2ZW50SGFuZGxlciB7XHJcblxyXG4gIHByaXZhdGUgc2VhcmNoJCA9IG5ldyBCZWhhdmlvclN1YmplY3Q8YW55PihudWxsKTtcclxuXHJcbiAgc2VhcmNoKHF1ZXJ5OiBhbnkpIHtcclxuICAgIHRoaXMuc2VhcmNoJC5uZXh0KHF1ZXJ5KVxyXG4gIH1cclxuXHJcbiAgb25TZWFyY2goKSB7XHJcbiAgICByZXR1cm4gdGhpcy5zZWFyY2gkLmFzT2JzZXJ2YWJsZSgpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TruSearchViewEventHandler {
|
|
3
|
-
private search$;
|
|
4
|
-
search(query: any): void;
|
|
5
|
-
onSearch(): import("rxjs").Observable<any>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewEventHandler, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TruSearchViewEventHandler>;
|
|
8
|
-
}
|