@vuu-ui/vuu-utils 4.0.0-alpha.21 → 4.0.0-alpha.23

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 (83) hide show
  1. package/package.json +6 -6
  2. package/src/formatting-utils.js +2 -1
  3. package/src/html-utils.js +8 -1
  4. package/src/round-decimal.js +10 -2
  5. package/types/filters/scaled-decimal-filter.d.ts +58 -0
  6. package/types/html-utils.d.ts +5 -0
  7. package/types/src/Clock.d.ts +0 -20
  8. package/types/src/PageVisibilityObserver.d.ts +0 -36
  9. package/types/src/ScaledDecimal.d.ts +0 -12
  10. package/types/src/ShellContext.d.ts +0 -11
  11. package/types/src/ThemeProvider.d.ts +0 -32
  12. package/types/src/array-utils.d.ts +0 -16
  13. package/types/src/box-utils.d.ts +0 -24
  14. package/types/src/broadcast-channel.d.ts +0 -16
  15. package/types/src/column-utils.d.ts +0 -243
  16. package/types/src/common-types.d.ts +0 -6
  17. package/types/src/component-registry.d.ts +0 -65
  18. package/types/src/context-definitions/DataContext.d.ts +0 -21
  19. package/types/src/context-definitions/DataProvider.d.ts +0 -7
  20. package/types/src/context-definitions/DataSourceProvider.d.ts +0 -12
  21. package/types/src/context-definitions/WorkspaceContext.d.ts +0 -17
  22. package/types/src/cookie-utils.d.ts +0 -9
  23. package/types/src/css-utils.d.ts +0 -1
  24. package/types/src/data-utils.d.ts +0 -33
  25. package/types/src/datasource/BaseDataSource.d.ts +0 -63
  26. package/types/src/datasource/datasource-action-utils.d.ts +0 -7
  27. package/types/src/datasource/datasource-filter-utils.d.ts +0 -2
  28. package/types/src/datasource/datasource-utils.d.ts +0 -61
  29. package/types/src/date/date-utils.d.ts +0 -39
  30. package/types/src/date/dateTimePattern.d.ts +0 -8
  31. package/types/src/date/formatter.d.ts +0 -9
  32. package/types/src/date/index.d.ts +0 -4
  33. package/types/src/date/types.d.ts +0 -29
  34. package/types/src/debug-utils.d.ts +0 -9
  35. package/types/src/edit-utils.d.ts +0 -2
  36. package/types/src/errors.d.ts +0 -2
  37. package/types/src/event-emitter.d.ts +0 -21
  38. package/types/src/feature-utils.d.ts +0 -110
  39. package/types/src/filters/filter-utils.d.ts +0 -75
  40. package/types/src/filters/filterAsQuery.d.ts +0 -8
  41. package/types/src/filters/index.d.ts +0 -2
  42. package/types/src/form-utils.d.ts +0 -37
  43. package/types/src/formatting-utils.d.ts +0 -14
  44. package/types/src/getUniqueId.d.ts +0 -1
  45. package/types/src/group-utils.d.ts +0 -10
  46. package/types/src/html-utils.d.ts +0 -21
  47. package/types/src/index.d.ts +0 -76
  48. package/types/src/input-utils.d.ts +0 -2
  49. package/types/src/invariant.d.ts +0 -1
  50. package/types/src/itemToString.d.ts +0 -2
  51. package/types/src/json-types.d.ts +0 -52
  52. package/types/src/json-utils.d.ts +0 -6
  53. package/types/src/keyboard-utils.d.ts +0 -15
  54. package/types/src/keyset.d.ts +0 -16
  55. package/types/src/layout-types.d.ts +0 -22
  56. package/types/src/list-utils.d.ts +0 -2
  57. package/types/src/local-storage-utils.d.ts +0 -4
  58. package/types/src/logging-utils.d.ts +0 -45
  59. package/types/src/module-utils.d.ts +0 -8
  60. package/types/src/nanoid/index.d.ts +0 -1
  61. package/types/src/perf-utils.d.ts +0 -5
  62. package/types/src/promise-utils.d.ts +0 -8
  63. package/types/src/protocol-message-utils.d.ts +0 -43
  64. package/types/src/range-utils.d.ts +0 -29
  65. package/types/src/react-utils.d.ts +0 -15
  66. package/types/src/round-decimal.d.ts +0 -4
  67. package/types/src/row-utils.d.ts +0 -28
  68. package/types/src/selection-utils.d.ts +0 -9
  69. package/types/src/shell-layout-types.d.ts +0 -15
  70. package/types/src/sort-utils.d.ts +0 -11
  71. package/types/src/table-schema-utils.d.ts +0 -5
  72. package/types/src/text-utils.d.ts +0 -10
  73. package/types/src/theme-utils.d.ts +0 -14
  74. package/types/src/tree-types.d.ts +0 -9
  75. package/types/src/tree-utils.d.ts +0 -9
  76. package/types/src/ts-utils.d.ts +0 -20
  77. package/types/src/typeahead-utils.d.ts +0 -1
  78. package/types/src/url-utils.d.ts +0 -3
  79. package/types/src/useId.d.ts +0 -1
  80. package/types/src/useLayoutEffectSkipFirst.d.ts +0 -2
  81. package/types/src/useResizeObserver.d.ts +0 -15
  82. package/types/src/useStateRef.d.ts +0 -2
  83. package/types/src/user-types.d.ts +0 -3
@@ -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,3 +0,0 @@
1
- export declare function getUrlParameter(paramName: string): string | undefined;
2
- export declare function getUrlParameter(paramName: string, defaultValue: string): string;
3
- 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,15 +0,0 @@
1
- import { RefObject } from "react";
2
- export declare const WidthHeight: string[];
3
- export declare const WidthOnly: string[];
4
- export type measurements<T = string | number> = {
5
- height?: T;
6
- clientHeight?: number;
7
- clientWidth?: number;
8
- contentHeight?: number;
9
- contentWidth?: number;
10
- scrollHeight?: number;
11
- scrollWidth?: number;
12
- width?: T;
13
- };
14
- export type ResizeHandler = (measurements: measurements<number>) => void;
15
- export declare function useResizeObserver(ref: RefObject<Element | HTMLElement | null>, dimensions: readonly string[], onResize: ResizeHandler, reportInitialSize?: boolean): void;
@@ -1,2 +0,0 @@
1
- import { Dispatch, RefObject, SetStateAction } from "react";
2
- export declare const useStateRef: <T = string>(initialValue: T) => [RefObject<T>, Dispatch<SetStateAction<T>>];
@@ -1,3 +0,0 @@
1
- export type VuuUser = {
2
- username: string;
3
- };