@epam/uui-db 4.11.0 → 4.12.4

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.
package/src/types.d.ts CHANGED
@@ -1,118 +1,118 @@
1
- import { DataQuery } from '@epam/uui-core';
2
- import { DbTable } from "./DbTable";
3
- import { IClientIdsMap } from './tempIds';
4
- export type DbTablesSet<TTables extends DbTablesSet<TTables>> = {
5
- [TEntityName in keyof TTables]: DbTable<any, any, TTables>;
6
- };
7
- export type DbTablePatch<TEntity> = Partial<TEntity>[];
8
- export type DbTableEntityByTable<TTable, TTables extends DbTablesSet<TTables>> = TTable extends DbTable<infer TEntity, any, TTables> ? TEntity : void;
9
- export type DbTableIdByTable<TTable, TTables extends DbTablesSet<TTables>> = TTable extends DbTable<any, infer TId, TTables> ? TId : void;
10
- type DbTablePatchByTable<TTable, TTables extends DbTablesSet<TTables>> = DbTablePatch<DbTableEntityByTable<TTable, TTables>>;
11
- export type DbPatch<TTables extends DbTablesSet<TTables>> = {
12
- [TEntityName in keyof TTables]?: DbTablePatchByTable<TTables[TEntityName], TTables>;
13
- };
14
- export declare enum DbRelationType {
15
- Aggregation = 0,
16
- Association = 1
17
- }
18
- export type DbFieldFk<TEntity> = {
19
- tableName: string | ((entity: TEntity) => string);
20
- relationType: DbRelationType;
21
- };
22
- export interface DbFieldSchema<TField extends keyof TEntity, TEntity> {
23
- fk?: DbFieldFk<TEntity>;
24
- isGenerated?: boolean;
25
- isClientOnly?: boolean;
26
- isReadOnly?: boolean;
27
- default?: TEntity[TField];
28
- toServer?: (value: TEntity[TField]) => TEntity[TField];
29
- toClient?: (value: TEntity[TField]) => TEntity[TField];
30
- disableFlatten?: boolean;
31
- }
32
- export type DbPkFieldType = string | number | (string | number)[];
33
- export type BeforeUpdateContext<TEntity, TId extends DbPkFieldType, TTables extends DbTablesSet<TTables>> = {
34
- clientIdsMap: IClientIdsMap;
35
- schema: DbEntitySchema<TEntity, TId, TTables>;
36
- tables: DbTablesSet<TTables>;
37
- };
38
- type DbEntityBeforeUpdateResult<TEntity, TTables extends DbTablesSet<TTables>> = {
39
- entity: TEntity;
40
- dependentEntities?: DbPatch<TTables>;
41
- };
42
- type DbTableIndexDefinition<TEntity> = keyof TEntity;
43
- export type DbEntitySchema<TEntity, TId extends DbPkFieldType, TTables extends DbTablesSet<TTables>> = {
44
- tableName: keyof TTables;
45
- typeName: string;
46
- searchBy?: (keyof TEntity)[];
47
- fields?: Partial<{
48
- [TField in keyof TEntity]: DbFieldSchema<TField, TEntity>;
49
- }>;
50
- isClientOnly?: boolean | ((entity: Partial<TEntity>) => boolean);
51
- beforeUpdate?: (entity: TEntity, context: BeforeUpdateContext<TEntity, TId, TTables>) => DbEntityBeforeUpdateResult<TEntity, TTables>;
52
- primaryKey: TId extends any[] ? KeysOfType<TEntity, string | number>[] : KeysOfType<TEntity, string | number>;
53
- indexes?: DbTableIndexDefinition<TEntity>[];
54
- deleteFlag?: (keyof TEntity);
55
- };
56
- export type DbSchema<TTables extends DbTablesSet<TTables>> = {
57
- [TTypeName in keyof TTables]: DbEntitySchema<any, any, TTables>;
58
- };
59
- export interface DbQuery<TEntity> extends DataQuery<TEntity> {
60
- }
61
- export interface IQueryable<TEntity, TId> {
62
- query(q: DbQuery<TEntity>): TEntity[];
63
- byId(id: TId): TEntity;
64
- }
65
- export interface ServerError {
66
- message?: string;
67
- }
68
- type DbSaveEntityResponse<TEntity, TId> = {
69
- id: TId;
70
- payload: Partial<TEntity>;
71
- };
72
- export interface DbSaveResponse<TTables extends DbTablesSet<TTables>> {
73
- submit: {
74
- [EntityName in keyof TTables]?: DbSaveEntityResponse<DbTableEntityByTable<TTables[EntityName], TTables>, DbTableIdByTable<TTables[EntityName], TTables>>[];
75
- };
76
- }
77
- export type DbViewFunction<TDb, TResult, TParams = void, TDependencies = void> = (db: TDb, parameters?: TParams, dependencies?: TDependencies) => TResult;
78
- export interface DbViewOptions<TDb, TResult, TParams, TDependencies = void> {
79
- getKey?: (parameters: TParams) => string;
80
- getDependencies?: (db: TDb, parameters: TParams) => TDependencies;
81
- compareDependencies?: (prev: TDependencies, next: TDependencies) => boolean;
82
- compareResults?: (prev: TResult, current: TResult) => boolean;
83
- traceDiff?: boolean;
84
- }
85
- export interface DbView<TDb, TResult, TParams = void, TDependencies = void> extends DbViewOptions<TDb, TResult, TParams, TDependencies> {
86
- compute: DbViewFunction<TDb, TResult, TParams, TDependencies>;
87
- }
88
- export type KeysOfType<T, TProp> = {
89
- [P in keyof T]: T[P] extends TProp ? P : never;
90
- }[keyof T];
91
- export interface DbSubscription<TValue, TParams> {
92
- update(params: TParams): TValue;
93
- currentValue: TValue;
94
- currentParams: TParams;
95
- onUpdate: (newValue: TValue) => void;
96
- unsubscribe: () => void;
97
- }
98
- export type ViewCacheItem = {
99
- dependencies: any;
100
- currentValue: any;
101
- computedOnDb: any;
102
- };
103
- export interface LoadingState<TRequest> {
104
- isLoading: boolean;
105
- isComplete: boolean;
106
- request: TRequest;
107
- missing?: TRequest;
108
- }
109
- export interface ILoadingTracker<TRequest, TResult> {
110
- diff(request: TRequest): TRequest;
111
- append(request: TRequest, result?: TResult): void;
112
- count?(request: TRequest): {
113
- knownCount: number;
114
- exactCount: number;
115
- };
116
- }
117
- export {};
1
+ import { DataQuery } from '@epam/uui-core';
2
+ import { DbTable } from "./DbTable";
3
+ import { IClientIdsMap } from './tempIds';
4
+ export type DbTablesSet<TTables extends DbTablesSet<TTables>> = {
5
+ [TEntityName in keyof TTables]: DbTable<any, any, TTables>;
6
+ };
7
+ export type DbTablePatch<TEntity> = Partial<TEntity>[];
8
+ export type DbTableEntityByTable<TTable, TTables extends DbTablesSet<TTables>> = TTable extends DbTable<infer TEntity, any, TTables> ? TEntity : void;
9
+ export type DbTableIdByTable<TTable, TTables extends DbTablesSet<TTables>> = TTable extends DbTable<any, infer TId, TTables> ? TId : void;
10
+ type DbTablePatchByTable<TTable, TTables extends DbTablesSet<TTables>> = DbTablePatch<DbTableEntityByTable<TTable, TTables>>;
11
+ export type DbPatch<TTables extends DbTablesSet<TTables>> = {
12
+ [TEntityName in keyof TTables]?: DbTablePatchByTable<TTables[TEntityName], TTables>;
13
+ };
14
+ export declare enum DbRelationType {
15
+ Aggregation = 0,
16
+ Association = 1
17
+ }
18
+ export type DbFieldFk<TEntity> = {
19
+ tableName: string | ((entity: TEntity) => string);
20
+ relationType: DbRelationType;
21
+ };
22
+ export interface DbFieldSchema<TField extends keyof TEntity, TEntity> {
23
+ fk?: DbFieldFk<TEntity>;
24
+ isGenerated?: boolean;
25
+ isClientOnly?: boolean;
26
+ isReadOnly?: boolean;
27
+ default?: TEntity[TField];
28
+ toServer?: (value: TEntity[TField]) => TEntity[TField];
29
+ toClient?: (value: TEntity[TField]) => TEntity[TField];
30
+ disableFlatten?: boolean;
31
+ }
32
+ export type DbPkFieldType = string | number | (string | number)[];
33
+ export type BeforeUpdateContext<TEntity, TId extends DbPkFieldType, TTables extends DbTablesSet<TTables>> = {
34
+ clientIdsMap: IClientIdsMap;
35
+ schema: DbEntitySchema<TEntity, TId, TTables>;
36
+ tables: DbTablesSet<TTables>;
37
+ };
38
+ type DbEntityBeforeUpdateResult<TEntity, TTables extends DbTablesSet<TTables>> = {
39
+ entity: TEntity;
40
+ dependentEntities?: DbPatch<TTables>;
41
+ };
42
+ type DbTableIndexDefinition<TEntity> = keyof TEntity;
43
+ export type DbEntitySchema<TEntity, TId extends DbPkFieldType, TTables extends DbTablesSet<TTables>> = {
44
+ tableName: keyof TTables;
45
+ typeName: string;
46
+ searchBy?: (keyof TEntity)[];
47
+ fields?: Partial<{
48
+ [TField in keyof TEntity]: DbFieldSchema<TField, TEntity>;
49
+ }>;
50
+ isClientOnly?: boolean | ((entity: Partial<TEntity>) => boolean);
51
+ beforeUpdate?: (entity: TEntity, context: BeforeUpdateContext<TEntity, TId, TTables>) => DbEntityBeforeUpdateResult<TEntity, TTables>;
52
+ primaryKey: TId extends any[] ? KeysOfType<TEntity, string | number>[] : KeysOfType<TEntity, string | number>;
53
+ indexes?: DbTableIndexDefinition<TEntity>[];
54
+ deleteFlag?: (keyof TEntity);
55
+ };
56
+ export type DbSchema<TTables extends DbTablesSet<TTables>> = {
57
+ [TTypeName in keyof TTables]: DbEntitySchema<any, any, TTables>;
58
+ };
59
+ export interface DbQuery<TEntity> extends DataQuery<TEntity> {
60
+ }
61
+ export interface IQueryable<TEntity, TId> {
62
+ query(q: DbQuery<TEntity>): TEntity[];
63
+ byId(id: TId): TEntity;
64
+ }
65
+ export interface ServerError {
66
+ message?: string;
67
+ }
68
+ type DbSaveEntityResponse<TEntity, TId> = {
69
+ id: TId;
70
+ payload: Partial<TEntity>;
71
+ };
72
+ export interface DbSaveResponse<TTables extends DbTablesSet<TTables>> {
73
+ submit: {
74
+ [EntityName in keyof TTables]?: DbSaveEntityResponse<DbTableEntityByTable<TTables[EntityName], TTables>, DbTableIdByTable<TTables[EntityName], TTables>>[];
75
+ };
76
+ }
77
+ export type DbViewFunction<TDb, TResult, TParams = void, TDependencies = void> = (db: TDb, parameters?: TParams, dependencies?: TDependencies) => TResult;
78
+ export interface DbViewOptions<TDb, TResult, TParams, TDependencies = void> {
79
+ getKey?: (parameters: TParams) => string;
80
+ getDependencies?: (db: TDb, parameters: TParams) => TDependencies;
81
+ compareDependencies?: (prev: TDependencies, next: TDependencies) => boolean;
82
+ compareResults?: (prev: TResult, current: TResult) => boolean;
83
+ traceDiff?: boolean;
84
+ }
85
+ export interface DbView<TDb, TResult, TParams = void, TDependencies = void> extends DbViewOptions<TDb, TResult, TParams, TDependencies> {
86
+ compute: DbViewFunction<TDb, TResult, TParams, TDependencies>;
87
+ }
88
+ export type KeysOfType<T, TProp> = {
89
+ [P in keyof T]: T[P] extends TProp ? P : never;
90
+ }[keyof T];
91
+ export interface DbSubscription<TValue, TParams> {
92
+ update(params: TParams): TValue;
93
+ currentValue: TValue;
94
+ currentParams: TParams;
95
+ onUpdate: (newValue: TValue) => void;
96
+ unsubscribe: () => void;
97
+ }
98
+ export type ViewCacheItem = {
99
+ dependencies: any;
100
+ currentValue: any;
101
+ computedOnDb: any;
102
+ };
103
+ export interface LoadingState<TRequest> {
104
+ isLoading: boolean;
105
+ isComplete: boolean;
106
+ request: TRequest;
107
+ missing?: TRequest;
108
+ }
109
+ export interface ILoadingTracker<TRequest, TResult> {
110
+ diff(request: TRequest): TRequest;
111
+ append(request: TRequest, result?: TResult): void;
112
+ count?(request: TRequest): {
113
+ knownCount: number;
114
+ exactCount: number;
115
+ };
116
+ }
117
+ export {};
118
118
  //# sourceMappingURL=types.d.ts.map
package/src/utils.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export declare let objectKeys: <T>(obj: T) => (keyof T)[];
2
- export declare function defaultCompareViewDependencies<T>(prev: T, next: T): boolean;
3
- /**
4
- * Deep diff between two object, using lodash
5
- * @param {Object} object Object compared
6
- * @param {Object} base Object to compare with
7
- * @return {Object} Return a new object who represent the diff
8
- */
9
- export declare function difference(object: any, base: any): any;
1
+ export declare let objectKeys: <T>(obj: T) => (keyof T)[];
2
+ export declare function defaultCompareViewDependencies<T>(prev: T, next: T): boolean;
3
+ /**
4
+ * Deep diff between two object, using lodash
5
+ * @param {Object} object Object compared
6
+ * @param {Object} base Object to compare with
7
+ * @return {Object} Return a new object who represent the diff
8
+ */
9
+ export declare function difference(object: any, base: any): any;
10
10
  //# sourceMappingURL=utils.d.ts.map
package/stats.html CHANGED
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
4024
4024
  </script>
4025
4025
  <script>
4026
4026
  /*<!--*/
4027
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"2831-1","name":"types.ts"},{"uid":"2831-3","name":"utils.ts"},{"uid":"2831-5","name":"Db.ts"},{"uid":"2831-9","name":"DbTable.ts"},{"uid":"2831-11","name":"patchHelpers.ts"},{"uid":"2831-13","name":"tempIds.tsx"},{"uid":"2831-15","name":"Loader.ts"},{"uid":"2831-17","name":"SimpleLoadingTracker.ts"},{"uid":"2831-19","name":"ListLoadingTracker.ts"},{"uid":"2831-21","name":"DbRef.ts"},{"uid":"2831-23","name":"reactHooks.ts"}]},{"name":"node_modules/tslib/tslib.es6.js","uid":"2831-7"}]}]}],"isRoot":true},"nodeParts":{"2831-1":{"renderedLength":269,"gzipLength":0,"brotliLength":0,"mainUid":"2831-0"},"2831-3":{"renderedLength":882,"gzipLength":0,"brotliLength":0,"mainUid":"2831-2"},"2831-5":{"renderedLength":2176,"gzipLength":0,"brotliLength":0,"mainUid":"2831-4"},"2831-7":{"renderedLength":1946,"gzipLength":0,"brotliLength":0,"mainUid":"2831-6"},"2831-9":{"renderedLength":6727,"gzipLength":0,"brotliLength":0,"mainUid":"2831-8"},"2831-11":{"renderedLength":6341,"gzipLength":0,"brotliLength":0,"mainUid":"2831-10"},"2831-13":{"renderedLength":6440,"gzipLength":0,"brotliLength":0,"mainUid":"2831-12"},"2831-15":{"renderedLength":2340,"gzipLength":0,"brotliLength":0,"mainUid":"2831-14"},"2831-17":{"renderedLength":304,"gzipLength":0,"brotliLength":0,"mainUid":"2831-16"},"2831-19":{"renderedLength":2950,"gzipLength":0,"brotliLength":0,"mainUid":"2831-18"},"2831-21":{"renderedLength":6057,"gzipLength":0,"brotliLength":0,"mainUid":"2831-20"},"2831-23":{"renderedLength":485,"gzipLength":0,"brotliLength":0,"mainUid":"2831-22"}},"nodeMetas":{"2831-0":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\types.ts","moduleParts":{"index.js":"2831-1"},"imported":[],"importedBy":[]},"2831-2":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\utils.ts","moduleParts":{"index.js":"2831-3"},"imported":[],"importedBy":[]},"2831-4":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\Db.ts","moduleParts":{"index.js":"2831-5"},"imported":[],"importedBy":[]},"2831-6":{"id":"\\build\\rollup:\\@epam\\uui-db\\node_modules\\tslib\\tslib.es6.js","moduleParts":{"index.js":"2831-7"},"imported":[],"importedBy":[]},"2831-8":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\DbTable.ts","moduleParts":{"index.js":"2831-9"},"imported":[],"importedBy":[]},"2831-10":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\patchHelpers.ts","moduleParts":{"index.js":"2831-11"},"imported":[],"importedBy":[]},"2831-12":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\tempIds.tsx","moduleParts":{"index.js":"2831-13"},"imported":[],"importedBy":[]},"2831-14":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\Loader.ts","moduleParts":{"index.js":"2831-15"},"imported":[],"importedBy":[]},"2831-16":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\SimpleLoadingTracker.ts","moduleParts":{"index.js":"2831-17"},"imported":[],"importedBy":[]},"2831-18":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\ListLoadingTracker.ts","moduleParts":{"index.js":"2831-19"},"imported":[],"importedBy":[]},"2831-20":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\DbRef.ts","moduleParts":{"index.js":"2831-21"},"imported":[],"importedBy":[]},"2831-22":{"id":"\\build\\rollup:\\@epam\\uui-db\\src\\reactHooks.ts","moduleParts":{"index.js":"2831-23"},"imported":[],"importedBy":[]},"2831-24":{"id":"\\index.tsx","moduleParts":{},"imported":[{"uid":"2831-25"}],"importedBy":[],"isEntry":true},"2831-25":{"id":"\\src\\index.ts","moduleParts":{},"imported":[{"uid":"2831-26"},{"uid":"2831-27"},{"uid":"2831-28"},{"uid":"2831-29"},{"uid":"2831-30"},{"uid":"2831-31"},{"uid":"2831-32"},{"uid":"2831-33"}],"importedBy":[{"uid":"2831-24"}]},"2831-26":{"id":"\\src\\types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-25"},{"uid":"2831-32"}]},"2831-27":{"id":"\\src\\Db.ts","moduleParts":{},"imported":[{"uid":"2831-31"},{"uid":"2831-34"}],"importedBy":[{"uid":"2831-25"}]},"2831-28":{"id":"\\src\\DbTable.ts","moduleParts":{},"imported":[{"uid":"2831-35"},{"uid":"2831-36"},{"uid":"2831-37"}],"importedBy":[{"uid":"2831-25"}]},"2831-29":{"id":"\\src\\DbRef.ts","moduleParts":{},"imported":[{"uid":"2831-35"},{"uid":"2831-32"},{"uid":"2831-30"},{"uid":"2831-31"},{"uid":"2831-38"},{"uid":"2831-39"},{"uid":"2831-37"},{"uid":"2831-40"},{"uid":"2831-41"}],"importedBy":[{"uid":"2831-25"}]},"2831-30":{"id":"\\src\\tempIds.tsx","moduleParts":{},"imported":[{"uid":"2831-31"}],"importedBy":[{"uid":"2831-25"},{"uid":"2831-29"}]},"2831-31":{"id":"\\src\\utils.ts","moduleParts":{},"imported":[{"uid":"2831-42"},{"uid":"2831-43"},{"uid":"2831-44"},{"uid":"2831-34"}],"importedBy":[{"uid":"2831-25"},{"uid":"2831-27"},{"uid":"2831-29"},{"uid":"2831-30"},{"uid":"2831-32"}]},"2831-32":{"id":"\\src\\patchHelpers.ts","moduleParts":{},"imported":[{"uid":"2831-26"},{"uid":"2831-36"},{"uid":"2831-31"},{"uid":"2831-45"},{"uid":"2831-46"},{"uid":"2831-47"},{"uid":"2831-48"},{"uid":"2831-49"},{"uid":"2831-50"},{"uid":"2831-51"}],"importedBy":[{"uid":"2831-25"},{"uid":"2831-29"}]},"2831-33":{"id":"\\src\\reactHooks.ts","moduleParts":{},"imported":[{"uid":"2831-52"}],"importedBy":[{"uid":"2831-25"}]},"2831-34":{"id":"lodash.isequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-27"},{"uid":"2831-31"}],"isExternal":true},"2831-35":{"id":"C:\\dev\\UUI-fix-for-table-perf\\node_modules\\tslib\\tslib.es6.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-28"},{"uid":"2831-29"},{"uid":"2831-41"}]},"2831-36":{"id":"immutable","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-28"},{"uid":"2831-32"}],"isExternal":true},"2831-37":{"id":"@epam/uui-core","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-28"},{"uid":"2831-29"}],"isExternal":true},"2831-38":{"id":"lodash.isempty","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-29"}],"isExternal":true},"2831-39":{"id":"\\src\\Loader.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-29"}]},"2831-40":{"id":"\\src\\SimpleLoadingTracker.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-29"}]},"2831-41":{"id":"\\src\\ListLoadingTracker.ts","moduleParts":{},"imported":[{"uid":"2831-35"}],"importedBy":[{"uid":"2831-29"}]},"2831-42":{"id":"shallowequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-31"}],"isExternal":true},"2831-43":{"id":"lodash.zip","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-31"}],"isExternal":true},"2831-44":{"id":"lodash.transform","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-31"}],"isExternal":true},"2831-45":{"id":"lodash.groupby","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-46":{"id":"lodash.map","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-48":{"id":"lodash.countby","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-49":{"id":"lodash.filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-50":{"id":"lodash.foreach","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-51":{"id":"lodash.pick","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-32"}],"isExternal":true},"2831-52":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2831-33"}],"isExternal":true}},"env":{"rollup":"3.12.1"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"build/rollup:/@epam/uui-db","children":[{"name":"src","children":[{"uid":"024a-1","name":"types.ts"},{"uid":"024a-3","name":"utils.ts"},{"uid":"024a-5","name":"Db.ts"},{"uid":"024a-9","name":"DbTable.ts"},{"uid":"024a-11","name":"patchHelpers.ts"},{"uid":"024a-13","name":"tempIds.tsx"},{"uid":"024a-15","name":"Loader.ts"},{"uid":"024a-17","name":"SimpleLoadingTracker.ts"},{"uid":"024a-19","name":"ListLoadingTracker.ts"},{"uid":"024a-21","name":"DbRef.ts"},{"uid":"024a-23","name":"reactHooks.ts"}]},{"name":"node_modules/tslib/tslib.es6.js","uid":"024a-7"}]}]}],"isRoot":true},"nodeParts":{"024a-1":{"renderedLength":265,"gzipLength":0,"brotliLength":0,"mainUid":"024a-0"},"024a-3":{"renderedLength":860,"gzipLength":0,"brotliLength":0,"mainUid":"024a-2"},"024a-5":{"renderedLength":2111,"gzipLength":0,"brotliLength":0,"mainUid":"024a-4"},"024a-7":{"renderedLength":1946,"gzipLength":0,"brotliLength":0,"mainUid":"024a-6"},"024a-9":{"renderedLength":6545,"gzipLength":0,"brotliLength":0,"mainUid":"024a-8"},"024a-11":{"renderedLength":6179,"gzipLength":0,"brotliLength":0,"mainUid":"024a-10"},"024a-13":{"renderedLength":6275,"gzipLength":0,"brotliLength":0,"mainUid":"024a-12"},"024a-15":{"renderedLength":2275,"gzipLength":0,"brotliLength":0,"mainUid":"024a-14"},"024a-17":{"renderedLength":291,"gzipLength":0,"brotliLength":0,"mainUid":"024a-16"},"024a-19":{"renderedLength":2864,"gzipLength":0,"brotliLength":0,"mainUid":"024a-18"},"024a-21":{"renderedLength":5886,"gzipLength":0,"brotliLength":0,"mainUid":"024a-20"},"024a-23":{"renderedLength":472,"gzipLength":0,"brotliLength":0,"mainUid":"024a-22"}},"nodeMetas":{"024a-0":{"id":"/build/rollup:/@epam/uui-db/src/types.ts","moduleParts":{"index.js":"024a-1"},"imported":[],"importedBy":[]},"024a-2":{"id":"/build/rollup:/@epam/uui-db/src/utils.ts","moduleParts":{"index.js":"024a-3"},"imported":[],"importedBy":[]},"024a-4":{"id":"/build/rollup:/@epam/uui-db/src/Db.ts","moduleParts":{"index.js":"024a-5"},"imported":[],"importedBy":[]},"024a-6":{"id":"/build/rollup:/@epam/uui-db/node_modules/tslib/tslib.es6.js","moduleParts":{"index.js":"024a-7"},"imported":[],"importedBy":[]},"024a-8":{"id":"/build/rollup:/@epam/uui-db/src/DbTable.ts","moduleParts":{"index.js":"024a-9"},"imported":[],"importedBy":[]},"024a-10":{"id":"/build/rollup:/@epam/uui-db/src/patchHelpers.ts","moduleParts":{"index.js":"024a-11"},"imported":[],"importedBy":[]},"024a-12":{"id":"/build/rollup:/@epam/uui-db/src/tempIds.tsx","moduleParts":{"index.js":"024a-13"},"imported":[],"importedBy":[]},"024a-14":{"id":"/build/rollup:/@epam/uui-db/src/Loader.ts","moduleParts":{"index.js":"024a-15"},"imported":[],"importedBy":[]},"024a-16":{"id":"/build/rollup:/@epam/uui-db/src/SimpleLoadingTracker.ts","moduleParts":{"index.js":"024a-17"},"imported":[],"importedBy":[]},"024a-18":{"id":"/build/rollup:/@epam/uui-db/src/ListLoadingTracker.ts","moduleParts":{"index.js":"024a-19"},"imported":[],"importedBy":[]},"024a-20":{"id":"/build/rollup:/@epam/uui-db/src/DbRef.ts","moduleParts":{"index.js":"024a-21"},"imported":[],"importedBy":[]},"024a-22":{"id":"/build/rollup:/@epam/uui-db/src/reactHooks.ts","moduleParts":{"index.js":"024a-23"},"imported":[],"importedBy":[]},"024a-24":{"id":"/index.tsx","moduleParts":{},"imported":[{"uid":"024a-25"}],"importedBy":[],"isEntry":true},"024a-25":{"id":"/src/index.ts","moduleParts":{},"imported":[{"uid":"024a-26"},{"uid":"024a-27"},{"uid":"024a-28"},{"uid":"024a-29"},{"uid":"024a-30"},{"uid":"024a-31"},{"uid":"024a-32"},{"uid":"024a-33"}],"importedBy":[{"uid":"024a-24"}]},"024a-26":{"id":"/src/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-25"},{"uid":"024a-32"}]},"024a-27":{"id":"/src/Db.ts","moduleParts":{},"imported":[{"uid":"024a-31"},{"uid":"024a-34"}],"importedBy":[{"uid":"024a-25"}]},"024a-28":{"id":"/src/DbTable.ts","moduleParts":{},"imported":[{"uid":"024a-35"},{"uid":"024a-36"},{"uid":"024a-37"}],"importedBy":[{"uid":"024a-25"}]},"024a-29":{"id":"/src/DbRef.ts","moduleParts":{},"imported":[{"uid":"024a-35"},{"uid":"024a-32"},{"uid":"024a-30"},{"uid":"024a-31"},{"uid":"024a-38"},{"uid":"024a-39"},{"uid":"024a-37"},{"uid":"024a-40"},{"uid":"024a-41"}],"importedBy":[{"uid":"024a-25"}]},"024a-30":{"id":"/src/tempIds.tsx","moduleParts":{},"imported":[{"uid":"024a-31"}],"importedBy":[{"uid":"024a-25"},{"uid":"024a-29"}]},"024a-31":{"id":"/src/utils.ts","moduleParts":{},"imported":[{"uid":"024a-42"},{"uid":"024a-43"},{"uid":"024a-44"},{"uid":"024a-34"}],"importedBy":[{"uid":"024a-25"},{"uid":"024a-27"},{"uid":"024a-29"},{"uid":"024a-30"},{"uid":"024a-32"}]},"024a-32":{"id":"/src/patchHelpers.ts","moduleParts":{},"imported":[{"uid":"024a-26"},{"uid":"024a-36"},{"uid":"024a-31"},{"uid":"024a-45"},{"uid":"024a-46"},{"uid":"024a-47"},{"uid":"024a-48"},{"uid":"024a-49"},{"uid":"024a-50"},{"uid":"024a-51"}],"importedBy":[{"uid":"024a-25"},{"uid":"024a-29"}]},"024a-33":{"id":"/src/reactHooks.ts","moduleParts":{},"imported":[{"uid":"024a-52"}],"importedBy":[{"uid":"024a-25"}]},"024a-34":{"id":"lodash.isequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-27"},{"uid":"024a-31"}],"isExternal":true},"024a-35":{"id":"/Users/Stanislau_Matsiyeuski/Dev/EPM-SPRT/EPM-UUI/node_modules/tslib/tslib.es6.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-28"},{"uid":"024a-29"},{"uid":"024a-41"}]},"024a-36":{"id":"immutable","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-28"},{"uid":"024a-32"}],"isExternal":true},"024a-37":{"id":"@epam/uui-core","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-28"},{"uid":"024a-29"}],"isExternal":true},"024a-38":{"id":"lodash.isempty","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-29"}],"isExternal":true},"024a-39":{"id":"/src/Loader.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-29"}]},"024a-40":{"id":"/src/SimpleLoadingTracker.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-29"}]},"024a-41":{"id":"/src/ListLoadingTracker.ts","moduleParts":{},"imported":[{"uid":"024a-35"}],"importedBy":[{"uid":"024a-29"}]},"024a-42":{"id":"shallowequal","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-31"}],"isExternal":true},"024a-43":{"id":"lodash.zip","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-31"}],"isExternal":true},"024a-44":{"id":"lodash.transform","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-31"}],"isExternal":true},"024a-45":{"id":"lodash.groupby","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-46":{"id":"lodash.map","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-47":{"id":"lodash.merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-48":{"id":"lodash.countby","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-49":{"id":"lodash.filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-50":{"id":"lodash.foreach","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-51":{"id":"lodash.pick","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-32"}],"isExternal":true},"024a-52":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"024a-33"}],"isExternal":true}},"env":{"rollup":"3.12.1"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
4028
4028
 
4029
4029
  const run = () => {
4030
4030
  const width = window.innerWidth;