@trudb/tru-common-lib 0.2.556 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/fesm2022/trudb-tru-common-lib.mjs +1140 -783
  2. package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
  3. package/package.json +3 -3
  4. package/types/trudb-tru-common-lib.d.ts +3404 -0
  5. package/index.d.ts +0 -5
  6. package/lib/assets/tru-icon-module.d.ts +0 -11
  7. package/lib/assets/tru-search-icon-module.d.ts +0 -11
  8. package/lib/base-classes/tru-component-config-base.d.ts +0 -3
  9. package/lib/base-classes/tru-control-component-config-base.d.ts +0 -21
  10. package/lib/base-classes/tru-edit-control-base.d.ts +0 -10
  11. package/lib/base-classes/tru-edit-control-config-base.d.ts +0 -26
  12. package/lib/base-classes/tru-edit-parent-control-config-base.d.ts +0 -9
  13. package/lib/base-classes/tru-edit-pkey-control-config-base.d.ts +0 -11
  14. package/lib/base-classes/tru-entity-base.d.ts +0 -16
  15. package/lib/base-classes/tru-list-control-config-base.d.ts +0 -25
  16. package/lib/base-classes/tru-property-config-base.d.ts +0 -17
  17. package/lib/base-classes/tru-search-config-base.d.ts +0 -9
  18. package/lib/base-classes/tru-search-control-base.d.ts +0 -21
  19. package/lib/base-classes/tru-search-control-config-base.d.ts +0 -13
  20. package/lib/base-classes/tru-search-control-parent-base.d.ts +0 -16
  21. package/lib/base-classes/tru-search-control-range-base.d.ts +0 -25
  22. package/lib/base-classes/tru-table-config-base.d.ts +0 -13
  23. package/lib/base-views/detail/tru-detail-view-base.d.ts +0 -62
  24. package/lib/base-views/search/services/tru-search-view-control-event-handler.d.ts +0 -16
  25. package/lib/base-views/search/services/tru-search-view-event-handler.d.ts +0 -14
  26. package/lib/base-views/search/tru-search-view-base.d.ts +0 -38
  27. package/lib/base-views/search-result/tru-search-result-view-base.d.ts +0 -29
  28. package/lib/base-views/tru-view-base.d.ts +0 -37
  29. package/lib/classes/tru-choice.d.ts +0 -8
  30. package/lib/classes/tru-context-filter-choice.d.ts +0 -6
  31. package/lib/classes/tru-context-filter.d.ts +0 -10
  32. package/lib/classes/tru-country.d.ts +0 -7
  33. package/lib/classes/tru-data-change-parser.d.ts +0 -40
  34. package/lib/classes/tru-data-change.d.ts +0 -4
  35. package/lib/classes/tru-formula-eval.d.ts +0 -31
  36. package/lib/classes/tru-merge-data-set.d.ts +0 -11
  37. package/lib/classes/tru-merge-data.d.ts +0 -9
  38. package/lib/classes/tru-name-value.d.ts +0 -9
  39. package/lib/classes/tru-navigation-properties-config.d.ts +0 -5
  40. package/lib/classes/tru-navigation-property-config.d.ts +0 -5
  41. package/lib/classes/tru-predicate.d.ts +0 -8
  42. package/lib/classes/tru-property-config-cloud-file.d.ts +0 -4
  43. package/lib/classes/tru-property-config-date.d.ts +0 -6
  44. package/lib/classes/tru-property-config-decimal.d.ts +0 -8
  45. package/lib/classes/tru-property-config-file.d.ts +0 -5
  46. package/lib/classes/tru-property-config-foreign-key.d.ts +0 -9
  47. package/lib/classes/tru-property-config-integer.d.ts +0 -6
  48. package/lib/classes/tru-property-config-password.d.ts +0 -5
  49. package/lib/classes/tru-property-config-percentage.d.ts +0 -6
  50. package/lib/classes/tru-property-config-scientific.d.ts +0 -6
  51. package/lib/classes/tru-property-config-text-choices.d.ts +0 -5
  52. package/lib/classes/tru-property-config-text.d.ts +0 -7
  53. package/lib/classes/tru-property-config-usa-address.d.ts +0 -5
  54. package/lib/classes/tru-property-config-zip-code.d.ts +0 -5
  55. package/lib/classes/tru-query-predicate-manager.d.ts +0 -26
  56. package/lib/classes/tru-server-error.d.ts +0 -14
  57. package/lib/classes/tru-validator-factory.d.ts +0 -19
  58. package/lib/classes/tru-view-menu-config.d.ts +0 -8
  59. package/lib/components/about-dialog/tru-about-dialog.d.ts +0 -17
  60. package/lib/components/app-settings-dialog/tru-app-settings-dialog.d.ts +0 -16
  61. package/lib/components/app-settings-dialog/windows/classes/tru-window-open-on-start-setting.d.ts +0 -7
  62. package/lib/components/app-settings-dialog/windows/on-starup/tru-app-window-open-on-startup-setting.d.ts +0 -16
  63. package/lib/components/app-settings-dialog/windows/tru-app-window-settings.d.ts +0 -6
  64. package/lib/components/card-column/classes/tru-card-column-config.d.ts +0 -34
  65. package/lib/components/card-column/classes/tru-card-column-data.d.ts +0 -4
  66. package/lib/components/card-column/classes/tru-card-column-search-results-config-base.d.ts +0 -13
  67. package/lib/components/card-column/tru-card-column.d.ts +0 -85
  68. package/lib/components/card-column/tru-card.d.ts +0 -13
  69. package/lib/components/clone-view/tru-clone-view.d.ts +0 -76
  70. package/lib/components/confirm-dialog/tru-confirm-dialog.d.ts +0 -28
  71. package/lib/components/data-grid/classes/tru-data-grid-cell-renderer.d.ts +0 -10
  72. package/lib/components/data-grid/classes/tru-data-grid-config.d.ts +0 -25
  73. package/lib/components/data-grid/classes/tru-data-grid-pkey-cell-renderer.d.ts +0 -35
  74. package/lib/components/data-grid/enums/tru-data-grid-types.d.ts +0 -5
  75. package/lib/components/data-grid/headers/tru-data-grid-header-filter.d.ts +0 -35
  76. package/lib/components/data-grid/headers/tru-data-grid-header.d.ts +0 -25
  77. package/lib/components/data-grid/headers/tru-data-grid-ref-header.d.ts +0 -24
  78. package/lib/components/data-grid/overlays/tru-data-grid-loading-overlay/tru-data-grid-loading-overlay.d.ts +0 -13
  79. package/lib/components/data-grid/overlays/tru-data-grid-no-rows-overlay/tru-data-grid-no-rows-overlay.d.ts +0 -13
  80. package/lib/components/data-grid/services/tru-data-grid-clipboard.d.ts +0 -45
  81. package/lib/components/data-grid/services/tru-data-grid-util.d.ts +0 -16
  82. package/lib/components/data-grid/tru-data-grid.d.ts +0 -125
  83. package/lib/components/desktop/classes/tru-desktop-title.d.ts +0 -4
  84. package/lib/components/desktop/classes/tru-desktop-view-config.d.ts +0 -26
  85. package/lib/components/desktop/directives/resizable/tru-desktop-resizable.d.ts +0 -32
  86. package/lib/components/desktop/directives/window-state-monitor/tru-desktop-window-state-monitor.d.ts +0 -24
  87. package/lib/components/desktop/menubar/tru-desktop-menubar.d.ts +0 -15
  88. package/lib/components/desktop/services/tru-desktop-event-handler.d.ts +0 -11
  89. package/lib/components/desktop/services/tru-desktop-manager.d.ts +0 -37
  90. package/lib/components/desktop/services/tru-desktop-service.d.ts +0 -101
  91. package/lib/components/desktop/services/tru-desktop-view-event-notifier.d.ts +0 -10
  92. package/lib/components/desktop/services/tru-window-action-event-handler.d.ts +0 -12
  93. package/lib/components/desktop/services/tru-window-close-event-args.d.ts +0 -9
  94. package/lib/components/desktop/services/tru-window-event-args.d.ts +0 -24
  95. package/lib/components/desktop/services/tru-window-event-handler.d.ts +0 -23
  96. package/lib/components/desktop/services/tru-window-manager.d.ts +0 -14
  97. package/lib/components/desktop/statusbar/tru-desktop-statusbar.d.ts +0 -10
  98. package/lib/components/desktop/taskbar/tru-desktop-taskbar.d.ts +0 -15
  99. package/lib/components/desktop/tru-desktop.d.ts +0 -330
  100. package/lib/components/desktop/view/tru-desktop-view.d.ts +0 -17
  101. package/lib/components/desktop/viewport/tru-desktop-viewport.d.ts +0 -48
  102. package/lib/components/desktop/window/tru-desktop-window.d.ts +0 -196
  103. package/lib/components/error-dialog/classes/tru-error-dialog-config.d.ts +0 -6
  104. package/lib/components/error-dialog/services/tru-error-interceptor.d.ts +0 -11
  105. package/lib/components/error-dialog/tru-error-dialog.d.ts +0 -16
  106. package/lib/components/export-dialog/tru-export-dialog.d.ts +0 -26
  107. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog-config.d.ts +0 -24
  108. package/lib/components/grid-validation-dialog/tru-grid-validation-dialog.d.ts +0 -24
  109. package/lib/components/iframe-view/classes/tru-iframe-view-config.d.ts +0 -10
  110. package/lib/components/iframe-view/tru-iframe-view.d.ts +0 -33
  111. package/lib/components/layout/column/tru-column.d.ts +0 -6
  112. package/lib/components/layout/form/tru-form.d.ts +0 -10
  113. package/lib/components/layout/group-box/tru-group-box.d.ts +0 -6
  114. package/lib/components/layout/row/tru-row.d.ts +0 -6
  115. package/lib/components/layout/tab/services/tru-tab-group-event-notifier.d.ts +0 -10
  116. package/lib/components/layout/tab/tab/tru-tab.d.ts +0 -13
  117. package/lib/components/layout/tab/tab-group/tru-tab-group.d.ts +0 -14
  118. package/lib/components/login/classes/tru-auth-config.d.ts +0 -16
  119. package/lib/components/login/classes/tru-auth-jwt-strategy.d.ts +0 -15
  120. package/lib/components/login/classes/tru-auth-login-request.d.ts +0 -4
  121. package/lib/components/login/classes/tru-auth-session-strategy.d.ts +0 -13
  122. package/lib/components/login/classes/tru-auth-strategy-provider.d.ts +0 -10
  123. package/lib/components/login/classes/tru-auth-token.d.ts +0 -6
  124. package/lib/components/login/classes/tru-auth-windows-strategy.d.ts +0 -9
  125. package/lib/components/login/services/tru-auth-cache.d.ts +0 -11
  126. package/lib/components/login/services/tru-auth-interceptor.d.ts +0 -16
  127. package/lib/components/login/services/tru-auth.d.ts +0 -33
  128. package/lib/components/login/services/tru-server-touch-interceptor.d.ts +0 -14
  129. package/lib/components/login/services/tru-server-touch-tracker.d.ts +0 -31
  130. package/lib/components/login/services/tru-session-expiry-monitor.d.ts +0 -37
  131. package/lib/components/login/services/tru-session-keepalive.d.ts +0 -44
  132. package/lib/components/login/services/tru-user-activity-tracker.d.ts +0 -14
  133. package/lib/components/login/tru-login-module.d.ts +0 -11
  134. package/lib/components/login/tru-login.d.ts +0 -29
  135. package/lib/components/password-dialog/classes/tru-password-change-request.d.ts +0 -6
  136. package/lib/components/password-dialog/tru-password-dialog.d.ts +0 -39
  137. package/lib/components/toolbar/app-customization/tru-toolbar-app-customization.d.ts +0 -26
  138. package/lib/components/toolbar/button/tru-toolbar-button.d.ts +0 -16
  139. package/lib/components/toolbar/classes/tru-toolbar-dropdown-option.d.ts +0 -4
  140. package/lib/components/toolbar/context-filter/tru-toolbar-context-filter.d.ts +0 -13
  141. package/lib/components/toolbar/dropdown/tru-toolbar-dropdown.d.ts +0 -39
  142. package/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button.d.ts +0 -7
  143. package/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item.d.ts +0 -17
  144. package/lib/components/toolbar/menu/tru-toolbar-menu.d.ts +0 -11
  145. package/lib/components/toolbar/separator/tru-toolbar-separator.d.ts +0 -6
  146. package/lib/components/toolbar/text/tru-toolbar-text.d.ts +0 -12
  147. package/lib/components/toolbar/textbox/tru-toolbar-textbox.d.ts +0 -14
  148. package/lib/components/toolbar/tru-toolbar.d.ts +0 -9
  149. package/lib/components/toolbar/user-profile/tru-toolbar-user-profile.d.ts +0 -17
  150. package/lib/components/validation-dialog/tru-validation-dialog-config.d.ts +0 -27
  151. package/lib/components/validation-dialog/tru-validation-dialog-context.d.ts +0 -5
  152. package/lib/components/validation-dialog/tru-validation-dialog.d.ts +0 -24
  153. package/lib/directives/breeze-validator/tru-breeze-validator.d.ts +0 -31
  154. package/lib/directives/rendered/tru-rendered.d.ts +0 -8
  155. package/lib/directives/search-panel-position-manager/tru-search-panel-position-manager.d.ts +0 -40
  156. package/lib/directives/select-panel/tru-mat-select-panel.d.ts +0 -17
  157. package/lib/extensions.d.ts +0 -7
  158. package/lib/interfaces/tru-ancestor.d.ts +0 -7
  159. package/lib/interfaces/tru-value.d.ts +0 -6
  160. package/lib/material.module.d.ts +0 -50
  161. package/lib/pipes/open-on-start.d.ts +0 -7
  162. package/lib/services/tru-action-invoke.d.ts +0 -78
  163. package/lib/services/tru-app-environment.d.ts +0 -77
  164. package/lib/services/tru-breeze-context-factory.d.ts +0 -32
  165. package/lib/services/tru-breeze-metadata-provider.d.ts +0 -9
  166. package/lib/services/tru-cloud-file-manager.d.ts +0 -21
  167. package/lib/services/tru-component-lookup.d.ts +0 -10
  168. package/lib/services/tru-connection-hub.d.ts +0 -24
  169. package/lib/services/tru-context-filters.d.ts +0 -12
  170. package/lib/services/tru-countries.d.ts +0 -10
  171. package/lib/services/tru-data-context.d.ts +0 -66
  172. package/lib/services/tru-entity-accessor.d.ts +0 -83
  173. package/lib/services/tru-entity-metadata-registry.d.ts +0 -22
  174. package/lib/services/tru-error-manager.d.ts +0 -27
  175. package/lib/services/tru-formatter.d.ts +0 -46
  176. package/lib/services/tru-global-data-context.d.ts +0 -10
  177. package/lib/services/tru-model-navigation-properties-lookup.d.ts +0 -10
  178. package/lib/services/tru-model-property-lookup.d.ts +0 -10
  179. package/lib/services/tru-model-table-lookup.d.ts +0 -11
  180. package/lib/services/tru-model-type-lookup.d.ts +0 -10
  181. package/lib/services/tru-predicate-map.d.ts +0 -6
  182. package/lib/services/tru-report-manager.d.ts +0 -22
  183. package/lib/services/tru-search-result-view-manager.d.ts +0 -10
  184. package/lib/services/tru-sort.d.ts +0 -57
  185. package/lib/services/tru-text-manager.d.ts +0 -83
  186. package/lib/services/tru-ui-notification.d.ts +0 -42
  187. package/lib/services/tru-user-preference-manager.d.ts +0 -39
  188. package/lib/services/tru-user.d.ts +0 -29
  189. package/lib/services/tru-util.d.ts +0 -32
  190. package/lib/tru-common-module.d.ts +0 -6
  191. package/public-api.d.ts +0 -141
@@ -1,24 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import { TruEntityBase } from '../base-classes/tru-entity-base';
3
- import { TruDataChange } from '../classes/tru-data-change';
4
- import { TruAppEnvironment } from './tru-app-environment';
5
- import { TruUser } from './tru-user';
6
- import { TruDataContext } from './tru-data-context';
7
- import { TruModelPropertyLookup } from './tru-model-property-lookup';
8
- import { TruModelTypeLookup } from './tru-model-type-lookup';
9
- import * as i0 from "@angular/core";
10
- export declare class TruConnectionHub {
11
- private dataContext;
12
- private appEnvironment;
13
- private user;
14
- private modelTypeLookup;
15
- private modelPropertyLookup;
16
- private connection;
17
- constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, user: TruUser, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
18
- disconnect: () => void;
19
- connect: () => void;
20
- start: () => void;
21
- subscribe: (dataContext: TruDataContext, entity: typeof TruEntityBase, tableName: string, addEntity: (newEntity: any) => void, getLatestResults: () => any, getLatestQuery: () => any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean) => Subject<TruDataChange>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TruConnectionHub, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<TruConnectionHub>;
24
- }
@@ -1,12 +0,0 @@
1
- import { TruContextFilter } from "../classes/tru-context-filter";
2
- import { TruContextFilterChoice } from "../classes/tru-context-filter-choice";
3
- import * as i0 from "@angular/core";
4
- export declare class TruContextFilters {
5
- filters: Array<TruContextFilter>;
6
- valueFor: (tableName: string) => number | undefined;
7
- value: () => TruContextFilterChoice | undefined;
8
- label: () => string;
9
- constructor();
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TruContextFilters, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<TruContextFilters>;
12
- }
@@ -1,10 +0,0 @@
1
- import { TruCountry } from '../classes/tru-country';
2
- import * as i0 from "@angular/core";
3
- export declare class TruCountries {
4
- private countries;
5
- constructor();
6
- private getAllCountries;
7
- all: () => Array<TruCountry>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruCountries, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruCountries>;
10
- }
@@ -1,66 +0,0 @@
1
- import { Entity, EntityChangedEventArgs, EntityType, ValidationError } from "breeze-client";
2
- import { Observable, Subject } from 'rxjs';
3
- import { TruDataChange } from '../classes/tru-data-change';
4
- import { ITruAncestor } from '../interfaces/tru-ancestor';
5
- import { TruAppEnvironment } from './tru-app-environment';
6
- import { TruBreezeContext, TruBreezeContextFactory } from './tru-breeze-context-factory';
7
- import { TruEntityAccessor } from './tru-entity-accessor';
8
- import { TruGlobalDataContext } from './tru-global-data-context';
9
- import { TruModelNavigationPropertiesLookup } from './tru-model-navigation-properties-lookup';
10
- import { TruUiNotification } from './tru-ui-notification';
11
- import * as i0 from "@angular/core";
12
- export declare class TruDataContext {
13
- private breezeContextFactory;
14
- private modelNavigationPropertiesLookup;
15
- private globalDataContext;
16
- private appEnvironment;
17
- private entityAccessor;
18
- private uiNotification;
19
- private _propertyChanged$;
20
- private _entityAdded$;
21
- private _dataChanged$;
22
- private _breezeContext;
23
- private _pendingDeleteEntities;
24
- private _pendingCascadeDeleteEntities;
25
- private updateDependants$;
26
- constructor(breezeContextFactory: TruBreezeContextFactory, modelNavigationPropertiesLookup: TruModelNavigationPropertiesLookup, globalDataContext: TruGlobalDataContext, appEnvironment: TruAppEnvironment, entityAccessor: TruEntityAccessor, uiNotification: TruUiNotification);
27
- onPropertyChanged(): Subject<any>;
28
- propertyChanged(changeArgs: EntityChangedEventArgs | null): void;
29
- onEntityAdded(): Subject<any>;
30
- entityAdded(changeArgs: EntityChangedEventArgs | null): void;
31
- onDataChanged(): Subject<TruDataChange>;
32
- dataChanged(change: TruDataChange): void;
33
- validationChangeDetection: Observable<unknown>;
34
- parseErrorMessages: (validationErrors: Array<ValidationError>) => string;
35
- getValidationErrorsForProperty: (entity: Entity, propertyName: string) => any;
36
- getValidationErrors: (entities?: Array<Entity> | null) => any;
37
- private modelPropertyChangeHandler;
38
- private modelPropertyOnSaveHandler;
39
- private modelPropertyOnAddHandler;
40
- private modelPropertyOnRejectHandler;
41
- /**
42
- * Handles breeze entity changed event.
43
- */
44
- private entityChangedHandler;
45
- private formatValidationErrors;
46
- private findCachedCascadeDeleteDescendants;
47
- private markCachedDescendantsForDelete;
48
- private markForDelete;
49
- get breezeContext(): TruBreezeContext;
50
- get entityManager(): import("breeze-client").EntityManager;
51
- get onHasChanged(): import("breeze-client").BreezeEvent<import("breeze-client").HasChangesChangedEventArgs>;
52
- hasChanged: () => Entity[];
53
- hasChanges: (entityTypes?: Array<EntityType>) => Entity[];
54
- entityAccess: () => TruEntityAccessor;
55
- exportCahce: () => void;
56
- onUpdateDependants(): Subject<ITruAncestor>;
57
- updateDependants: (table: string, ancestorRef: string, entity: any) => void;
58
- save: (entities?: Array<Entity> | null, deleteOperation?: boolean) => Promise<void>;
59
- saveWithoutNotification: () => Promise<void>;
60
- saveSettings: () => Promise<void>;
61
- revert: () => void;
62
- revertWithoutPrompt: () => void;
63
- delete: (entities: Array<Entity>, confirmMsg: string, onSuccess?: Function | undefined) => void;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<TruDataContext, never>;
65
- static ɵprov: i0.ɵɵInjectableDeclaration<TruDataContext>;
66
- }
@@ -1,83 +0,0 @@
1
- import { Entity } from "breeze-client";
2
- import { TruEntityBase } from '../base-classes/tru-entity-base';
3
- import { TruUiNotification } from "./tru-ui-notification";
4
- import { TruDataContext } from "./tru-data-context";
5
- import { HttpClient } from "@angular/common/http";
6
- import { Observable } from 'rxjs';
7
- import { TruAppEnvironment } from "./tru-app-environment";
8
- import { TruChoice } from "../classes/tru-choice";
9
- import { TruNameValue } from "../classes/tru-name-value";
10
- import { TruUser } from "./tru-user";
11
- import { TruTextManager } from "./tru-text-manager";
12
- import * as i0 from "@angular/core";
13
- export declare class TruEntityAccessor {
14
- private httpClient;
15
- private appEnvironment;
16
- private uiNotification;
17
- private textManager;
18
- private user;
19
- private _breezeContext;
20
- private _entityManager;
21
- private _maxRecordCount;
22
- private _baseUrl;
23
- constructor(httpClient: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification, textManager: TruTextManager, user: TruUser);
24
- set context(dataContext: TruDataContext);
25
- private getQueryServiceName;
26
- private getPrimaryKeyName;
27
- private getEntityTypeName;
28
- private warnIfMaxRecords;
29
- private formatQueryChoices;
30
- private formatNameValues;
31
- add: (entity: typeof TruEntityBase, contextFilters?: any) => Entity;
32
- search: (entity: typeof TruEntityBase, setupQuery: any | null | undefined, expands: [] | null, global: boolean) => Observable<Entity[]>;
33
- searchCacheOnly: (entity: typeof TruEntityBase, setupQuery?: any | null, expands?: [] | null) => Observable<Entity[]>;
34
- searchCacheOnlySynchronously: (entity: typeof TruEntityBase, setupQuery?: any | null, expands?: [] | null) => Array<any>;
35
- searchByRefCacheOnlySynchronously: (entity: typeof TruEntityBase, ref?: number | null | undefined) => Array<any>;
36
- 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[]>;
37
- searchNameValuesCacheOnly: (entity: typeof TruEntityBase, setupQuery?: any | null, ref?: number | null | undefined) => Observable<TruNameValue[]>;
38
- searchByRef: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<TruChoice[]>;
39
- searchByRefPreferedCache: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<any>;
40
- searchByRefCacheOnly: (entity: typeof TruEntityBase, ref: number | null | undefined, includeDeleted?: boolean) => any;
41
- searchByRefServerOnly: (entity: typeof TruEntityBase, ref: number | null | undefined, expands?: [] | null) => Observable<any>;
42
- private propertyPathValues;
43
- private propertyPathIsLoaded;
44
- private predicateIsLocallyEvaluable;
45
- private queryIsLocallyEvaluable;
46
- searchByRefArrayCacheOnly: (entity: typeof TruEntityBase, setupQuery: any | null | undefined, refs: Array<number>, includeDeleted?: boolean) => any[] | null | undefined;
47
- searchByRefWithQuery: (entity: typeof TruEntityBase, setupQuery: any, ref: number) => Observable<Entity[]>;
48
- searchUserByRefCacheOnly: (ref: number | null | undefined, includeDeleted?: boolean) => any;
49
- customSearch: (entity: typeof TruEntityBase, query: any) => Observable<any>;
50
- clone: (data: object) => Observable<Object>;
51
- export: (entity: typeof TruEntityBase, gridSpec: string, setupQuery: any | null, entityRefs: string | null, options: any) => void;
52
- downloadFromUrl: (url: string, data: any) => void;
53
- downloadFromService: (serviceName: string, data: any) => void;
54
- uploadFromUrl: (url: string, data: FormData) => void;
55
- /**
56
- * Request an action.
57
- * @param {string} actionName - Name of the action.
58
- * @param {string} entityRefs - Comma separated list of entity pkey values.
59
- * @returns {promise} on success, passes the results to success handler;
60
- * on failure, passes exception to fail handler.
61
- */
62
- requestAction: (actionName: string, entityRefs: string) => Observable<any>;
63
- private saveDownloadedFile;
64
- private extractFilenameFromContentDisposition;
65
- /**
66
- * Imports the data of a set of files.
67
- *
68
- * IMPLEMENTATION
69
- * The input element stores the list of files the user selects. If the user were to
70
- * use the same input element to select the same file(s) the next time, then the input
71
- * element would not fire the change event -- resulting in no import. Therefore, need
72
- * to clear the file selection. The implementation of clearing is slightly different
73
- * for IE vs. Chrome. In Chrome, clearing the selection (by setting the element value
74
- * to null) results in clearing the FileList object that was passed to the change handler
75
- * (this function). Therefore, need to clear the selection _after_ using the passed
76
- * FileList object. For IE, clearing the selection does not clear the FileList passed
77
- * to the handler, but it does cause the change handler to fire. To ignore this event,
78
- * return if the FileList is empty -- which it is since just cleared it.
79
- */
80
- import: (files: Array<File>) => void;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<TruEntityAccessor, never>;
82
- static ɵprov: i0.ɵɵInjectableDeclaration<TruEntityAccessor>;
83
- }
@@ -1,22 +0,0 @@
1
- import { TruEntityBase } from '../base-classes/tru-entity-base';
2
- export interface TruEntityMetadata {
3
- entityTypeName: string;
4
- queryResourceName: string;
5
- primaryKeyName: string;
6
- }
7
- type TruEntityCtor = typeof TruEntityBase;
8
- export declare class TruEntityMetadataRegistry {
9
- private static readonly metadataByEntity;
10
- static register(entity: TruEntityCtor, metadata: TruEntityMetadata): void;
11
- static get(entity: TruEntityCtor): TruEntityMetadata | undefined;
12
- static resolve(entity: TruEntityCtor): TruEntityMetadata;
13
- private static resolveFromBreeze;
14
- private static resolveFromConstructorName;
15
- private static normalize;
16
- private static getEntityTypeName;
17
- private static getPrimaryKeyName;
18
- private static shortNameFromQualifiedName;
19
- private static requireText;
20
- private static textOrUndefined;
21
- }
22
- export {};
@@ -1,27 +0,0 @@
1
- import { ApplicationRef, ComponentFactoryResolver, Injector } from "@angular/core";
2
- import { TruUiNotification } from "./tru-ui-notification";
3
- import { TruTextManager } from "./tru-text-manager";
4
- import { MatDialog } from "@angular/material/dialog";
5
- import { HttpClient, HttpErrorResponse } from "@angular/common/http";
6
- import { TruAppEnvironment } from "./tru-app-environment";
7
- import { TruComponentLookup } from "./tru-component-lookup";
8
- import * as i0 from "@angular/core";
9
- export declare class TruErrorManager {
10
- private http;
11
- private dialog;
12
- private textManager;
13
- private uiNotification;
14
- private componentLookup;
15
- private componentFactoryResolver;
16
- private appRef;
17
- private injector;
18
- private appEnvironment;
19
- private baseUrl;
20
- private appName;
21
- constructor(http: HttpClient, dialog: MatDialog, textManager: TruTextManager, uiNotification: TruUiNotification, componentLookup: TruComponentLookup, componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector, appEnvironment: TruAppEnvironment);
22
- private handleClientSideError;
23
- private handleServerSideError;
24
- handleError: (error: HttpErrorResponse) => void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TruErrorManager, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<TruErrorManager>;
27
- }
@@ -1,46 +0,0 @@
1
- import { TruAppEnvironment } from "./tru-app-environment";
2
- import { TruModelTypeLookup } from "./tru-model-type-lookup";
3
- import * as i0 from "@angular/core";
4
- export declare class TruFormatter {
5
- private appEnvironemt;
6
- private modelTypeLookup;
7
- constructor(appEnvironemt: TruAppEnvironment, modelTypeLookup: TruModelTypeLookup);
8
- private formatDate;
9
- private isDate;
10
- private isPromise;
11
- bigInteger: (cfg: any) => any;
12
- boolean: (cfg: any) => "True" | "False" | null;
13
- choiceLabel: (cfg: any) => any;
14
- dateShort: (cfg: any) => string | null;
15
- datetimeShort: (cfg: any) => string | null;
16
- datetimespanShort: (cfg: any) => string;
17
- decimal: (cfg: any) => any;
18
- excelFormula: (val: any) => any;
19
- file: (cfg: any) => string | null;
20
- float: (cfg: any) => any;
21
- id: (value: string | null) => string | null;
22
- integer: (cfg: any) => any;
23
- intlAddress: (cfg: any) => string;
24
- intlAddressBasic: (cfg: any) => string;
25
- naPhone: (config: any) => string | null;
26
- intlPhone: (cfg: any) => string;
27
- password: (cfg: any) => "" | "********" | null;
28
- percentage: (cfg: any) => any;
29
- picture: (cfg: any) => string;
30
- ref: (cfg: any) => any;
31
- richText: (cfg: any) => any;
32
- socialSecurityNumber: (cfg: any) => string | null;
33
- text: (cfg: any) => any;
34
- textFormatting: (text: any) => any;
35
- timeShort: (cfg: any) => string | null;
36
- timeSpanHhMmSs: (cfg: any) => string;
37
- usaAddress: (cfg: any) => string | null;
38
- usaDollars: (cfg: any) => string | null;
39
- usaSocialSecurity: (cfg: any) => string | null;
40
- usaZip: (cfg: any) => any;
41
- zipCode: (cfg: any) => any;
42
- passwordEightBullets: (cfg: any) => any;
43
- formulaJsonParser: (formatter: (value: any) => any, data: string) => any;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<TruFormatter, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<TruFormatter>;
46
- }
@@ -1,10 +0,0 @@
1
- import { TruDataContext } from './tru-data-context';
2
- import * as i0 from "@angular/core";
3
- export declare class TruGlobalDataContext {
4
- private _dataContext;
5
- constructor();
6
- get dataContext(): TruDataContext | null;
7
- set dataContext(dataContext: TruDataContext | null);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruGlobalDataContext, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruGlobalDataContext>;
10
- }
@@ -1,10 +0,0 @@
1
- import { TruNavigationPropertyConfig } from "../classes/tru-navigation-property-config";
2
- import * as i0 from "@angular/core";
3
- export declare class TruModelNavigationPropertiesLookup {
4
- private _lookup;
5
- constructor();
6
- get lookup(): Map<string, Array<TruNavigationPropertyConfig>>;
7
- set lookup(value: Map<string, Array<TruNavigationPropertyConfig>>);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruModelNavigationPropertiesLookup, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruModelNavigationPropertiesLookup>;
10
- }
@@ -1,10 +0,0 @@
1
- import { TruPropertyConfigBase } from "../base-classes/tru-property-config-base";
2
- import * as i0 from "@angular/core";
3
- export declare class TruModelPropertyLookup {
4
- private _lookup;
5
- constructor();
6
- get lookup(): Map<string, TruPropertyConfigBase>;
7
- set lookup(value: Map<string, TruPropertyConfigBase>);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruModelPropertyLookup, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruModelPropertyLookup>;
10
- }
@@ -1,11 +0,0 @@
1
- import { TruTableConfigBase } from "../base-classes/tru-table-config-base";
2
- import * as i0 from "@angular/core";
3
- export declare class TruModelTableLookup {
4
- private _lookup;
5
- constructor();
6
- get lookup(): Map<string, TruTableConfigBase>;
7
- set lookup(value: Map<string, TruTableConfigBase>);
8
- get all(): Array<TruTableConfigBase>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TruModelTableLookup, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TruModelTableLookup>;
11
- }
@@ -1,10 +0,0 @@
1
- import { TruEntityBase } from "../base-classes/tru-entity-base";
2
- import * as i0 from "@angular/core";
3
- export declare class TruModelTypeLookup {
4
- private _lookup;
5
- constructor();
6
- getType(typeName: string): typeof TruEntityBase;
7
- setType(typeName: string, type: typeof TruEntityBase): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruModelTypeLookup, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruModelTypeLookup>;
10
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruPredicateMap {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TruPredicateMap, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<TruPredicateMap>;
6
- }
@@ -1,22 +0,0 @@
1
- import { TruUser } from './tru-user';
2
- import { TruDataContext } from './tru-data-context';
3
- import { TruModelTypeLookup } from './tru-model-type-lookup';
4
- import { Observable } from 'rxjs';
5
- import { TruAppEnvironment } from './tru-app-environment';
6
- import { TruActionInvoke } from './tru-action-invoke';
7
- import * as i0 from "@angular/core";
8
- export declare class TruReportManager {
9
- private dataContext;
10
- private modelTypeLookup;
11
- private appEnvironment;
12
- private actionInvoke;
13
- private user;
14
- constructor(dataContext: TruDataContext, modelTypeLookup: TruModelTypeLookup, appEnvironment: TruAppEnvironment, actionInvoke: TruActionInvoke, user: TruUser);
15
- private setupDownloadMenuImpl;
16
- private setupMrtMenuImpl;
17
- get(url: string, method: string, callback: (o: any) => any, params?: null): XMLHttpRequest;
18
- private setupMenu;
19
- queryReports: (tableName: string, menu: any, getActionRefs: () => string, enabled: () => {}) => Observable<any>;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TruReportManager, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<TruReportManager>;
22
- }
@@ -1,10 +0,0 @@
1
- import { TemplateRef } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class TruSearchResultViewManager {
4
- private _searchViewToolbarTemplate;
5
- constructor();
6
- set searchViewToolbarTemplate(temp: TemplateRef<any>);
7
- get searchViewToolbarTemplate(): TemplateRef<any>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TruSearchResultViewManager, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TruSearchResultViewManager>;
10
- }
@@ -1,57 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruSort {
3
- constructor();
4
- /**
5
- * @callback differenceCallback
6
- * @param {*} valueA - any value except for undefined or null
7
- * @param {*} valueB - any value except for undefined or null
8
- * @return {number} - <0 for a sorts before b, 0 for a sorts same as b, >0 for a sorts after b.
9
- */
10
- /**
11
- * A generalized comparison algorithm for use with a sort function. Ensures that null
12
- * sorts before non-null. Delegates to difference() for both non-null values.
13
- * @param {*} valueA - any value except for undefined
14
- * @param {*} valueB - any value except for undefined
15
- * @param {differenceCallback} difference - same result meaning as for this function.
16
- * @return {number} - <0 for a sorts before b, 0 for a sorts same as b, >0 for a sorts after b.
17
- */
18
- numCompare: (valueA: any, valueB: any, difference: any) => any;
19
- compare: (valueA: any, valueB: any, difference: any, inverted?: boolean) => any;
20
- /**
21
- * Sort comparison for unnamed, number field control config objects.
22
- * @param {object} a,b - control config
23
- * @returns {number}
24
- */
25
- numberCompare: (a: any, b: any) => any;
26
- /**
27
- * Alphabetical sort comparison for unnamed, string field control config objects.
28
- * @param {object} a,b - control config
29
- * @returns {number}
30
- */
31
- textCompare: (a: any, b: any) => any;
32
- dateCompare: (a: any, b: any) => number;
33
- dateSpanCompare: (a: any, b: any, nodeA: any, nodeB: any, isDescending: boolean, columnId: any) => number;
34
- /**
35
- * @callback filterCallback
36
- * @param {object} a,b - Control config
37
- * @returns {string}
38
- */
39
- /**
40
- * Alphabetical sort comparison for strings. Both input values are control config
41
- * objects and passed to a filter function to obtain a value for comparison.
42
- * @param {object} a,b - control config
43
- * @param {filterCallback} filter - filter function
44
- * @returns {number}
45
- */
46
- filteredTextCompare: (a: any, b: any, filter: any) => any;
47
- /**
48
- * Alphabetical sort comparison for strings. Both input values are control config
49
- * objects and passed to a filter function to obtain a value for comparison.
50
- * @param {object} entity - a breeze $entity
51
- * @param {array} pathSegments - a list of strings that make up a navigation path
52
- * @returns {value}
53
- */
54
- getValueFromSortPath: (entity: any, pathSegments: any) => any;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<TruSort, never>;
56
- static ɵprov: i0.ɵɵInjectableDeclaration<TruSort>;
57
- }
@@ -1,83 +0,0 @@
1
- import { TruUtil } from './tru-util';
2
- import * as i0 from "@angular/core";
3
- export declare class TruTextManager {
4
- private util;
5
- readonly msgModifierKeyLabel: string;
6
- readonly msgConfirmExitWithChangesPending: string;
7
- readonly msgDeleteSuccessful: string;
8
- readonly msgSaveSuccessful: string;
9
- readonly msgNoChangesToSave: string;
10
- readonly msgSaveInProgress: string;
11
- readonly msgInvalidData: string;
12
- readonly msgDirtyPreventsReadOnly: string;
13
- readonly msgDirtyPreventsNavigate: string;
14
- readonly msgDirtyPreventsClose: string;
15
- readonly msgDirtyPreventsDeleteExistingRecord: string;
16
- readonly msgNoDeleteAccess: string;
17
- readonly msgCannotDeleteNewAndExistingRecords: string;
18
- readonly msgDeleteReferencingRecordsFirst: string;
19
- constructor(util: TruUtil);
20
- /**
21
- * If text.length exceeds length, then returns a string that is the first length chars
22
- * of text plus suffix. Otherwise, returns text.
23
- * @param {string} text
24
- * @param {number} length
25
- * @param {string} suffix
26
- * @return {string}
27
- */
28
- private truncate;
29
- isMac: () => boolean;
30
- /**
31
- * Formats the text to use for the window title.
32
- * @param {string} text
33
- * @return {string} - Window title.
34
- */
35
- formatWindowTitle: (text: string) => string;
36
- /**
37
- * Returns a message indicating that an entity or entities were deleted in another view.
38
- * @param {string} entityTypeLabel - Description of the entity type.
39
- * @param [{string}] entityTypePluralLabel - Description of more than one of the entity type.
40
- * @param [{number}] count - Number of entities.
41
- */
42
- fmtEntityDeletedInOtherView: (entityTypeLabel: string, entityTypePluralLabel: string, count: number) => string;
43
- /**
44
- * Returns a message used to confirm deletion of an entity or entities.
45
- * @param {string} entityTypeLabel - Description of the entity type.
46
- * @param [{string}] entityTypePluralLabel - Description of more than one of the entity type.
47
- * @param [{number}] count - Number of entities.
48
- */
49
- fmtDeleteConfirmation: (entityTypeLabel: string, entityTypePluralLabel?: string | null, count?: number | null) => string;
50
- /**
51
- * Returns a message formatted from an error object.
52
- * @param {error|string} error
53
- * @returns {string}
54
- */
55
- fmtErrorToShow: (error: any) => string;
56
- /**
57
- * Returns a message formatted from an exception object.
58
- * @param {object} exception
59
- * @returns {string}
60
- */
61
- fmtExceptionToShow: (exception: any) => string;
62
- /**
63
- * Returns a message for a data error type.
64
- * @param {string} typeName
65
- * @returns {string}
66
- */
67
- fmtDataError: (typeName: string) => string;
68
- /**
69
- * Returns a message for an import error.
70
- * @param {string} typeName
71
- * @returns {string}
72
- */
73
- fmtImportError: (error: any) => string;
74
- /**
75
- * Serializes an object as URL parameters. The object should be a base type or have
76
- * properties that are each base types. Does not support a property with structure.
77
- * @param {Object} data
78
- * @returns {String}
79
- */
80
- formatAsUrlParameters: (data: any) => any;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<TruTextManager, never>;
82
- static ɵprov: i0.ɵɵInjectableDeclaration<TruTextManager>;
83
- }
@@ -1,42 +0,0 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { ToastrService } from 'ngx-toastr';
3
- import * as i0 from "@angular/core";
4
- export declare class TruUiNotification {
5
- private toastr;
6
- private dialog;
7
- private static readonly STICKY_TOAST_CONFIG;
8
- private _toastr;
9
- private _dialog;
10
- constructor(toastr: ToastrService, dialog: MatDialog);
11
- showMessage: (popup: any, log: (message: string) => void, prefix: string, message: string, detail?: Array<string> | null) => void;
12
- /**
13
- * Shows as toast and logs to server an error message and optional detail information.
14
- * @param {string} message - Displayed as toast.
15
- * @param {string} [detail] - Logged to console.
16
- */
17
- error: (message: string, detail?: Array<string> | null) => void;
18
- /**
19
- * Same as error() but for info message.
20
- */
21
- info: (message: string, detail?: Array<string> | null) => void;
22
- /**
23
- * Same as error() but for success message.
24
- */
25
- success: (message: string, detail?: Array<string> | null) => void;
26
- /**
27
- * Same as error() but for warning message.
28
- */
29
- warning: (message: string, detail?: Array<string> | null) => void;
30
- warningSticky: (message: string, detail?: Array<string> | null) => number | null;
31
- infoSticky: (message: string, detail?: Array<string> | null) => number | null;
32
- clearToast: (toastId: number | null) => void;
33
- log: (message: string) => void;
34
- showErrorDialog: (title: string, message: string) => void;
35
- showExportDialog: () => Promise<boolean>;
36
- confirm: (title: string, message: string, displayCancelButton?: boolean, displayConfirmButton?: boolean, cancelButtonName?: string, confirmButtonName?: string) => Promise<boolean>;
37
- changePassword: (userRef: number, username: string, admin?: boolean, entity?: any) => Promise<boolean>;
38
- about: () => Promise<boolean>;
39
- private showStickyMessage;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<TruUiNotification, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<TruUiNotification>;
42
- }
@@ -1,39 +0,0 @@
1
- import { TruAppEnvironment } from './tru-app-environment';
2
- import { TruModelTypeLookup } from './tru-model-type-lookup';
3
- import { TruUser } from './tru-user';
4
- import * as i0 from "@angular/core";
5
- export declare class TruUserPreferenceManager {
6
- private modelTypeLookup;
7
- private appEnvironment;
8
- private user;
9
- private globalDataContext;
10
- constructor(modelTypeLookup: TruModelTypeLookup, appEnvironment: TruAppEnvironment, user: TruUser);
11
- private setupQuery;
12
- /**
13
- * Queries for a preference for the current user. On success, completes
14
- * promise with the value or undefined if none.
15
- * @param {string} name - preference name
16
- * @returns {promise}
17
- */
18
- get: (name: string) => any;
19
- /**
20
- * Queries for all preferences for the current user. On success, completes
21
- * promise with an object loaded with the values indexed by name.
22
- * @returns {promise}
23
- */
24
- getAll: () => Promise<void>;
25
- /**
26
- * Saves the value of a preference. On success, completes promise with no value.
27
- * @param {string} name - preference name
28
- * @param {string} value - value text
29
- * @returns {promise}
30
- */
31
- set: (name: string, value: string) => Promise<void>;
32
- /**
33
- * Deletes a preference.
34
- * @param {string} name - preference name
35
- */
36
- eliminate: (name: string) => Promise<void>;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<TruUserPreferenceManager, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<TruUserPreferenceManager>;
39
- }
@@ -1,29 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TruUser implements ITruUser {
3
- private _ref;
4
- private _username;
5
- private _firstName;
6
- private _lastName;
7
- private _email;
8
- private _roles;
9
- constructor();
10
- get activeUserRef(): number;
11
- get username(): string | null;
12
- get firstName(): string | null;
13
- get lastName(): string | null;
14
- get email(): string | null;
15
- get roles(): string[] | null;
16
- hasRoles: (roles: string[]) => boolean;
17
- create: (user: ITruUser) => void;
18
- destroy: () => void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<TruUser, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<TruUser>;
21
- }
22
- export interface ITruUser {
23
- activeUserRef: number;
24
- username: string | null;
25
- firstName: string | null;
26
- lastName: string | null;
27
- email: string | null;
28
- roles: string[] | null;
29
- }