@vuu-ui/vuu-data-test 0.13.46 → 0.13.48

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 (139) hide show
  1. package/package.json +6 -6
  2. package/types/{vuu-data-test/src/basket → basket}/BasketModule.d.ts +1 -1
  3. package/types/{vuu-data-test/src/simul → simul}/SimulModule.d.ts +1 -1
  4. package/types/{vuu-data-test/src/test → test}/TestModule.d.ts +1 -1
  5. package/types/vuu-context-menu/src/ContextMenu.d.ts +0 -10
  6. package/types/vuu-context-menu/src/ContextMenuProvider.d.ts +0 -16
  7. package/types/vuu-context-menu/src/index.d.ts +0 -3
  8. package/types/vuu-context-menu/src/menu-utils.d.ts +0 -17
  9. package/types/vuu-context-menu/src/useContextMenu.d.ts +0 -10
  10. package/types/vuu-utils/src/Clock.d.ts +0 -20
  11. package/types/vuu-utils/src/DataWindow.d.ts +0 -39
  12. package/types/vuu-utils/src/ShellContext.d.ts +0 -11
  13. package/types/vuu-utils/src/ThemeProvider.d.ts +0 -32
  14. package/types/vuu-utils/src/array-utils.d.ts +0 -8
  15. package/types/vuu-utils/src/box-utils.d.ts +0 -24
  16. package/types/vuu-utils/src/broadcast-channel.d.ts +0 -16
  17. package/types/vuu-utils/src/column-utils.d.ts +0 -181
  18. package/types/vuu-utils/src/common-types.d.ts +0 -6
  19. package/types/vuu-utils/src/component-registry.d.ts +0 -65
  20. package/types/vuu-utils/src/context-definitions/DataContext.d.ts +0 -18
  21. package/types/vuu-utils/src/context-definitions/DataProvider.d.ts +0 -7
  22. package/types/vuu-utils/src/context-definitions/DataSourceProvider.d.ts +0 -12
  23. package/types/vuu-utils/src/context-definitions/WorkspaceContext.d.ts +0 -17
  24. package/types/vuu-utils/src/cookie-utils.d.ts +0 -1
  25. package/types/vuu-utils/src/css-utils.d.ts +0 -1
  26. package/types/vuu-utils/src/data-utils.d.ts +0 -19
  27. package/types/vuu-utils/src/datasource/BaseDataSource.d.ts +0 -60
  28. package/types/vuu-utils/src/datasource/datasource-action-utils.d.ts +0 -7
  29. package/types/vuu-utils/src/datasource/datasource-filter-utils.d.ts +0 -2
  30. package/types/vuu-utils/src/datasource/datasource-utils.d.ts +0 -49
  31. package/types/vuu-utils/src/date/date-utils.d.ts +0 -36
  32. package/types/vuu-utils/src/date/dateTimePattern.d.ts +0 -8
  33. package/types/vuu-utils/src/date/formatter.d.ts +0 -4
  34. package/types/vuu-utils/src/date/index.d.ts +0 -4
  35. package/types/vuu-utils/src/date/types.d.ts +0 -24
  36. package/types/vuu-utils/src/debug-utils.d.ts +0 -9
  37. package/types/vuu-utils/src/event-emitter.d.ts +0 -21
  38. package/types/vuu-utils/src/feature-utils.d.ts +0 -110
  39. package/types/vuu-utils/src/filters/filter-utils.d.ts +0 -82
  40. package/types/vuu-utils/src/filters/filterAsQuery.d.ts +0 -7
  41. package/types/vuu-utils/src/filters/index.d.ts +0 -2
  42. package/types/vuu-utils/src/form-utils.d.ts +0 -23
  43. package/types/vuu-utils/src/formatting-utils.d.ts +0 -14
  44. package/types/vuu-utils/src/getUniqueId.d.ts +0 -1
  45. package/types/vuu-utils/src/group-utils.d.ts +0 -10
  46. package/types/vuu-utils/src/html-utils.d.ts +0 -21
  47. package/types/vuu-utils/src/index.d.ts +0 -74
  48. package/types/vuu-utils/src/input-utils.d.ts +0 -2
  49. package/types/vuu-utils/src/invariant.d.ts +0 -1
  50. package/types/vuu-utils/src/itemToString.d.ts +0 -2
  51. package/types/vuu-utils/src/json-types.d.ts +0 -52
  52. package/types/vuu-utils/src/json-utils.d.ts +0 -6
  53. package/types/vuu-utils/src/keyboard-utils.d.ts +0 -15
  54. package/types/vuu-utils/src/keyset.d.ts +0 -16
  55. package/types/vuu-utils/src/layout-types.d.ts +0 -22
  56. package/types/vuu-utils/src/list-utils.d.ts +0 -2
  57. package/types/vuu-utils/src/local-storage-utils.d.ts +0 -3
  58. package/types/vuu-utils/src/logging-utils.d.ts +0 -45
  59. package/types/vuu-utils/src/menu-utils.d.ts +0 -6
  60. package/types/vuu-utils/src/module-utils.d.ts +0 -8
  61. package/types/vuu-utils/src/moving-window.d.ts +0 -18
  62. package/types/vuu-utils/src/nanoid/index.d.ts +0 -1
  63. package/types/vuu-utils/src/perf-utils.d.ts +0 -5
  64. package/types/vuu-utils/src/promise-utils.d.ts +0 -8
  65. package/types/vuu-utils/src/protocol-message-utils.d.ts +0 -34
  66. package/types/vuu-utils/src/range-utils.d.ts +0 -31
  67. package/types/vuu-utils/src/react-utils.d.ts +0 -8
  68. package/types/vuu-utils/src/round-decimal.d.ts +0 -1
  69. package/types/vuu-utils/src/row-utils.d.ts +0 -27
  70. package/types/vuu-utils/src/selection-utils.d.ts +0 -4
  71. package/types/vuu-utils/src/shell-layout-types.d.ts +0 -15
  72. package/types/vuu-utils/src/sort-utils.d.ts +0 -11
  73. package/types/vuu-utils/src/table-schema-utils.d.ts +0 -3
  74. package/types/vuu-utils/src/text-utils.d.ts +0 -2
  75. package/types/vuu-utils/src/tree-types.d.ts +0 -9
  76. package/types/vuu-utils/src/tree-utils.d.ts +0 -9
  77. package/types/vuu-utils/src/ts-utils.d.ts +0 -20
  78. package/types/vuu-utils/src/typeahead-utils.d.ts +0 -1
  79. package/types/vuu-utils/src/url-utils.d.ts +0 -2
  80. package/types/vuu-utils/src/useId.d.ts +0 -1
  81. package/types/vuu-utils/src/useLayoutEffectSkipFirst.d.ts +0 -2
  82. package/types/vuu-utils/src/useStateRef.d.ts +0 -2
  83. package/types/vuu-utils/src/user-types.d.ts +0 -4
  84. /package/types/{vuu-data-test/src/ArrayProxy.d.ts → ArrayProxy.d.ts} +0 -0
  85. /package/types/{vuu-data-test/src/RuntimeVisualLink.d.ts → RuntimeVisualLink.d.ts} +0 -0
  86. /package/types/{vuu-data-test/src/Table.d.ts → Table.d.ts} +0 -0
  87. /package/types/{vuu-data-test/src/TickingArrayDataSource.d.ts → TickingArrayDataSource.d.ts} +0 -0
  88. /package/types/{vuu-data-test/src/UpdateGenerator.d.ts → UpdateGenerator.d.ts} +0 -0
  89. /package/types/{vuu-data-test/src/basket → basket}/basket-schemas.d.ts +0 -0
  90. /package/types/{vuu-data-test/src/basket → basket}/index.d.ts +0 -0
  91. /package/types/{vuu-data-test/src/basket → basket}/reference-data/constituents.d.ts +0 -0
  92. /package/types/{vuu-data-test/src/basket → basket}/reference-data/ftse100.d.ts +0 -0
  93. /package/types/{vuu-data-test/src/basket → basket}/reference-data/hsi.d.ts +0 -0
  94. /package/types/{vuu-data-test/src/basket → basket}/reference-data/nasdaq100.d.ts +0 -0
  95. /package/types/{vuu-data-test/src/basket → basket}/reference-data/prices.d.ts +0 -0
  96. /package/types/{vuu-data-test/src/basket → basket}/reference-data/sp500.d.ts +0 -0
  97. /package/types/{vuu-data-test/src/core → core}/module/ModuleContainer.d.ts +0 -0
  98. /package/types/{vuu-data-test/src/core → core}/module/VuuModule.d.ts +0 -0
  99. /package/types/{vuu-data-test/src/core → core}/table/TableContainer.d.ts +0 -0
  100. /package/types/{vuu-data-test/src/data-utils.d.ts → data-utils.d.ts} +0 -0
  101. /package/types/{vuu-data-test/src/index.d.ts → index.d.ts} +0 -0
  102. /package/types/{vuu-data-test/src/local-datasource-provider → local-datasource-provider}/LocalDatasourceProvider.d.ts +0 -0
  103. /package/types/{vuu-data-test/src/makeSuggestions.d.ts → makeSuggestions.d.ts} +0 -0
  104. /package/types/{vuu-data-test/src/rowUpdates.d.ts → rowUpdates.d.ts} +0 -0
  105. /package/types/{vuu-data-test/src/schemas.d.ts → schemas.d.ts} +0 -0
  106. /package/types/{vuu-data-test/src/session-table-utils.d.ts → session-table-utils.d.ts} +0 -0
  107. /package/types/{vuu-data-test/src/simul → simul}/index.d.ts +0 -0
  108. /package/types/{vuu-data-test/src/simul → simul}/reference-data/accounts.d.ts +0 -0
  109. /package/types/{vuu-data-test/src/simul → simul}/reference-data/algos.d.ts +0 -0
  110. /package/types/{vuu-data-test/src/simul → simul}/reference-data/currencies.d.ts +0 -0
  111. /package/types/{vuu-data-test/src/simul → simul}/reference-data/index.d.ts +0 -0
  112. /package/types/{vuu-data-test/src/simul → simul}/reference-data/instrument-prices.d.ts +0 -0
  113. /package/types/{vuu-data-test/src/simul → simul}/reference-data/instruments-extended.d.ts +0 -0
  114. /package/types/{vuu-data-test/src/simul → simul}/reference-data/instruments.d.ts +0 -0
  115. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/convert-string-to-base-ten-number.d.ts +0 -0
  116. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/fixtures/alphabet.d.ts +0 -0
  117. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/fixtures/alphanumeric-values.d.ts +0 -0
  118. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/fixtures/base-ten-numbers.d.ts +0 -0
  119. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-cusip-check-code.d.ts +0 -0
  120. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-cusip-without-check-code.d.ts +0 -0
  121. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-cusip.d.ts +0 -0
  122. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-random-alphanumeric.d.ts +0 -0
  123. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-random-base-ten-number.d.ts +0 -0
  124. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-random-string-of-alphanumeric-chars.d.ts +0 -0
  125. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/generate-random-string-of-base-ten-chars.d.ts +0 -0
  126. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/index.d.ts +0 -0
  127. /package/types/{vuu-data-test/src/simul → simul}/reference-data/isin-generator/is-odd.d.ts +0 -0
  128. /package/types/{vuu-data-test/src/simul → simul}/reference-data/locations.d.ts +0 -0
  129. /package/types/{vuu-data-test/src/simul → simul}/reference-data/lotsizes.d.ts +0 -0
  130. /package/types/{vuu-data-test/src/simul → simul}/reference-data/orderStatus.d.ts +0 -0
  131. /package/types/{vuu-data-test/src/simul → simul}/reference-data/orders.d.ts +0 -0
  132. /package/types/{vuu-data-test/src/simul → simul}/reference-data/parent-child-orders.d.ts +0 -0
  133. /package/types/{vuu-data-test/src/simul → simul}/reference-data/priceStrategies.d.ts +0 -0
  134. /package/types/{vuu-data-test/src/simul → simul}/reference-data/prices.d.ts +0 -0
  135. /package/types/{vuu-data-test/src/simul → simul}/reference-data/sides.d.ts +0 -0
  136. /package/types/{vuu-data-test/src/simul → simul}/simul-schemas.d.ts +0 -0
  137. /package/types/{vuu-data-test/src/test → test}/index.d.ts +0 -0
  138. /package/types/{vuu-data-test/src/test → test}/test-schemas.d.ts +0 -0
  139. /package/types/{vuu-data-test/src/vuu-row-generator.d.ts → vuu-row-generator.d.ts} +0 -0
@@ -1,52 +0,0 @@
1
- import { NamedFilter } from "@vuu-ui/vuu-filter-types";
2
- import { CSSProperties, ReactElement } from "react";
3
- import { ValueOf } from "./ts-utils";
4
- export interface ApplicationSettings {
5
- leftNav?: {
6
- activeTabIndex: number;
7
- expanded: boolean;
8
- };
9
- /**
10
- * filters are keyed by MODULE:tablename
11
- */
12
- filters?: {
13
- [key: string]: NamedFilter[];
14
- };
15
- }
16
- export type ApplicationSetting = ValueOf<ApplicationSettings>;
17
- export type Settings = Record<string, string | number | boolean>;
18
- export interface ApplicationJSON {
19
- workspaceJSON: LayoutJSON | LayoutJSON[];
20
- settings?: ApplicationSettings;
21
- userSettings?: Settings;
22
- }
23
- export interface WithActive {
24
- active?: number;
25
- }
26
- export interface WithProps {
27
- props?: {
28
- [key: string]: unknown;
29
- };
30
- }
31
- export interface LayoutRoot extends WithProps {
32
- active?: number;
33
- children?: ReactElement[];
34
- type: string;
35
- }
36
- export interface WithType {
37
- props?: unknown;
38
- title?: string;
39
- type: string;
40
- }
41
- export type LayoutModel = LayoutRoot | ReactElement | WithType;
42
- export interface LayoutJSON<T extends object = {
43
- [key: string]: any;
44
- }> extends WithType {
45
- active?: number;
46
- children?: LayoutJSON[];
47
- id?: string;
48
- props?: T;
49
- state?: unknown;
50
- type: string;
51
- style?: CSSProperties;
52
- }
@@ -1,6 +0,0 @@
1
- import { DataSourceRow } from "@vuu-ui/vuu-data-types";
2
- import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
3
- export type JsonData = {
4
- [key: string]: unknown;
5
- } | JsonData[];
6
- export declare const jsonToDataSourceRows: (json: JsonData) => [ColumnDescriptor[], DataSourceRow[]];
@@ -1,15 +0,0 @@
1
- export declare const ArrowUp = "ArrowUp";
2
- export declare const ArrowDown = "ArrowDown";
3
- export declare const ArrowLeft = "ArrowLeft";
4
- export declare const ArrowRight = "ArrowRight";
5
- export declare const Enter = "Enter";
6
- export declare const Escape = "Escape";
7
- export declare const Home = "Home";
8
- export declare const End = "End";
9
- export declare const PageUp = "PageUp";
10
- export declare const PageDown = "PageDown";
11
- export declare const Space = " ";
12
- export declare const Tab = "Tab";
13
- export type ArrowKey = "ArrowUp" | "ArrowDown" | "ArrowLeft" | "ArrowRight";
14
- export type PageKey = "Home" | "End" | "PageUp" | "PageDown";
15
- export declare const isArrowKey: (key: string) => key is ArrowKey;
@@ -1,16 +0,0 @@
1
- import { VuuRange } from "@vuu-ui/vuu-protocol-types";
2
- export interface IKeySet {
3
- keyFor: (rowIndex: number) => number;
4
- reset: (range: VuuRange) => void;
5
- }
6
- export declare class KeySet implements IKeySet {
7
- private keys;
8
- private nextKeyValue;
9
- private range;
10
- constructor(range: VuuRange);
11
- next(free?: number[]): number;
12
- private init;
13
- reset(range: VuuRange): boolean;
14
- keyFor(rowIndex: number): number;
15
- toDebugString(): string;
16
- }
@@ -1,22 +0,0 @@
1
- import { LayoutJSON } from "@vuu-ui/vuu-utils";
2
- export interface WithId {
3
- id: string;
4
- }
5
- export interface LayoutMetadata extends WithId {
6
- name: string;
7
- group: string;
8
- screenshot: string;
9
- user: string;
10
- created: string;
11
- }
12
- export interface SystemLayoutMetadata extends LayoutMetadata {
13
- layoutJSON: LayoutJSON;
14
- }
15
- export type LayoutMetadataDto = Omit<LayoutMetadata, "id" | "created">;
16
- export interface Layout extends WithId {
17
- json: LayoutJSON;
18
- }
19
- export type ApplicationLayout = {
20
- username: string;
21
- definition: LayoutJSON;
22
- };
@@ -1,2 +0,0 @@
1
- import type { ListOption } from "@vuu-ui/vuu-table-types";
2
- export declare const getSelectedOption: (values: ListOption[], selectedValue: string | number | undefined) => ListOption | undefined;
@@ -1,3 +0,0 @@
1
- export declare const getLocalEntity: <T>(url: string) => T | undefined;
2
- export declare const getAllLocalEntity: <T>(url: string) => T[];
3
- export declare const saveLocalEntity: <T>(url: string, data: T) => T | undefined;
@@ -1,45 +0,0 @@
1
- declare global {
2
- const loggingSettings: loggingSettings;
3
- }
4
- export interface LogFn {
5
- (message?: unknown, ...optionalParams: unknown[]): void;
6
- }
7
- export interface AssertLogFn {
8
- (condition: boolean, message?: unknown, errorMessaage?: unknown): void;
9
- }
10
- export interface TableLogFn {
11
- (properties?: object): void;
12
- }
13
- type loggingSettings = {
14
- loggingLevel: LogLevel;
15
- };
16
- export interface Logger {
17
- warn: LogFn;
18
- error: LogFn;
19
- debug: LogFn;
20
- info: LogFn;
21
- }
22
- export type LogLevel = keyof Logger;
23
- export type BuildEnv = "production" | "development";
24
- export declare const logger: (category: string) => {
25
- errorEnabled: boolean;
26
- error: (message: string) => void;
27
- debugEnabled?: undefined;
28
- infoEnabled?: undefined;
29
- warnEnabled?: undefined;
30
- info?: undefined;
31
- warn?: undefined;
32
- debug?: undefined;
33
- } | {
34
- debugEnabled: boolean;
35
- infoEnabled: boolean;
36
- warnEnabled: boolean;
37
- errorEnabled: boolean;
38
- info: (message: string) => void;
39
- warn: (message: string) => void;
40
- debug: (message: string) => void;
41
- error: (message: string) => void;
42
- };
43
- export declare const getLoggingConfigForWorker: () => string;
44
- export declare const logUnhandledMessage: (message: never, context?: string) => void;
45
- export {};
@@ -1,6 +0,0 @@
1
- import { MenuRpcResponse, OpenDialogActionWithSchema } from "@vuu-ui/vuu-data-types";
2
- import { ShowNotificationAction, VuuRpcResponse } from "@vuu-ui/vuu-protocol-types";
3
- import { ContextMenuGroupItemDescriptor, ContextMenuItemDescriptor } from "@vuu-ui/vuu-context-menu";
4
- export declare const isGroupMenuItemDescriptor: (menuItem?: ContextMenuItemDescriptor) => menuItem is ContextMenuGroupItemDescriptor;
5
- export declare const isOpenBulkEditResponse: (rpcResponse: Partial<VuuRpcResponse>) => rpcResponse is MenuRpcResponse<OpenDialogActionWithSchema>;
6
- export declare const hasShowNotificationAction: (res: Partial<VuuRpcResponse>) => res is MenuRpcResponse<ShowNotificationAction>;
@@ -1,8 +0,0 @@
1
- import { ReactElement } from "react";
2
- export type ReactComponent = {
3
- (props?: any): ReactElement;
4
- };
5
- export declare const isModule: (entity: Module | ReactComponent) => entity is Module;
6
- export interface Module<T = ReactComponent> {
7
- [key: string]: Module<T> | T;
8
- }
@@ -1,18 +0,0 @@
1
- import { DataSourceRow } from "@vuu-ui/vuu-data-types";
2
- import { VuuRange } from "@vuu-ui/vuu-protocol-types";
3
- import { WindowRange } from "./range-utils";
4
- export declare class MovingWindow {
5
- #private;
6
- data: DataSourceRow[];
7
- rowCount: number;
8
- constructor({ from, to }: VuuRange);
9
- setRowCount: (rowCount: number) => void;
10
- add(data: DataSourceRow): void;
11
- getAtIndex(index: number): DataSourceRow | undefined;
12
- isWithinRange(index: number): boolean;
13
- setRange({ from, to }: VuuRange): void;
14
- getSelectedRows(): DataSourceRow[];
15
- get range(): WindowRange;
16
- slice(): DataSourceRow[];
17
- get hasAllRowsWithinRange(): boolean;
18
- }
@@ -1 +0,0 @@
1
- export declare const uuid: (size?: number) => string;
@@ -1,5 +0,0 @@
1
- type VoidFunction = (...args: any) => void;
2
- export type PerfFunction<T extends VoidFunction> = (...args: Parameters<T>) => void;
3
- export declare function debounce<T extends VoidFunction>(callback: T, timeInterval: number): PerfFunction<T>;
4
- export declare function throttle<T extends VoidFunction>(callback: T, limit: number): PerfFunction<T>;
5
- export {};
@@ -1,8 +0,0 @@
1
- export declare class DeferredPromise<T = unknown> {
2
- #private;
3
- constructor();
4
- get promise(): Promise<T>;
5
- get isResolved(): boolean;
6
- resolve(value: T): void;
7
- get reject(): (err: unknown) => void;
8
- }
@@ -1,34 +0,0 @@
1
- import type { MenuRpcAction, MenuRpcResponse, OpenDialogActionWithSchema, RpcResponse, TableSchema, VuuUiMessageInRequestResponse } from "@vuu-ui/vuu-data-types";
2
- import { VuuRpcMenuRequest, OpenDialogAction, VuuRpcEditCellRequest, VuuRpcRequest, VuuRpcEditAddRowRequest, VuuDataRowDto, VuuRpcEditDeleteRowRequest, VuuRpcResponse, VuuRpcMenuSuccess, VuuViewportRpcTypeaheadRequest, VuuRpcServiceRequest, ViewportRpcContext, OpenComponentInDialogAction, VuuLoginResponse, VuuRowDataItemType, SelectRequest, SelectResponse, SelectSuccessWithRowCount } from "@vuu-ui/vuu-protocol-types";
3
- export declare const isSelectRequest: (message: object) => message is SelectRequest;
4
- export declare const isSelectSuccessWithRowCount: (response: SelectResponse | SelectSuccessWithRowCount) => response is SelectSuccessWithRowCount;
5
- export declare const isRpcServiceRequest: (message: {
6
- type: string;
7
- }) => message is VuuRpcServiceRequest | Omit<VuuRpcServiceRequest, "context">;
8
- export declare const hasViewPortContext: (message: VuuRpcServiceRequest) => message is VuuRpcServiceRequest<ViewportRpcContext>;
9
- export declare const isVuuMenuRpcRequest: (message: VuuRpcRequest | Omit<VuuRpcRequest, "vpId">) => message is VuuRpcMenuRequest;
10
- export declare const isLoginResponse: (message: object) => message is VuuLoginResponse;
11
- export declare const isRequestResponse: (message: object) => message is VuuUiMessageInRequestResponse;
12
- export declare const isOpenSessionTableDialogMessage: (rpcResponse: RpcResponse) => rpcResponse is MenuRpcResponse<OpenDialogActionWithSchema>;
13
- export declare const isOpenDialogAction: (action?: MenuRpcAction) => action is OpenDialogAction;
14
- export declare const isTypeaheadRequest: (request: Omit<VuuRpcRequest, "vpId">) => request is Omit<VuuViewportRpcTypeaheadRequest, "vpId">;
15
- export declare function isEditCellRequest(request: VuuRpcRequest): request is VuuRpcEditCellRequest;
16
- export declare function isEditCellRequest(request: Omit<VuuRpcRequest, "vpId">): request is Omit<VuuRpcEditCellRequest, "vpId">;
17
- export declare function vuuEditCellRequest(rowKey: string, field: string, value: VuuRowDataItemType, vpId: string): VuuRpcEditCellRequest;
18
- export declare function vuuEditCellRequest(rowKey: string, field: string, value: VuuRowDataItemType): Omit<VuuRpcEditCellRequest, "vpId">;
19
- export declare function vuuAddRowRequest(rowKey: string, data: VuuDataRowDto, vpId: string): VuuRpcEditAddRowRequest;
20
- export declare function vuuAddRowRequest(rowKey: string, data: VuuDataRowDto): Omit<VuuRpcEditAddRowRequest, "vpId">;
21
- export declare function vuuDeleteRowRequest(rowKey: string, vpId: string): VuuRpcEditDeleteRowRequest;
22
- export declare function vuuDeleteRowRequest(rowKey: string): Omit<VuuRpcEditDeleteRowRequest, "vpId">;
23
- export declare const isSessionTable: (table?: unknown) => boolean;
24
- export declare function isActionMessage(rpcResponse: VuuRpcResponse): rpcResponse is VuuRpcMenuSuccess;
25
- export declare function isActionMessage(rpcResponse: Omit<VuuRpcResponse, "vpId">): rpcResponse is Omit<VuuRpcMenuSuccess, "vpId">;
26
- export declare function isSessionTableActionMessage(rpcResponse: VuuRpcResponse): rpcResponse is VuuRpcMenuSuccess<OpenDialogAction & {
27
- tableSchema: TableSchema;
28
- }>;
29
- export declare function isSessionTableActionMessage(rpcResponse: Omit<VuuRpcResponse, "vpId">): rpcResponse is Omit<VuuRpcMenuSuccess<OpenDialogAction & {
30
- tableSchema: TableSchema;
31
- }>, "vpId">;
32
- export declare function isCustomComponentActionMessage(rpcResponse: VuuRpcResponse | Omit<VuuRpcResponse, "vpId">): rpcResponse is VuuRpcMenuSuccess<OpenComponentInDialogAction & {
33
- tableSchema: TableSchema;
34
- }>;
@@ -1,31 +0,0 @@
1
- import { VuuRange } from "@vuu-ui/vuu-protocol-types";
2
- interface FromToRange {
3
- from: number;
4
- to: number;
5
- }
6
- export interface Range extends VuuRange {
7
- equals: (vuuRange: VuuRange) => boolean;
8
- firstRowInViewport: number;
9
- lastRowInViewport: number;
10
- renderBufferSize?: number;
11
- reset: Range;
12
- rowCount?: number;
13
- }
14
- export interface RangeOptions {
15
- renderBufferSize?: number;
16
- rowCount?: number;
17
- }
18
- export declare const Range: (from: number, to: number, rangeOptions?: RangeOptions) => Range;
19
- export declare const NULL_RANGE: Range;
20
- export declare function getFullRange({ from, to }: VuuRange, bufferSize?: number, totalRowCount?: number): FromToRange;
21
- export declare const withinRange: (value: number, { from, to }: VuuRange) => boolean;
22
- export declare const rangeNewItems: ({ from: from1, to: to1 }: VuuRange, newRange: VuuRange) => VuuRange;
23
- export declare class WindowRange {
24
- from: number;
25
- to: number;
26
- constructor(from: number, to: number);
27
- isWithin(index: number): boolean;
28
- overlap(from: number, to: number): [number, number];
29
- copy(): WindowRange;
30
- }
31
- export {};
@@ -1,8 +0,0 @@
1
- import { ReactElement, ReactNode, SetStateAction } from "react";
2
- export declare const asReactElements: (children: ReactNode) => ReactElement[];
3
- export declare const useIsMounted: (id?: string) => import("react").RefObject<boolean>;
4
- export declare const isSimpleStateValue: <T>(arg: SetStateAction<T>) => arg is T;
5
- /**
6
- * From an example by stack overflow user Maxim G
7
- */
8
- export declare const createSyntheticEvent: <T extends Element, E extends Event>(event: E) => React.SyntheticEvent<T, E>;
@@ -1 +0,0 @@
1
- export declare function roundDecimal(value?: number, align?: string, decimals?: number, zeroPad?: boolean, alignOnDecimals?: boolean): string;
@@ -1,27 +0,0 @@
1
- import type { DataSourceRow, DataSourceRowObject } from "@vuu-ui/vuu-data-types";
2
- import { ColumnMap } from "./column-utils";
3
- import { IKeySet } from "./keyset";
4
- import { VuuRow } from "@vuu-ui/vuu-protocol-types";
5
- import { RefObject } from "react";
6
- export type RowOffsetFunc = (row: DataSourceRow, pctScrollTop?: number) => number;
7
- export type RowAtPositionFunc = (position: number) => number;
8
- /**
9
- * RowOffset function, RowAtPosition function, isVirtualScroll
10
- */
11
- export type RowPositioning = [RowOffsetFunc, RowAtPositionFunc, boolean];
12
- export declare const actualRowPositioning: (rowHeight: number) => RowPositioning;
13
- /**
14
- * return functions for determining a) the pixel offset to apply to a row, given the
15
- * row index and b) the index of the row at a given scroll offset. This implementation
16
- * is used when we are forced to 'virtualise' scrolling - because the number of rows
17
- * is high enough that we cannot create a large enough HTML content container.
18
- *
19
- * @param rowHeight
20
- * @param virtualisedExtent
21
- * @param pctScrollTop
22
- * @returns
23
- */
24
- export declare const virtualRowPositioning: (rowHeight: number, virtualisedExtent: number, pctScrollTop: RefObject<number>) => RowPositioning;
25
- export type RowToObjectMapper = (row: DataSourceRow, columnMap: ColumnMap) => DataSourceRowObject;
26
- export declare const asDataSourceRowObject: RowToObjectMapper;
27
- export declare const vuuRowToDataSourceRow: ({ rowIndex, rowKey, sel: isSelected, ts, data }: VuuRow, keys: IKeySet) => DataSourceRow;
@@ -1,4 +0,0 @@
1
- import { TableSelectionModel } from "@vuu-ui/vuu-table-types";
2
- import { SelectRequest } from "@vuu-ui/vuu-protocol-types";
3
- export declare const deselectItem: (selectionModel: TableSelectionModel, rowKey: string, rangeSelect: boolean, preserveExistingSelection?: boolean) => Omit<SelectRequest, "vpId"> | undefined;
4
- export declare const selectItem: (selectionModel: TableSelectionModel, rowKey: string, rangeSelect: boolean, preserveExistingSelection?: boolean, activeRowKey?: string) => Omit<SelectRequest, "vpId"> | undefined;
@@ -1,15 +0,0 @@
1
- import { ValueOf } from "./ts-utils";
2
- /**
3
- * The Vuu Shell creates the outermost application layout. This includes some
4
- * 'special' identifiers that can be targetted by layout commands to effect or
5
- * react to layout changes.
6
- */
7
- export declare const VuuShellLocation: {
8
- readonly ContextPanel: "context-panel";
9
- readonly MultiWorkspaceContainer: "vuu-multi-workspace-container";
10
- readonly SidePanel: "vuu-side-panel";
11
- readonly SideToolbar: "vuu-side-toolbar";
12
- readonly Workspace: "vuu-workspace";
13
- readonly WorkspaceContainer: "vuu-workspace-container";
14
- };
15
- export type VuuShellLocation = ValueOf<typeof VuuShellLocation>;
@@ -1,11 +0,0 @@
1
- import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
- import { VuuSort, VuuSortType } from "@vuu-ui/vuu-protocol-types";
3
- export declare const toggleOrApplySort: ({ sortDefs }: VuuSort, { name: column }: ColumnDescriptor, extendSort?: boolean, sortType?: VuuSortType) => VuuSort;
4
- export declare const setSortColumn: ({ sortDefs }: VuuSort, column: ColumnDescriptor, sortType?: "A" | "D") => VuuSort;
5
- export declare const addSortColumn: ({ sortDefs }: VuuSort, column: ColumnDescriptor, sortType?: "A" | "D") => VuuSort;
6
- export type ColumnSortStatus = "no-sort" | "sort-other-column" | "single-sort-asc" | "single-sort-desc" | "multi-sort-includes-column-asc" | "multi-sort-includes-column-desc";
7
- /**
8
- * Given a VuuSort definition and a column, determine whether the given column
9
- * is included in the sort and if so, in what position/direction.
10
- */
11
- export declare const getSortStatus: (columnName: string, vuuSort?: VuuSort) => ColumnSortStatus;
@@ -1,3 +0,0 @@
1
- import { TableSchemaTable } from "@vuu-ui/vuu-data-types";
2
- import { VuuTable } from "@vuu-ui/vuu-protocol-types";
3
- export declare const getVuuTable: (schemaTable: TableSchemaTable) => VuuTable;
@@ -1,2 +0,0 @@
1
- export declare const lastWord: (text: string) => string;
2
- export declare const wordify: (text: string) => string;
@@ -1,9 +0,0 @@
1
- export interface TreeSourceNode<T = unknown> {
2
- nodeData?: T;
3
- id: string;
4
- icon?: string;
5
- header?: boolean;
6
- label: string;
7
- childNodes?: TreeSourceNode<T>[];
8
- tags?: string[];
9
- }
@@ -1,9 +0,0 @@
1
- import { TreeSourceNode } from "./tree-types";
2
- import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
3
- import { DataSourceRow } from "@vuu-ui/vuu-data-types";
4
- import { IconProvider } from "@vuu-ui/vuu-data-local/src/tree-data-source/IconProvider";
5
- export declare const treeToDataSourceRows: (treeSourceNodes: TreeSourceNode[], iconProvider?: IconProvider) => [ColumnDescriptor[], DataSourceRow[]];
6
- export declare const lastPathSegment: (path: string, separator?: string) => string;
7
- export declare const dropLastPathSegment: (path: string, separator?: string) => string;
8
- export declare const getParentRow: (rows: DataSourceRow[], row: DataSourceRow) => DataSourceRow | undefined;
9
- export declare const missingAncestor: (row: DataSourceRow, previousRow?: DataSourceRow) => boolean;
@@ -1,20 +0,0 @@
1
- import { JSXElementConstructor, ReactElement } from "react";
2
- import { LayoutJSON } from "./json-types";
3
- export declare function isNotNullOrUndefined<T>(value: T | undefined | null): value is NonNullable<T>;
4
- export declare const isObject: (o: unknown) => o is object;
5
- export type OptionalProperty<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
6
- export type ValueOf<T> = T[keyof T];
7
- /**
8
- * test whether a given react element implements a custom toJSON
9
- * serialisation (static) method.
10
- */
11
- type JsonEnabledJSXElementConstructor<P> = JSXElementConstructor<P> & {
12
- toJSON: (el: ReactElement) => LayoutJSON<any>;
13
- };
14
- interface ReactElementWithJSON<P = any, T extends JsonEnabledJSXElementConstructor<any> = JsonEnabledJSXElementConstructor<any>> {
15
- type: T;
16
- props: P;
17
- key: string | null;
18
- }
19
- export declare const elementImplementsJSONSerialization: (element: ReactElement) => element is ReactElementWithJSON;
20
- export {};
@@ -1 +0,0 @@
1
- export declare const NO_DATA_MATCH: string[];
@@ -1,2 +0,0 @@
1
- export declare const getUrlParameter: (paramName: string, defaultValue?: string) => string | undefined;
2
- export declare const hasUrlParameter: (paramName: string) => boolean;
@@ -1 +0,0 @@
1
- export declare const useId: (id?: string) => string;
@@ -1,2 +0,0 @@
1
- import { DependencyList, EffectCallback } from "react";
2
- export declare const useLayoutEffectSkipFirst: (func: EffectCallback, deps: DependencyList) => void;
@@ -1,2 +0,0 @@
1
- import { Dispatch, MutableRefObject, SetStateAction } from "react";
2
- export declare const useStateRef: <T = string>(initialValue: T) => [MutableRefObject<T>, Dispatch<SetStateAction<T>>];
@@ -1,4 +0,0 @@
1
- export type VuuUser = {
2
- username: string;
3
- token: string;
4
- };