@trudb/tru-common-lib 0.0.186 → 0.0.187

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.
@@ -0,0 +1,3 @@
1
+ export declare class TruComponentConfigBase {
2
+ constructor();
3
+ }
@@ -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,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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.186",
3
+ "version": "0.0.187",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  /// <reference path="lib/event-handlers/tru-search-group-event-handler.d.ts" />
2
+ export * from './lib/base-classes/tru-component-config-base';
3
+ export * from './lib/base-classes/tru-control-component-config-base';
2
4
  export * from './lib/base-classes/tru-entity-base';
3
5
  export * from './lib/base-classes/tru-property-config-base';
4
6
  export * from './lib/base-classes/tru-search-component-base';
5
7
  export * from './lib/base-classes/tru-search-component-config-base';
8
+ export * from './lib/base-classes/tru-search-config-base';
6
9
  export * from './lib/base-classes/tru-table-config-base';
7
10
  export * from './lib/classes/tru-formula-eval';
8
11
  export * from './lib/classes/tru-predicate';
@@ -26,6 +29,7 @@ export * from './lib/components/data-grid/tru-data-grid';
26
29
  export * from './lib/components/data-grid/tru-data-grid-module';
27
30
  export * from './lib/components/desktop/tru-desktop';
28
31
  export * from './lib/components/desktop/tru-desktop-module';
32
+ export * from './lib/components/desktop/services/tru-desktop-manager';
29
33
  export * from './lib/components/desktop/services/tru-window-action-event-handler';
30
34
  export * from './lib/components/desktop/services/tru-window-add-view-event-args';
31
35
  export * from './lib/components/desktop/services/tru-window-event-args';