@vuu-ui/vuu-utils 0.8.67 → 0.8.69

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
- "version": "0.8.67",
2
+ "version": "0.8.69",
3
3
  "author": "heswell",
4
4
  "license": "Apache-2.0",
5
5
  "types": "types/index.d.ts",
6
6
  "devDependencies": {
7
- "@vuu-ui/vuu-data-types": "0.8.67",
8
- "@vuu-ui/vuu-table-types": "0.8.67",
9
- "@vuu-ui/vuu-filter-types": "0.8.67",
10
- "@vuu-ui/vuu-protocol-types": "0.8.67"
7
+ "@vuu-ui/vuu-data-types": "0.8.69",
8
+ "@vuu-ui/vuu-table-types": "0.8.69",
9
+ "@vuu-ui/vuu-filter-types": "0.8.69",
10
+ "@vuu-ui/vuu-protocol-types": "0.8.69"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@internationalized/date": "^3.0.0",
14
- "@vuu-ui/vuu-filter-parser": "0.8.67",
14
+ "@vuu-ui/vuu-filter-parser": "0.8.69",
15
15
  "clsx": "^2.0.0",
16
16
  "react": ">=17.0.2",
17
17
  "react-dom": ">=17.0.2"
package/types/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from "./group-utils";
23
23
  export * from "./input-utils";
24
24
  export * from "./invariant";
25
25
  export * from "./itemToString";
26
+ export * from "./json-types";
26
27
  export * from "./json-utils";
27
28
  export * from "./keyboard-utils";
28
29
  export * from "./keyset";
@@ -0,0 +1,52 @@
1
+ import { NamedFilter } from "@vuu-ui/vuu-filter-types";
2
+ import { CSSProperties, ReactElement } from "react";
3
+ export type ValueOf<T> = T[keyof T];
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
+ layout: 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 extends WithType {
43
+ active?: number;
44
+ children?: LayoutJSON[];
45
+ id?: string;
46
+ props?: {
47
+ [key: string]: unknown;
48
+ };
49
+ state?: unknown;
50
+ type: string;
51
+ style?: CSSProperties;
52
+ }