@trudb/tru-common-lib 0.2.556 → 0.3.0

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 (191) hide show
  1. package/fesm2022/trudb-tru-common-lib.mjs +1140 -783
  2. package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
  3. package/package.json +3 -3
  4. package/types/trudb-tru-common-lib.d.ts +3404 -0
  5. package/index.d.ts +0 -5
  6. package/lib/assets/tru-icon-module.d.ts +0 -11
  7. package/lib/assets/tru-search-icon-module.d.ts +0 -11
  8. package/lib/base-classes/tru-component-config-base.d.ts +0 -3
  9. package/lib/base-classes/tru-control-component-config-base.d.ts +0 -21
  10. package/lib/base-classes/tru-edit-control-base.d.ts +0 -10
  11. package/lib/base-classes/tru-edit-control-config-base.d.ts +0 -26
  12. package/lib/base-classes/tru-edit-parent-control-config-base.d.ts +0 -9
  13. package/lib/base-classes/tru-edit-pkey-control-config-base.d.ts +0 -11
  14. package/lib/base-classes/tru-entity-base.d.ts +0 -16
  15. package/lib/base-classes/tru-list-control-config-base.d.ts +0 -25
  16. package/lib/base-classes/tru-property-config-base.d.ts +0 -17
  17. package/lib/base-classes/tru-search-config-base.d.ts +0 -9
  18. package/lib/base-classes/tru-search-control-base.d.ts +0 -21
  19. package/lib/base-classes/tru-search-control-config-base.d.ts +0 -13
  20. package/lib/base-classes/tru-search-control-parent-base.d.ts +0 -16
  21. package/lib/base-classes/tru-search-control-range-base.d.ts +0 -25
  22. package/lib/base-classes/tru-table-config-base.d.ts +0 -13
  23. package/lib/base-views/detail/tru-detail-view-base.d.ts +0 -62
  24. package/lib/base-views/search/services/tru-search-view-control-event-handler.d.ts +0 -16
  25. package/lib/base-views/search/services/tru-search-view-event-handler.d.ts +0 -14
  26. package/lib/base-views/search/tru-search-view-base.d.ts +0 -38
  27. package/lib/base-views/search-result/tru-search-result-view-base.d.ts +0 -29
  28. package/lib/base-views/tru-view-base.d.ts +0 -37
  29. package/lib/classes/tru-choice.d.ts +0 -8
  30. package/lib/classes/tru-context-filter-choice.d.ts +0 -6
  31. package/lib/classes/tru-context-filter.d.ts +0 -10
  32. package/lib/classes/tru-country.d.ts +0 -7
  33. package/lib/classes/tru-data-change-parser.d.ts +0 -40
  34. package/lib/classes/tru-data-change.d.ts +0 -4
  35. package/lib/classes/tru-formula-eval.d.ts +0 -31
  36. package/lib/classes/tru-merge-data-set.d.ts +0 -11
  37. package/lib/classes/tru-merge-data.d.ts +0 -9
  38. package/lib/classes/tru-name-value.d.ts +0 -9
  39. package/lib/classes/tru-navigation-properties-config.d.ts +0 -5
  40. package/lib/classes/tru-navigation-property-config.d.ts +0 -5
  41. package/lib/classes/tru-predicate.d.ts +0 -8
  42. package/lib/classes/tru-property-config-cloud-file.d.ts +0 -4
  43. package/lib/classes/tru-property-config-date.d.ts +0 -6
  44. package/lib/classes/tru-property-config-decimal.d.ts +0 -8
  45. package/lib/classes/tru-property-config-file.d.ts +0 -5
  46. package/lib/classes/tru-property-config-foreign-key.d.ts +0 -9
  47. package/lib/classes/tru-property-config-integer.d.ts +0 -6
  48. package/lib/classes/tru-property-config-password.d.ts +0 -5
  49. package/lib/classes/tru-property-config-percentage.d.ts +0 -6
  50. package/lib/classes/tru-property-config-scientific.d.ts +0 -6
  51. package/lib/classes/tru-property-config-text-choices.d.ts +0 -5
  52. package/lib/classes/tru-property-config-text.d.ts +0 -7
  53. package/lib/classes/tru-property-config-usa-address.d.ts +0 -5
  54. package/lib/classes/tru-property-config-zip-code.d.ts +0 -5
  55. package/lib/classes/tru-query-predicate-manager.d.ts +0 -26
  56. package/lib/classes/tru-server-error.d.ts +0 -14
  57. package/lib/classes/tru-validator-factory.d.ts +0 -19
  58. package/lib/classes/tru-view-menu-config.d.ts +0 -8
  59. package/lib/components/about-dialog/tru-about-dialog.d.ts +0 -17
  60. package/lib/components/app-settings-dialog/tru-app-settings-dialog.d.ts +0 -16
  61. package/lib/components/app-settings-dialog/windows/classes/tru-window-open-on-start-setting.d.ts +0 -7
  62. package/lib/components/app-settings-dialog/windows/on-starup/tru-app-window-open-on-startup-setting.d.ts +0 -16
  63. package/lib/components/app-settings-dialog/windows/tru-app-window-settings.d.ts +0 -6
  64. package/lib/components/card-column/classes/tru-card-column-config.d.ts +0 -34
  65. package/lib/components/card-column/classes/tru-card-column-data.d.ts +0 -4
  66. package/lib/components/card-column/classes/tru-card-column-search-results-config-base.d.ts +0 -13
  67. package/lib/components/card-column/tru-card-column.d.ts +0 -85
  68. package/lib/components/card-column/tru-card.d.ts +0 -13
  69. package/lib/components/clone-view/tru-clone-view.d.ts +0 -76
  70. package/lib/components/confirm-dialog/tru-confirm-dialog.d.ts +0 -28
  71. package/lib/components/data-grid/classes/tru-data-grid-cell-renderer.d.ts +0 -10
  72. package/lib/components/data-grid/classes/tru-data-grid-config.d.ts +0 -25
  73. package/lib/components/data-grid/classes/tru-data-grid-pkey-cell-renderer.d.ts +0 -35
  74. package/lib/components/data-grid/enums/tru-data-grid-types.d.ts +0 -5
  75. package/lib/components/data-grid/headers/tru-data-grid-header-filter.d.ts +0 -35
  76. package/lib/components/data-grid/headers/tru-data-grid-header.d.ts +0 -25
  77. package/lib/components/data-grid/headers/tru-data-grid-ref-header.d.ts +0 -24
  78. package/lib/components/data-grid/overlays/tru-data-grid-loading-overlay/tru-data-grid-loading-overlay.d.ts +0 -13
  79. package/lib/components/data-grid/overlays/tru-data-grid-no-rows-overlay/tru-data-grid-no-rows-overlay.d.ts +0 -13
  80. package/lib/components/data-grid/services/tru-data-grid-clipboard.d.ts +0 -45
  81. package/lib/components/data-grid/services/tru-data-grid-util.d.ts +0 -16
  82. package/lib/components/data-grid/tru-data-grid.d.ts +0 -125
  83. package/lib/components/desktop/classes/tru-desktop-title.d.ts +0 -4
  84. package/lib/components/desktop/classes/tru-desktop-view-config.d.ts +0 -26
  85. package/lib/components/desktop/directives/resizable/tru-desktop-resizable.d.ts +0 -32
  86. package/lib/components/desktop/directives/window-state-monitor/tru-desktop-window-state-monitor.d.ts +0 -24
  87. package/lib/components/desktop/menubar/tru-desktop-menubar.d.ts +0 -15
  88. package/lib/components/desktop/services/tru-desktop-event-handler.d.ts +0 -11
  89. package/lib/components/desktop/services/tru-desktop-manager.d.ts +0 -37
  90. package/lib/components/desktop/services/tru-desktop-service.d.ts +0 -101
  91. package/lib/components/desktop/services/tru-desktop-view-event-notifier.d.ts +0 -10
  92. package/lib/components/desktop/services/tru-window-action-event-handler.d.ts +0 -12
  93. package/lib/components/desktop/services/tru-window-close-event-args.d.ts +0 -9
  94. package/lib/components/desktop/services/tru-window-event-args.d.ts +0 -24
  95. package/lib/components/desktop/services/tru-window-event-handler.d.ts +0 -23
  96. package/lib/components/desktop/services/tru-window-manager.d.ts +0 -14
  97. package/lib/components/desktop/statusbar/tru-desktop-statusbar.d.ts +0 -10
  98. package/lib/components/desktop/taskbar/tru-desktop-taskbar.d.ts +0 -15
  99. package/lib/components/desktop/tru-desktop.d.ts +0 -330
  100. package/lib/components/desktop/view/tru-desktop-view.d.ts +0 -17
  101. package/lib/components/desktop/viewport/tru-desktop-viewport.d.ts +0 -48
  102. package/lib/components/desktop/window/tru-desktop-window.d.ts +0 -196
  103. package/lib/components/error-dialog/classes/tru-error-dialog-config.d.ts +0 -6
  104. package/lib/components/error-dialog/services/tru-error-interceptor.d.ts +0 -11
  105. package/lib/components/error-dialog/tru-error-dialog.d.ts +0 -16
  106. package/lib/components/export-dialog/tru-export-dialog.d.ts +0 -26
  107. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog-config.d.ts +0 -24
  108. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog.d.ts +0 -24
  109. package/lib/components/iframe-view/classes/tru-iframe-view-config.d.ts +0 -10
  110. package/lib/components/iframe-view/tru-iframe-view.d.ts +0 -33
  111. package/lib/components/layout/column/tru-column.d.ts +0 -6
  112. package/lib/components/layout/form/tru-form.d.ts +0 -10
  113. package/lib/components/layout/group-box/tru-group-box.d.ts +0 -6
  114. package/lib/components/layout/row/tru-row.d.ts +0 -6
  115. package/lib/components/layout/tab/services/tru-tab-group-event-notifier.d.ts +0 -10
  116. package/lib/components/layout/tab/tab/tru-tab.d.ts +0 -13
  117. package/lib/components/layout/tab/tab-group/tru-tab-group.d.ts +0 -14
  118. package/lib/components/login/classes/tru-auth-config.d.ts +0 -16
  119. package/lib/components/login/classes/tru-auth-jwt-strategy.d.ts +0 -15
  120. package/lib/components/login/classes/tru-auth-login-request.d.ts +0 -4
  121. package/lib/components/login/classes/tru-auth-session-strategy.d.ts +0 -13
  122. package/lib/components/login/classes/tru-auth-strategy-provider.d.ts +0 -10
  123. package/lib/components/login/classes/tru-auth-token.d.ts +0 -6
  124. package/lib/components/login/classes/tru-auth-windows-strategy.d.ts +0 -9
  125. package/lib/components/login/services/tru-auth-cache.d.ts +0 -11
  126. package/lib/components/login/services/tru-auth-interceptor.d.ts +0 -16
  127. package/lib/components/login/services/tru-auth.d.ts +0 -33
  128. package/lib/components/login/services/tru-server-touch-interceptor.d.ts +0 -14
  129. package/lib/components/login/services/tru-server-touch-tracker.d.ts +0 -31
  130. package/lib/components/login/services/tru-session-expiry-monitor.d.ts +0 -37
  131. package/lib/components/login/services/tru-session-keepalive.d.ts +0 -44
  132. package/lib/components/login/services/tru-user-activity-tracker.d.ts +0 -14
  133. package/lib/components/login/tru-login-module.d.ts +0 -11
  134. package/lib/components/login/tru-login.d.ts +0 -29
  135. package/lib/components/password-dialog/classes/tru-password-change-request.d.ts +0 -6
  136. package/lib/components/password-dialog/tru-password-dialog.d.ts +0 -39
  137. package/lib/components/toolbar/app-customization/tru-toolbar-app-customization.d.ts +0 -26
  138. package/lib/components/toolbar/button/tru-toolbar-button.d.ts +0 -16
  139. package/lib/components/toolbar/classes/tru-toolbar-dropdown-option.d.ts +0 -4
  140. package/lib/components/toolbar/context-filter/tru-toolbar-context-filter.d.ts +0 -13
  141. package/lib/components/toolbar/dropdown/tru-toolbar-dropdown.d.ts +0 -39
  142. package/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button.d.ts +0 -7
  143. package/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item.d.ts +0 -17
  144. package/lib/components/toolbar/menu/tru-toolbar-menu.d.ts +0 -11
  145. package/lib/components/toolbar/separator/tru-toolbar-separator.d.ts +0 -6
  146. package/lib/components/toolbar/text/tru-toolbar-text.d.ts +0 -12
  147. package/lib/components/toolbar/textbox/tru-toolbar-textbox.d.ts +0 -14
  148. package/lib/components/toolbar/tru-toolbar.d.ts +0 -9
  149. package/lib/components/toolbar/user-profile/tru-toolbar-user-profile.d.ts +0 -17
  150. package/lib/components/validation-dialog/tru-validation-dialog-config.d.ts +0 -27
  151. package/lib/components/validation-dialog/tru-validation-dialog-context.d.ts +0 -5
  152. package/lib/components/validation-dialog/tru-validation-dialog.d.ts +0 -24
  153. package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +0 -31
  154. package/lib/directives/rendered/tru-rendered.d.ts +0 -8
  155. package/lib/directives/search-panel-position-manager/tru-search-panel-position-manager.d.ts +0 -40
  156. package/lib/directives/select-panel/tru-mat-select-panel.d.ts +0 -17
  157. package/lib/extensions.d.ts +0 -7
  158. package/lib/interfaces/tru-ancestor.d.ts +0 -7
  159. package/lib/interfaces/tru-value.d.ts +0 -6
  160. package/lib/material.module.d.ts +0 -50
  161. package/lib/pipes/open-on-start.d.ts +0 -7
  162. package/lib/services/tru-action-invoke.d.ts +0 -78
  163. package/lib/services/tru-app-environment.d.ts +0 -77
  164. package/lib/services/tru-breeze-context-factory.d.ts +0 -32
  165. package/lib/services/tru-breeze-metadata-provider.d.ts +0 -9
  166. package/lib/services/tru-cloud-file-manager.d.ts +0 -21
  167. package/lib/services/tru-component-lookup.d.ts +0 -10
  168. package/lib/services/tru-connection-hub.d.ts +0 -24
  169. package/lib/services/tru-context-filters.d.ts +0 -12
  170. package/lib/services/tru-countries.d.ts +0 -10
  171. package/lib/services/tru-data-context.d.ts +0 -66
  172. package/lib/services/tru-entity-accessor.d.ts +0 -83
  173. package/lib/services/tru-entity-metadata-registry.d.ts +0 -22
  174. package/lib/services/tru-error-manager.d.ts +0 -27
  175. package/lib/services/tru-formatter.d.ts +0 -46
  176. package/lib/services/tru-global-data-context.d.ts +0 -10
  177. package/lib/services/tru-model-navigation-properties-lookup.d.ts +0 -10
  178. package/lib/services/tru-model-property-lookup.d.ts +0 -10
  179. package/lib/services/tru-model-table-lookup.d.ts +0 -11
  180. package/lib/services/tru-model-type-lookup.d.ts +0 -10
  181. package/lib/services/tru-predicate-map.d.ts +0 -6
  182. package/lib/services/tru-report-manager.d.ts +0 -22
  183. package/lib/services/tru-search-result-view-manager.d.ts +0 -10
  184. package/lib/services/tru-sort.d.ts +0 -57
  185. package/lib/services/tru-text-manager.d.ts +0 -83
  186. package/lib/services/tru-ui-notification.d.ts +0 -42
  187. package/lib/services/tru-user-preference-manager.d.ts +0 -39
  188. package/lib/services/tru-user.d.ts +0 -29
  189. package/lib/services/tru-util.d.ts +0 -32
  190. package/lib/tru-common-module.d.ts +0 -6
  191. package/public-api.d.ts +0 -141
@@ -1,25 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { IHeaderAngularComp } from 'ag-grid-angular';
3
- import { IHeaderParams } from 'ag-grid-community';
4
- import * as i0 from "@angular/core";
5
- export declare class TruDataGridHeader implements IHeaderAngularComp {
6
- headerRef: ElementRef;
7
- params: IHeaderParams;
8
- ascSort: boolean;
9
- descSort: boolean;
10
- isHovering: boolean;
11
- columnMenuIsOpen: boolean;
12
- showFilterMenu: boolean;
13
- filterIsActive: boolean;
14
- private onCellFocused;
15
- private onSortChanged;
16
- agInit(params: IHeaderParams): void;
17
- getHeaderParams(): IHeaderParams;
18
- refresh(params: IHeaderParams): boolean;
19
- onFilterMenuButtonClicked(event: MouseEvent): void;
20
- onHeaderMouseEnter(event: MouseEvent): void;
21
- onHeaderMouseLeave(event: MouseEvent): void;
22
- ngOnDestroy(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridHeader, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridHeader, "ng-component", never, {}, {}, never, never, true, never>;
25
- }
@@ -1,24 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { IHeaderAngularComp } from 'ag-grid-angular';
3
- import { IHeaderParams } from 'ag-grid-community';
4
- import * as i0 from "@angular/core";
5
- export declare class TruDataGridRefHeader implements IHeaderAngularComp {
6
- headerRef: ElementRef;
7
- params: IHeaderParams;
8
- ascSort: boolean;
9
- descSort: boolean;
10
- isHovering: boolean;
11
- columnMenuIsOpen: boolean;
12
- showFilterMenu: boolean;
13
- filterIsActive: boolean;
14
- agInit(params: IHeaderParams): void;
15
- getHeaderParams(): IHeaderParams;
16
- refresh(params: IHeaderParams): boolean;
17
- onSelectAllIconClicked(): void;
18
- onFilterMenuButtonClicked(event: MouseEvent): void;
19
- onHeaderMouseEnter(event: MouseEvent): void;
20
- onHeaderMouseLeave(event: MouseEvent): void;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridRefHeader, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridRefHeader, "ng-component", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,13 +0,0 @@
1
- import { ILoadingOverlayAngularComp } from "ag-grid-angular";
2
- import { ILoadingOverlayParams } from "ag-grid-community";
3
- import * as i0 from "@angular/core";
4
- export declare class TruDataGridLoadingOverlay implements ILoadingOverlayAngularComp {
5
- params: ILoadingOverlayParams & {
6
- loadingMessage: string;
7
- };
8
- agInit(params: ILoadingOverlayParams & {
9
- loadingMessage: string;
10
- }): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridLoadingOverlay, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridLoadingOverlay, "tru-data-grid-loading-overlay", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,13 +0,0 @@
1
- import { INoRowsOverlayAngularComp } from "ag-grid-angular";
2
- import { INoRowsOverlayParams } from "ag-grid-community";
3
- import * as i0 from "@angular/core";
4
- export declare class TruDataGridNoRowsOverlay implements INoRowsOverlayAngularComp {
5
- params: INoRowsOverlayParams & {
6
- noRowsMessageFunc: () => string;
7
- };
8
- agInit(params: INoRowsOverlayParams & {
9
- noRowsMessageFunc: () => string;
10
- }): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridNoRowsOverlay, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridNoRowsOverlay, "tru-data-grid-no-rows-overlay", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,45 +0,0 @@
1
- import { ColDef, GridApi, ICellRendererParams } from 'ag-grid-community';
2
- import { TruEntityBase } from '../../../base-classes/tru-entity-base';
3
- import { TruDataContext } from '../../../services/tru-data-context';
4
- import { TruUtil } from '../../../services/tru-util';
5
- import { ITruDataGridConfig } from '../classes/tru-data-grid-config';
6
- import { TruUiNotification } from '../../../services/tru-ui-notification';
7
- import { Entity } from 'breeze-client';
8
- import { TruFormatter } from '../../../services/tru-formatter';
9
- import { TruModelPropertyLookup } from '../../../services/tru-model-property-lookup';
10
- import * as i0 from "@angular/core";
11
- export declare class TruDataGridClipboard {
12
- private util;
13
- private formatter;
14
- private uiNotification;
15
- private modelPropertyLookup;
16
- private tableName;
17
- private columnName;
18
- private copiedCellData;
19
- private copiedCellValue;
20
- private copiedCellEntity;
21
- private copiedCellParams;
22
- private copiedCellText;
23
- private copiedRows;
24
- private copiedRowsText;
25
- private gridElement;
26
- constructor(util: TruUtil, formatter: TruFormatter, uiNotification: TruUiNotification, modelPropertyLookup: TruModelPropertyLookup);
27
- private formatCellValue;
28
- private normalizeClipboardText;
29
- private readClipboardText;
30
- private parseExternalCellValue;
31
- private removeBorderAnimation;
32
- private addCellBorderAnimation;
33
- private addRowBorderAnimation;
34
- setGridElement(el: HTMLElement): void;
35
- clearAnimations(): void;
36
- copyCell: (params: ICellRendererParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => Promise<void>;
37
- pasteCell: (params: ICellRendererParams, pastedCellData: any, pastedCell: Entity) => Promise<void>;
38
- copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean) => Promise<void>;
39
- pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => Promise<void>;
40
- insertRowsAtTop: (dataContext: TruDataContext, config: ITruDataGridConfig, addEntity: (newEntity: any, dataNotification: boolean) => {}) => void;
41
- getCopiedRows: () => TruEntityBase[];
42
- getCopiedCell: () => Entity | null;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridClipboard, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDataGridClipboard>;
45
- }
@@ -1,16 +0,0 @@
1
- import { ColDef, GridApi } from 'ag-grid-community';
2
- import * as i0 from "@angular/core";
3
- export declare class TruDataGridUtil {
4
- static resolvePropertyPath: (entity: any, propertyPath: string | null | undefined) => {
5
- entity: any;
6
- propertyName: string;
7
- } | null;
8
- static isPropertyPathAvailable: (entity: any, propertyPath: string | null | undefined) => boolean;
9
- static getCellEditorConfigField: (rowData: any, columnDef: ColDef) => string | undefined;
10
- static validatePropertyPath: (entity: any, propertyPath: string | null | undefined) => boolean | null;
11
- private getColumnIndexByColId;
12
- focusPreviousCell: (api: GridApi, rowIndex: number, colId: string) => void;
13
- focusNextCell: (api: GridApi, rowIndex: number, colId: string) => void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridUtil, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDataGridUtil>;
16
- }
@@ -1,125 +0,0 @@
1
- import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import type { ColDef, GridApi } from "ag-grid-community";
3
- import { TruSearchViewEventHandler } from '../../base-views/search/services/tru-search-view-event-handler';
4
- import { TruAppEnvironment } from '../../services/tru-app-environment';
5
- import { TruComponentLookup } from '../../services/tru-component-lookup';
6
- import { TruConnectionHub } from '../../services/tru-connection-hub';
7
- import { TruDataContext } from '../../services/tru-data-context';
8
- import { TruSearchResultViewManager } from '../../services/tru-search-result-view-manager';
9
- import { TruUiNotification } from '../../services/tru-ui-notification';
10
- import { TruUtil } from '../../services/tru-util';
11
- import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
12
- import { TruTabGroupEventNotifier } from '../layout/tab/services/tru-tab-group-event-notifier';
13
- import { ITruToolbarDropdownOption } from '../toolbar/classes/tru-toolbar-dropdown-option';
14
- import { ITruDataGridConfig } from './classes/tru-data-grid-config';
15
- import { TruDataGridTypes } from './enums/tru-data-grid-types';
16
- import { TruDataGridClipboard } from './services/tru-data-grid-clipboard';
17
- import { TruDesktopViewEventNotifier } from '../desktop/services/tru-desktop-view-event-notifier';
18
- import * as i0 from "@angular/core";
19
- export declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
20
- private dataContext;
21
- private componentLookup;
22
- private searchResultViewManager;
23
- private appEnvironment;
24
- private searchViewEventHandler;
25
- private uiNotification;
26
- private connectionHub;
27
- private windowEventHandler;
28
- private dataGridClipboard;
29
- private util;
30
- private app;
31
- private cdr;
32
- private hostElement;
33
- private desktopViewEventNotifier;
34
- tabGroupEventNotifier: TruTabGroupEventNotifier;
35
- dataGridContainer: ElementRef;
36
- customToolbarContainer: ViewContainerRef;
37
- config: ITruDataGridConfig;
38
- entity: any;
39
- name: any;
40
- TruDataGridTypes: typeof TruDataGridTypes;
41
- label: string;
42
- columnDefs: any;
43
- rowData: any;
44
- viewChoices: Array<any>;
45
- selectedViewChoice: any;
46
- unassociatedChoices: Array<any>;
47
- selectedUnassociatedChoice: any;
48
- viewMenuItems: any;
49
- customToolbarComponents: any;
50
- selectedViewMenuItem: any | null;
51
- gridType: TruDataGridTypes;
52
- unsavedEntities: Array<any>;
53
- loadedEntities: Array<any>;
54
- latestSetupQuery: any;
55
- firstSearchRan: boolean;
56
- rowCount: string;
57
- selectedRowCount: string;
58
- api: GridApi;
59
- private invalidRowIds;
60
- private invalidRowIdSequence;
61
- gridOptions: any;
62
- parentToolbarTemplate: TemplateRef<any> | null;
63
- private subs;
64
- private isActive;
65
- private rowSelectedOnMousedown;
66
- private rowFocuedOnMousedown;
67
- private copiedRowData;
68
- private scrollOffsetCleanup;
69
- private detailResizeCleanup;
70
- private pendingResizeFrameId;
71
- constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, searchResultViewManager: TruSearchResultViewManager, appEnvironment: TruAppEnvironment, searchViewEventHandler: TruSearchViewEventHandler, uiNotification: TruUiNotification, connectionHub: TruConnectionHub, windowEventHandler: TruWindowEventHandler, dataGridClipboard: TruDataGridClipboard, util: TruUtil, app: ApplicationRef, cdr: ChangeDetectorRef, hostElement: ElementRef, desktopViewEventNotifier: TruDesktopViewEventNotifier, tabGroupEventNotifier: TruTabGroupEventNotifier);
72
- private onDocumentKeydown;
73
- private enhanceRowDataForEntity;
74
- private setNoRowsTemplate;
75
- private applyRelationshipsAndUpdateGrid;
76
- private subscribeTo;
77
- private getRefs;
78
- private getRowData;
79
- private loadGridData;
80
- private loadManyToManyGridData;
81
- private exportData;
82
- private onSuppressKeyboardEvent;
83
- private addEntity;
84
- private getMergeData;
85
- private validationDialog;
86
- private destroyValidationDialog;
87
- private addValidationDialog;
88
- private waitForGridApi;
89
- private runSearch;
90
- private getPropertyPathParts;
91
- private configureColumnDefs;
92
- private renderCustomToolbarComponents;
93
- defaultColDef: ColDef;
94
- onRowDataChanged: (data: any) => void;
95
- onCellMouseDown: (cellData: any) => void;
96
- onCellClicked: (cellData: any) => void;
97
- onRowClicked: (cellData: any) => void;
98
- onCellDoubleClicked: (cellData: any) => void;
99
- onCellKeyDown: (params: any) => void;
100
- onCellMouseOver(e: any): void;
101
- onCellMouseOut(e: any): void;
102
- onRightClick(event: MouseEvent): void;
103
- onSearch: (setupQuery: any) => void;
104
- onUnassociatedChoiceChanged: (option: Array<ITruToolbarDropdownOption> | null) => void;
105
- onSelectedReportChanged: (event: any) => void;
106
- canAdd: () => boolean;
107
- onAdd: () => void;
108
- onDelete: () => void;
109
- onKeep: () => void;
110
- onRemove: () => void;
111
- onExport: () => void;
112
- ngOnInit(): void;
113
- ngAfterViewInit(): void;
114
- ngOnChanges(changes: SimpleChanges): void;
115
- ngOnDestroy(): void;
116
- private updateScrollOffsets;
117
- private setupScrollObservers;
118
- private teardownScrollObservers;
119
- private scheduleResizeGrid;
120
- private setupDetailResizeObservers;
121
- private teardownDetailResizeObservers;
122
- private resizeGrid;
123
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
124
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGrid, "tru-data-grid", never, { "config": { "alias": "config"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
125
- }
@@ -1,4 +0,0 @@
1
- export declare abstract class TruDesktopTitle {
2
- abstract text: string;
3
- abstract release: () => void;
4
- }
@@ -1,26 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { WindowConfig } from '../services/tru-desktop-service';
3
- export declare class TruDesktopViewConfig {
4
- active$: BehaviorSubject<boolean>;
5
- onActive(): BehaviorSubject<boolean>;
6
- get active(): boolean;
7
- set active(value: boolean);
8
- entities: Array<any> | undefined;
9
- entityIndex: number;
10
- entityRefs: string;
11
- parentTableRefName: string;
12
- parentEntity: any;
13
- isDirty: boolean;
14
- isEditing: boolean;
15
- isInvalid: boolean;
16
- requiresCleanDataContext: boolean;
17
- suppressWindowSaveRevert: boolean;
18
- componentName: string;
19
- openAsDetaiView: boolean;
20
- actionRefs: string;
21
- window: WindowConfig;
22
- selectedRefs: () => string;
23
- url: string;
24
- title: string;
25
- constructor();
26
- }
@@ -1,32 +0,0 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruDesktopResizable implements OnInit {
4
- private elementRef;
5
- window: any;
6
- maximized: any;
7
- direction: any;
8
- constructor(elementRef: ElementRef);
9
- currentHeight: any;
10
- currentWidth: any;
11
- currentTop: any;
12
- currentLeft: any;
13
- currentRight: any;
14
- currentBottom: any;
15
- currentMinHeight: any;
16
- currentMinWidth: any;
17
- mouseOffsetX: number;
18
- mouseOffsetY: number;
19
- lastMouseX: number;
20
- lastMouseY: number;
21
- originalHeight: number;
22
- originalWidth: number;
23
- viewport: any;
24
- mouseDown: (event: any) => void;
25
- mouseMove: (event: any) => void;
26
- mouseUp: (event: any) => void;
27
- getViewport: () => Element;
28
- ngOnInit(): void;
29
- ngOnDestroy(): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopResizable, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<TruDesktopResizable, "[tru-desktop-resizable]", never, { "window": { "alias": "window"; "required": false; }; "maximized": { "alias": "maximized"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, true, never>;
32
- }
@@ -1,24 +0,0 @@
1
- import { ElementRef, Renderer2, SimpleChanges } from '@angular/core';
2
- import { TruWindowEventHandler } from '../../services/tru-window-event-handler';
3
- import { OverlayContainer } from '@angular/cdk/overlay';
4
- import * as i0 from "@angular/core";
5
- export declare class TruDesktopWindowStateMonitor {
6
- private el;
7
- private renderer;
8
- private windowEventHandler;
9
- private overlayContainer;
10
- active: boolean;
11
- private tabListener;
12
- private focusListener;
13
- private focusableElements;
14
- constructor(el: ElementRef, renderer: Renderer2, windowEventHandler: TruWindowEventHandler, overlayContainer: OverlayContainer);
15
- private setWindowState;
16
- private getFocusableChildElements;
17
- private focusAppropriateElement;
18
- onKeydown(event: KeyboardEvent): void;
19
- onFocusIn(event: FocusEvent): void;
20
- ngOnChanges(changes: SimpleChanges): void;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopWindowStateMonitor, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<TruDesktopWindowStateMonitor, "[truDesktopWindowStateMonitor]", never, { "active": { "alias": "truDesktopWindowStateMonitor"; "required": false; }; }, {}, never, never, true, never>;
24
- }
@@ -1,15 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { TruContextFilters } from '../../../services/tru-context-filters';
3
- import * as i0 from "@angular/core";
4
- export declare class TruDesktopMenubar implements OnInit {
5
- private contextFilters;
6
- desktopCtrl: any;
7
- constructor(contextFilters: TruContextFilters);
8
- options: any | null;
9
- configs: any | null;
10
- filters: Array<any>;
11
- openWindow: (event: any, windowOverrides: any) => void;
12
- ngOnInit(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopMenubar, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopMenubar, "tru-desktop-menubar", never, { "desktopCtrl": { "alias": "desktopCtrl"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,11 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { TruWindowEventArgs } from './tru-window-event-args';
3
- import * as i0 from "@angular/core";
4
- export declare class TruDesktopEventHandler {
5
- private open$;
6
- onOpen(): Subject<TruWindowEventArgs>;
7
- open(windowEvent: TruWindowEventArgs): TruWindowEventArgs;
8
- openCustom(windowEvent: TruWindowEventArgs): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopEventHandler, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopEventHandler>;
11
- }
@@ -1,37 +0,0 @@
1
- import { TruEntityBase } from "../../../base-classes/tru-entity-base";
2
- import { TruContextFilters } from "../../../services/tru-context-filters";
3
- import { TruDesktopTitle } from "../classes/tru-desktop-title";
4
- import { TruDesktopEventHandler } from "./tru-desktop-event-handler";
5
- import { TruWindowEventArgs } from './tru-window-event-args';
6
- import { TruDataContext } from "../../../services/tru-data-context";
7
- import * as i0 from "@angular/core";
8
- export declare class TruDesktopManager {
9
- private contextFilters;
10
- private desktopEventHandler;
11
- constructor(contextFilters: TruContextFilters, desktopEventHandler: TruDesktopEventHandler);
12
- getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, isModal: boolean, componentName: string, entities?: Array<TruEntityBase>, entityIndex?: number, openAsDetaiView?: boolean, showNavigation?: boolean, parentDataContext?: TruDataContext | null) => TruWindowEventArgs;
13
- /**
14
- * Opens a window for a directive.
15
- * @param {string} directiveName - name of the view directive.
16
- * @param {object} data - values to pass to the view.
17
- * @param {optional bool} showIfExists - if true and a view already exists for the
18
- * directive, then shows its window instead of creating a new one.
19
- */
20
- addWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
21
- addModalWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities: Array<TruEntityBase> | undefined, entityIndex: number | undefined, parentDataContext: TruDataContext, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => TruWindowEventArgs;
22
- addWindowForQueryResult: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
23
- addCustomWindow: (componentName: string, data?: object | null) => void;
24
- windowTitlesByBaseText: any;
25
- /**
26
- * Returns a unique string for the base name of a window. At first, returns the input.
27
- * For second call with same base name, returns the name plus ' - 2' and so on. When
28
- * all of the titles for the base name are released, then the next title will have no
29
- * suffix.
30
- * @param {string} text - base name of a window.
31
- * @returns {object} - text: the unique text and release(): releases the name for
32
- * future windows.
33
- */
34
- getUniqueTitle: (text: string) => TruDesktopTitle;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopManager, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopManager>;
37
- }
@@ -1,101 +0,0 @@
1
- import { TruContextFilter } from '../../../classes/tru-context-filter';
2
- import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
3
- import { TruDataContext } from '../../../services/tru-data-context';
4
- import * as i0 from "@angular/core";
5
- export declare class TruDesktopService {
6
- /**
7
- * @tru.doc function
8
- * @name DesktopService.createDesktop
9
- * @module tru.desktop
10
- *
11
- * @description
12
- * Creates a new desktop instance.
13
- *
14
- * @returns {object} Desktop
15
- */
16
- createDesktop: () => Desktop;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopService>;
19
- }
20
- /**
21
- * @tru.desktop.doc class
22
- * @name DesktopService.Desktop
23
- * @module tru.desktop
24
- *
25
- * @description Desktop defines a logical desktop. Any non-dom properties and elements needed by the desktop should
26
- * be defined in this class
27
- *
28
- */
29
- export declare class Desktop {
30
- options: DesktopOptions;
31
- windowConfig: WindowConfig;
32
- viewConfig: TruDesktopViewConfig;
33
- }
34
- /**
35
- * @tru.desktop.doc class
36
- * @name DesktopService.DesktopOptions
37
- * @module tru.desktop
38
- *
39
- * @description Default DesktopOptions class. DesktopOptions are defined by the application developer and overlaid
40
- * over this object.
41
- *
42
- */
43
- export declare class DesktopOptions {
44
- allowDirtyClose: boolean;
45
- allowInvalidClose: boolean;
46
- cancelEditingOnNavigation: boolean;
47
- canCloseFn: undefined;
48
- canNavigateFn: undefined;
49
- displayViewportDimensions: boolean;
50
- enableAnimation: boolean;
51
- enableWindowCascading: boolean;
52
- logoUrl: undefined;
53
- menubarHeight: number;
54
- menubarConfig: undefined;
55
- showLaunchMenu: boolean;
56
- }
57
- /**
58
- * @tru.desktop.doc class
59
- * @name DesktopService.WindowConfig
60
- * @module tru.desktop
61
- *
62
- * @description
63
- * Default configuration object for a window. windowConfig properties can be defined by the application developer and overlaid
64
- * over this object.
65
- *
66
- */
67
- export declare class WindowConfig {
68
- tableName: string;
69
- tablePluralName: string;
70
- tablePluralLabel: string;
71
- active: boolean;
72
- bottom: string;
73
- globals: undefined;
74
- height: string;
75
- isDirty: boolean;
76
- isInvalid: boolean;
77
- left: number;
78
- maximized: undefined;
79
- minHeight: string;
80
- minimized: boolean;
81
- minWidth: string;
82
- outOfBounds: boolean;
83
- savedPosition: {};
84
- right: string;
85
- scope: undefined;
86
- title: string;
87
- top: number;
88
- width: string;
89
- views: TruDesktopViewConfig[];
90
- zIndex: number;
91
- isReadOnly: boolean;
92
- unsubscribes: Array<any>;
93
- wasReadOnly: boolean;
94
- contextFilters: Array<TruContextFilter>;
95
- parentDataContext: TruDataContext | null;
96
- parentView: any | null;
97
- removeForwardViews: () => void;
98
- goToPreviousView: () => void;
99
- closed: () => void;
100
- destroy: () => void;
101
- }
@@ -1,10 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class TruDesktopViewEventNotifier {
4
- private active$;
5
- onActiveStateChanged: () => BehaviorSubject<boolean>;
6
- get isActive(): boolean;
7
- set isActive(value: boolean);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopViewEventNotifier, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopViewEventNotifier>;
10
- }
@@ -1,12 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class TruWindowActionEventHandler {
4
- private save$;
5
- private revert$;
6
- onSave: () => Subject<null>;
7
- onRevert: () => Subject<null>;
8
- save: () => void;
9
- revert: () => void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowActionEventHandler, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowActionEventHandler>;
12
- }
@@ -1,9 +0,0 @@
1
- import { TruEntityBase } from '../../../base-classes/tru-entity-base';
2
- import * as i0 from "@angular/core";
3
- export declare class TruWindowCloseEventArgs {
4
- entities: Array<TruEntityBase>;
5
- entityIndex: number;
6
- refresh: boolean;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowCloseEventArgs, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowCloseEventArgs>;
9
- }
@@ -1,24 +0,0 @@
1
- import { TruContextFilter } from '../../../classes/tru-context-filter';
2
- import { TruDataContext } from '../../../services/tru-data-context';
3
- import { Subject } from 'rxjs';
4
- import { TruWindowCloseEventArgs } from './tru-window-close-event-args';
5
- import * as i0 from "@angular/core";
6
- export declare class TruWindowEventArgs {
7
- title: string;
8
- tableName: string;
9
- tablePluralName: string;
10
- tablePluralLabel: string;
11
- parentDataContext: TruDataContext | null;
12
- parentView: any | null;
13
- isModal: boolean;
14
- showNavigation: boolean;
15
- contentBottom: string;
16
- statusbarDirective: string;
17
- height: string;
18
- width: string;
19
- views: Array<object>;
20
- contextFilters: Array<TruContextFilter>;
21
- onClose$: Subject<TruWindowCloseEventArgs>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventArgs, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowEventArgs>;
24
- }
@@ -1,23 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
3
- import { TruWindowCloseEventArgs } from './tru-window-close-event-args';
4
- import * as i0 from "@angular/core";
5
- export declare class TruWindowEventHandler {
6
- private close$;
7
- private addView$;
8
- private active$;
9
- private setWindowTitle$;
10
- private removeForwadViews$;
11
- onClose(): Subject<TruWindowCloseEventArgs | null>;
12
- close(windowCloseEventArgs?: TruWindowCloseEventArgs | null): void;
13
- onAddView(): Subject<TruDesktopViewConfig>;
14
- addView(windowAddViewEvent: TruDesktopViewConfig): void;
15
- onActiveStateChanged(): Subject<boolean>;
16
- activeStateChanged(active: boolean): void;
17
- onRemoveForwardViews(): Subject<null>;
18
- removeForwardViews(): void;
19
- onSetWindowTitle(): Subject<string>;
20
- setWindowTitle(value: string): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventHandler, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowEventHandler>;
23
- }
@@ -1,14 +0,0 @@
1
- import { TruEntityBase } from "../../../base-classes/tru-entity-base";
2
- import { TruWindowEventHandler } from "./tru-window-event-handler";
3
- import * as i0 from "@angular/core";
4
- export type TruCustomViewOptions = {
5
- requiresCleanDataContext?: boolean;
6
- suppressWindowSaveRevert?: boolean;
7
- };
8
- export declare class TruWindowManager {
9
- private windowEventHandler;
10
- constructor(windowEventHandler: TruWindowEventHandler);
11
- addCustomView: (componentName: string, entities: Array<TruEntityBase>, entityIndex: number, options?: boolean | TruCustomViewOptions) => void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowManager, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowManager>;
14
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruDesktopStatusbar implements OnInit {
4
- desktopCtrl: any;
5
- label: string;
6
- constructor();
7
- ngOnInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopStatusbar, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopStatusbar, "tru-desktop-statusbar", never, { "desktopCtrl": { "alias": "desktopCtrl"; "required": false; }; }, {}, never, never, true, never>;
10
- }