@vuu-ui/vuu-layout 0.8.66 → 0.8.67

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 (143) hide show
  1. package/cjs/layout-view/useViewBroadcastChannel.js.map +1 -1
  2. package/esm/layout-view/useViewBroadcastChannel.js.map +1 -1
  3. package/package.json +9 -9
  4. package/types/vuu-utils/src/DataWindow.d.ts +0 -39
  5. package/types/vuu-utils/src/ThemeProvider.d.ts +0 -32
  6. package/types/vuu-utils/src/array-utils.d.ts +0 -8
  7. package/types/vuu-utils/src/box-utils.d.ts +0 -9
  8. package/types/vuu-utils/src/broadcast-channel.d.ts +0 -16
  9. package/types/vuu-utils/src/column-utils.d.ts +0 -148
  10. package/types/vuu-utils/src/common-types.d.ts +0 -6
  11. package/types/vuu-utils/src/component-registry.d.ts +0 -51
  12. package/types/vuu-utils/src/cookie-utils.d.ts +0 -1
  13. package/types/vuu-utils/src/css-utils.d.ts +0 -1
  14. package/types/vuu-utils/src/data-utils.d.ts +0 -14
  15. package/types/vuu-utils/src/datasource-action-utils.d.ts +0 -7
  16. package/types/vuu-utils/src/datasource-utils.d.ts +0 -36
  17. package/types/vuu-utils/src/date/date-utils.d.ts +0 -2
  18. package/types/vuu-utils/src/date/dateTimePattern.d.ts +0 -8
  19. package/types/vuu-utils/src/date/formatter.d.ts +0 -4
  20. package/types/vuu-utils/src/date/index.d.ts +0 -4
  21. package/types/vuu-utils/src/date/types.d.ts +0 -24
  22. package/types/vuu-utils/src/debug-utils.d.ts +0 -9
  23. package/types/vuu-utils/src/event-emitter.d.ts +0 -21
  24. package/types/vuu-utils/src/feature-utils.d.ts +0 -62
  25. package/types/vuu-utils/src/filters/filterAsQuery.d.ts +0 -7
  26. package/types/vuu-utils/src/filters/index.d.ts +0 -2
  27. package/types/vuu-utils/src/filters/utils.d.ts +0 -55
  28. package/types/vuu-utils/src/form-utils.d.ts +0 -6
  29. package/types/vuu-utils/src/formatting-utils.d.ts +0 -7
  30. package/types/vuu-utils/src/getUniqueId.d.ts +0 -1
  31. package/types/vuu-utils/src/group-utils.d.ts +0 -3
  32. package/types/vuu-utils/src/html-utils.d.ts +0 -18
  33. package/types/vuu-utils/src/index.d.ts +0 -50
  34. package/types/vuu-utils/src/input-utils.d.ts +0 -2
  35. package/types/vuu-utils/src/invariant.d.ts +0 -1
  36. package/types/vuu-utils/src/itemToString.d.ts +0 -2
  37. package/types/vuu-utils/src/json-utils.d.ts +0 -6
  38. package/types/vuu-utils/src/keyboard-utils.d.ts +0 -12
  39. package/types/vuu-utils/src/keyset.d.ts +0 -12
  40. package/types/vuu-utils/src/list-utils.d.ts +0 -2
  41. package/types/vuu-utils/src/local-storage-utils.d.ts +0 -3
  42. package/types/vuu-utils/src/logging-utils.d.ts +0 -44
  43. package/types/vuu-utils/src/menu-utils.d.ts +0 -20
  44. package/types/vuu-utils/src/module-utils.d.ts +0 -9
  45. package/types/vuu-utils/src/nanoid/index.d.ts +0 -1
  46. package/types/vuu-utils/src/perf-utils.d.ts +0 -5
  47. package/types/vuu-utils/src/protocol-message-utils.d.ts +0 -6
  48. package/types/vuu-utils/src/range-utils.d.ts +0 -25
  49. package/types/vuu-utils/src/react-utils.d.ts +0 -2
  50. package/types/vuu-utils/src/round-decimal.d.ts +0 -1
  51. package/types/vuu-utils/src/row-utils.d.ts +0 -25
  52. package/types/vuu-utils/src/selection-utils.d.ts +0 -28
  53. package/types/vuu-utils/src/sort-utils.d.ts +0 -5
  54. package/types/vuu-utils/src/table-schema-utils.d.ts +0 -3
  55. package/types/vuu-utils/src/text-utils.d.ts +0 -2
  56. package/types/vuu-utils/src/ts-utils.d.ts +0 -1
  57. package/types/vuu-utils/src/url-utils.d.ts +0 -2
  58. package/types/vuu-utils/src/useId.d.ts +0 -1
  59. package/types/vuu-utils/src/useLayoutEffectSkipFirst.d.ts +0 -2
  60. package/types/vuu-utils/src/user-types.d.ts +0 -4
  61. /package/types/{vuu-layout/src/Component.d.ts → Component.d.ts} +0 -0
  62. /package/types/{vuu-layout/src/DraggableLayout.d.ts → DraggableLayout.d.ts} +0 -0
  63. /package/types/{vuu-layout/src/debug.d.ts → debug.d.ts} +0 -0
  64. /package/types/{vuu-layout/src/dock-layout → dock-layout}/DockLayout.d.ts +0 -0
  65. /package/types/{vuu-layout/src/dock-layout → dock-layout}/Drawer.d.ts +0 -0
  66. /package/types/{vuu-layout/src/dock-layout → dock-layout}/index.d.ts +0 -0
  67. /package/types/{vuu-layout/src/drag-drop → drag-drop}/BoxModel.d.ts +0 -0
  68. /package/types/{vuu-layout/src/drag-drop → drag-drop}/DragState.d.ts +0 -0
  69. /package/types/{vuu-layout/src/drag-drop → drag-drop}/Draggable.d.ts +0 -0
  70. /package/types/{vuu-layout/src/drag-drop → drag-drop}/DropMenu.d.ts +0 -0
  71. /package/types/{vuu-layout/src/drag-drop → drag-drop}/DropTarget.d.ts +0 -0
  72. /package/types/{vuu-layout/src/drag-drop → drag-drop}/DropTargetRenderer.d.ts +0 -0
  73. /package/types/{vuu-layout/src/drag-drop → drag-drop}/dragDropTypes.d.ts +0 -0
  74. /package/types/{vuu-layout/src/drag-drop → drag-drop}/index.d.ts +0 -0
  75. /package/types/{vuu-layout/src/flexbox → flexbox}/Flexbox.d.ts +0 -0
  76. /package/types/{vuu-layout/src/flexbox → flexbox}/FlexboxLayout.d.ts +0 -0
  77. /package/types/{vuu-layout/src/flexbox → flexbox}/FluidGrid.d.ts +0 -0
  78. /package/types/{vuu-layout/src/flexbox → flexbox}/FluidGridLayout.d.ts +0 -0
  79. /package/types/{vuu-layout/src/flexbox → flexbox}/Splitter.d.ts +0 -0
  80. /package/types/{vuu-layout/src/flexbox → flexbox}/flexbox-utils.d.ts +0 -0
  81. /package/types/{vuu-layout/src/flexbox → flexbox}/flexboxTypes.d.ts +0 -0
  82. /package/types/{vuu-layout/src/flexbox → flexbox}/index.d.ts +0 -0
  83. /package/types/{vuu-layout/src/flexbox → flexbox}/useResponsiveSizing.d.ts +0 -0
  84. /package/types/{vuu-layout/src/flexbox → flexbox}/useSplitterResizing.d.ts +0 -0
  85. /package/types/{vuu-layout/src/index.d.ts → index.d.ts} +0 -0
  86. /package/types/{vuu-layout/src/layout-action.d.ts → layout-action.d.ts} +0 -0
  87. /package/types/{vuu-layout/src/layout-header → layout-header}/ActionButton.d.ts +0 -0
  88. /package/types/{vuu-layout/src/layout-header → layout-header}/Header.d.ts +0 -0
  89. /package/types/{vuu-layout/src/layout-header → layout-header}/index.d.ts +0 -0
  90. /package/types/{vuu-layout/src/layout-provider → layout-provider}/LayoutProvider.d.ts +0 -0
  91. /package/types/{vuu-layout/src/layout-provider → layout-provider}/LayoutProviderContext.d.ts +0 -0
  92. /package/types/{vuu-layout/src/layout-provider → layout-provider}/index.d.ts +0 -0
  93. /package/types/{vuu-layout/src/layout-provider → layout-provider}/useLayoutDragDrop.d.ts +0 -0
  94. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/flexUtils.d.ts +0 -0
  95. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/index.d.ts +0 -0
  96. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/insert-layout-element.d.ts +0 -0
  97. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/layout-reducer.d.ts +0 -0
  98. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/layoutTypes.d.ts +0 -0
  99. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/layoutUtils.d.ts +0 -0
  100. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/move-layout-element.d.ts +0 -0
  101. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/remove-layout-element.d.ts +0 -0
  102. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/replace-layout-element.d.ts +0 -0
  103. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/resize-flex-children.d.ts +0 -0
  104. /package/types/{vuu-layout/src/layout-reducer → layout-reducer}/wrap-layout-element.d.ts +0 -0
  105. /package/types/{vuu-layout/src/layout-view → layout-view}/View.d.ts +0 -0
  106. /package/types/{vuu-layout/src/layout-view → layout-view}/index.d.ts +0 -0
  107. /package/types/{vuu-layout/src/layout-view → layout-view}/useView.d.ts +0 -0
  108. /package/types/{vuu-layout/src/layout-view → layout-view}/useViewBroadcastChannel.d.ts +0 -0
  109. /package/types/{vuu-layout/src/layout-view → layout-view}/useViewResize.d.ts +0 -0
  110. /package/types/{vuu-layout/src/layout-view → layout-view}/viewTypes.d.ts +0 -0
  111. /package/types/{vuu-layout/src/layout-view-actions → layout-view-actions}/ViewContext.d.ts +0 -0
  112. /package/types/{vuu-layout/src/layout-view-actions → layout-view-actions}/index.d.ts +0 -0
  113. /package/types/{vuu-layout/src/layout-view-actions → layout-view-actions}/useViewActionDispatcher.d.ts +0 -0
  114. /package/types/{vuu-layout/src/palette → palette}/Palette.d.ts +0 -0
  115. /package/types/{vuu-layout/src/palette → palette}/index.d.ts +0 -0
  116. /package/types/{vuu-layout/src/placeholder → placeholder}/LayoutStartPanel.d.ts +0 -0
  117. /package/types/{vuu-layout/src/placeholder → placeholder}/Placeholder.d.ts +0 -0
  118. /package/types/{vuu-layout/src/placeholder → placeholder}/index.d.ts +0 -0
  119. /package/types/{vuu-layout/src/responsive → responsive}/breakpoints.d.ts +0 -0
  120. /package/types/{vuu-layout/src/responsive → responsive}/index.d.ts +0 -0
  121. /package/types/{vuu-layout/src/responsive → responsive}/measureMinimumNodeSize.d.ts +0 -0
  122. /package/types/{vuu-layout/src/responsive → responsive}/overflowUtils.d.ts +0 -0
  123. /package/types/{vuu-layout/src/responsive → responsive}/use-breakpoints.d.ts +0 -0
  124. /package/types/{vuu-layout/src/responsive → responsive}/useResizeObserver.d.ts +0 -0
  125. /package/types/{vuu-layout/src/responsive → responsive}/utils.d.ts +0 -0
  126. /package/types/{vuu-layout/src/stack → stack}/Stack.d.ts +0 -0
  127. /package/types/{vuu-layout/src/stack → stack}/StackLayout.d.ts +0 -0
  128. /package/types/{vuu-layout/src/stack → stack}/index.d.ts +0 -0
  129. /package/types/{vuu-layout/src/stack → stack}/stackTypes.d.ts +0 -0
  130. /package/types/{vuu-layout/src/tabs → tabs}/TabPanel.d.ts +0 -0
  131. /package/types/{vuu-layout/src/tabs → tabs}/index.d.ts +0 -0
  132. /package/types/{vuu-layout/src/tools → tools}/config-wrapper/ConfigWrapper.d.ts +0 -0
  133. /package/types/{vuu-layout/src/tools → tools}/config-wrapper/index.d.ts +0 -0
  134. /package/types/{vuu-layout/src/tools → tools}/devtools-box/layout-configurator.d.ts +0 -0
  135. /package/types/{vuu-layout/src/tools → tools}/devtools-tree/layout-tree-viewer.d.ts +0 -0
  136. /package/types/{vuu-layout/src/tools → tools}/index.d.ts +0 -0
  137. /package/types/{vuu-layout/src/use-persistent-state.d.ts → use-persistent-state.d.ts} +0 -0
  138. /package/types/{vuu-layout/src/utils → utils}/index.d.ts +0 -0
  139. /package/types/{vuu-layout/src/utils → utils}/pathUtils.d.ts +0 -0
  140. /package/types/{vuu-layout/src/utils → utils}/propUtils.d.ts +0 -0
  141. /package/types/{vuu-layout/src/utils → utils}/refUtils.d.ts +0 -0
  142. /package/types/{vuu-layout/src/utils → utils}/styleUtils.d.ts +0 -0
  143. /package/types/{vuu-layout/src/utils → utils}/typeOf.d.ts +0 -0
@@ -1,55 +0,0 @@
1
- /// <reference types="react" />
2
- import type { DataSourceFilter } from "@vuu-ui/vuu-data-types";
3
- import { AndFilter, Filter, FilterClauseOp, FilterWithPartialClause, MultiClauseFilter, MultiValueFilterClause, OrFilter, SingleValueFilterClause } from "@vuu-ui/vuu-filter-types";
4
- import { RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
5
- export declare const isValidFilterClauseOp: (op?: string) => op is FilterClauseOp;
6
- export declare const isNamedFilter: (f?: Filter) => boolean;
7
- export declare const isSingleValueFilter: (f?: Partial<Filter>) => f is SingleValueFilterClause<string | number | boolean>;
8
- export declare const isFilterClause: (f?: Partial<Filter>) => f is SingleValueFilterClause<string | number | boolean> | MultiValueFilterClause<string[] | number[] | boolean[]>;
9
- export declare const isMultiValueFilter: (f?: Partial<Filter>) => f is MultiValueFilterClause<string[] | number[] | boolean[]>;
10
- export declare const isInFilter: (f: Partial<Filter>) => f is MultiValueFilterClause<string[] | number[] | boolean[]>;
11
- export declare const isAndFilter: (f: Partial<Filter>) => f is AndFilter;
12
- export declare const isOrFilter: (f: Partial<Filter>) => f is OrFilter;
13
- export declare const isCompleteFilter: (filter: Partial<Filter>) => filter is Filter;
14
- export declare function isMultiClauseFilter(f?: Partial<Filter> | FilterWithPartialClause): f is MultiClauseFilter;
15
- export declare const applyFilterToColumns: (columns: RuntimeColumnDescriptor[], { filterStruct }: DataSourceFilter) => RuntimeColumnDescriptor[];
16
- export declare const isFilteredColumn: (column: RuntimeColumnDescriptor) => boolean;
17
- export declare const stripFilterFromColumns: (columns: RuntimeColumnDescriptor[]) => {
18
- align?: "right" | "left" | undefined;
19
- CellRenderer?: import("react").FunctionComponent<import("@vuu-ui/vuu-table-types").TableCellRendererProps> | undefined;
20
- HeaderCellLabelRenderer?: import("react").FunctionComponent<import("@vuu-ui/vuu-table-types").HeaderCellProps> | undefined;
21
- HeaderCellContentRenderer?: import("react").FunctionComponent<import("@vuu-ui/vuu-table-types").HeaderCellProps> | undefined;
22
- canStretch?: boolean | undefined;
23
- className?: string | undefined;
24
- clientSideEditValidationCheck?: any;
25
- endPin?: true | undefined;
26
- flex?: number | undefined;
27
- heading?: string[] | undefined;
28
- index?: number | undefined;
29
- isGroup?: boolean | undefined;
30
- isSystemColumn?: boolean | undefined;
31
- label: string;
32
- locked?: boolean | undefined;
33
- marginLeft?: number | undefined;
34
- moving?: boolean | undefined;
35
- originalIdx?: number | undefined;
36
- pinnedOffset?: number | undefined;
37
- resizeable?: boolean | undefined;
38
- resizing?: boolean | undefined;
39
- sortable?: boolean | undefined;
40
- sorted?: import("@vuu-ui/vuu-table-types").ColumnSort | undefined;
41
- valueFormatter: import("@vuu-ui/vuu-table-types").ValueFormatter;
42
- width: number;
43
- aggregate?: import("packages/vuu-protocol-types").VuuAggType | undefined;
44
- colHeaderContentRenderer?: string | undefined;
45
- colHeaderLabelRenderer?: string | undefined;
46
- editable?: boolean | undefined;
47
- hidden?: boolean | undefined;
48
- maxWidth?: number | undefined;
49
- minWidth?: number | undefined;
50
- name: string;
51
- pin?: import("@vuu-ui/vuu-table-types").PinLocation | undefined;
52
- serverDataType?: import("packages/vuu-protocol-types").VuuColumnDataType | undefined;
53
- type?: import("@vuu-ui/vuu-table-types").ColumnType | undefined;
54
- }[];
55
- export declare const extractFilterForColumn: (filter: Filter | undefined, columnName: string) => Filter | undefined;
@@ -1,6 +0,0 @@
1
- /**
2
- * Use with the following convention:
3
- *
4
- * <FormField data-field="my-field-name">
5
- */
6
- export declare const getFieldName: (input: HTMLInputElement | HTMLButtonElement) => string;
@@ -1,7 +0,0 @@
1
- import { ColumnDescriptor, ValueFormatter } from "@vuu-ui/vuu-table-types";
2
- export type ValueFormatters = {
3
- [key: string]: ValueFormatter;
4
- };
5
- export declare const defaultValueFormatter: (value: unknown) => string;
6
- export declare const numericFormatter: ({ align, type, }: Partial<ColumnDescriptor>) => (value: unknown) => string;
7
- export declare const getValueFormatter: (column: ColumnDescriptor, serverDataType?: import("packages/vuu-protocol-types").VuuColumnDataType | undefined) => ValueFormatter;
@@ -1 +0,0 @@
1
- export declare const getUniqueId: () => string;
@@ -1,3 +0,0 @@
1
- import { RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
- import { VuuGroupBy } from "@vuu-ui/vuu-protocol-types";
3
- export declare function addGroupColumn(groupBy: VuuGroupBy, column: RuntimeColumnDescriptor): string[];
@@ -1,18 +0,0 @@
1
- export declare const createEl: (elementType: "div" | "p" | "span", className?: string, textContent?: string) => HTMLElement;
2
- export declare const getFocusableElement: (el: HTMLElement | null, tabIndex?: number) => HTMLElement | undefined;
3
- export declare const getElementDataIndex: (el: HTMLElement | null) => number;
4
- export declare const queryClosest: <T extends HTMLElement = HTMLElement>(el: HTMLElement | EventTarget | null, cssQueryString: string) => T | null;
5
- export declare const getClosest: (el: HTMLElement, dataProperty: string) => HTMLElement | null;
6
- export declare const getClosestIndexItem: (el: HTMLElement) => HTMLElement | null;
7
- export declare function getElementByDataIndex(c: HTMLElement | null | undefined, i: number | string, throwIfNotFound: true): HTMLElement;
8
- export declare function getElementByDataIndex(c: HTMLElement | null | undefined, i: number | string, throwIfNotFound?: false): HTMLElement | undefined;
9
- export declare const focusFirstFocusableElement: (el: HTMLElement | null, tabIndex?: number) => void;
10
- export declare const isSelectableElement: (el?: HTMLElement | null) => boolean;
11
- export declare const hasOpenOptionList: (el: HTMLElement | EventTarget | null) => boolean | undefined;
12
- export declare function getScrollbarSize(): number;
13
- export type MouseEventTypes = "dblclick" | "click";
14
- export type KeyboardEventTypes = "keydown" | "keypress" | "keyup";
15
- export declare const dispatchMouseEvent: (el: HTMLElement, type: MouseEventTypes) => void;
16
- export declare const dispatchKeyboardEvent: (el: HTMLElement, type: KeyboardEventTypes, key: string) => void;
17
- export type VuuDomEventType = "vuu-commit" | "vuu-dropped";
18
- export declare const dispatchCustomEvent: (el: HTMLElement, type: VuuDomEventType) => void;
@@ -1,50 +0,0 @@
1
- export * from "./array-utils";
2
- export * from "./box-utils";
3
- export * from "./broadcast-channel";
4
- export * from "./column-utils";
5
- export * from "./cookie-utils";
6
- export * from "./component-registry";
7
- export * from "./DataWindow";
8
- export * from "./common-types";
9
- export * from "./css-utils";
10
- export * from "./data-utils";
11
- export * from "./datasource-action-utils";
12
- export * from "./datasource-utils";
13
- export * from "./date";
14
- export * from "./debug-utils";
15
- export * from "./filters";
16
- export * from "./html-utils";
17
- export * from "./event-emitter";
18
- export * from "./feature-utils";
19
- export * from "./form-utils";
20
- export * from "./formatting-utils";
21
- export * from "./getUniqueId";
22
- export * from "./group-utils";
23
- export * from "./input-utils";
24
- export * from "./invariant";
25
- export * from "./itemToString";
26
- export * from "./json-utils";
27
- export * from "./keyboard-utils";
28
- export * from "./keyset";
29
- export * from "./list-utils";
30
- export * from "./local-storage-utils";
31
- export * from "./logging-utils";
32
- export * from "./menu-utils";
33
- export * from "./module-utils";
34
- export * from "./nanoid";
35
- export * from "./react-utils";
36
- export * from "./round-decimal";
37
- export * from "./perf-utils";
38
- export * from "./protocol-message-utils";
39
- export * from "./range-utils";
40
- export * from "./row-utils";
41
- export * from "./selection-utils";
42
- export * from "./sort-utils";
43
- export * from "./table-schema-utils";
44
- export * from "./text-utils";
45
- export * from "./ThemeProvider";
46
- export * from "./ts-utils";
47
- export * from "./url-utils";
48
- export * from "./useId";
49
- export * from "./user-types";
50
- export * from "./useLayoutEffectSkipFirst";
@@ -1,2 +0,0 @@
1
- export declare const isCharacterKey: (key: string) => boolean;
2
- export declare const isQuoteKey: (evt: KeyboardEvent) => boolean;
@@ -1 +0,0 @@
1
- export declare function invariant(condition: boolean, message: string): void;
@@ -1,2 +0,0 @@
1
- export type ItemToStringFunction = (item: any) => string;
2
- export declare function itemToString(item: unknown): string;
@@ -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,12 +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";
@@ -1,12 +0,0 @@
1
- import { VuuRange } from "@vuu-ui/vuu-protocol-types";
2
- export declare class KeySet {
3
- private keys;
4
- private nextKeyValue;
5
- private range;
6
- constructor(range: VuuRange);
7
- next(free?: number[]): number;
8
- private init;
9
- reset(range: VuuRange): boolean;
10
- keyFor(rowIndex: number): number;
11
- toDebugString(): string;
12
- }
@@ -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,44 +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 {};
@@ -1,20 +0,0 @@
1
- import { ContextMenuGroupItemDescriptor, ContextMenuItemDescriptor, DataSourceRow, MenuRpcResponse, OpenDialogActionWithSchema, RpcResponse } from "@vuu-ui/vuu-data-types";
2
- import { ClientToServerMenuRPC, VuuMenu, VuuMenuItem } from "@vuu-ui/vuu-protocol-types";
3
- import { TableMenuLocation, VuuCellMenuItem, VuuRowMenuItem } from "@vuu-ui/vuu-table-types";
4
- import { type ColumnMap } from "./column-utils";
5
- export type VuuServerMenuOptions = {
6
- columnMap: ColumnMap;
7
- columnName: string;
8
- row: DataSourceRow;
9
- selectedRows: DataSourceRow[];
10
- viewport: string;
11
- };
12
- export declare const isRoot: (menu: VuuMenu) => boolean;
13
- export declare const isCellMenu: (options: VuuMenuItem) => options is VuuCellMenuItem;
14
- export declare const isRowMenu: (options: VuuMenuItem) => options is VuuRowMenuItem;
15
- export declare const isSelectionMenu: (options: VuuMenuItem) => options is VuuMenuItem;
16
- export declare const isGroupMenuItemDescriptor: (menuItem?: ContextMenuItemDescriptor) => menuItem is ContextMenuGroupItemDescriptor;
17
- export declare const isTableLocation: (location: string) => location is TableMenuLocation;
18
- export declare const buildMenuDescriptorFromVuuMenu: (menu: VuuMenu | VuuMenuItem, tableLocation: TableMenuLocation, options: VuuServerMenuOptions) => ContextMenuItemDescriptor | undefined;
19
- export declare const getMenuRpcRequest: (options: VuuMenuItem) => Omit<ClientToServerMenuRPC, "vpId">;
20
- export declare const isOpenBulkEditResponse: (res: RpcResponse) => res is MenuRpcResponse<OpenDialogActionWithSchema>;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export type ReactComponent = {
3
- (props?: any): JSX.Element;
4
- };
5
- export declare const isModule: (entity: Module | ReactComponent) => entity is Module<ReactComponent>;
6
- export interface Module<T = ReactComponent> {
7
- [key: string]: Module<T> | T;
8
- }
9
- export declare const assertModuleExportsAtLeastOneComponent: (module: Module) => void;
@@ -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,6 +0,0 @@
1
- import type { MenuRpcAction, MenuRpcResponse, OpenDialogActionWithSchema, RpcResponse, VuuUIMessageOut, VuuUiMessageInRequestResponse } from "@vuu-ui/vuu-data-types";
2
- import { ClientToServerMenuRPC, OpenDialogAction, VuuRpcRequest } from "@vuu-ui/vuu-protocol-types";
3
- export declare const isVuuMenuRpcRequest: (message: VuuUIMessageOut | VuuRpcRequest | ClientToServerMenuRPC) => message is ClientToServerMenuRPC;
4
- export declare const isRequestResponse: (message: object) => message is VuuUiMessageInRequestResponse;
5
- export declare const isOpenSessionTableDialogMessage: (rpcResponse: RpcResponse) => rpcResponse is MenuRpcResponse<OpenDialogActionWithSchema>;
6
- export declare const isOpenDialogAction: (action?: MenuRpcAction) => action is OpenDialogAction;
@@ -1,25 +0,0 @@
1
- export interface VuuRange {
2
- from: number;
3
- to: number;
4
- bufferSize?: number;
5
- reset?: boolean;
6
- }
7
- interface FromToRange {
8
- from: number;
9
- to: number;
10
- }
11
- export declare const NULL_RANGE: VuuRange;
12
- export declare const rangesAreSame: (r1: VuuRange | undefined, r2: VuuRange | undefined) => boolean;
13
- export declare function getFullRange({ from, to }: VuuRange, bufferSize?: number, totalRowCount?: number): FromToRange;
14
- export declare function resetRange({ from, to, bufferSize }: VuuRange): VuuRange;
15
- export declare const withinRange: (value: number, { from, to }: VuuRange) => boolean;
16
- export declare const rangeNewItems: ({ from: from1, to: to1 }: VuuRange, newRange: VuuRange) => VuuRange;
17
- export declare class WindowRange {
18
- from: number;
19
- to: number;
20
- constructor(from: number, to: number);
21
- isWithin(index: number): boolean;
22
- overlap(from: number, to: number): [number, number];
23
- copy(): WindowRange;
24
- }
25
- export {};
@@ -1,2 +0,0 @@
1
- import { ReactElement, ReactNode } from "react";
2
- export declare const asReactElements: (children: ReactNode) => ReactElement[];
@@ -1 +0,0 @@
1
- export declare function roundDecimal(value?: number, align?: string, decimals?: number, zeroPad?: boolean, alignOnDecimals?: boolean): string;
@@ -1,25 +0,0 @@
1
- import type { DataSourceRow, DataSourceRowObject } from "@vuu-ui/vuu-data-types";
2
- import type { MutableRefObject } from "react";
3
- import { ColumnMap } from "./column-utils";
4
- export type RowOffsetFunc = (row: DataSourceRow, pctScrollTop?: number) => number;
5
- export type RowAtPositionFunc = (position: number) => number;
6
- /**
7
- * RowOffset function, RowAtPosition function, isVirtualScroll
8
- */
9
- export type RowPositioning = [RowOffsetFunc, RowAtPositionFunc, boolean];
10
- export declare const actualRowPositioning: (rowHeight: number) => RowPositioning;
11
- /**
12
- * return functions for determining a) the pixel offset to apply to a row, given the
13
- * row index and b) the index of the row at a given scroll offset. This implementation
14
- * is used when we are forced to 'virtualise' scrolling - because the number of rows
15
- * is high enough that we cannot create a large enough HTML content container.
16
- *
17
- * @param rowHeight
18
- * @param virtualisedExtent
19
- * @param pctScrollTop
20
- * @returns
21
- */
22
- export declare const virtualRowPositioning: (rowHeight: number, virtualisedExtent: number, pctScrollTop: MutableRefObject<number>) => RowPositioning;
23
- export declare const getRowElementAtIndex: (container: HTMLDivElement | EventTarget, rowIndex: number) => HTMLElement | null;
24
- export declare const getIndexFromRowElement: (rowElement: HTMLElement) => number;
25
- export declare const asDataSourceRowObject: (row: DataSourceRow, columnMap: ColumnMap) => DataSourceRowObject;
@@ -1,28 +0,0 @@
1
- import { DataSourceRow, Selection, SelectionItem } from "@vuu-ui/vuu-data-types";
2
- import { TableSelectionModel } from "@vuu-ui/vuu-table-types";
3
- export declare const RowSelected: {
4
- False: number;
5
- True: number;
6
- First: number;
7
- Last: number;
8
- };
9
- export declare const isRowSelected: (row: DataSourceRow) => boolean;
10
- export declare const isRowSelectedLast: (row?: DataSourceRow) => boolean;
11
- export declare const deselectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean) => Selection;
12
- export declare const selectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean, activeItemIndex?: number) => Selection;
13
- /**
14
- * Determine the value for selected. We use a bitmap to represent a number of selection states
15
- * a row might exhibit. selected/not-selected is the fundamental value. We also identify first
16
- * row of a selected block, last row of a selected block;
17
- */
18
- export declare const getSelectionStatus: (selected: Selection, itemIndex: number) => number;
19
- export declare const isSelected: (selected: Selection, itemIndex: number) => boolean;
20
- /**
21
- * Vuu server expects a full list if indexes of selected rows. Client represents selection in a more
22
- * efficient structure. This converts client structure to full server format.
23
- */
24
- export declare const expandSelection: (selected: Selection) => number[];
25
- export type SelectionDiff = {
26
- added: SelectionItem[];
27
- removed: SelectionItem[];
28
- };
@@ -1,5 +0,0 @@
1
- import { ColumnDescriptor, RuntimeColumnDescriptor } 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: RuntimeColumnDescriptor, sortType?: "A" | "D") => VuuSort;
5
- export declare const addSortColumn: ({ sortDefs }: VuuSort, column: RuntimeColumnDescriptor, sortType?: "A" | "D") => VuuSort;
@@ -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 +0,0 @@
1
- export declare function isNotNullOrUndefined<T>(value: T | undefined | null): value is NonNullable<T>;
@@ -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,4 +0,0 @@
1
- export type VuuUser = {
2
- username: string;
3
- token: string;
4
- };
File without changes
File without changes