@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
@@ -0,0 +1,3404 @@
1
+ import * as rxjs from 'rxjs';
2
+ import { Observable, Subject, BehaviorSubject, Subscription } from 'rxjs';
3
+ import * as breeze_client from 'breeze-client';
4
+ import { Entity, EntityAspect, EntityType, MetadataStore, EntityManager, EntityQuery, Predicate, EntityChangedEventArgs, ValidationError, Validator } from 'breeze-client';
5
+ import * as i0 from '@angular/core';
6
+ import { ViewContainerRef, OnInit, TemplateRef, ElementRef, ChangeDetectorRef, OnChanges, AfterViewInit, ApplicationRef, SimpleChanges, Injector, OnDestroy, EventEmitter, Renderer2, QueryList, DoCheck, IterableDiffers, NgZone } from '@angular/core';
7
+ import * as i18 from '@angular/material/dialog';
8
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
9
+ import { ToastrService } from 'ngx-toastr';
10
+ import { HttpClient, HttpErrorResponse, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders } from '@angular/common/http';
11
+ import * as i25 from '@angular/material/menu';
12
+ import { MatMenuTrigger } from '@angular/material/menu';
13
+ import { ICellRendererParams, ColDef, GridApi, IHeaderParams, IFilterParams, IAfterGuiAttachedParams, IDoesFilterPassParams } from 'ag-grid-community';
14
+ import { IHeaderAngularComp, IFilterAngularComp } from 'ag-grid-angular';
15
+ import * as i4$1 from '@angular/forms';
16
+ import { FormControl, FormGroup } from '@angular/forms';
17
+ import * as i38 from '@angular/material/tabs';
18
+ import { MatTab, MatTabGroup, MatTabChangeEvent } from '@angular/material/tabs';
19
+ import * as i31 from '@angular/material/select';
20
+ import { MatSelect, MatSelectChange } from '@angular/material/select';
21
+ import * as i26 from '@angular/material/core';
22
+ import { MatPseudoCheckboxState } from '@angular/material/core';
23
+ import * as i5$1 from '@angular/router';
24
+ import { Router } from '@angular/router';
25
+ import * as i1$1 from '@angular/common';
26
+ import * as i1 from '@angular/cdk/a11y';
27
+ import * as i2 from '@angular/cdk/accordion';
28
+ import * as i3 from '@angular/cdk/clipboard';
29
+ import * as i4 from '@angular/cdk/stepper';
30
+ import * as i5 from '@angular/cdk/table';
31
+ import * as i6 from '@angular/cdk/tree';
32
+ import * as i7 from '@angular/cdk/drag-drop';
33
+ import * as i8 from '@angular/material/autocomplete';
34
+ import * as i9 from '@angular/material/badge';
35
+ import * as i10 from '@angular/material/bottom-sheet';
36
+ import * as i11 from '@angular/material/button';
37
+ import * as i12 from '@angular/material/button-toggle';
38
+ import * as i13 from '@angular/material/card';
39
+ import * as i14 from '@angular/material/checkbox';
40
+ import * as i15 from '@angular/material/chips';
41
+ import * as i16 from '@angular/material/stepper';
42
+ import * as i17 from '@angular/material/datepicker';
43
+ import * as i19 from '@angular/material/divider';
44
+ import * as i20 from '@angular/material/expansion';
45
+ import * as i21 from '@angular/material/grid-list';
46
+ import * as i22 from '@angular/material/icon';
47
+ import { MatIconRegistry } from '@angular/material/icon';
48
+ import * as i23 from '@angular/material/input';
49
+ import * as i24 from '@angular/material/list';
50
+ import * as i27 from '@angular/material/paginator';
51
+ import * as i28 from '@angular/material/progress-bar';
52
+ import * as i29 from '@angular/material/progress-spinner';
53
+ import * as i30 from '@angular/material/radio';
54
+ import * as i32 from '@angular/material/sidenav';
55
+ import * as i33 from '@angular/material/slider';
56
+ import * as i34 from '@angular/material/slide-toggle';
57
+ import * as i35 from '@angular/material/snack-bar';
58
+ import * as i36 from '@angular/material/sort';
59
+ import * as i37 from '@angular/material/table';
60
+ import * as i39 from '@angular/material/toolbar';
61
+ import * as i40 from '@angular/material/tooltip';
62
+ import * as i41 from '@angular/material/tree';
63
+ import * as i42 from '@angular/cdk/overlay';
64
+ import * as i43 from '@angular/cdk/portal';
65
+ import * as i44 from '@angular/cdk/scrolling';
66
+ import { DomSanitizer } from '@angular/platform-browser';
67
+
68
+ declare class TruComponentConfigBase {
69
+ constructor();
70
+ }
71
+
72
+ interface ITruAncestor {
73
+ table: string;
74
+ ancestorLabel?: string;
75
+ ancestorRef: string;
76
+ entity: any;
77
+ value?: string | number | null | undefined;
78
+ }
79
+
80
+ declare class TruPropertyConfigBase {
81
+ constructor();
82
+ isNullable: boolean;
83
+ canDisplay: boolean | null | undefined;
84
+ canEdit: boolean | null | undefined;
85
+ readOnly: boolean;
86
+ globalCache: boolean;
87
+ uniqueConstraint: boolean;
88
+ typeName: string | undefined;
89
+ formatterName: string | undefined;
90
+ formatter: ((value: any) => string | null | undefined) | undefined;
91
+ choices: any;
92
+ validation: string | undefined;
93
+ excludeFromCloning: boolean;
94
+ dependsOn: Array<ITruAncestor>;
95
+ }
96
+
97
+ declare class TruMergeData {
98
+ private _value;
99
+ private _modifiedBy;
100
+ private _hid;
101
+ get value(): string;
102
+ get modifiedBy(): string;
103
+ get hid(): string;
104
+ constructor(value: any, modifiedBy: string, hid: string);
105
+ }
106
+
107
+ declare class TruMergeDataSet {
108
+ private _data;
109
+ get: (propertyName: string) => TruMergeData | undefined;
110
+ set: (propertyName: string, data: TruMergeData) => void;
111
+ clear: (propertyName: string) => void;
112
+ getAll: () => Record<string, TruMergeData>;
113
+ clearAll: () => void;
114
+ isEmpty: () => boolean;
115
+ constructor();
116
+ }
117
+
118
+ declare class TruEntityBase implements Entity {
119
+ get Ref(): number;
120
+ constructor(...args: any[]);
121
+ entityAspect: EntityAspect;
122
+ entityType: EntityType;
123
+ Created: Date;
124
+ CreatedRef: number;
125
+ Updated: Date | undefined;
126
+ UpdatedRef: number | undefined;
127
+ rowver: any;
128
+ HID: string | null | undefined;
129
+ Merge_Data_Set: TruMergeDataSet;
130
+ Is_Invalid: boolean | undefined;
131
+ }
132
+
133
+ declare abstract class TruControlComponentConfigBase {
134
+ abstract label: string | undefined;
135
+ abstract propertyName: string | undefined;
136
+ abstract rootTable: string | undefined;
137
+ abstract relatedTableType: typeof TruEntityBase | undefined;
138
+ abstract propertyPath: string | undefined;
139
+ abstract get property(): TruPropertyConfigBase;
140
+ abstract value: (entity: any) => {};
141
+ constructor();
142
+ protected hid?(entity: TruEntityBase): string | null | undefined;
143
+ protected goTo?(entity: TruEntityBase): void;
144
+ protected choices?(): Observable<{
145
+ label: string;
146
+ value: {
147
+ $: any;
148
+ };
149
+ }[]>;
150
+ }
151
+
152
+ declare abstract class TruChoice {
153
+ abstract label: string;
154
+ abstract value: {
155
+ $: string | number | null | undefined;
156
+ };
157
+ abstract checked?: boolean | null | undefined;
158
+ abstract notAnOption?: boolean | undefined;
159
+ }
160
+
161
+ declare abstract class TruEditControlConfigBase<T> {
162
+ abstract label: string | undefined;
163
+ abstract propertyName: string | undefined;
164
+ abstract rootTable: string | undefined;
165
+ abstract relatedTableType: typeof TruEntityBase | undefined;
166
+ abstract propertyPath: string | undefined;
167
+ abstract rules(entity: any): {} | null;
168
+ abstract subProperties: Array<string>;
169
+ abstract subPropertyNames: Array<string>;
170
+ abstract isSubProperty: boolean;
171
+ abstract get property(): TruPropertyConfigBase;
172
+ abstract set entity(value: any);
173
+ abstract get $(): T;
174
+ abstract set $(value: T);
175
+ abstract onChange(): Subject<T>;
176
+ abstract change(value: T): void;
177
+ constructor();
178
+ protected hid?(entity: TruEntityBase): string | null | undefined;
179
+ protected choices?: (ref: number | null | undefined, allRecords: boolean, dependantEntity: typeof TruEntityBase | undefined) => Observable<TruChoice[]>;
180
+ protected severChoices?: () => Observable<TruChoice[]>;
181
+ protected choicesEntityType?: any;
182
+ }
183
+
184
+ declare abstract class TruEditControlBase {
185
+ abstract config: TruEditControlConfigBase<any>;
186
+ abstract entity: TruEntityBase;
187
+ abstract label: string | undefined;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruEditControlBase, never>;
189
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruEditControlBase, never, never, { "config": { "alias": "config"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, true, never>;
190
+ }
191
+
192
+ declare abstract class TruEditParentControlConfigBase {
193
+ abstract label: string | undefined;
194
+ abstract propertyName: string | undefined;
195
+ abstract rootTable: string | undefined;
196
+ abstract propertyPath: string | undefined;
197
+ abstract get property(): TruPropertyConfigBase;
198
+ constructor();
199
+ }
200
+
201
+ declare abstract class TruEditPkeyControlConfigBase {
202
+ abstract label: string | undefined;
203
+ abstract propertyName: string | undefined;
204
+ abstract rootTable: string | undefined;
205
+ abstract propertyPath: string | undefined;
206
+ abstract get property(): TruPropertyConfigBase;
207
+ abstract set entity(value: any);
208
+ abstract get $(): number;
209
+ constructor();
210
+ }
211
+
212
+ declare abstract class TruListControlConfigBase<T> {
213
+ abstract label: string | undefined;
214
+ abstract propertyName: string | undefined;
215
+ abstract rootTable: string | undefined;
216
+ abstract relatedTableType: typeof TruEntityBase | undefined;
217
+ abstract propertyPath: string | undefined;
218
+ abstract rules(entity: any): {} | null;
219
+ abstract subProperties: Array<string>;
220
+ abstract subPropertyNames: Array<string>;
221
+ abstract isSubProperty: boolean;
222
+ abstract get property(): TruPropertyConfigBase;
223
+ abstract set entity(value: any);
224
+ abstract get $(): T;
225
+ abstract set $(value: T);
226
+ abstract onChange(): Subject<T>;
227
+ abstract change(value: T): void;
228
+ constructor();
229
+ protected hid?(entity: TruEntityBase): string | null | undefined;
230
+ protected choices?: (ref: number | null | undefined, allRecords: boolean, dependantEntity: typeof TruEntityBase | undefined) => Observable<TruChoice[]>;
231
+ protected choicesEntityType?: any;
232
+ }
233
+
234
+ declare abstract class TruSearchControlBase {
235
+ operatorLookup: {
236
+ [key: string]: string;
237
+ };
238
+ operatorIconLookup: {
239
+ [key: string]: string;
240
+ };
241
+ operatorIconTitleLookup: {
242
+ [key: string]: string;
243
+ };
244
+ abstract config: any;
245
+ abstract label: string | undefined;
246
+ abstract operator: string | undefined;
247
+ abstract operatorIcon?: string;
248
+ abstract operatorIconTitle?: string;
249
+ abstract onOperatorIconClick(event: MouseEvent): void;
250
+ abstract updatePredicate(): void;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchControlBase, never>;
252
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruSearchControlBase, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
253
+ }
254
+
255
+ declare abstract class TruSearchControlParentBase {
256
+ operatorLookup: {
257
+ [key: string]: string;
258
+ };
259
+ operatorIconLookup: {
260
+ [key: string]: string;
261
+ };
262
+ operatorIconTitleLookup: {
263
+ [key: string]: string;
264
+ };
265
+ abstract config: any;
266
+ abstract updatePredicate(): void;
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchControlParentBase, never>;
268
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruSearchControlParentBase, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
269
+ }
270
+
271
+ declare class TruPredicate {
272
+ _breezePredicate: any;
273
+ constructor(field: any, operator: string | null, value: any, propertyQueryPath: Array<string> | null, overQuoted?: boolean);
274
+ handleOperator: (fieldOrPredicate: any, oper: (p: any) => {}, operator?: string, value?: any) => TruPredicate;
275
+ and: (fieldOrPredicate: any, operator?: string, value?: any) => TruPredicate;
276
+ or: (fieldOrPredicate: any, operator?: string, value?: any) => TruPredicate;
277
+ not: () => TruPredicate;
278
+ }
279
+
280
+ declare class TruQueryPredicateManager {
281
+ _predicate: TruPredicate | null;
282
+ _propertyQueryPath: Array<string> | null;
283
+ _predicateName: string;
284
+ _predicateMap: any;
285
+ constructor(propertyQueryPath: Array<string>, predicateName: string, predicateMap: any);
286
+ private setPredicate;
287
+ /**
288
+ * Returns the query predicate.
289
+ */
290
+ get: () => TruPredicate | null;
291
+ /**
292
+ * Clears the query predicate.
293
+ */
294
+ clear: () => void;
295
+ /**
296
+ * Returns a new query predicate.
297
+ *
298
+ * @param {string} field - Name of the storage field relative to the intent property.
299
+ * @param {string} operator - Name of the predicate operator.
300
+ * @param {*} value - Literal value.
301
+ */
302
+ create: (field: string, operator: string, value: any, overQuoted?: boolean) => any;
303
+ set: (fieldOrPredicate: string | TruPredicate, operator?: string, value?: any, overQuoted?: boolean) => void;
304
+ }
305
+
306
+ declare abstract class TruSearchControlConfigBase {
307
+ abstract label: string | undefined;
308
+ abstract propertyName: string | undefined;
309
+ abstract rootTable: string | undefined;
310
+ abstract propertyPath: string | undefined;
311
+ abstract get property(): TruPropertyConfigBase;
312
+ abstract queryPredicate: TruQueryPredicateManager;
313
+ abstract operator: string | undefined;
314
+ constructor();
315
+ choices?: any;
316
+ }
317
+
318
+ declare abstract class TruSearchControlRangeBase {
319
+ operatorLookup: {
320
+ [key: string]: string;
321
+ };
322
+ operatorIconLookup: {
323
+ [key: string]: string;
324
+ };
325
+ operatorIconTitleLookup: {
326
+ [key: string]: string;
327
+ };
328
+ abstract config: any;
329
+ abstract label: string | undefined;
330
+ abstract startOperator: string | undefined;
331
+ abstract startOperatorIcon: string;
332
+ abstract startOperatorIconTitle: string;
333
+ abstract endOperator: string | undefined;
334
+ abstract endOperatorIcon: string;
335
+ abstract endOperatorIconTitle: string;
336
+ abstract onStartOperatorIconClick(): void;
337
+ abstract onEndOperatorIconClick(): void;
338
+ abstract updatePredicate(): void;
339
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchControlRangeBase, never>;
340
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruSearchControlRangeBase, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
341
+ }
342
+
343
+ declare abstract class TruSearchConfigBase {
344
+ abstract name: string;
345
+ abstract noControls: boolean;
346
+ abstract controls: Array<[string, string]> | undefined;
347
+ abstract controlConfigs: Record<string, TruControlComponentConfigBase>;
348
+ abstract setupQuery: (query: any, predicateMap: any) => {};
349
+ constructor();
350
+ }
351
+
352
+ declare class TruTableConfigBase {
353
+ constructor();
354
+ name: string | undefined;
355
+ label: string | undefined;
356
+ pluralLabel: string | undefined;
357
+ pluralName: string | undefined;
358
+ canDisplay: boolean;
359
+ canEdit: boolean;
360
+ canAdd: boolean;
361
+ canDelete: boolean;
362
+ isAssociatedWithMenuItem: boolean;
363
+ openOnStart: boolean;
364
+ }
365
+
366
+ declare class TruDataChange {
367
+ dataChanges: [];
368
+ reload: boolean;
369
+ }
370
+
371
+ declare class TruContextFilterChoice {
372
+ table: string;
373
+ label: string;
374
+ ref: number;
375
+ constructor(table: string, label: string, ref: number);
376
+ }
377
+
378
+ declare class TruContextFilter {
379
+ tooltip: string | undefined;
380
+ choices: Array<TruContextFilterChoice>;
381
+ selectedChoice: TruContextFilterChoice;
382
+ constructor();
383
+ identify: (index: number, choice: TruContextFilterChoice) => number;
384
+ comparer: (o1: TruContextFilterChoice, o2: TruContextFilterChoice) => boolean;
385
+ onChange: (choice: TruContextFilterChoice) => void;
386
+ }
387
+
388
+ interface ActionEventCompleted {
389
+ successful: boolean;
390
+ entities?: Array<Entity>;
391
+ }
392
+ declare class TruAppEnvironment {
393
+ private _appName;
394
+ private _appDescription;
395
+ private _appUri;
396
+ private _enablePasswordStrength;
397
+ private _backgroundImageUri;
398
+ private _environmentWarning;
399
+ private _loginFormTitle;
400
+ private _authType;
401
+ private _authenticationTimeoutMinutes;
402
+ private _maxRecordCount;
403
+ private _isSaving;
404
+ private _saveComplete;
405
+ private _revertComplete;
406
+ private _deleteComplete;
407
+ private _globalDataContext;
408
+ readonly msgModifierKeyLabel: string;
409
+ readonly msgConfirmExitWithChangesPending: string;
410
+ readonly msgDeleteSuccessful: string;
411
+ readonly msgSaveSuccessful: string;
412
+ readonly msgSettingsUpdatedSuccessful: string;
413
+ readonly msgNoChangesToSave: string;
414
+ readonly msgSaveInProgress: string;
415
+ readonly msgInvalidData: string;
416
+ readonly msgDirtyPreventsReadOnly: string;
417
+ readonly msgDirtyPreventsNavigate: string;
418
+ readonly msgDirtyPreventsClose: string;
419
+ readonly msgDirtyPreventsDeleteExistingRecord: string;
420
+ readonly msgNoDeleteAccess: string;
421
+ readonly msgCannotDeleteNewAndExistingRecords: string;
422
+ readonly msgDeleteReferencingRecordsFirst: string;
423
+ readonly msgNoRecordsSelected: string;
424
+ onSavingChanged$: Observable<boolean>;
425
+ onSaveComplete$: Observable<ActionEventCompleted | null>;
426
+ onRevertComplete$: Observable<ActionEventCompleted | null>;
427
+ onDeleteComplete$: Observable<ActionEventCompleted | null>;
428
+ constructor();
429
+ get appName(): string;
430
+ set appName(name: string);
431
+ get appDescription(): string;
432
+ set appDescription(description: string);
433
+ get enablePasswordStrength(): boolean;
434
+ set enablePasswordStrength(enable: boolean);
435
+ get backgroundImageUri(): string;
436
+ set backgroundImageUri(uri: string);
437
+ get environmentWarning(): string;
438
+ set environmentWarning(description: string);
439
+ get loginFormTitle(): string;
440
+ set loginFormTitle(description: string);
441
+ get appUri(): string;
442
+ set appUri(uri: string);
443
+ get authType(): 'session' | 'jwt' | 'windows';
444
+ set authType(type: 'session' | 'jwt' | 'windows');
445
+ get authenticationTimeoutMinutes(): number;
446
+ set authenticationTimeoutMinutes(minutes: number);
447
+ get isSaving(): boolean;
448
+ set isSaving(isSaving: boolean);
449
+ get maxRecordCount(): number;
450
+ set maxRecordCount(maxRecordCount: number);
451
+ get globalDataContext(): TruDataContext | null;
452
+ set globalDataContext(context: TruDataContext | null);
453
+ get isMac(): boolean;
454
+ saveComplete: (event: ActionEventCompleted) => void;
455
+ revertComplete: (event: ActionEventCompleted) => void;
456
+ deleteComplete: (event: ActionEventCompleted) => void;
457
+ formatDeleteConfirmationMessage: (tableName: string, tablePluralLabel: string, count: number | null) => string;
458
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAppEnvironment, never>;
459
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
460
+ }
461
+
462
+ declare class TruBreezeMetadataProvider {
463
+ private _metadata;
464
+ constructor();
465
+ get metadata(): object;
466
+ set metadata(json: object);
467
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeMetadataProvider, never>;
468
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
469
+ }
470
+
471
+ declare class TruBreezeContextFactory {
472
+ private breezeMetadataProvider;
473
+ private environment;
474
+ /**
475
+ * Maximum number of records to return from a query.
476
+ * @return {number}
477
+ */
478
+ private servicePath;
479
+ private metadataStore;
480
+ private breezeDataService;
481
+ constructor(breezeMetadataProvider: TruBreezeMetadataProvider, environment: TruAppEnvironment);
482
+ setUpMetadata: (metadata: object) => MetadataStore;
483
+ /**
484
+ * Returns a new data context object.
485
+ * @return {object} - Breeze Manager
486
+ */
487
+ createContext: (tableName?: string | null) => TruBreezeContext;
488
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeContextFactory, never>;
489
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
490
+ }
491
+ declare class TruBreezeContext {
492
+ private manager;
493
+ private _entityManager;
494
+ constructor(manager: EntityManager);
495
+ get createQuery(): (x: any) => EntityQuery;
496
+ get createPredicate(): (...args: any[]) => Predicate;
497
+ get entityManager(): EntityManager;
498
+ }
499
+
500
+ declare class TruUiNotification {
501
+ private toastr;
502
+ private dialog;
503
+ private static readonly STICKY_TOAST_CONFIG;
504
+ private _toastr;
505
+ private _dialog;
506
+ constructor(toastr: ToastrService, dialog: MatDialog);
507
+ showMessage: (popup: any, log: (message: string) => void, prefix: string, message: string, detail?: Array<string> | null) => void;
508
+ /**
509
+ * Shows as toast and logs to server an error message and optional detail information.
510
+ * @param {string} message - Displayed as toast.
511
+ * @param {string} [detail] - Logged to console.
512
+ */
513
+ error: (message: string, detail?: Array<string> | null) => void;
514
+ /**
515
+ * Same as error() but for info message.
516
+ */
517
+ info: (message: string, detail?: Array<string> | null) => void;
518
+ /**
519
+ * Same as error() but for success message.
520
+ */
521
+ success: (message: string, detail?: Array<string> | null) => void;
522
+ /**
523
+ * Same as error() but for warning message.
524
+ */
525
+ warning: (message: string, detail?: Array<string> | null) => void;
526
+ warningSticky: (message: string, detail?: Array<string> | null) => number | null;
527
+ infoSticky: (message: string, detail?: Array<string> | null) => number | null;
528
+ clearToast: (toastId: number | null) => void;
529
+ log: (message: string) => void;
530
+ showErrorDialog: (title: string, message: string) => void;
531
+ showExportDialog: () => Promise<boolean>;
532
+ confirm: (title: string, message: string, displayCancelButton?: boolean, displayConfirmButton?: boolean, cancelButtonName?: string, confirmButtonName?: string) => Promise<boolean>;
533
+ changePassword: (userRef: number, username: string, admin?: boolean, entity?: any) => Promise<boolean>;
534
+ about: () => Promise<boolean>;
535
+ private showStickyMessage;
536
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruUiNotification, never>;
537
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
538
+ }
539
+
540
+ declare abstract class TruNameValue {
541
+ abstract name: string;
542
+ abstract value: {
543
+ $: string | number | null | undefined;
544
+ };
545
+ abstract entity?: any;
546
+ abstract checked?: boolean | null | undefined;
547
+ abstract notAnOption?: boolean | undefined;
548
+ }
549
+
550
+ declare class TruUser implements ITruUser {
551
+ private _ref;
552
+ private _username;
553
+ private _firstName;
554
+ private _lastName;
555
+ private _email;
556
+ private _roles;
557
+ constructor();
558
+ get activeUserRef(): number;
559
+ get username(): string | null;
560
+ get firstName(): string | null;
561
+ get lastName(): string | null;
562
+ get email(): string | null;
563
+ get roles(): string[] | null;
564
+ hasRoles: (roles: string[]) => boolean;
565
+ create: (user: ITruUser) => void;
566
+ destroy: () => void;
567
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruUser, never>;
568
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
569
+ }
570
+ interface ITruUser {
571
+ activeUserRef: number;
572
+ username: string | null;
573
+ firstName: string | null;
574
+ lastName: string | null;
575
+ email: string | null;
576
+ roles: string[] | null;
577
+ }
578
+
579
+ declare class TruUtil {
580
+ private keyboardMap;
581
+ constructor();
582
+ htmlToPlainText: (html: string) => string;
583
+ numberToString: (value: number | undefined) => string;
584
+ nullableNumberToString: (value: number | null | undefined) => string;
585
+ tryParseInt: (str: any, defaultValue: any) => any;
586
+ tryParseBool(value: any, defaultValue: any): any;
587
+ findClosestAncestorByClass: (element: any, cssSelector: string) => any;
588
+ isNumeric: (n: any) => boolean;
589
+ isNumber: (value: any) => boolean;
590
+ removeNonNumericCharactersFromStr: (value: string) => string;
591
+ isDate: (date: Date) => boolean;
592
+ isValidDate: (value: string) => boolean;
593
+ adjustForTimezone: (date: Date) => Date;
594
+ rulesEval: (styles: object | null) => object;
595
+ /**
596
+ * Serializes an object as URL parameters. The object should be a base type or have
597
+ * properties that are each base types. Does not support a property with structure.
598
+ * @param {Object} data
599
+ * @returns {String}
600
+ */
601
+ formatAsUrlParameters: (data: any) => string;
602
+ showEntityStatus: (entity: TruEntityBase, entityType: string | null, formatedRecordId: string | null | undefined) => string;
603
+ getKeySequence: (event: any) => string;
604
+ targetIsControl: (target: HTMLElement) => boolean;
605
+ isLowerCase: (str: string) => boolean;
606
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruUtil, never>;
607
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
608
+ }
609
+
610
+ declare class TruTextManager {
611
+ private util;
612
+ readonly msgModifierKeyLabel: string;
613
+ readonly msgConfirmExitWithChangesPending: string;
614
+ readonly msgDeleteSuccessful: string;
615
+ readonly msgSaveSuccessful: string;
616
+ readonly msgNoChangesToSave: string;
617
+ readonly msgSaveInProgress: string;
618
+ readonly msgInvalidData: string;
619
+ readonly msgDirtyPreventsReadOnly: string;
620
+ readonly msgDirtyPreventsNavigate: string;
621
+ readonly msgDirtyPreventsClose: string;
622
+ readonly msgDirtyPreventsDeleteExistingRecord: string;
623
+ readonly msgNoDeleteAccess: string;
624
+ readonly msgCannotDeleteNewAndExistingRecords: string;
625
+ readonly msgDeleteReferencingRecordsFirst: string;
626
+ constructor(util: TruUtil);
627
+ /**
628
+ * If text.length exceeds length, then returns a string that is the first length chars
629
+ * of text plus suffix. Otherwise, returns text.
630
+ * @param {string} text
631
+ * @param {number} length
632
+ * @param {string} suffix
633
+ * @return {string}
634
+ */
635
+ private truncate;
636
+ isMac: () => boolean;
637
+ /**
638
+ * Formats the text to use for the window title.
639
+ * @param {string} text
640
+ * @return {string} - Window title.
641
+ */
642
+ formatWindowTitle: (text: string) => string;
643
+ /**
644
+ * Returns a message indicating that an entity or entities were deleted in another view.
645
+ * @param {string} entityTypeLabel - Description of the entity type.
646
+ * @param [{string}] entityTypePluralLabel - Description of more than one of the entity type.
647
+ * @param [{number}] count - Number of entities.
648
+ */
649
+ fmtEntityDeletedInOtherView: (entityTypeLabel: string, entityTypePluralLabel: string, count: number) => string;
650
+ /**
651
+ * Returns a message used to confirm deletion of an entity or entities.
652
+ * @param {string} entityTypeLabel - Description of the entity type.
653
+ * @param [{string}] entityTypePluralLabel - Description of more than one of the entity type.
654
+ * @param [{number}] count - Number of entities.
655
+ */
656
+ fmtDeleteConfirmation: (entityTypeLabel: string, entityTypePluralLabel?: string | null, count?: number | null) => string;
657
+ /**
658
+ * Returns a message formatted from an error object.
659
+ * @param {error|string} error
660
+ * @returns {string}
661
+ */
662
+ fmtErrorToShow: (error: any) => string;
663
+ /**
664
+ * Returns a message formatted from an exception object.
665
+ * @param {object} exception
666
+ * @returns {string}
667
+ */
668
+ fmtExceptionToShow: (exception: any) => string;
669
+ /**
670
+ * Returns a message for a data error type.
671
+ * @param {string} typeName
672
+ * @returns {string}
673
+ */
674
+ fmtDataError: (typeName: string) => string;
675
+ /**
676
+ * Returns a message for an import error.
677
+ * @param {string} typeName
678
+ * @returns {string}
679
+ */
680
+ fmtImportError: (error: any) => string;
681
+ /**
682
+ * Serializes an object as URL parameters. The object should be a base type or have
683
+ * properties that are each base types. Does not support a property with structure.
684
+ * @param {Object} data
685
+ * @returns {String}
686
+ */
687
+ formatAsUrlParameters: (data: any) => any;
688
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruTextManager, never>;
689
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
690
+ }
691
+
692
+ declare class TruEntityAccessor {
693
+ private httpClient;
694
+ private appEnvironment;
695
+ private uiNotification;
696
+ private textManager;
697
+ private user;
698
+ private _breezeContext;
699
+ private _entityManager;
700
+ private _maxRecordCount;
701
+ private _baseUrl;
702
+ constructor(httpClient: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, textManager: TruTextManager, user: TruUser);
703
+ set context(dataContext: TruDataContext);
704
+ private getQueryServiceName;
705
+ private getPrimaryKeyName;
706
+ private getEntityTypeName;
707
+ private warnIfMaxRecords;
708
+ private formatQueryChoices;
709
+ private formatNameValues;
710
+ add: (entity: typeof TruEntityBase, contextFilters?: any) => Entity;
711
+ search: (entity: typeof TruEntityBase, setupQuery: any | null | undefined, expands: [] | null, global: boolean) => Observable<Entity[]>;
712
+ searchCacheOnly: (entity: typeof TruEntityBase, setupQuery?: any | null, expands?: [] | null) => Observable<Entity[]>;
713
+ searchCacheOnlySynchronously: (entity: typeof TruEntityBase, setupQuery?: any | null, expands?: [] | null) => Array<any>;
714
+ searchByRefCacheOnlySynchronously: (entity: typeof TruEntityBase, ref?: number | null | undefined) => Array<any>;
715
+ searchQueryChoices: (entity: typeof TruEntityBase, setupQuery?: any | null, goToServer?: boolean, ref?: number | null | undefined, allRecords?: boolean, dependantEntty?: typeof TruEntityBase | undefined, hid?: string | null | undefined) => Observable<TruChoice[]>;
716
+ searchNameValuesCacheOnly: (entity: typeof TruEntityBase, setupQuery?: any | null, ref?: number | null | undefined) => Observable<TruNameValue[]>;
717
+ searchByRef: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<TruChoice[]>;
718
+ searchByRefPreferedCache: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<any>;
719
+ searchByRefCacheOnly: (entity: typeof TruEntityBase, ref: number | null | undefined, includeDeleted?: boolean) => any;
720
+ searchByRefServerOnly: (entity: typeof TruEntityBase, ref: number | null | undefined, expands?: [] | null) => Observable<any>;
721
+ private propertyPathValues;
722
+ private propertyPathIsLoaded;
723
+ private predicateIsLocallyEvaluable;
724
+ private queryIsLocallyEvaluable;
725
+ searchByRefArrayCacheOnly: (entity: typeof TruEntityBase, setupQuery: any | null | undefined, refs: Array<number>, includeDeleted?: boolean) => any[] | null | undefined;
726
+ searchByRefWithQuery: (entity: typeof TruEntityBase, setupQuery: any, ref: number) => Observable<Entity[]>;
727
+ searchUserByRefCacheOnly: (ref: number | null | undefined, includeDeleted?: boolean) => any;
728
+ customSearch: (entity: typeof TruEntityBase, query: any) => Observable<any>;
729
+ clone: (data: object) => Observable<Object>;
730
+ export: (entity: typeof TruEntityBase, gridSpec: string, setupQuery: any | null, entityRefs: string | null, options: any) => void;
731
+ downloadFromUrl: (url: string, data: any) => void;
732
+ downloadFromService: (serviceName: string, data: any) => void;
733
+ uploadFromUrl: (url: string, data: FormData) => void;
734
+ /**
735
+ * Request an action.
736
+ * @param {string} actionName - Name of the action.
737
+ * @param {string} entityRefs - Comma separated list of entity pkey values.
738
+ * @returns {promise} on success, passes the results to success handler;
739
+ * on failure, passes exception to fail handler.
740
+ */
741
+ requestAction: (actionName: string, entityRefs: string) => Observable<any>;
742
+ private saveDownloadedFile;
743
+ private extractFilenameFromContentDisposition;
744
+ /**
745
+ * Imports the data of a set of files.
746
+ *
747
+ * IMPLEMENTATION
748
+ * The input element stores the list of files the user selects. If the user were to
749
+ * use the same input element to select the same file(s) the next time, then the input
750
+ * element would not fire the change event -- resulting in no import. Therefore, need
751
+ * to clear the file selection. The implementation of clearing is slightly different
752
+ * for IE vs. Chrome. In Chrome, clearing the selection (by setting the element value
753
+ * to null) results in clearing the FileList object that was passed to the change handler
754
+ * (this function). Therefore, need to clear the selection _after_ using the passed
755
+ * FileList object. For IE, clearing the selection does not clear the FileList passed
756
+ * to the handler, but it does cause the change handler to fire. To ignore this event,
757
+ * return if the FileList is empty -- which it is since just cleared it.
758
+ */
759
+ import: (files: Array<File>) => void;
760
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruEntityAccessor, never>;
761
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
762
+ }
763
+
764
+ declare class TruGlobalDataContext {
765
+ private _dataContext;
766
+ constructor();
767
+ get dataContext(): TruDataContext | null;
768
+ set dataContext(dataContext: TruDataContext | null);
769
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruGlobalDataContext, never>;
770
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
771
+ }
772
+
773
+ declare class TruNavigationPropertyConfig {
774
+ name: string;
775
+ doesCascadeDelete: boolean;
776
+ constructor(name: string, doesCascadeDelete: boolean);
777
+ }
778
+
779
+ declare class TruModelNavigationPropertiesLookup {
780
+ private _lookup;
781
+ constructor();
782
+ get lookup(): Map<string, Array<TruNavigationPropertyConfig>>;
783
+ set lookup(value: Map<string, Array<TruNavigationPropertyConfig>>);
784
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruModelNavigationPropertiesLookup, never>;
785
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
786
+ }
787
+
788
+ declare class TruDataContext {
789
+ private breezeContextFactory;
790
+ private modelNavigationPropertiesLookup;
791
+ private globalDataContext;
792
+ private appEnvironment;
793
+ private entityAccessor;
794
+ private uiNotification;
795
+ private _propertyChanged$;
796
+ private _entityAdded$;
797
+ private _dataChanged$;
798
+ private _breezeContext;
799
+ private _pendingDeleteEntities;
800
+ private _pendingCascadeDeleteEntities;
801
+ private updateDependants$;
802
+ constructor(breezeContextFactory: TruBreezeContextFactory, modelNavigationPropertiesLookup: TruModelNavigationPropertiesLookup, globalDataContext: TruGlobalDataContext, appEnvironment: TruAppEnvironment, entityAccessor: TruEntityAccessor, uiNotification: TruUiNotification);
803
+ onPropertyChanged(): Subject<any>;
804
+ propertyChanged(changeArgs: EntityChangedEventArgs | null): void;
805
+ onEntityAdded(): Subject<any>;
806
+ entityAdded(changeArgs: EntityChangedEventArgs | null): void;
807
+ onDataChanged(): Subject<TruDataChange>;
808
+ dataChanged(change: TruDataChange): void;
809
+ validationChangeDetection: Observable<unknown>;
810
+ parseErrorMessages: (validationErrors: Array<ValidationError>) => string;
811
+ getValidationErrorsForProperty: (entity: Entity, propertyName: string) => any;
812
+ getValidationErrors: (entities?: Array<Entity> | null) => any;
813
+ private modelPropertyChangeHandler;
814
+ private modelPropertyOnSaveHandler;
815
+ private modelPropertyOnAddHandler;
816
+ private modelPropertyOnRejectHandler;
817
+ /**
818
+ * Handles breeze entity changed event.
819
+ */
820
+ private entityChangedHandler;
821
+ private formatValidationErrors;
822
+ private findCachedCascadeDeleteDescendants;
823
+ private markCachedDescendantsForDelete;
824
+ private markForDelete;
825
+ get breezeContext(): TruBreezeContext;
826
+ get entityManager(): breeze_client.EntityManager;
827
+ get onHasChanged(): breeze_client.BreezeEvent<breeze_client.HasChangesChangedEventArgs>;
828
+ hasChanged: () => Entity[];
829
+ hasChanges: (entityTypes?: Array<EntityType>) => Entity[];
830
+ entityAccess: () => TruEntityAccessor;
831
+ exportCahce: () => void;
832
+ onUpdateDependants(): Subject<ITruAncestor>;
833
+ updateDependants: (table: string, ancestorRef: string, entity: any) => void;
834
+ save: (entities?: Array<Entity> | null, deleteOperation?: boolean) => Promise<void>;
835
+ saveWithoutNotification: () => Promise<void>;
836
+ saveSettings: () => Promise<void>;
837
+ revert: () => void;
838
+ revertWithoutPrompt: () => void;
839
+ delete: (entities: Array<Entity>, confirmMsg: string, onSuccess?: Function | undefined) => void;
840
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataContext, never>;
841
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
842
+ }
843
+
844
+ declare class TruDesktopService {
845
+ /**
846
+ * @tru.doc function
847
+ * @name DesktopService.createDesktop
848
+ * @module tru.desktop
849
+ *
850
+ * @description
851
+ * Creates a new desktop instance.
852
+ *
853
+ * @returns {object} Desktop
854
+ */
855
+ createDesktop: () => Desktop;
856
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopService, never>;
857
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
858
+ }
859
+ /**
860
+ * @tru.desktop.doc class
861
+ * @name DesktopService.Desktop
862
+ * @module tru.desktop
863
+ *
864
+ * @description Desktop defines a logical desktop. Any non-dom properties and elements needed by the desktop should
865
+ * be defined in this class
866
+ *
867
+ */
868
+ declare class Desktop {
869
+ options: DesktopOptions;
870
+ windowConfig: WindowConfig;
871
+ viewConfig: TruDesktopViewConfig;
872
+ }
873
+ /**
874
+ * @tru.desktop.doc class
875
+ * @name DesktopService.DesktopOptions
876
+ * @module tru.desktop
877
+ *
878
+ * @description Default DesktopOptions class. DesktopOptions are defined by the application developer and overlaid
879
+ * over this object.
880
+ *
881
+ */
882
+ declare class DesktopOptions {
883
+ allowDirtyClose: boolean;
884
+ allowInvalidClose: boolean;
885
+ cancelEditingOnNavigation: boolean;
886
+ canCloseFn: undefined;
887
+ canNavigateFn: undefined;
888
+ displayViewportDimensions: boolean;
889
+ enableAnimation: boolean;
890
+ enableWindowCascading: boolean;
891
+ logoUrl: undefined;
892
+ menubarHeight: number;
893
+ menubarConfig: undefined;
894
+ showLaunchMenu: boolean;
895
+ }
896
+ /**
897
+ * @tru.desktop.doc class
898
+ * @name DesktopService.WindowConfig
899
+ * @module tru.desktop
900
+ *
901
+ * @description
902
+ * Default configuration object for a window. windowConfig properties can be defined by the application developer and overlaid
903
+ * over this object.
904
+ *
905
+ */
906
+ declare class WindowConfig {
907
+ tableName: string;
908
+ tablePluralName: string;
909
+ tablePluralLabel: string;
910
+ active: boolean;
911
+ bottom: string;
912
+ globals: undefined;
913
+ height: string;
914
+ isDirty: boolean;
915
+ isInvalid: boolean;
916
+ left: number;
917
+ maximized: undefined;
918
+ minHeight: string;
919
+ minimized: boolean;
920
+ minWidth: string;
921
+ outOfBounds: boolean;
922
+ savedPosition: {};
923
+ right: string;
924
+ scope: undefined;
925
+ title: string;
926
+ top: number;
927
+ width: string;
928
+ views: TruDesktopViewConfig[];
929
+ zIndex: number;
930
+ isReadOnly: boolean;
931
+ unsubscribes: Array<any>;
932
+ wasReadOnly: boolean;
933
+ contextFilters: Array<TruContextFilter>;
934
+ parentDataContext: TruDataContext | null;
935
+ parentView: any | null;
936
+ removeForwardViews: () => void;
937
+ goToPreviousView: () => void;
938
+ closed: () => void;
939
+ destroy: () => void;
940
+ }
941
+
942
+ declare class TruDesktopViewConfig {
943
+ active$: BehaviorSubject<boolean>;
944
+ onActive(): BehaviorSubject<boolean>;
945
+ get active(): boolean;
946
+ set active(value: boolean);
947
+ entities: Array<any> | undefined;
948
+ entityIndex: number;
949
+ entityRefs: string;
950
+ parentTableRefName: string;
951
+ parentEntity: any;
952
+ isDirty: boolean;
953
+ isEditing: boolean;
954
+ isInvalid: boolean;
955
+ requiresCleanDataContext: boolean;
956
+ suppressWindowSaveRevert: boolean;
957
+ componentName: string;
958
+ openAsDetaiView: boolean;
959
+ actionRefs: string;
960
+ window: WindowConfig;
961
+ selectedRefs: () => string;
962
+ url: string;
963
+ title: string;
964
+ constructor();
965
+ }
966
+
967
+ declare class TruContextFilters {
968
+ filters: Array<TruContextFilter>;
969
+ valueFor: (tableName: string) => number | undefined;
970
+ value: () => TruContextFilterChoice | undefined;
971
+ label: () => string;
972
+ constructor();
973
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruContextFilters, never>;
974
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
975
+ }
976
+
977
+ declare abstract class TruDesktopTitle {
978
+ abstract text: string;
979
+ abstract release: () => void;
980
+ }
981
+
982
+ declare class TruWindowCloseEventArgs {
983
+ entities: Array<TruEntityBase>;
984
+ entityIndex: number;
985
+ refresh: boolean;
986
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowCloseEventArgs, never>;
987
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
988
+ }
989
+
990
+ declare class TruWindowEventArgs {
991
+ title: string;
992
+ tableName: string;
993
+ tablePluralName: string;
994
+ tablePluralLabel: string;
995
+ parentDataContext: TruDataContext | null;
996
+ parentView: any | null;
997
+ isModal: boolean;
998
+ showNavigation: boolean;
999
+ contentBottom: string;
1000
+ statusbarDirective: string;
1001
+ height: string;
1002
+ width: string;
1003
+ views: Array<object>;
1004
+ contextFilters: Array<TruContextFilter>;
1005
+ onClose$: Subject<TruWindowCloseEventArgs>;
1006
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventArgs, never>;
1007
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1008
+ }
1009
+
1010
+ declare class TruDesktopEventHandler {
1011
+ private open$;
1012
+ onOpen(): Subject<TruWindowEventArgs>;
1013
+ open(windowEvent: TruWindowEventArgs): TruWindowEventArgs;
1014
+ openCustom(windowEvent: TruWindowEventArgs): void;
1015
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopEventHandler, never>;
1016
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1017
+ }
1018
+
1019
+ declare class TruDesktopManager {
1020
+ private contextFilters;
1021
+ private desktopEventHandler;
1022
+ constructor(contextFilters: TruContextFilters, desktopEventHandler: TruDesktopEventHandler);
1023
+ getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, isModal: boolean, componentName: string, entities?: Array<TruEntityBase>, entityIndex?: number, openAsDetaiView?: boolean, showNavigation?: boolean, parentDataContext?: TruDataContext | null) => TruWindowEventArgs;
1024
+ /**
1025
+ * Opens a window for a directive.
1026
+ * @param {string} directiveName - name of the view directive.
1027
+ * @param {object} data - values to pass to the view.
1028
+ * @param {optional bool} showIfExists - if true and a view already exists for the
1029
+ * directive, then shows its window instead of creating a new one.
1030
+ */
1031
+ addWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
1032
+ 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;
1033
+ addWindowForQueryResult: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
1034
+ addCustomWindow: (componentName: string, data?: object | null) => void;
1035
+ windowTitlesByBaseText: any;
1036
+ /**
1037
+ * Returns a unique string for the base name of a window. At first, returns the input.
1038
+ * For second call with same base name, returns the name plus ' - 2' and so on. When
1039
+ * all of the titles for the base name are released, then the next title will have no
1040
+ * suffix.
1041
+ * @param {string} text - base name of a window.
1042
+ * @returns {object} - text: the unique text and release(): releases the name for
1043
+ * future windows.
1044
+ */
1045
+ getUniqueTitle: (text: string) => TruDesktopTitle;
1046
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopManager, never>;
1047
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1048
+ }
1049
+
1050
+ declare class TruDesktopViewEventNotifier {
1051
+ private active$;
1052
+ onActiveStateChanged: () => BehaviorSubject<boolean>;
1053
+ get isActive(): boolean;
1054
+ set isActive(value: boolean);
1055
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopViewEventNotifier, never>;
1056
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1057
+ }
1058
+
1059
+ declare class TruWindowEventHandler {
1060
+ private close$;
1061
+ private addView$;
1062
+ private active$;
1063
+ private setWindowTitle$;
1064
+ private removeForwadViews$;
1065
+ onClose(): Subject<TruWindowCloseEventArgs | null>;
1066
+ close(windowCloseEventArgs?: TruWindowCloseEventArgs | null): void;
1067
+ onAddView(): Subject<TruDesktopViewConfig>;
1068
+ addView(windowAddViewEvent: TruDesktopViewConfig): void;
1069
+ onActiveStateChanged(): Subject<boolean>;
1070
+ activeStateChanged(active: boolean): void;
1071
+ onRemoveForwardViews(): Subject<null>;
1072
+ removeForwardViews(): void;
1073
+ onSetWindowTitle(): Subject<string>;
1074
+ setWindowTitle(value: string): void;
1075
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowEventHandler, never>;
1076
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1077
+ }
1078
+
1079
+ declare class TruComponentLookup {
1080
+ private truComponentLookupRegistry;
1081
+ constructor();
1082
+ set: (key: string, type: any) => void;
1083
+ get: (key: string) => any;
1084
+ getBySuffix: (suffix: string) => Array<any>;
1085
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruComponentLookup, never>;
1086
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1087
+ }
1088
+
1089
+ declare class TruDetailViewBase {
1090
+ protected dataContext: TruDataContext;
1091
+ protected componentLookup: TruComponentLookup;
1092
+ protected appEnvironment: TruAppEnvironment;
1093
+ protected textManager: TruTextManager;
1094
+ protected desktopManager: TruDesktopManager;
1095
+ protected windowEventHandler: TruWindowEventHandler;
1096
+ protected desktopViewEventNotifier: TruDesktopViewEventNotifier;
1097
+ protected util: TruUtil;
1098
+ customToolbarContainer: ViewContainerRef;
1099
+ view: TruDesktopViewConfig;
1100
+ private childUpdateFn;
1101
+ protected tableName: string;
1102
+ protected tablePluralName: string;
1103
+ protected tablePluralLabel: string;
1104
+ protected parentTableName: string;
1105
+ protected parentTablePluralName: string;
1106
+ protected parentTablePluralLabel: string;
1107
+ protected customToolbarComponents: any;
1108
+ entities: Array<any>;
1109
+ entity: any;
1110
+ parentEntity: any;
1111
+ entityType: any;
1112
+ recordLocation: string | null;
1113
+ disableNavigationToPreviousEntity: boolean;
1114
+ disableNavigationToNextEntity: boolean;
1115
+ navigationIndex: number;
1116
+ recordsBeforeRevert: number;
1117
+ active: boolean;
1118
+ subs: Array<Subscription>;
1119
+ constructor(dataContext: TruDataContext, componentLookup: TruComponentLookup, appEnvironment: TruAppEnvironment, textManager: TruTextManager, desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, desktopViewEventNotifier: TruDesktopViewEventNotifier, util: TruUtil);
1120
+ private onDocumentKeydown;
1121
+ private calculateNextIndex;
1122
+ protected renderCustomToolbarComponents: () => void;
1123
+ onAddEntity: (newEntity: any, dataNotification?: boolean) => void;
1124
+ onCloneEntity: () => void;
1125
+ onDeleteEntity: () => void;
1126
+ onFirstEntity: () => void;
1127
+ onPreviousEntity: () => void;
1128
+ onNextEntity: () => void;
1129
+ onLastEntity: () => void;
1130
+ navigateTo: (index: number) => void;
1131
+ registerChildUpdateFn: (func: (dataChange: TruDataChange | null) => void) => void;
1132
+ subscribe(): void;
1133
+ setNavigationIndex(index: number): void;
1134
+ setEntityDisplayValues(tableName: string, newEntity?: any): void;
1135
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDetailViewBase, never>;
1136
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDetailViewBase, "tru-detail-view-base", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
1137
+ }
1138
+
1139
+ declare class TruSearchViewBase {
1140
+ protected desktopManager: TruDesktopManager;
1141
+ protected windowEventHandler: TruWindowEventHandler;
1142
+ protected view: TruDesktopViewConfig;
1143
+ protected tableName: string;
1144
+ protected tablePluralName: string;
1145
+ protected tablePluralLabel: string;
1146
+ protected pkeyName: string;
1147
+ protected windowTitle: TruDesktopTitle | undefined;
1148
+ protected windowConfig: any;
1149
+ protected unsubscribes: never[];
1150
+ protected expands: never[];
1151
+ protected contextFilters: any;
1152
+ protected isSearching: boolean;
1153
+ protected entities: never[];
1154
+ protected hasDetailView: boolean;
1155
+ searchPanelConfig: {
1156
+ side: string;
1157
+ active: boolean;
1158
+ open: boolean;
1159
+ modKeyLabel: string;
1160
+ size: number;
1161
+ pinned: boolean;
1162
+ };
1163
+ constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler);
1164
+ setWindowTitle(title?: string | undefined): void;
1165
+ releaseWindowTitle(): void;
1166
+ onPkeyCellDoubleClicked: (gridConfig: any) => void;
1167
+ onAddCustomView: (componentName: string, entities: Array<TruEntityBase>) => void;
1168
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewBase, never>;
1169
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruSearchViewBase, "tru-search-view-base", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
1170
+ }
1171
+
1172
+ declare class TruSearchViewControlEventHandler {
1173
+ private clear$;
1174
+ private default$;
1175
+ private updateDependants$;
1176
+ onSetDefaults(): BehaviorSubject<any>;
1177
+ setDefaults(): void;
1178
+ onClearValues(): BehaviorSubject<any>;
1179
+ clearValues(): void;
1180
+ onUpdateDependants(): Subject<ITruAncestor>;
1181
+ updateDependants: (table: string, ancestorRef: string, entity: any, value: string | number | null | undefined) => void;
1182
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewControlEventHandler, never>;
1183
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1184
+ }
1185
+
1186
+ declare class TruSearchViewEventHandler {
1187
+ private search$;
1188
+ private searchFromParent$;
1189
+ private filter$;
1190
+ search(query: any): void;
1191
+ onSearch(): rxjs.Observable<any>;
1192
+ initiateChildSearch(): void;
1193
+ onParentInitiatedSearch(): rxjs.Observable<any>;
1194
+ filter(query: any): void;
1195
+ onFilter(): rxjs.Observable<any>;
1196
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchViewEventHandler, never>;
1197
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1198
+ }
1199
+
1200
+ declare class TruSearchResultViewBase {
1201
+ private uiNotification;
1202
+ private truWindowEventHandler;
1203
+ view: any;
1204
+ protected tableName: string;
1205
+ protected tablePluralName: string;
1206
+ protected tablePluralLabel: string;
1207
+ protected parentTableName: string | undefined;
1208
+ protected parentTablePluralName: string | undefined;
1209
+ protected parentTablePluralLabel: string | undefined;
1210
+ protected hasDetailView: boolean;
1211
+ searchPanelConfig: {
1212
+ side: string;
1213
+ active: boolean;
1214
+ open: boolean;
1215
+ modKeyLabel: string;
1216
+ size: number;
1217
+ pinned: boolean;
1218
+ };
1219
+ constructor(uiNotification: TruUiNotification, truWindowEventHandler: TruWindowEventHandler);
1220
+ onPkeyCellDoubleClicked: (gridConfig: any) => void;
1221
+ onCardColumnClicked: (entities: any) => void;
1222
+ onCardDoubleClicked: (entities: any, index: number) => void;
1223
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchResultViewBase, never>;
1224
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruSearchResultViewBase, "tru-search-result-view-base", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
1225
+ }
1226
+
1227
+ declare class TruViewBase {
1228
+ protected textManager: TruTextManager;
1229
+ protected windowEventHandler: TruWindowEventHandler;
1230
+ view: TruDesktopViewConfig;
1231
+ protected tableName: string;
1232
+ protected tablePluralName: string;
1233
+ protected tablePluralLabel: string;
1234
+ protected parentTableName: string;
1235
+ protected parentTablePluralName: string;
1236
+ protected parentTablePluralLabel: string;
1237
+ protected hasDetailView: boolean;
1238
+ protected pkeyName: string;
1239
+ protected windowTitle: TruDesktopTitle | undefined;
1240
+ protected windowConfig: any;
1241
+ protected expands: never[];
1242
+ protected contextFilters: any;
1243
+ protected isSearching: boolean;
1244
+ protected entities: Array<any>;
1245
+ protected entity: any;
1246
+ protected entityType: any;
1247
+ protected recordLocation: string | null;
1248
+ protected disableNavigationToPreviousEntity: boolean;
1249
+ protected disableNavigationToNextEntity: boolean;
1250
+ protected navigationIndex: number;
1251
+ protected recordsBeforeRevert: number;
1252
+ protected subs: Array<Subscription>;
1253
+ constructor(textManager: TruTextManager, windowEventHandler: TruWindowEventHandler);
1254
+ setEntityDisplayValues(tableName: string): void;
1255
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruViewBase, never>;
1256
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruViewBase, "tru-view-base", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
1257
+ }
1258
+
1259
+ declare class TruFormulaEval {
1260
+ static isString(s: any): s is string;
1261
+ static isDate(v: any): boolean;
1262
+ static toValue(value: any): any;
1263
+ static toString(value: any): any;
1264
+ static toDouble(value: any): number;
1265
+ static toInteger(value: any): number;
1266
+ static toBoolean(value: any): number | boolean;
1267
+ static toDate(value: any): any;
1268
+ statictoDateTime(value: any): any;
1269
+ /**
1270
+ * Exposed for testing.
1271
+ */
1272
+ static _calculate(f: any, left: any, right: any): any;
1273
+ static _calculateDate(left: any, right: any, add: any): number | Date | null;
1274
+ static add(left: any, right: any): any;
1275
+ static subtract(left: any, right: any): any;
1276
+ static multiply(left: any, right: any): any;
1277
+ static divide(left: any, right: any): any;
1278
+ static power(left: any, right: any): any;
1279
+ static concatenate(left: any, right: any): any;
1280
+ static equal(left: any, right: any): boolean;
1281
+ static notEqual(left: any, right: any): boolean;
1282
+ static compareResultForMismatchedParams: any;
1283
+ static lessThan(left: any, right: any): boolean;
1284
+ static greaterThan(left: any, right: any): any;
1285
+ static lessThanOrEqual(left: any, right: any): boolean;
1286
+ static greaterThanOrEqual(left: any, right: any): any;
1287
+ static negate(operand: any): number;
1288
+ static percent(operand: any): number;
1289
+ }
1290
+
1291
+ declare class TruNavigationPropertiesConfig {
1292
+ constructor();
1293
+ properties: Array<TruNavigationPropertyConfig>;
1294
+ }
1295
+
1296
+ declare class TruPropertyConfigForeignKey extends TruPropertyConfigBase {
1297
+ constructor();
1298
+ table: string | undefined;
1299
+ foreignTableName: string | undefined;
1300
+ choicesQuery: string | undefined;
1301
+ dependsOn: Array<ITruAncestor>;
1302
+ }
1303
+
1304
+ declare class TruPropertyConfigCloudFile extends TruPropertyConfigForeignKey {
1305
+ constructor();
1306
+ }
1307
+
1308
+ declare class TruPropertyConfigDate extends TruPropertyConfigBase {
1309
+ constructor();
1310
+ minimumValue: number | undefined;
1311
+ maximumValue: number | undefined;
1312
+ }
1313
+
1314
+ declare class TruPropertyConfigDecimal extends TruPropertyConfigBase {
1315
+ constructor();
1316
+ decimalPlaces: number | undefined;
1317
+ totalDigits: number | undefined;
1318
+ minimumValue: number | undefined;
1319
+ maximumValue: number | undefined;
1320
+ }
1321
+
1322
+ declare class TruPropertyConfigFile extends TruPropertyConfigBase {
1323
+ constructor();
1324
+ maxSize: number | undefined;
1325
+ }
1326
+
1327
+ declare class TruPropertyConfigInteger extends TruPropertyConfigBase {
1328
+ constructor();
1329
+ minimumValue: number | undefined;
1330
+ maximumValue: number | undefined;
1331
+ }
1332
+
1333
+ declare class TruPropertyConfigText extends TruPropertyConfigBase {
1334
+ constructor();
1335
+ maxLength: number | undefined;
1336
+ minLength: number | undefined;
1337
+ unbounded: boolean | undefined;
1338
+ }
1339
+
1340
+ declare class TruPropertyConfigPassword extends TruPropertyConfigText {
1341
+ constructor();
1342
+ encryptionType: string | undefined;
1343
+ }
1344
+
1345
+ declare class TruPropertyConfigPercentage extends TruPropertyConfigBase {
1346
+ constructor();
1347
+ minimumValue: number | undefined;
1348
+ maximumValue: number | undefined;
1349
+ }
1350
+
1351
+ declare class TruPropertyConfigScientific extends TruPropertyConfigBase {
1352
+ constructor();
1353
+ minimumValue: number | undefined;
1354
+ maximumValue: number | undefined;
1355
+ }
1356
+
1357
+ declare class TruPropertyConfigTextChoices extends TruPropertyConfigText {
1358
+ constructor();
1359
+ choices: any;
1360
+ }
1361
+
1362
+ declare class TruPropertyConfigUsaAddress extends TruPropertyConfigBase {
1363
+ constructor();
1364
+ requireZipPlusFour: boolean | undefined;
1365
+ }
1366
+
1367
+ declare class TruPropertyConfigZipCode extends TruPropertyConfigBase {
1368
+ constructor();
1369
+ requireZipPlusFour: boolean | undefined;
1370
+ }
1371
+
1372
+ declare abstract class TruViewMenuConfig {
1373
+ entities: Array<TruEntityBase>;
1374
+ actionRefs: string;
1375
+ menuItemsEnabled: () => boolean;
1376
+ allMenus: () => Observable<any>;
1377
+ }
1378
+
1379
+ declare class TruValidatorFactory {
1380
+ private satisfiesEntityMessageValidation;
1381
+ private satisfiesRequiredValidation;
1382
+ private satisfiesMaxLengthValidation;
1383
+ private satisfiesFloatValidation;
1384
+ private satisfiesIntegerValidation;
1385
+ private satisfiesDateValidation;
1386
+ private satisfiesInvalidChoiceValidation;
1387
+ private satisfiesMergeValidation;
1388
+ createEntityMessageValidator: () => Validator;
1389
+ createRequiredValidator: () => Validator;
1390
+ createMaxLengthValidator: (maxLength: any) => Validator;
1391
+ createIntegerValidator: () => Validator;
1392
+ createFloatValidator: () => Validator;
1393
+ createDateValidator: () => Validator;
1394
+ createInvalidChoiceValidator: () => Validator;
1395
+ createMergeValidator: () => Validator;
1396
+ }
1397
+
1398
+ declare class TruAboutDialog implements OnInit {
1399
+ dialogRef: MatDialogRef<TruAboutDialog>;
1400
+ data: TruAboutDialog;
1401
+ private appEnvironment;
1402
+ appName: string;
1403
+ appDescription: string;
1404
+ currentYear: number;
1405
+ constructor(dialogRef: MatDialogRef<TruAboutDialog>, data: TruAboutDialog, appEnvironment: TruAppEnvironment);
1406
+ ngOnInit(): void;
1407
+ onDismiss(): void;
1408
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAboutDialog, never>;
1409
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruAboutDialog, "tru-about-dialog", never, {}, {}, never, never, true, never>;
1410
+ }
1411
+
1412
+ declare class TruAppSettingsDialog implements OnInit {
1413
+ private appEnvironment;
1414
+ dialogRef: MatDialogRef<TruAppSettingsDialog>;
1415
+ data: TruAppSettingsDialog;
1416
+ private globalDataContext;
1417
+ constructor(appEnvironment: TruAppEnvironment, dialogRef: MatDialogRef<TruAppSettingsDialog>, data: TruAppSettingsDialog);
1418
+ ngOnInit(): void;
1419
+ onConfirm(): void;
1420
+ onDismiss(): void;
1421
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAppSettingsDialog, never>;
1422
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruAppSettingsDialog, "tru-app-settings-dialog", never, {}, {}, never, never, true, never>;
1423
+ }
1424
+
1425
+ declare abstract class TruCardColumnData {
1426
+ $entity?: Entity;
1427
+ }
1428
+
1429
+ declare class TruModelTypeLookup {
1430
+ private _lookup;
1431
+ constructor();
1432
+ getType(typeName: string): typeof TruEntityBase;
1433
+ setType(typeName: string, type: typeof TruEntityBase): void;
1434
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruModelTypeLookup, never>;
1435
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1436
+ }
1437
+
1438
+ declare class TruSearchResultViewManager {
1439
+ private _searchViewToolbarTemplate;
1440
+ constructor();
1441
+ set searchViewToolbarTemplate(temp: TemplateRef<any>);
1442
+ get searchViewToolbarTemplate(): TemplateRef<any>;
1443
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchResultViewManager, never>;
1444
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1445
+ }
1446
+
1447
+ interface ITruToolbarDropdownOption {
1448
+ label: string;
1449
+ value: any;
1450
+ }
1451
+
1452
+ declare class TruCardColumn {
1453
+ private dataContext;
1454
+ private appEnviroment;
1455
+ private modelTypeLookup;
1456
+ private searchViewEventHandler;
1457
+ private searchResultViewManager;
1458
+ private changeDetectorRef;
1459
+ config: ITruCardColumnConfig;
1460
+ name: any;
1461
+ portal: ElementRef;
1462
+ private parentTablePluralLabel;
1463
+ private childTableName;
1464
+ private parentQuery;
1465
+ private lockProperty;
1466
+ private unassignedLocked;
1467
+ private unassignedDraggable;
1468
+ private unassignedDroppable;
1469
+ private inactiveVisible;
1470
+ private inactiveDraggable;
1471
+ private inactiveDroppable;
1472
+ private columnSort;
1473
+ private cardSort;
1474
+ private relatedParentName;
1475
+ private relatedChildName;
1476
+ private insertBefore;
1477
+ private uniqueId;
1478
+ private subs;
1479
+ parentTableName: string;
1480
+ childTablePluralLabel: string;
1481
+ busyMessage: string;
1482
+ isBusy: boolean;
1483
+ columns: any;
1484
+ cards: any;
1485
+ lockedColumns: any;
1486
+ columnFilterChoices: Array<ITruToolbarDropdownOption> | null;
1487
+ columnFilterRefs: Array<number>;
1488
+ cardFilterStr: string | null | undefined;
1489
+ selectedCards: Array<TruCard>;
1490
+ color: string | null;
1491
+ unassignedColor: string | null;
1492
+ key: string;
1493
+ unassignedVisible: boolean;
1494
+ unassignedName: string | null;
1495
+ userHasParentTableRole: boolean;
1496
+ viewMenuItems: any;
1497
+ selectedViewMenuItem: any | null;
1498
+ parentToolbarTemplate: TemplateRef<any> | null;
1499
+ columnFilterTooltip: string;
1500
+ cardFilterTooltip: string;
1501
+ columnDropdownFilterTooltip: string;
1502
+ constructor(dataContext: TruDataContext, appEnviroment: TruAppEnvironment, modelTypeLookup: TruModelTypeLookup, searchViewEventHandler: TruSearchViewEventHandler, searchResultViewManager: TruSearchResultViewManager, changeDetectorRef: ChangeDetectorRef);
1503
+ private parentTableModel;
1504
+ private createDataForEntity;
1505
+ private hasUndefinedChildren;
1506
+ private hasEmptyChildren;
1507
+ private hasInactiveChildren;
1508
+ private hasAddedUnsavedChildren;
1509
+ private clear;
1510
+ private getValueFromSortPath;
1511
+ private updateItemsSource;
1512
+ private subscribeTo;
1513
+ private onSearch;
1514
+ filterColumns: (selectedOptions: Array<ITruToolbarDropdownOption> | null) => void;
1515
+ filterCards: (value: string | null | undefined) => void;
1516
+ updateSelection: (card: TruCard) => void;
1517
+ dragStart: (e: any, card: TruCard) => boolean;
1518
+ dragOver: (e: any, card: TruCard) => void;
1519
+ dragEnd: (e: any) => void;
1520
+ drop: (e: any, card: TruCard) => Promise<boolean>;
1521
+ ngOnInit(): void;
1522
+ ngAfterViewInit(): void;
1523
+ removeSelection: (card: TruCard) => void;
1524
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCardColumn, never>;
1525
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruCardColumn, "tru-card-column", never, { "config": { "alias": "config"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, true, never>;
1526
+ }
1527
+
1528
+ declare class TruCard {
1529
+ private cardColumn;
1530
+ private cardContainerElement;
1531
+ data: any;
1532
+ column: any;
1533
+ cardElement: HTMLDivElement;
1534
+ selected: boolean;
1535
+ constructor(cardColumn: TruCardColumn, column: any, data: any, dropped: boolean);
1536
+ selectAll: (selectAll: any) => void;
1537
+ updateData: () => void;
1538
+ goToDetail: (ref: number) => void;
1539
+ }
1540
+
1541
+ declare abstract class TruCardColumnSearchResultsConfigBase {
1542
+ abstract rowDataEnhancer: (entity: any) => TruCardColumnData;
1543
+ abstract cardSort: (cards: Array<any>) => any;
1544
+ abstract query?: (breezeQuery: EntityQuery, propertyName: string) => any;
1545
+ abstract cardColumnId: (entity: any) => string | null | undefined;
1546
+ abstract cardId: (entity: any) => string | null | undefined;
1547
+ abstract cardColumnQuery: ((query: EntityQuery, relatedChildProperty: string) => any) | null;
1548
+ abstract cardView: ((card: TruCard, config: ITruCardColumnConfig) => void) | null;
1549
+ }
1550
+
1551
+ interface ITruCardColumnConfig {
1552
+ parentTableName: string;
1553
+ parentTablePluralLabel: string;
1554
+ parentToChildRelationshipName: string;
1555
+ childTableName: string;
1556
+ childTablePluralLabel: string;
1557
+ key: string;
1558
+ lockProperty: string | null;
1559
+ preventAdd: boolean;
1560
+ color: string | null;
1561
+ unassignedVisible: any;
1562
+ unassignedName: string | null;
1563
+ unassignedLocked: any;
1564
+ unassignedColor: string | null;
1565
+ unassignedDraggable: boolean;
1566
+ unassignedDroppable: boolean;
1567
+ inactiveVisible: boolean;
1568
+ inactiveDraggable: boolean;
1569
+ inactiveDroppable: boolean;
1570
+ resultConfig: TruCardColumnSearchResultsConfigBase;
1571
+ viewMenuConfig: TruViewMenuConfig;
1572
+ width: number;
1573
+ columnSort?: (columns: Array<any>) => any;
1574
+ cardSort?: (cards: Array<any>) => any;
1575
+ data?: (entity: TruEntityBase) => TruCardColumnData;
1576
+ query?: (breezeQuery: EntityQuery, propertyName: string) => any;
1577
+ onCardColumnClicked: (entities: any) => void;
1578
+ onCardDoubleClicked: (entities: any, index: number) => void;
1579
+ }
1580
+
1581
+ declare class TruModelTableLookup {
1582
+ private _lookup;
1583
+ constructor();
1584
+ get lookup(): Map<string, TruTableConfigBase>;
1585
+ set lookup(value: Map<string, TruTableConfigBase>);
1586
+ get all(): Array<TruTableConfigBase>;
1587
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruModelTableLookup, never>;
1588
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1589
+ }
1590
+
1591
+ declare class TruModelPropertyLookup {
1592
+ private _lookup;
1593
+ constructor();
1594
+ get lookup(): Map<string, TruPropertyConfigBase>;
1595
+ set lookup(value: Map<string, TruPropertyConfigBase>);
1596
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruModelPropertyLookup, never>;
1597
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1598
+ }
1599
+
1600
+ declare class TruCloneView extends TruViewBase {
1601
+ protected textManager: TruTextManager;
1602
+ protected windowEventHandler: TruWindowEventHandler;
1603
+ private dataContext;
1604
+ private modelTableLookup;
1605
+ private modelPropertyLookup;
1606
+ private modelTypeLookup;
1607
+ private modelNavigationPropertiesLookup;
1608
+ private uiNotification;
1609
+ loading: boolean;
1610
+ loadingMessage: string;
1611
+ numberOfCopies: Array<ITruToolbarDropdownOption>;
1612
+ selectedNumberOfCopies: ITruToolbarDropdownOption;
1613
+ contextFilters: null;
1614
+ rootNode: Node | null;
1615
+ ignorePropertyList: string[];
1616
+ dataTree: never[];
1617
+ flatList: Array<Node>;
1618
+ childFlatList: Array<Node>;
1619
+ processedCount: number;
1620
+ doneProcessing: boolean;
1621
+ displayTree: (Node | null)[];
1622
+ parentDataContext: TruDataContext;
1623
+ constructor(textManager: TruTextManager, windowEventHandler: TruWindowEventHandler, dataContext: TruDataContext, modelTableLookup: TruModelTableLookup, modelPropertyLookup: TruModelPropertyLookup, modelTypeLookup: TruModelTypeLookup, modelNavigationPropertiesLookup: TruModelNavigationPropertiesLookup, uiNotification: TruUiNotification);
1624
+ private getNumberOfCopies;
1625
+ private propertyIsAllowed;
1626
+ private getPrototypeProperties;
1627
+ private getChildPropertiesForCurrentEntity;
1628
+ private getTypeFromEntityTypeName;
1629
+ private buildCloneTree;
1630
+ private asyncForEachRecordId;
1631
+ private fetchRecordId;
1632
+ private traverse;
1633
+ private getDataForCloning;
1634
+ onClone: () => void;
1635
+ onDone: () => void;
1636
+ onRendered: () => void;
1637
+ onCancel: () => void;
1638
+ onExpandClicked: () => void;
1639
+ onCollapseClicked: () => void;
1640
+ onNumberOfCopiesChanged: (event: any) => void;
1641
+ ngOnInit(): void;
1642
+ ngOnDestroy(): void;
1643
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCloneView, never>;
1644
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruCloneView, "tru-clone-view", never, {}, {}, never, never, true, never>;
1645
+ }
1646
+ declare class Node {
1647
+ ref: number | null;
1648
+ tableName: string;
1649
+ displayName: string;
1650
+ checked: boolean;
1651
+ child: any;
1652
+ childNodes: any;
1653
+ showEntities: boolean;
1654
+ pathFromRoot: string | null;
1655
+ parentToChildRefName: string | null;
1656
+ nodes: Node[];
1657
+ root: any;
1658
+ parent: any;
1659
+ entity: any;
1660
+ constructor(ref: number | null, tableName: string, displayName: string, child: any, checked: boolean, childEntities: any, pathFromRoot: string | null, parentToChildRefName: string | null, root: boolean, parent: any, entity: any);
1661
+ onGroupDisplay: () => void;
1662
+ onCheckedChanged: () => void;
1663
+ }
1664
+
1665
+ declare class TruConfirmDialog implements OnInit {
1666
+ dialogRef: MatDialogRef<TruConfirmDialog>;
1667
+ data: TruConfirmDialog;
1668
+ title: string;
1669
+ message: string;
1670
+ displayDismissButton: boolean;
1671
+ displayConfirmButton: boolean;
1672
+ dismissButtonName: string;
1673
+ confirmButtonName: string;
1674
+ constructor(dialogRef: MatDialogRef<TruConfirmDialog>, data: TruConfirmDialog);
1675
+ ngOnInit(): void;
1676
+ onConfirm(): void;
1677
+ onDismiss(): void;
1678
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruConfirmDialog, never>;
1679
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruConfirmDialog, "tru-confirm-dialog", never, {}, {}, never, never, true, never>;
1680
+ }
1681
+ declare class TruConfirmDialogConfig {
1682
+ title: string;
1683
+ message: string;
1684
+ displayDismissButton: boolean;
1685
+ displayConfirmButton: boolean;
1686
+ dismissButtonName: string;
1687
+ confirmButtonName: string;
1688
+ constructor(title: string, message: string, displayDismissButton: boolean, displayConfirmButton: boolean, dismissButtonName: string, confirmButtonName: string);
1689
+ }
1690
+
1691
+ declare enum TruDataGridTypes {
1692
+ Search = 0,
1693
+ Detail = 1,
1694
+ DetailManyToMany = 2
1695
+ }
1696
+
1697
+ interface ITruDataGridConfig {
1698
+ tableName: string;
1699
+ tablePluralName: string;
1700
+ tablePluralLabel: string;
1701
+ parentTableName: string;
1702
+ parentTablePluralName: string;
1703
+ parentTablePluralLabel: string;
1704
+ parentTableRefName?: string;
1705
+ parentTableRelationshipRefName?: string;
1706
+ resultConfig: any;
1707
+ tableConfig: TruTableConfigBase;
1708
+ noQuery: boolean;
1709
+ viewMenuConfig: TruViewMenuConfig;
1710
+ customToolbarComponents: Array<string>;
1711
+ rowHeaderDoubleClicked: (data: any) => void;
1712
+ view: TruDesktopViewConfig;
1713
+ fill?: boolean;
1714
+ minimumRows?: number;
1715
+ maximumRows?: number;
1716
+ gridType?: TruDataGridTypes;
1717
+ }
1718
+
1719
+ declare class TruDataGridCellRenderer {
1720
+ private eGui;
1721
+ private validationContainer;
1722
+ onMouseOver: (e: any) => void;
1723
+ onRightClick: (event: MouseEvent) => void;
1724
+ init(params: any): void;
1725
+ getGui(): HTMLDivElement;
1726
+ refresh(): boolean;
1727
+ destroy(): void;
1728
+ }
1729
+
1730
+ declare class TruFormatter {
1731
+ private appEnvironemt;
1732
+ private modelTypeLookup;
1733
+ constructor(appEnvironemt: TruAppEnvironment, modelTypeLookup: TruModelTypeLookup);
1734
+ private formatDate;
1735
+ private isDate;
1736
+ private isPromise;
1737
+ bigInteger: (cfg: any) => any;
1738
+ boolean: (cfg: any) => "True" | "False" | null;
1739
+ choiceLabel: (cfg: any) => any;
1740
+ dateShort: (cfg: any) => string | null;
1741
+ datetimeShort: (cfg: any) => string | null;
1742
+ datetimespanShort: (cfg: any) => string;
1743
+ decimal: (cfg: any) => any;
1744
+ excelFormula: (val: any) => any;
1745
+ file: (cfg: any) => string | null;
1746
+ float: (cfg: any) => any;
1747
+ id: (value: string | null) => string | null;
1748
+ integer: (cfg: any) => any;
1749
+ intlAddress: (cfg: any) => string;
1750
+ intlAddressBasic: (cfg: any) => string;
1751
+ naPhone: (config: any) => string | null;
1752
+ intlPhone: (cfg: any) => string;
1753
+ password: (cfg: any) => "" | "********" | null;
1754
+ percentage: (cfg: any) => any;
1755
+ picture: (cfg: any) => string;
1756
+ ref: (cfg: any) => any;
1757
+ richText: (cfg: any) => any;
1758
+ socialSecurityNumber: (cfg: any) => string | null;
1759
+ text: (cfg: any) => any;
1760
+ textFormatting: (text: any) => any;
1761
+ timeShort: (cfg: any) => string | null;
1762
+ timeSpanHhMmSs: (cfg: any) => string;
1763
+ usaAddress: (cfg: any) => string | null;
1764
+ usaDollars: (cfg: any) => string | null;
1765
+ usaSocialSecurity: (cfg: any) => string | null;
1766
+ usaZip: (cfg: any) => any;
1767
+ zipCode: (cfg: any) => any;
1768
+ passwordEightBullets: (cfg: any) => any;
1769
+ formulaJsonParser: (formatter: (value: any) => any, data: string) => any;
1770
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruFormatter, never>;
1771
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1772
+ }
1773
+
1774
+ declare class TruDataGridClipboard {
1775
+ private util;
1776
+ private formatter;
1777
+ private uiNotification;
1778
+ private modelPropertyLookup;
1779
+ private tableName;
1780
+ private columnName;
1781
+ private copiedCellData;
1782
+ private copiedCellValue;
1783
+ private copiedCellEntity;
1784
+ private copiedCellParams;
1785
+ private copiedCellText;
1786
+ private copiedRows;
1787
+ private copiedRowsText;
1788
+ private gridElement;
1789
+ constructor(util: TruUtil, formatter: TruFormatter, uiNotification: TruUiNotification, modelPropertyLookup: TruModelPropertyLookup);
1790
+ private formatCellValue;
1791
+ private normalizeClipboardText;
1792
+ private readClipboardText;
1793
+ private parseExternalCellValue;
1794
+ private removeBorderAnimation;
1795
+ private addCellBorderAnimation;
1796
+ private addRowBorderAnimation;
1797
+ setGridElement(el: HTMLElement): void;
1798
+ clearAnimations(): void;
1799
+ copyCell: (params: ICellRendererParams, tableName: string, columnName: string, copiedCellData: any, copiedCellEntity: Entity) => Promise<void>;
1800
+ pasteCell: (params: ICellRendererParams, pastedCellData: any, pastedCell: Entity) => Promise<void>;
1801
+ copyRow: (tableName: string, columnDefs: Array<ColDef>, copiedRows: Array<any>, includeHeaders?: boolean) => Promise<void>;
1802
+ pasteRow: (gridApi: GridApi, config: ITruDataGridConfig, selectedRows: any) => Promise<void>;
1803
+ insertRowsAtTop: (dataContext: TruDataContext, config: ITruDataGridConfig, addEntity: (newEntity: any, dataNotification: boolean) => {}) => void;
1804
+ getCopiedRows: () => TruEntityBase[];
1805
+ getCopiedCell: () => Entity | null;
1806
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridClipboard, never>;
1807
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1808
+ }
1809
+
1810
+ declare class TruDataGridPkeyCellRenderer {
1811
+ private dataContext;
1812
+ private dataGridClipboard;
1813
+ contextMenu: MatMenuTrigger;
1814
+ private eGui;
1815
+ private windowClickSubscription;
1816
+ params: ICellRendererParams;
1817
+ contextMenuPosition: {
1818
+ x: string;
1819
+ y: string;
1820
+ };
1821
+ displayValue: string;
1822
+ copyIsDisabled: boolean;
1823
+ pasteIsDisabled: boolean;
1824
+ insertAtTopIsDisabled: boolean;
1825
+ constructor(dataContext: TruDataContext, dataGridClipboard: TruDataGridClipboard);
1826
+ onRightClick: (event: MouseEvent) => void;
1827
+ onMouseDown: (event: MouseEvent) => void;
1828
+ onMouseUp: (event: MouseEvent) => void;
1829
+ onCopy: (event: MouseEvent) => void;
1830
+ onCopyWithHeaders: (event: MouseEvent) => void;
1831
+ onPaste: (event: MouseEvent) => void;
1832
+ onInsertAtTop: (event: MouseEvent) => void;
1833
+ agInit(params: any): void;
1834
+ getGui(): HTMLDivElement;
1835
+ refresh(): boolean;
1836
+ destroy(): void;
1837
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridPkeyCellRenderer, never>;
1838
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridPkeyCellRenderer, "ng-component", never, {}, {}, never, never, true, never>;
1839
+ }
1840
+
1841
+ declare class TruDataGridHeader implements IHeaderAngularComp {
1842
+ headerRef: ElementRef;
1843
+ params: IHeaderParams;
1844
+ ascSort: boolean;
1845
+ descSort: boolean;
1846
+ isHovering: boolean;
1847
+ columnMenuIsOpen: boolean;
1848
+ showFilterMenu: boolean;
1849
+ filterIsActive: boolean;
1850
+ private onCellFocused;
1851
+ private onSortChanged;
1852
+ agInit(params: IHeaderParams): void;
1853
+ getHeaderParams(): IHeaderParams;
1854
+ refresh(params: IHeaderParams): boolean;
1855
+ onFilterMenuButtonClicked(event: MouseEvent): void;
1856
+ onHeaderMouseEnter(event: MouseEvent): void;
1857
+ onHeaderMouseLeave(event: MouseEvent): void;
1858
+ ngOnDestroy(): void;
1859
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridHeader, never>;
1860
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridHeader, "ng-component", never, {}, {}, never, never, true, never>;
1861
+ }
1862
+
1863
+ interface Sorts {
1864
+ value: string | null;
1865
+ label: string;
1866
+ selected: boolean;
1867
+ display: () => boolean;
1868
+ icon: string;
1869
+ }
1870
+ declare class TruDataGridHeaderFilter implements IFilterAngularComp {
1871
+ filterParams: IFilterParams;
1872
+ guiFilterParams: IAfterGuiAttachedParams | undefined;
1873
+ gui: HTMLDivElement;
1874
+ filterText: string;
1875
+ typesOfSort: Sorts[];
1876
+ values: string[];
1877
+ filterInputControl: FormControl;
1878
+ constructor();
1879
+ agInit(params: IFilterParams): void;
1880
+ isFilterActive(): boolean;
1881
+ doesFilterPass(params: IDoesFilterPassParams): boolean;
1882
+ getModel(): {
1883
+ value: string;
1884
+ } | null;
1885
+ setModel(model: any): void;
1886
+ getGui(): HTMLElement;
1887
+ afterGuiAttached(params?: IAfterGuiAttachedParams): void;
1888
+ onFilterInputChanged(): void;
1889
+ onSortMenuItemClicked: (event: MouseEvent, typeOfSort: any) => void;
1890
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridHeaderFilter, never>;
1891
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridHeaderFilter, "ng-component", never, {}, {}, never, never, true, never>;
1892
+ }
1893
+
1894
+ declare class TruDataGridRefHeader implements IHeaderAngularComp {
1895
+ headerRef: ElementRef;
1896
+ params: IHeaderParams;
1897
+ ascSort: boolean;
1898
+ descSort: boolean;
1899
+ isHovering: boolean;
1900
+ columnMenuIsOpen: boolean;
1901
+ showFilterMenu: boolean;
1902
+ filterIsActive: boolean;
1903
+ agInit(params: IHeaderParams): void;
1904
+ getHeaderParams(): IHeaderParams;
1905
+ refresh(params: IHeaderParams): boolean;
1906
+ onSelectAllIconClicked(): void;
1907
+ onFilterMenuButtonClicked(event: MouseEvent): void;
1908
+ onHeaderMouseEnter(event: MouseEvent): void;
1909
+ onHeaderMouseLeave(event: MouseEvent): void;
1910
+ ngOnDestroy(): void;
1911
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridRefHeader, never>;
1912
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDataGridRefHeader, "ng-component", never, {}, {}, never, never, true, never>;
1913
+ }
1914
+
1915
+ declare class TruDataGridUtil {
1916
+ static resolvePropertyPath: (entity: any, propertyPath: string | null | undefined) => {
1917
+ entity: any;
1918
+ propertyName: string;
1919
+ } | null;
1920
+ static isPropertyPathAvailable: (entity: any, propertyPath: string | null | undefined) => boolean;
1921
+ static getCellEditorConfigField: (rowData: any, columnDef: ColDef) => string | undefined;
1922
+ static validatePropertyPath: (entity: any, propertyPath: string | null | undefined) => boolean | null;
1923
+ private getColumnIndexByColId;
1924
+ focusPreviousCell: (api: GridApi, rowIndex: number, colId: string) => void;
1925
+ focusNextCell: (api: GridApi, rowIndex: number, colId: string) => void;
1926
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGridUtil, never>;
1927
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1928
+ }
1929
+
1930
+ declare class TruConnectionHub {
1931
+ private dataContext;
1932
+ private appEnvironment;
1933
+ private user;
1934
+ private modelTypeLookup;
1935
+ private modelPropertyLookup;
1936
+ private connection;
1937
+ constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, user: TruUser, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
1938
+ disconnect: () => void;
1939
+ connect: () => void;
1940
+ start: () => void;
1941
+ subscribe: (dataContext: TruDataContext, entity: typeof TruEntityBase, tableName: string, addEntity: (newEntity: any) => void, getLatestResults: () => any, getLatestQuery: () => any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean) => Subject<TruDataChange>;
1942
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruConnectionHub, never>;
1943
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1944
+ }
1945
+
1946
+ declare class TruTabGroupEventNotifier {
1947
+ private active$;
1948
+ onActiveStateChanged: () => BehaviorSubject<boolean>;
1949
+ get isActive(): boolean;
1950
+ set isActive(value: boolean);
1951
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruTabGroupEventNotifier, never>;
1952
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1953
+ }
1954
+
1955
+ declare class TruDataGrid implements OnInit, OnChanges, AfterViewInit {
1956
+ private dataContext;
1957
+ private componentLookup;
1958
+ private searchResultViewManager;
1959
+ private appEnvironment;
1960
+ private searchViewEventHandler;
1961
+ private uiNotification;
1962
+ private connectionHub;
1963
+ private windowEventHandler;
1964
+ private dataGridClipboard;
1965
+ private util;
1966
+ private app;
1967
+ private cdr;
1968
+ private hostElement;
1969
+ private desktopViewEventNotifier;
1970
+ tabGroupEventNotifier: TruTabGroupEventNotifier;
1971
+ dataGridContainer: ElementRef;
1972
+ customToolbarContainer: ViewContainerRef;
1973
+ config: ITruDataGridConfig;
1974
+ entity: any;
1975
+ name: any;
1976
+ TruDataGridTypes: typeof TruDataGridTypes;
1977
+ label: string;
1978
+ columnDefs: any;
1979
+ rowData: any;
1980
+ viewChoices: Array<any>;
1981
+ selectedViewChoice: any;
1982
+ unassociatedChoices: Array<any>;
1983
+ selectedUnassociatedChoice: any;
1984
+ viewMenuItems: any;
1985
+ customToolbarComponents: any;
1986
+ selectedViewMenuItem: any | null;
1987
+ gridType: TruDataGridTypes;
1988
+ unsavedEntities: Array<any>;
1989
+ loadedEntities: Array<any>;
1990
+ latestSetupQuery: any;
1991
+ firstSearchRan: boolean;
1992
+ rowCount: string;
1993
+ selectedRowCount: string;
1994
+ api: GridApi;
1995
+ private invalidRowIds;
1996
+ private invalidRowIdSequence;
1997
+ gridOptions: any;
1998
+ parentToolbarTemplate: TemplateRef<any> | null;
1999
+ private subs;
2000
+ private isActive;
2001
+ private rowSelectedOnMousedown;
2002
+ private rowFocuedOnMousedown;
2003
+ private copiedRowData;
2004
+ private scrollOffsetCleanup;
2005
+ private detailResizeCleanup;
2006
+ private pendingResizeFrameId;
2007
+ 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);
2008
+ private onDocumentKeydown;
2009
+ private enhanceRowDataForEntity;
2010
+ private setNoRowsTemplate;
2011
+ private applyRelationshipsAndUpdateGrid;
2012
+ private subscribeTo;
2013
+ private getRefs;
2014
+ private getRowData;
2015
+ private loadGridData;
2016
+ private loadManyToManyGridData;
2017
+ private exportData;
2018
+ private onSuppressKeyboardEvent;
2019
+ private addEntity;
2020
+ private getMergeData;
2021
+ private validationDialog;
2022
+ private destroyValidationDialog;
2023
+ private addValidationDialog;
2024
+ private waitForGridApi;
2025
+ private runSearch;
2026
+ private getPropertyPathParts;
2027
+ private configureColumnDefs;
2028
+ private renderCustomToolbarComponents;
2029
+ defaultColDef: ColDef;
2030
+ onRowDataChanged: (data: any) => void;
2031
+ onCellMouseDown: (cellData: any) => void;
2032
+ onCellClicked: (cellData: any) => void;
2033
+ onRowClicked: (cellData: any) => void;
2034
+ onCellDoubleClicked: (cellData: any) => void;
2035
+ onCellKeyDown: (params: any) => void;
2036
+ onCellMouseOver(e: any): void;
2037
+ onCellMouseOut(e: any): void;
2038
+ onRightClick(event: MouseEvent): void;
2039
+ onSearch: (setupQuery: any) => void;
2040
+ onUnassociatedChoiceChanged: (option: Array<ITruToolbarDropdownOption> | null) => void;
2041
+ onSelectedReportChanged: (event: any) => void;
2042
+ canAdd: () => boolean;
2043
+ onAdd: () => void;
2044
+ onDelete: () => void;
2045
+ onKeep: () => void;
2046
+ onRemove: () => void;
2047
+ onExport: () => void;
2048
+ ngOnInit(): void;
2049
+ ngAfterViewInit(): void;
2050
+ ngOnChanges(changes: SimpleChanges): void;
2051
+ ngOnDestroy(): void;
2052
+ private updateScrollOffsets;
2053
+ private setupScrollObservers;
2054
+ private teardownScrollObservers;
2055
+ private scheduleResizeGrid;
2056
+ private setupDetailResizeObservers;
2057
+ private teardownDetailResizeObservers;
2058
+ private resizeGrid;
2059
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDataGrid, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
2060
+ 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>;
2061
+ }
2062
+
2063
+ declare class TruDesktop implements OnInit {
2064
+ private desktopService;
2065
+ private textManager;
2066
+ private truDesktopEventHandler;
2067
+ private util;
2068
+ options: any;
2069
+ private viewportComponent;
2070
+ constructor(desktopService: TruDesktopService, textManager: TruTextManager, truDesktopEventHandler: TruDesktopEventHandler, util: TruUtil);
2071
+ minimizeAll: boolean;
2072
+ desktop: any;
2073
+ minWindowCascadePosition: number;
2074
+ maxWindowCascadePosition: number;
2075
+ lastWindowCascadePosition: {
2076
+ top: number;
2077
+ left: number;
2078
+ };
2079
+ shiftPressed: boolean;
2080
+ altPressed: boolean;
2081
+ xPressed: boolean;
2082
+ logoUrl: null;
2083
+ /**
2084
+ * @tru.doc function
2085
+ * @name truDesktopComponent.getDesktop
2086
+ * @module tru.desktop
2087
+ *
2088
+ * @description
2089
+ * Return an object of desktop.
2090
+ *
2091
+ * @returns {object} desktop.
2092
+ */
2093
+ getDesktop: () => any;
2094
+ /**
2095
+ * @tru.doc function
2096
+ * @name truDesktopComponent.getOptions
2097
+ * @module tru.desktop
2098
+ *
2099
+ * @description
2100
+ * Return an object of desktop options.
2101
+ *
2102
+ * @returns {object} options.
2103
+ */
2104
+ getOptions: () => any;
2105
+ /**
2106
+ * @tru.doc function
2107
+ * @name truDesktopComponent.getWindows
2108
+ * @module tru.desktop
2109
+ *
2110
+ * @description
2111
+ * Return an array of windows.
2112
+ *
2113
+ * @returns {array} windows.
2114
+ */
2115
+ getWindows: () => any[];
2116
+ /**
2117
+ * @tru.doc function
2118
+ * @name truDesktopComponent.getNextMaxZIndex
2119
+ * @module tru.desktop
2120
+ *
2121
+ * @description
2122
+ * Iterates through all window objects in the windows array to find the max z-index
2123
+ * and increases the value found by 1.
2124
+ *
2125
+ * @returns {int}
2126
+ */
2127
+ getNextMaxZIndex: () => number;
2128
+ /**
2129
+ * @tru.doc function
2130
+ * @name truDesktopComponent.clearActive
2131
+ * @module tru.desktop
2132
+ *
2133
+ * @description
2134
+ * Iterates through all window objects in the windows
2135
+ * and sets the active property to false.
2136
+ *
2137
+ */
2138
+ clearActive: () => void;
2139
+ /**
2140
+ * @tru.doc function
2141
+ * @name truDesktopComponent.getActiveWindow
2142
+ * @module tru.desktop
2143
+ *
2144
+ * @description
2145
+ * Gets the active window.
2146
+ *
2147
+ * @returns {object} view object.
2148
+ */
2149
+ getActiveWindow: () => any;
2150
+ /**
2151
+ * @tru.doc function
2152
+ * @name truDesktopComponent.getActiveView
2153
+ * @module tru.desktop
2154
+ *
2155
+ * @description
2156
+ * Gets the active view.
2157
+ *
2158
+ * @returns {object} view object.
2159
+ */
2160
+ getActiveView: (wdw: any) => null;
2161
+ /**
2162
+ * @tru.doc function
2163
+ * @name truDesktopComponent.allWindowsAreMinimized
2164
+ * @module tru.desktop
2165
+ *
2166
+ * @description
2167
+ * Iterates through windows to determine if all are minimized.
2168
+ *
2169
+ */
2170
+ allWindowsAreMinimized: () => boolean;
2171
+ /**
2172
+ * @tru.doc function
2173
+ * @name truDesktopComponent.hideShowAll
2174
+ * @module tru.desktop
2175
+ *
2176
+ * @description
2177
+ * Hides/shows all windows
2178
+ *
2179
+ */
2180
+ hideShowAll: () => boolean;
2181
+ /**
2182
+ * @tru.doc function
2183
+ * @name truDesktopComponent.findWindowViewDirective
2184
+ * @module tru.desktop
2185
+ *
2186
+ * @description
2187
+ * Looks for previously open window with a view directive
2188
+ *
2189
+ */
2190
+ findWindowViewDirective: (windowViewDirective: any) => any;
2191
+ /**
2192
+ * @tru.doc function
2193
+ * @name truDesktopComponent.openWindow
2194
+ * @module tru.desktop
2195
+ *
2196
+ * @description
2197
+ * Displays a new window. All window properties defined by the application developer will be
2198
+ * overlaid here before displaying the window
2199
+ *
2200
+ */
2201
+ openWindow: (windowConfigOverlays: any, singleInstance: any) => WindowConfig;
2202
+ /**
2203
+ * @tru.doc function
2204
+ * @name truDesktopComponent.configureWindow
2205
+ * @module tru.desktop
2206
+ *
2207
+ * @description
2208
+ * Creates a new window instance.
2209
+ *
2210
+ */
2211
+ configureWindow: (windowConfigOverlays: any) => any;
2212
+ /**
2213
+ * @tru.doc function
2214
+ * @name truDesktopComponent.configureViews
2215
+ * @module tru.desktop
2216
+ *
2217
+ * @description
2218
+ * Creates one or more view instances
2219
+ *
2220
+ */
2221
+ configureViews: (windowConfigOverlays: any, configuredWindow: any) => Array<any>;
2222
+ /**
2223
+ * @tru.doc function
2224
+ * @name truDesktopComponent.closeWindow
2225
+ * @module tru.desktop
2226
+ *
2227
+ * @description
2228
+ * Remove a window {object} from the windows array.
2229
+ *
2230
+ * @returns {boolean} returns true if window was closed, false if not closed.
2231
+ */
2232
+ closeWindow: (wdw: any, windowCloseEventArgs?: TruWindowCloseEventArgs | null) => boolean;
2233
+ /**
2234
+ * @tru.doc function
2235
+ * @name truDesktopComponent.activateForemostWindow
2236
+ * @module tru.desktop
2237
+ *
2238
+ * @description
2239
+ * Set the foremost window to an active state
2240
+ *
2241
+ */
2242
+ activateForemostWindow: () => void;
2243
+ /**
2244
+ * @tru.doc function
2245
+ * @name truDesktopComponent.activateNextWindow
2246
+ * @module tru.desktop
2247
+ *
2248
+ * @description
2249
+ * Set the next window to an active state
2250
+ *
2251
+ */
2252
+ activateNextWindow: (activeWindowLocation: any) => void;
2253
+ /**
2254
+ * @tru.doc function
2255
+ * @name truDesktopComponent.activatePreviousWindow
2256
+ * @module tru.desktop
2257
+ *
2258
+ * @description
2259
+ * Set the previous window to an active state
2260
+ *
2261
+ */
2262
+ activatePreviousWindow: (activeWindowLocation: any) => void;
2263
+ /**
2264
+ * @tru.doc function
2265
+ * @name truDesktopComponent.minimize
2266
+ * @module tru.desktop
2267
+ *
2268
+ * @description
2269
+ * Visually removes window from the viewport.
2270
+ *
2271
+ */
2272
+ minimize: (window: any) => void;
2273
+ /**
2274
+ * @tru.doc function
2275
+ * @name truDesktopComponent.maximize
2276
+ * @module tru.desktop
2277
+ *
2278
+ * @description
2279
+ * Positions window such that it fills the whole viewport.
2280
+ *
2281
+ */
2282
+ maximize: (window: any) => void;
2283
+ /**
2284
+ * @tru.doc function
2285
+ * @name truDesktopComponent.maximizeLeft
2286
+ * @module tru.desktop
2287
+ *
2288
+ * @description
2289
+ * Positions window such that it fills the left portion viewport.
2290
+ *
2291
+ */
2292
+ maximizeLeft: (window: any) => void;
2293
+ /**
2294
+ * @tru.doc function
2295
+ * @name truDesktopComponent.maximizeRight
2296
+ * @module tru.desktop
2297
+ *
2298
+ * @description
2299
+ * Positions window such that it fills the right portion viewport.
2300
+ *
2301
+ */
2302
+ maximizeRight: (window: any) => void;
2303
+ /**
2304
+ * @tru.doc function
2305
+ * @name truDesktopComponent.recover
2306
+ * @module tru.desktop
2307
+ *
2308
+ * @description
2309
+ * Brings window back into view when it has escaped the viewport.
2310
+ *
2311
+ */
2312
+ recover: (window: any) => void;
2313
+ /**
2314
+ * @tru.doc function
2315
+ * @name truDesktopComponent.restore
2316
+ * @module tru.desktop
2317
+ *
2318
+ * @description
2319
+ *
2320
+ */
2321
+ restore: (wdw: any) => void;
2322
+ /**
2323
+ * @tru.doc function
2324
+ * @name truDesktopComponent.bringToFront
2325
+ * @module tru.desktop
2326
+ *
2327
+ * @description
2328
+ *
2329
+ */
2330
+ updateWindowState: (wdw: any) => void;
2331
+ /**
2332
+ * @tru.doc function
2333
+ * @name truDesktopComponent.restoreSavedPosition
2334
+ * @module tru.desktop
2335
+ *
2336
+ * @description
2337
+ * Set the windows last know position to the current position.
2338
+ *
2339
+ */
2340
+ restoreSavedPosition: (wdw: any) => void;
2341
+ /**
2342
+ * @tru.doc function
2343
+ * @name truDesktopComponent.savePosition
2344
+ * @module tru.desktop
2345
+ *
2346
+ * @description
2347
+ * Save the windows last know position.
2348
+ *
2349
+ */
2350
+ savePosition: (wdw: any) => void;
2351
+ /**
2352
+ * @tru.doc function
2353
+ * @name truDesktopComponent.closeWindow
2354
+ * @module tru.desktop
2355
+ *
2356
+ * @description
2357
+ * Moves a window to the next cascade position.
2358
+ *
2359
+ */
2360
+ cascadeWindow: (window: any) => void;
2361
+ /**
2362
+ * @tru.doc event
2363
+ * @module tru.desktop
2364
+ *
2365
+ * @description
2366
+ *
2367
+ */
2368
+ onKeyDown: (event: any) => void;
2369
+ onKeyUp: (event: any) => void;
2370
+ /**
2371
+ * @tru.doc function
2372
+ * @name truDesktopComponent.handleSelectAttempt
2373
+ * @module tru.desktop
2374
+ *
2375
+ * @description
2376
+ * Prevents the user from highlight desktop elements.
2377
+ *
2378
+ */
2379
+ handleSelectAttempt: (e: any) => boolean;
2380
+ windows: Array<any>;
2381
+ ngOnInit(): void;
2382
+ ngOnDestroy(): void;
2383
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktop, never>;
2384
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktop, "tru-desktop", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
2385
+ }
2386
+
2387
+ type TruCustomViewOptions = {
2388
+ requiresCleanDataContext?: boolean;
2389
+ suppressWindowSaveRevert?: boolean;
2390
+ };
2391
+ declare class TruWindowManager {
2392
+ private windowEventHandler;
2393
+ constructor(windowEventHandler: TruWindowEventHandler);
2394
+ addCustomView: (componentName: string, entities: Array<TruEntityBase>, entityIndex: number, options?: boolean | TruCustomViewOptions) => void;
2395
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowManager, never>;
2396
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2397
+ }
2398
+
2399
+ declare class TruWindowActionEventHandler {
2400
+ private save$;
2401
+ private revert$;
2402
+ onSave: () => Subject<null>;
2403
+ onRevert: () => Subject<null>;
2404
+ save: () => void;
2405
+ revert: () => void;
2406
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowActionEventHandler, never>;
2407
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2408
+ }
2409
+
2410
+ declare class TruErrorManager {
2411
+ private http;
2412
+ private dialog;
2413
+ private textManager;
2414
+ private uiNotification;
2415
+ private componentLookup;
2416
+ private appRef;
2417
+ private injector;
2418
+ private appEnvironment;
2419
+ private baseUrl;
2420
+ private appName;
2421
+ constructor(http: HttpClient, dialog: MatDialog, textManager: TruTextManager, uiNotification: TruUiNotification, componentLookup: TruComponentLookup, appRef: ApplicationRef, injector: Injector, appEnvironment: TruAppEnvironment);
2422
+ private handleClientSideError;
2423
+ private handleServerSideError;
2424
+ handleError: (error: HttpErrorResponse) => void;
2425
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruErrorManager, never>;
2426
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2427
+ }
2428
+
2429
+ declare class TruErrorInterceptor implements HttpInterceptor {
2430
+ private errorManager;
2431
+ constructor(errorManager: TruErrorManager);
2432
+ intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
2433
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruErrorInterceptor, never>;
2434
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2435
+ }
2436
+
2437
+ declare class TruErrorDialog implements OnInit {
2438
+ dialogRef: MatDialogRef<TruErrorDialog>;
2439
+ data: TruErrorDialog;
2440
+ title: string;
2441
+ message: string;
2442
+ stackTrace: string;
2443
+ constructor(dialogRef: MatDialogRef<TruErrorDialog>, data: TruErrorDialog);
2444
+ readonly panelOpenState: i0.WritableSignal<boolean>;
2445
+ ngOnInit(): void;
2446
+ onDismiss(): void;
2447
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruErrorDialog, never>;
2448
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruErrorDialog, "tru-error-dialog", never, {}, {}, never, never, true, never>;
2449
+ }
2450
+
2451
+ declare class TruExportDialog implements OnInit {
2452
+ dialogRef: MatDialogRef<TruExportDialog>;
2453
+ data: TruExportDialog;
2454
+ title: string;
2455
+ constructor(dialogRef: MatDialogRef<TruExportDialog>, data: TruExportDialog);
2456
+ options: {
2457
+ useGrid: boolean;
2458
+ useNames: boolean;
2459
+ useEmptyTags: boolean;
2460
+ async: boolean;
2461
+ };
2462
+ onFormatForImportChecked: () => void;
2463
+ onConfirm(): void;
2464
+ onDismiss(): void;
2465
+ handleKeyboardEvent(event: KeyboardEvent): void;
2466
+ ngOnInit(): void;
2467
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruExportDialog, never>;
2468
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruExportDialog, "tru-export-dialog", never, {}, {}, never, never, true, never>;
2469
+ }
2470
+ declare class TruExportDialogConfig {
2471
+ title: string;
2472
+ constructor(title: string);
2473
+ }
2474
+
2475
+ declare class TruGridValidationDialogConfig {
2476
+ private _entity;
2477
+ private _propertyConfig;
2478
+ private _isSubProperty;
2479
+ private _ignore;
2480
+ private _propertyName;
2481
+ private _errorMsg;
2482
+ private _mergeData;
2483
+ get entity(): TruEntityBase;
2484
+ get propertyConfig(): TruEditControlConfigBase<any> | TruListControlConfigBase<any>;
2485
+ get isSubProperty(): boolean;
2486
+ get ignore(): boolean;
2487
+ get propertyName(): string | null;
2488
+ set propertyName(value: string);
2489
+ get errorMsg(): string | null;
2490
+ set errorMsg(value: string);
2491
+ get mergeData(): TruMergeDataSet | null;
2492
+ set mergeData(value: TruMergeDataSet | null);
2493
+ constructor(entity: TruEntityBase, propertyConfig: TruEditControlConfigBase<any> | TruListControlConfigBase<any>, isSubProperty?: boolean, ignore?: boolean);
2494
+ }
2495
+
2496
+ declare class TruGridValidationDialog implements OnInit, OnDestroy {
2497
+ private renderer;
2498
+ private elementRef;
2499
+ private util;
2500
+ config: TruGridValidationDialogConfig;
2501
+ close: EventEmitter<any>;
2502
+ errorMsg: string;
2503
+ private rowElement;
2504
+ private cellElement;
2505
+ private listeners;
2506
+ constructor(renderer: Renderer2, elementRef: ElementRef, util: TruUtil);
2507
+ onAcceptAll: () => void;
2508
+ onAccept: () => void;
2509
+ onDecline: () => void;
2510
+ ngOnInit(): void;
2511
+ ngAfterViewInit(): void;
2512
+ ngOnDestroy(): void;
2513
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruGridValidationDialog, never>;
2514
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruGridValidationDialog, "tru-grid-validation-dialog", never, { "config": { "alias": "config"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
2515
+ }
2516
+
2517
+ declare class TruColumn {
2518
+ constructor();
2519
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruColumn, never>;
2520
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruColumn, "tru-column", never, {}, {}, never, ["*"], true, never>;
2521
+ }
2522
+
2523
+ declare class TruForm implements AfterViewInit {
2524
+ private element;
2525
+ constructor(element: ElementRef);
2526
+ ngAfterViewInit(): void;
2527
+ private updateLayout;
2528
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruForm, never>;
2529
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruForm, "tru-form", never, {}, {}, never, ["*"], true, never>;
2530
+ }
2531
+
2532
+ declare class TruGroupBox {
2533
+ constructor();
2534
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruGroupBox, never>;
2535
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruGroupBox, "tru-group-box", never, {}, {}, never, ["*"], true, never>;
2536
+ }
2537
+
2538
+ declare class TruRow {
2539
+ constructor();
2540
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruRow, never>;
2541
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruRow, "tru-row", never, {}, {}, never, ["*"], true, never>;
2542
+ }
2543
+
2544
+ declare class TruTab {
2545
+ private tabGroupEventNotifier;
2546
+ view: any;
2547
+ label: string;
2548
+ matTab: MatTab;
2549
+ constructor(tabGroupEventNotifier: TruTabGroupEventNotifier);
2550
+ notifyListeners: (isActive: boolean) => void;
2551
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruTab, never>;
2552
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruTab, "tru-tab", never, { "view": { "alias": "view"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
2553
+ }
2554
+
2555
+ declare class TruTabGroup {
2556
+ tabGroup: MatTabGroup;
2557
+ protected tabs: QueryList<TruTab>;
2558
+ constructor();
2559
+ ngAfterViewInit(): void;
2560
+ onChange(event: MatTabChangeEvent): void;
2561
+ private setActiveTabByIndex;
2562
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruTabGroup, never>;
2563
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruTabGroup, "tru-tab-group", never, {}, {}, ["tabs"], ["*"], true, never>;
2564
+ }
2565
+
2566
+ declare class TruPasswordDialog implements OnInit {
2567
+ dialogRef: MatDialogRef<TruPasswordDialog>;
2568
+ private http;
2569
+ private appEnvironment;
2570
+ private uiNotification;
2571
+ private data;
2572
+ currentPasswordControl: FormControl;
2573
+ newPasswordControl: FormControl;
2574
+ confirmNewPasswordControl: FormControl;
2575
+ showPasswordControl: FormControl;
2576
+ title: string | null;
2577
+ userRef: number;
2578
+ username: string | null;
2579
+ admin: boolean;
2580
+ message: string | null;
2581
+ showPassword: boolean;
2582
+ passwordScore: number | null;
2583
+ readonly passwordStrengthLevels: number[];
2584
+ errorMsg: string | null;
2585
+ busy: boolean;
2586
+ private baseUrl;
2587
+ private subs;
2588
+ constructor(dialogRef: MatDialogRef<TruPasswordDialog>, http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, data: any);
2589
+ onShowPasswordClicked: () => void;
2590
+ canSubmit: () => boolean;
2591
+ onConfirm: () => void;
2592
+ onDismiss: () => void;
2593
+ ngOnInit(): void;
2594
+ ngOnDestroy(): void;
2595
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruPasswordDialog, never>;
2596
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruPasswordDialog, "tru-password-dialog", never, {}, {}, never, never, true, never>;
2597
+ }
2598
+
2599
+ type TruIframeViewMode = 'navigate' | 'request';
2600
+ declare class TruIframeViewConfig extends TruDesktopViewConfig {
2601
+ mode?: TruIframeViewMode;
2602
+ requestMethod?: string;
2603
+ requestHeaders?: Record<string, string>;
2604
+ requestBody?: unknown;
2605
+ clearOnDeactivate?: boolean;
2606
+ errorTitle?: string;
2607
+ }
2608
+
2609
+ declare class TruIframeView extends TruSearchViewBase {
2610
+ private httpClient;
2611
+ private uiNotification;
2612
+ view: TruIframeViewConfig;
2613
+ iframe: ElementRef<HTMLIFrameElement>;
2614
+ isBusy: boolean;
2615
+ private subs;
2616
+ private objectUrl;
2617
+ private clearedSrc;
2618
+ private clearedOnDeactivate;
2619
+ private hasStartedLoad;
2620
+ constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, httpClient: HttpClient, uiNotification: TruUiNotification);
2621
+ onLoad(_iframe: HTMLIFrameElement): void;
2622
+ ngOnInit(): void;
2623
+ ngOnDestroy(): void;
2624
+ protected getMode(): TruIframeViewMode;
2625
+ protected getErrorTitle(): string;
2626
+ protected getRequestMethod(): string;
2627
+ protected getRequestHeaders(): HttpHeaders;
2628
+ protected getRequestBody(): unknown;
2629
+ private revokeObjectUrl;
2630
+ private load;
2631
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruIframeView, never>;
2632
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruIframeView, "tru-iframe-view", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
2633
+ }
2634
+
2635
+ declare class TruToolbar implements OnInit {
2636
+ config: [] | null;
2637
+ constructor();
2638
+ ngOnInit(): void;
2639
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbar, never>;
2640
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbar, "tru-toolbar", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, ["*"], true, never>;
2641
+ }
2642
+
2643
+ declare class TruToolbarMenu {
2644
+ config: any;
2645
+ atLeastOneItemVisible: boolean;
2646
+ constructor();
2647
+ onDocumentClick: (event: Event) => void;
2648
+ ngAfterViewInit(): void;
2649
+ ngOnDestroy(): void;
2650
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarMenu, never>;
2651
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarMenu, "tru-toolbar-menu", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
2652
+ }
2653
+
2654
+ declare class TruToolbarButton implements OnInit {
2655
+ config: [] | null;
2656
+ icon: string;
2657
+ text: string;
2658
+ disabled: boolean;
2659
+ tooltip: string | null;
2660
+ type: string | undefined;
2661
+ onClick: EventEmitter<any>;
2662
+ onKeydown: EventEmitter<any>;
2663
+ constructor();
2664
+ ngOnInit(): void;
2665
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarButton, never>;
2666
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarButton, "tru-toolbar-button", never, { "config": { "alias": "config"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "onClick": "onClick"; "onKeydown": "onKeydown"; }, never, never, true, never>;
2667
+ }
2668
+
2669
+ declare class TruToolbarDropdown implements OnInit, AfterViewInit, OnChanges, DoCheck {
2670
+ config: [] | null;
2671
+ options: Array<ITruToolbarDropdownOption> | null;
2672
+ tooltip: string;
2673
+ multiple: boolean;
2674
+ filterable: boolean;
2675
+ filterTooltip: string;
2676
+ width: number;
2677
+ selectedOption: ITruToolbarDropdownOption;
2678
+ selectedOptionChange: EventEmitter<ITruToolbarDropdownOption>;
2679
+ disabled: boolean;
2680
+ selectionChange: EventEmitter<ITruToolbarDropdownOption[] | null>;
2681
+ select: MatSelect;
2682
+ filteredOptions: Array<ITruToolbarDropdownOption> | null;
2683
+ selectedOptions: Array<ITruToolbarDropdownOption>;
2684
+ selectAllState: MatPseudoCheckboxState;
2685
+ selectAllLabel: string;
2686
+ private filterValue;
2687
+ private visibleOptions;
2688
+ private readonly optionsDiffer;
2689
+ constructor(iterableDiffers: IterableDiffers);
2690
+ ngOnInit(): void;
2691
+ ngAfterViewInit(): void;
2692
+ ngOnChanges(changes: SimpleChanges): void;
2693
+ ngDoCheck(): void;
2694
+ toggleSelectAll: () => void;
2695
+ onSelectionChange: (event: MatSelectChange) => void;
2696
+ onFilterChange: (event: any) => void;
2697
+ isOptionVisible: (option: ITruToolbarDropdownOption) => boolean;
2698
+ private updateFilteredOptions;
2699
+ private updateSelectAllState;
2700
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarDropdown, never>;
2701
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarDropdown, "tru-toolbar-dropdown", never, { "config": { "alias": "config"; "required": false; }; "options": { "alias": "options"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "filterTooltip": { "alias": "filterTooltip"; "required": false; }; "width": { "alias": "width"; "required": false; }; "selectedOption": { "alias": "selectedOption"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectedOptionChange": "selectedOptionChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
2702
+ }
2703
+
2704
+ declare class TruToolbarSeparator {
2705
+ constructor();
2706
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarSeparator, never>;
2707
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarSeparator, "tru-toolbar-separator", never, {}, {}, never, never, true, never>;
2708
+ }
2709
+
2710
+ declare class TruToolbarContextFilter implements OnInit {
2711
+ private truContextFilters;
2712
+ filters: Array<TruContextFilter>;
2713
+ selected: any;
2714
+ constructor(truContextFilters: TruContextFilters);
2715
+ ngOnInit(): void;
2716
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarContextFilter, never>;
2717
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarContextFilter, "tru-toolbar-context-filter", never, {}, {}, never, never, true, never>;
2718
+ }
2719
+
2720
+ declare class TruToolbarText implements OnInit {
2721
+ config: [] | null;
2722
+ icon: string;
2723
+ text: string | null;
2724
+ tooltip: string | null;
2725
+ constructor();
2726
+ ngOnInit(): void;
2727
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarText, never>;
2728
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarText, "tru-toolbar-text", never, { "config": { "alias": "config"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
2729
+ }
2730
+
2731
+ declare class TruToolbarTextbox implements OnInit {
2732
+ config: [] | null;
2733
+ tooltip: string;
2734
+ value: string | null | undefined;
2735
+ width: number;
2736
+ valueChange: EventEmitter<string | null | undefined>;
2737
+ constructor();
2738
+ ngOnInit(): void;
2739
+ onValueChange(event: any): void;
2740
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarTextbox, never>;
2741
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarTextbox, "tru-toolbar-textbox", never, { "config": { "alias": "config"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "value": { "alias": "value"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
2742
+ }
2743
+
2744
+ declare class TruAuthLoginRequest {
2745
+ username: string;
2746
+ password: string;
2747
+ }
2748
+
2749
+ declare class TruAuthCache {
2750
+ prunables: Prunable[];
2751
+ registerPrunable(prunable: Prunable): void;
2752
+ pruneAll(): void;
2753
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAuthCache, never>;
2754
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2755
+ }
2756
+ interface Prunable {
2757
+ pruneCache(): void;
2758
+ }
2759
+
2760
+ interface TruAuthStrategy<T> {
2761
+ doLoginUser(data: T): void;
2762
+ doLogoutUser(): void;
2763
+ isLoggedIn(): boolean;
2764
+ createUser(user: TruUser): Observable<any>;
2765
+ }
2766
+
2767
+ declare class TruServerTouchTracker {
2768
+ private appEnvironment;
2769
+ private static readonly STORAGE_PREFIX;
2770
+ private lastServerTouchAtMs;
2771
+ private lastSessionRenewedAtMs;
2772
+ private readonly serverTouchSubject;
2773
+ private readonly sessionRenewedSubject;
2774
+ constructor(appEnvironment: TruAppEnvironment);
2775
+ get serverTouch$(): Observable<number>;
2776
+ get sessionRenewed$(): Observable<number>;
2777
+ getLastServerTouchAtMs(): number;
2778
+ getLastSessionRenewedAtMs(): number;
2779
+ recordServerTouch(atMs?: number): void;
2780
+ tryAcquireKeepaliveLock(ownerId: string, ttlMs: number, nowMs?: number): boolean;
2781
+ releaseKeepaliveLock(ownerId: string): void;
2782
+ private maybeRecordSessionRenewal;
2783
+ private recordSessionRenewed;
2784
+ private getStorageKey;
2785
+ private getStorageKeyPrefix;
2786
+ private readLock;
2787
+ private getAppScope;
2788
+ private getTimeoutMs;
2789
+ private setupCrossTabStorageSync;
2790
+ private readNumber;
2791
+ private writeNumber;
2792
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruServerTouchTracker, never>;
2793
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2794
+ }
2795
+
2796
+ declare class TruUserActivityTracker {
2797
+ private ngZone;
2798
+ private static readonly THROTTLE_MS;
2799
+ private lastActivityAtMs;
2800
+ private readonly activitySubject;
2801
+ constructor(ngZone: NgZone);
2802
+ get lastActivity$(): Observable<number>;
2803
+ getLastActivityAtMs(): number;
2804
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruUserActivityTracker, never>;
2805
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2806
+ }
2807
+
2808
+ declare class TruSessionKeepalive {
2809
+ private http;
2810
+ private appEnvironment;
2811
+ private serverTouchTracker;
2812
+ private activityTracker;
2813
+ private ngZone;
2814
+ private static readonly ACTIVITY_WINDOW_CAP_MS;
2815
+ private static readonly TICK_MS;
2816
+ private static readonly KEEPALIVE_AFTER_FRACTION;
2817
+ private static readonly MAX_JITTER_MS;
2818
+ private static readonly KEEPALIVE_LOCK_TTL_MS;
2819
+ private static readonly INITIAL_RETRY_DELAY_MS;
2820
+ private static readonly MAX_RETRY_DELAY_MS;
2821
+ private isRunning;
2822
+ private stop$;
2823
+ private subscriptions;
2824
+ private readonly tabId;
2825
+ private keepaliveLockHeld;
2826
+ private lastSessionRenewedAtMs;
2827
+ private nextAttemptAtMs;
2828
+ private consecutiveFailures;
2829
+ private requestInFlight;
2830
+ constructor(http: HttpClient, appEnvironment: TruAppEnvironment, serverTouchTracker: TruServerTouchTracker, activityTracker: TruUserActivityTracker, ngZone: NgZone);
2831
+ start(): void;
2832
+ stop(): void;
2833
+ private scheduleTicks;
2834
+ private ping;
2835
+ private tryAcquireKeepaliveLock;
2836
+ private releaseKeepaliveLock;
2837
+ private generateTabId;
2838
+ private syncSessionRenewal;
2839
+ private getKeepaliveAfterMs;
2840
+ private getActivityWindowMs;
2841
+ private getTimeoutMs;
2842
+ private getRetryDelayMs;
2843
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSessionKeepalive, never>;
2844
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2845
+ }
2846
+
2847
+ declare class TruSessionExpiryMonitor {
2848
+ private appEnvironment;
2849
+ private serverTouchTracker;
2850
+ private activityTracker;
2851
+ private uiNotification;
2852
+ private ngZone;
2853
+ private static readonly MIN_WARNING_MS;
2854
+ private static readonly MAX_WARNING_MS;
2855
+ private static readonly WARN_ONLY_IF_IDLE_MS;
2856
+ private isRunning;
2857
+ private onExpired;
2858
+ private subscriptions;
2859
+ private warnTimeoutId;
2860
+ private logoutTimeoutId;
2861
+ private currentExpiresAtMs;
2862
+ private warnedForExpiresAtMs;
2863
+ private warningToastId;
2864
+ private expiredToastId;
2865
+ constructor(appEnvironment: TruAppEnvironment, serverTouchTracker: TruServerTouchTracker, activityTracker: TruUserActivityTracker, uiNotification: TruUiNotification, ngZone: NgZone);
2866
+ start(onExpired: () => void): void;
2867
+ stop(): void;
2868
+ private scheduleFromRenewedAt;
2869
+ private handleWarning;
2870
+ private handleExpired;
2871
+ private clearWarningToast;
2872
+ private clearTimers;
2873
+ private getTimeoutMs;
2874
+ private getWarningLeadMs;
2875
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSessionExpiryMonitor, never>;
2876
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2877
+ }
2878
+
2879
+ declare class TruAuth {
2880
+ private router;
2881
+ private http;
2882
+ private cache;
2883
+ private user;
2884
+ private appEnvironment;
2885
+ private sessionKeepalive;
2886
+ private sessionExpiryMonitor;
2887
+ private auth;
2888
+ private loggedIn;
2889
+ private baseUrl;
2890
+ constructor(router: Router, http: HttpClient, cache: TruAuthCache, user: TruUser, appEnvironment: TruAppEnvironment, sessionKeepalive: TruSessionKeepalive, sessionExpiryMonitor: TruSessionExpiryMonitor, auth: TruAuthStrategy<any>);
2891
+ login(loginRequest: TruAuthLoginRequest | null): Observable<any>;
2892
+ setUser(): void;
2893
+ logout(): void;
2894
+ userClaims(): Observable<any>;
2895
+ get isLoggedIn(): Observable<boolean>;
2896
+ doLogoutAndRedirectToLogin(): void;
2897
+ private doLogoutUser;
2898
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAuth, never>;
2899
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2900
+ }
2901
+
2902
+ declare class TruToolbarAppCustomization {
2903
+ private dialog;
2904
+ private entityAccessor;
2905
+ private user;
2906
+ private auth;
2907
+ private uiNotification;
2908
+ private _dialog;
2909
+ fileInputElement: ElementRef;
2910
+ initial: string | null | undefined;
2911
+ name: string | null | undefined;
2912
+ email: string | null | undefined;
2913
+ constructor(dialog: MatDialog, entityAccessor: TruEntityAccessor, user: TruUser, auth: TruAuth, uiNotification: TruUiNotification);
2914
+ importFiles: (files: Array<File>) => void;
2915
+ onImportClicked: () => void;
2916
+ onSettingsClicked: () => void;
2917
+ onAboutClicked: () => void;
2918
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarAppCustomization, never>;
2919
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarAppCustomization, "tru-toolbar-app-customization", never, {}, {}, never, never, true, never>;
2920
+ }
2921
+
2922
+ declare class TruToolbarUserProfile {
2923
+ private user;
2924
+ private auth;
2925
+ private uiNotification;
2926
+ initial: string | null | undefined;
2927
+ name: string | null | undefined;
2928
+ email: string | null | undefined;
2929
+ constructor(user: TruUser, auth: TruAuth, uiNotification: TruUiNotification);
2930
+ onChangePasswordButtonClicked: () => void;
2931
+ onLogoutButtonClicked: () => void;
2932
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarUserProfile, never>;
2933
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarUserProfile, "tru-toolbar-user-profile", never, {}, {}, never, never, true, never>;
2934
+ }
2935
+
2936
+ declare class TruLogin implements OnInit {
2937
+ private auth;
2938
+ appEnvironment: TruAppEnvironment;
2939
+ loginForm: FormGroup<{
2940
+ username: FormControl<string | null>;
2941
+ password: FormControl<string | null>;
2942
+ }>;
2943
+ loginError: string;
2944
+ isLoggingIn: boolean;
2945
+ passwordVisible: boolean;
2946
+ title: string;
2947
+ constructor(auth: TruAuth, appEnvironment: TruAppEnvironment);
2948
+ ngOnInit(): void;
2949
+ get f(): {
2950
+ username: FormControl<string | null>;
2951
+ password: FormControl<string | null>;
2952
+ };
2953
+ get isWindowsAuth(): boolean;
2954
+ isDisabled: () => boolean;
2955
+ onSubmit(): void;
2956
+ private loginWithWindows;
2957
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruLogin, never>;
2958
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruLogin, "tru-login", never, {}, {}, never, never, false, never>;
2959
+ }
2960
+
2961
+ declare class MaterialModule {
2962
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
2963
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.A11yModule, typeof i2.CdkAccordionModule, typeof i3.ClipboardModule, typeof i4.CdkStepperModule, typeof i5.CdkTableModule, typeof i6.CdkTreeModule, typeof i7.DragDropModule, typeof i8.MatAutocompleteModule, typeof i9.MatBadgeModule, typeof i10.MatBottomSheetModule, typeof i11.MatButtonModule, typeof i12.MatButtonToggleModule, typeof i13.MatCardModule, typeof i14.MatCheckboxModule, typeof i15.MatChipsModule, typeof i16.MatStepperModule, typeof i17.MatDatepickerModule, typeof i18.MatDialogModule, typeof i19.MatDividerModule, typeof i20.MatExpansionModule, typeof i21.MatGridListModule, typeof i22.MatIconModule, typeof i23.MatInputModule, typeof i24.MatListModule, typeof i25.MatMenuModule, typeof i26.MatNativeDateModule, typeof i27.MatPaginatorModule, typeof i28.MatProgressBarModule, typeof i29.MatProgressSpinnerModule, typeof i30.MatRadioModule, typeof i26.MatRippleModule, typeof i31.MatSelectModule, typeof i32.MatSidenavModule, typeof i33.MatSliderModule, typeof i34.MatSlideToggleModule, typeof i35.MatSnackBarModule, typeof i36.MatSortModule, typeof i37.MatTableModule, typeof i38.MatTabsModule, typeof i39.MatToolbarModule, typeof i40.MatTooltipModule, typeof i41.MatTreeModule, typeof i42.OverlayModule, typeof i43.PortalModule, typeof i44.ScrollingModule]>;
2964
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
2965
+ }
2966
+
2967
+ declare class TruLoginModule {
2968
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruLoginModule, never>;
2969
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TruLoginModule, [typeof TruLogin], [typeof i1$1.CommonModule, typeof MaterialModule, typeof i4$1.FormsModule, typeof i4$1.ReactiveFormsModule, typeof i5$1.RouterModule], [typeof TruLogin]>;
2970
+ static ɵinj: i0.ɵɵInjectorDeclaration<TruLoginModule>;
2971
+ }
2972
+
2973
+ declare class TruAuthToken {
2974
+ accessToken: string;
2975
+ refreshToken: string;
2976
+ userClaims: string;
2977
+ constructor(accessToken: string, refreshToken: string, userClaims: string);
2978
+ }
2979
+
2980
+ declare class TruAuthJwtStrategy implements TruAuthStrategy<TruAuthToken> {
2981
+ private readonly JWT_ACCESS_TOKEN;
2982
+ private readonly JWT_REFRESH_TOKEN;
2983
+ doLoginUser(token: TruAuthToken): void;
2984
+ doLogoutUser(): void;
2985
+ isLoggedIn(): boolean;
2986
+ createUser(user: TruUser): Observable<any>;
2987
+ getJwtToken(): any;
2988
+ getDecodedJwtJsonData(): {};
2989
+ getToken(): any;
2990
+ }
2991
+
2992
+ declare class TruAuthInterceptor implements HttpInterceptor {
2993
+ private auth;
2994
+ private appEnvironment;
2995
+ private jwt;
2996
+ constructor(auth: TruAuth, appEnvironment: TruAppEnvironment, jwt: TruAuthJwtStrategy);
2997
+ intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
2998
+ private addToken;
2999
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruAuthInterceptor, never>;
3000
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3001
+ }
3002
+
3003
+ declare enum TruValidationDialogContext {
3004
+ Control = 0,
3005
+ Grid = 1,
3006
+ Card = 2
3007
+ }
3008
+
3009
+ declare class TruValidationDialogConfig {
3010
+ private _entity;
3011
+ private _propertyConfig;
3012
+ private _context;
3013
+ private _isSubProperty;
3014
+ private _ignore;
3015
+ private _propertyName;
3016
+ private _errorMsg;
3017
+ private _mergeData;
3018
+ get entity(): TruEntityBase;
3019
+ get propertyConfig(): TruEditControlConfigBase<any> | TruListControlConfigBase<any>;
3020
+ get context(): TruValidationDialogContext;
3021
+ get isSubProperty(): boolean;
3022
+ get ignore(): boolean;
3023
+ get propertyName(): string | null;
3024
+ set propertyName(value: string);
3025
+ get errorMsg(): string | null;
3026
+ set errorMsg(value: string);
3027
+ get mergeData(): TruMergeDataSet | null;
3028
+ set mergeData(value: TruMergeDataSet | null);
3029
+ constructor(entity: TruEntityBase, propertyConfig: TruEditControlConfigBase<any> | TruListControlConfigBase<any>, context?: TruValidationDialogContext, isSubProperty?: boolean, ignore?: boolean);
3030
+ }
3031
+
3032
+ declare class TruValidationDialog implements OnInit, OnDestroy {
3033
+ private renderer;
3034
+ private elementRef;
3035
+ private util;
3036
+ config: TruValidationDialogConfig;
3037
+ close: EventEmitter<any>;
3038
+ errorMsg: string;
3039
+ private rowElement;
3040
+ private cellElement;
3041
+ private listeners;
3042
+ constructor(renderer: Renderer2, elementRef: ElementRef, util: TruUtil);
3043
+ onAcceptAll: (event: MouseEvent) => void;
3044
+ onAccept: (event: MouseEvent) => void;
3045
+ onDecline: (event: MouseEvent) => void;
3046
+ ngOnInit(): void;
3047
+ ngAfterViewInit(): void;
3048
+ ngOnDestroy(): void;
3049
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruValidationDialog, never>;
3050
+ static ɵcmp: i0.ɵɵComponentDeclaration<TruValidationDialog, "tru-validation-dialog", never, { "config": { "alias": "config"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
3051
+ }
3052
+
3053
+ declare class TruBreezeValidator implements OnInit, OnDestroy {
3054
+ private el;
3055
+ private dataContext;
3056
+ private viewContainerRef;
3057
+ entity: any;
3058
+ config: TruEditControlConfigBase<any> | TruListControlConfigBase<any>;
3059
+ constructor(el: ElementRef, dataContext: TruDataContext, viewContainerRef: ViewContainerRef);
3060
+ configModel: any;
3061
+ mergeData: any;
3062
+ private dialogRef;
3063
+ private subs;
3064
+ private currentDialog;
3065
+ private context;
3066
+ private getMergeData;
3067
+ private parseErrorMessages;
3068
+ private addValidationDialog;
3069
+ private removeValidationDialog;
3070
+ valErrsChanged: (validationObject: any) => void;
3071
+ ngOnInit(): void;
3072
+ ngAfterViewInit(): void;
3073
+ ngOnChanges(changes: SimpleChanges): void;
3074
+ ngOnDestroy(): void;
3075
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeValidator, never>;
3076
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruBreezeValidator, "[truBreezeValidator]", never, { "entity": { "alias": "truBreezeValidator"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
3077
+ }
3078
+
3079
+ declare class TruSearchPanelPositionManager {
3080
+ private el;
3081
+ private renderer;
3082
+ config: any;
3083
+ private searchViewPortal;
3084
+ private tab;
3085
+ private dropZones;
3086
+ private dragHandles;
3087
+ private currentWidth;
3088
+ private currentMinWidth;
3089
+ private mouseOffsetX;
3090
+ private lastMouseX;
3091
+ private dragHandle;
3092
+ private listeners;
3093
+ private mousemoveListener;
3094
+ private mouseupListener;
3095
+ constructor(el: ElementRef, renderer: Renderer2);
3096
+ ngAfterViewInit(): void;
3097
+ private addTabEventListeners;
3098
+ private addDropzoneEventListeners;
3099
+ private addDragHandleEventListeners;
3100
+ private addPointerEvents;
3101
+ private removePointerEvents;
3102
+ private addMouseoverDropzoneStyles;
3103
+ private removeMouseoverDropzoneStyles;
3104
+ private dragStart;
3105
+ private dragEnd;
3106
+ private dragOver;
3107
+ private dragLeave;
3108
+ private drop;
3109
+ private mousedown;
3110
+ private mouseMove;
3111
+ private mouseUp;
3112
+ private updateSide;
3113
+ ngOnDestroy(): void;
3114
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchPanelPositionManager, never>;
3115
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruSearchPanelPositionManager, "[truSearchPanelPositionManager]", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
3116
+ }
3117
+
3118
+ declare class TruMatSelectPanel implements OnInit {
3119
+ private renderer;
3120
+ private select;
3121
+ private util;
3122
+ constructor(renderer: Renderer2, select: MatSelect, util: TruUtil);
3123
+ documentMouseUpEventFn: () => void;
3124
+ private removeListeners;
3125
+ private getTextWidth;
3126
+ ngOnInit(): void;
3127
+ ngOnDestroy(): void;
3128
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruMatSelectPanel, never>;
3129
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TruMatSelectPanel, "[tru-mat-select-panel]", never, {}, {}, never, never, true, never>;
3130
+ }
3131
+
3132
+ interface ITruValue<T> {
3133
+ onChange(): Subject<T>;
3134
+ change(value: T): void;
3135
+ $: T;
3136
+ }
3137
+
3138
+ declare class TruActionInvoke {
3139
+ private dataContext;
3140
+ private textManager;
3141
+ private desktopManager;
3142
+ private windowEventHandler;
3143
+ private uiNotification;
3144
+ private appEnvironment;
3145
+ private httpClient;
3146
+ private componentLookup;
3147
+ private modelTypeLookup;
3148
+ private globalDataContext;
3149
+ private user;
3150
+ constructor(dataContext: TruDataContext, textManager: TruTextManager, desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, uiNotification: TruUiNotification, appEnvironment: TruAppEnvironment, httpClient: HttpClient, componentLookup: TruComponentLookup, modelTypeLookup: TruModelTypeLookup, globalDataContext: TruGlobalDataContext, user: TruUser);
3151
+ /**
3152
+ * Creates an array of menu item config objects.
3153
+ * @param {object[]} menuItemConfigs - Menu item config configs(!)
3154
+ * @returns {object[]} - Configs.
3155
+ */
3156
+ createMenuConfigs: (menuItemConfigs: any) => any[];
3157
+ /**
3158
+ * Post to a URL that results in a file download.
3159
+ * @param {string} url
3160
+ * @param {string} actionRefs - Comma separated list of record refs.
3161
+ */
3162
+ executeHttpPostActionForDownload: (url: any, actionRefs: any) => void;
3163
+ /**
3164
+ * Execute an action that downloads a file.
3165
+ * @param {string} actionName
3166
+ * @param {string} actionRefs - Comma separated list of record refs.
3167
+ */
3168
+ executeActionForDownload: (actionName: any, actionRefs: any) => void;
3169
+ /**
3170
+ * Execute an action and show the resulting message.
3171
+ * @param {string} actionName - Name of an action.
3172
+ * @param {string} actionRefs - Comma separated list of record refs.
3173
+ */
3174
+ executeActionForMessage: (actionName: any, actionRefs: string) => void;
3175
+ /**
3176
+ * Queue the execution of an action.
3177
+ * @param {string} actionName - Name of an action.
3178
+ * @param {string} actionRefs - Comma separated list of record refs.
3179
+ * @param {string} actionLabel - Display name of the action.
3180
+ */
3181
+ queueAction: (actionName: string, actionRefs: string, actionLabel: string) => void;
3182
+ /**
3183
+ * Open a new window with a query function to an action that accepts a list of
3184
+ * record refs.
3185
+ * @param {string} actionName - Name of an action.
3186
+ * @param {string} actionRefs - Comma separated list of record refs.
3187
+ * @param {string} componentName - Name of the directive for the window view.
3188
+ * @param {object} data - Passed to view.
3189
+ */
3190
+ openWindowForQueryResultFromAction: (actionName: string, actionRefs: string, componentName: string, data: any) => void;
3191
+ /**
3192
+ * Open a new view with a URL and a list of record refs.
3193
+ * @param {string} url
3194
+ * @param {string} actionRefs - Comma separated list of record refs.
3195
+ * @param {string} actionLabel - Action label.
3196
+ * @param {string} windowCtrl - window manager.
3197
+ */
3198
+ openViewForReportFromUrl: (url: string, actionRefs: string, actionLabel: string, windowCtrl: string) => void;
3199
+ openStimulsoftPreview: (reportRef: string, actionRefs: string, reportName: string) => void;
3200
+ processCustomReport: (reportRef: string, actionRefs: string, mimeRef?: string) => void;
3201
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruActionInvoke, never>;
3202
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3203
+ }
3204
+
3205
+ declare class TruCloudFileManager {
3206
+ private appEnvironment;
3207
+ private util;
3208
+ private user;
3209
+ private baseUrl;
3210
+ private reader;
3211
+ private file;
3212
+ private sliceSize;
3213
+ constructor(appEnvironment: TruAppEnvironment, util: TruUtil, user: TruUser);
3214
+ private getFileLength;
3215
+ private uploadFile;
3216
+ upload: (tableName: string, propertyName: string, fileData: File, temp: any, updateProgress: (progress: number) => {}, done: (response: any | undefined) => {}) => void;
3217
+ download: (blobId: string, temp: any, filename: string, updateProgress: (progress: number) => {}, done: () => {}) => void;
3218
+ sasUrl: (blobId: string, temp: boolean, filename: string, updateProgress: () => {}, done: (blob: any) => {}) => void;
3219
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCloudFileManager, never>;
3220
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3221
+ }
3222
+
3223
+ declare abstract class TruCountry {
3224
+ abstract name: string;
3225
+ abstract iso2: string;
3226
+ abstract dialCode: string;
3227
+ abstract priority?: number | undefined;
3228
+ abstract areaCodes?: Array<string> | undefined;
3229
+ }
3230
+
3231
+ declare class TruCountries {
3232
+ private countries;
3233
+ constructor();
3234
+ private getAllCountries;
3235
+ all: () => Array<TruCountry>;
3236
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCountries, never>;
3237
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3238
+ }
3239
+
3240
+ interface TruEntityMetadata {
3241
+ entityTypeName: string;
3242
+ queryResourceName: string;
3243
+ primaryKeyName: string;
3244
+ }
3245
+ type TruEntityCtor = typeof TruEntityBase;
3246
+ declare class TruEntityMetadataRegistry {
3247
+ private static readonly metadataByEntity;
3248
+ static register(entity: TruEntityCtor, metadata: TruEntityMetadata): void;
3249
+ static get(entity: TruEntityCtor): TruEntityMetadata | undefined;
3250
+ static resolve(entity: TruEntityCtor): TruEntityMetadata;
3251
+ private static resolveFromBreeze;
3252
+ private static resolveFromConstructorName;
3253
+ private static normalize;
3254
+ private static getEntityTypeName;
3255
+ private static getPrimaryKeyName;
3256
+ private static shortNameFromQualifiedName;
3257
+ private static requireText;
3258
+ private static textOrUndefined;
3259
+ }
3260
+
3261
+ declare class TruPredicateMap {
3262
+ constructor();
3263
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruPredicateMap, never>;
3264
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3265
+ }
3266
+
3267
+ declare class TruReportManager {
3268
+ private dataContext;
3269
+ private modelTypeLookup;
3270
+ private appEnvironment;
3271
+ private actionInvoke;
3272
+ private user;
3273
+ constructor(dataContext: TruDataContext, modelTypeLookup: TruModelTypeLookup, appEnvironment: TruAppEnvironment, actionInvoke: TruActionInvoke, user: TruUser);
3274
+ private setupDownloadMenuImpl;
3275
+ private setupMrtMenuImpl;
3276
+ get(url: string, method: string, callback: (o: any) => any, params?: null): XMLHttpRequest;
3277
+ private setupMenu;
3278
+ queryReports: (tableName: string, menu: any, getActionRefs: () => string, enabled: () => {}) => Observable<any>;
3279
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruReportManager, never>;
3280
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3281
+ }
3282
+
3283
+ declare class TruSort {
3284
+ constructor();
3285
+ /**
3286
+ * @callback differenceCallback
3287
+ * @param {*} valueA - any value except for undefined or null
3288
+ * @param {*} valueB - any value except for undefined or null
3289
+ * @return {number} - <0 for a sorts before b, 0 for a sorts same as b, >0 for a sorts after b.
3290
+ */
3291
+ /**
3292
+ * A generalized comparison algorithm for use with a sort function. Ensures that null
3293
+ * sorts before non-null. Delegates to difference() for both non-null values.
3294
+ * @param {*} valueA - any value except for undefined
3295
+ * @param {*} valueB - any value except for undefined
3296
+ * @param {differenceCallback} difference - same result meaning as for this function.
3297
+ * @return {number} - <0 for a sorts before b, 0 for a sorts same as b, >0 for a sorts after b.
3298
+ */
3299
+ numCompare: (valueA: any, valueB: any, difference: any) => any;
3300
+ compare: (valueA: any, valueB: any, difference: any, inverted?: boolean) => any;
3301
+ /**
3302
+ * Sort comparison for unnamed, number field control config objects.
3303
+ * @param {object} a,b - control config
3304
+ * @returns {number}
3305
+ */
3306
+ numberCompare: (a: any, b: any) => any;
3307
+ /**
3308
+ * Alphabetical sort comparison for unnamed, string field control config objects.
3309
+ * @param {object} a,b - control config
3310
+ * @returns {number}
3311
+ */
3312
+ textCompare: (a: any, b: any) => any;
3313
+ dateCompare: (a: any, b: any) => number;
3314
+ dateSpanCompare: (a: any, b: any, nodeA: any, nodeB: any, isDescending: boolean, columnId: any) => number;
3315
+ /**
3316
+ * @callback filterCallback
3317
+ * @param {object} a,b - Control config
3318
+ * @returns {string}
3319
+ */
3320
+ /**
3321
+ * Alphabetical sort comparison for strings. Both input values are control config
3322
+ * objects and passed to a filter function to obtain a value for comparison.
3323
+ * @param {object} a,b - control config
3324
+ * @param {filterCallback} filter - filter function
3325
+ * @returns {number}
3326
+ */
3327
+ filteredTextCompare: (a: any, b: any, filter: any) => any;
3328
+ /**
3329
+ * Alphabetical sort comparison for strings. Both input values are control config
3330
+ * objects and passed to a filter function to obtain a value for comparison.
3331
+ * @param {object} entity - a breeze $entity
3332
+ * @param {array} pathSegments - a list of strings that make up a navigation path
3333
+ * @returns {value}
3334
+ */
3335
+ getValueFromSortPath: (entity: any, pathSegments: any) => any;
3336
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSort, never>;
3337
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3338
+ }
3339
+
3340
+ declare class TruUserPreferenceManager {
3341
+ private modelTypeLookup;
3342
+ private appEnvironment;
3343
+ private user;
3344
+ private globalDataContext;
3345
+ constructor(modelTypeLookup: TruModelTypeLookup, appEnvironment: TruAppEnvironment, user: TruUser);
3346
+ private setupQuery;
3347
+ /**
3348
+ * Queries for a preference for the current user. On success, completes
3349
+ * promise with the value or undefined if none.
3350
+ * @param {string} name - preference name
3351
+ * @returns {promise}
3352
+ */
3353
+ get: (name: string) => any;
3354
+ /**
3355
+ * Queries for all preferences for the current user. On success, completes
3356
+ * promise with an object loaded with the values indexed by name.
3357
+ * @returns {promise}
3358
+ */
3359
+ getAll: () => Promise<void>;
3360
+ /**
3361
+ * Saves the value of a preference. On success, completes promise with no value.
3362
+ * @param {string} name - preference name
3363
+ * @param {string} value - value text
3364
+ * @returns {promise}
3365
+ */
3366
+ set: (name: string, value: string) => Promise<void>;
3367
+ /**
3368
+ * Deletes a preference.
3369
+ * @param {string} name - preference name
3370
+ */
3371
+ eliminate: (name: string) => Promise<void>;
3372
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruUserPreferenceManager, never>;
3373
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
3374
+ }
3375
+
3376
+ declare global {
3377
+ export interface Number {
3378
+ numberToString(): string;
3379
+ nullableNumberToString(this: number | null | undefined): string;
3380
+ }
3381
+ }
3382
+
3383
+ declare class TruIconModule {
3384
+ constructor(sanitizer: DomSanitizer, iconRegistry: MatIconRegistry);
3385
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruIconModule, never>;
3386
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TruIconModule, never, [typeof i1$1.CommonModule, typeof i4$1.FormsModule], never>;
3387
+ static ɵinj: i0.ɵɵInjectorDeclaration<TruIconModule>;
3388
+ }
3389
+
3390
+ declare class TruSearchIconModule {
3391
+ constructor(sanitizer: DomSanitizer, iconRegistry: MatIconRegistry);
3392
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchIconModule, never>;
3393
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TruSearchIconModule, never, [typeof i1$1.CommonModule, typeof i4$1.FormsModule], never>;
3394
+ static ɵinj: i0.ɵɵInjectorDeclaration<TruSearchIconModule>;
3395
+ }
3396
+
3397
+ declare class TruCommonModule {
3398
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCommonModule, never>;
3399
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TruCommonModule, never, never, never>;
3400
+ static ɵinj: i0.ɵɵInjectorDeclaration<TruCommonModule>;
3401
+ }
3402
+
3403
+ export { TruAboutDialog, TruActionInvoke, TruAppEnvironment, TruAppSettingsDialog, TruAuth, TruAuthInterceptor, TruBreezeContext, TruBreezeContextFactory, TruBreezeMetadataProvider, TruBreezeValidator, TruCard, TruCardColumn, TruCardColumnData, TruCardColumnSearchResultsConfigBase, TruChoice, TruCloneView, TruCloudFileManager, TruColumn, TruCommonModule, TruComponentConfigBase, TruComponentLookup, TruConfirmDialog, TruConfirmDialogConfig, TruConnectionHub, TruContextFilter, TruContextFilterChoice, TruContextFilters, TruControlComponentConfigBase, TruCountries, TruDataChange, TruDataContext, TruDataGrid, TruDataGridCellRenderer, TruDataGridHeader, TruDataGridHeaderFilter, TruDataGridPkeyCellRenderer, TruDataGridRefHeader, TruDataGridTypes, TruDataGridUtil, TruDesktop, TruDesktopEventHandler, TruDesktopManager, TruDesktopViewConfig, TruDesktopViewEventNotifier, TruDetailViewBase, TruEditControlBase, TruEditControlConfigBase, TruEditParentControlConfigBase, TruEditPkeyControlConfigBase, TruEntityAccessor, TruEntityBase, TruEntityMetadataRegistry, TruErrorDialog, TruErrorInterceptor, TruExportDialog, TruExportDialogConfig, TruForm, TruFormatter, TruFormulaEval, TruGlobalDataContext, TruGridValidationDialog, TruGridValidationDialogConfig, TruGroupBox, TruIconModule, TruIframeView, TruIframeViewConfig, TruListControlConfigBase, TruLogin, TruLoginModule, TruMatSelectPanel, TruModelNavigationPropertiesLookup, TruModelPropertyLookup, TruModelTableLookup, TruModelTypeLookup, TruNameValue, TruNavigationPropertiesConfig, TruNavigationPropertyConfig, TruPasswordDialog, TruPredicate, TruPredicateMap, TruPropertyConfigBase, TruPropertyConfigCloudFile, TruPropertyConfigDate, TruPropertyConfigDecimal, TruPropertyConfigFile, TruPropertyConfigForeignKey, TruPropertyConfigInteger, TruPropertyConfigPassword, TruPropertyConfigPercentage, TruPropertyConfigScientific, TruPropertyConfigText, TruPropertyConfigTextChoices, TruPropertyConfigUsaAddress, TruPropertyConfigZipCode, TruQueryPredicateManager, TruReportManager, TruRow, TruSearchConfigBase, TruSearchControlBase, TruSearchControlConfigBase, TruSearchControlParentBase, TruSearchControlRangeBase, TruSearchIconModule, TruSearchPanelPositionManager, TruSearchResultViewBase, TruSearchResultViewManager, TruSearchViewBase, TruSearchViewControlEventHandler, TruSearchViewEventHandler, TruSort, TruTab, TruTabGroup, TruTableConfigBase, TruTextManager, TruToolbar, TruToolbarAppCustomization, TruToolbarButton, TruToolbarContextFilter, TruToolbarDropdown, TruToolbarMenu, TruToolbarSeparator, TruToolbarText, TruToolbarTextbox, TruToolbarUserProfile, TruUiNotification, TruUser, TruUserPreferenceManager, TruUtil, TruValidationDialog, TruValidationDialogConfig, TruValidationDialogContext, TruValidatorFactory, TruViewBase, TruViewMenuConfig, TruWindowActionEventHandler, TruWindowCloseEventArgs, TruWindowEventArgs, TruWindowEventHandler, TruWindowManager };
3404
+ export type { ActionEventCompleted, ITruAncestor, ITruCardColumnConfig, ITruDataGridConfig, ITruUser, ITruValue, TruCustomViewOptions, TruEntityMetadata, TruIframeViewMode };