@vuu-ui/vuu-shell 3.1.0 → 3.2.0
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,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.
|
|
2
|
+
"version": "3.2.0",
|
|
3
3
|
"description": "VUU UI Shell",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"author": "heswell",
|
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@vuu-ui/vuu-data-types": "3.
|
|
14
|
-
"@vuu-ui/vuu-protocol-types": "3.
|
|
15
|
-
"@vuu-ui/vuu-table-types": "3.
|
|
13
|
+
"@vuu-ui/vuu-data-types": "3.2.0",
|
|
14
|
+
"@vuu-ui/vuu-protocol-types": "3.2.0",
|
|
15
|
+
"@vuu-ui/vuu-table-types": "3.2.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@salt-ds/core": "1.54.1",
|
|
19
19
|
"@salt-ds/styles": "0.2.1",
|
|
20
20
|
"@salt-ds/window": "0.1.1",
|
|
21
|
-
"@vuu-ui/vuu-context-menu": "3.
|
|
22
|
-
"@vuu-ui/vuu-data-react": "3.
|
|
23
|
-
"@vuu-ui/vuu-data-remote": "3.
|
|
24
|
-
"@vuu-ui/vuu-icons": "3.
|
|
25
|
-
"@vuu-ui/vuu-layout": "3.
|
|
26
|
-
"@vuu-ui/vuu-notifications": "3.
|
|
27
|
-
"@vuu-ui/vuu-table": "3.
|
|
28
|
-
"@vuu-ui/vuu-ui-controls": "3.
|
|
29
|
-
"@vuu-ui/vuu-utils": "3.
|
|
21
|
+
"@vuu-ui/vuu-context-menu": "3.2.0",
|
|
22
|
+
"@vuu-ui/vuu-data-react": "3.2.0",
|
|
23
|
+
"@vuu-ui/vuu-data-remote": "3.2.0",
|
|
24
|
+
"@vuu-ui/vuu-icons": "3.2.0",
|
|
25
|
+
"@vuu-ui/vuu-layout": "3.2.0",
|
|
26
|
+
"@vuu-ui/vuu-notifications": "3.2.0",
|
|
27
|
+
"@vuu-ui/vuu-table": "3.2.0",
|
|
28
|
+
"@vuu-ui/vuu-ui-controls": "3.2.0",
|
|
29
|
+
"@vuu-ui/vuu-utils": "3.2.0",
|
|
30
30
|
"html-to-image": "^1.11.11"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
package/src/left-nav/LeftNav.js
CHANGED
|
@@ -11,6 +11,7 @@ import { FeatureList } from "../feature-list/index.js";
|
|
|
11
11
|
import { LayoutList } from "../workspace-management/index.js";
|
|
12
12
|
import LeftNav from "./LeftNav.css";
|
|
13
13
|
import { useFeatures } from "../feature-and-layout-provider/index.js";
|
|
14
|
+
import { Button } from "@salt-ds/core";
|
|
14
15
|
const classBase = "vuuLeftNav";
|
|
15
16
|
const getDisplayStatus = (activeTabIndex, expanded)=>{
|
|
16
17
|
if (0 === activeTabIndex) return expanded ? "menu-full" : "menu-icons";
|
|
@@ -158,7 +159,7 @@ const LeftNav_LeftNav = (props)=>{
|
|
|
158
159
|
}),
|
|
159
160
|
/*#__PURE__*/ jsx("div", {
|
|
160
161
|
className: "vuuLeftNav-buttonBar",
|
|
161
|
-
children: /*#__PURE__*/ jsx(
|
|
162
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
162
163
|
className: clsx("vuuLeftNav-toggleButton", {
|
|
163
164
|
"vuuLeftNav-toggleButton-open": displayStatus.startsWith("menu-full"),
|
|
164
165
|
"vuuLeftNav-toggleButton-closed": displayStatus.startsWith("menu-icons")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
1
|
+
import { type HTMLAttributes } from "react";
|
|
2
2
|
export type NavDisplayStatus = "menu-full" | "menu-icons" | "menu-full-content" | "menu-icons-content";
|
|
3
3
|
export type NavDisplayStatusHandler = (navDisplayStatus: NavDisplayStatus) => void;
|
|
4
4
|
export interface LeftNavProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
-
import { Settings } from "@vuu-ui/vuu-utils";
|
|
3
|
-
import { DropdownProps } from "@salt-ds/core";
|
|
4
|
-
import { FormEventHandler, HTMLAttributes } from "react";
|
|
1
|
+
import type { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
2
|
+
import { type Settings } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import { type DropdownProps } from "@salt-ds/core";
|
|
4
|
+
import { type FormEventHandler, type HTMLAttributes } from "react";
|
|
5
5
|
export interface SettingsSchema {
|
|
6
6
|
properties: SettingsProperty[];
|
|
7
7
|
}
|
|
8
|
-
export type
|
|
8
|
+
export type OptionType<T> = {
|
|
9
9
|
label: string;
|
|
10
10
|
value: T;
|
|
11
11
|
};
|
|
12
|
-
export declare const isOption: (value:
|
|
12
|
+
export declare const isOption: (value: OptionType<number | string> | number | string) => value is OptionType<number | string>;
|
|
13
13
|
export interface BaseProperty {
|
|
14
14
|
name: string;
|
|
15
15
|
label: string;
|
|
16
16
|
}
|
|
17
17
|
export interface StringProperty extends BaseProperty {
|
|
18
|
-
values?: string[] |
|
|
18
|
+
values?: string[] | OptionType<string>[];
|
|
19
19
|
defaultValue?: string;
|
|
20
20
|
type: "string";
|
|
21
21
|
}
|
|
22
22
|
export interface NumericProperty extends BaseProperty {
|
|
23
|
-
values?: number[] |
|
|
23
|
+
values?: number[] | OptionType<number>[];
|
|
24
24
|
defaultValue?: number;
|
|
25
25
|
type: "number";
|
|
26
26
|
}
|