@trudb/tru-common-lib 0.2.557 → 0.3.1

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 +1139 -783
  2. package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
  3. package/package.json +3 -3
  4. package/types/trudb-tru-common-lib.d.ts +3404 -0
  5. package/index.d.ts +0 -5
  6. package/lib/assets/tru-icon-module.d.ts +0 -11
  7. package/lib/assets/tru-search-icon-module.d.ts +0 -11
  8. package/lib/base-classes/tru-component-config-base.d.ts +0 -3
  9. package/lib/base-classes/tru-control-component-config-base.d.ts +0 -21
  10. package/lib/base-classes/tru-edit-control-base.d.ts +0 -10
  11. package/lib/base-classes/tru-edit-control-config-base.d.ts +0 -26
  12. package/lib/base-classes/tru-edit-parent-control-config-base.d.ts +0 -9
  13. package/lib/base-classes/tru-edit-pkey-control-config-base.d.ts +0 -11
  14. package/lib/base-classes/tru-entity-base.d.ts +0 -16
  15. package/lib/base-classes/tru-list-control-config-base.d.ts +0 -25
  16. package/lib/base-classes/tru-property-config-base.d.ts +0 -17
  17. package/lib/base-classes/tru-search-config-base.d.ts +0 -9
  18. package/lib/base-classes/tru-search-control-base.d.ts +0 -21
  19. package/lib/base-classes/tru-search-control-config-base.d.ts +0 -13
  20. package/lib/base-classes/tru-search-control-parent-base.d.ts +0 -16
  21. package/lib/base-classes/tru-search-control-range-base.d.ts +0 -25
  22. package/lib/base-classes/tru-table-config-base.d.ts +0 -13
  23. package/lib/base-views/detail/tru-detail-view-base.d.ts +0 -62
  24. package/lib/base-views/search/services/tru-search-view-control-event-handler.d.ts +0 -16
  25. package/lib/base-views/search/services/tru-search-view-event-handler.d.ts +0 -14
  26. package/lib/base-views/search/tru-search-view-base.d.ts +0 -38
  27. package/lib/base-views/search-result/tru-search-result-view-base.d.ts +0 -29
  28. package/lib/base-views/tru-view-base.d.ts +0 -37
  29. package/lib/classes/tru-choice.d.ts +0 -8
  30. package/lib/classes/tru-context-filter-choice.d.ts +0 -6
  31. package/lib/classes/tru-context-filter.d.ts +0 -10
  32. package/lib/classes/tru-country.d.ts +0 -7
  33. package/lib/classes/tru-data-change-parser.d.ts +0 -40
  34. package/lib/classes/tru-data-change.d.ts +0 -4
  35. package/lib/classes/tru-formula-eval.d.ts +0 -31
  36. package/lib/classes/tru-merge-data-set.d.ts +0 -11
  37. package/lib/classes/tru-merge-data.d.ts +0 -9
  38. package/lib/classes/tru-name-value.d.ts +0 -9
  39. package/lib/classes/tru-navigation-properties-config.d.ts +0 -5
  40. package/lib/classes/tru-navigation-property-config.d.ts +0 -5
  41. package/lib/classes/tru-predicate.d.ts +0 -8
  42. package/lib/classes/tru-property-config-cloud-file.d.ts +0 -4
  43. package/lib/classes/tru-property-config-date.d.ts +0 -6
  44. package/lib/classes/tru-property-config-decimal.d.ts +0 -8
  45. package/lib/classes/tru-property-config-file.d.ts +0 -5
  46. package/lib/classes/tru-property-config-foreign-key.d.ts +0 -9
  47. package/lib/classes/tru-property-config-integer.d.ts +0 -6
  48. package/lib/classes/tru-property-config-password.d.ts +0 -5
  49. package/lib/classes/tru-property-config-percentage.d.ts +0 -6
  50. package/lib/classes/tru-property-config-scientific.d.ts +0 -6
  51. package/lib/classes/tru-property-config-text-choices.d.ts +0 -5
  52. package/lib/classes/tru-property-config-text.d.ts +0 -7
  53. package/lib/classes/tru-property-config-usa-address.d.ts +0 -5
  54. package/lib/classes/tru-property-config-zip-code.d.ts +0 -5
  55. package/lib/classes/tru-query-predicate-manager.d.ts +0 -26
  56. package/lib/classes/tru-server-error.d.ts +0 -14
  57. package/lib/classes/tru-validator-factory.d.ts +0 -19
  58. package/lib/classes/tru-view-menu-config.d.ts +0 -8
  59. package/lib/components/about-dialog/tru-about-dialog.d.ts +0 -17
  60. package/lib/components/app-settings-dialog/tru-app-settings-dialog.d.ts +0 -16
  61. package/lib/components/app-settings-dialog/windows/classes/tru-window-open-on-start-setting.d.ts +0 -7
  62. package/lib/components/app-settings-dialog/windows/on-starup/tru-app-window-open-on-startup-setting.d.ts +0 -16
  63. package/lib/components/app-settings-dialog/windows/tru-app-window-settings.d.ts +0 -6
  64. package/lib/components/card-column/classes/tru-card-column-config.d.ts +0 -34
  65. package/lib/components/card-column/classes/tru-card-column-data.d.ts +0 -4
  66. package/lib/components/card-column/classes/tru-card-column-search-results-config-base.d.ts +0 -13
  67. package/lib/components/card-column/tru-card-column.d.ts +0 -85
  68. package/lib/components/card-column/tru-card.d.ts +0 -13
  69. package/lib/components/clone-view/tru-clone-view.d.ts +0 -76
  70. package/lib/components/confirm-dialog/tru-confirm-dialog.d.ts +0 -28
  71. package/lib/components/data-grid/classes/tru-data-grid-cell-renderer.d.ts +0 -10
  72. package/lib/components/data-grid/classes/tru-data-grid-config.d.ts +0 -25
  73. package/lib/components/data-grid/classes/tru-data-grid-pkey-cell-renderer.d.ts +0 -35
  74. package/lib/components/data-grid/enums/tru-data-grid-types.d.ts +0 -5
  75. package/lib/components/data-grid/headers/tru-data-grid-header-filter.d.ts +0 -35
  76. package/lib/components/data-grid/headers/tru-data-grid-header.d.ts +0 -25
  77. package/lib/components/data-grid/headers/tru-data-grid-ref-header.d.ts +0 -24
  78. package/lib/components/data-grid/overlays/tru-data-grid-loading-overlay/tru-data-grid-loading-overlay.d.ts +0 -13
  79. package/lib/components/data-grid/overlays/tru-data-grid-no-rows-overlay/tru-data-grid-no-rows-overlay.d.ts +0 -13
  80. package/lib/components/data-grid/services/tru-data-grid-clipboard.d.ts +0 -45
  81. package/lib/components/data-grid/services/tru-data-grid-util.d.ts +0 -16
  82. package/lib/components/data-grid/tru-data-grid.d.ts +0 -125
  83. package/lib/components/desktop/classes/tru-desktop-title.d.ts +0 -4
  84. package/lib/components/desktop/classes/tru-desktop-view-config.d.ts +0 -26
  85. package/lib/components/desktop/directives/resizable/tru-desktop-resizable.d.ts +0 -32
  86. package/lib/components/desktop/directives/window-state-monitor/tru-desktop-window-state-monitor.d.ts +0 -24
  87. package/lib/components/desktop/menubar/tru-desktop-menubar.d.ts +0 -15
  88. package/lib/components/desktop/services/tru-desktop-event-handler.d.ts +0 -11
  89. package/lib/components/desktop/services/tru-desktop-manager.d.ts +0 -37
  90. package/lib/components/desktop/services/tru-desktop-service.d.ts +0 -101
  91. package/lib/components/desktop/services/tru-desktop-view-event-notifier.d.ts +0 -10
  92. package/lib/components/desktop/services/tru-window-action-event-handler.d.ts +0 -12
  93. package/lib/components/desktop/services/tru-window-close-event-args.d.ts +0 -9
  94. package/lib/components/desktop/services/tru-window-event-args.d.ts +0 -24
  95. package/lib/components/desktop/services/tru-window-event-handler.d.ts +0 -23
  96. package/lib/components/desktop/services/tru-window-manager.d.ts +0 -14
  97. package/lib/components/desktop/statusbar/tru-desktop-statusbar.d.ts +0 -10
  98. package/lib/components/desktop/taskbar/tru-desktop-taskbar.d.ts +0 -15
  99. package/lib/components/desktop/tru-desktop.d.ts +0 -330
  100. package/lib/components/desktop/view/tru-desktop-view.d.ts +0 -17
  101. package/lib/components/desktop/viewport/tru-desktop-viewport.d.ts +0 -48
  102. package/lib/components/desktop/window/tru-desktop-window.d.ts +0 -196
  103. package/lib/components/error-dialog/classes/tru-error-dialog-config.d.ts +0 -6
  104. package/lib/components/error-dialog/services/tru-error-interceptor.d.ts +0 -11
  105. package/lib/components/error-dialog/tru-error-dialog.d.ts +0 -16
  106. package/lib/components/export-dialog/tru-export-dialog.d.ts +0 -26
  107. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog-config.d.ts +0 -24
  108. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog.d.ts +0 -24
  109. package/lib/components/iframe-view/classes/tru-iframe-view-config.d.ts +0 -10
  110. package/lib/components/iframe-view/tru-iframe-view.d.ts +0 -33
  111. package/lib/components/layout/column/tru-column.d.ts +0 -6
  112. package/lib/components/layout/form/tru-form.d.ts +0 -10
  113. package/lib/components/layout/group-box/tru-group-box.d.ts +0 -6
  114. package/lib/components/layout/row/tru-row.d.ts +0 -6
  115. package/lib/components/layout/tab/services/tru-tab-group-event-notifier.d.ts +0 -10
  116. package/lib/components/layout/tab/tab/tru-tab.d.ts +0 -13
  117. package/lib/components/layout/tab/tab-group/tru-tab-group.d.ts +0 -14
  118. package/lib/components/login/classes/tru-auth-config.d.ts +0 -16
  119. package/lib/components/login/classes/tru-auth-jwt-strategy.d.ts +0 -15
  120. package/lib/components/login/classes/tru-auth-login-request.d.ts +0 -4
  121. package/lib/components/login/classes/tru-auth-session-strategy.d.ts +0 -13
  122. package/lib/components/login/classes/tru-auth-strategy-provider.d.ts +0 -10
  123. package/lib/components/login/classes/tru-auth-token.d.ts +0 -6
  124. package/lib/components/login/classes/tru-auth-windows-strategy.d.ts +0 -9
  125. package/lib/components/login/services/tru-auth-cache.d.ts +0 -11
  126. package/lib/components/login/services/tru-auth-interceptor.d.ts +0 -16
  127. package/lib/components/login/services/tru-auth.d.ts +0 -33
  128. package/lib/components/login/services/tru-server-touch-interceptor.d.ts +0 -14
  129. package/lib/components/login/services/tru-server-touch-tracker.d.ts +0 -31
  130. package/lib/components/login/services/tru-session-expiry-monitor.d.ts +0 -37
  131. package/lib/components/login/services/tru-session-keepalive.d.ts +0 -44
  132. package/lib/components/login/services/tru-user-activity-tracker.d.ts +0 -14
  133. package/lib/components/login/tru-login-module.d.ts +0 -11
  134. package/lib/components/login/tru-login.d.ts +0 -29
  135. package/lib/components/password-dialog/classes/tru-password-change-request.d.ts +0 -6
  136. package/lib/components/password-dialog/tru-password-dialog.d.ts +0 -39
  137. package/lib/components/toolbar/app-customization/tru-toolbar-app-customization.d.ts +0 -26
  138. package/lib/components/toolbar/button/tru-toolbar-button.d.ts +0 -16
  139. package/lib/components/toolbar/classes/tru-toolbar-dropdown-option.d.ts +0 -4
  140. package/lib/components/toolbar/context-filter/tru-toolbar-context-filter.d.ts +0 -13
  141. package/lib/components/toolbar/dropdown/tru-toolbar-dropdown.d.ts +0 -39
  142. package/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button.d.ts +0 -7
  143. package/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item.d.ts +0 -17
  144. package/lib/components/toolbar/menu/tru-toolbar-menu.d.ts +0 -11
  145. package/lib/components/toolbar/separator/tru-toolbar-separator.d.ts +0 -6
  146. package/lib/components/toolbar/text/tru-toolbar-text.d.ts +0 -12
  147. package/lib/components/toolbar/textbox/tru-toolbar-textbox.d.ts +0 -14
  148. package/lib/components/toolbar/tru-toolbar.d.ts +0 -9
  149. package/lib/components/toolbar/user-profile/tru-toolbar-user-profile.d.ts +0 -17
  150. package/lib/components/validation-dialog/tru-validation-dialog-config.d.ts +0 -27
  151. package/lib/components/validation-dialog/tru-validation-dialog-context.d.ts +0 -5
  152. package/lib/components/validation-dialog/tru-validation-dialog.d.ts +0 -24
  153. package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +0 -31
  154. package/lib/directives/rendered/tru-rendered.d.ts +0 -8
  155. package/lib/directives/search-panel-position-manager/tru-search-panel-position-manager.d.ts +0 -40
  156. package/lib/directives/select-panel/tru-mat-select-panel.d.ts +0 -17
  157. package/lib/extensions.d.ts +0 -7
  158. package/lib/interfaces/tru-ancestor.d.ts +0 -7
  159. package/lib/interfaces/tru-value.d.ts +0 -6
  160. package/lib/material.module.d.ts +0 -50
  161. package/lib/pipes/open-on-start.d.ts +0 -7
  162. package/lib/services/tru-action-invoke.d.ts +0 -78
  163. package/lib/services/tru-app-environment.d.ts +0 -77
  164. package/lib/services/tru-breeze-context-factory.d.ts +0 -32
  165. package/lib/services/tru-breeze-metadata-provider.d.ts +0 -9
  166. package/lib/services/tru-cloud-file-manager.d.ts +0 -21
  167. package/lib/services/tru-component-lookup.d.ts +0 -10
  168. package/lib/services/tru-connection-hub.d.ts +0 -24
  169. package/lib/services/tru-context-filters.d.ts +0 -12
  170. package/lib/services/tru-countries.d.ts +0 -10
  171. package/lib/services/tru-data-context.d.ts +0 -66
  172. package/lib/services/tru-entity-accessor.d.ts +0 -83
  173. package/lib/services/tru-entity-metadata-registry.d.ts +0 -22
  174. package/lib/services/tru-error-manager.d.ts +0 -27
  175. package/lib/services/tru-formatter.d.ts +0 -46
  176. package/lib/services/tru-global-data-context.d.ts +0 -10
  177. package/lib/services/tru-model-navigation-properties-lookup.d.ts +0 -10
  178. package/lib/services/tru-model-property-lookup.d.ts +0 -10
  179. package/lib/services/tru-model-table-lookup.d.ts +0 -11
  180. package/lib/services/tru-model-type-lookup.d.ts +0 -10
  181. package/lib/services/tru-predicate-map.d.ts +0 -6
  182. package/lib/services/tru-report-manager.d.ts +0 -22
  183. package/lib/services/tru-search-result-view-manager.d.ts +0 -10
  184. package/lib/services/tru-sort.d.ts +0 -57
  185. package/lib/services/tru-text-manager.d.ts +0 -83
  186. package/lib/services/tru-ui-notification.d.ts +0 -42
  187. package/lib/services/tru-user-preference-manager.d.ts +0 -39
  188. package/lib/services/tru-user.d.ts +0 -29
  189. package/lib/services/tru-util.d.ts +0 -32
  190. package/lib/tru-common-module.d.ts +0 -6
  191. package/public-api.d.ts +0 -141
@@ -1,24 +0,0 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { TruUtil } from '../../services/tru-util';
3
- import { TruGridValidationDialogConfig } from './tru-grid-validation-dialog-config';
4
- import * as i0 from "@angular/core";
5
- export declare class TruGridValidationDialog implements OnInit, OnDestroy {
6
- private renderer;
7
- private elementRef;
8
- private util;
9
- config: TruGridValidationDialogConfig;
10
- close: EventEmitter<any>;
11
- errorMsg: string;
12
- private rowElement;
13
- private cellElement;
14
- private listeners;
15
- constructor(renderer: Renderer2, elementRef: ElementRef, util: TruUtil);
16
- onAcceptAll: () => void;
17
- onAccept: () => void;
18
- onDecline: () => void;
19
- ngOnInit(): void;
20
- ngAfterViewInit(): void;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TruGridValidationDialog, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TruGridValidationDialog, "tru-grid-validation-dialog", never, { "config": { "alias": "config"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
24
- }
@@ -1,10 +0,0 @@
1
- import { TruDesktopViewConfig } from '../../desktop/classes/tru-desktop-view-config';
2
- export type TruIframeViewMode = 'navigate' | 'request';
3
- export declare class TruIframeViewConfig extends TruDesktopViewConfig {
4
- mode?: TruIframeViewMode;
5
- requestMethod?: string;
6
- requestHeaders?: Record<string, string>;
7
- requestBody?: unknown;
8
- clearOnDeactivate?: boolean;
9
- errorTitle?: string;
10
- }
@@ -1,33 +0,0 @@
1
- import { HttpClient, HttpHeaders } from '@angular/common/http';
2
- import { ElementRef } from '@angular/core';
3
- import { TruSearchViewBase } from '../../base-views/search/tru-search-view-base';
4
- import { TruUiNotification } from '../../services/tru-ui-notification';
5
- import { TruDesktopManager } from '../desktop/services/tru-desktop-manager';
6
- import { TruWindowEventHandler } from '../desktop/services/tru-window-event-handler';
7
- import { TruIframeViewConfig, TruIframeViewMode } from './classes/tru-iframe-view-config';
8
- import * as i0 from "@angular/core";
9
- export declare class TruIframeView extends TruSearchViewBase {
10
- private httpClient;
11
- private uiNotification;
12
- view: TruIframeViewConfig;
13
- iframe: ElementRef<HTMLIFrameElement>;
14
- isBusy: boolean;
15
- private subs;
16
- private objectUrl;
17
- private clearedSrc;
18
- private clearedOnDeactivate;
19
- private hasStartedLoad;
20
- constructor(desktopManager: TruDesktopManager, windowEventHandler: TruWindowEventHandler, httpClient: HttpClient, uiNotification: TruUiNotification);
21
- onLoad(_iframe: HTMLIFrameElement): void;
22
- ngOnInit(): void;
23
- ngOnDestroy(): void;
24
- protected getMode(): TruIframeViewMode;
25
- protected getErrorTitle(): string;
26
- protected getRequestMethod(): string;
27
- protected getRequestHeaders(): HttpHeaders;
28
- protected getRequestBody(): unknown;
29
- private revokeObjectUrl;
30
- private load;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<TruIframeView, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<TruIframeView, "tru-iframe-view", never, { "view": { "alias": "view"; "required": false; }; }, {}, never, never, true, never>;
33
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruColumn {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TruColumn, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TruColumn, "tru-column", never, {}, {}, never, ["*"], true, never>;
6
- }
@@ -1,10 +0,0 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruForm implements AfterViewInit {
4
- private element;
5
- constructor(element: ElementRef);
6
- ngAfterViewInit(): void;
7
- private updateLayout;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruForm, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<TruForm, "tru-form", never, {}, {}, never, ["*"], true, never>;
10
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruGroupBox {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TruGroupBox, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TruGroupBox, "tru-group-box", never, {}, {}, never, ["*"], true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruRow {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TruRow, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TruRow, "tru-row", never, {}, {}, never, ["*"], true, never>;
6
- }
@@ -1,10 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class TruTabGroupEventNotifier {
4
- private active$;
5
- onActiveStateChanged: () => BehaviorSubject<boolean>;
6
- get isActive(): boolean;
7
- set isActive(value: boolean);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruTabGroupEventNotifier, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruTabGroupEventNotifier>;
10
- }
@@ -1,13 +0,0 @@
1
- import { MatTab } from '@angular/material/tabs';
2
- import { TruTabGroupEventNotifier } from '../services/tru-tab-group-event-notifier';
3
- import * as i0 from "@angular/core";
4
- export declare class TruTab {
5
- private tabGroupEventNotifier;
6
- view: any;
7
- label: string;
8
- matTab: MatTab;
9
- constructor(tabGroupEventNotifier: TruTabGroupEventNotifier);
10
- notifyListeners: (isActive: boolean) => void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TruTab, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TruTab, "tru-tab", never, { "view": { "alias": "view"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
13
- }
@@ -1,14 +0,0 @@
1
- import { QueryList } from '@angular/core';
2
- import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
3
- import { TruTab } from '../tab/tru-tab';
4
- import * as i0 from "@angular/core";
5
- export declare class TruTabGroup {
6
- tabGroup: MatTabGroup;
7
- protected tabs: QueryList<TruTab>;
8
- constructor();
9
- ngAfterViewInit(): void;
10
- onChange(event: MatTabChangeEvent): void;
11
- private setActiveTabByIndex;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TruTabGroup, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TruTabGroup, "tru-tab-group", never, {}, {}, ["tabs"], ["*"], true, never>;
14
- }
@@ -1,16 +0,0 @@
1
- import { InjectionToken } from "@angular/core";
2
- import { Observable } from "rxjs";
3
- import { TruUser } from "../../../services/tru-user";
4
- export interface TruAuthConfig {
5
- baseUrl: string;
6
- authUrl: string;
7
- auth: "session" | "token";
8
- }
9
- export declare const TRU_AUTH_CONFIG: TruAuthConfig;
10
- export interface TruAuthStrategy<T> {
11
- doLoginUser(data: T): void;
12
- doLogoutUser(): void;
13
- isLoggedIn(): boolean;
14
- createUser(user: TruUser): Observable<any>;
15
- }
16
- export declare const TRU_AUTH_STRATEGY: InjectionToken<TruAuthStrategy<any>>;
@@ -1,15 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { TruAuthToken } from "./tru-auth-token";
3
- import { TruUser } from "../../../services/tru-user";
4
- import { TruAuthStrategy } from "./tru-auth-config";
5
- export declare class TruAuthJwtStrategy implements TruAuthStrategy<TruAuthToken> {
6
- private readonly JWT_ACCESS_TOKEN;
7
- private readonly JWT_REFRESH_TOKEN;
8
- doLoginUser(token: TruAuthToken): void;
9
- doLogoutUser(): void;
10
- isLoggedIn(): boolean;
11
- createUser(user: TruUser): Observable<any>;
12
- getJwtToken(): any;
13
- getDecodedJwtJsonData(): {};
14
- getToken(): any;
15
- }
@@ -1,4 +0,0 @@
1
- export declare class TruAuthLoginRequest {
2
- username: string;
3
- password: string;
4
- }
@@ -1,13 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { TruAuthStrategy } from "./tru-auth-config";
3
- import { TruUser } from "../../../services/tru-user";
4
- import { Observable } from "rxjs";
5
- export declare class TruAuthSessionStrategy implements TruAuthStrategy<TruUser> {
6
- private http;
7
- private loggedUser?;
8
- constructor(http: HttpClient);
9
- doLoginUser(user: TruUser): void;
10
- doLogoutUser(): void;
11
- createUser(user: TruUser): Observable<any>;
12
- isLoggedIn(): boolean;
13
- }
@@ -1,10 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { TruAppEnvironment } from "../../../services/tru-app-environment";
3
- import { TruAuthJwtStrategy } from "./tru-auth-jwt-strategy";
4
- import { TruAuthSessionStrategy } from "./tru-auth-session-strategy";
5
- import { TruAuthWindowsStrategy } from "./tru-auth-windows-strategy";
6
- export declare const TruAuthStrategyProvider: {
7
- provide: import("@angular/core").InjectionToken<import("./tru-auth-config").TruAuthStrategy<any>>;
8
- deps: (typeof TruAppEnvironment | typeof HttpClient)[];
9
- useFactory: (http: HttpClient, appEnvironment: TruAppEnvironment) => TruAuthJwtStrategy | TruAuthSessionStrategy | TruAuthWindowsStrategy;
10
- };
@@ -1,6 +0,0 @@
1
- export declare class TruAuthToken {
2
- accessToken: string;
3
- refreshToken: string;
4
- userClaims: string;
5
- constructor(accessToken: string, refreshToken: string, userClaims: string);
6
- }
@@ -1,9 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { TruUser } from "../../../services/tru-user";
3
- import { TruAuthStrategy } from "./tru-auth-config";
4
- export declare class TruAuthWindowsStrategy implements TruAuthStrategy<TruUser> {
5
- doLoginUser(user: TruUser): void;
6
- doLogoutUser(): void;
7
- createUser(user: TruUser): Observable<any>;
8
- isLoggedIn(): boolean;
9
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruAuthCache {
3
- prunables: Prunable[];
4
- registerPrunable(prunable: Prunable): void;
5
- pruneAll(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TruAuthCache, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<TruAuthCache>;
8
- }
9
- export interface Prunable {
10
- pruneCache(): void;
11
- }
@@ -1,16 +0,0 @@
1
- import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
2
- import { Observable } from "rxjs";
3
- import { TruAuth } from "./tru-auth";
4
- import { TruAuthJwtStrategy } from "../classes/tru-auth-jwt-strategy";
5
- import { TruAppEnvironment } from "../../../services/tru-app-environment";
6
- import * as i0 from "@angular/core";
7
- export declare class TruAuthInterceptor implements HttpInterceptor {
8
- private auth;
9
- private appEnvironment;
10
- private jwt;
11
- constructor(auth: TruAuth, appEnvironment: TruAppEnvironment, jwt: TruAuthJwtStrategy);
12
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
13
- private addToken;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TruAuthInterceptor, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<TruAuthInterceptor>;
16
- }
@@ -1,33 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { Router } from "@angular/router";
3
- import { Observable } from "rxjs";
4
- import { TruAuthLoginRequest } from "../classes/tru-auth-login-request";
5
- import { TruAuthCache } from "./tru-auth-cache";
6
- import { TruAuthStrategy } from "../classes/tru-auth-config";
7
- import { TruUser } from "../../../services/tru-user";
8
- import { TruAppEnvironment } from "../../../services/tru-app-environment";
9
- import { TruSessionKeepalive } from "./tru-session-keepalive";
10
- import { TruSessionExpiryMonitor } from "./tru-session-expiry-monitor";
11
- import * as i0 from "@angular/core";
12
- export declare class TruAuth {
13
- private router;
14
- private http;
15
- private cache;
16
- private user;
17
- private appEnvironment;
18
- private sessionKeepalive;
19
- private sessionExpiryMonitor;
20
- private auth;
21
- private loggedIn;
22
- private baseUrl;
23
- constructor(router: Router, http: HttpClient, cache: TruAuthCache, user: TruUser, appEnvironment: TruAppEnvironment, sessionKeepalive: TruSessionKeepalive, sessionExpiryMonitor: TruSessionExpiryMonitor, auth: TruAuthStrategy<any>);
24
- login(loginRequest: TruAuthLoginRequest | null): Observable<any>;
25
- setUser(): void;
26
- logout(): void;
27
- userClaims(): Observable<any>;
28
- get isLoggedIn(): Observable<boolean>;
29
- doLogoutAndRedirectToLogin(): void;
30
- private doLogoutUser;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<TruAuth, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<TruAuth>;
33
- }
@@ -1,14 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { TruAppEnvironment } from '../../../services/tru-app-environment';
4
- import { TruServerTouchTracker } from './tru-server-touch-tracker';
5
- import * as i0 from "@angular/core";
6
- export declare class TruServerTouchInterceptor implements HttpInterceptor {
7
- private appEnvironment;
8
- private tracker;
9
- constructor(appEnvironment: TruAppEnvironment, tracker: TruServerTouchTracker);
10
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
11
- private isApiRequest;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TruServerTouchInterceptor, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<TruServerTouchInterceptor>;
14
- }
@@ -1,31 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { TruAppEnvironment } from '../../../services/tru-app-environment';
3
- import * as i0 from "@angular/core";
4
- export declare class TruServerTouchTracker {
5
- private appEnvironment;
6
- private static readonly STORAGE_PREFIX;
7
- private lastServerTouchAtMs;
8
- private lastSessionRenewedAtMs;
9
- private readonly serverTouchSubject;
10
- private readonly sessionRenewedSubject;
11
- constructor(appEnvironment: TruAppEnvironment);
12
- get serverTouch$(): Observable<number>;
13
- get sessionRenewed$(): Observable<number>;
14
- getLastServerTouchAtMs(): number;
15
- getLastSessionRenewedAtMs(): number;
16
- recordServerTouch(atMs?: number): void;
17
- tryAcquireKeepaliveLock(ownerId: string, ttlMs: number, nowMs?: number): boolean;
18
- releaseKeepaliveLock(ownerId: string): void;
19
- private maybeRecordSessionRenewal;
20
- private recordSessionRenewed;
21
- private getStorageKey;
22
- private getStorageKeyPrefix;
23
- private readLock;
24
- private getAppScope;
25
- private getTimeoutMs;
26
- private setupCrossTabStorageSync;
27
- private readNumber;
28
- private writeNumber;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<TruServerTouchTracker, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<TruServerTouchTracker>;
31
- }
@@ -1,37 +0,0 @@
1
- import { NgZone } from '@angular/core';
2
- import { TruAppEnvironment } from '../../../services/tru-app-environment';
3
- import { TruUiNotification } from '../../../services/tru-ui-notification';
4
- import { TruServerTouchTracker } from './tru-server-touch-tracker';
5
- import { TruUserActivityTracker } from './tru-user-activity-tracker';
6
- import * as i0 from "@angular/core";
7
- export declare class TruSessionExpiryMonitor {
8
- private appEnvironment;
9
- private serverTouchTracker;
10
- private activityTracker;
11
- private uiNotification;
12
- private ngZone;
13
- private static readonly MIN_WARNING_MS;
14
- private static readonly MAX_WARNING_MS;
15
- private static readonly WARN_ONLY_IF_IDLE_MS;
16
- private isRunning;
17
- private onExpired;
18
- private subscriptions;
19
- private warnTimeoutId;
20
- private logoutTimeoutId;
21
- private currentExpiresAtMs;
22
- private warnedForExpiresAtMs;
23
- private warningToastId;
24
- private expiredToastId;
25
- constructor(appEnvironment: TruAppEnvironment, serverTouchTracker: TruServerTouchTracker, activityTracker: TruUserActivityTracker, uiNotification: TruUiNotification, ngZone: NgZone);
26
- start(onExpired: () => void): void;
27
- stop(): void;
28
- private scheduleFromRenewedAt;
29
- private handleWarning;
30
- private handleExpired;
31
- private clearWarningToast;
32
- private clearTimers;
33
- private getTimeoutMs;
34
- private getWarningLeadMs;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<TruSessionExpiryMonitor, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<TruSessionExpiryMonitor>;
37
- }
@@ -1,44 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { NgZone } from '@angular/core';
3
- import { TruAppEnvironment } from '../../../services/tru-app-environment';
4
- import { TruServerTouchTracker } from './tru-server-touch-tracker';
5
- import { TruUserActivityTracker } from './tru-user-activity-tracker';
6
- import * as i0 from "@angular/core";
7
- export declare class TruSessionKeepalive {
8
- private http;
9
- private appEnvironment;
10
- private serverTouchTracker;
11
- private activityTracker;
12
- private ngZone;
13
- private static readonly ACTIVITY_WINDOW_CAP_MS;
14
- private static readonly TICK_MS;
15
- private static readonly KEEPALIVE_AFTER_FRACTION;
16
- private static readonly MAX_JITTER_MS;
17
- private static readonly KEEPALIVE_LOCK_TTL_MS;
18
- private static readonly INITIAL_RETRY_DELAY_MS;
19
- private static readonly MAX_RETRY_DELAY_MS;
20
- private isRunning;
21
- private stop$;
22
- private subscriptions;
23
- private readonly tabId;
24
- private keepaliveLockHeld;
25
- private lastSessionRenewedAtMs;
26
- private nextAttemptAtMs;
27
- private consecutiveFailures;
28
- private requestInFlight;
29
- constructor(http: HttpClient, appEnvironment: TruAppEnvironment, serverTouchTracker: TruServerTouchTracker, activityTracker: TruUserActivityTracker, ngZone: NgZone);
30
- start(): void;
31
- stop(): void;
32
- private scheduleTicks;
33
- private ping;
34
- private tryAcquireKeepaliveLock;
35
- private releaseKeepaliveLock;
36
- private generateTabId;
37
- private syncSessionRenewal;
38
- private getKeepaliveAfterMs;
39
- private getActivityWindowMs;
40
- private getTimeoutMs;
41
- private getRetryDelayMs;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<TruSessionKeepalive, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<TruSessionKeepalive>;
44
- }
@@ -1,14 +0,0 @@
1
- import { NgZone } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class TruUserActivityTracker {
5
- private ngZone;
6
- private static readonly THROTTLE_MS;
7
- private lastActivityAtMs;
8
- private readonly activitySubject;
9
- constructor(ngZone: NgZone);
10
- get lastActivity$(): Observable<number>;
11
- getLastActivityAtMs(): number;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TruUserActivityTracker, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<TruUserActivityTracker>;
14
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./tru-login";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../material.module";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/router";
7
- export declare class TruLoginModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruLoginModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<TruLoginModule, [typeof i1.TruLogin], [typeof i2.CommonModule, typeof i3.MaterialModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.RouterModule], [typeof i1.TruLogin]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<TruLoginModule>;
11
- }
@@ -1,29 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormGroup, FormControl } from '@angular/forms';
3
- import { TruAuth } from './services/tru-auth';
4
- import { TruAppEnvironment } from '../../services/tru-app-environment';
5
- import * as i0 from "@angular/core";
6
- export declare class TruLogin implements OnInit {
7
- private auth;
8
- appEnvironment: TruAppEnvironment;
9
- loginForm: FormGroup<{
10
- username: FormControl<string | null>;
11
- password: FormControl<string | null>;
12
- }>;
13
- loginError: string;
14
- isLoggingIn: boolean;
15
- passwordVisible: boolean;
16
- title: string;
17
- constructor(auth: TruAuth, appEnvironment: TruAppEnvironment);
18
- ngOnInit(): void;
19
- get f(): {
20
- username: FormControl<string | null>;
21
- password: FormControl<string | null>;
22
- };
23
- get isWindowsAuth(): boolean;
24
- isDisabled: () => boolean;
25
- onSubmit(): void;
26
- private loginWithWindows;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<TruLogin, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<TruLogin, "tru-login", never, {}, {}, never, never, false, never>;
29
- }
@@ -1,6 +0,0 @@
1
- export declare class TruPasswordChangeRequest {
2
- currentPassword: string;
3
- newPassword: string;
4
- userRef: number;
5
- admin: boolean;
6
- }
@@ -1,39 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { OnInit } from '@angular/core';
3
- import { FormControl } from '@angular/forms';
4
- import { MatDialogRef } from '@angular/material/dialog';
5
- import { TruAppEnvironment } from '../../services/tru-app-environment';
6
- import { TruUiNotification } from '../../services/tru-ui-notification';
7
- import * as i0 from "@angular/core";
8
- export declare class TruPasswordDialog implements OnInit {
9
- dialogRef: MatDialogRef<TruPasswordDialog>;
10
- private http;
11
- private appEnvironment;
12
- private uiNotification;
13
- private data;
14
- currentPasswordControl: FormControl;
15
- newPasswordControl: FormControl;
16
- confirmNewPasswordControl: FormControl;
17
- showPasswordControl: FormControl;
18
- title: string | null;
19
- userRef: number;
20
- username: string | null;
21
- admin: boolean;
22
- message: string | null;
23
- showPassword: boolean;
24
- passwordScore: number | null;
25
- errorMsg: string | null;
26
- busy: boolean;
27
- private baseUrl;
28
- private subs;
29
- constructor(dialogRef: MatDialogRef<TruPasswordDialog>, http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, data: any);
30
- onPasswordStrengthChanged: (score: number | null) => void;
31
- onShowPasswordClicked: () => void;
32
- canSubmit: () => boolean;
33
- onConfirm: () => void;
34
- onDismiss: () => void;
35
- ngOnInit(): void;
36
- ngOnDestroy(): void;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<TruPasswordDialog, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<TruPasswordDialog, "tru-password-dialog", never, {}, {}, never, never, true, never>;
39
- }
@@ -1,26 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { TruUiNotification } from '../../../services/tru-ui-notification';
3
- import { TruUser } from '../../../services/tru-user';
4
- import { TruAuth } from '../../login/services/tru-auth';
5
- import { TruEntityAccessor } from '../../../services/tru-entity-accessor';
6
- import { MatDialog } from '@angular/material/dialog';
7
- import * as i0 from "@angular/core";
8
- export declare class TruToolbarAppCustomization {
9
- private dialog;
10
- private entityAccessor;
11
- private user;
12
- private auth;
13
- private uiNotification;
14
- private _dialog;
15
- fileInputElement: ElementRef;
16
- initial: string | null | undefined;
17
- name: string | null | undefined;
18
- email: string | null | undefined;
19
- constructor(dialog: MatDialog, entityAccessor: TruEntityAccessor, user: TruUser, auth: TruAuth, uiNotification: TruUiNotification);
20
- importFiles: (files: Array<File>) => void;
21
- onImportClicked: () => void;
22
- onSettingsClicked: () => void;
23
- onAboutClicked: () => void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarAppCustomization, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarAppCustomization, "tru-toolbar-app-customization", never, {}, {}, never, never, true, never>;
26
- }
@@ -1,16 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruToolbarButton implements OnInit {
4
- config: [] | null;
5
- icon: string;
6
- text: string;
7
- disabled: boolean;
8
- tooltip: string | null;
9
- type: string | undefined;
10
- onClick: EventEmitter<any>;
11
- onKeydown: EventEmitter<any>;
12
- constructor();
13
- ngOnInit(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarButton, never>;
15
- 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>;
16
- }
@@ -1,4 +0,0 @@
1
- export interface ITruToolbarDropdownOption {
2
- label: string;
3
- value: any;
4
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { TruContextFilter } from '../../../classes/tru-context-filter';
3
- import { TruContextFilters } from '../../../services/tru-context-filters';
4
- import * as i0 from "@angular/core";
5
- export declare class TruToolbarContextFilter implements OnInit {
6
- private truContextFilters;
7
- filters: Array<TruContextFilter>;
8
- selected: any;
9
- constructor(truContextFilters: TruContextFilters);
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarContextFilter, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<TruToolbarContextFilter, "tru-toolbar-context-filter", never, {}, {}, never, never, true, never>;
13
- }